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-CF_FJn6P.js";import{a8 as y,_ as D}from"./index-CYriLmQo.js";import"./BasicModal-BBgVjypv.js";import"./ModalHeader-jGKMr-DQ.js";import"./antd-vue-vendor-CDWW6V_M.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";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};
