import{d as c,U as t,a2 as E,ad as A,af as n,k as o,G as m}from"./vue-vendor-CxLCUzY4.js";import{A as k}from"./antd-vue-vendor-CahNzUUa.js";import{a as u}from"./index-BjHivc1K.js";import R from"./Drawer1-CGzUii24.js";import B from"./Drawer2-CMGZ6wB4.js";import $ from"./Drawer3-Ch20tCaq.js";import _ from"./Drawer4-CXd-i0sG.js";import P from"./Drawer5-am8FaUau.js";import{P as v}from"./index-D55rh6hR.js";import{_ as W}from"./index-CLZzJyTP.js";import"./index-DvqyyN77.js";import"./index-DS3utcig.js";import"./index-BZbg0EjM.js";import"./index-CrdW4fN1.js";import"./useTimeout-KpZCXEcl.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./index-ByX9XNkE.js";import"./useForm-Dx3lJ3DG.js";import"./componentMap-DpsJvoqz.js";import"./useFormItem-IOFWTdED.js";import"./index-XZKTTfG1.js";import"./BasicModal-B8XmAOm7.js";import"./ModalHeader-DIFQSP_0.js";import"./useWindowSizeFn-D9PllI8g.js";import"./download-DopMSmFN.js";import"./base64Conver-24EVOS6V.js";import"./index-CDa2_aYE.js";import"./index-D0jTtUNS.js";import"./useCountdown-BpP55PQ2.js";import"./useFormItemSingle-BEyrYQqf.js";import"./JSelectUser-CfAGgHjD.js";import"./props-BtZrRNiI.js";import"./JSelectBiz-CLnJTMe2.js";import"./JAddInput-B36c3B5x.js";import"./areaDataUtil-Dk3xkGfK.js";import"./china-area-data-vendor-ByvEpbzN.js";import"./index-C7yPiS0L.js";import"./index-44tRnyoF.js";import"./bem-DT3DdmOs.js";import"./props-CG-jAkbI.js";import"./useContextMenu-BGU2vdqV.js";import"./depart.api-DHG2p2Yd.js";import"./JImageUpload-BFwNYdm5.js";import"./JDictSelectTag-CfF54ALX.js";import"./JSelectDept-CaEHrQp6.js";import"./JPopup-BvqhHpPl.js";import"./JEllipsis-C_gT_vEQ.js";import"./JUpload-DgDEmizw.js";import"./index-Bn2zmO2L.js";import"./index-CEznvAVZ.js";import"./index-CfAukas3.js";import"./JAreaLinkage-M9TGy8nY.js";import"./JCodeEditor-CR57XeIe.js";import"./htmlmixed-DoVLO6sG.js";import"./vue-DY75b9GC.js";/* empty css             */import"./EasyCronInput-CWOTSpxK.js";import"./useContentHeight-DLfJuPsF.js";import"./useContentViewHeight-BIb_dTbE.js";import"./usePageContext-FyDvfV_K.js";import"./injectionKey-DPVn4AgL.js";const b=c({components:{Alert:k,PageWrapper:v,Drawer1:R,Drawer2:B,Drawer3:$,Drawer4:_,Drawer5:P},setup(){const[e,{openDrawer:r,setDrawerProps:s}]=u(),[f,{openDrawer:d}]=u(),[C,{openDrawer:i}]=u(),[p,{openDrawer:a}]=u(),[w,{openDrawer:D}]=u();function l(){a(!0,{data:"content",info:"Info"})}function g(){r(),s({loading:!0}),setTimeout(()=>{s({loading:!1})},2e3)}return{register1:e,openDrawer1:r,register2:f,openDrawer2:d,register3:C,openDrawer3:i,register4:p,register5:w,openDrawer5:D,send:l,openDrawerLoading:g}}});function L(e,r,s,f,d,C){const i=t("Alert"),p=t("a-button"),a=t("Drawer1"),w=t("Drawer2"),D=t("Drawer3"),l=t("Drawer4"),g=t("Drawer5"),y=t("PageWrapper");return E(),A(y,{title:"抽屉组件使用示例"},{default:n(()=>[o(i,{message:"使用 useDrawer 进行抽屉操作","show-icon":""}),o(p,{type:"primary",class:"my-4",onClick:e.openDrawerLoading},{default:n(()=>r[3]||(r[3]=[m(" 打开Drawer ")])),_:1},8,["onClick"]),o(i,{message:"内外同时控制显示隐藏","show-icon":""}),o(p,{type:"primary",class:"my-4",onClick:r[0]||(r[0]=F=>e.openDrawer2(!0))},{default:n(()=>r[4]||(r[4]=[m(" 打开Drawer ")])),_:1}),o(i,{message:"自适应高度/显示footer","show-icon":""}),o(p,{type:"primary",class:"my-4",onClick:r[1]||(r[1]=F=>e.openDrawer3(!0))},{default:n(()=>r[5]||(r[5]=[m(" 打开Drawer ")])),_:1}),o(i,{message:"内外数据交互","show-icon":""}),o(p,{type:"primary",class:"my-4",onClick:e.send},{default:n(()=>r[6]||(r[6]=[m(" 打开Drawer并传递数据 ")])),_:1},8,["onClick"]),o(i,{message:"详情页模式","show-icon":""}),o(p,{type:"primary",class:"my-4",onClick:r[2]||(r[2]=F=>e.openDrawer5(!0))},{default:n(()=>r[7]||(r[7]=[m(" 打开详情Drawer ")])),_:1}),o(a,{onRegister:e.register1},null,8,["onRegister"]),o(w,{onRegister:e.register2},null,8,["onRegister"]),o(D,{onRegister:e.register3},null,8,["onRegister"]),o(l,{onRegister:e.register4},null,8,["onRegister"]),o(g,{onRegister:e.register5},null,8,["onRegister"])]),_:1})}const zr=W(b,[["render",L]]);export{zr as default};
