var E=Object.defineProperty;var f=Object.getOwnPropertySymbols;var v=Object.prototype.hasOwnProperty,D=Object.prototype.propertyIsEnumerable;var F=(e,o,n)=>o in e?E(e,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[o]=n,_=(e,o)=>{for(var n in o||(o={}))v.call(o,n)&&F(e,n,o[n]);if(f)for(var n of f(o))D.call(o,n)&&F(e,n,o[n]);return e};import{fc as B,k as A,aP as T,a as W,fd as R,r as L,m as w,a$ as P,aQ as p,bK as $,w as N,o as V,aR as j,p as u,i as q,j as a,q as r}from"./index.0d073eaa.js";import{P as K}from"./index.566277e5.js";import{A as C}from"./index.ffb8ac7d.js";import"./index.e9a84cba.js";import"./index.0972fd96.js";import"./useSize.bb4e5ce5.js";import"./eagerComputed.156e81ff.js";import"./useWindowSizeFn.ef20ece8.js";import"./useContentViewHeight.01b9d1c6.js";import"./ArrowLeftOutlined.90d2e05e.js";import"./index.8680e4c4.js";import"./transButton.8c1b1a4f.js";function b(e){let o,n=document.body;if(Reflect.has(e,"target")||Reflect.has(e,"props")){const t=e;o=t.props||{},n=t.target||document.body}else o=e;const i=B(o,void 0,!0);return[()=>{const t=A(n);!t||i.open(t)},()=>{i.close()},t=>{i.setTip(t)}]}const Q=W({components:{Loading:R,PageWrapper:K,[C.name]:C},setup(){const e=L(null),o=L(!1),n=w({absolute:!1,loading:!1,theme:"dark",background:"rgba(111,111,111,.7)",tip:"\u52A0\u8F7D\u4E2D..."}),[i,l]=b({tip:"\u52A0\u8F7D\u4E2D..."}),[c,s]=b({target:e,props:{tip:"\u52A0\u8F7D\u4E2D...",absolute:!0}});function t(h){n.absolute=h,n.loading=!0,setTimeout(()=>{n.loading=!1},2e3)}function d(){t(!1)}function m(){t(!0)}function g(){i(),setTimeout(()=>{l()},2e3)}function k(){c(),setTimeout(()=>{s()},2e3)}function y(){o.value=!0,setTimeout(()=>{o.value=!1},2e3)}return _({openCompFullLoading:d,openFnFullLoading:g,openFnWrapLoading:k,openCompAbsolute:m,wrapEl:e,loadingRef:o,openDirectiveLoading:y},P(n))}}),S={ref:"wrapEl"},z=r(" \u5168\u5C4F Loading "),G=r(" \u5BB9\u5668\u5185 Loading "),H=r(" \u5168\u5C4F Loading "),I=r(" \u5BB9\u5668\u5185 Loading "),J=r(" \u6253\u5F00\u6307\u4EE4Loading ");function M(e,o,n,i,l,c){const s=p("a-alert"),t=p("a-button"),d=p("Loading"),m=p("PageWrapper"),g=$("loading");return N((V(),j(m,{"loading-tip":"\u52A0\u8F7D\u4E2D...",title:"Loading\u7EC4\u4EF6\u793A\u4F8B"},{default:u(()=>[q("div",S,[a(s,{message:"\u7EC4\u4EF6\u65B9\u5F0F"}),a(t,{class:"my-4 mr-4",type:"primary",onClick:e.openCompFullLoading},{default:u(()=>[z]),_:1},8,["onClick"]),a(t,{class:"my-4",type:"primary",onClick:e.openCompAbsolute},{default:u(()=>[G]),_:1},8,["onClick"]),a(d,{loading:e.loading,absolute:e.absolute,theme:e.theme,background:e.background,tip:e.tip},null,8,["loading","absolute","theme","background","tip"]),a(s,{message:"\u51FD\u6570\u65B9\u5F0F"}),a(t,{class:"my-4 mr-4",type:"primary",onClick:e.openFnFullLoading},{default:u(()=>[H]),_:1},8,["onClick"]),a(t,{class:"my-4",type:"primary",onClick:e.openFnWrapLoading},{default:u(()=>[I]),_:1},8,["onClick"]),a(s,{message:"\u6307\u4EE4\u65B9\u5F0F"}),a(t,{class:"my-4 mr-4",type:"primary",onClick:e.openDirectiveLoading},{default:u(()=>[J]),_:1},8,["onClick"])],512)]),_:1})),[[g,e.loadingRef]])}var ue=T(Q,[["render",M]]);export{ue as default};
