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-D2AmS0aU.js";import{a8 as y,_ as D}from"./index-B_2CoVdl.js";import"./BasicModal-D3g2CFhF.js";import"./ModalHeader-C-C0dUi_.js";import"./antd-vue-vendor-CDWW6V_M.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";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};
