import{d as R,s as w,f as y,n as $,U as n,a2 as k,ad as D,af as r,k as t,G as i,ar as T}from"./vue-vendor-CxLCUzY4.js";import{a8 as V,A as P}from"./antd-vue-vendor-CahNzUUa.js";import"./index-zKZnG1QC.js";import v from"./Modal1-CGAtcMM9.js";import b from"./Modal2-x3JDVaQz.js";import c from"./Modal3-BLAwtOZB.js";import B from"./Modal4-DNRlGSW7.js";import{P as W}from"./index-CRgSyMPH.js";import{a9 as d,_ as I}from"./index-Cy4uayzW.js";import"./BasicModal-sKcs_9Ir.js";import"./ModalHeader-ByCVDoqO.js";import"./useTimeout-gJpgadD6.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./index-Bdn0r8CG.js";import"./useWindowSizeFn-DDyhhqyw.js";import"./index-CYoRlduV.js";import"./index-DYB8Ashr.js";import"./index-CrdW4fN1.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./index-BN26Feep.js";import"./useForm-DfoT2G6J.js";import"./componentMap-0iK4HQBq.js";import"./useFormItem-IOFWTdED.js";import"./download-Bn4f3tzD.js";import"./base64Conver-24EVOS6V.js";import"./index-D6H6KsT6.js";import"./index-CLxBW_h0.js";import"./useCountdown-2P9HvnfJ.js";import"./useFormItemSingle-BEyrYQqf.js";import"./JSelectUser-B98pRPrS.js";import"./props-CtlWAg-s.js";import"./JSelectBiz-vYDBA0SK.js";import"./JAddInput-DP4caUmw.js";import"./areaDataUtil-Dk3xkGfK.js";import"./china-area-data-vendor-ByvEpbzN.js";import"./index-tDBMxW9-.js";import"./index-CNQBnF3P.js";import"./bem-IZKqD41e.js";import"./props-CG-jAkbI.js";import"./useContextMenu-Q6J5bB_u.js";import"./depart.api-B8q8MC-j.js";import"./JImageUpload-C5OCTlCG.js";import"./JDictSelectTag-CalJXNVe.js";import"./JSelectDept-D-TUaHvK.js";import"./JPopup-CVHkQZFq.js";import"./JEllipsis-TuDc52fh.js";import"./JUpload-DSWoDwh2.js";import"./index-B4vNk56t.js";import"./index-Dc7Jr5-j.js";import"./index-Dm1rPBfc.js";import"./JAreaLinkage-CTMEfTuh.js";import"./JCodeEditor-U9QIstNN.js";import"./htmlmixed-DoVLO6sG.js";import"./vue-DY75b9GC.js";/* empty css             */import"./EasyCronInput-CZdChTcP.js";import"./useContentHeight-XU-h1taH.js";import"./useContentViewHeight-Qm4QNm5l.js";import"./usePageContext-CXQdt-5h.js";import"./injectionKey-DPVn4AgL.js";const L=R({components:{Alert:P,Modal1:v,Modal2:b,Modal3:c,Modal4:B,PageWrapper:W,ASpace:V},setup(){const u=w(null),[o,{openModal:F}]=d(),[M,{openModal:g}]=d(),[C,{openModal:a}]=d(),[e,{openModal:s}]=d(),l=y(!1),m=y(null);function A(){s(!0,{data:"content",info:"Info"})}function f(){F(!0)}function E(p){switch(p){case 1:u.value=v;break;case 2:u.value=b;break;case 3:u.value=c;break;default:u.value=B;break}$(()=>{m.value={data:Math.random(),info:"Info222"},l.value=!0})}return{register1:o,openModal1:F,register2:M,openModal2:g,register3:C,openModal3:a,register4:e,openModal4:s,modalVisible:l,userData:m,openTargetModal:E,send:A,currentModal:u,openModalLoading:f}}});function N(u,o,F,M,g,C){const a=n("Alert"),e=n("a-button"),s=n("a-space"),l=n("Modal1"),m=n("Modal2"),A=n("Modal3"),f=n("Modal4"),E=n("PageWrapper");return k(),D(E,{title:"modal组件使用示例"},{default:r(()=>[t(a,{message:`使用 useModal 进行弹窗操作，默认可以拖动，可以通过 draggable\r
    参数进行控制是否可以拖动/全屏，并演示了在Modal内动态加载内容并自动调整高度`,"show-icon":""}),t(e,{type:"primary",class:"my-4",onClick:u.openModalLoading},{default:r(()=>o[5]||(o[5]=[i(" 打开弹窗,加载动态数据并自动调整高度(默认可以拖动/全屏) ")])),_:1},8,["onClick"]),t(a,{message:"内外同时同时显示隐藏","show-icon":""}),t(e,{type:"primary",class:"my-4",onClick:u.openModal2},{default:r(()=>o[6]||(o[6]=[i(" 打开弹窗")])),_:1},8,["onClick"]),t(a,{message:"自适应高度","show-icon":""}),t(e,{type:"primary",class:"my-4",onClick:u.openModal3},{default:r(()=>o[7]||(o[7]=[i(" 打开弹窗")])),_:1},8,["onClick"]),t(a,{message:"内外数据交互","show-icon":""}),t(e,{type:"primary",class:"my-4",onClick:u.send},{default:r(()=>o[8]||(o[8]=[i(" 打开弹窗并传递数据")])),_:1},8,["onClick"]),t(a,{message:"使用动态组件的方式在页面内使用多个弹窗","show-icon":""}),t(s,null,{default:r(()=>[t(e,{type:"primary",class:"my-4",onClick:o[0]||(o[0]=p=>u.openTargetModal(1))},{default:r(()=>o[9]||(o[9]=[i(" 打开弹窗1")])),_:1}),t(e,{type:"primary",class:"my-4",onClick:o[1]||(o[1]=p=>u.openTargetModal(2))},{default:r(()=>o[10]||(o[10]=[i(" 打开弹窗2")])),_:1}),t(e,{type:"primary",class:"my-4",onClick:o[2]||(o[2]=p=>u.openTargetModal(3))},{default:r(()=>o[11]||(o[11]=[i(" 打开弹窗3")])),_:1}),t(e,{type:"primary",class:"my-4",onClick:o[3]||(o[3]=p=>u.openTargetModal(4))},{default:r(()=>o[12]||(o[12]=[i(" 打开弹窗4")])),_:1})]),_:1}),(k(),D(T(u.currentModal),{visible:u.modalVisible,"onUpdate:visible":o[4]||(o[4]=p=>u.modalVisible=p),userData:u.userData},null,40,["visible","userData"])),t(l,{onRegister:u.register1,minHeight:100},null,8,["onRegister"]),t(m,{onRegister:u.register2},null,8,["onRegister"]),t(A,{onRegister:u.register3},null,8,["onRegister"]),t(f,{onRegister:u.register4},null,8,["onRegister"])]),_:1})}const Jo=I(L,[["render",N]]);export{Jo as default};
