import{d as g,f as m,w as h,U as c,a2 as t,ad as B,af as i,a3 as a,V as f,F as M,ae as _,a5 as C,k as F,G as k,ag as b}from"./vue-vendor-CxLCUzY4.js";import{B as v}from"./index-zKZnG1QC.js";import{a8 as y,_ as D}from"./index-Cy4uayzW.js";import"./BasicModal-sKcs_9Ir.js";import"./ModalHeader-ByCVDoqO.js";import"./antd-vue-vendor-CahNzUUa.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";const V=g({components:{BasicModal:v},setup(){const e=m(!0),o=m(10),[u,{setModalProps:s,redoModalHeight:l}]=y();h(()=>o.value,()=>{l()});function d(r){r&&(e.value=!0,s({loading:!0,confirmLoading:!0}),setTimeout(()=>{o.value=Math.round(Math.random()*30+5),e.value=!1,s({loading:!1,confirmLoading:!1})},3e3))}function n(){o.value=Math.round(Math.random()*20+10)}return{register:u,loading:e,handleShow:d,lines:o,setLines:n}}}),w={key:0,class:"empty-tips"},A={key:1};function L(e,o,u,s,l,d){const n=c("a-button"),r=c("BasicModal");return t(),B(r,b(e.$attrs,{destroyOnClose:"",onRegister:e.register,title:"Modal Title",helpMessage:["提示1","提示2"],onVisibleChange:e.handleShow}),{insertFooter:i(()=>[F(n,{type:"primary",danger:"",onClick:e.setLines,disabled:e.loading},{default:i(()=>o[0]||(o[0]=[k("点我更新内容")])),_:1},8,["onClick","disabled"])]),default:i(()=>[e.loading?(t(),a("div",w," 加载中，稍等3秒…… ")):f("",!0),e.loading?f("",!0):(t(),a("ul",A,[(t(!0),a(M,null,_(e.lines,p=>(t(),a("li",{key:p},"加载完成"+C(p)+"！",1))),128))]))]),_:1},16,["onRegister","onVisibleChange"])}const z=D(V,[["render",L],["__scopeId","data-v-4b55999b"]]);export{z as default};
