Files
qhmes/web-dist/js/index-muNxBxcb.js
2026-06-16 18:19:57 +08:00

2 lines
3.4 KiB
Java

var W=Object.defineProperty;var L=Object.getOwnPropertySymbols;var _=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;var b=(e,o,t)=>o in e?W(e,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[o]=t,y=(e,o)=>{for(var t in o||(o={}))_.call(o,t)&&b(e,t,o[t]);if(L)for(var t of L(o))R.call(o,t)&&b(e,t,o[t]);return e};import{dR as w,b6 as D,au as P}from"./index-X7Y8jykP.js";import{u as $,e as A,a7 as B,r as k,b as E,O as N,X as V,z,y as K,A as r,K as g,Q as O,f as a,E as p}from"./vue-vendor-DNhG1Cve.js";import{P as Q}from"./index-Ckh_BVlA.js";import{b as f}from"./index-CeNCCWzL.js";import"./emoji-mart-vue-fast-R0uJEDq-.js";import"./useMenuSetting-BwQ9LkAm.js";import"./useFullContent-B3OUGaJG.js";import"./useContentHeight-vWUZcXk1.js";import"./onMountedOrActivated-DhSdLlqP.js";import"./useWindowSizeFn-C-0M9_Ul.js";import"./useContentViewHeight-Cja8zrBg.js";import"./usePageContext-9jIr04Op.js";import"./injectionKey-DPVn4AgL.js";import"./ArrowLeftOutlined-B3JgaWh-.js";import"./ArrowRightOutlined-CZG1QCpB.js";import"./index-lcIOKfa7.js";import"./dropdown-jkliuVyN.js";import"./index-B4gPlWQt.js";import"./eagerComputed-BTlOruLW.js";import"./transButton-B2CWzlQO.js";import"./operationUnit-vCu2co3e.js";function C(e){let o,t=document.body;if(Reflect.has(e,"target")||Reflect.has(e,"props")){const n=e;o=n.props||{},t=n.target||document.body}else o=e;const i=w(o,void 0,!0);return[()=>{const n=$(t);n&&i.open(n)},()=>{i.close()},n=>{i.setTip(n)}]}const S=A({components:{Loading:D,PageWrapper:Q,[f.name]:f},setup(){const e=k(null),o=k(!1),t=E({absolute:!1,loading:!1,theme:"dark",background:"rgba(111,111,111,.7)",tip:"加载中..."}),[i,l]=C({tip:"加载中..."}),[m,s]=C({target:e,props:{tip:"加载中...",absolute:!0}});function n(T){t.absolute=T,t.loading=!0,setTimeout(()=>{t.loading=!1},2e3)}function d(){n(!1)}function u(){n(!0)}function c(){i(),setTimeout(()=>{l()},2e3)}function v(){m(),setTimeout(()=>{s()},2e3)}function F(){o.value=!0,setTimeout(()=>{o.value=!1},2e3)}return y({openCompFullLoading:d,openFnFullLoading:c,openFnWrapLoading:v,openCompAbsolute:u,wrapEl:e,loadingRef:o,openDirectiveLoading:F},B(t))}}),X={ref:"wrapEl"};function h(e,o,t,i,l,m){const s=f,n=g("a-button"),d=g("Loading"),u=g("PageWrapper"),c=V("loading");return N((z(),K(u,{"loading-tip":"加载中...",title:"Loading组件示例"},{default:r(()=>[O("div",X,[a(s,{message:"组件方式"}),a(n,{class:"my-4 mr-4",type:"primary",onClick:e.openCompFullLoading},{default:r(()=>[...o[0]||(o[0]=[p(" 全屏 Loading ",-1)])]),_:1},8,["onClick"]),a(n,{class:"my-4",type:"primary",onClick:e.openCompAbsolute},{default:r(()=>[...o[1]||(o[1]=[p(" 容器内 Loading ",-1)])]),_: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:"函数方式"}),a(n,{class:"my-4 mr-4",type:"primary",onClick:e.openFnFullLoading},{default:r(()=>[...o[2]||(o[2]=[p(" 全屏 Loading ",-1)])]),_:1},8,["onClick"]),a(n,{class:"my-4",type:"primary",onClick:e.openFnWrapLoading},{default:r(()=>[...o[3]||(o[3]=[p(" 容器内 Loading ",-1)])]),_:1},8,["onClick"]),a(s,{message:"指令方式"}),a(n,{class:"my-4 mr-4",type:"primary",onClick:e.openDirectiveLoading},{default:r(()=>[...o[4]||(o[4]=[p(" 打开指令Loading ",-1)])]),_:1},8,["onClick"])],512)]),_:1})),[[c,e.loadingRef]])}const uo=P(S,[["render",h]]);export{uo as default};