import{d as v,f as a,U as c,a2 as d,ad as f,af as o,a4 as p,k as t,G as i,a3 as C}from"./vue-vendor-CxLCUzY4.js";import{B as F}from"./index-DKNidNZ_.js";import{u as D,_ as b}from"./index-Cy4uayzW.js";import{ay as $,b7 as A}from"./antd-vue-vendor-CahNzUUa.js";import{P as O}from"./index-CRgSyMPH.js";import"./useTimeout-gJpgadD6.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./useContentHeight-XU-h1taH.js";import"./useWindowSizeFn-DDyhhqyw.js";import"./useContentViewHeight-Qm4QNm5l.js";import"./usePageContext-CXQdt-5h.js";import"./injectionKey-DPVn4AgL.js";const V=v({components:{BasicDragVerify:F,BugOutlined:A,RightOutlined:$,PageWrapper:O},setup(){const{createMessage:s}=D(),e=a(null),y=a(null),g=a(null),k=a(null),B=a(null);function l(r){const{time:m}=r;s.success(`校验成功,耗时${m}秒`)}function u(r){r&&r.resume()}return{handleSuccess:l,el1:e,el2:y,el3:g,el4:k,el5:B,handleBtnClick:u}}}),j={class:"flex justify-center p-4 items-center bg-gray-700"},_={class:"flex justify-center p-4 items-center bg-gray-700"},P={class:"flex justify-center p-4 items-center bg-gray-700"},E={class:"flex justify-center p-4 items-center bg-gray-700"},N={class:"flex justify-center p-4 items-center bg-gray-700"},W={key:0},I={key:1};function M(s,e,y,g,k,B){const l=c("BasicDragVerify"),u=c("a-button"),r=c("BugOutlined"),m=c("RightOutlined"),S=c("PageWrapper");return d(),f(S,{title:"拖动校验示例"},{default:o(()=>[p("div",j,[t(l,{ref:"el1",onSuccess:s.handleSuccess},null,8,["onSuccess"]),t(u,{type:"primary",class:"ml-2",onClick:e[0]||(e[0]=n=>s.handleBtnClick(s.el1))},{default:o(()=>e[5]||(e[5]=[i(" 还原 ")])),_:1})]),p("div",_,[t(l,{ref:"el2",onSuccess:s.handleSuccess,circle:""},null,8,["onSuccess"]),t(u,{type:"primary",class:"ml-2",onClick:e[1]||(e[1]=n=>s.handleBtnClick(s.el2))},{default:o(()=>e[6]||(e[6]=[i(" 还原 ")])),_:1})]),p("div",P,[t(l,{ref:"el3",onSuccess:s.handleSuccess,text:"拖动以进行校验",successText:"校验成功",barStyle:{backgroundColor:"#018ffb"}},null,8,["onSuccess"]),t(u,{type:"primary",class:"ml-2",onClick:e[2]||(e[2]=n=>s.handleBtnClick(s.el3))},{default:o(()=>e[7]||(e[7]=[i(" 还原 ")])),_:1})]),p("div",E,[t(l,{ref:"el4",onSuccess:s.handleSuccess},{actionIcon:o(n=>[n?(d(),f(r,{key:0})):(d(),f(m,{key:1}))]),_:1},8,["onSuccess"]),t(u,{type:"primary",class:"ml-2",onClick:e[3]||(e[3]=n=>s.handleBtnClick(s.el4))},{default:o(()=>e[8]||(e[8]=[i(" 还原 ")])),_:1})]),p("div",N,[t(l,{ref:"el5",onSuccess:s.handleSuccess},{text:o(n=>[n?(d(),C("div",W,[t(r),e[9]||(e[9]=i(" 成功 "))])):(d(),C("div",I,[e[10]||(e[10]=i(" 拖动 ")),t(m)]))]),_:1},8,["onSuccess"]),t(u,{type:"primary",class:"ml-2",onClick:e[4]||(e[4]=n=>s.handleBtnClick(s.el5))},{default:o(()=>e[11]||(e[11]=[i(" 还原 ")])),_:1})])]),_:1})}const Q=b(V,[["render",M],["__scopeId","data-v-9e11fa57"]]);export{Q as default};
