Files
qhmes/deploy-qhmes/frontend/js/index-DzNL0zOX.js
2026-05-15 11:34:12 +08:00

2 lines
1.5 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import{d as C,f as _,u as l,ah as t,aC as v,as as y,aF as n,k as r,au as g,G as b}from"./vue-vendor-C7Zq48Yl.js";import{C as h}from"./index-pxs5MULf.js";import{by as k,u as w,d as x}from"./index-BI6CMai0.js";import{P}from"./index-C57gqG5N.js";import"./antd-vue-vendor-BPnV8VqP.js";import"./index-BgYCgfME.js";import"./index-DeEq83Ov.js";import"./index-f8O7TghW.js";import"./useTimeout-DDl4l82I.js";import"./vxe-table-vendor-B88kchpX.js";import"./useIntersectionObserver-BMxdTqP3.js";import"./useContentHeight-BUFNkYs_.js";import"./useWindowSizeFn-PRZSD86C.js";import"./useContentViewHeight-BO9bTdue.js";import"./usePageContext-l-f4bNz7.js";import"./injectionKey-DPVn4AgL.js";const $=C({name:"Copy",components:{CollapseContainer:h,PageWrapper:P},setup(){const o=_(""),{createMessage:e}=w(),{clipboardRef:p,copiedRef:s}=k();function i(){const a=l(o);if(!a){e.warning("请输入要拷贝的内容!");return}p.value=a,l(s)&&e.warning("copy success")}return{handleCopy:i,value:o}}}),B={class:"flex justify-center"};function N(o,e,p,s,i,a){const u=t("a-input"),m=t("a-button"),c=t("CollapseContainer"),d=t("PageWrapper");return y(),v(d,{title:"文本复制示例"},{default:n(()=>[r(c,{class:"w-full h-32 bg-white rounded-md",title:"Copy Example"},{default:n(()=>[g("div",B,[r(u,{placeholder:"请输入",value:o.value,"onUpdate:value":e[0]||(e[0]=f=>o.value=f)},null,8,["value"]),r(m,{type:"primary",onClick:o.handleCopy},{default:n(()=>[...e[1]||(e[1]=[b(" Copy ",-1)])]),_:1},8,["onClick"])])]),_:1})]),_:1})}const J=x($,[["render",N]]);export{J as default};