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-CDWW6V_M.js";import"./index-CF_FJn6P.js";import v from"./Modal1-DgfpBYxd.js";import b from"./Modal2-BqBBOcP9.js";import c from"./Modal3-iXkNXQQQ.js";import B from"./Modal4-Nu8x2n7_.js";import{P as W}from"./index-BxgvQLkr.js";import{a9 as d,_ as I}from"./index-CYriLmQo.js";import"./BasicModal-BBgVjypv.js";import"./ModalHeader-jGKMr-DQ.js";import"./useTimeout-DC8132dd.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./index-CxQILSKV.js";import"./useWindowSizeFn-BxrEMPtP.js";import"./index-BRTtls-l.js";import"./index-DOuVMe-q.js";import"./index-ByLO0zSl.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./index-BkgeZpOO.js";import"./useForm-8o5KRzWo.js";import"./componentMap-7D1QIeNI.js";import"./useFormItem-CWa0w7fA.js";import"./download-CkbK5et1.js";import"./base64Conver-24EVOS6V.js";import"./index-QMJkXEyl.js";import"./index-Bb_NRLur.js";import"./useCountdown-C3-PRPLY.js";import"./useFormItemSingle-DM34aWgK.js";import"./JSelectUser-nVFm3ao2.js";import"./props-DoGpHXAD.js";import"./JSelectBiz-BW6f3e--.js";import"./JAddInput-CXT54-j9.js";import"./areaDataUtil-DFHnz1wu.js";import"./china-area-data-vendor-D0sJ9kfX.js";import"./index-BTSd5ebC.js";import"./index-BTAl55Kt.js";import"./bem-2ra1afoV.js";import"./props-BLY2qIO5.js";import"./useContextMenu-DYyhcDf7.js";import"./depart.api-C9T5xfw6.js";import"./JDictSelectTag-Jqy9TBcS.js";import"./JSelectDept-DorRVguN.js";import"./JPopup-KP1kIsae.js";import"./JEllipsis-287cEHxd.js";import"./JUpload-pyrTRFCz.js";import"./index-Bx9Mnn3N.js";import"./index-B1-pj6uh.js";import"./index-isxCPgHp.js";import"./JAreaLinkage-DFTeDmm8.js";import"./JCodeEditor-_KZ8XnNK.js";import"./htmlmixed-DRe7JlAp.js";import"./vue-B0b3nX1K.js";/* empty css             */import"./EasyCronInput-XK54XB3r.js";import"./useContentHeight-DtBiGC0g.js";import"./useContentViewHeight-D71xl1HH.js";import"./usePageContext-CCgh0KDo.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 zo=I(L,[["render",N]]);export{zo as default};
