text: import{ag as e,a$ as a,h as t}from"./index.10e3b51a.js";import{P as n}from"./index.ee54ff18.js";import{y as o,r as s,u as r,Z as i,B as l,F as p,a2 as u,v as c,a9 as d}from"./vendor.880b4c6c.js";/* empty css              *//* empty css              */import"./onMountedOrActivated.8f899bfb.js";import"./useWindowSizeFn.564cf32e.js";import"./useContentViewHeight.17c92794.js";var f=o({name:"Copy",components:{CollapseContainer:e,PageWrapper:n},setup(){const e=s(""),{createMessage:n}=t(),{clipboardRef:o,copiedRef:i}=a();return{handleCopy:function(){const a=r(e);a?(o.value=a,r(i)&&n.warning("copy success！")):n.warning("请输入要拷贝的内容！")},value:e}}});const m={class:"flex justify-center"},v=d(" Copy ");f.render=function(e,a,t,n,o,s){const r=i("a-input"),d=i("a-button"),f=i("CollapseContainer"),C=i("PageWrapper");return l(),p(C,{title:"文本复制示例"},{default:u((()=>[c(f,{class:"w-full h-32 bg-white rounded-md",title:"Copy Example"},{default:u((()=>[c("div",m,[c(r,{placeholder:"请输入",value:e.value,"onUpdate:value":a[1]||(a[1]=a=>e.value=a)},null,8,["value"]),c(d,{type:"primary",onClick:e.handleCopy},{default:u((()=>[v])),_:1},8,["onClick"])])])),_:1})])),_:1})};export default f;
  