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-D2AmS0aU.js";import v from"./Modal1-CDrClG_a.js";import b from"./Modal2-qgStdPEq.js";import c from"./Modal3-DbcErXOw.js";import B from"./Modal4-CxmF6BEM.js";import{P as W}from"./index-DaObvZxT.js";import{a9 as d,_ as I}from"./index-B_2CoVdl.js";import"./BasicModal-D3g2CFhF.js";import"./ModalHeader-C-C0dUi_.js";import"./useTimeout-CB9F1PLu.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./index-DAURrYyA.js";import"./useWindowSizeFn-C3WExEpc.js";import"./index-Dz2zbQB_.js";import"./index-exs4VcBw.js";import"./index-ByLO0zSl.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./index-ARbUvvsq.js";import"./useForm-CcjrODHR.js";import"./componentMap-CzCGDP7x.js";import"./useFormItem-CWa0w7fA.js";import"./download-2tYEzlDW.js";import"./base64Conver-24EVOS6V.js";import"./index-Cgt544dC.js";import"./index-BZ9ST2iq.js";import"./useCountdown-ImUE7YaG.js";import"./useFormItemSingle-DM34aWgK.js";import"./JSelectUser-BQIJUcBR.js";import"./props-BCVPj-bG.js";import"./JSelectBiz-CJyWq5s2.js";import"./JAddInput-YFlAniYT.js";import"./areaDataUtil-DFHnz1wu.js";import"./china-area-data-vendor-D0sJ9kfX.js";import"./index-CkL00Q0a.js";import"./index-BKs2x_To.js";import"./bem-C6eT35UB.js";import"./props-BLY2qIO5.js";import"./useContextMenu-CSt5a1-F.js";import"./depart.api-0qTriT9h.js";import"./JDictSelectTag-CxpDdimB.js";import"./JSelectDept-wKz_Qtmc.js";import"./JPopup-BJBYqoWe.js";import"./JEllipsis-Cn7GCKHR.js";import"./JUpload-DzM-D4DX.js";import"./index-khU3p_On.js";import"./index-DPEnuI0R.js";import"./index-Cnb8BkwG.js";import"./JAreaLinkage-CSgDAlrn.js";import"./JCodeEditor-esTLnfS3.js";import"./htmlmixed-DRe7JlAp.js";import"./vue-B0b3nX1K.js";/* empty css             */import"./EasyCronInput-DclSHT47.js";import"./useContentHeight-BWLGvKEC.js";import"./useContentViewHeight-DlpfApuB.js";import"./usePageContext-HMYqek-Q.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};
