diff --git a/index.html b/index.html index 0cda8df8..31d47def 100644 --- a/index.html +++ b/index.html @@ -1,7 +1,7 @@ - + @@ -19,27 +19,29 @@ content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> Ray Template - + - - + + - - + + - + + + - - - - + + + + diff --git a/index.html.gz b/index.html.gz index 46598ea8..82cee308 100644 Binary files a/index.html.gz and b/index.html.gz differ diff --git a/js/@vue_reactivity@3.4.38-CmXFqMGn.js b/js/@vue_reactivity@3.5.6-CXMPYrvZ.js similarity index 53% rename from js/@vue_reactivity@3.4.38-CmXFqMGn.js rename to js/@vue_reactivity@3.5.6-CXMPYrvZ.js index 23c2e4dd..34f274b6 100644 --- a/js/@vue_reactivity@3.4.38-CmXFqMGn.js +++ b/js/@vue_reactivity@3.5.6-CXMPYrvZ.js @@ -1,5 +1,5 @@ -import{i as r}from"./@vue_shared@3.4.38-D8qfpBTH.js";/** -* @vue/reactivity v3.4.38 +import{i as r}from"./@vue_shared@3.5.6-6BrT-eFF.js";/** +* @vue/reactivity v3.5.6 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(r));function i(e){return e?!!e.__v_raw:!1}function o(e){return!!(e&&e.__v_isRef===!0)}export{i as a,o as i}; +**/new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(r));function i(e){return e?!!e.__v_raw:!1}function s(e){return e?e.__v_isRef===!0:!1}export{i as a,s as i}; diff --git a/js/@vue_runtime-core@3.4.38-f9XU7P4m.js b/js/@vue_runtime-core@3.4.38-f9XU7P4m.js deleted file mode 100644 index 9df9ffdd..00000000 --- a/js/@vue_runtime-core@3.4.38-f9XU7P4m.js +++ /dev/null @@ -1,5 +0,0 @@ -import{i as A,a as N}from"./@vue_reactivity@3.4.38-CmXFqMGn.js";import{a as g,b as m,c as S,g as z,E as j,n as T,d as k,e as h,f as y,h as B}from"./@vue_shared@3.4.38-D8qfpBTH.js";/** -* @vue/runtime-core v3.4.38 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let r=null,M=null;function E(t,s){t.shapeFlag&6&&t.component?E(t.component.subTree,s):t.shapeFlag&128?(t.ssContent.transition=s.clone(t.ssContent),t.ssFallback.transition=s.clone(t.ssFallback)):t.transition=s}const P=Symbol.for("v-ndc"),U={},V=t=>Object.getPrototypeOf(t)===U,G=t=>t.__isTeleport,L=t=>t.__isSuspense,I=Symbol.for("v-fgt"),Y=Symbol.for("v-txt"),D=Symbol.for("v-cmt"),H=Symbol.for("v-stc"),f=[];let u=null;function v(t=!1){f.push(u=t?null:[])}function K(){f.pop(),u=f[f.length-1]||null}function q(t){return t.dynamicChildren=u||j,K(),u&&u.push(t),t}function tt(t,s,l,c,n,e){return q(x(t,s,l,c,n,e,!0))}function w(t){return t?t.__v_isVNode===!0:!1}const O=({key:t})=>t??null,_=({ref:t,ref_key:s,ref_for:l})=>(typeof t=="number"&&(t=""+t),t!=null?g(t)||A(t)||S(t)?{i:r,r:t,k:s,f:!!l}:t:null);function x(t,s=null,l=null,c=0,n=null,e=t===I?0:1,i=!1,o=!1){const a={__v_isVNode:!0,__v_skip:!0,type:t,props:s,key:s&&O(s),ref:s&&_(s),scopeId:M,slotScopeIds:null,children:l,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:e,patchFlag:c,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:r};return o?(p(a,l),e&128&&t.normalize(a)):l&&(a.shapeFlag|=g(l)?8:16),!i&&u&&(a.patchFlag>0||e&6)&&a.patchFlag!==32&&u.push(a),a}const R=J;function J(t,s=null,l=null,c=0,n=null,e=!1){if((!t||t===P)&&(t=D),w(t)){const o=F(t,s,!0);return l&&p(o,l),!e&&u&&(o.shapeFlag&6?u[u.indexOf(t)]=o:u.push(o)),o.patchFlag=-2,o}if(Z(t)&&(t=t.__vccOpts),s){s=Q(s);let{class:o,style:a}=s;o&&!g(o)&&(s.class=T(o)),k(a)&&(N(a)&&!m(a)&&(a=h({},a)),s.style=y(a))}const i=g(t)?1:L(t)?128:G(t)?64:k(t)?4:S(t)?2:0;return x(t,s,l,c,n,i,e,!0)}function Q(t){return t?N(t)||V(t)?h({},t):t:null}function F(t,s,l=!1,c=!1){const{props:n,ref:e,patchFlag:i,children:o,transition:a}=t,C=s?X(n||{},s):n,b={__v_isVNode:!0,__v_skip:!0,type:t.type,props:C,key:C&&O(C),ref:s&&s.ref?l&&e?m(e)?e.concat(_(s)):[e,_(s)]:_(s):e,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:o,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:s&&t.type!==I?i===-1?16:i|16:i,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:a,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&F(t.ssContent),ssFallback:t.ssFallback&&F(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return a&&c&&E(b,a.clone(b)),b}function W(t=" ",s=0){return R(Y,null,t,s)}function st(t,s){const l=R(H,null,t);return l.staticCount=s,l}function p(t,s){let l=0;const{shapeFlag:c}=t;if(s==null)s=null;else if(m(s))l=16;else if(typeof s=="object")if(c&65){const n=s.default;n&&(n._c&&(n._d=!1),p(t,n()),n._c&&(n._d=!0));return}else{l=32;const n=s._;!n&&!V(s)?s._ctx=r:n===3&&r&&(r.slots._===1?s._=1:(s._=2,t.patchFlag|=1024))}else S(s)?(s={default:s,_ctx:r},l=32):(s=String(s),c&64?(l=16,s=[W(s)]):l=8);t.children=s,t.shapeFlag|=l}function X(...t){const s={};for(let l=0;l{let n;return(n=t[l])||(n=t[l]=[]),n.push(c),e=>{n.length>1?n.forEach(i=>i(e)):n[0](e)}};s("__VUE_INSTANCE_SETTERS__",l=>l),s("__VUE_SSR_SETTERS__",l=>l)}function Z(t){return S(t)&&"__vccOpts"in t}export{st as a,tt as c,v as o}; diff --git a/js/@vue_runtime-core@3.4.38-f9XU7P4m.js.gz b/js/@vue_runtime-core@3.4.38-f9XU7P4m.js.gz deleted file mode 100644 index bed4f214..00000000 Binary files a/js/@vue_runtime-core@3.4.38-f9XU7P4m.js.gz and /dev/null differ diff --git a/js/@vue_runtime-core@3.5.6-CUaD_-7Q.js b/js/@vue_runtime-core@3.5.6-CUaD_-7Q.js new file mode 100644 index 00000000..20d25bf3 --- /dev/null +++ b/js/@vue_runtime-core@3.5.6-CUaD_-7Q.js @@ -0,0 +1,5 @@ +import{i as A,a as k}from"./@vue_reactivity@3.5.6-CXMPYrvZ.js";import{a as g,b as m,c as S,g as z,E as j,n as T,d as N,e as y,f as h,h as B}from"./@vue_shared@3.5.6-6BrT-eFF.js";/** +* @vue/runtime-core v3.5.6 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let r=null,M=null;const P=t=>t.__isTeleport;function E(t,s){t.shapeFlag&6&&t.component?(t.transition=s,E(t.component.subTree,s)):t.shapeFlag&128?(t.ssContent.transition=s.clone(t.ssContent),t.ssFallback.transition=s.clone(t.ssFallback)):t.transition=s}const U=Symbol.for("v-ndc"),G={},V=t=>Object.getPrototypeOf(t)===G,L=t=>t.__isSuspense,I=Symbol.for("v-fgt"),Y=Symbol.for("v-txt"),D=Symbol.for("v-cmt"),H=Symbol.for("v-stc"),f=[];let u=null;function v(t=!1){f.push(u=t?null:[])}function K(){f.pop(),u=f[f.length-1]||null}function q(t){return t.dynamicChildren=u||j,K(),u&&u.push(t),t}function tt(t,s,l,a,n,e){return q(x(t,s,l,a,n,e,!0))}function w(t){return t?t.__v_isVNode===!0:!1}const O=({key:t})=>t??null,_=({ref:t,ref_key:s,ref_for:l})=>(typeof t=="number"&&(t=""+t),t!=null?g(t)||A(t)||S(t)?{i:r,r:t,k:s,f:!!l}:t:null);function x(t,s=null,l=null,a=0,n=null,e=t===I?0:1,i=!1,o=!1){const c={__v_isVNode:!0,__v_skip:!0,type:t,props:s,key:s&&O(s),ref:s&&_(s),scopeId:M,slotScopeIds:null,children:l,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:e,patchFlag:a,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:r};return o?(p(c,l),e&128&&t.normalize(c)):l&&(c.shapeFlag|=g(l)?8:16),!i&&u&&(c.patchFlag>0||e&6)&&c.patchFlag!==32&&u.push(c),c}const R=J;function J(t,s=null,l=null,a=0,n=null,e=!1){if((!t||t===U)&&(t=D),w(t)){const o=F(t,s,!0);return l&&p(o,l),!e&&u&&(o.shapeFlag&6?u[u.indexOf(t)]=o:u.push(o)),o.patchFlag=-2,o}if(Z(t)&&(t=t.__vccOpts),s){s=Q(s);let{class:o,style:c}=s;o&&!g(o)&&(s.class=T(o)),N(c)&&(k(c)&&!m(c)&&(c=y({},c)),s.style=h(c))}const i=g(t)?1:L(t)?128:P(t)?64:N(t)?4:S(t)?2:0;return x(t,s,l,a,n,i,e,!0)}function Q(t){return t?k(t)||V(t)?y({},t):t:null}function F(t,s,l=!1,a=!1){const{props:n,ref:e,patchFlag:i,children:o,transition:c}=t,C=s?X(n||{},s):n,b={__v_isVNode:!0,__v_skip:!0,type:t.type,props:C,key:C&&O(C),ref:s&&s.ref?l&&e?m(e)?e.concat(_(s)):[e,_(s)]:_(s):e,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:o,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:s&&t.type!==I?i===-1?16:i|16:i,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:c,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&F(t.ssContent),ssFallback:t.ssFallback&&F(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return c&&a&&E(b,c.clone(b)),b}function W(t=" ",s=0){return R(Y,null,t,s)}function st(t,s){const l=R(H,null,t);return l.staticCount=s,l}function p(t,s){let l=0;const{shapeFlag:a}=t;if(s==null)s=null;else if(m(s))l=16;else if(typeof s=="object")if(a&65){const n=s.default;n&&(n._c&&(n._d=!1),p(t,n()),n._c&&(n._d=!0));return}else{l=32;const n=s._;!n&&!V(s)?s._ctx=r:n===3&&r&&(r.slots._===1?s._=1:(s._=2,t.patchFlag|=1024))}else S(s)?(s={default:s,_ctx:r},l=32):(s=String(s),a&64?(l=16,s=[W(s)]):l=8);t.children=s,t.shapeFlag|=l}function X(...t){const s={};for(let l=0;l{let n;return(n=t[l])||(n=t[l]=[]),n.push(a),e=>{n.length>1?n.forEach(i=>i(e)):n[0](e)}};s("__VUE_INSTANCE_SETTERS__",l=>l),s("__VUE_SSR_SETTERS__",l=>l)}function Z(t){return S(t)&&"__vccOpts"in t}export{st as a,tt as c,v as o}; diff --git a/js/@vue_runtime-core@3.5.6-CUaD_-7Q.js.gz b/js/@vue_runtime-core@3.5.6-CUaD_-7Q.js.gz new file mode 100644 index 00000000..229d9c5e Binary files /dev/null and b/js/@vue_runtime-core@3.5.6-CUaD_-7Q.js.gz differ diff --git a/js/@vue_runtime-dom@3.4.38-l0sNRNKZ.js b/js/@vue_runtime-dom@3.5.6-l0sNRNKZ.js similarity index 100% rename from js/@vue_runtime-dom@3.4.38-l0sNRNKZ.js rename to js/@vue_runtime-dom@3.5.6-l0sNRNKZ.js diff --git a/js/@vue_shared@3.4.38-D8qfpBTH.js.gz b/js/@vue_shared@3.4.38-D8qfpBTH.js.gz deleted file mode 100644 index 55c1ead2..00000000 Binary files a/js/@vue_shared@3.4.38-D8qfpBTH.js.gz and /dev/null differ diff --git a/js/@vue_shared@3.4.38-D8qfpBTH.js b/js/@vue_shared@3.5.6-6BrT-eFF.js similarity index 97% rename from js/@vue_shared@3.4.38-D8qfpBTH.js rename to js/@vue_shared@3.5.6-6BrT-eFF.js index 1a7414a5..587fcda9 100644 --- a/js/@vue_shared@3.4.38-D8qfpBTH.js +++ b/js/@vue_shared@3.5.6-6BrT-eFF.js @@ -1,5 +1,5 @@ /** -* @vue/shared v3.4.38 +* @vue/shared v3.5.6 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/const h=[],b=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),A=Object.assign,f=Array.isArray,C=t=>typeof t=="function",i=t=>typeof t=="string",E=t=>typeof t=="symbol",l=t=>t!==null&&typeof t=="object";let c;const R=()=>c||(c=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function a(t){if(f(t)){const o={};for(let n=0;n{if(n){const s=n.split(g);s.length>1&&(o[s[0].trim()]=s[1].trim())}}),o}function y(t){let o="";if(i(t))o=t;else if(f(t))for(let n=0;n{s.forEach(m=>m()),s.length=0},f=(m,u,t,o)=>(m.addEventListener(u,t,o),()=>m.removeEventListener(u,t,o)),p=VueDemi.watch(()=>[b(r),E(a)],([m,u])=>{if(l(),!m)return;const t=H(u)?{...u}:u;s.push(...n.flatMap(o=>i.map(c=>f(m,o,c,t))))},{immediate:!0,flush:"post"}),v=()=>{p(),l()};return N(v),v}let T=!1;function ne(e,r,n={}){const{window:i=g,ignore:a=[],capture:s=!0,detectIframe:l=!1}=n;if(!i)return D;Q&&!T&&(T=!0,Array.from(i.document.body.children).forEach(t=>t.addEventListener("click",D)),i.document.documentElement.addEventListener("click",D));let f=!0;const p=t=>a.some(o=>{if(typeof o=="string")return Array.from(i.document.querySelectorAll(o)).some(c=>c===t.target||t.composedPath().includes(c));{const c=b(o);return c&&(t.target===c||t.composedPath().includes(c))}}),m=[V(i,"click",t=>{const o=b(e);if(!(!o||o===t.target||t.composedPath().includes(o))){if(t.detail===0&&(f=!p(t)),!f){f=!0;return}r(t)}},{passive:!0,capture:s}),V(i,"pointerdown",t=>{const o=b(e);f=!p(t)&&!!(o&&!t.composedPath().includes(o))},{passive:!0}),l&&V(i,"blur",t=>{setTimeout(()=>{var o;const c=b(e);((o=i.document.activeElement)==null?void 0:o.tagName)==="IFRAME"&&!(c!=null&&c.contains(i.document.activeElement))&&r(t)},0)})].filter(Boolean);return()=>m.forEach(t=>t())}function Y(){const e=VueDemi.ref(!1),r=VueDemi.getCurrentInstance();return r&&VueDemi.onMounted(()=>{e.value=!0},VueDemi.isVue2?null:r),e}function W(e){const r=Y();return VueDemi.computed(()=>(r.value,!!e()))}function q(e,r={}){const{window:n=g}=r,i=W(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let a;const s=VueDemi.ref(!1),l=v=>{s.value=v.matches},f=()=>{a&&("removeEventListener"in a?a.removeEventListener("change",l):a.removeListener(l))},p=VueDemi.watchEffect(()=>{i.value&&(f(),a=n.matchMedia(E(e)),"addEventListener"in a?a.addEventListener("change",l):a.addListener(l),s.value=a.matches)});return N(()=>{p(),f(),a=void 0}),s}const M=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},_="__vueuse_ssr_handlers__",K=$();function $(){return _ in M||(M[_]=M[_]||{}),M[_]}function G(e,r){return K[e]||r}function U(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const X={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},C="vueuse-storage";function re(e,r,n,i={}){var a;const{flush:s="pre",deep:l=!0,listenToStorageChanges:f=!0,writeDefaults:p=!0,mergeDefaults:v=!1,shallow:m,window:u=g,eventFilter:t,onError:o=d=>{console.error(d)},initOnMounted:c}=i,y=(m?VueDemi.shallowRef:VueDemi.ref)(r);if(!n)try{n=G("getDefaultStorage",()=>{var d;return(d=g)==null?void 0:d.localStorage})()}catch(d){o(d)}if(!n)return y;const h=E(r),O=U(h),A=(a=i.serializer)!=null?a:X[O],{pause:P,resume:L}=k(y,()=>J(y.value),{flush:s,deep:l,eventFilter:t});u&&f&&z(()=>{V(u,"storage",I),V(u,C,x),c&&I()}),c||I();function R(d,w){u&&u.dispatchEvent(new CustomEvent(C,{detail:{key:e,oldValue:d,newValue:w,storageArea:n}}))}function J(d){try{const w=n.getItem(e);if(d==null)R(w,null),n.removeItem(e);else{const S=A.write(d);w!==S&&(n.setItem(e,S),R(w,S))}}catch(w){o(w)}}function j(d){const w=d?d.newValue:n.getItem(e);if(w==null)return p&&h!=null&&n.setItem(e,A.write(h)),h;if(!d&&v){const S=A.read(w);return typeof v=="function"?v(S,h):O==="object"&&!Array.isArray(S)?{...h,...S}:S}else return typeof w!="string"?w:A.read(w)}function I(d){if(!(d&&d.storageArea!==n)){if(d&&d.key==null){y.value=h;return}if(!(d&&d.key!==e)){P();try{(d==null?void 0:d.newValue)!==A.write(y.value)&&(y.value=j(d))}catch(w){o(w)}finally{d?VueDemi.nextTick(L):L()}}}}function x(d){I(d.detail)}return y}function Z(e,r,n={}){const{window:i=g,...a}=n;let s;const l=W(()=>i&&"MutationObserver"in i),f=()=>{s&&(s.disconnect(),s=void 0)},p=VueDemi.computed(()=>{const t=E(e),o=(Array.isArray(t)?t:[t]).map(b).filter(F);return new Set(o)}),v=VueDemi.watch(()=>p.value,t=>{f(),l.value&&i&&t.size&&(s=new MutationObserver(r),t.forEach(o=>s.observe(o,a)))},{immediate:!0,flush:"post"}),m=()=>s==null?void 0:s.takeRecords(),u=()=>{f(),v()};return N(u),{isSupported:l,stop:u,takeRecords:m}}function ee(e,r,n={}){const{window:i=g,...a}=n;let s;const l=W(()=>i&&"ResizeObserver"in i),f=()=>{s&&(s.disconnect(),s=void 0)},p=VueDemi.computed(()=>Array.isArray(e)?e.map(u=>b(u)):[b(e)]),v=VueDemi.watch(p,u=>{if(f(),l.value&&i){s=new ResizeObserver(r);for(const t of u)t&&s.observe(t,a)}},{immediate:!0,flush:"post"}),m=()=>{f(),v()};return N(m),{isSupported:l,stop:m}}function ie(e,r={}){const{reset:n=!0,windowResize:i=!0,windowScroll:a=!0,immediate:s=!0}=r,l=VueDemi.ref(0),f=VueDemi.ref(0),p=VueDemi.ref(0),v=VueDemi.ref(0),m=VueDemi.ref(0),u=VueDemi.ref(0),t=VueDemi.ref(0),o=VueDemi.ref(0);function c(){const y=b(e);if(!y){n&&(l.value=0,f.value=0,p.value=0,v.value=0,m.value=0,u.value=0,t.value=0,o.value=0);return}const h=y.getBoundingClientRect();l.value=h.height,f.value=h.bottom,p.value=h.left,v.value=h.right,m.value=h.top,u.value=h.width,t.value=h.x,o.value=h.y}return ee(e,c),VueDemi.watch(()=>b(e),y=>!y&&c()),Z(e,c,{attributeFilter:["style","class"]}),a&&V("scroll",c,{capture:!0,passive:!0}),i&&V("resize",c,{passive:!0}),z(()=>{s&&c()}),{height:l,bottom:f,left:p,right:v,top:m,width:u,x:t,y:o,update:c}}function oe(e,r,n={}){const{root:i,rootMargin:a="0px",threshold:s=.1,window:l=g,immediate:f=!0}=n,p=W(()=>l&&"IntersectionObserver"in l),v=VueDemi.computed(()=>{const c=E(e);return(Array.isArray(c)?c:[c]).map(b).filter(F)});let m=D;const u=VueDemi.ref(f),t=p.value?VueDemi.watch(()=>[v.value,b(i),u.value],([c,y])=>{if(m(),!u.value||!c.length)return;const h=new IntersectionObserver(r,{root:b(y),rootMargin:a,threshold:s});c.forEach(O=>O&&h.observe(O)),m=()=>{h.disconnect(),m=D}},{immediate:f,flush:"post"}):D,o=()=>{m(),t(),u.value=!1};return N(o),{isSupported:p,isActive:u,pause(){m(),u.value=!1},resume(){u.value=!0},stop:o}}function se(e={}){const{window:r=g,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:i=Number.POSITIVE_INFINITY,listenOrientation:a=!0,includeScrollbar:s=!0}=e,l=VueDemi.ref(n),f=VueDemi.ref(i),p=()=>{r&&(s?(l.value=r.innerWidth,f.value=r.innerHeight):(l.value=r.document.documentElement.clientWidth,f.value=r.document.documentElement.clientHeight))};if(p(),z(p),V("resize",p,{passive:!0}),a){const v=q("(orientation: portrait)");VueDemi.watch(v,()=>p())}return{width:l,height:f}}export{oe as a,ee as b,ie as c,re as d,se as e,ne as o,V as u}; diff --git a/js/@vueuse_core@10.9.0_vue@3.4.38-Cp_qoKMZ.js.gz b/js/@vueuse_core@10.9.0_vue@3.4.38-Cp_qoKMZ.js.gz deleted file mode 100644 index 7cdf95fa..00000000 Binary files a/js/@vueuse_core@10.9.0_vue@3.4.38-Cp_qoKMZ.js.gz and /dev/null differ diff --git a/js/@vueuse_core@10.9.0_vue@3.5.6-CMHqEu2-.js b/js/@vueuse_core@10.9.0_vue@3.5.6-CMHqEu2-.js new file mode 100644 index 00000000..73712fb5 --- /dev/null +++ b/js/@vueuse_core@10.9.0_vue@3.5.6-CMHqEu2-.js @@ -0,0 +1 @@ +import{n as D,t as E,i as H,a as N,w as k,b as z,c as B,d as F,e as Q}from"./@vueuse_shared@10.9.0_vue@3.5.6-BTLxKjPf.js";function b(e){var r;const n=E(e);return(r=n==null?void 0:n.$el)!=null?r:n}const g=B?window:void 0;function V(...e){let r,n,i,a;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,i,a]=e,r=g):[r,n,i,a]=e,!r)return D;Array.isArray(n)||(n=[n]),Array.isArray(i)||(i=[i]);const s=[],l=()=>{s.forEach(m=>m()),s.length=0},f=(m,u,t,o)=>(m.addEventListener(u,t,o),()=>m.removeEventListener(u,t,o)),p=VueDemi.watch(()=>[b(r),E(a)],([m,u])=>{if(l(),!m)return;const t=H(u)?{...u}:u;s.push(...n.flatMap(o=>i.map(c=>f(m,o,c,t))))},{immediate:!0,flush:"post"}),v=()=>{p(),l()};return N(v),v}let T=!1;function ne(e,r,n={}){const{window:i=g,ignore:a=[],capture:s=!0,detectIframe:l=!1}=n;if(!i)return D;Q&&!T&&(T=!0,Array.from(i.document.body.children).forEach(t=>t.addEventListener("click",D)),i.document.documentElement.addEventListener("click",D));let f=!0;const p=t=>a.some(o=>{if(typeof o=="string")return Array.from(i.document.querySelectorAll(o)).some(c=>c===t.target||t.composedPath().includes(c));{const c=b(o);return c&&(t.target===c||t.composedPath().includes(c))}}),m=[V(i,"click",t=>{const o=b(e);if(!(!o||o===t.target||t.composedPath().includes(o))){if(t.detail===0&&(f=!p(t)),!f){f=!0;return}r(t)}},{passive:!0,capture:s}),V(i,"pointerdown",t=>{const o=b(e);f=!p(t)&&!!(o&&!t.composedPath().includes(o))},{passive:!0}),l&&V(i,"blur",t=>{setTimeout(()=>{var o;const c=b(e);((o=i.document.activeElement)==null?void 0:o.tagName)==="IFRAME"&&!(c!=null&&c.contains(i.document.activeElement))&&r(t)},0)})].filter(Boolean);return()=>m.forEach(t=>t())}function Y(){const e=VueDemi.ref(!1),r=VueDemi.getCurrentInstance();return r&&VueDemi.onMounted(()=>{e.value=!0},VueDemi.isVue2?null:r),e}function W(e){const r=Y();return VueDemi.computed(()=>(r.value,!!e()))}function q(e,r={}){const{window:n=g}=r,i=W(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let a;const s=VueDemi.ref(!1),l=v=>{s.value=v.matches},f=()=>{a&&("removeEventListener"in a?a.removeEventListener("change",l):a.removeListener(l))},p=VueDemi.watchEffect(()=>{i.value&&(f(),a=n.matchMedia(E(e)),"addEventListener"in a?a.addEventListener("change",l):a.addListener(l),s.value=a.matches)});return N(()=>{p(),f(),a=void 0}),s}const M=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},_="__vueuse_ssr_handlers__",K=$();function $(){return _ in M||(M[_]=M[_]||{}),M[_]}function G(e,r){return K[e]||r}function U(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const X={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},C="vueuse-storage";function re(e,r,n,i={}){var a;const{flush:s="pre",deep:l=!0,listenToStorageChanges:f=!0,writeDefaults:p=!0,mergeDefaults:v=!1,shallow:m,window:u=g,eventFilter:t,onError:o=d=>{console.error(d)},initOnMounted:c}=i,y=(m?VueDemi.shallowRef:VueDemi.ref)(r);if(!n)try{n=G("getDefaultStorage",()=>{var d;return(d=g)==null?void 0:d.localStorage})()}catch(d){o(d)}if(!n)return y;const h=E(r),O=U(h),A=(a=i.serializer)!=null?a:X[O],{pause:P,resume:L}=k(y,()=>J(y.value),{flush:s,deep:l,eventFilter:t});u&&f&&z(()=>{V(u,"storage",I),V(u,C,x),c&&I()}),c||I();function R(d,w){u&&u.dispatchEvent(new CustomEvent(C,{detail:{key:e,oldValue:d,newValue:w,storageArea:n}}))}function J(d){try{const w=n.getItem(e);if(d==null)R(w,null),n.removeItem(e);else{const S=A.write(d);w!==S&&(n.setItem(e,S),R(w,S))}}catch(w){o(w)}}function j(d){const w=d?d.newValue:n.getItem(e);if(w==null)return p&&h!=null&&n.setItem(e,A.write(h)),h;if(!d&&v){const S=A.read(w);return typeof v=="function"?v(S,h):O==="object"&&!Array.isArray(S)?{...h,...S}:S}else return typeof w!="string"?w:A.read(w)}function I(d){if(!(d&&d.storageArea!==n)){if(d&&d.key==null){y.value=h;return}if(!(d&&d.key!==e)){P();try{(d==null?void 0:d.newValue)!==A.write(y.value)&&(y.value=j(d))}catch(w){o(w)}finally{d?VueDemi.nextTick(L):L()}}}}function x(d){I(d.detail)}return y}function Z(e,r,n={}){const{window:i=g,...a}=n;let s;const l=W(()=>i&&"MutationObserver"in i),f=()=>{s&&(s.disconnect(),s=void 0)},p=VueDemi.computed(()=>{const t=E(e),o=(Array.isArray(t)?t:[t]).map(b).filter(F);return new Set(o)}),v=VueDemi.watch(()=>p.value,t=>{f(),l.value&&i&&t.size&&(s=new MutationObserver(r),t.forEach(o=>s.observe(o,a)))},{immediate:!0,flush:"post"}),m=()=>s==null?void 0:s.takeRecords(),u=()=>{f(),v()};return N(u),{isSupported:l,stop:u,takeRecords:m}}function ee(e,r,n={}){const{window:i=g,...a}=n;let s;const l=W(()=>i&&"ResizeObserver"in i),f=()=>{s&&(s.disconnect(),s=void 0)},p=VueDemi.computed(()=>Array.isArray(e)?e.map(u=>b(u)):[b(e)]),v=VueDemi.watch(p,u=>{if(f(),l.value&&i){s=new ResizeObserver(r);for(const t of u)t&&s.observe(t,a)}},{immediate:!0,flush:"post"}),m=()=>{f(),v()};return N(m),{isSupported:l,stop:m}}function ie(e,r={}){const{reset:n=!0,windowResize:i=!0,windowScroll:a=!0,immediate:s=!0}=r,l=VueDemi.ref(0),f=VueDemi.ref(0),p=VueDemi.ref(0),v=VueDemi.ref(0),m=VueDemi.ref(0),u=VueDemi.ref(0),t=VueDemi.ref(0),o=VueDemi.ref(0);function c(){const y=b(e);if(!y){n&&(l.value=0,f.value=0,p.value=0,v.value=0,m.value=0,u.value=0,t.value=0,o.value=0);return}const h=y.getBoundingClientRect();l.value=h.height,f.value=h.bottom,p.value=h.left,v.value=h.right,m.value=h.top,u.value=h.width,t.value=h.x,o.value=h.y}return ee(e,c),VueDemi.watch(()=>b(e),y=>!y&&c()),Z(e,c,{attributeFilter:["style","class"]}),a&&V("scroll",c,{capture:!0,passive:!0}),i&&V("resize",c,{passive:!0}),z(()=>{s&&c()}),{height:l,bottom:f,left:p,right:v,top:m,width:u,x:t,y:o,update:c}}function oe(e,r,n={}){const{root:i,rootMargin:a="0px",threshold:s=.1,window:l=g,immediate:f=!0}=n,p=W(()=>l&&"IntersectionObserver"in l),v=VueDemi.computed(()=>{const c=E(e);return(Array.isArray(c)?c:[c]).map(b).filter(F)});let m=D;const u=VueDemi.ref(f),t=p.value?VueDemi.watch(()=>[v.value,b(i),u.value],([c,y])=>{if(m(),!u.value||!c.length)return;const h=new IntersectionObserver(r,{root:b(y),rootMargin:a,threshold:s});c.forEach(O=>O&&h.observe(O)),m=()=>{h.disconnect(),m=D}},{immediate:f,flush:"post"}):D,o=()=>{m(),t(),u.value=!1};return N(o),{isSupported:p,isActive:u,pause(){m(),u.value=!1},resume(){u.value=!0},stop:o}}function se(e={}){const{window:r=g,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:i=Number.POSITIVE_INFINITY,listenOrientation:a=!0,includeScrollbar:s=!0}=e,l=VueDemi.ref(n),f=VueDemi.ref(i),p=()=>{r&&(s?(l.value=r.innerWidth,f.value=r.innerHeight):(l.value=r.document.documentElement.clientWidth,f.value=r.document.documentElement.clientHeight))};if(p(),z(p),V("resize",p,{passive:!0}),a){const v=q("(orientation: portrait)");VueDemi.watch(v,()=>p())}return{width:l,height:f}}export{oe as a,ee as b,ie as c,re as d,se as e,ne as o,V as u}; diff --git a/js/@vueuse_core@10.9.0_vue@3.5.6-CMHqEu2-.js.gz b/js/@vueuse_core@10.9.0_vue@3.5.6-CMHqEu2-.js.gz new file mode 100644 index 00000000..95f005eb Binary files /dev/null and b/js/@vueuse_core@10.9.0_vue@3.5.6-CMHqEu2-.js.gz differ diff --git a/js/@vueuse_shared@10.9.0_vue@3.4.38-BTLxKjPf.js b/js/@vueuse_shared@10.9.0_vue@3.5.6-BTLxKjPf.js similarity index 100% rename from js/@vueuse_shared@10.9.0_vue@3.4.38-BTLxKjPf.js rename to js/@vueuse_shared@10.9.0_vue@3.5.6-BTLxKjPf.js diff --git a/js/@vueuse_shared@10.9.0_vue@3.4.38-BTLxKjPf.js.gz b/js/@vueuse_shared@10.9.0_vue@3.5.6-BTLxKjPf.js.gz similarity index 100% rename from js/@vueuse_shared@10.9.0_vue@3.4.38-BTLxKjPf.js.gz rename to js/@vueuse_shared@10.9.0_vue@3.5.6-BTLxKjPf.js.gz diff --git a/js/BarcodeDemo-C6DlA5tI.js b/js/BarcodeDemo-C6DlA5tI.js deleted file mode 100644 index 1162a00a..00000000 --- a/js/BarcodeDemo-C6DlA5tI.js +++ /dev/null @@ -1 +0,0 @@ -import{y as e}from"./hooks-DeCbIFFS.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.4.38-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.4.38-Cp_qoKMZ.js";import"./@vueuse_shared@10.9.0_vue@3.4.38-BTLxKjPf.js";import"./utils-DGuZdIHQ.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.38-f9XU7P4m.js";import"./@vue_reactivity@3.4.38-CmXFqMGn.js";import"./@vue_shared@3.4.38-D8qfpBTH.js";const g=Vue.defineComponent({name:"BarcodeDemo",setup(){const u={width:4},t=Vue.ref(!1),a=Vue.ref("RayTemplate");return{baseOptions:u,loading:t,text:a}},render(){const{baseOptions:u}=this;return Vue.createVNode(naive.NGrid,{cols:2,xGap:12,yGap:12},{default:()=>[Vue.createVNode(naive.NGridItem,{span:2},{default:()=>[Vue.createVNode(naive.NCard,{title:"详细配置项说明"},{default:()=>[Vue.createTextVNode("点击查看详细配置项:"),Vue.createVNode("a",{href:"https://github.com/lindell/JsBarcode/wiki/Options"},[Vue.createTextVNode("js-barcode options")]),Vue.createTextVNode("。")]})]}),Vue.createVNode(naive.NGridItem,{span:1},{default:()=>[Vue.createVNode(naive.NCard,{title:"基础条形码"},{default:()=>[Vue.createVNode(e,{text:"RayTemplate",options:{...u}},null)]})]}),Vue.createVNode(naive.NGridItem,{span:1},{default:()=>[Vue.createVNode(naive.NCard,{title:"自定义颜色条形码"},{default:()=>[Vue.createVNode(e,{text:"RayTemplate",options:{...u,lineColor:"red"}},null)]})]}),Vue.createVNode(naive.NGridItem,{span:1},{default:()=>[Vue.createVNode(naive.NCard,{title:"pharmacode 模式"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NAlert,{type:"warning",title:"注意"},{default:()=>[Vue.createTextVNode("该模式下,条形码只能渲染有效数值,否则将会渲染失败。可以查看官网说明:"),Vue.createVNode("a",{href:"https://github.com/lindell/JsBarcode/wiki/pharmacode"},[Vue.createTextVNode("pharmacode")]),Vue.createTextVNode("。")]}),Vue.createVNode(e,{text:"1234",format:"pharmacode",options:{width:4,height:40,displayValue:!1,background:"#eee"}},null)]})]})]}),Vue.createVNode(naive.NGridItem,{span:1},{default:()=>[Vue.createVNode(naive.NCard,{title:"codabar 模式"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NAlert,{type:"warning",title:"注意"},{default:()=>[Vue.createTextVNode("该模式下,需要注意 text 中的特殊字符,可以查看官网说明:"),Vue.createVNode("a",{href:"https://github.com/lindell/JsBarcode/wiki/codabar"},[Vue.createTextVNode("codabar")]),Vue.createTextVNode("。")]}),Vue.createVNode(e,{text:"1234",format:"codabar",options:{width:4,height:40,displayValue:!1,background:"#eee"}},null)]})]})]}),Vue.createVNode(naive.NGridItem,{span:1},{default:()=>[Vue.createVNode(naive.NCard,{title:"有状态的条形码"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0,size:"large",justify:"flex-start",inline:!0},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.loading,"onUpdate:value":t=>this.loading=t,style:"width: fit-content"},{checked:()=>"loading...",unchecked:()=>"success!"}),Vue.createVNode(e,{text:"RayTemplate",loading:this.loading},null)]})]})]}),Vue.createVNode(naive.NGridItem,{span:1},{default:()=>[Vue.createVNode(naive.NCard,{title:"watchText 主动监听 text 变化"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NInput,{value:this.text,"onUpdate:value":t=>this.text=t},null),Vue.createVNode(e,{text:this.text,watchText:!0},null)]})]})]})]})}});export{g as default}; diff --git a/js/BarcodeDemo-C6DlA5tI.js.gz b/js/BarcodeDemo-C6DlA5tI.js.gz deleted file mode 100644 index 219ca23c..00000000 Binary files a/js/BarcodeDemo-C6DlA5tI.js.gz and /dev/null differ diff --git a/js/BarcodeDemo-ChWYvWgI.js b/js/BarcodeDemo-ChWYvWgI.js new file mode 100644 index 00000000..945cc2b0 --- /dev/null +++ b/js/BarcodeDemo-ChWYvWgI.js @@ -0,0 +1 @@ +import{z as e}from"./hooks-DUpKDX8W.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.5.6-CMHqEu2-.js";import"./@vueuse_shared@10.9.0_vue@3.5.6-BTLxKjPf.js";import"./utils-DvxnuKiq.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.0.1_pinia@2.1.7-MNUqeAcu.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.0-DyxInw53.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.5.6-CUaD_-7Q.js";import"./@vue_reactivity@3.5.6-CXMPYrvZ.js";import"./@vue_shared@3.5.6-6BrT-eFF.js";const T=Vue.defineComponent({name:"BarcodeDemo",setup(){const u={width:4},t=Vue.ref(!1),a=Vue.ref("RayTemplate");return{baseOptions:u,loading:t,text:a}},render(){const{baseOptions:u}=this;return Vue.createVNode(naive.NGrid,{cols:2,xGap:12,yGap:12},{default:()=>[Vue.createVNode(naive.NGridItem,{span:2},{default:()=>[Vue.createVNode(naive.NCard,{title:"详细配置项说明"},{default:()=>[Vue.createTextVNode("点击查看详细配置项:"),Vue.createVNode("a",{href:"https://github.com/lindell/JsBarcode/wiki/Options"},[Vue.createTextVNode("js-barcode options")]),Vue.createTextVNode("。")]})]}),Vue.createVNode(naive.NGridItem,{span:1},{default:()=>[Vue.createVNode(naive.NCard,{title:"基础条形码"},{default:()=>[Vue.createVNode(e,{text:"RayTemplate",options:{...u}},null)]})]}),Vue.createVNode(naive.NGridItem,{span:1},{default:()=>[Vue.createVNode(naive.NCard,{title:"自定义颜色条形码"},{default:()=>[Vue.createVNode(e,{text:"RayTemplate",options:{...u,lineColor:"red"}},null)]})]}),Vue.createVNode(naive.NGridItem,{span:1},{default:()=>[Vue.createVNode(naive.NCard,{title:"pharmacode 模式"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NAlert,{type:"warning",title:"注意"},{default:()=>[Vue.createTextVNode("该模式下,条形码只能渲染有效数值,否则将会渲染失败。可以查看官网说明:"),Vue.createVNode("a",{href:"https://github.com/lindell/JsBarcode/wiki/pharmacode"},[Vue.createTextVNode("pharmacode")]),Vue.createTextVNode("。")]}),Vue.createVNode(e,{text:"1234",format:"pharmacode",options:{width:4,height:40,displayValue:!1,background:"#eee"}},null)]})]})]}),Vue.createVNode(naive.NGridItem,{span:1},{default:()=>[Vue.createVNode(naive.NCard,{title:"codabar 模式"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NAlert,{type:"warning",title:"注意"},{default:()=>[Vue.createTextVNode("该模式下,需要注意 text 中的特殊字符,可以查看官网说明:"),Vue.createVNode("a",{href:"https://github.com/lindell/JsBarcode/wiki/codabar"},[Vue.createTextVNode("codabar")]),Vue.createTextVNode("。")]}),Vue.createVNode(e,{text:"1234",format:"codabar",options:{width:4,height:40,displayValue:!1,background:"#eee"}},null)]})]})]}),Vue.createVNode(naive.NGridItem,{span:1},{default:()=>[Vue.createVNode(naive.NCard,{title:"有状态的条形码"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0,size:"large",justify:"flex-start",inline:!0},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.loading,"onUpdate:value":t=>this.loading=t,style:"width: fit-content"},{checked:()=>"loading...",unchecked:()=>"success!"}),Vue.createVNode(e,{text:"RayTemplate",loading:this.loading},null)]})]})]}),Vue.createVNode(naive.NGridItem,{span:1},{default:()=>[Vue.createVNode(naive.NCard,{title:"watchText 主动监听 text 变化"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NInput,{value:this.text,"onUpdate:value":t=>this.text=t},null),Vue.createVNode(e,{text:this.text,watchText:!0},null)]})]})]})]})}});export{T as default}; diff --git a/js/BarcodeDemo-ChWYvWgI.js.gz b/js/BarcodeDemo-ChWYvWgI.js.gz new file mode 100644 index 00000000..241f2670 Binary files /dev/null and b/js/BarcodeDemo-ChWYvWgI.js.gz differ diff --git a/js/TablePro-DyGNxTE3.js b/js/TablePro-DyGNxTE3.js deleted file mode 100644 index 466df67c..00000000 --- a/js/TablePro-DyGNxTE3.js +++ /dev/null @@ -1 +0,0 @@ -import{O,P as I,F as U,I as G,Q as $,U as L,H as z,J as M,V as _,W as H,r as q,X as J}from"./hooks-DeCbIFFS.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./print-js@1.6.0-BdoEj60G.js";import{a as Q}from"./vue-hooks-plus@2.2.1_vue@3.4.38-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import{d as A,u as W}from"./utils-DGuZdIHQ.js";import{o as X}from"./lodash-es@4.17.21-BALnwRTu.js";import"./instance-B5j64X7o.js";import{M as K}from"./mockjs@1.1.0-CxlURkif.js";import"./@vueuse_core@10.9.0_vue@3.4.38-Cp_qoKMZ.js";import"./@vueuse_shared@10.9.0_vue@3.4.38-BTLxKjPf.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.38-f9XU7P4m.js";import"./@vue_reactivity@3.4.38-CmXFqMGn.js";import"./@vue_shared@3.4.38-D8qfpBTH.js";function Y(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Z=Vue.defineComponent({name:"RCollapse",props:Object.assign({},{...O,open:{type:Boolean,default:!0},cols:{type:Number,default:4}},I),render(){const{$slots:e,$props:d}=this,{labelPlacement:p,showFeedback:c,...m}=d;return Vue.createVNode(U,Vue.mergeProps(m,{labelPlacement:"top",showFeedback:!1}),{default:()=>[Vue.createVNode(G,m,Y(e)?e:{default:()=>[e]})]})}}),ee={...X($,["pagination"]),paginationCount:{type:Number,default:1},onRegister:{type:Function,default:void 0},manual:{type:Boolean,default:!1},request:{type:Function},onTablePaginationUpdate:{type:Function},requestConfig:{type:Object,default:()=>({})},showPagination:{type:Boolean,default:!1},remote:{type:Boolean,default:!0}},te=ee;function ae(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const ue=Vue.defineComponent({name:"RTablePro",props:te,setup(e){const[d,{clearFilters:p,clearSorter:c,downloadCsv:m,filters:i,page:n,scrollTo:g,sort:N,print:b,filter:y}]=L(),[T,{getPage:k,getPageSize:P,setCallback:h,setItemCount:F,resetPagination:v,getItemCount:u}]=z(void 0,{prefix:t=>`共 ${t.itemCount} 条`}),V=Vue.computed(()=>e.request),w=()=>({getItemCount:u,getPage:k,getPageSize:P}),R=()=>{const{onTablePaginationUpdate:t}=e;t&&A(t,w())},E=t=>{const r=Object.assign({},e.requestConfig,t),{params:a,formatRangeTime:o}=r;return o!=null&&o.length&&a&&o.forEach(B=>{const{key:C,target:l}=B,s=a[C];if(s&&(l!=null&&l.length)){const[j,f]=s;a[l[0]]=j,a[l[1]]=f}else a[C]=null,a[l[0]]=null,a[l[1]]=null}),Object.assign({},a,{page:k(),pageSize:P()})},x=t=>{var a;v();const r=E(t);(a=V.value)==null||a.call(V,r)},S=t=>{var a;const r=E(t);(a=V.value)==null||a.call(V,r)};return Vue.watchEffect(()=>{F(e.paginationCount),h(()=>{const{manual:t}=e;t||S(),R()})}),Vue.onMounted(()=>{const{onRegister:t}=e;t&&A(t,{getTablePagination:w,runTableRequest:x,clearFilters:p,clearSorter:c,downloadCsv:m,filters:i,page:n,scrollTo:g,sort:N,print:b,filter:y,getCurrentTableRequestParams:E})}),{register:d,paginationRef:T}},render(){const{register:e,$props:d,paginationRef:p,$slots:c}=this,{onRegister:m,showPagination:i,...n}=d;return Vue.createVNode(M,Vue.mergeProps(n,{onRegister:e,pagination:i?p:void 0}),ae(c)?c:{default:()=>[c]})}});function oe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Fe=Vue.defineComponent({name:"TableProDemo",setup(){const{format:e}=J(),[d,{runTableRequest:p,getCurrentTableRequestParams:c,print:m,downloadCsv:i}]=_(),n=Vue.ref([]),g=[{type:"selection"},{title:"Name",key:"name"},{title:"Sign Status",key:"statusText"},{title:"Sign Time",key:"signTimeStart",render:t=>e(t.signTimeStart)+" ~ "+e(t.signTimeEnd)},{title:"Age",key:"age"},{title:"Address",key:"address"},{title:"Tags",key:"tags",render:t=>t.tags.map(a=>Vue.createVNode(naive.NTag,{type:"info",bordered:!1,style:"margin-right: 6px"},oe(a)?a:{default:()=>[a]}))},{title:"Remark",key:"remark"}],N=Vue.ref(0),b=Vue.ref({}),y=Vue.ref((()=>{const r=[],a=dayjs().valueOf();for(let o=0;o<30;o++)r.push({key:W(),name:K.Random.cname(),age:o+20,address:K.Random.city(),tags:["nice","developer"],remark:"我是一条很长很长的备注",status:o%2===0?"success":"error",statusText:o%2===0?"在线":"离线",signTimeStart:dayjs(a).add(o*2,"year").valueOf(),signTimeEnd:dayjs(a).add(o+5,"day").valueOf()});return r})()),T=Vue.ref({pagination:!0,manual:!1}),[k,{checkedRowKeysBind:P,getKeys:h,getRows:F,clearKey:v,clearAll:u,selectKey:V}]=H(n,g,{rowKey:"key",onChange:(t,r,a)=>{}}),w=Vue.ref(!0),R=t=>t==null,E=t=>new Promise(r=>{const{page:a=1,pageSize:o=10,name:D,status:B,signTimeStart:C,signTimeEnd:l}=t||{};let s=y.value;const j=y.value.length;D&&(s=s.filter(f=>f.name.includes(D))),B&&(s=s.filter(f=>f.status===B)),C&&l&&(s=s.filter(f=>f.signTimeStart>=C&&f.signTimeEnd<=l)),s=s.slice((a-1)*o,a*o),setTimeout(()=>{r({code:0,data:s,total:R(B)&&R(D)&&(R(C)||R(l))?j:s.length,message:"success",page:a,pageSize:o})},1e3)}),{run:x,loading:S}=Q(E,{onSuccess:t=>{const{data:r,total:a}=t;n.value=r,N.value=a}});return{tableDataRef:n,baseColumns:g,itemCountRef:N,loadingGetPersonList:S,runGetPersonList:x,conditionRef:b,radioRef:T,runTableRequest:p,tableProRegister:d,print:m,downloadCsv:i,checkedRowKeysBind:P,checkedRowKeys:k,getKeys:h,getRows:F,clearKey:v,clearAll:u,collapseRef:w,selectKey:V}},render(){const{tableDataRef:e,baseColumns:d,itemCountRef:p,loadingGetPersonList:c,runGetPersonList:m,conditionRef:i,radioRef:n,runTableRequest:g,tableProRegister:N,print:b,downloadCsv:y,checkedRowKeysBind:T,getKeys:k,getRows:P,clearKey:h,clearAll:F,selectKey:v}=this;return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(Z,{open:this.collapseRef},{default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NFormItemGi,{label:"用户名"},{default:()=>[Vue.createVNode(naive.NInput,{value:i.name,"onUpdate:value":u=>i.name=u,clearable:!0},null)]}),Vue.createVNode(naive.NFormItemGi,{label:"状态"},{default:()=>[Vue.createVNode(naive.NSelect,{value:i.status,"onUpdate:value":u=>i.status=u,clearable:!0,options:[{label:"成功",value:"success"},{label:"失败",value:"error"}]},null)]}),Vue.createVNode(naive.NFormItemGi,{label:"登陆时间"},{default:()=>[Vue.createVNode(naive.NDatePicker,{type:"datetimerange",value:i.RangeTime,"onUpdate:value":u=>i.RangeTime=u,clearable:!0},null)]}),Vue.createVNode(naive.NFormItemGi,{label:"演示折叠的条件框"},{default:()=>[Vue.createVNode(naive.NInput,{readonly:!0,placeholder:"我只是为了占位"},null)]})]),action:()=>Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{type:"primary",onClick:()=>g(),loading:c},{default:()=>[Vue.createTextVNode("查询")]})]}),collapse:u=>u?Vue.createVNode(naive.NButton,{onClick:()=>this.collapseRef=!0,secondary:!0},{default:()=>"受控展开",icon:()=>Vue.createVNode(q,{name:"dark",size:"18"},null)}):Vue.createVNode(naive.NButton,{onClick:()=>this.collapseRef=!1,secondary:!0},{default:()=>"受控收起",icon:()=>Vue.createVNode(q,{name:"light",size:"18"},null)})}),Vue.createVNode(naive.NCard,{title:"常用高级拓展功能"},{default:()=>[Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NFormItem,{label:"分页"},{default:()=>[Vue.createVNode(naive.NRadioGroup,{value:n.pagination,"onUpdate:value":u=>n.pagination=u},{default:()=>[Vue.createVNode(naive.NRadioButton,{value:!0},{default:()=>[Vue.createTextVNode("显示分页")]}),Vue.createVNode(naive.NRadioButton,{value:!1},{default:()=>[Vue.createTextVNode("隐藏分页")]})]})]}),Vue.createVNode(naive.NFormItem,{label:"自动更新"},{default:()=>[Vue.createVNode(naive.NRadioGroup,{value:n.manual,"onUpdate:value":u=>n.manual=u},{default:()=>[Vue.createVNode(naive.NRadioButton,{value:!1},{default:()=>[Vue.createTextVNode("自动更新")]}),Vue.createVNode(naive.NRadioButton,{value:!0},{default:()=>[Vue.createTextVNode("取消自动")]})]})]})]})]}),Vue.createVNode(naive.NCard,{title:"useTablePro 部分方法"},{default:()=>[Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{type:"primary",onClick:()=>b()},{default:()=>[Vue.createTextVNode("打印")]}),Vue.createVNode(naive.NButton,{type:"primary",onClick:()=>y()},{default:()=>[Vue.createTextVNode("下载 csv")]})]})]}),Vue.createVNode(naive.NCard,{title:"useCheckedRowKeys 部分方法"},{default:()=>[Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{type:"primary",onClick:()=>{const u=e[1].key;v(u)}},{default:()=>[Vue.createTextVNode("选中第二行")]}),Vue.createVNode(naive.NButton,{type:"primary",onClick:()=>{const u=e[1].key;h(u)}},{default:()=>[Vue.createTextVNode("取消选中第二行")]}),Vue.createVNode(naive.NButton,{type:"primary",onClick:()=>{e==null||e.forEach(u=>v(u.key))}},{default:()=>[Vue.createTextVNode("选中当前页面所有行")]}),Vue.createVNode(naive.NButton,{type:"primary",onClick:()=>{F()}},{default:()=>[Vue.createTextVNode("取消所有已选中行")]})]})]}),Vue.createVNode(ue,{onRegister:N,data:e,columns:d,loading:c,paginationCount:p,request:m,requestConfig:{params:i,formatRangeTime:[{key:"RangeTime",target:["signTimeStart","signTimeEnd"]}]},showPagination:n.pagination,manual:n.manual,rowKey:u=>u.key,checkedRowKeys:this.checkedRowKeys,"onUpdate:checkedRowKeys":u=>this.checkedRowKeys=u,onUpdateCheckedRowKeys:T},null)]})}});export{Fe as default}; diff --git a/js/TablePro-DyGNxTE3.js.gz b/js/TablePro-DyGNxTE3.js.gz deleted file mode 100644 index 7911374f..00000000 Binary files a/js/TablePro-DyGNxTE3.js.gz and /dev/null differ diff --git a/js/TablePro-QnGoLe7d.js b/js/TablePro-QnGoLe7d.js new file mode 100644 index 00000000..fb68e602 --- /dev/null +++ b/js/TablePro-QnGoLe7d.js @@ -0,0 +1 @@ +import{P as O,Q as G,G as I,J as U,U as $,V as L,I as z,K as M,W as _,X as J,t as K,Y as Q}from"./hooks-DUpKDX8W.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./print-js@1.6.0-BdoEj60G.js";import{a as W}from"./vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import{f as q,u as X}from"./utils-DvxnuKiq.js";import{o as Y}from"./lodash-es@4.17.21-BALnwRTu.js";import"./instance-Mlryd73B.js";import{M as A}from"./mockjs@1.1.0-CxlURkif.js";import"./@vueuse_core@10.9.0_vue@3.5.6-CMHqEu2-.js";import"./@vueuse_shared@10.9.0_vue@3.5.6-BTLxKjPf.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.0.1_pinia@2.1.7-MNUqeAcu.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.0-DyxInw53.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.5.6-CUaD_-7Q.js";import"./@vue_reactivity@3.5.6-CXMPYrvZ.js";import"./@vue_shared@3.5.6-6BrT-eFF.js";function H(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Z=Vue.defineComponent({name:"RCollapse",props:Object.assign({},{...O,open:{type:Boolean,default:!0},cols:{type:Number,default:4}},G),render(){const{$slots:e,$props:d}=this,{labelPlacement:p,showFeedback:c,...m}=d;return Vue.createVNode(I,Vue.mergeProps(m,{labelPlacement:"top",showFeedback:!1}),{default:()=>[Vue.createVNode(U,m,H(e)?e:{default:()=>[e]})]})}}),ee={...Y($,["pagination"]),paginationCount:{type:Number,default:1},onRegister:{type:Function,default:void 0},manual:{type:Boolean,default:!1},request:{type:Function},onTablePaginationUpdate:{type:Function},requestConfig:{type:Object,default:()=>({})},showPagination:{type:Boolean,default:!1},remote:{type:Boolean,default:!0}},te=ee;function ae(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const ue=Vue.defineComponent({name:"RTablePro",props:te,setup(e){const[d,{clearFilters:p,clearSorter:c,downloadCsv:m,filters:i,page:n,scrollTo:g,sort:N,print:b,filter:y}]=L(),[T,{getPage:k,getPageSize:P,setCallback:h,setItemCount:F,resetPagination:v,getItemCount:u}]=z(void 0,{prefix:t=>`共 ${t.itemCount} 条`}),V=Vue.computed(()=>e.request),w=()=>({getItemCount:u,getPage:k,getPageSize:P}),R=()=>{const{onTablePaginationUpdate:t}=e;t&&q(t,w())},E=t=>{const r=Object.assign({},e.requestConfig,t),{params:a,formatRangeTime:o}=r;return o!=null&&o.length&&a&&o.forEach(B=>{const{key:C,target:l}=B,s=a[C];if(s&&(l!=null&&l.length)){const[j,f]=s;a[l[0]]=j,a[l[1]]=f}else a[C]=null,a[l[0]]=null,a[l[1]]=null}),Object.assign({},a,{page:k(),pageSize:P()})},x=t=>{var a;v();const r=E(t);(a=V.value)==null||a.call(V,r)},S=t=>{var a;const r=E(t);(a=V.value)==null||a.call(V,r)};return Vue.watchEffect(()=>{F(e.paginationCount),h(()=>{const{manual:t}=e;t||S(),R()})}),Vue.onMounted(()=>{const{onRegister:t}=e;t&&q(t,{getTablePagination:w,runTableRequest:x,clearFilters:p,clearSorter:c,downloadCsv:m,filters:i,page:n,scrollTo:g,sort:N,print:b,filter:y,getCurrentTableRequestParams:E})}),{register:d,paginationRef:T}},render(){const{register:e,$props:d,paginationRef:p,$slots:c}=this,{onRegister:m,showPagination:i,...n}=d;return Vue.createVNode(M,Vue.mergeProps(n,{onRegister:e,pagination:i?p:void 0}),ae(c)?c:{default:()=>[c]})}});function oe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Be=Vue.defineComponent({name:"TableProDemo",setup(){const{format:e}=Q(),[d,{runTableRequest:p,getCurrentTableRequestParams:c,print:m,downloadCsv:i}]=_(),n=Vue.ref([]),g=[{type:"selection"},{title:"Name",key:"name"},{title:"Sign Status",key:"statusText"},{title:"Sign Time",key:"signTimeStart",render:t=>e(t.signTimeStart)+" ~ "+e(t.signTimeEnd)},{title:"Age",key:"age"},{title:"Address",key:"address"},{title:"Tags",key:"tags",render:t=>t.tags.map(a=>Vue.createVNode(naive.NTag,{type:"info",bordered:!1,style:"margin-right: 6px"},oe(a)?a:{default:()=>[a]}))},{title:"Remark",key:"remark"}],N=Vue.ref(0),b=Vue.ref({}),y=Vue.ref((()=>{const r=[],a=dayjs().valueOf();for(let o=0;o<30;o++)r.push({key:X(),name:A.Random.cname(),age:o+20,address:A.Random.city(),tags:["nice","developer"],remark:"我是一条很长很长的备注",status:o%2===0?"success":"error",statusText:o%2===0?"在线":"离线",signTimeStart:dayjs(a).add(o*2,"year").valueOf(),signTimeEnd:dayjs(a).add(o+5,"day").valueOf()});return r})()),T=Vue.ref({pagination:!0,manual:!1}),[k,{checkedRowKeysBind:P,getKeys:h,getRows:F,clearKey:v,clearAll:u,selectKey:V}]=J(n,g,{rowKey:"key",onChange:(t,r,a)=>{}}),w=Vue.ref(!0),R=t=>t==null,E=t=>new Promise(r=>{const{page:a=1,pageSize:o=10,name:D,status:B,signTimeStart:C,signTimeEnd:l}=t||{};let s=y.value;const j=y.value.length;D&&(s=s.filter(f=>f.name.includes(D))),B&&(s=s.filter(f=>f.status===B)),C&&l&&(s=s.filter(f=>f.signTimeStart>=C&&f.signTimeEnd<=l)),s=s.slice((a-1)*o,a*o),setTimeout(()=>{r({code:0,data:s,total:R(B)&&R(D)&&(R(C)||R(l))?j:s.length,message:"success",page:a,pageSize:o})},1e3)}),{run:x,loading:S}=W(E,{onSuccess:t=>{const{data:r,total:a}=t;n.value=r,N.value=a}});return{tableDataRef:n,baseColumns:g,itemCountRef:N,loadingGetPersonList:S,runGetPersonList:x,conditionRef:b,radioRef:T,runTableRequest:p,tableProRegister:d,print:m,downloadCsv:i,checkedRowKeysBind:P,checkedRowKeys:k,getKeys:h,getRows:F,clearKey:v,clearAll:u,collapseRef:w,selectKey:V}},render(){const{tableDataRef:e,baseColumns:d,itemCountRef:p,loadingGetPersonList:c,runGetPersonList:m,conditionRef:i,radioRef:n,runTableRequest:g,tableProRegister:N,print:b,downloadCsv:y,checkedRowKeysBind:T,getKeys:k,getRows:P,clearKey:h,clearAll:F,selectKey:v}=this;return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(Z,{open:this.collapseRef},{default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NFormItemGi,{label:"用户名"},{default:()=>[Vue.createVNode(naive.NInput,{value:i.name,"onUpdate:value":u=>i.name=u,clearable:!0},null)]}),Vue.createVNode(naive.NFormItemGi,{label:"状态"},{default:()=>[Vue.createVNode(naive.NSelect,{value:i.status,"onUpdate:value":u=>i.status=u,clearable:!0,options:[{label:"成功",value:"success"},{label:"失败",value:"error"}]},null)]}),Vue.createVNode(naive.NFormItemGi,{label:"登陆时间"},{default:()=>[Vue.createVNode(naive.NDatePicker,{type:"datetimerange",value:i.RangeTime,"onUpdate:value":u=>i.RangeTime=u,clearable:!0},null)]}),Vue.createVNode(naive.NFormItemGi,{label:"演示折叠的条件框"},{default:()=>[Vue.createVNode(naive.NInput,{readonly:!0,placeholder:"我只是为了占位"},null)]})]),action:()=>Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{type:"primary",onClick:()=>g(),loading:c},{default:()=>[Vue.createTextVNode("查询")]})]}),collapse:u=>u?Vue.createVNode(naive.NButton,{onClick:()=>this.collapseRef=!0,secondary:!0},{default:()=>"受控展开",icon:()=>Vue.createVNode(K,{name:"dark",size:"18"},null)}):Vue.createVNode(naive.NButton,{onClick:()=>this.collapseRef=!1,secondary:!0},{default:()=>"受控收起",icon:()=>Vue.createVNode(K,{name:"light",size:"18"},null)})}),Vue.createVNode(naive.NCard,{title:"常用高级拓展功能"},{default:()=>[Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NFormItem,{label:"分页"},{default:()=>[Vue.createVNode(naive.NRadioGroup,{value:n.pagination,"onUpdate:value":u=>n.pagination=u},{default:()=>[Vue.createVNode(naive.NRadioButton,{value:!0},{default:()=>[Vue.createTextVNode("显示分页")]}),Vue.createVNode(naive.NRadioButton,{value:!1},{default:()=>[Vue.createTextVNode("隐藏分页")]})]})]}),Vue.createVNode(naive.NFormItem,{label:"自动更新"},{default:()=>[Vue.createVNode(naive.NRadioGroup,{value:n.manual,"onUpdate:value":u=>n.manual=u},{default:()=>[Vue.createVNode(naive.NRadioButton,{value:!1},{default:()=>[Vue.createTextVNode("自动更新")]}),Vue.createVNode(naive.NRadioButton,{value:!0},{default:()=>[Vue.createTextVNode("取消自动")]})]})]})]})]}),Vue.createVNode(naive.NCard,{title:"useTablePro 部分方法"},{default:()=>[Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{type:"primary",onClick:()=>b()},{default:()=>[Vue.createTextVNode("打印")]}),Vue.createVNode(naive.NButton,{type:"primary",onClick:()=>y()},{default:()=>[Vue.createTextVNode("下载 csv")]})]})]}),Vue.createVNode(naive.NCard,{title:"useCheckedRowKeys 部分方法"},{default:()=>[Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{type:"primary",onClick:()=>{const u=e[1].key;v(u)}},{default:()=>[Vue.createTextVNode("选中第二行")]}),Vue.createVNode(naive.NButton,{type:"primary",onClick:()=>{const u=e[1].key;h(u)}},{default:()=>[Vue.createTextVNode("取消选中第二行")]}),Vue.createVNode(naive.NButton,{type:"primary",onClick:()=>{e==null||e.forEach(u=>v(u.key))}},{default:()=>[Vue.createTextVNode("选中当前页面所有行")]}),Vue.createVNode(naive.NButton,{type:"primary",onClick:()=>{F()}},{default:()=>[Vue.createTextVNode("取消所有已选中行")]})]})]}),Vue.createVNode(ue,{onRegister:N,data:e,columns:d,loading:c,paginationCount:p,request:m,requestConfig:{params:i,formatRangeTime:[{key:"RangeTime",target:["signTimeStart","signTimeEnd"]}]},showPagination:n.pagination,manual:n.manual,rowKey:u=>u.key,checkedRowKeys:this.checkedRowKeys,"onUpdate:checkedRowKeys":u=>this.checkedRowKeys=u,onUpdateCheckedRowKeys:T},null)]})}});export{Be as default}; diff --git a/js/TablePro-QnGoLe7d.js.gz b/js/TablePro-QnGoLe7d.js.gz new file mode 100644 index 00000000..240d3406 Binary files /dev/null and b/js/TablePro-QnGoLe7d.js.gz differ diff --git a/js/deep-pick-omit@1.2.0-DyxInw53.js b/js/deep-pick-omit@1.2.0-DyxInw53.js new file mode 100644 index 00000000..0ebb2112 --- /dev/null +++ b/js/deep-pick-omit@1.2.0-DyxInw53.js @@ -0,0 +1 @@ +function u(e,n){if(e==null)return;let r=e;for(let t=0;t1&&(n=i(typeof e!="object"||e===null||!Object.prototype.hasOwnProperty.call(e,t)?Number.isInteger(Number(r[1]))?[]:{}:e[t],n,Array.prototype.slice.call(r,1))),Number.isInteger(Number(t))&&Array.isArray(e)?e.slice()[t]:Object.assign({},e,{[t]:n})}function l(e,n){if(e==null||n.length===0)return e;if(n.length===1){if(e==null)return e;if(Number.isInteger(n[0])&&Array.isArray(e))return Array.prototype.slice.call(e,0).splice(n[0],1);const r={};for(const t in e)r[t]=e[t];return delete r[n[0]],r}if(e[n[0]]==null){if(Number.isInteger(n[0])&&Array.isArray(e))return Array.prototype.concat.call([],e);const r={};for(const t in e)r[t]=e[t];return r}return i(e,l(e[n[0]],Array.prototype.slice.call(n,1)),[n[0]])}function s(e,n){return n.map(r=>r.split(".")).map(r=>[r,u(e,r)]).filter(r=>!!r[1]).reduce((r,t)=>i(r,t[1],t[0]),{})}function c(e,n){return n.map(r=>r.split(".")).reduce((r,t)=>l(r,t),e)}export{c as a,s as d}; diff --git a/js/deep-pick-omit@1.2.0-DyxInw53.js.gz b/js/deep-pick-omit@1.2.0-DyxInw53.js.gz new file mode 100644 index 00000000..8c27cf60 Binary files /dev/null and b/js/deep-pick-omit@1.2.0-DyxInw53.js.gz differ diff --git a/js/destr@2.0.3-CVtkxrq9.js b/js/destr@2.0.3-CVtkxrq9.js new file mode 100644 index 00000000..4e3bfa68 --- /dev/null +++ b/js/destr@2.0.3-CVtkxrq9.js @@ -0,0 +1 @@ +const e=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,s=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,i=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function u(r,n){if(r==="__proto__"||r==="constructor"&&n&&typeof n=="object"&&"prototype"in n){f(r);return}return n}function f(r){console.warn(`[destr] Dropping "${r}" key to prevent prototype pollution.`)}function c(r,n={}){if(typeof r!="string")return r;const o=r.trim();if(r[0]==='"'&&r.endsWith('"')&&!r.includes("\\"))return o.slice(1,-1);if(o.length<=9){const t=o.toLowerCase();if(t==="true")return!0;if(t==="false")return!1;if(t==="undefined")return;if(t==="null")return null;if(t==="nan")return Number.NaN;if(t==="infinity")return Number.POSITIVE_INFINITY;if(t==="-infinity")return Number.NEGATIVE_INFINITY}if(!i.test(r)){if(n.strict)throw new SyntaxError("[destr] Invalid JSON");return r}try{if(e.test(r)||s.test(r)){if(n.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(r,u)}return JSON.parse(r)}catch(t){if(n.strict)throw t;return r}}export{c as d}; diff --git a/js/destr@2.0.3-CVtkxrq9.js.gz b/js/destr@2.0.3-CVtkxrq9.js.gz new file mode 100644 index 00000000..1c8ee925 Binary files /dev/null and b/js/destr@2.0.3-CVtkxrq9.js.gz differ diff --git a/js/en-US-BIc6akN3.js b/js/en-US-BIc6akN3.js new file mode 100644 index 00000000..2212bbe1 --- /dev/null +++ b/js/en-US-BIc6akN3.js @@ -0,0 +1 @@ +import{y as Z}from"./hooks-DUpKDX8W.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.5.6-CMHqEu2-.js";import"./@vueuse_shared@10.9.0_vue@3.5.6-BTLxKjPf.js";import"./utils-DvxnuKiq.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.0.1_pinia@2.1.7-MNUqeAcu.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.0-DyxInw53.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.5.6-CUaD_-7Q.js";import"./@vue_reactivity@3.5.6-CXMPYrvZ.js";import"./@vue_shared@3.5.6-6BrT-eFF.js";const e="The current environment does not support full screen",ee={isEnabledFullscreen:e},oe=Object.freeze(Object.defineProperty({__proto__:null,default:ee,isEnabledFullscreen:e},Symbol.toStringTag,{value:"Module"})),o="Configuration",t={Title:"Theme",Dark:"Dark",Light:"Light",PrimaryColorConfig:"Primary Color"},n="Display",c="Content Transition",te={Title:o,ThemeOptions:t,InterfaceDisplay:n,ContentTransition:c},ne=Object.freeze(Object.defineProperty({__proto__:null,ContentTransition:c,InterfaceDisplay:n,ThemeOptions:t,Title:o,default:te},Symbol.toStringTag,{value:"Module"})),r="Reload Current Page",i="Lock",s="Setting",l="Github",a="Full Screen",m="Cancel Full Screen",g="Search",ce={Reload:r,Lock:i,Setting:s,Github:l,FullScreen:a,CancelFullScreen:m,Search:g},re=Object.freeze(Object.defineProperty({__proto__:null,CancelFullScreen:m,FullScreen:a,Github:l,Lock:i,Reload:r,Search:g,Setting:s,default:ce},Symbol.toStringTag,{value:"Module"})),u="Axios Request",p="Barcode",d="Cache Utils Demo",_="Precision",S="Right Click Menu",f="Home",b="Directive",h="Doc",T="Doc (China)",D="Doc(inside)",y="Chart",C="Form",P="Mock",O="Modal",R="MultiMenu(catch)",M="Office",v="Document",j="Presentation",L="Spreadsheet",k="QRCode",F="Rely",I="Rely About",U="Same Level Router Demo",x="Segment",w="SVG Icon",A="Table",z="Template Api",E="Scroll Reveal",Q="Table Pro",ie={Axios:u,Barcode:p,CacheDemo:d,CalculatePrecision:_,ContextMenu:S,Dashboard:f,Directive:b,Doc:h,DocLocal:T,DocLocalInside:D,Echart:y,Error:"Error Page",Form:C,Mock:P,Modal:O,MultiMenu:R,Office:M,Office_Document:v,Office_Presentation:j,Office_Spreadsheet:L,QRCode:k,Rely:F,RelyAbout:I,RouterDemo:U,Segment:x,SvgIcon:w,Table:A,TemplateHooks:z,scrollReveal:E,TablePro:Q},se=Object.freeze(Object.defineProperty({__proto__:null,Axios:u,Barcode:p,CacheDemo:d,CalculatePrecision:_,ContextMenu:S,Dashboard:f,Directive:b,Doc:h,DocLocal:T,DocLocalInside:D,Echart:y,Form:C,Mock:P,Modal:O,MultiMenu:R,Office:M,Office_Document:v,Office_Presentation:j,Office_Spreadsheet:L,QRCode:k,Rely:F,RelyAbout:I,RouterDemo:U,Segment:x,SvgIcon:w,Table:A,TablePro:Q,TemplateHooks:z,default:ie,scrollReveal:E},Symbol.toStringTag,{value:"Module"})),N="Configuration",B={Title:"Theme",Dark:"Dark",Light:"Light",PrimaryColorConfig:"Primary Color"},G="Interface Display",le={Title:N,ThemeOptions:B,InterfaceDisplay:G},ae=Object.freeze(Object.defineProperty({__proto__:null,InterfaceDisplay:G,ThemeOptions:B,Title:N,default:le},Symbol.toStringTag,{value:"Module"})),H="Register",$="Signing",q="QRCode Signing",V="please enter user name",J="please enter password",K="Login",W="User Name",X="User Password",Y="Fast Background Template",me={Register:H,Signing:$,QRCodeSigning:q,NamePlaceholder:V,PasswordPlaceholder:J,Login:K,Name:W,Password:X,RayTemplate:Y},ge=Object.freeze(Object.defineProperty({__proto__:null,Login:K,Name:W,NamePlaceholder:V,Password:X,PasswordPlaceholder:J,QRCodeSigning:q,RayTemplate:Y,Register:H,Signing:$,default:me},Symbol.toStringTag,{value:"Module"})),ue=Object.assign({"./en-US/globalMessage.json":oe,"./en-US/headerSettingOptions.json":ne,"./en-US/headerTooltip.json":re,"./en-US/menu.json":se,"./en-US/setting.json":ae,"./en-US/views/login/index.json":ge}),xe={message:{...Z(ue,"en-US")}};export{xe as default}; diff --git a/js/en-US-BIc6akN3.js.gz b/js/en-US-BIc6akN3.js.gz new file mode 100644 index 00000000..37693ff3 Binary files /dev/null and b/js/en-US-BIc6akN3.js.gz differ diff --git a/js/en-US-CEfpzyAT.js b/js/en-US-CEfpzyAT.js deleted file mode 100644 index 55754dce..00000000 --- a/js/en-US-CEfpzyAT.js +++ /dev/null @@ -1 +0,0 @@ -import{x as Z}from"./hooks-DeCbIFFS.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.4.38-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.4.38-Cp_qoKMZ.js";import"./@vueuse_shared@10.9.0_vue@3.4.38-BTLxKjPf.js";import"./utils-DGuZdIHQ.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.38-f9XU7P4m.js";import"./@vue_reactivity@3.4.38-CmXFqMGn.js";import"./@vue_shared@3.4.38-D8qfpBTH.js";const e="The current environment does not support full screen",ee={isEnabledFullscreen:e},oe=Object.freeze(Object.defineProperty({__proto__:null,default:ee,isEnabledFullscreen:e},Symbol.toStringTag,{value:"Module"})),o="Configuration",t={Title:"Theme",Dark:"Dark",Light:"Light",PrimaryColorConfig:"Primary Color"},n="Display",c="Content Transition",te={Title:o,ThemeOptions:t,InterfaceDisplay:n,ContentTransition:c},ne=Object.freeze(Object.defineProperty({__proto__:null,ContentTransition:c,InterfaceDisplay:n,ThemeOptions:t,Title:o,default:te},Symbol.toStringTag,{value:"Module"})),r="Reload Current Page",s="Lock",i="Setting",l="Github",a="Full Screen",m="Cancel Full Screen",g="Search",ce={Reload:r,Lock:s,Setting:i,Github:l,FullScreen:a,CancelFullScreen:m,Search:g},re=Object.freeze(Object.defineProperty({__proto__:null,CancelFullScreen:m,FullScreen:a,Github:l,Lock:s,Reload:r,Search:g,Setting:i,default:ce},Symbol.toStringTag,{value:"Module"})),u="Axios Request",p="Barcode",d="Cache Utils Demo",_="Precision",S="Right Click Menu",f="Home",b="Directive",h="Doc",T="Doc (China)",D="Doc(inside)",y="Chart",C="Form",P="Mock",O="Modal",R="MultiMenu(catch)",M="Office",v="Document",j="Presentation",L="Spreadsheet",k="QRCode",F="Rely",I="Rely About",U="Same Level Router Demo",x="Segment",w="SVG Icon",A="Table",z="Template Api",E="Scroll Reveal",Q="Table Pro",se={Axios:u,Barcode:p,CacheDemo:d,CalculatePrecision:_,ContextMenu:S,Dashboard:f,Directive:b,Doc:h,DocLocal:T,DocLocalInside:D,Echart:y,Error:"Error Page",Form:C,Mock:P,Modal:O,MultiMenu:R,Office:M,Office_Document:v,Office_Presentation:j,Office_Spreadsheet:L,QRCode:k,Rely:F,RelyAbout:I,RouterDemo:U,Segment:x,SvgIcon:w,Table:A,TemplateHooks:z,scrollReveal:E,TablePro:Q},ie=Object.freeze(Object.defineProperty({__proto__:null,Axios:u,Barcode:p,CacheDemo:d,CalculatePrecision:_,ContextMenu:S,Dashboard:f,Directive:b,Doc:h,DocLocal:T,DocLocalInside:D,Echart:y,Form:C,Mock:P,Modal:O,MultiMenu:R,Office:M,Office_Document:v,Office_Presentation:j,Office_Spreadsheet:L,QRCode:k,Rely:F,RelyAbout:I,RouterDemo:U,Segment:x,SvgIcon:w,Table:A,TablePro:Q,TemplateHooks:z,default:se,scrollReveal:E},Symbol.toStringTag,{value:"Module"})),N="Configuration",B={Title:"Theme",Dark:"Dark",Light:"Light",PrimaryColorConfig:"Primary Color"},G="Interface Display",le={Title:N,ThemeOptions:B,InterfaceDisplay:G},ae=Object.freeze(Object.defineProperty({__proto__:null,InterfaceDisplay:G,ThemeOptions:B,Title:N,default:le},Symbol.toStringTag,{value:"Module"})),H="Register",$="Signing",q="QRCode Signing",V="please enter user name",J="please enter password",K="Login",W="User Name",X="User Password",Y="Fast Background Template",me={Register:H,Signing:$,QRCodeSigning:q,NamePlaceholder:V,PasswordPlaceholder:J,Login:K,Name:W,Password:X,RayTemplate:Y},ge=Object.freeze(Object.defineProperty({__proto__:null,Login:K,Name:W,NamePlaceholder:V,Password:X,PasswordPlaceholder:J,QRCodeSigning:q,RayTemplate:Y,Register:H,Signing:$,default:me},Symbol.toStringTag,{value:"Module"})),ue=Object.assign({"./en-US/globalMessage.json":oe,"./en-US/headerSettingOptions.json":ne,"./en-US/headerTooltip.json":re,"./en-US/menu.json":ie,"./en-US/setting.json":ae,"./en-US/views/login/index.json":ge}),Ie={message:{...Z(ue,"en-US")}};export{Ie as default}; diff --git a/js/en-US-CEfpzyAT.js.gz b/js/en-US-CEfpzyAT.js.gz deleted file mode 100644 index 6b351403..00000000 Binary files a/js/en-US-CEfpzyAT.js.gz and /dev/null differ diff --git a/js/hooks-DUpKDX8W.js b/js/hooks-DUpKDX8W.js new file mode 100644 index 00000000..598c8cb3 --- /dev/null +++ b/js/hooks-DUpKDX8W.js @@ -0,0 +1,12 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["js/en-US-BIc6akN3.js","js/print-js@1.6.0-BdoEj60G.js","js/call-bind@1.0.7-Cpj98o6Y.js","js/vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js","js/lodash@4.17.21-Cw59kuJw.js","js/js-cookie@3.0.5-Z_8Sd105.js","js/screenfull@5.2.0-DmMZCkhi.js","js/currency.js@2.0.4-9OAR_aOO.js","js/lodash-es@4.17.21-BALnwRTu.js","js/@vueuse_core@10.9.0_vue@3.5.6-CMHqEu2-.js","js/@vueuse_shared@10.9.0_vue@3.5.6-BTLxKjPf.js","js/utils-DvxnuKiq.js","js/interactjs@1.10.26-DZL_TZzP.js","js/pinia-plugin-persistedstate@4.0.1_pinia@2.1.7-MNUqeAcu.js","js/destr@2.0.3-CVtkxrq9.js","js/deep-pick-omit@1.2.0-DyxInw53.js","js/echarts@5.5.0-CezqL3m-.js","js/zrender@5.5.0-DW8ownf1.js","js/tslib@2.3.0-BDyQ-Jie.js","js/@vue_runtime-core@3.5.6-CUaD_-7Q.js","js/@vue_reactivity@3.5.6-CXMPYrvZ.js","js/@vue_shared@3.5.6-6BrT-eFF.js","js/zh-CN-CeI0xlBH.js","js/index-CCVgw_kY.js","js/index-43Sr2ZDd.js","css/index-D_4DGt8i.css","js/index-CthhD5N4.js","js/instance-Mlryd73B.js","css/index-QAd2IBUs.css","js/BarcodeDemo-ChWYvWgI.js","js/index-DCDj5HZ8.js","js/index-CmEUgXeH.js","js/index-kcH3_LHw.js","css/index-DHYYVpM7.css","js/index-DsT8uWts.js","js/index-CZvHIHEr.js","js/index-DbiAk4nh.js","js/index-D1YBALoT.js","js/index-d7z__Ck2.js","js/index-DU0AD4bw.js","js/vue3-next-qrcode@2.0.10_typescript@5.2.2-B-d0H0H3.js","css/vue3-next-qrcode@2.0.10_typescript@5.2-CG4VaxS5.css","js/ray-dCjhX_JK.js","js/index-CPNbYLeV.js","css/index-B6yUFiKH.css","js/index-BKg9uIUv.js","js/index-E385tkq8.js","css/index-Dig957GB.css","js/index-Bpto_sNS.js","js/index-DbJuBYMf.js","css/index-Eq1L-L2-.css","js/TablePro-QnGoLe7d.js","js/mockjs@1.1.0-CxlURkif.js","js/index-BSxFfDS7.js","js/index-DT33t_LC.js","js/index-DQWUCipC.js","css/index-74sXJ5VP.css","js/index-C2xNskF6.js","css/index-b1h4j9PV.css"])))=>i.map(i=>d[i]); +var Ht=Object.defineProperty;var Yt=(e,t,n)=>t in e?Ht(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Xe=(e,t,n)=>Yt(e,typeof t!="symbol"?t+"":t,n);import{s as Te,c as ye,t as Ke,i as pt,p as ae,o as Ue}from"./lodash-es@4.17.21-BALnwRTu.js";import{o as Xt,u as re,a as Jt,b as Zt,c as Ne,d as Qt,e as mt}from"./@vueuse_core@10.9.0_vue@3.5.6-CMHqEu2-.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{p as en}from"./print-js@1.6.0-BdoEj60G.js";import{u as ht}from"./vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import{g as le,i as G,s as We,a as De,c as tn,l as ft,b as gt,d as nn,e as L,r as ee,f as A,h as on,u as Ve,q as be,j as Oe,k as vt,p as yt,m as qe,n as Je,o as Re,t as an,v as rn,w as ln,x as sn,y as un,z as W}from"./utils-DvxnuKiq.js";import{i as Ze}from"./interactjs@1.10.26-DZL_TZzP.js";import{s as cn}from"./pinia-plugin-persistedstate@4.0.1_pinia@2.1.7-MNUqeAcu.js";import{r as dn,u as oe,i as pn,a as mn,b as hn,c as fn,d as gn,e as vn,f as yn,g as Vn,h as bn,j as _n,k as Sn,l as wn,m as Cn,n as Tn,o as Nn,p as On,q as Rn,s as kn}from"./echarts@5.5.0-CezqL3m-.js";import{f as Pn,g as An}from"./@vueuse_shared@10.9.0_vue@3.5.6-BTLxKjPf.js";import{c as Vt,o as bt,a as _t}from"./@vue_runtime-core@3.5.6-CUaD_-7Q.js";const zr=(e,t)=>{if(typeof t!="string"||!t.trim())throw new TypeError("Expected prefix to be a non-empty string");const n={};return Object.keys(e).forEach(o=>{const r=e[o].default;let a=o.replace(`./${t}/`,"").replace(/^\.\//,"");const s=a.lastIndexOf(".");a=a.substring(0,s);const l=a.split("/"),i=l.shift(),u=l.join(".");i&&(u?(Te(n,i,n[i]||{}),Te(n[i],u,r)):Te(n,i,r||{}))}),n},xn="modulepreload",Mn=function(e){return"/ray-template/"+e},Qe={},R=function(t,n,o){let r=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),s=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));r=Promise.all(n.map(l=>{if(l=Mn(l),l in Qe)return;Qe[l]=!0;const i=l.endsWith(".css"),u=i?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const d=document.createElement("link");if(d.rel=i?"stylesheet":xn,i||(d.as="script"),d.crossOrigin="",d.href=l,s&&d.setAttribute("nonce",s),document.head.appendChild(d),i)return new Promise((h,f)=>{d.addEventListener("load",h),d.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${l}`)))})}))}return r.then(()=>t()).catch(a=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a})},Ln=(e,t,n)=>{const o=e[t];return o?typeof o=="function"?o():Promise.resolve(o):new Promise((r,a)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(a.bind(null,new Error("Unknown variable dynamic import: "+t+(t.split("/").length!==n?". Note that variables only represent file names one level deep.":""))))})},In=async e=>{var n;const t={};for(const o of e){const r=await Ln(Object.assign({"../lang/en-US.ts":()=>R(()=>import("./en-US-BIc6akN3.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21])),"../lang/zh-CN.ts":()=>R(()=>import("./zh-CN-CeI0xlBH.js"),__vite__mapDeps([22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]))}),`../lang/${o.key}.ts`,3),a=o.key;a&&(t[a]=((n=r==null?void 0:r.default)==null?void 0:n.message)??{})}return t},jr=e=>{switch(e){case"zh-CN":return{locale:naive.zhCN,dateLocal:naive.dateZhCN};case"en-US":return{locale:null,dateLocal:null};default:return{locale:naive.zhCN,dateLocal:naive.dateZhCN}}},Dr={max:5,closable:!1},Fr="loading",St={setupKeepAlive:!0,keepAliveExclude:[],maxKeepAliveLength:5},En={icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"},X={menuCollapsedWidth:64,menuCollapsedMode:"width",menuCollapsedIconSize:22,menuCollapsedIndent:24,menuAccordion:!1},Br="",I={signing:"signing",localeLanguage:"localeLanguage",token:"token",appMenuKey:"menuKey",appPiniaSettingStore:"piniaSettingStore",appPiniaKeepAliveStore:"piniaKeepAliveStore",appPiniaMenuStore:"piniaMenuStore",appPiniaSigningStore:"piniaSigningStore",appVersionProvider:"appVersionProvider",isAppLockScreen:"isAppLockScreen",appGlobalSearchOptions:"appGlobalSearchOptions"},zn=[{label:"无",value:"none"},{label:"缩放出现",value:"scale"},{label:"缩放消退",value:"fade-scale"},{label:"滑入出现",value:"fade-slide"},{label:"淡入消退",value:"opacity"},{label:"底部消退",value:"fade-bottom"}],$={appThemeColors:["#2d8cf0","#3f9eff","#ff42bc","#ee4f12","#a6e4f7","#dbcb02","#18A058"],appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"},appNaiveUIThemeOverrides:{dark:{},light:{}},appNaiveUIThemeOverridesCommon:{dark:{},light:{}},echartTheme:"macarons"},wt=[{key:"zh-CN",label:"中文(简体)"},{key:"en-US",label:"English(US)"}],jn="zh-CN",Dn="zh-CN",Fn={"zh-CN":"zh-cn","en-US":"en"},Bn="zh-cn",$r={cssUnit:/^\d+(\.\d+)?(px|em|rem|%|vw|vh|vmin|vmax|cm|mm|in|pt|pc|ch|ex|q|s|ms|deg|rad|turn|grad|hz|khz|dpi|dpcm|dppx|fr|auto)$/},Kr={baseURL:"",withCredentials:!1,timeout:5*1e3,headers:{"Content-Type":"application/json"}},Q=Vue.ref(null),Ct=Vue.ref(null),$n={setupRouterLoadingBar:!0,setupRouterGuard:!0},Kn=["RLogin","ErrorPage","RayTemplateDoc"],me=["admin"],Ur=(e,t)=>{const n=Vue.ref(0),o=Vue.ref(0),r=Vue.ref(!1),{clickOutside:a}={},s=h=>{r.value=h},l=h=>{h.preventDefault(),s(!1),Vue.nextTick().then(()=>{const{clientX:f,clientY:m}=h;n.value=f,o.value=m,s(!0)})};a&&Xt(e,h=>{a(h)});const i=re(e,"contextmenu",l,t),u=re(e,"click",()=>{s(!1)});return{stop:()=>{i(),u()},x:Vue.readonly(n),y:Vue.readonly(o),show:Vue.readonly(r),updateShow:s}},_e=Vue.reactive({globalSpinning:!1,globalDrawerValue:!1,globalMainLayoutLoad:!0,layoutContentMaximize:!1,layoutContentSpinning:!1});function q(e,t,n){Object.hasOwn(_e,e)&&(_e[e]=t)}function we(e){return Vue.readonly(Vue.toRef(_e,e))}function Un(){return{...Vue.toRefs(Vue.readonly(_e))}}let U;const Wn=async()=>{const e=Kt(),t=await In(wt);return VueI18n.createI18n({legacy:!1,locale:e,messages:t,sync:!0,missingWarn:!1,silentFallbackWarn:!0,fallbackLocale:Dn})},Wr=async e=>{const t=await Wn();e.use(t),U=t},et=(e,t)=>t,se=e=>{if(!U)return{t:a=>et(e,a),locale:a=>{}};const{t,...n}=U.global;return{...n,t:(a,...s)=>a?!a.includes(".")&&!e?a:t(et(e,a),...s):"",locale:a=>{U.mode==="legacy"?U.global.locale=a:Vue.isRef(U.global.locale)?U.global.locale.value=a:U.global.locale=a}}},M=e=>e,qn={path:"/dashboard",component:()=>R(()=>import("./index-CCVgw_kY.js"),__vite__mapDeps([23,7,1,2,3,4,5,6,24,8,9,10,11,12,13,14,15,16,17,18,19,20,21,25])),meta:{i18nKey:M("menu.Dashboard"),icon:"dashboard",order:0}},Gn=Object.freeze(Object.defineProperty({__proto__:null,default:qn},Symbol.toStringTag,{value:"Module"})),Hn={path:"/axios",name:"RAxios",component:()=>R(()=>import("./index-CthhD5N4.js"),__vite__mapDeps([26,3,4,2,5,6,27,1,11,7,8,9,10,12,13,14,15,16,17,18,19,20,21,28])),meta:{i18nKey:M("menu.Axios"),icon:"axios",order:3,keepAlive:!0}},Yn=Object.freeze(Object.defineProperty({__proto__:null,default:Hn},Symbol.toStringTag,{value:"Module"})),Xn={path:"barcode",component:()=>R(()=>import("./BarcodeDemo-ChWYvWgI.js"),__vite__mapDeps([29,7,1,2,3,4,5,6,8,9,10,11,12,13,14,15,16,17,18,19,20,21])),meta:{i18nKey:M("menu.Barcode"),icon:"other",order:2,extra:{label:"new"}}},Jn=Object.freeze(Object.defineProperty({__proto__:null,default:Xn},Symbol.toStringTag,{value:"Module"})),Zn={path:"/cache-demo",component:()=>R(()=>import("./index-DCDj5HZ8.js"),__vite__mapDeps([30,1,2,3,4,5,6,11,7,8,9,10,12,13,14,15,16,17,18,19,20,21])),meta:{i18nKey:M("menu.CacheDemo"),icon:"other",order:3}},Qn=Object.freeze(Object.defineProperty({__proto__:null,default:Zn},Symbol.toStringTag,{value:"Module"})),eo={path:"/context-menu",component:()=>R(()=>import("./index-CmEUgXeH.js"),__vite__mapDeps([31,7,1,2,3,4,5,6,8,9,10,11,12,13,14,15,16,17,18,19,20,21])),meta:{i18nKey:M("menu.ContextMenu"),icon:"other",order:2}},to=Object.freeze(Object.defineProperty({__proto__:null,default:eo},Symbol.toStringTag,{value:"Module"})),no={path:"/directive",component:()=>R(()=>import("./index-5cxxl6_s.js"),[]),meta:{i18nKey:M("menu.Directive"),icon:"other",order:2,extra:{label:"ellipsis"}}},oo=Object.freeze(Object.defineProperty({__proto__:null,default:no},Symbol.toStringTag,{value:"Module"})),ao={path:"/echart",component:()=>R(()=>import("./index-kcH3_LHw.js"),__vite__mapDeps([32,7,1,2,3,4,5,6,8,9,10,11,12,13,14,15,16,17,18,19,20,21,33])),meta:{i18nKey:M("menu.Echart"),icon:"echart",order:1,extra:{label:"useChart"}}},ro=Object.freeze(Object.defineProperty({__proto__:null,default:ao},Symbol.toStringTag,{value:"Module"})),lo={path:"/form",component:()=>R(()=>import("./index-DsT8uWts.js"),__vite__mapDeps([34,7,1,2,3,4,5,6,8,9,10,11,12,13,14,15,16,17,18,19,20,21])),meta:{i18nKey:M("menu.Form"),icon:"other",order:2,extra:{label:"useForm"}}},so=Object.freeze(Object.defineProperty({__proto__:null,default:lo},Symbol.toStringTag,{value:"Module"})),io={path:"/iframe",component:()=>R(()=>import("./index-CZvHIHEr.js"),__vite__mapDeps([35,7,1,2,3,4,5,6,8,9,10,11,12,13,14,15,16,17,18,19,20,21])),meta:{icon:"other",order:2,noLocalTitle:"iframe"}},uo=Object.freeze(Object.defineProperty({__proto__:null,default:io},Symbol.toStringTag,{value:"Module"})),co={path:"/mock-demo",component:()=>R(()=>import("./index-DbiAk4nh.js"),__vite__mapDeps([36,7,1,2,3,4,5,6,27,11,8,9,10,12,13,14,15,16,17,18,19,20,21])),meta:{i18nKey:M("menu.Mock"),icon:"other",order:3,keepAlive:!1,extra:{label:"usePagination"}}},po=Object.freeze(Object.defineProperty({__proto__:null,default:co},Symbol.toStringTag,{value:"Module"})),mo={path:"/modal-demo",component:()=>R(()=>import("./index-D1YBALoT.js"),__vite__mapDeps([37,7,1,2,3,4,5,6,8,9,10,11,12,13,14,15,16,17,18,19,20,21])),meta:{i18nKey:M("menu.Modal"),icon:"other",order:3}},ho=Object.freeze(Object.defineProperty({__proto__:null,default:mo},Symbol.toStringTag,{value:"Module"})),ve=()=>R(()=>Promise.resolve().then(()=>Ia),void 0),fo={path:"/multi",component:ve,meta:{i18nKey:M("menu.MultiMenu"),icon:"other",order:4,extra:{label:"cache"}},children:[{path:"multi-menu-one",name:"MultiMenuOne",component:()=>R(()=>import("./index-BtZPyenx.js"),[]),meta:{noLocalTitle:"多级菜单-1",keepAlive:!0}},{path:"multi-menu-two",name:"MultiMenuTwo",component:ve,meta:{noLocalTitle:"多级菜单-2"},children:[{path:"sub-menu-other",name:"SubMenuOther",component:()=>R(()=>import("./index-B6a_PCdD.js"),[]),meta:{noLocalTitle:"多级菜单-2-1",keepAlive:!0}},{path:"sub-menu",name:"SubMenu",component:ve,meta:{noLocalTitle:"多级菜单-2-2",keepAlive:!0},children:[{path:"sub-menu-one",name:"MultiMenuTwoOne",component:()=>R(()=>import("./index-Cg1Whvge.js"),[]),meta:{noLocalTitle:"多级菜单-2-2-1",keepAlive:!0}}]}]}]},go=Object.freeze(Object.defineProperty({__proto__:null,default:fo},Symbol.toStringTag,{value:"Module"})),vo={path:"/precision",component:()=>R(()=>import("./index-d7z__Ck2.js"),__vite__mapDeps([38,1,2,3,4,5,6,11,7,8,9,10,12,13,14,15,16,17,18,19,20,21])),meta:{i18nKey:M("menu.CalculatePrecision"),icon:"other",order:2}},yo=Object.freeze(Object.defineProperty({__proto__:null,default:vo},Symbol.toStringTag,{value:"Module"})),Vo={path:"/qrcode",component:()=>R(()=>import("./index-DU0AD4bw.js"),__vite__mapDeps([39,40,41,42])),meta:{i18nKey:M("menu.QRCode"),icon:"other",order:2}},bo=Object.freeze(Object.defineProperty({__proto__:null,default:Vo},Symbol.toStringTag,{value:"Module"})),_o={path:"rely-about",component:()=>R(()=>import("./index-CPNbYLeV.js"),__vite__mapDeps([43,44])),meta:{i18nKey:M("menu.RelyAbout"),icon:"rely",order:999}},So=Object.freeze(Object.defineProperty({__proto__:null,default:_o},Symbol.toStringTag,{value:"Module"})),wo={path:"/router-demo",component:ve,meta:{i18nKey:M("menu.RouterDemo"),icon:"other",order:3},children:[{path:"router-demo-home",component:()=>R(()=>import("./index-BKg9uIUv.js"),__vite__mapDeps([45,7,1,2,8,9,10,3,4,5,6,11,12,13,14,15,16,17,18,19,20,21])),meta:{noLocalTitle:"人员信息(平级模式)"}},{path:"router-demo-detail",component:()=>R(()=>import("./index-BRGdSJVO.js"),[]),meta:{noLocalTitle:"信息详情",sameLevel:!0}}]},Co=Object.freeze(Object.defineProperty({__proto__:null,default:wo},Symbol.toStringTag,{value:"Module"})),To={path:"/scroll-reveal",component:()=>R(()=>import("./index-E385tkq8.js"),__vite__mapDeps([46,47])),meta:{i18nKey:M("menu.scrollReveal"),icon:"scroll_reveal",hidden:!0}},No=Object.freeze(Object.defineProperty({__proto__:null,default:To},Symbol.toStringTag,{value:"Module"})),Oo={path:"/segment",component:()=>R(()=>import("./index-Bpto_sNS.js"),__vite__mapDeps([48,7,1,2,3,4,5,6,8,9,10,11,12,13,14,15,16,17,18,19,20,21])),meta:{i18nKey:M("menu.Segment"),icon:"other",order:3,extra:{label:"segment"}}},Ro=Object.freeze(Object.defineProperty({__proto__:null,default:Oo},Symbol.toStringTag,{value:"Module"})),ko={path:"/svg-icons",component:()=>R(()=>import("./index-DbJuBYMf.js"),__vite__mapDeps([49,7,1,2,3,4,5,6,8,9,10,11,12,13,14,15,16,17,18,19,20,21,50])),meta:{i18nKey:M("menu.SvgIcon"),icon:"other",order:3}},Po=Object.freeze(Object.defineProperty({__proto__:null,default:ko},Symbol.toStringTag,{value:"Module"})),Ao={path:"/table-pro",component:()=>R(()=>import("./TablePro-QnGoLe7d.js"),__vite__mapDeps([51,7,1,2,3,4,5,6,11,8,27,52,9,10,12,13,14,15,16,17,18,19,20,21])),meta:{i18nKey:M("menu.TablePro"),icon:"other",order:2,extra:{label:"TablePro"}}},xo=Object.freeze(Object.defineProperty({__proto__:null,default:Ao},Symbol.toStringTag,{value:"Module"})),Mo={path:"/table",component:()=>R(()=>import("./index-BSxFfDS7.js"),__vite__mapDeps([53,11,7,1,2,3,4,5,6,8,9,10,12,13,14,15,16,17,18,19,20,21])),meta:{i18nKey:M("menu.Table"),icon:"other",order:2,extra:{label:"useTable"}}},Lo=Object.freeze(Object.defineProperty({__proto__:null,default:Mo},Symbol.toStringTag,{value:"Module"})),Io={path:"/template-hooks",component:()=>R(()=>import("./index-DT33t_LC.js"),__vite__mapDeps([54,7,1,2,3,4,5,6,8,9,10,11,12,13,14,15,16,17,18,19,20,21])),meta:{i18nKey:M("menu.TemplateHooks"),icon:"other",order:1}},Eo=Object.freeze(Object.defineProperty({__proto__:null,default:Io},Symbol.toStringTag,{value:"Module"})),zo=()=>{const e=Object.assign({"/src/router/modules/dashboard.ts":Gn,"/src/router/modules/demo/axios.ts":Yn,"/src/router/modules/demo/barcode.ts":Jn,"/src/router/modules/demo/cache-demo.ts":Qn,"/src/router/modules/demo/context-menu.ts":to,"/src/router/modules/demo/directive.ts":oo,"/src/router/modules/demo/echart.ts":ro,"/src/router/modules/demo/form.ts":so,"/src/router/modules/demo/iframe.ts":uo,"/src/router/modules/demo/mock.ts":po,"/src/router/modules/demo/modal.ts":ho,"/src/router/modules/demo/multi-menu.ts":go,"/src/router/modules/demo/precision.ts":yo,"/src/router/modules/demo/qrcode.ts":bo,"/src/router/modules/demo/rely.ts":So,"/src/router/modules/demo/router-demo.ts":Co,"/src/router/modules/demo/scroll-reveal.ts":No,"/src/router/modules/demo/segment.ts":Ro,"/src/router/modules/demo/svg-icons.ts":Po,"/src/router/modules/demo/table-pro.ts":xo,"/src/router/modules/demo/table.ts":Lo,"/src/router/modules/demo/template-hooks.ts":Eo});return Object.keys(e).reduce((n,o)=>{const r=e[o].default;if(r)n.push(r);else throw new Error(`[combineRawRouteModules]: ${o} module must export default.`);return n},[])},jo=e=>e[0]==="/",Tt=(e,t=[],n="")=>{var o;if(!Array.isArray(e))return[];for(const r of e){const a=n+(jo(r.path)?r.path:"/"+r.path);if((o=r.children)!=null&&o.length){Tt(r.children,t,a);continue}else t.push({...r,path:a})}return t},Do=e=>Array.isArray(e)?Tt(ye(e)):[],Fo=e=>e.sort((t,n)=>{var a,s;const o=((a=t.meta)==null?void 0:a.order)??1,r=((s=n.meta)==null?void 0:s.order)??0;if(typeof o!="number"||typeof r!="number")throw new TypeError("orderRoutes error: order must be a number!");return o===r?t.name?n.name?t.name.localeCompare(n.name):-1:1:o-r}),Bo=e=>{const{beforeEach:t}=e,{getRootPath:n}=ne(),o=(r,a)=>r.path==="/"||a.path==="/login";t((r,a,s)=>{const l=le(I.token,"localStorage"),i=le(I.appMenuKey,"sessionStorage",{defaultValue:n.value}),{meta:u,name:d}=r;l!==null?o(r,a)?ke(!0):!G(d,"Symbol")&&d&&Kn.includes(d)?s():Dt(u)?o(r,a)?i?s(i):ke(!0):s():ke(!0):o(r,a)?s():s("/")})},ke=(e=!0)=>{const{router:t}=Ge(),{push:n,replace:o}=t,{getRootPath:r}=ne();We(I.appMenuKey,r.value,"localStorage"),e?o(r.value):n(r.value)},$o=e=>{var n;const{meta:t}=e;t!=null&&t.ignoreAutoResetScroll||(n=Q.value)==null||n.scrollTo({top:0,left:0,behavior:"smooth"})},Ko=e=>{e.beforeEach(()=>{var t;(t=window.$loadingBar)==null||t.start()}),e.afterEach(()=>{var t;(t=window.$loadingBar)==null||t.finish()}),e.onError(()=>{var t;(t=window.$loadingBar)==null||t.error()})},Nt=e=>{const{meta:t={}}=e,{hidden:n,sameLevel:o,env:r}=t,{MODE:a}=De();return!(o||n||r&&typeof r=="string"&&r!==a||r&&Array.isArray(r)&&!r.includes(a))};var Uo={pkg:{dependencies:{"@vueuse/core":"^10.9.0",axios:"^1.7.5",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.39.0",pinia:"^2.1.7","pinia-plugin-persistedstate":"^4.0.1","print-js":"^1.6.0",vue:"^3.5.6","vue-demi":"0.14.6","vue-hooks-plus":"2.2.1","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.8.1","@commitlint/config-conventional":"^17.8.1","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.2.2","@types/dom-to-image":"2.6.7","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.21.0","@typescript-eslint/parser":"^6.21.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.0","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.16",depcheck:"^1.4.7",eslint:"^8.57.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.2.0",postcss:"^8.4.38","postcss-px-to-viewport-8-with-include":"1.2.2",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.18.2","unplugin-vue-components":"^0.27.4",vite:"^5.4.3","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.0.13"},name:"ray-template",version:"4.9.5"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const Ot=Pinia.defineStore("setting",()=>{const{appPrimaryColor:{primaryColor:e}}=Uo,{locale:t}=se(),{locale:n}=gr(),o=Vue.reactive({drawerPlacement:"right",primaryColorOverride:{common:{primaryColor:e,primaryColorHover:e,primaryColorPressed:e}},appTheme:!1,menuTagSwitch:!0,breadcrumbSwitch:!0,localeLanguage:Kt(),lockScreenSwitch:!1,copyrightSwitch:!0,contentTransition:"scale",watermarkSwitch:!1,watermarkConfig:{content:"Trying be better~",fontSize:16,lineHeight:16,width:384,height:384,xOffset:12,yOffset:60,rotate:-15},appRootRoute:{name:"Dashboard",path:"/dashboard"},sideBarLogo:Object.assign({},En)}),r=l=>{t(l),n(l),o.localeLanguage=l,We(I.localeLanguage,l,"localStorage")},a=(l,i=.3)=>{const u=tn(l,i),d={primaryColor:l,primaryColorHover:l,primaryColorPressed:l};o.primaryColorOverride.common=d;const h=document.body;h.style.setProperty("--ray-theme-primary-color",l),h.style.setProperty("--ray-theme-primary-fade-color",u)},s=(l,i,u)=>{Object.hasOwn(o,l)&&(o[l]=i),u==null||u()};return Pn(()=>o.appTheme,l=>{l?o.primaryColorOverride=Object.assign({},o.primaryColorOverride,$.appNaiveUIThemeOverrides.dark,$.appNaiveUIThemeOverridesCommon.dark):o.primaryColorOverride=Object.assign({},o.primaryColorOverride,$.appNaiveUIThemeOverrides.light,$.appNaiveUIThemeOverridesCommon.light)},{immediate:!0}),{...Vue.toRefs(o),updateLocale:r,changePrimaryColor:a,updateSettingState:s}},{persist:{key:I.appPiniaSettingStore}}),Wo={intersectionObserver:{type:Boolean,default:!0},intersectionObserverTarget:{type:Object,default:null},intersectionOptions:{type:Object,default:{threshold:.1}},bordered:{type:Boolean,default:!0},downloadOptions:{type:Object,default:()=>({})},onDropdownSelect:{type:[Function,Array]},dropdownOptions:{type:Array},preset:{type:String},contentStyle:{type:[String,Object]},title:{type:[String,Function]},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"100%"},autoResize:{type:Boolean,default:!0},showAria:{type:Boolean,default:!1},options:{type:Object,default:()=>({})},onSuccess:{type:[Function,Array],default:null},onError:{type:[Function,Array],default:null},onFinally:{type:[Function,Array],default:null},theme:{type:String,default:null},autoChangeTheme:{type:Boolean,default:!0},use:{type:Array,default:()=>[]},watchOptions:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},loadingOptions:{type:Object,default:()=>ft()},autoResizeObserverTarget:{type:Object,default:null},watchOptionsThrottleWait:{type:Number,default:500},nextTick:{type:Boolean,default:!0},setChartOptions:{type:Object,default:()=>gt()},onRegister:{type:[Function,Array],default:null}},qo=nn(),tt="__R_CHART_DOWN_LOAD_CHART__";qo.forEach(e=>{dn(e.name,e.theme)});const qr=Vue.defineComponent({name:"RChart",props:Wo,setup(e,{expose:t}){const{getAppTheme:n}=D(),o=Vue.useTemplateRef("rayChartRef"),r=Vue.useTemplateRef("rayChartWrapperRef"),a=Vue.shallowRef();let s,l;const{echartTheme:i}=$;let u;const d=Vue.computed(()=>[{label:"下载图片",key:tt,disabled:!(a.value&&a.value.getDom())}]),h=Vue.computed(()=>({"--ray-chart-width":L(e.width),"--ray-chart-height":L(e.height)})),f=Vue.ref(!1);let m;const p={aria:e.showAria},g=async()=>{var S;oe([mn,hn,fn,gn,vn,yn,Vn,bn]),oe([_n,Sn,wn,Cn,Tn,Nn]),oe([On,Rn]),oe([kn]);try{oe((S=e.use)==null?void 0:S.filter(Boolean))}catch(P){console.error("[RChart register error]: ",P)}},v=()=>{if(a.value&&_(),e.theme==="default"){e.autoChangeTheme?c("dark"):c("");return}if(e.theme)c(e.theme);else{const S=e.autoChangeTheme&&n.value?`${i}-dark`:i;c(S)}},y=S=>{let P=Vue.unref(S);return P=(E=>Object.assign({},P,E))({aria:{enabled:e.showAria,decal:{show:e.showAria}}}),P},c=(S=i)=>{var de;const P=o.value,x=y(e.options),{height:E,width:F}=P.getBoundingClientRect(),{onSuccess:H,onError:ce}=e;try{a.value=pn(P,S,{width:F===0?200:void 0,height:E===0?200:void 0}),H&&A(H,a.value),e.nextTick?(a.value.setOption({}),Vue.nextTick(()=>{var B;x&&((B=a.value)==null||B.setOption(x))})):x&&((de=a.value)==null||de.setOption(x))}catch(B){throw ce&&A(ce),new Error(`[RChart render error]: ${B}`)}finally{const{onFinally:B}=e;B&&A(B)}},b=()=>{var S;return!!((S=a.value)!=null&&S.isDisposed())},_=()=>{var S;b()||(S=a.value)==null||S.dispose()},O=()=>{a.value&&a.value.resize()},V=(S,P)=>{if(S===tt&&!b()){const{filename:E,...F}=e.downloadOptions;on(a.value.getDataURL(F),E??`${new Date().getTime()}`)}const{onDropdownSelect:x}=e;x&&A(x,S,P)},C=()=>{var P;if(e.autoResize&&(s||(s=Ke(O,500)),l||(l=Zt(e.autoResizeObserverTarget||r,s))),(P=a.value)!=null&&P.getDom()||!f.value&&e.intersectionObserver)return;v(),m==null||m.stop();const{onRegister:S}=e;S&&a.value&&A(S,a.value,C,k)},k=()=>{_(),s==null||s.cancel(),l==null||l.stop(),m==null||m.stop(),m=null,s=null,l=null};return Vue.watch(()=>n.value,()=>{e.autoChangeTheme&&(_(),v())}),Vue.watchEffect(()=>{var S,P;e.intersectionObserver&&(m=Jt(e.intersectionObserverTarget||r,([x])=>{f.value=x.isIntersecting},e.intersectionOptions)),e.watchOptions?u=An(()=>e.options,x=>{var H;const E=y(x),F=Object.assign({},gt(),e.setChartOptions);(H=a.value)==null||H.setOption(E,F)},{deep:!0,throttle:e.watchOptionsThrottleWait}):u==null||u(),e.loading?(S=a.value)==null||S.showLoading(ft(e.loadingOptions)):(P=a.value)==null||P.hideLoading(),e.showAria!==p.aria&&a.value&&(a.value.setOption(y(e.options)),p.aria=e.showAria),f.value&&!b()&&C()}),t(),Vue.onBeforeMount(async()=>{await g()}),Vue.onMounted(()=>{C()}),Vue.onBeforeUnmount(()=>{k(),u==null||u()}),{rayChartRef:o,cssVarsRef:h,rayChartWrapperRef:r,moreDropDownOptions:d,dropdownSelect:V}},render(){const{title:e,contentStyle:t,preset:n,moreDropDownOptions:o,dropdownSelect:r,bordered:a,dropdownOptions:s}=this,{cardExtra:l}=this.$slots;return n==="card"?Vue.createVNode(naive.NCard,{class:"ray-chart",ref:"rayChartWrapperRef",style:[this.cssVarsRef],contentStyle:t,bordered:a,embedded:!0},{default:ee(Vue.createVNode("div",{class:"ray-chart__container",ref:"rayChartRef"},null)),header:ee(e,{defaultElement:Vue.createVNode("div",{style:"display: none;"},null)}),"header-extra":ee(l,{defaultElement:Vue.createVNode(Pt,{iconSize:18,cursor:"pointer",options:s||o,trigger:"click",onSelect:r.bind(this),placement:"bottom-end"},null)})}):Vue.createVNode("div",{class:"ray-chart",style:[this.cssVarsRef],ref:"rayChartWrapperRef"},[Vue.createVNode("div",{class:"ray-chart__container",ref:"rayChartRef"},null)])}}),Gr=()=>{let e,t,n;const o=(i,u,d)=>{i&&(e=i,t=d,n=u)},r=()=>{if(!e)throw new Error("[useChart]: echart instance is not ready yet. if you are using useChart, please make sure you have called register method in onRegister event.");return{dispose:t,render:n,echartInst:e}};return[o,{getChartInstance:r,isDisposed:()=>{var i;return!!((i=r().echartInst)!=null&&i.isDisposed())},dispose:()=>r().dispose.call(null),render:()=>r().render.call(null)}]},Go={actionAlign:{type:String,default:"end"},open:{type:Boolean,default:!1},collapseToggleText:{type:Array,default:()=>["展开","收起"]},bordered:{type:Boolean,default:!1},onUpdateValue:{type:[Function,Array],default:null},"onUpdate:value":{type:[Function,Array],default:null},...naive.gridProps},Hr=Vue.defineComponent({name:"RCollapseGrid",props:Go,setup(e){const t=Vue.computed({get:()=>!e.open,set:a=>{const{onUpdateValue:s,"onUpdate:value":l}=e;s&&A(s,a),l&&A(l,a)}}),n=Vue.computed(()=>({"--r-collapse-grid-action-align":e.actionAlign})),o=()=>{t.value=!t.value};return{modelCollapsed:t,collapseClick:o,CollapseIcon:()=>Vue.createVNode("div",{class:"collapse-icon",onClick:o.bind(this)},[Vue.createVNode("span",null,[t.value?e.collapseToggleText[0]:e.collapseToggleText[1]]),Vue.createVNode(N,{customClassName:`collapse-icon--arrow ${t.value?"":"collapse-icon--arrow__expanded"}`,name:"expanded",size:"14"},null)]),cssVars:n}},render(){const{$slots:{collapse:e,action:t,default:n},CollapseIcon:o,$props:r,modelCollapsed:a,xGap:s,yGap:l,collapsedRows:i,cssVars:u}=this;return Vue.createVNode(naive.NCard,{bordered:this.bordered,style:[u]},{default:()=>Vue.createVNode(naive.NGrid,Vue.mergeProps({class:"ray-collapse-grid"},r,{collapsed:a,xGap:s||12,yGap:l||12,collapsedRows:i}),{default:()=>[n==null?void 0:n(),Vue.createVNode(naive.NGridItem,{suffix:!0,class:"ray-collapse-grid__suffix--btn"},{default:()=>[Vue.createVNode(naive.NFlex,{justify:"end",align:"center"},{default:()=>[t==null?void 0:t(),e?e(a):o()]})]})]})})}}),Ho={color:{type:String,default:"currentColor"},prefix:{type:String,default:"icon"},name:{type:String,required:!0},size:{type:[Number,String],default:14},width:{type:[Number,String],default:0},height:{type:[Number,String],default:0},customClassName:{type:String,default:null},depth:{type:Number,default:1},cursor:{type:String,default:"default"},onClick:{type:[Function,Array],default:null}},N=Vue.defineComponent({name:"RIcon",props:Ho,setup(e){const t=Vue.computed(()=>`#${e.prefix}-${e.name}`),n=Vue.computed(()=>({"--ray-icon-width":e.width?L(e.width):L(e.size),"--ray-icon-height":e.height?L(e.height):L(e.size),"--ray-icon-depth":e.depth,"--ray-icon-cursor":e.cursor,"--ray-icon-color":e.color}));return{symbolId:t,cssVars:n,iconClick:r=>{const{onClick:a}=e;a&&A(a,r)}}},render(){return Vue.createVNode("span",{class:["ray-icon",this.customClassName],style:[this.cssVars],onClick:this.iconClick.bind(this)},[Vue.createVNode("svg",{RayIconAttribute:"ray-icon",ariaHidden:!0},[Vue.createVNode("use",Vue.mergeProps({"xlink:href":this.symbolId},{fill:this.color}),null)])])}}),Yo={src:{type:String,required:!0},iframeWrapperClass:{type:String,default:null},frameborder:{type:Number,default:0},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"100%"},allow:{type:String,default:null},name:{type:String,default:null},title:{type:String,default:null},onSuccess:{type:[Function,Array],default:null},onError:{type:[Function,Array],default:null},customSpinProps:{type:Object,default:()=>({})},lazy:{type:[Boolean,String],default:!0},iframeClass:{type:String,default:null}},Yr=Vue.defineComponent({name:"RIframe",props:Yo,setup(e,{expose:t}){const n=Vue.computed(()=>({"--ray-iframe-frameborder":L(e.frameborder),"--ray-iframe-width":L(e.width),"--ray-iframe-height":L(e.height)})),o=Vue.useTemplateRef("iframeRef"),r=Vue.ref(!0),a=l=>{r.value=!1;const{onSuccess:i}=e;i&&A(i,o.value,l)},s=l=>{r.value=!1;const{onError:i}=e;i&&A(i,l)};return re(o,"load",a),re(o,"error",s),t({iframeInst:o}),{cssVars:n,iframeRef:o,spinShow:r}},render(){return Vue.createVNode("div",{class:["ray-iframe",this.iframeWrapperClass],style:[this.cssVars]},[Vue.createVNode(naive.NSpin,Vue.mergeProps(this.customSpinProps,{show:this.spinShow}),{...this.$slots,default:()=>Vue.createVNode("iframe",{class:["ray-iframe__container",this.iframeClass],ref:"iframeRef",src:this.src,allow:this.allow,name:this.name,title:this.title,loading:typeof this.lazy=="boolean"?"lazy":this.lazy},null)})])}}),Xo={...naive.modalProps,memo:{type:Boolean,default:!0},fullscreen:{type:Boolean,default:!1},width:{type:[String,Number],default:600},cardWidth:{type:[String,Number],default:600},dialogWidth:{type:[String,Number],default:446},dad:{type:Boolean,default:!1}},Jo=(e,t,n)=>{const{scheduler:o}=n??{};return new Promise(r=>{setTimeout(()=>{const a=t==="card"?".n-card-header__main":".n-dialog__title";if(e){const s=Ze(e).draggable({inertia:!0,autoScroll:!0,allowFrom:a,modifiers:[Ze.modifiers.restrictRect({restriction:"parent",endOnly:!0})],listeners:{move:l=>{o==null||o(l)}}}).resizable(!1);r(s)}},30)})},Rt=(e,t)=>{const n=typeof e=="string"?document.querySelector(e):e;return new Promise((o,r)=>{if(n){n.setAttribute("can-drag","true");const{preset:a,dargCallback:s}=t;let{x:l,y:i}=t;Jo(n,a,{scheduler:u=>{const d=u.target;l+=u.dx,i+=u.dy,d.style.transform=`translate(${l}px, ${i}px)`,s==null||s(l,i,u)}}).then(u=>{o(u)})}else r()})},Zo="r-modal__preset-card--fullscreen",kt="r-modal",te={width:"--r-modal-width",cardWidth:"--r-modal-card-width",dialogWidth:"--r-modal-dialog-width"},Xr=Vue.defineComponent({name:"RModal",props:Xo,setup(e){const t=Vue.computed(()=>({[te.width]:L(e.width??600),[te.cardWidth]:L(e.cardWidth??600),[te.dialogWidth]:L(e.dialogWidth??446)})),n=Ve();let o;const r={x:0,y:0},a=Vue.computed(()=>e.preset==="card"&&e.fullscreen);return Vue.watch(()=>e.show,s=>{s&&e.dad&&(e.preset==="card"||e.preset==="dialog")?Vue.nextTick(()=>{const l=document.getElementById(n);l&&Rt(l,{preset:e.preset,x:r.x,y:r.y,dargCallback:(i,u)=>{r.x=i,r.y=u}}).then(i=>{o=i}),e.memo&&l&&(l.style.transform=`translate(${r.x}px, ${r.y}px)`)}):(o==null||o.unset(),o=null)},{immediate:!0}),{cssVars:t,isFullscreenCardType:a,uuidEl:n}},render(){const{$props:e,$slots:t,$attrs:n}=this,{preset:o,...r}=e,{cssVars:a,uuidEl:s,isFullscreenCardType:l}=this;return Vue.createVNode(naive.NModal,Vue.mergeProps({class:[kt,l?Zo:""],style:[a,l?"height: 100vh":""],preset:o},{id:s},r,n),{...t})}}),Jr=()=>{const{create:e,destroyAll:t}=naive.useModal();return{create:o=>{const{content:r,...a}=o;let s=r;a.preset==="card"&&a.fullscreen&&(s=()=>Vue.h(naive.NScrollbar,{themeOverrides:{color:"rgba(0, 0, 0, 0)",colorHover:"rgba(0, 0, 0, 0)"},trigger:"none",style:{width:"auto",height:"calc(100vh - 29px - var(--n-padding-bottom) - var(--n-padding-bottom) - var(--n-padding-top))"}},{default:()=>typeof r=="function"?r():r}));const{preset:l,dad:i,fullscreen:u,width:d,cardWidth:h,dialogWidth:f}=o,m=e({...a,content:s}),{key:p}=m,g={[te.width]:L(d??600),[te.cardWidth]:L(h??600),[te.dialogWidth]:L(f??446)};return Vue.nextTick(()=>{const[v]=be(`[internalkey="${p}"]`)||[];if(v){if(i&&Rt(v,{preset:l,x:0,y:0}),u&&l==="card"){const y=v.querySelector(".n-card__content");y&&Oe(y,{maxHeight:"calc(100vh - 9px - var(--n-padding-bottom) - var(--n-padding-bottom) - var(--n-padding-top))",overflowY:"hidden",padding:"0"}),Oe(v,{width:"100%",height:"100vh"})}Oe(v,g),vt(v,kt)}}),m},destroyAll:t}},Qo={...naive.dropdownProps,icon:{type:String,default:"more"},iconSize:{type:Number,default:14},cursor:{type:String,default:"default"}};function ea(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Pt=Vue.defineComponent({name:"RMoreDropdown",props:Qo,render(){let e;const{iconSize:t,cursor:n,icon:o}=this,{default:r}=this.$slots;return Vue.createVNode(naive.NDropdown,Vue.mergeProps(this.$props,this.$attrs,{placement:"bottom-start"}),ea(e=ee(r,{defaultElement:Vue.createVNode(N,{name:o,size:t,cursor:n},null)}))?e:{default:()=>[e]})}}),ie={...naive.dataTableProps,renderWrapperHeader:{type:Boolean,default:!0},cardProps:{type:Object,default:()=>({})},tool:{type:Boolean,default:!0},downloadCsvTableOptions:{type:Object,default:()=>({})},title:{type:[String,Number,Object],default:null},toolOptions:{type:Array},coverTool:{type:Boolean,default:!1},contextMenuOptions:{type:Array},disabledContextMenu:{type:Boolean,default:!1},onContextMenuClick:{type:[Function,Array],default:null},wrapperBordered:{type:Boolean,default:!1},printTableOptions:{type:Object,default:()=>({})},onUpdateColumns:{type:[Function,Array],default:null},"onUpdate:columns":{type:[Function,Array],default:null},onContextmenu:{type:[Function,Array],default:null},onRegister:{type:[Function,Array],default:null}},K={tableIconSize:"18",tableKey:Symbol("r-table")},ta=[{label:"斑马条纹",value:"striped"},{label:"表格边框",value:"bordered"}],na=Vue.defineComponent({name:"TableSizeSelect",props:{onChangeSize:{type:[Function,Array],default:null},...ie},setup(e){return{size:Vue.ref(e.size),sizeOptions:[{label:"默认",value:"medium"},{label:"紧凑",value:"small"},{label:"宽松",value:"large"}],updatePopselectValue:r=>{const{onChangeSize:a}=e;a&&A(a,r)}}},render(){return Vue.createVNode(naive.NPopselect,{value:this.size,"onUpdate:value":e=>this.size=e,options:this.sizeOptions,trigger:"click",onUpdateValue:this.updatePopselectValue.bind(this)},{default:()=>[Vue.createVNode(N,{name:"adjustment",size:K.tableIconSize,cursor:"pointer"},null)]})}}),oa=Vue.defineComponent({name:"TableFullscreen",setup(){const{wrapperRef:e}=Vue.inject(K.tableKey,{}),[t,{toggleFullscreen:n,isEnabled:o}]=ht(e);return{toggleFullscreen:n,isEnabled:o}},render(){const{toggleFullscreen:e,isEnabled:t,$t:n}=this;return Vue.createVNode(N,{name:"fullscreen",size:K.tableIconSize,cursor:"pointer",onClick:()=>{t||window.$message.warning(n("globalMessage.isEnabledFullscreen")),e()}},null)}}),aa=()=>Vue.createVNode(N,{name:"draggable",size:14,cursor:"grab"},null),nt=({icon:e,title:t,onClick:n,customClassName:o})=>Vue.createVNode(naive.NPopover,{showArrow:!1},{trigger:()=>Vue.createVNode(N,{name:e,size:K.tableIconSize,cursor:"pointer",customClassName:o,onClick:n==null?void 0:n.bind(null)},null),default:()=>t}),Fe=(e,t)=>{if(!t)return[null,null];for(let n=0;nye(e.columns).filter(i=>i.type?(t=i,!1):!0).map((i,u)=>{const{key:d,title:h,children:f,fixed:m,isResizable:p,...g}=i,v=m==="left",y=m==="right",c={...g,title:h,key:d,fixed:m,isLeftFixedActivated:v,isRightFixedActivated:y,isResizable:p};return{...c,suffix:()=>Vue.createVNode(naive.NFlex,{style:"padding-left: 32px;"},{default:()=>[Vue.createVNode(nt,{icon:"row_head",title:"固定在列首",customClassName:v?Pe:"",onClick:a.bind(this,"left",c,u)},null),Vue.createVNode(naive.NPopover,{showArrow:!1},{trigger:()=>Vue.createVNode(N,{name:"resize_h",size:K.tableIconSize,cursor:"pointer",customClassName:p?Pe:"",onClick:r.bind(this,c,u)},null),default:()=>"修改列宽"}),Vue.createVNode(nt,{icon:"row_end",title:"固定在列尾",customClassName:y?Pe:"",onClick:a.bind(this,"right",c,u)},null)]})}}),set:()=>{}}),o=l=>{const{onUpdateColumn:i}=e;i&&A(i,l)},r=(l,i)=>{l.isResizable=!l.isResizable,l.resizable=l.isResizable,n.value[i]=l,o(n.value)},a=(l,i,u)=>{const d=`${l}FixedActivated`,h=`${l==="left"?"right":"left"}FixedActivated`;i[h]=!1,i[d]=!i[d],i[d]?i.fixed=l:i.fixed=void 0,n.value[u]=i,o(n.value)};return{treeDataSource:n,treeDrop:({node:l,dragNode:i,dropPosition:u})=>{const[d,h]=Fe(i,n.value);if(d===null||h===null)return;d.splice(h,1);const[f,m]=Fe(l,n.value);f===null||m===null||(u==="before"?f.splice(m,0,i):f.splice(m+1,0,i),pt(t)||f.unshift(t),o(f))}}},render(){return Vue.createVNode(naive.NPopover,{displayDirective:"show",trigger:"click",showArrow:!1},{trigger:()=>Vue.createVNode(N,{name:"setting",size:K.tableIconSize,cursor:"pointer",customClassName:"r-table__setting"},null),default:()=>Vue.createVNode(naive.NTree,{class:"r-table__c-tree",data:this.treeDataSource,blockLine:!0,draggable:!0,keyboard:!1,labelField:"title",selectable:!1,renderSwitcherIcon:aa.bind(this),onDrop:this.treeDrop.bind(this)},null)})}}),la=Vue.defineComponent({name:"TablePrint",props:ie,setup(e){const{wrapperRef:t}=Vue.inject(K.tableKey,{});return{printTableClick:()=>{const{printTableOptions:{printOptions:o={},domToImageOptions:r}={},title:a}=e;(o.documentTitle===""||o.documentTitle===void 0||o.documentTitle===null)&&(o.documentTitle=typeof a=="string"?a:""),yt(t,{printOptions:o,domToImageOptions:r})}}},render(){return Vue.createVNode(N,{name:"print",size:K.tableIconSize,cursor:"pointer",onClick:this.printTableClick.bind(this)},null)}}),sa=Vue.defineComponent({name:"TablePropsSelect",props:{...ie,onPopselectChange:{type:[Function,Array],default:null},onInitialed:{type:[Function,Array],default:null}},setup(e){const t=Vue.ref(!1),n=Vue.ref([]),o=a=>{const{onPopselectChange:s}=e;s&&A(s,a)};return(()=>{const{striped:a,bordered:s,onInitialed:l}=e;a&&n.value.push("striped"),s&&n.value.push("bordered"),l&&A(l,n.value)})(),{propsPopselectValue:n,popoverShow:t,updatePopselectValue:o}},render(){return Vue.createVNode(naive.NPopselect,{value:this.propsPopselectValue,"onUpdate:value":e=>this.propsPopselectValue=e,options:ta,trigger:"click",multiple:!0,onUpdateValue:this.updatePopselectValue.bind(this)},{default:()=>[Vue.createVNode(N,{name:"expanded",size:K.tableIconSize,cursor:"pointer",style:"transform: rotate(270deg);"},null)]})}});function ia(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Zr=Vue.defineComponent({name:"RTable",inheritAttrs:!1,props:ie,setup(e,t){const{expose:n,emit:o}=t,r=Vue.useTemplateRef("rTableInst"),a=Vue.useTemplateRef("wrapperRef"),s=Ve(16),l=Ve(16),i=Vue.reactive({x:0,y:0,showContextMenu:!1}),u=Vue.reactive({size:e.size}),d=Vue.ref(Object.assign({striped:!1,bordered:!1},ae(e,"striped","bordered"))),h=(c,b)=>{const{onContextMenuClick:_}=e;_&&A(_,c,b),i.showContextMenu=!1},f=(c,b)=>{var O;return{...(O=e.rowProps)==null?void 0:O.call(e,c,b),onContextmenu:e.disabledContextMenu?void 0:V=>{V.preventDefault(),i.showContextMenu=!1,Vue.nextTick().then(()=>{i.showContextMenu=!0,i.x=V.clientX,i.y=V.clientY})}}},m=c=>{u.size=c},p=c=>{const{onUpdateColumns:b,"onUpdate:columns":_}=e;b&&A(b,c),_&&A(_,c)},g=()=>{const{toolOptions:c}=e;return c==null?void 0:c.filter(Boolean).map(b=>typeof b=="function"?b():b)},v=c=>{Object.keys(d.value).forEach(_=>{d.value[_]=c.includes(_)})},y=c=>{const{tool:b}=c;if(!b)return;const _=()=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createVNode(la,c,null),Vue.createVNode(na,Vue.mergeProps(c,{onChangeSize:m.bind(this)}),null),Vue.createVNode(oa,null,null),Vue.createVNode(ra,Vue.mergeProps(c,{onUpdateColumn:p.bind(this)}),null),Vue.createVNode(sa,Vue.mergeProps(c,{onPopselectChange:v.bind(this),onInitialed:v.bind(this)}),null)]});return e.toolOptions?e.coverTool?()=>{let O;return Vue.createVNode(naive.NFlex,{align:"center"},ia(O=g())?O:{default:()=>[O]})}:()=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[_(),g()]}):_};return Vue.onMounted(()=>{const{onRegister:c}=e;c&&r.value&&A(c,r.value,{uuidTable:l,uuidWrapper:s,wrapperRef:a})}),Vue.provide(K.tableKey,{uuidTable:l,uuidWrapper:s,wrapperRef:a}),n(),{uuidWrapper:s,uuidTable:l,contextMenuReactive:i,rTableInst:r,combineRowProps:f,contextMenuSelect:h,privateReactive:u,tool:y,wrapperRef:a,propsPopselectValue:d}},render(){const{$props:e,$attrs:t,wrapperBordered:n,uuidWrapper:o,privateReactive:r,disabledContextMenu:a,contextMenuReactive:s,contextMenuOptions:l,uuidTable:i,title:u,$slots:d,propsPopselectValue:h,renderWrapperHeader:f}=this,{class:m}=t,{tool:p,combineRowProps:g,contextMenuSelect:v}=this;return Vue.createVNode(naive.NCard,Vue.mergeProps(e.cardProps,{id:o},{ref:"wrapperRef",bordered:n,class:m}),{default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NDataTable,Vue.mergeProps({id:i},t,e,h,{rowProps:g.bind(this),size:r.size,ref:"rTableInst"}),{...d}),a?null:Vue.createVNode(naive.NDropdown,{show:s.showContextMenu,placement:"bottom-start",trigger:"manual",x:s.x,y:s.y,options:l,onClickoutside:()=>s.showContextMenu=!1,onSelect:v.bind(this)},null)]),header:f?ee(u,{defaultElement:Vue.createVNode("div",{style:"display: none;"},null)}):null,"header-extra":p(e),footer:()=>{var y;return(y=d.tableFooter)==null?void 0:y.call(d)},action:()=>{var y;return(y=d.tableAction)==null?void 0:y.call(d)}})}}),Qr=()=>{const e=Vue.ref();let t={};const n=(m,p)=>{m&&(e.value=m,t=p)},o=()=>{if(!e.value)throw new Error("[useTable]: table instance is not ready yet. if you are using useTable, please make sure you have called register method in onRegister event.");return e.value};return[n,{getTableInstance:o,clearFilters:()=>o().clearFilters.call(null),clearSorter:()=>o().clearSorter.call(null),downloadCsv:m=>o().downloadCsv.call(null,m),filters:m=>o().filters.call(null,m),page:m=>o().page.call(null,m),scrollTo:m=>o().scrollTo(m),sort:(m,p)=>o().sort.call(null,m,p),print:m=>{const{uuidWrapper:p}=t;if(p){const g=document.getElementById(p);yt(g,m)}},filter:m=>o().filter.call(null,m)}]},At=(e,t,n)=>{var o;if(e.length)for(const r of e){if(r[t]===n)return r;if((o=r==null?void 0:r.children)!=null&&o.length){const a=At(r.children,t,n);if(a)return a}}},ot=e=>{const t=Vue.unref(e);return t?t.findIndex(o=>{const{type:r,multiple:a}=o;if(r==="selection"&&(a==null||a===!0))return!0})!==-1:!0},ua=(e,t,n,o)=>{const r=Vue.unref(e);return r?t.reduce((a,s)=>{const l=Vue.unref(n).findIndex(u=>u[o]===s);if(l!==-1)return a.push(Vue.unref(n)[l]),a;const i=r.findIndex(u=>u[o]===s);return i!==-1&&a.push(r[i]),a},[]):n},el=(e,t,n)=>{const o=Vue.ref([]),r=Vue.ref([]),{rowKey:a="key",onChange:s}=n||{},l=Vue.computed(()=>ot(t)),i=(p,g,v)=>{o.value=p,r.value=Vue.unref(ua(e,p,r,a)),s==null||s(p,r.value,v),ot(t)},u=()=>o.value,d=()=>r.value,h=()=>{o.value=[],r.value=[],s==null||s(o.value,r.value,{row:void 0,action:"uncheckAll"})},f=p=>{if(p==null)return;let g;o.value=o.value.filter(v=>v!==p),r.value=r.value.filter(v=>v[a]===p?(g=v,!1):!0),s==null||s(o.value,r.value,{row:g,action:"uncheck"})},m=p=>{if(o.value.includes(p))return;const g=!l.value&&o.value.length>=1,v=At(Vue.unref(e)||[],a,p);g?o.value=[p]:o.value.push(p),v&&(g?r.value=[v]:r.value.push(v),s==null||s(o.value,r.value,{row:v,action:"check"}))};return qe(()=>{h()}),[o,{checkedRows:r,checkedRowKeysBind:i,getKeys:u,getRows:d,clearAll:h,clearKey:f,selectKey:m}]},ca={transitionPropName:"fade",transitionMode:"out-in",transitionAppear:!0},da=Vue.defineComponent({name:"RTransitionComponent",__name:"index",props:Vue.mergeDefaults({transitionPropName:{},transitionMode:{},transitionAppear:{type:Boolean}},ca),setup(e){const{getKeepAliveInclude:t}=Na(),{setupKeepAlive:n,maxKeepAliveLength:o,keepAliveExclude:r}=St;return(a,s)=>{const l=Vue.resolveComponent("RouterView");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(l,null,{default:Vue.withCtx(({Component:i,route:u})=>[i?(Vue.openBlock(),Vue.createBlock(Vue.Transition,{key:0,name:a.transitionPropName,mode:a.transitionMode,appear:a.transitionAppear},{default:Vue.withCtx(()=>[(Vue.openBlock(),Vue.createBlock(Vue.Suspense,null,{default:Vue.withCtx(()=>[Vue.unref(n)?(Vue.openBlock(),Vue.createBlock(Vue.KeepAlive,{key:0,max:Vue.unref(o),include:Vue.unref(t),exclude:Vue.unref(r)},[(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(i),{key:u.fullPath}))],1032,["max","include","exclude"])):(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(i),{key:u.fullPath}))]),_:2},1024))]),_:2},1032,["name","mode","appear"])):Vue.createCommentVNode("",!0)]),_:1})])}}}),pa={...naive.formProps,onRegister:{type:[Function,Array],default:null}},tl=Vue.defineComponent({name:"RForm",props:pa,setup(e,{expose:t}){const n=Vue.useTemplateRef("formRef");return Vue.onMounted(()=>{const{onRegister:o}=e;o&&n.value&&A(o,n.value)}),t(),{formRef:n}},render(){const{$attrs:e,$props:t,$slots:n}=this;return Vue.createVNode(naive.NForm,Vue.mergeProps(e,t,{ref:"formRef"}),{...n})}}),nl=(e,t)=>{const n=Vue.ref(),o=u=>{u&&(n.value=u)},r=()=>{if(!n.value)throw new Error("[useForm]: form instance is not ready yet. if you are using useForm, please make sure you have called register method in onRegister event.");return n.value};return[o,{getFormInstance:r,validate:(u,d)=>r().validate.call(null,u,d),restoreValidation:()=>r().restoreValidation.call(null),formModel:()=>ye(e)||{},formRules:()=>ye(t)||{}}]},ma=["addTabClass","addTabStyle","paneClass","paneStyle","paneWrapperStyle","tabClass","tabStyle","type","label","addable","closable","onAdd","onClose","placement","animated","justifyContent","builtinThemeOverrides","displayDirective"],ha={tabPaddingSmallSegment:"4px 7px",tabPaddingMediumSegment:"6px 11px",tabPaddingLargeSegment:"8px 11px"},fa=Ue({...naive.tabsProps,options:{type:Array,default:()=>[]},width:{type:[Number,String],default:"fitContent"}},...ma);function ga(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Be=e=>{const{icon:t,label:n}=e;return t?Vue.createVNode(naive.NFlex,{align:"center",wrap:!1,size:"small"},{default:()=>[Vue.createVNode(t,null,null),Vue.createVNode("div",null,[n])]}):n},va=e=>{if(typeof e.popover=="string")return Vue.createVNode(naive.NPopover,null,{trigger:()=>Be(e),default:()=>e.popover});if(G(e.popover,"Object")){const{popover:t}=e,{label:n,...o}=t;return Vue.createVNode(naive.NPopover,o,{trigger:()=>Be(e),default:()=>n})}},ol=Vue.defineComponent({name:"RSegment",props:fa,setup(e,{expose:t}){const n=Vue.computed(()=>{const{width:o}=e;let r="";switch(o){case"block":r="100%";break;case"fitContent":r="fit-content";break;default:r=typeof o=="number"?L(o):"fit-content"}return{"--r-segment-width":r}});return t(),{cssVars:n}},render(){let e;const{$props:t,options:n,cssVars:o,themeOverrides:r}=this;return Vue.createVNode(naive.NTabs,Vue.mergeProps(t,{ref:"segmentRef",style:[o],class:"r-segment",type:"segment",animated:!0,themeOverrides:Object.assign({},ha,r)}),ga(e=n.map(a=>Vue.createVNode(naive.NTab,{key:a.key,name:a.key,tab:a.popover?va(a):Be(a),disabled:a.disabled},{...a.slots})))?e:{default:()=>[e]})}}),ya={width:{type:[String,Number],default:"auto"},height:{type:[String,Number],default:"auto"},loading:{type:Boolean,default:!1},barcodeRender:{type:String,default:"canvas",validator:e=>["canvas","svg"].includes(e)},text:{type:String},options:{type:Object,default:()=>({})},format:{type:String,default:()=>"CODE128"},watchText:{type:Boolean,default:!0},onSuccess:{type:[Function,Array]},onError:{type:[Function,Array]},onFinally:{type:[Function,Array]}},al=Vue.defineComponent({name:"RBarcode",props:ya,setup(e){const t=Vue.useTemplateRef("barcodeRef"),n=Vue.computed(()=>({"--r-barcode-width":L(e.width),"--r-barcode-height":L(e.height)}));let o;const r=()=>{try{const{format:a,text:s,options:l,onSuccess:i}=e,u=Object.assign({},l,{format:a});JsBarcode(t.value,s!=null?s.toString():"",u),i&&A(i,s,a,l)}catch(a){const{onError:s}=e;s&&A(s,a)}finally{const{onFinally:a}=e;a&&A(a)}};return Vue.watchEffect(()=>{e.watchText?o=Vue.watch(()=>e.text,r):o==null||o()}),Vue.onMounted(()=>{r()}),Vue.onBeforeUnmount(()=>{o==null||o()}),{barcodeRef:t,cssVars:n}},render(){const{barcodeRender:e,loading:t,cssVars:n}=this,o=["r-barcode",{"r-barcode--loading":t}];return Vue.createVNode(naive.NSpin,{class:"r-barcode-spin",show:t},{default:()=>[e==="canvas"?Vue.createVNode("canvas",{class:o,style:n,ref:"barcodeRef"},null):Vue.createVNode("svg",{class:o,style:n,ref:"barcodeRef"},null)]})}});var Va={pkg:{dependencies:{"@vueuse/core":"^10.9.0",axios:"^1.7.5",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.39.0",pinia:"^2.1.7","pinia-plugin-persistedstate":"^4.0.1","print-js":"^1.6.0",vue:"^3.5.6","vue-demi":"0.14.6","vue-hooks-plus":"2.2.1","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.8.1","@commitlint/config-conventional":"^17.8.1","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.2.2","@types/dom-to-image":"2.6.7","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.21.0","@typescript-eslint/parser":"^6.21.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.0","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.16",depcheck:"^1.4.7",eslint:"^8.57.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.2.0",postcss:"^8.4.38","postcss-px-to-viewport-8-with-include":"1.2.2",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.18.2","unplugin-vue-components":"^0.27.4",vite:"^5.4.3","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.0.13"},name:"ray-template",version:"4.9.5"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const ba=(e,t,n)=>!e||typeof e!="object"?!1:e[t]===n,xt=(e,t,n)=>{const o=[];if(ba(e,t,n))return o.push(e),o;if(e.children&&e.children.length>0)for(const r of e.children){const a=xt(r,t,n);a.length>0&&o.push(e,...a)}return o},_a=(e,t,n)=>{const o=[];for(const r of e){const a=xt(r,t,n);a.length>0&&o.push(...a)}return o},at=e=>{const{breadcrumbLabel:t}=e;if(!t)return;const{layout:{sideBarLogo:n}}=Va,o=n?n.title:"";document.title=t+" - "+o},Sa=e=>{const{meta:{icon:t}}=e;if(!t)return;if(G(t,"Object"))return()=>t;const n=Vue.h(N,{name:t,size:X.menuCollapsedIconSize,cursor:"pointer"},{});return()=>n},Mt=e=>{const{meta:{extra:t}}=e;if(!t)return;const{show:n}=t;if(n===!1)return;const{t:o}=se(),{label:r,icon:a,type:s,i18nLabel:l}=t,i={type:"primary",size:"small",round:!0,bordered:!1,strong:!0},u=()=>l?o(l):r||null,d=()=>a&&(l||r)||!a&&(l||r)?null:{"padding-right":"0"};if(G(t,"Object"))return()=>Vue.h(naive.NTag,{...i,type:s||"primary",style:d()},{default:()=>u(),icon:()=>a})},rt=()=>{const{getRootPath:e}=ne();return le(I.appMenuKey,"sessionStorage",{defaultValue:e.value})},Lt=()=>Fo(zo()),wa=()=>Do(Lt()),$e=["redirect","breadcrumbLabel","children","key","meta","name","path","show","fullPath"];let he;const It=(e,t)=>{var n;if(he&&Je(he.fullPath,t))return he;for(const o of e){if(Je(o.fullPath,t))return he=o,o;if((n=o.children)!=null&&n.length){It(o.children,t);continue}}},Et=Pinia.defineStore("menu",()=>{const{push:e,getRoutes:t}=VueRouter.useRouter(),n=VueRouter.useRoute(),{t:o}=se(),{setKeepAliveInclude:r}=Oa(),a=Vue.reactive({menuKey:rt(),options:[],collapsed:!1,menuTagOptions:[],breadcrumbOptions:[],currentMenuOption:null}),s=Vue.ref(!0),l=(c,b)=>{Object.hasOwn(a,c)&&(a[c]=b)},i=c=>{const{meta:b}=c,{i18nKey:_,noLocalTitle:O}=b,V=Vue.computed(()=>_?o(`${_}`):O),C={...c,key:c.fullPath,label:()=>Vue.h(naive.NEllipsis,null,{default:()=>V.value}),breadcrumbLabel:V.value},k=Object.assign({},C,{icon:Sa(c),extra:Mt(c)});return c.fullPath===rt()&&(a.currentMenuOption=k),k.show=Nt(k),k},u=c=>{a.breadcrumbOptions=_a(a.options,"fullPath",c)},d=(c,b=!0)=>{const O=Array.isArray(c)?[...c]:[c];b?a.menuTagOptions.push(...O):a.menuTagOptions=O},h=(c,b)=>{a.menuTagOptions.find(O=>O.fullPath===c)||a.menuTagOptions.push(b)},f=(c,b,_)=>{const{meta:O}=b;if(O.windowOpen)window.open(O.windowOpen);else{e({path:String(c),query:_});const{sameLevel:V}=O;if(r(b),at(b),!V)h(c,b),u(c),a.menuKey=c,a.currentMenuOption=b,We(I.appMenuKey,c);else{const C=ae(i(b),$e);a.breadcrumbOptions.find(S=>S.key===C.key)||a.breadcrumbOptions.push({...C,fullPath:String(C.key)})}}},m=async(c,b)=>{const[_]=c.split("?"),O=t().find(V=>V.path===_);if(O){const V=ae(O,$e);f(_,i({...V,fullPath:V.path}),b)}},p=()=>new Promise(c=>{const b=(_,O)=>{var C;const V=[];for(const k of _){let S=`${O.endsWith("/")?O:O+"/"}${k.path}`;if(S=S.replace(/\/+/g,"/"),(C=k.children)!=null&&C.length)k.children=b(k.children,S);else if(!Dt(k.meta))continue;V.push(i({...k,fullPath:S}))}return V};if(a.options=b(Lt(),""),a.currentMenuOption){const{currentMenuOption:_}=a;a.breadcrumbOptions.length||u(_.key),h(_.fullPath,_),at(_)}c()}),g=c=>a.collapsed=c,v=(c,b=1)=>a.menuTagOptions.splice(c,b),y=async()=>{s.value&&(await p(),s.value=!1)};return Vue.watch(()=>n.fullPath,async(c,b)=>{await y(),c!==b&&await m(c,n.query)},{immediate:!0}),{...Vue.toRefs(a),changeMenuModelValue:f,collapsedMenu:g,spliceMenTagOptions:v,setMenuTagOptions:d,resolveOption:i,updateMenuState:l}},{persist:{key:I.appPiniaMenuStore,storage:window.localStorage,pick:["breadcrumbOptions","menuKey","menuTagOptions","collapsed"]}}),zt=Pinia.defineStore("signing",()=>{const e=Vue.reactive({signingCallback:{}}),t=o=>new Promise((r,a)=>{pt(o)?a({code:1,message:"登陆失败",data:null}):(e.signingCallback={role:"admin",name:o.name,avatar:"https://avatars.githubusercontent.com/u/51957438?v=4"},r({code:0,message:"登陆成功",data:e.signingCallback}))}),n=()=>{const{closeAll:o}=$t(),{appPiniaMenuStore:r,appPiniaSigningStore:a}=I;window.$message.info("账号退出中..."),Re("__all_sessionStorage__","sessionStorage"),Re(r,"localStorage"),Re(a,"localStorage"),o(),setTimeout(()=>window.location.reload())};return{...Vue.toRefs(e),signing:t,logout:n}},{persist:{key:I.appPiniaSigningStore,pick:["signingCallback"],storage:window.localStorage}}),jt=Pinia.defineStore("keepAlive",()=>{const{maxKeepAliveLength:e}=St,t=Vue.reactive({keepAliveInclude:[]}),n=()=>t.keepAliveInclude.length,o=a=>{const s=n(),{name:l,meta:{keepAlive:i}}=a;if(i){if(s=e&&(t.keepAliveInclude.splice(0,1),t.keepAliveInclude.push(l))}},r=()=>t.keepAliveInclude;return{...Vue.toRefs(t),setKeepAliveInclude:o,getKeepAliveInclude:r}},{persist:{key:I.appPiniaKeepAliveStore,storage:window.sessionStorage,pick:["keepAliveInclude"]}}),J=()=>{const e=Et(),t=Vue.computed(()=>e.options),n=Vue.computed(()=>e.breadcrumbOptions),o=Vue.computed(()=>e.menuKey),r=Vue.computed(()=>{const{getRootPath:l}=ne();return e.menuTagOptions.map((i,u,d)=>(i.key===o.value&&i.key!==l.value?i.closeable=!0:i.closeable=!1,i.key===l.value&&(i.closeable=!1),d.length<=1&&(i.closeable=!1),i))}),a=Vue.computed(()=>e.currentMenuOption),s=Vue.computed(()=>e.collapsed);return{getMenuOptions:t,getBreadcrumbOptions:n,getMenuKey:o,getMenuTagOptions:r,getCurrentMenuOption:a,getCollapsed:s}},ue=()=>{const{changeMenuModelValue:e,collapsedMenu:t,spliceMenTagOptions:n,setMenuTagOptions:o,resolveOption:r,updateMenuState:a}=Et();return{changeMenuModelValue:e,collapsedMenu:t,spliceMenTagOptions:n,setMenuTagOptions:o,resolveOption:r,updateMenuState:a}},D=()=>{const e=Ot(),t=Vue.computed(()=>e.drawerPlacement),n=Vue.computed(()=>e.primaryColorOverride),o=Vue.computed(()=>e.appTheme),r=Vue.computed(()=>e.menuTagSwitch),a=Vue.computed(()=>e.breadcrumbSwitch),s=Vue.computed(()=>e.localeLanguage),l=Vue.computed(()=>e.lockScreenSwitch),i=Vue.computed(()=>e.copyrightSwitch),u=Vue.computed(()=>e.contentTransition),d=Vue.computed(()=>e.watermarkSwitch),h=Vue.computed(()=>e.watermarkConfig),f=Vue.computed(()=>e.appRootRoute),m=Vue.computed(()=>e.sideBarLogo);return{getDrawerPlacement:t,getPrimaryColorOverride:n,getAppTheme:o,getMenuTagSwitch:r,getBreadcrumbSwitch:a,getLocaleLanguage:s,getLockScreenSwitch:l,getCopyrightSwitch:i,getContentTransition:u,getWatermarkSwitch:d,getWatermarkConfig:h,getAppRootRoute:f,getSideBarLogo:m}},j=()=>{const{updateLocale:e,changePrimaryColor:t,updateSettingState:n}=Ot();return{updateLocale:e,changePrimaryColor:t,updateSettingState:n}},Ca=()=>{const e=zt();return{getSigningCallback:Vue.computed(()=>e.signingCallback)}},Ta=()=>{const{signing:e,logout:t}=zt();return{signing:e,logout:t}},Na=()=>{const e=jt();return{getKeepAliveInclude:Vue.computed(()=>e.keepAliveInclude)}},Oa=()=>{const{setKeepAliveInclude:e,getKeepAliveInclude:t}=jt();return{setKeepAliveInclude:e,getKeepAliveInclude:t}},rl=e=>{const t=Pinia.createPinia();e.use(t),t.use(cn)},Dt=e=>{const{getSigningCallback:t}=Ca(),{role:n}=e;return me!=null&&me.length&&me.includes(t.value.role)||!n||!(n!=null&&n.length)?!0:n?n.includes(t.value.role):!0},Ra=e=>{const{setupRouterLoadingBar:t,setupRouterGuard:n}=$n;t&&Ko(e),n&&Bo(e)},ka=Vue.ref(),Pa=Vue.defineComponent({name:"SiderBarLogo",props:{collapsed:{type:Boolean,required:!0}},setup(){const e=VueRouter.useRouter(),{getSideBarLogo:t}=D();return{sideBarLogo:t,sideBarLogoClick:()=>{t.value&&t.value.url&&(t.value.jumpType==="station"?e.push(t.value.url):window.open(t.value.url))},TemplateLogo:({cursor:r})=>{if(!t.value)return null;if(typeof t.value.icon=="string")return Vue.createVNode(N,{name:t.value.icon,size:"30",cursor:r},null);if(G(t.value.icon,"Object"))return ee(t.value.icon)}}},render(){const{sideBarLogo:e,collapsed:t,TemplateLogo:n,sideBarLogoClick:o}=this;return e!=null&&e.title?Vue.createVNode("div",{class:["ray-menu__logo",e!=null&&e.url?"ray-menu__logo-url":null],onClick:o.bind(this),ref:ka},[e!=null&&e.icon?t?Vue.createVNode(naive.NTooltip,{placement:"right"},{trigger:()=>n({cursor:"pointer"}),default:()=>e.title}):n({cursor:"pointer"}):t?Vue.createVNode(naive.NTooltip,{placement:"right"},{trigger:()=>{var r;return Vue.createVNode("h1",{class:"n-menu-item-content"},[((r=e.title)==null?void 0:r[0])||null])},default:()=>e.title}):null,Vue.createVNode("h1",{class:[t?null:"ray-menu__logo-title--open","ray-menu__logo-title",'class="n-menu-item-content"']},[Vue.createVNode(naive.NEllipsis,null,{default:()=>[e.title]})])]):null}}),Aa=Vue.defineComponent({name:"AppMenu",setup(){const e=Vue.ref(null),{changeMenuModelValue:t,collapsedMenu:n,updateMenuState:o}=ue(),{getMenuOptions:r,getCollapsed:a,getMenuKey:s}=J(),l=Vue.computed({get:()=>(Vue.nextTick().then(()=>{d()}),s.value),set:()=>{i.value&&q("globalDrawerValue",!1)}}),{isTabletOrSmaller:i}=Ce({observer:f=>{f&&o("collapsed",!1)}}),u=Vue.computed({get:()=>we("globalDrawerValue").value,set:f=>{q("globalDrawerValue",f)}}),d=()=>{const f=l.value;f!=null&&Vue.nextTick(()=>{var m,p;return(p=(m=e.value)==null?void 0:m.showOption)==null?void 0:p.call(m,f)})};return{isTabletOrSmaller:i,BasicMenu:()=>Vue.createVNode(naive.NLayoutSider,{class:"app-menu__sider",showTrigger:!i.value,collapseMode:X.menuCollapsedMode,collapsedWidth:X.menuCollapsedWidth,onUpdateCollapsed:n.bind(this),nativeScrollbar:!1,ref:Ct,collapsed:a.value,onExpand:()=>{o("collapsed",!1)},onCollapse:()=>{o("collapsed",!0)}},{default:()=>[Vue.createVNode(Pa,{collapsed:a.value},null),Vue.createVNode(naive.NMenu,{ref:e,class:"r-menu--app",keyField:"fullPath",value:l.value,"onUpdate:value":f=>l.value=f,options:r.value,indent:X.menuCollapsedIndent,collapsed:a.value,collapsedIconSize:X.menuCollapsedIconSize,collapsedWidth:X.menuCollapsedWidth,onUpdateValue:(f,m)=>{t(f,m)},accordion:X.menuAccordion},null)]}),modelGlobalDrawerValue:u}},render(){const{isTabletOrSmaller:e,BasicMenu:t}=this;return e?Vue.createVNode(naive.NDrawer,{class:"app-menu__drawer",show:this.modelGlobalDrawerValue,"onUpdate:show":n=>this.modelGlobalDrawerValue=n,placement:"left",displayDirective:"show",autoFocus:!1},{default:()=>[Vue.createVNode(t,null,null)]}):Vue.createVNode(t,null,null)}});class xa{constructor(){Xe(this,"pendingRequest");this.pendingRequest=new Map}isAppending(t){var n;return((n=t.cancelConfig)==null?void 0:n.cancel)??!0}generateRequestKey(t){const{method:n,url:o}=t;return[o||"",n||"",JSON.stringify(t.params),JSON.stringify(t.data)].join("&")}addPendingRequest(t){var n;if(this.isAppending(t)){t.__CANCELER_TAG_RAY_TEMPLATE__="__CANCELER_TAG_RAY_TEMPLATE__";const o=this.generateRequestKey(t);if(this.pendingRequest.has(o))t.signal=(n=this.pendingRequest.get(o))==null?void 0:n.signal;else{const r=new AbortController;t.signal=r.signal,this.pendingRequest.set(o,r)}}}removePendingRequest(t){const n=this.generateRequestKey(t);this.pendingRequest.has(n)&&(this.pendingRequest.get(n).abort(),this.pendingRequest.delete(n))}cancelAllRequest(){this.pendingRequest.forEach(t=>{t.abort()})}}const Ae={requestInstance:null,responseInstance:null},xe={implementRequestInterceptorArray:[],implementResponseInterceptorArray:[]},fe={implementRequestInterceptorErrorArray:[],implementResponseInterceptorErrorArray:[]},Ma=new xa,ll=()=>{const e=(l,i)=>{i==="requestInstance"?Ae.requestInstance=l:Ae.responseInstance=l},t=l=>Ae[l],n=(l,i,u)=>{u==="ok"?xe[l]=i:fe[l]=i},o=(l,i)=>i==="ok"?xe[l]:fe[l],r=(l,...i)=>{Array.isArray(l)&&l.forEach(u=>{typeof u=="function"&&u(...i)})};return{createAxiosInstance:e,setImplement:n,getImplement:o,getAxiosInstance:t,beforeFetch:(l,i,u)=>{const d=u==="ok"?xe[i]:fe[i],h=t(l),{MODE:f}=De();h&&r(d,h,f)},fetchError:(l,i,u)=>{const d=fe[u],{MODE:h}=De();r(d,i,h)}}},La=Vue.defineComponent({name:"AppRequestCancelerProvider",setup(e,{expose:t}){VueRouter.onBeforeRouteUpdate(()=>{Ma.cancelAllRequest()}),t()},render(){return Vue.createVNode("div",{class:"app-style-provider"},null)}}),Ft=Vue.defineComponent({name:"LayoutContentWrapper",setup(){VueRouter.useRouter();const{maximize:e}=Bt(),{getContentTransition:t}=D(),n=Vue.ref(!1),o={opacitySpinning:"0"},{globalMainLayoutLoad:r,layoutContentMaximize:a,layoutContentSpinning:s}=Un();return{globalMainLayoutLoad:r,spinning:n,themeOverridesSpin:o,getContentTransition:t,layoutContentMaximize:a,maximize:e,layoutContentSpinning:s}},render(){const{globalMainLayoutLoad:e,layoutContentMaximize:t,layoutContentSpinning:n,maximize:o,spinning:r,themeOverridesSpin:a,getContentTransition:s}=this;return Vue.createVNode(naive.NSpin,{show:r||!e||n,description:"loading...",size:"large",themeOverrides:a,class:[t?"r-layout-full__viewer-content--maximize":null,"r-layout-full__viewer-content--maximize--light","r-layout-full__viewer-content--maximize--dark"]},{default:()=>[t?Vue.createVNode("div",{class:"layout-content__maximize-out",onClick:()=>{o(!1)}},[Vue.createVNode(N,{name:"out",size:"16",cursor:"pointer"},null)]):null,Vue.createVNode(La,null,null),e?Vue.createVNode(da,{class:"content-wrapper",transitionPropName:s+"-transform"},null):null]})}}),Ia=Object.freeze(Object.defineProperty({__proto__:null,default:Ft},Symbol.toStringTag,{value:"Module"}));var Ea={pkg:{dependencies:{"@vueuse/core":"^10.9.0",axios:"^1.7.5",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.39.0",pinia:"^2.1.7","pinia-plugin-persistedstate":"^4.0.1","print-js":"^1.6.0",vue:"^3.5.6","vue-demi":"0.14.6","vue-hooks-plus":"2.2.1","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.8.1","@commitlint/config-conventional":"^17.8.1","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.2.2","@types/dom-to-image":"2.6.7","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.21.0","@typescript-eslint/parser":"^6.21.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.0","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.16",depcheck:"^1.4.7",eslint:"^8.57.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.2.0",postcss:"^8.4.38","postcss-px-to-viewport-8-with-include":"1.2.2",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.18.2","unplugin-vue-components":"^0.27.4",vite:"^5.4.3","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.0.13"},name:"ray-template",version:"4.9.5"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const za=Vue.defineComponent({name:"LayoutFooterWrapper",setup(){const{layout:{copyright:e}}=Ea;return{copyright:e}},render(){return this.copyright?Vue.createVNode("div",{class:"layout-footer-wrapper"},[this.copyright]):""}}),ja=Vue.defineComponent({name:"TooltipIcon",props:{...naive.tooltipProps,iconName:{type:String,required:!0},customClassName:{type:String,default:null},tooltipText:{type:String,default:null}},emits:["click"],setup(e,{emit:t}){const n=r=>{t("click",r)};return{iconClick:n,Icon:()=>Vue.createVNode(N,{name:e.iconName,size:"18",customClassName:`tooltip-text__icon ${e.customClassName}`,cursor:"pointer",onClick:n.bind(this)},null)}},render(){const{Icon:e}=this;return this.tooltipText?Vue.createVNode(naive.NTooltip,this.$props,{trigger:()=>Vue.createVNode(e,null,null),default:()=>this.tooltipText}):Vue.createVNode(e,null,null)}}),Da=Vue.defineComponent({name:"ThemeSwitch",setup(){const{darkTheme:e,lightTheme:t}=br(),{getAppTheme:n}=D(),o=Vue.ref(n.value);return{darkTheme:e,lightTheme:t,getAppTheme:n,railStyle:({checked:a})=>a?{backgroundColor:"#000000"}:{color:"#000000"},modelAppThemeRef:o}},render(){const{$t:e,darkTheme:t,lightTheme:n,railStyle:o}=this;return Vue.createVNode(naive.NFlex,{justify:"center"},{default:()=>[Vue.createVNode(naive.NTooltip,null,{trigger:()=>Vue.createVNode(naive.NSwitch,{value:this.modelAppThemeRef,"onUpdate:value":r=>this.modelAppThemeRef=r,railStyle:o.bind(this),onUpdateValue:r=>r?t():n()},{"checked-icon":()=>Vue.createVNode(N,{name:"dark"},null),"unchecked-icon":()=>Vue.createVNode(N,{name:"light"},null),checked:()=>"亮",unchecked:()=>"暗"}),default:()=>this.getAppTheme?e("headerSettingOptions.ThemeOptions.Dark"):e("headerSettingOptions.ThemeOptions.Light")})]})}});function ge(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Fa=Vue.defineComponent({name:"SettingDrawer",props:{show:{type:Boolean,default:!1},placement:{type:String,default:"right"},width:{type:Number,default:280}},emits:["update:show"],setup(e,{emit:t}){const{changePrimaryColor:n,updateSettingState:o}=j(),{getAppTheme:r,getPrimaryColorOverride:a,getMenuTagSwitch:s,getBreadcrumbSwitch:l,getCopyrightSwitch:i,getContentTransition:u,getWatermarkSwitch:d}=D(),h=Vue.computed({get:()=>e.show,set:m=>{t("update:show",m)}}),f=Vue.computed({get:()=>({getMenuTagSwitch:s.value,getBreadcrumbSwitch:l.value,getCopyrightSwitch:i.value,getContentTransition:u.value,getWatermarkSwitch:d.value}),set:m=>{}});return{modelShow:h,changePrimaryColor:n,getAppTheme:r,getPrimaryColorOverride:a,updateSettingState:o,modelSwitchReactive:f}},render(){let e,t,n,o;const{$t:r,changePrimaryColor:a,updateSettingState:s}=this;return Vue.createVNode(naive.NDrawer,{show:this.modelShow,"onUpdate:show":l=>this.modelShow=l,placement:this.placement,width:this.width},{default:()=>[Vue.createVNode(naive.NDrawerContent,{title:r("headerSettingOptions.Title")},{default:()=>[Vue.createVNode(naive.NFlex,{class:"setting-drawer__space",vertical:!0},{default:()=>[Vue.createVNode(naive.NDivider,{titlePlacement:"center"},ge(e=r("headerSettingOptions.ThemeOptions.Title"))?e:{default:()=>[e]}),Vue.createVNode(Da,null,null),Vue.createVNode(naive.NDivider,{titlePlacement:"center"},ge(t=r("headerSettingOptions.ThemeOptions.PrimaryColorConfig"))?t:{default:()=>[t]}),Vue.createVNode(naive.NColorPicker,{swatches:$.appThemeColors,value:this.getPrimaryColorOverride.common.primaryColor,"onUpdate:value":l=>this.getPrimaryColorOverride.common.primaryColor=l,onUpdateValue:a.bind(this)},null),Vue.createVNode(naive.NDivider,{titlePlacement:"center"},ge(n=r("headerSettingOptions.ContentTransition"))?n:{default:()=>[n]}),Vue.createVNode(naive.NSelect,{value:this.modelSwitchReactive.getContentTransition,"onUpdate:value":l=>this.modelSwitchReactive.getContentTransition=l,options:zn,onUpdateValue:l=>{s("contentTransition",l)}},null),Vue.createVNode(naive.NDivider,{titlePlacement:"center"},ge(o=r("headerSettingOptions.InterfaceDisplay"))?o:{default:()=>[o]}),Vue.createVNode(naive.NDescriptions,{labelPlacement:"left",column:1},{default:()=>[Vue.createVNode(naive.NDescriptionsItem,{label:"多标签"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.modelSwitchReactive.getMenuTagSwitch,"onUpdate:value":l=>this.modelSwitchReactive.getMenuTagSwitch=l,onUpdateValue:l=>s("menuTagSwitch",l)},null)]}),Vue.createVNode(naive.NDescriptionsItem,{label:"面包屑"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.modelSwitchReactive.getBreadcrumbSwitch,"onUpdate:value":l=>this.modelSwitchReactive.getBreadcrumbSwitch=l,onUpdateValue:l=>s("breadcrumbSwitch",l)},null)]}),Vue.createVNode(naive.NDescriptionsItem,{label:"水印"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.modelSwitchReactive.getWatermarkSwitch,"onUpdate:value":l=>this.modelSwitchReactive.getWatermarkSwitch=l,onUpdateValue:l=>s("watermarkSwitch",l)},null)]}),Vue.createVNode(naive.NDescriptionsItem,{label:"版权信息"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.modelSwitchReactive.getCopyrightSwitch,"onUpdate:value":l=>this.modelSwitchReactive.getCopyrightSwitch=l,onUpdateValue:l=>s("copyrightSwitch",l)},null)]})]})]})]})]})}});function Ba(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const $a=Vue.defineComponent({name:"SiderBarBreadcrumb",setup(){const{changeMenuModelValue:e}=ue(),{getBreadcrumbOptions:t}=J(),{isTabletOrSmaller:n}=Ce();return{getBreadcrumbOptions:t,dropdownSelect:(a,s)=>{e(a,s)},breadcrumbItemClick:a=>{var s;if(!((s=a.children)!=null&&s.length)){const{meta:l={}}=a;l.sameLevel||e(a.fullPath,a)}},isTabletOrSmaller:n}},render(){let e;const{isTabletOrSmaller:t,getBreadcrumbOptions:n}=this,{dropdownSelect:o,breadcrumbItemClick:r}=this;return t?Vue.createVNode("div",{style:"display: none;"},null):Vue.createVNode(naive.NBreadcrumb,null,{default:()=>[Vue.createVNode(Vue.TransitionGroup,{tag:"li",name:"breadcrumb",appear:!0},Ba(e=n.map(a=>Vue.createVNode(naive.NBreadcrumbItem,{key:a.fullPath,onClick:r.bind(this,a)},{default:()=>{var s;return[Vue.createVNode(naive.NDropdown,{labelField:"breadcrumbLabel",keyField:"fullPath",options:a.children&&((s=a.children)==null?void 0:s.length)>1?a.children:[],onSelect:o.bind(this)},{default:()=>Vue.createVNode("span",null,[a.label&&typeof a.label=="function"?a.label():a.breadcrumbLabel])})]}})))?e:{default:()=>[e]})]})}});function Me(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Ka=Vue.defineComponent({name:"GlobalSearch",props:{show:{type:Boolean,default:!1}},emits:["update:show"],setup(e,{emit:t}){const{changeMenuModelValue:n,resolveOption:o}=ue(),{getRoutes:r}=VueRouter.useRouter(),a=Vue.computed({get:()=>e.show,set:V=>{t("update:show",V),V||m()}}),s=Vue.reactive({searchValue:null,searchOptions:[]}),l=[{icon:["↑","↓"],label:"切换",plain:!0},{icon:["↵"],label:"选择",plain:!0},{icon:["esc"],label:"关闭",plain:!0}];let i=0,u=i;const{isTabletOrSmaller:d}=Ce(),h=Vue.ref(!1),f="content-item--active",m=()=>{s.searchOptions=[],s.searchValue=null,i=0,u=i},p=V=>{a.value||(V.ctrlKey||V.metaKey)&&V.key==="k"&&(V.preventDefault(),V.stopPropagation(),m(),a.value=!0)},g=V=>{if(V)h.value=!0;else{h.value=!1,s.searchOptions=[];return}const C=r().reduce((k,S)=>{var F;const P=ae(S,["children","meta","path","name"]),x=o({...P,fullPath:S.path}),{breadcrumbLabel:E}=x;return(F=E==null?void 0:E.toLocaleLowerCase())!=null&&F.includes(V.toLocaleLowerCase())&&Nt(x)&&k.push(x),k},[]);setTimeout(()=>{s.searchOptions=C,Vue.nextTick().then(()=>{y()}),h.value=!1},500)},v=V=>{if(V){const{meta:C}=V;C.windowOpen?window.open(C.windowOpen):(a.value=!1,n(V.fullPath,V),setTimeout(an,300))}},y=()=>{const V=s.searchOptions[i],C=s.searchOptions[u];V&&Vue.nextTick().then(()=>{const k=be(`attr:data_path="${V.path}"`),S=C?be(`attr:data_path="${C==null?void 0:C.path}"`):null;if(S!=null&&S.length){const[P]=S;rn(P,f)}if(k!=null&&k.length){const[P]=k;vt(P,f)}})},c=V=>{const{icon:C}=V;return typeof C=="string"?Vue.createVNode(N,{name:C,size:"24"},null):typeof C=="function"?()=>C:Vue.createVNode(N,{name:"search",size:"24"},null)},b=V=>{V==="up"&&(i-=1,i<0&&(i=s.searchOptions.length-1)),V==="down"&&(i+=1,i>=s.searchOptions.length&&(i=0))},_=V=>{const C=V.key;switch((C==="ArrowUp"||C==="ArrowDown"||C==="Enter")&&(V.preventDefault(),V.stopPropagation()),u=i<=0?0:i,C){case"ArrowUp":b("up");break;case"ArrowDown":b("down");break;case"Enter":const k=s.searchOptions[i];k&&v(k);break}y()},O=({menuOption:V})=>Vue.createVNode(naive.NFlex,Vue.mergeProps({align:"center",class:"content-item"},{onClick:v.bind(this,V),data_path:V.path}),{default:()=>[Vue.createVNode("div",{class:"content-item-icon"},[c(V.meta)]),Vue.createVNode("div",{class:"content-item-label"},[V.breadcrumbLabel]),Vue.createVNode(N,{name:"enter",size:"18",customClassName:"content-item-icon__enter"},null)]});return Vue.watchEffect(()=>{d.value&&(a.value=!1)}),re(window,"keydown",V=>{p(V),_(V)},!0),{...Vue.toRefs(s),modelShow:a,helperTipOptions:l,fuzzySearchMenuOptions:Ke(g,300),searchItemClick:v,RenderPreIcon:c,isTabletOrSmaller:d,SearchItem:O,loading:h}},render(){const{isTabletOrSmaller:e,searchOptions:t,loading:n}=this,{SearchItem:o,fuzzySearchMenuOptions:r}=this;return e?Vue.createVNode("div",{style:"display: none;"},null):Vue.createVNode(naive.NModal,{show:this.modelShow,"onUpdate:show":a=>this.modelShow=a,transformOrigin:"center",displayDirective:"if"},{default:()=>[Vue.createVNode("div",{class:"global-search global-search--dark global-search--light"},[Vue.createVNode("div",{class:"global-search__wrapper"},[Vue.createVNode(naive.NCard,{class:"global-search__card",headerStyle:{padding:"12px 12px 0 12px"},contentStyle:{padding:"12px"},segmented:{action:"soft"}},{header:()=>Vue.createVNode(naive.NInput,{size:"large",value:this.searchValue,"onUpdate:value":a=>this.searchValue=a,clearable:!0,onInput:r.bind(this)},{prefix:()=>Vue.createVNode(N,{name:"search",size:"24"},null)}),default:()=>{let a;return Vue.createVNode(naive.NScrollbar,null,{default:()=>[Vue.createVNode(naive.NSpin,{show:n},{default:()=>[t.length?Vue.createVNode(naive.NFlex,{vertical:!0,size:[0,6],class:"global-search__card-content"},Me(a=t.map((s,l)=>Vue.createVNode(o,{menuOption:s,key:s.fullPath},null)))?a:{default:()=>[a]}):Vue.createVNode(naive.NResult,{size:"large",class:"global-search__empty"},{icon:()=>null,default:()=>Vue.createVNode(naive.NFlex,{justify:"center",class:"global-search__empty-content"},{default:()=>[Vue.createVNode(naive.NText,null,{default:()=>[Vue.createTextVNode("没有搜索结果")]})]})})]})]})},action:()=>{let a;return Vue.createVNode(naive.NFlex,{justify:"flex-start",align:"center",size:[16,0]},Me(a=this.helperTipOptions.map(s=>Vue.createVNode(naive.NFlex,{key:s.label,size:[4,0]},{default:()=>[s.icon.map(l=>Vue.createVNode(naive.NFlex,{class:"item-icon",align:"center",justify:"center"},Me(l)?l:{default:()=>[l]})),Vue.createVNode(naive.NFlex,{class:"item-label",align:"center"},{default:()=>[s.label]})]})))?a:{default:()=>[a]})}})])])]})}}),Ua=Vue.defineComponent({name:"GlobalSearchButton",props:{onClick:{type:[Function,Array],default:null}},setup(e){return{getShortcutKeyAboutSystem:()=>{const o=ln();return o==="MacOS"?"⌘ + K":"CTRL + K"},click:o=>{const{onClick:r}=e;r&&A(r,o)}}},render(){const{getShortcutKeyAboutSystem:e,click:t,$t:n}=this;return Vue.createVNode(naive.NButton,{class:"global-search__btn-wrapper",bordered:!1,onClick:t.bind(this)},{icon:()=>Vue.createVNode(N,{name:"search",size:"16"},null),default:()=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[n("headerTooltip.Search"),Vue.createVNode("div",{class:"global-search-btn__label"},[e()])]})})}}),Wa=Vue.defineComponent({name:"AppAvatar",props:{...naive.avatarProps,cursor:{type:String,default:"auto"},spaceSize:{type:[String,Number,Array],default:"medium"},avatarSize:{type:[String,Number],default:"medium"},vertical:{type:Boolean,default:!1}},setup(e){return{signing:le(I.signing,"localStorage")}},render(){const{signing:e,avatarSize:t,spaceSize:n,$props:o,vertical:r}=this;return Vue.createVNode(naive.NButton,{quaternary:!0,strong:!0},{default:()=>[Vue.createVNode(naive.NFlex,{align:"center",size:n,vertical:r},{default:()=>[Vue.createVNode(naive.NAvatar,Vue.mergeProps(o,{src:e==null?void 0:e.avatar,objectFit:"cover",round:!0,size:t}),null),e==null?void 0:e.name]})]})}}),qa=()=>[{key:"person",label:"个人信息"},{key:"lockScreen",label:"锁定屏幕"},{type:"divider",key:"d1"},{key:"logout",label:"退出登陆"}],Ga={logout:()=>{const{logout:e}=Ta();window.$dialog.warning({title:"提示",content:"您确定要退出登录吗",positiveText:"确定",negativeText:"不确定",onPositiveClick:()=>{e()}})},lockScreen:()=>{const{updateSettingState:e}=j();e("lockScreenSwitch",!0)}},Ha=e=>{const t=Ga[e];t?t():window.$message.info("这个人很懒, 没做这个功能~")},Ya=e=>{const{isTabletOrSmaller:t}=e,n=[],o=[{name:"menu",size:18,eventKey:"menu"}];return t.value?o:n},Xa=e=>{const{isTabletOrSmaller:t}=e,n=[{name:"fullscreen",size:18,eventKey:"screen"},{name:"github",size:18,eventKey:"github"},{name:"setting",size:18,eventKey:"setting"}],o=[...n],r=[...n];return t.value?r:o},Ja=Vue.defineComponent({name:"AppSiderBar",setup(){const{updateLocale:e,updateSettingState:t}=j(),{t:n}=se(),[o,{toggleFullscreen:r,isEnabled:a}]=ht(document.getElementsByTagName("html")[0]),{getDrawerPlacement:s,getBreadcrumbSwitch:l}=D(),i=Vue.ref(!1),u=Vue.ref(!1),{isTabletOrSmaller:d}=Ce(),h=we("globalDrawerValue"),f=Vue.computed(()=>Ya({isFullscreen:o,isTabletOrSmaller:d})),m=Vue.computed(()=>Xa({isFullscreen:o,isTabletOrSmaller:d})),p={search:()=>{u.value=!0},setting:()=>{i.value=!0},github:()=>{window.open("https://github.com/XiaoDaiGua-Ray/ray-template")},fullscreen:()=>{a||window.$message.warning(n("globalMessage.isEnabledFullscreen")),r()},lock:()=>{t("lockScreenSwitch",!0)},menu:()=>{q("globalDrawerValue",!h.value)}};return{leftIconOptions:f,rightTooltipIconOptions:m,toolIconClick:y=>{var c;(c=p[y])==null||c.call(p)},showSettings:i,updateLocale:e,getDrawerPlacement:s,getBreadcrumbSwitch:l,globalSearchShown:u,isRenderVNode:y=>d.value?null:y}},render(){const{rightTooltipIconOptions:e,leftIconOptions:t,getDrawerPlacement:n,getBreadcrumbSwitch:o}=this,{toolIconClick:r,updateLocale:a,isRenderVNode:s}=this;return Vue.createVNode(naive.NLayoutHeader,{class:"layout-header"},{default:()=>[Vue.createVNode(Ka,{show:this.globalSearchShown,"onUpdate:show":l=>this.globalSearchShown=l},null),Vue.createVNode(naive.NFlex,{class:"layout-header__method",align:"center",justify:"space-between",wrap:!1},{default:()=>[Vue.createVNode(naive.NFlex,{align:"center",wrap:!1},{default:()=>[t.map(l=>Vue.createVNode(ja,{key:l.name,iconName:l.name,tooltipText:Vue.isRef(l.tooltip)?l.tooltip.value:l.tooltip,customClassName:l.iconClass,onClick:r.bind(this,l.name)},null)),o?Vue.createVNode($a,null,null):null]}),Vue.createVNode(naive.NFlex,{justify:"end",align:"center",size:[4,0],wrap:!1},{default:()=>[s(Vue.createVNode(Ua,{onClick:l=>{l.stopPropagation(),this.globalSearchShown=!0}},null)),e.map(l=>Vue.createVNode(naive.NButton,{class:"override-button__layout",quaternary:!0,size:"medium",key:l.name,onClick:r.bind(this,l.name)},{default:()=>[Vue.createVNode(N,{name:l.name,size:18,cursor:"pointer"},null)]})),Vue.createVNode(naive.NDropdown,{options:wt,onSelect:l=>a(String(l)),trigger:"click"},{default:()=>[Vue.createVNode(naive.NButton,{quaternary:!0,class:"override-button__layout"},{default:()=>[Vue.createVNode(N,{customClassName:"layout-header__method--icon",name:"language",size:"18",cursor:"pointer"},null)]})]}),Vue.createVNode(naive.NDropdown,{options:qa(),onSelect:Ha.bind(this),trigger:"click"},{default:()=>[Vue.createVNode(Wa,{avatarSize:24,spaceSize:[8,0],class:"override-button__layout"},null)]})]})]}),Vue.createVNode(Fa,{show:this.showSettings,"onUpdate:show":l=>this.showSettings=l,placement:n},null)]})}}),Za=Vue.defineComponent({name:"LayoutHeaderWrapper",setup(){return{}},render(){return Vue.createVNode(naive.NFlex,{size:[0,0]},{default:()=>[Vue.createVNode(Ja,null,null)]})}}),Qa={xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em","aria-hidden":"true",viewBox:"0 0 24 24"},er=_t('',1),tr=[er];function nr(e,t){return bt(),Vt("svg",Qa,[...tr])}const or={render:nr},ar={xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em","aria-hidden":"true",viewBox:"0 0 24 24"},rr=_t('',1),lr=[rr];function sr(e,t){return bt(),Vt("svg",ar,[...lr])}const ir={render:sr};function ur(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const cr=Vue.defineComponent({name:"AppMenuTag",setup(e,{expose:t}){const n=Vue.ref(null),{getMenuKey:o,getMenuTagOptions:r}=J(),{changeMenuModelValue:a}=ue(),{getRootPath:s}=ne(),{maximize:l}=Bt(),{reload:i}=Vr(),{close:u,closeAll:d,closeRight:h,closeLeft:f,closeOther:m,checkCloseLeft:p,checkCloseRight:g}=$t(),v=["closeAll","closeRight","closeLeft","closeOther","closeCurrentPage"];let y=1/0;const c={size:16},b=Vue.ref([{label:"刷新页面",key:"reloadCurrentPage",icon:()=>Vue.createVNode(N,{name:"reload",size:c.size},null)},{label:"关闭当前页面",key:"closeCurrentPage",icon:()=>Vue.createVNode(N,{name:"close",size:c.size},null)},{type:"divider",key:"d1"},{label:"关闭左侧标签页",key:"closeLeft",icon:()=>Vue.createVNode(ir,{class:"menu-tag__icon"},null)},{label:"关闭右侧标签页",key:"closeRight",icon:()=>Vue.createVNode(or,{class:"menu-tag__icon"},null)},{type:"divider",key:"d1"},{label:"关闭其他标签页",key:"closeOther",icon:()=>Vue.createVNode(N,{name:"other",size:c.size},null)},{label:"关闭所有标签页",key:"closeAll",icon:()=>Vue.createVNode(N,{name:"resize_h",size:c.size},null),disabled:!1}]),_=Ve(16),O={closeCurrentPage:()=>{o.value!==s.value&&u(y)},reloadCurrentPage:()=>{i()},closeAll:()=>{d()},closeRight:()=>{h(y)},closeLeft:()=>{f(y)},closeOther:()=>{m(y)}},V=Vue.reactive({x:0,y:0,actionDropdownShow:!1}),C="menu_tag_data",k=we("globalMainLayoutLoad"),S="n-scrollbar-container",P=w=>{u(w)},x=(w,T)=>{b.value.forEach(z=>{if(z.key===w){z.disabled=T;return}})},E=w=>{V.actionDropdownShow=!1,a(w.fullPath,w)},F=()=>{const w=document.getElementById(_);if(w)return Array.from(w.childNodes).find(pe=>sn(pe,S).value)},H=w=>{var z;const T=F();if(T){const pe=T.scrollLeft||0,Ye=w==="left"?Math.max(0,pe-200):pe+200;(z=n.value)==null||z.scrollTo({left:Ye,behavior:"smooth"})}},ce=w=>{V.actionDropdownShow=!1;const T=O[w];T&&T()},de=(w,T)=>{T.preventDefault(),V.actionDropdownShow=!1,y=w,Vue.nextTick(()=>{V.actionDropdownShow=!0,V.x=T.clientX,V.y=T.clientY})},B=()=>{const{closeable:w}=r.value[y]??{};x("closeCurrentPage",!w),g(y)?x("closeRight",!1):x("closeRight",!0),p(y)?x("closeLeft",!1):x("closeLeft",!0)},Ut=()=>{y=r.value.findIndex(T=>T.fullPath===o.value),B()},Wt=w=>{r.value.length>1&&w.fullPath!==s.value&&(w.closeable=!0)},qt=w=>{w.fullPath!==o.value&&(w.closeable=!1)},Gt=()=>{F()&&Vue.nextTick().then(()=>{var T;(T=n.value)==null||T.scrollTo({left:99999,behavior:"smooth"})})},He=()=>{Vue.nextTick().then(()=>{const w=be(`attr:${C}="${o.value}"`);if(w!=null&&w.length){const[T]=w;Vue.nextTick().then(()=>{var z;(z=n.value)==null||z.scrollTo({left:T.offsetLeft,behavior:"smooth"})})}})};return Vue.watch(()=>r.value,(w,T)=>{b.value.forEach(z=>{v.includes(z.key)&&(w.length>1?z.disabled=!1:z.disabled=!0)}),T!=null&&T.length&&(w.length>(T==null?void 0:T.length)?Gt():w.length===(T==null?void 0:T.length)&&He()),T===void 0&&He()},{immediate:!0}),Vue.watch(()=>V.actionDropdownShow,w=>{var T;w&&((T=Ke(B,100))==null||T())}),t({}),{getMenuTagOptions:r,closeCurrentMenuTag:P,getMenuKey:o,menuTagClick:E,moreOptions:b,scrollX:H,scrollRef:n,uuidScrollBar:_,actionDropdownSelect:ce,actionState:V,menuTagContextMenu:de,setCurrentContextmenuIndex:Ut,menuTagMouseenter:Wt,menuTagMouseleave:qt,MENU_TAG_DATA:C,iconConfig:{width:22,height:22},maximize:l,getRootPath:s,reload:i,globalMainLayoutLoad:k}},render(){let e;const{iconConfig:t,getRootPath:n,uuidScrollBar:o,getMenuTagOptions:r,MENU_TAG_DATA:a,globalMainLayoutLoad:s}=this,{maximize:l,closeCurrentMenuTag:i,scrollX:u,$t:d,menuTagClick:h,menuTagContextMenu:f,menuTagMouseenter:m,menuTagMouseleave:p,actionDropdownSelect:g,reload:v}=this;return Vue.createVNode(naive.NLayoutHeader,null,{default:()=>[Vue.createVNode("div",{class:"menu-tag"},[Vue.createVNode(naive.NDropdown,{class:"menu-tag__dropdown",options:this.moreOptions,x:this.actionState.x,y:this.actionState.y,keyboard:!1,show:this.actionState.actionDropdownShow,trigger:"manual",placement:"bottom-start",onSelect:g.bind(this),onClickoutside:()=>{this.actionState.actionDropdownShow=!1}},null),Vue.createVNode(naive.NFlex,{class:"menu-tag-space",wrap:!1,align:"center",justify:"space-between",inline:!0,size:[16,0]},{default:()=>[Vue.createVNode(N,{name:"expanded",width:t.width,height:t.height,customClassName:"menu-tag__left-arrow",onClick:this.scrollX.bind(this,"left")},null),Vue.createVNode(naive.NScrollbar,Vue.mergeProps({xScrollable:!0,ref:"scrollRef"},{id:o},{themeOverrides:{width:"0px",height:"0px"}}),{default:()=>[Vue.createVNode(naive.NFlex,{ref:"menuTagSpaceRef",class:"menu-tag-wrapper",wrap:!1,align:"center",justify:"start"},ur(e=r.map((y,c)=>Vue.createVNode(naive.NButton,Vue.mergeProps({key:y.fullPath,class:["menu-tag__btn"],strong:!0,secondary:!0,type:y.fullPath===this.getMenuKey?"primary":"default"},{onClick:h.bind(this,y),onContextmenu:f.bind(this,c),onMouseenter:m.bind(this,y),onMouseleave:p.bind(this,y),[a]:y.path},{size:"small"}),{default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode("span",null,{default:()=>{const{breadcrumbLabel:b,meta:{i18nKey:_}}=y;return _?d(_):b}}),(y.closeable||r.length===1)&&y.fullPath!==n?Vue.createVNode(naive.NIcon,Vue.mergeProps({class:"menu-tag__btn-icon"},{onMousedown:i.bind(this,c)}),{default:()=>[Vue.createVNode(N,{name:"close",size:"14"},null)]}):Vue.createVNode(naive.NIcon,{class:[y.fullPath!==n?"menu-tag__btn-icon":"menu-tag__btn-icon--hidden"]},null)])})))?e:{default:()=>[e]})]}),Vue.createVNode(naive.NFlex,{class:"menu-tag__right-wrapper",align:"center",inline:!0,wrap:!1,size:[8,0]},{default:()=>[Vue.createVNode(N,{name:"expanded",width:t.width,height:t.height,customClassName:"menu-tag__right-arrow",onClick:u.bind(this,"right")},null),Vue.createVNode(N,{name:"fullscreen_fold",width:t.width,height:t.height,customClassName:"menu-tag__right-setting",onClick:()=>{l(!0)}},null),Vue.createVNode(N,{name:"reload",width:t.width,height:t.height,customClassName:`menu-tag__right-setting ${s?"":"menu-tag__right-setting--spinning"}`,onClick:()=>{v()}},null),Vue.createVNode(Pt,{class:"menu-tag__dropdown",options:this.moreOptions,trigger:"click",onSelect:this.actionDropdownSelect.bind(this),iconSize:20,keyboard:!1},{default:()=>[Vue.createVNode(N,{name:"more",width:t.width,height:t.height,customClassName:"menu-tag__right-setting",onClick:this.setCurrentContextmenuIndex.bind(this)},null)]})]})]})])]})}}),dr=Vue.defineComponent({name:"LayoutFeatureWrapper",setup(){return{}},render(){return Vue.createVNode(cr,null,null)}}),pr=e=>{const t=Ne(e[0]),n=Ne(e[1]),o=Ne(e[2]);return Vue.computed(()=>({"--layout-content-height":`calc(100% - ${t.height.value}px - ${n.height.value}px - ${o.height.value}px)`,"--layout-siderbar-height":`${t.height.value}px`,"--layout-menutag-height":`${n.height.value}px`,"--layout-footer-height":`${o.height.value}px`}))},lt=Qt(I.isAppLockScreen,!1,sessionStorage,{mergeDefaults:!0}),mr=()=>({setLockAppScreen:n=>{lt.value=n},getLockAppScreen:()=>lt.value}),hr=Vue.defineComponent({name:"RLayout",setup(){const e=Vue.ref(),t=Vue.ref(),n=Vue.ref(),{getMenuTagSwitch:o,getCopyrightSwitch:r}=D(),{getLockAppScreen:a}=mr(),s=pr([e,t,n]);return{getMenuTagSwitch:o,cssVarsRef:s,getLockAppScreen:a,layoutSiderBarRef:e,layoutMenuTagRef:t,layoutFooterRef:n,getCopyrightSwitch:r}},render(){const{getMenuTagSwitch:e,cssVarsRef:t,getCopyrightSwitch:n}=this,{getLockAppScreen:o}=this;return o()?null:Vue.createVNode(naive.NLayout,{class:"r-layout-full",style:[t],hasSider:!0,embedded:!0},{default:()=>[Vue.createVNode(Aa,null,null),Vue.createVNode(naive.NLayoutContent,{class:"r-layout-full__viewer"},{default:()=>[Vue.createVNode(Za,{ref:"layoutSiderBarRef"},null),e?Vue.createVNode(dr,{ref:"layoutMenuTagRef"},null):null,Vue.createVNode(naive.NLayoutContent,{ref:Q,class:["r-layout-full__viewer-content"],nativeScrollbar:!1},{default:()=>[Vue.createVNode(Ft,null,null)]}),n?Vue.createVNode(za,{ref:"layoutFooterRef"},null):null]})]})}}),fr=[{path:"/",name:"RLogin",component:()=>R(()=>import("./index-DQWUCipC.js"),__vite__mapDeps([55,1,2,3,4,5,6,11,7,8,40,41,42,9,10,24,12,13,14,15,16,17,18,19,20,21,56]))},{path:"/",name:"RLayout",component:hr,children:[...wa(),{path:"/:catchAll(.*)",component:()=>R(()=>import("./index-C2xNskF6.js"),__vite__mapDeps([57,1,2,3,4,5,6,11,7,8,9,10,12,13,14,15,16,17,18,19,20,21,58])),meta:{i18nKey:M("menu.Error"),icon:"error",hidden:!0,sameLevel:!0}}]}],Se=VueRouter.createRouter({history:VueRouter.createWebHashHistory(),routes:fr,scrollBehavior:e=>{$o(e)}}),sl=e=>{e.use(Se),Ra(Se)},Ge=()=>Se?{router:Se}:{router:{}},st="YYYY-MM-DD HH:mm:ss",gr=()=>({locale:s=>{const l=Fn[s];l?dayjs.locale(l):dayjs.locale(Bn)},getStartAndEndOfDay:s=>{const{format:l=st}=s??{},i=dayjs(),u=i.startOf("day"),d=i.endOf("day"),h=i.format(l),f=u.format(l),m=d.format(l);return{today:i,startOfDay:u,endOfDay:d,formatToday:h,formatStartOfDay:f,formatEndOfDay:m}},format:(s,l)=>{const{format:i=st}=l??{};return dayjs(s).format(i)},isDayjs:s=>dayjs.isDayjs(s),daysDiff:(s,l)=>{const i=dayjs(s);return dayjs(l).diff(i,"days")},isDateInRange:(s,l)=>{const{start:i,end:u}=l,d=dayjs(s);return d.isAfter(i)&&d.isBefore(u)}});function Ce(e){const{width:t,height:n}=mt(e),o=Vue.ref(!1),{observer:r}=e??{};return un(()=>{const{media:s=768}=e??{};o.value=t.value<=s,r==null||r(o.value,{width:t.value,height:n.value})}),{width:t,height:n,isTabletOrSmaller:Vue.readonly(o)}}let Le=999,Ie=!1;const Y="ELEMENT-FULLSCREEN-RAY",{width:it,height:ut}=mt(),ct=document.createElement("style"),vr=(e,t)=>{const{beforeEnter:n,beforeExit:o,enter:r,exit:a,backgroundColor:s,zIndex:l,transition:i="all 0.3s var(--r-bezier)"}=t??{};let u=!1;const d=()=>{const g=W(e);if(!g)return;const{left:v,top:y}=g.getBoundingClientRect(),c=` + [${Y}] { + position: fixed; + width: ${it.value}px !important; + height: ${ut.value}px !important; + transform: translate(-${v}px, -${y}px) !important; + transition: ${i}; + z-index: ${G(l,"Null")||G(l,"Undefined")?Le:l} !important; + background-color: ${s??null}; + } + `;ct.innerHTML=c,Ie||document.head.appendChild(ct)},h=()=>{const g=W(e);n==null||n(),g&&(g.getAttribute(Y)||g.setAttribute(Y,Y),u||(u=!0,Le+=1),Ie||(d(),Ie=!0),g.style.transition=i,r==null||r())},f=()=>{o==null||o();const g=W(e);g&&g.removeAttribute(Y),a==null||a()},m=()=>{const g=W(e);g&&(g.getAttribute(Y)?f():h())},p=Vue.watch(()=>[it.value,ut.value],d);return qe(()=>{const g=W(e);g&&g.removeAttribute(Y),Le--,p()}),{enter:h,exit:f,toggleFullscreen:m}},Ee={svg:domtoimage.toSvg,png:domtoimage.toPng,jpeg:domtoimage.toJpeg,blob:domtoimage.toBlob,pixelData:domtoimage.toPixelData},il=(e,t)=>{const{beforeCreate:n,created:o,createdError:r,finally:a,imageType:s}=t??{};return{create:i=>new Promise((u,d)=>{var f;const h=W(e);if(n==null||n(h),!h)return r==null||r(),d("useDomToImage: element is undefined.");(f=Ee[i??s??"jpeg"])==null||f.call(Ee,h,t).then(m=>(o==null||o(m,h),u(m))).catch(m=>(r==null||r(m),d(m))).finally(()=>{a==null||a()})})}},ul=(e,t)=>({print:()=>{const o=W(e)||e;en({...Ue(t,["printable"]),printable:o})}}),yr={page:1,pageSize:10,showSizePicker:!0,pageSizes:[10,20,50,100]},cl=(e,t)=>{const n=Vue.ref(e),o=Ue(t,["on-update:page","on-update:page-size","onUpdatePage","onUpdatePageSize","onUpdate:page","onUpdate:page-size"]),r={onUpdatePage:c=>{var b;a.value.page=c,(b=n.value)==null||b.call(n)},onUpdatePageSize:c=>{var b;a.value.pageSize=c,a.value.page=1,(b=n.value)==null||b.call(n)}},a=Vue.ref(Object.assign({},yr,o,r)),s=a.value.onUpdatePage,l=a.value.onUpdatePageSize,i=()=>a.value.itemCount,u=c=>{a.value.itemCount=c},d=()=>a.value.page,h=c=>{s(c)},f=()=>a.value.pageSize,m=c=>{l(c)},p=()=>a.value,g=e,v=c=>{n.value=c},y=()=>{const{pageSizes:c}=a.value;a.value.page=1,a.value.pageSize=(c==null?void 0:c[0])||10};return qe(()=>{n.value=void 0}),[a,{getItemCount:i,setItemCount:u,getPage:d,setPage:h,getPageSize:f,setPageSize:m,getPagination:p,getCallback:g,setCallback:v,resetPagination:y}]},Bt=()=>({isLayoutContentMaximized:Vue.computed(()=>we("layoutContentMaximize").value),maximize:(n,o)=>{var l;const{scrollToOptions:r}=o??{},a=W(Q),{toggleFullscreen:s}=vr(a,o);q("layoutContentMaximize",n),s(),r&&n&&((l=Q==null?void 0:Q.value)==null||l.scrollTo(r))}}),Vr=()=>({reload:(o=800)=>{q("globalMainLayoutLoad",!1),setTimeout(()=>q("globalMainLayoutLoad",!0),o)},openSpin:()=>{q("layoutContentSpinning",!0)},closeSpin:()=>{q("layoutContentSpinning",!1)}}),dl=()=>({setWatermarkContent:r=>{const{getWatermarkConfig:a}=D(),s=Object.assign(a.value,{content:r}),{updateSettingState:l}=j();l("watermarkConfig",s)},showWatermark:()=>{const{updateSettingState:r}=j();r("watermarkSwitch",!0)},hiddenWatermark:()=>{const{updateSettingState:r}=j();r("watermarkSwitch",!1)},toggleWatermark:()=>{const{getWatermarkSwitch:r}=D(),{updateSettingState:a}=j();a("watermarkSwitch",!r.value)}}),ze=e=>{const{getPrimaryColorOverride:t}=D(),{updateSettingState:n}=j();n("primaryColorOverride",e?Object.assign({},t.value,$.appNaiveUIThemeOverrides.dark,$.appNaiveUIThemeOverridesCommon.dark):Object.assign({},t.value,$.appNaiveUIThemeOverrides.light,$.appNaiveUIThemeOverridesCommon.light))},br=()=>{const e=()=>{const{getAppTheme:r}=D(),{t:a}=se();return{theme:r.value,themeI18nLabel:r.value?a("headerSettingOptions.ThemeOptions.Dark"):a("headerSettingOptions.ThemeOptions.Light"),themeLabel:r.value?"Dark":"Light"}};return{darkTheme:()=>{const{updateSettingState:r}=j();r("appTheme",!0),ze(!0)},lightTheme:()=>{const{updateSettingState:r}=j();r("appTheme",!1),ze(!1)},toggleTheme:()=>{const{theme:r}=e(),{updateSettingState:a}=j();a("appTheme",!r),ze(!r)},getAppTheme:e}},Z=(e,t)=>{const{getMenuTagOptions:n}=J();if(typeof e=="number"){if(isNaN(e)){console.warn(`${t}: The ${e} is NaN, expect number.`);return}if(e>n.value.length||e<-1){console.warn(`${t}: The incoming index ${e} did not match the corresponding item.`);return}return{option:n.value[e],index:e}}else if(typeof e=="string"){const o=n.value.findIndex(r=>r.fullPath===e);return o>-1?{option:n.value[o],index:o}:console.warn(`${t}: The incoming key ${e} did not match the corresponding item.`)}else{const{fullPath:o}=e,r=n.value.findIndex(a=>a.fullPath===o);if(r===-1){console.warn(`${t}: The incoming menuTag option ${e.fullPath} did not match the corresponding item.`);return}return{option:e,index:r}}};function $t(){const{getMenuTagOptions:e,getMenuKey:t}=J(),{changeMenuModelValue:n,spliceMenTagOptions:o,setMenuTagOptions:r,resolveOption:a}=ue(),s=()=>e.value.findIndex(p=>p.fullPath===t.value);return{close:p=>{const g=Z(p,"close");if(e.value.length!==1&&g){const{index:v,option:y}=g;if(o(v),y.fullPath===t.value){const c=e.value[v-1];c&&n(c.fullPath,c)}}},closeAll:()=>{o(0,e.value.length);const{getRootPath:p}=ne(),{router:{getRoutes:g}}=Ge(),v=g().find(y=>y.path===p.value);if(v){const y=ae(v,$e),c=a(y);n(c.path,a({...c,fullPath:c.path}))}},closeRight:p=>{const g=Z(p,"closeRight");if(g){const{option:v,index:y}=g,c=e.value.length-y,b=s();o(y+1,c),y<=b&&t.value!==v.fullPath&&n(v.fullPath,v)}},closeLeft:p=>{const g=Z(p,"closeLeft");if(g){const{option:v,index:y}=g,c=s();o(0,y),c<=y&&t.value!==v.fullPath&&n(v.fullPath,v)}},closeOther:p=>{const g=Z(p,"closeOther");if(g){const{option:v}=g;t.value!==v.fullPath?(o(0,e.value.length),n(v.fullPath,v)):r(v,!1)}},getCurrentTagIndex:s,checkCloseRight:p=>{const g=Z(p,"checkCloseRight");if(g){const{index:v}=g,y=e.value.length-1;return!(v>=y)}return!1},checkCloseLeft:p=>{const g=Z(p,"checkCloseRight");if(g){const{index:v}=g,y=e.value.length-1;return v===0?!1:v>0&&y>0}return!1}}}function pl(){return{navigationTo:(t,n)=>{const{router:{getRoutes:o,push:r,replace:a}}=Ge(),{isPush:s=!0,query:l}=n||{},i=u=>s?r({path:u,query:l}):a({path:u,query:l});if(typeof t=="number"){if(isNaN(t)){console.warn(`[navigationTo]: The ${t} is NaN, expect number.`);return}const{getMenuOptions:u}=J();if(t>u.value.length){console.warn(`[navigationTo]: The current ${t} exceeds the maximum number of menus.`);return}const d=u.value[t],h=f=>{if(f.children&&f.children.length>0){const{children:[m]}=f;h(m);return}i(f.fullPath)};h(d)}else if(typeof t=="string"){const u=o().find(d=>d.path===t);u?i(u.path):console.warn(`[navigationTo]: The path "${t}" is not found.`)}else i(t.fullPath)}}}function ne(){const{getAppRootRoute:e}=D(),{updateSettingState:t}=j(),n=e,o=Vue.computed(()=>e.value.path),r=Vue.computed(()=>e.value.name);return{getRootRoute:n,getRootPath:o,getRootName:r,setRootRoute:s=>{t("appRootRoute",Object.assign({},e.value,s))}}}const _r=(e,t)=>{const{show:n,...o}=t;e.meta.extra=Object.assign({},e.meta.extra,{...o,show:n}),e.extra=Mt(e)},dt=(e,t,n)=>{const o=It(e,t);o&&_r(o,n)},je=(e,t,n)=>{const{getMenuOptions:o}=J();if(typeof e=="string")dt(o.value,e,n);else if(G(e,"Object")){const{fullPath:r}=e;dt(o.value,r,n)}else console.warn(`[useBadge ${t}]: target expect string or object.`)};function ml(){return{hidden:o=>{je(o,"hidden",{show:!1})},show:o=>{je(o,"show",{show:!0})},update:(o,r)=>{je(o,"update",r)}}}const hl=()=>{const e=Ct.value,{scrollTo:t}=e||{};if(!t)throw new Error("[useSiderScroll]: LAYOUT_SIDER_REF is not ready yet. please wait component mounted!");return t},Kt=()=>le(I.localeLanguage,"localStorage",{defaultValue:jn}),fl=()=>{const e=Vue.ref(),t=p=>{p&&(e.value=p)},n=()=>{if(!e.value)throw new Error("[useTablePro]: table instance is not ready yet. if you are using useTablePro, please make sure you have called register method in onRegister event.");return e.value};return[t,{clearFilters:()=>n().clearFilters.call(null),getTableProInstance:n,clearSorter:()=>n().clearSorter.call(null),downloadCsv:p=>n().downloadCsv.call(null,p),filters:p=>n().filters.call(null,p),page:p=>n().page.call(null,p),scrollTo:p=>n().scrollTo(p),sort:(p,g)=>n().sort.call(null,p,g),getTablePagination:()=>n().getTablePagination.call(null),runTableRequest:p=>n().runTableRequest.call(null,p),print:p=>n().print.call(null,p),getCurrentTableRequestParams:p=>n().getCurrentTableRequestParams.call(null,p)}]};export{ll as $,Br as A,Ur as B,qr as C,Bn as D,Gr as E,nl as F,tl as G,Yr as H,cl as I,Hr as J,Zr as K,Ct as L,Dr as M,Jr as N,ol as O,Go as P,pa as Q,Xr as R,ka as S,Da as T,ie as U,Qr as V,fl as W,el as X,gr as Y,Ma as Z,R as _,il as a,Kr as a0,Pt as a1,Bt as a2,pl as a3,Vr as a4,dl as a5,ml as a6,ul as b,hl as c,$r as d,D as e,I as f,jr as g,j as h,mr as i,Ta as j,Ce as k,Wa as l,we as m,Fr as n,Wr as o,sl as p,ne as q,se as r,rl as s,N as t,br as u,wt as v,ke as w,Ge as x,zr as y,al as z}; diff --git a/js/hooks-DUpKDX8W.js.gz b/js/hooks-DUpKDX8W.js.gz new file mode 100644 index 00000000..740f6440 Binary files /dev/null and b/js/hooks-DUpKDX8W.js.gz differ diff --git a/js/hooks-DeCbIFFS.js b/js/hooks-DeCbIFFS.js deleted file mode 100644 index d6569f8e..00000000 --- a/js/hooks-DeCbIFFS.js +++ /dev/null @@ -1,12 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["js/en-US-CEfpzyAT.js","js/print-js@1.6.0-BdoEj60G.js","js/call-bind@1.0.7-Cpj98o6Y.js","js/vue-hooks-plus@2.2.1_vue@3.4.38-DdMBTcyt.js","js/lodash@4.17.21-Cw59kuJw.js","js/js-cookie@3.0.5-Z_8Sd105.js","js/screenfull@5.2.0-DmMZCkhi.js","js/currency.js@2.0.4-9OAR_aOO.js","js/lodash-es@4.17.21-BALnwRTu.js","js/@vueuse_core@10.9.0_vue@3.4.38-Cp_qoKMZ.js","js/@vueuse_shared@10.9.0_vue@3.4.38-BTLxKjPf.js","js/utils-DGuZdIHQ.js","js/interactjs@1.10.26-DZL_TZzP.js","js/pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js","js/echarts@5.5.0-CezqL3m-.js","js/zrender@5.5.0-DW8ownf1.js","js/tslib@2.3.0-BDyQ-Jie.js","js/@vue_runtime-core@3.4.38-f9XU7P4m.js","js/@vue_reactivity@3.4.38-CmXFqMGn.js","js/@vue_shared@3.4.38-D8qfpBTH.js","js/zh-CN-BeERaeRn.js","js/index-C-LZM-Gd.js","js/index-43Sr2ZDd.js","css/index-D_4DGt8i.css","js/index-CzMkrH92.js","js/instance-B5j64X7o.js","css/index-QAd2IBUs.css","js/BarcodeDemo-C6DlA5tI.js","js/index-Bh3tfFvH.js","js/index-D_ua31vB.js","js/index-BZAIqgSr.js","css/index-DHYYVpM7.css","js/index-Dw0dXXH_.js","js/index-B4Svketz.js","js/index-B6y9-Yqs.js","js/index-4_KfG0hf.js","js/index-2JATXzfJ.js","js/index-DU0AD4bw.js","js/vue3-next-qrcode@2.0.10_typescript@5.2.2-B-d0H0H3.js","css/vue3-next-qrcode@2.0.10_typescript@5.2-CG4VaxS5.css","js/ray-dCjhX_JK.js","js/index-B0CACC_9.js","css/index-B6yUFiKH.css","js/index-DWyvlcWc.js","js/index-E385tkq8.js","css/index-Dig957GB.css","js/index-enc6OrTS.js","js/index-D2S_rdww.js","css/index-Eq1L-L2-.css","js/TablePro-DyGNxTE3.js","js/mockjs@1.1.0-CxlURkif.js","js/index-Kmm92eIK.js","js/index--cyhTTPE.js","js/index-U-KjHHUk.js","css/index-74sXJ5VP.css","js/index-zGfSlYZ-.js","css/index-b1h4j9PV.css"])))=>i.map(i=>d[i]); -var Jo=Object.defineProperty;var Qo=(e,t,o)=>t in e?Jo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;var Xe=(e,t,o)=>Qo(e,typeof t!="symbol"?t+"":t,o);import{s as Ce,c as ye,t as Be,i as pt,p as ne,o as We}from"./lodash-es@4.17.21-BALnwRTu.js";import{o as en,u as ae,a as tn,b as on,c as Te,d as nn,e as mt}from"./@vueuse_core@10.9.0_vue@3.4.38-Cp_qoKMZ.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{p as an}from"./print-js@1.6.0-BdoEj60G.js";import{u as ft}from"./vue-hooks-plus@2.2.1_vue@3.4.38-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import{g as re,i as q,s as Ke,a as je,c as rn,b as L,r as Q,d as R,e as ln,u as be,q as ve,f as Ne,h as ht,p as gt,j as Ue,k as Ze,l as Oe,m as sn,n as cn,o as un,t as dn,w as pn,v as K}from"./utils-DGuZdIHQ.js";import{i as Je}from"./interactjs@1.10.26-DZL_TZzP.js";import{s as mn}from"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import{r as fn,u as oe,i as hn,a as gn,b as yn,c as bn,d as vn,e as Vn,f as Sn,g as _n,h as wn,j as Cn,k as Tn,l as Nn,m as On,n as kn,o as xn,p as Rn,q as An,s as Pn}from"./echarts@5.5.0-CezqL3m-.js";import{f as Mn,g as Ln}from"./@vueuse_shared@10.9.0_vue@3.4.38-BTLxKjPf.js";import{c as yt,o as bt,a as vt}from"./@vue_runtime-core@3.4.38-f9XU7P4m.js";const Ul=(e,t)=>{if(typeof t!="string"||!t.trim())throw new TypeError("Expected prefix to be a non-empty string");const o={};return Object.keys(e).forEach(n=>{const r=e[n].default;let a=n.replace(`./${t}/`,"").replace(/^\.\//,"");const s=a.lastIndexOf(".");a=a.substring(0,s);const l=a.split("/"),i=l.shift(),u=l.join(".");i&&(u?(Ce(o,i,o[i]||{}),Ce(o[i],u,r)):Ce(o,i,r||{}))}),o},En="modulepreload",zn=function(e){return"/ray-template/"+e},Qe={},k=function(t,o,n){let r=Promise.resolve();if(o&&o.length>0){document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),s=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));r=Promise.all(o.map(l=>{if(l=zn(l),l in Qe)return;Qe[l]=!0;const i=l.endsWith(".css"),u=i?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const c=document.createElement("link");if(c.rel=i?"stylesheet":En,i||(c.as="script",c.crossOrigin=""),c.href=l,s&&c.setAttribute("nonce",s),document.head.appendChild(c),i)return new Promise((f,y)=>{c.addEventListener("load",f),c.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${l}`)))})}))}return r.then(()=>t()).catch(a=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a})},In=(e,t,o)=>{const n=e[t];return n?typeof n=="function"?n():Promise.resolve(n):new Promise((r,a)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(a.bind(null,new Error("Unknown variable dynamic import: "+t+(t.split("/").length!==o?". Note that variables only represent file names one level deep.":""))))})},jn=async e=>{var o;const t={};for(const n of e){const r=await In(Object.assign({"../lang/en-US.ts":()=>k(()=>import("./en-US-CEfpzyAT.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19])),"../lang/zh-CN.ts":()=>k(()=>import("./zh-CN-BeERaeRn.js"),__vite__mapDeps([20,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]))}),`../lang/${n.key}.ts`,3),a=n.key;a&&(t[a]=((o=r==null?void 0:r.default)==null?void 0:o.message)??{})}return t},ql=e=>{switch(e){case"zh-CN":return{locale:naive.zhCN,dateLocal:naive.dateZhCN};case"en-US":return{locale:null,dateLocal:null};default:return{locale:naive.zhCN,dateLocal:naive.dateZhCN}}},Gl={max:5,closable:!1},Hl="loading",Vt={setupKeepAlive:!0,keepAliveExclude:[],maxKeepAliveLength:5},Dn={icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"},H={menuCollapsedWidth:64,menuCollapsedMode:"width",menuCollapsedIconSize:22,menuCollapsedIndent:24,menuAccordion:!1},Yl="",E={signing:"signing",localeLanguage:"localeLanguage",token:"token",appMenuKey:"menuKey",appPiniaSettingStore:"piniaSettingStore",appPiniaKeepAliveStore:"piniaKeepAliveStore",appPiniaMenuStore:"piniaMenuStore",appPiniaSigningStore:"piniaSigningStore",appVersionProvider:"appVersionProvider",isAppLockScreen:"isAppLockScreen",appGlobalSearchOptions:"appGlobalSearchOptions"},$n=[{label:"无",value:"none"},{label:"缩放出现",value:"scale"},{label:"缩放消退",value:"fade-scale"},{label:"滑入出现",value:"fade-slide"},{label:"淡入消退",value:"opacity"},{label:"底部消退",value:"fade-bottom"}],$={appThemeColors:["#2d8cf0","#3f9eff","#ff42bc","#ee4f12","#a6e4f7","#dbcb02","#18A058"],appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"},appNaiveUIThemeOverrides:{dark:{},light:{}},appNaiveUIThemeOverridesCommon:{dark:{},light:{}},echartTheme:"macarons"},St=[{key:"zh-CN",label:"中文(简体)"},{key:"en-US",label:"English(US)"}],Fn="zh-CN",Bn="zh-CN",Wn={"zh-CN":"zh-cn","en-US":"en"},Kn="zh-cn",Xl={cssUnit:/^\d+(\.\d+)?(px|em|rem|%|vw|vh|vmin|vmax|cm|mm|in|pt|pc|ch|ex|q|s|ms|deg|rad|turn|grad|hz|khz|dpi|dpcm|dppx|fr|auto)$/},Zl={baseURL:"",withCredentials:!1,timeout:5*1e3,headers:{"Content-Type":"application/json"}},J=Vue.ref(null),_t=Vue.ref(null),Un={setupRouterLoadingBar:!0,setupRouterGuard:!0},qn=["RLogin","ErrorPage","RayTemplateDoc"],pe=["admin"],Jl=(e,t)=>{const o=Vue.ref(0),n=Vue.ref(0),r=Vue.ref(!1),{clickOutside:a}={},s=f=>{r.value=f},l=f=>{f.preventDefault(),s(!1),Vue.nextTick().then(()=>{const{clientX:y,clientY:m}=f;o.value=y,n.value=m,s(!0)})};a&&en(e,f=>{a(f)});const i=ae(e,"contextmenu",l,t),u=ae(e,"click",()=>{s(!1)});return{stop:()=>{i(),u()},x:Vue.readonly(o),y:Vue.readonly(n),show:Vue.readonly(r),updateShow:s}},Ve=Vue.reactive({globalSpinning:!1,globalDrawerValue:!1,globalMainLayoutLoad:!0,layoutContentMaximize:!1,layoutContentSpinning:!1});function U(e,t,o){Object.hasOwn(Ve,e)&&(Ve[e]=t)}function _e(e){return Vue.readonly(Vue.toRef(Ve,e))}function Gn(){return{...Vue.toRefs(Vue.readonly(Ve))}}let W;const Hn=async()=>{const e=Go(),t=await jn(St);return VueI18n.createI18n({legacy:!1,locale:e,messages:t,sync:!0,missingWarn:!1,silentFallbackWarn:!0,fallbackLocale:Bn})},Ql=async e=>{const t=await Hn();e.use(t),W=t},et=(e,t)=>t,le=e=>{if(!W)return{t:a=>et(e,a),locale:a=>{}};const{t,...o}=W.global;return{...o,t:(a,...s)=>a?!a.includes(".")&&!e?a:t(et(e,a),...s):"",locale:a=>{W.mode==="legacy"?W.global.locale=a:Vue.isRef(W.global.locale)?W.global.locale.value=a:W.global.locale=a}}},A=e=>e,Yn={path:"/dashboard",component:()=>k(()=>import("./index-C-LZM-Gd.js"),__vite__mapDeps([21,7,1,2,3,4,5,6,22,8,9,10,11,12,13,14,15,16,17,18,19,23])),meta:{i18nKey:A("menu.Dashboard"),icon:"dashboard",order:0}},Xn=Object.freeze(Object.defineProperty({__proto__:null,default:Yn},Symbol.toStringTag,{value:"Module"})),Zn={path:"/axios",name:"RAxios",component:()=>k(()=>import("./index-CzMkrH92.js"),__vite__mapDeps([24,3,4,2,5,6,25,1,11,7,8,9,10,12,13,14,15,16,17,18,19,26])),meta:{i18nKey:A("menu.Axios"),icon:"axios",order:3,keepAlive:!0}},Jn=Object.freeze(Object.defineProperty({__proto__:null,default:Zn},Symbol.toStringTag,{value:"Module"})),Qn={path:"barcode",component:()=>k(()=>import("./BarcodeDemo-C6DlA5tI.js"),__vite__mapDeps([27,7,1,2,3,4,5,6,8,9,10,11,12,13,14,15,16,17,18,19])),meta:{i18nKey:A("menu.Barcode"),icon:"other",order:2,extra:{label:"new"}}},ea=Object.freeze(Object.defineProperty({__proto__:null,default:Qn},Symbol.toStringTag,{value:"Module"})),ta={path:"/cache-demo",component:()=>k(()=>import("./index-Bh3tfFvH.js"),__vite__mapDeps([28,1,2,3,4,5,6,11,7,8,9,10,12,13,14,15,16,17,18,19])),meta:{i18nKey:A("menu.CacheDemo"),icon:"other",order:3}},oa=Object.freeze(Object.defineProperty({__proto__:null,default:ta},Symbol.toStringTag,{value:"Module"})),na={path:"/context-menu",component:()=>k(()=>import("./index-D_ua31vB.js"),__vite__mapDeps([29,7,1,2,3,4,5,6,8,9,10,11,12,13,14,15,16,17,18,19])),meta:{i18nKey:A("menu.ContextMenu"),icon:"other",order:2}},aa=Object.freeze(Object.defineProperty({__proto__:null,default:na},Symbol.toStringTag,{value:"Module"})),ra={path:"/directive",component:()=>k(()=>import("./index-5cxxl6_s.js"),[]),meta:{i18nKey:A("menu.Directive"),icon:"other",order:2,extra:{label:"ellipsis"}}},la=Object.freeze(Object.defineProperty({__proto__:null,default:ra},Symbol.toStringTag,{value:"Module"})),sa={path:"/echart",component:()=>k(()=>import("./index-BZAIqgSr.js"),__vite__mapDeps([30,7,1,2,3,4,5,6,8,9,10,11,12,13,14,15,16,17,18,19,31])),meta:{i18nKey:A("menu.Echart"),icon:"echart",order:1,extra:{label:"useChart"}}},ia=Object.freeze(Object.defineProperty({__proto__:null,default:sa},Symbol.toStringTag,{value:"Module"})),ca={path:"/form",component:()=>k(()=>import("./index-Dw0dXXH_.js"),__vite__mapDeps([32,7,1,2,3,4,5,6,8,9,10,11,12,13,14,15,16,17,18,19])),meta:{i18nKey:A("menu.Form"),icon:"other",order:2,extra:{label:"useForm"}}},ua=Object.freeze(Object.defineProperty({__proto__:null,default:ca},Symbol.toStringTag,{value:"Module"})),da={path:"/iframe",component:()=>k(()=>import("./index-B4Svketz.js"),__vite__mapDeps([33,7,1,2,3,4,5,6,8,9,10,11,12,13,14,15,16,17,18,19])),meta:{icon:"other",order:2,noLocalTitle:"iframe"}},pa=Object.freeze(Object.defineProperty({__proto__:null,default:da},Symbol.toStringTag,{value:"Module"})),ma={path:"/mock-demo",component:()=>k(()=>import("./index-B6y9-Yqs.js"),__vite__mapDeps([34,7,1,2,3,4,5,6,25,11,8,9,10,12,13,14,15,16,17,18,19])),meta:{i18nKey:A("menu.Mock"),icon:"other",order:3,keepAlive:!1,extra:{label:"usePagination"}}},fa=Object.freeze(Object.defineProperty({__proto__:null,default:ma},Symbol.toStringTag,{value:"Module"})),ha={path:"/modal-demo",component:()=>k(()=>import("./index-4_KfG0hf.js"),__vite__mapDeps([35,7,1,2,3,4,5,6,8,9,10,11,12,13,14,15,16,17,18,19])),meta:{i18nKey:A("menu.Modal"),icon:"other",order:3}},ga=Object.freeze(Object.defineProperty({__proto__:null,default:ha},Symbol.toStringTag,{value:"Module"})),ge=()=>k(()=>Promise.resolve().then(()=>Kr),void 0),ya={path:"/multi",component:ge,meta:{i18nKey:A("menu.MultiMenu"),icon:"other",order:4,extra:{label:"cache"}},children:[{path:"multi-menu-one",name:"MultiMenuOne",component:()=>k(()=>import("./index-BtZPyenx.js"),[]),meta:{noLocalTitle:"多级菜单-1",keepAlive:!0}},{path:"multi-menu-two",name:"MultiMenuTwo",component:ge,meta:{noLocalTitle:"多级菜单-2"},children:[{path:"sub-menu-other",name:"SubMenuOther",component:()=>k(()=>import("./index-B6a_PCdD.js"),[]),meta:{noLocalTitle:"多级菜单-2-1",keepAlive:!0}},{path:"sub-menu",name:"SubMenu",component:ge,meta:{noLocalTitle:"多级菜单-2-2",keepAlive:!0},children:[{path:"sub-menu-one",name:"MultiMenuTwoOne",component:()=>k(()=>import("./index-Cg1Whvge.js"),[]),meta:{noLocalTitle:"多级菜单-2-2-1",keepAlive:!0}}]}]}]},ba=Object.freeze(Object.defineProperty({__proto__:null,default:ya},Symbol.toStringTag,{value:"Module"})),va={path:"/precision",component:()=>k(()=>import("./index-2JATXzfJ.js"),__vite__mapDeps([36,1,2,3,4,5,6,11,7,8,9,10,12,13,14,15,16,17,18,19])),meta:{i18nKey:A("menu.CalculatePrecision"),icon:"other",order:2}},Va=Object.freeze(Object.defineProperty({__proto__:null,default:va},Symbol.toStringTag,{value:"Module"})),Sa={path:"/qrcode",component:()=>k(()=>import("./index-DU0AD4bw.js"),__vite__mapDeps([37,38,39,40])),meta:{i18nKey:A("menu.QRCode"),icon:"other",order:2}},_a=Object.freeze(Object.defineProperty({__proto__:null,default:Sa},Symbol.toStringTag,{value:"Module"})),wa={path:"rely-about",component:()=>k(()=>import("./index-B0CACC_9.js"),__vite__mapDeps([41,42])),meta:{i18nKey:A("menu.RelyAbout"),icon:"rely",order:999}},Ca=Object.freeze(Object.defineProperty({__proto__:null,default:wa},Symbol.toStringTag,{value:"Module"})),Ta={path:"/router-demo",component:ge,meta:{i18nKey:A("menu.RouterDemo"),icon:"other",order:3},children:[{path:"router-demo-home",component:()=>k(()=>import("./index-DWyvlcWc.js"),__vite__mapDeps([43,7,1,2,8,9,10,3,4,5,6,11,12,13,14,15,16,17,18,19])),meta:{noLocalTitle:"人员信息(平级模式)"}},{path:"router-demo-detail",component:()=>k(()=>import("./index-BRGdSJVO.js"),[]),meta:{noLocalTitle:"信息详情",sameLevel:!0}}]},Na=Object.freeze(Object.defineProperty({__proto__:null,default:Ta},Symbol.toStringTag,{value:"Module"})),Oa={path:"/scroll-reveal",component:()=>k(()=>import("./index-E385tkq8.js"),__vite__mapDeps([44,45])),meta:{i18nKey:A("menu.scrollReveal"),icon:"scroll_reveal",hidden:!0}},ka=Object.freeze(Object.defineProperty({__proto__:null,default:Oa},Symbol.toStringTag,{value:"Module"})),xa={path:"/segment",component:()=>k(()=>import("./index-enc6OrTS.js"),__vite__mapDeps([46,7,1,2,3,4,5,6,8,9,10,11,12,13,14,15,16,17,18,19])),meta:{i18nKey:A("menu.Segment"),icon:"other",order:3,extra:{label:"segment"}}},Ra=Object.freeze(Object.defineProperty({__proto__:null,default:xa},Symbol.toStringTag,{value:"Module"})),Aa={path:"/svg-icons",component:()=>k(()=>import("./index-D2S_rdww.js"),__vite__mapDeps([47,7,1,2,3,4,5,6,8,9,10,11,12,13,14,15,16,17,18,19,48])),meta:{i18nKey:A("menu.SvgIcon"),icon:"other",order:3}},Pa=Object.freeze(Object.defineProperty({__proto__:null,default:Aa},Symbol.toStringTag,{value:"Module"})),Ma={path:"/table-pro",component:()=>k(()=>import("./TablePro-DyGNxTE3.js"),__vite__mapDeps([49,7,1,2,3,4,5,6,11,8,25,50,9,10,12,13,14,15,16,17,18,19])),meta:{i18nKey:A("menu.TablePro"),icon:"other",order:2,extra:{label:"TablePro"}}},La=Object.freeze(Object.defineProperty({__proto__:null,default:Ma},Symbol.toStringTag,{value:"Module"})),Ea={path:"/table",component:()=>k(()=>import("./index-Kmm92eIK.js"),__vite__mapDeps([51,11,7,3,4,2,5,6,8,1,9,10,12,13,14,15,16,17,18,19])),meta:{i18nKey:A("menu.Table"),icon:"other",order:2,extra:{label:"useTable"}}},za=Object.freeze(Object.defineProperty({__proto__:null,default:Ea},Symbol.toStringTag,{value:"Module"})),Ia={path:"/template-hooks",component:()=>k(()=>import("./index--cyhTTPE.js"),__vite__mapDeps([52,7,1,2,3,4,5,6,8,9,10,11,12,13,14,15,16,17,18,19])),meta:{i18nKey:A("menu.TemplateHooks"),icon:"other",order:1}},ja=Object.freeze(Object.defineProperty({__proto__:null,default:Ia},Symbol.toStringTag,{value:"Module"})),Da=()=>{const e=Object.assign({"/src/router/modules/dashboard.ts":Xn,"/src/router/modules/demo/axios.ts":Jn,"/src/router/modules/demo/barcode.ts":ea,"/src/router/modules/demo/cache-demo.ts":oa,"/src/router/modules/demo/context-menu.ts":aa,"/src/router/modules/demo/directive.ts":la,"/src/router/modules/demo/echart.ts":ia,"/src/router/modules/demo/form.ts":ua,"/src/router/modules/demo/iframe.ts":pa,"/src/router/modules/demo/mock.ts":fa,"/src/router/modules/demo/modal.ts":ga,"/src/router/modules/demo/multi-menu.ts":ba,"/src/router/modules/demo/precision.ts":Va,"/src/router/modules/demo/qrcode.ts":_a,"/src/router/modules/demo/rely.ts":Ca,"/src/router/modules/demo/router-demo.ts":Na,"/src/router/modules/demo/scroll-reveal.ts":ka,"/src/router/modules/demo/segment.ts":Ra,"/src/router/modules/demo/svg-icons.ts":Pa,"/src/router/modules/demo/table-pro.ts":La,"/src/router/modules/demo/table.ts":za,"/src/router/modules/demo/template-hooks.ts":ja});return Object.keys(e).reduce((o,n)=>{const r=e[n].default;if(r)o.push(r);else throw new Error(`[combineRawRouteModules]: ${n} module must export default.`);return o},[])},$a=e=>e[0]==="/",wt=(e,t=[],o="")=>{var n;if(!Array.isArray(e))return[];for(const r of e){const a=o+($a(r.path)?r.path:"/"+r.path);if((n=r.children)!=null&&n.length){wt(r.children,t,a);continue}else t.push({...r,path:a})}return t},Fa=e=>Array.isArray(e)?wt(ye(e)):[],Ba=e=>e.sort((t,o)=>{var a,s;const n=((a=t.meta)==null?void 0:a.order)??1,r=((s=o.meta)==null?void 0:s.order)??0;if(typeof n!="number"||typeof r!="number")throw new TypeError("orderRoutes error: order must be a number!");return n===r?t.name?o.name?t.name.localeCompare(o.name):-1:1:n-r}),Wa=e=>{const{beforeEach:t}=e,{getRootPath:o}=te(),n=(r,a)=>r.path==="/"||a.path==="/login";t((r,a,s)=>{const l=re(E.token,"localStorage"),i=re(E.appMenuKey,"sessionStorage",{defaultValue:o.value}),{meta:u,name:c}=r;l!==null?n(r,a)?ke(!0):!q(c,"Symbol")&&c&&qn.includes(c)?s():Bo(u)?n(r,a)?i?s(i):ke(!0):s():ke(!0):n(r,a)?s():s("/")})},ke=(e=!0)=>{const{router:t}=qe(),{push:o,replace:n}=t,{getRootPath:r}=te();Ke(E.appMenuKey,r.value,"localStorage"),e?n(r.value):o(r.value)},Ka=e=>{var o;const{meta:t}=e;t!=null&&t.ignoreAutoResetScroll||(o=J.value)==null||o.scrollTo({top:0,left:0,behavior:"smooth"})},Ua=e=>{e.beforeEach(()=>{var t;(t=window.$loadingBar)==null||t.start()}),e.afterEach(()=>{var t;(t=window.$loadingBar)==null||t.finish()}),e.onError(()=>{var t;(t=window.$loadingBar)==null||t.error()})},Ct=e=>{const{meta:t={}}=e,{hidden:o,sameLevel:n,env:r}=t,{MODE:a}=je();return!(n||o||r&&typeof r=="string"&&r!==a||r&&Array.isArray(r)&&!r.includes(a))};var qa={pkg:{dependencies:{"@vueuse/core":"^10.9.0",axios:"^1.7.5",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.39.0",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.38","vue-demi":"0.14.6","vue-hooks-plus":"2.2.1","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.0","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-with-include":"1.2.2",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.17.5","unplugin-vue-components":"^0.26.0",vite:"^5.4.1","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.0.11"},name:"ray-template",version:"4.9.4"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const Tt=Pinia.defineStore("setting",()=>{const{appPrimaryColor:{primaryColor:e}}=qa,{locale:t}=le(),{locale:o}=Tl(),n=Vue.reactive({drawerPlacement:"right",primaryColorOverride:{common:{primaryColor:e,primaryColorHover:e,primaryColorPressed:e}},appTheme:!1,menuTagSwitch:!0,breadcrumbSwitch:!0,localeLanguage:Go(),lockScreenSwitch:!1,copyrightSwitch:!0,contentTransition:"scale",watermarkSwitch:!1,watermarkConfig:{content:"Trying be better~",fontSize:16,lineHeight:16,width:384,height:384,xOffset:12,yOffset:60,rotate:-15},appRootRoute:{name:"Dashboard",path:"/dashboard"},sideBarLogo:Object.assign({},Dn)}),r=l=>{t(l),o(l),n.localeLanguage=l,Ke(E.localeLanguage,l,"localStorage")},a=(l,i=.3)=>{const u=rn(l,i),c={primaryColor:l,primaryColorHover:l,primaryColorPressed:l};n.primaryColorOverride.common=c;const f=document.body;f.style.setProperty("--ray-theme-primary-color",l),f.style.setProperty("--ray-theme-primary-fade-color",u)},s=(l,i,u)=>{Object.hasOwn(n,l)&&(n[l]=i),u==null||u()};return Mn(()=>n.appTheme,l=>{l?n.primaryColorOverride=Object.assign({},n.primaryColorOverride,$.appNaiveUIThemeOverrides.dark,$.appNaiveUIThemeOverridesCommon.dark):n.primaryColorOverride=Object.assign({},n.primaryColorOverride,$.appNaiveUIThemeOverrides.light,$.appNaiveUIThemeOverridesCommon.light)},{immediate:!0}),{...Vue.toRefs(n),updateLocale:r,changePrimaryColor:a,updateSettingState:s}},{persist:{key:E.appPiniaSettingStore}}),Nt=["#fc97af","#87f7cf","#f7f494","#72ccff","#f7c5a0","#d4a4eb","#d2f5a6","#76f2f2","#9b8bba","#e098c7","#8fd3e8","#71669e","#cc70af","#7cb4cc","#7EC4FF","#5FCBB0","#49C4BF","#F0C9CA","#34DC90","#3295E0","#EAB62E","#76C3F3","#2DC2C0","#FCC43F","#84CFFF"],Ot="transparent",kt={},xt={textStyle:{color:"#ffffff"},subtextStyle:{color:"#dddddd"}},Rt={itemStyle:{borderWidth:"4"},lineStyle:{width:"3"},symbolSize:"0",symbol:"circle",smooth:!0},At={itemStyle:{borderWidth:"4"},lineStyle:{width:"3"},symbolSize:"0",symbol:"circle",smooth:!0},Pt={itemStyle:{barBorderWidth:0,barBorderColor:"#ccc"}},Mt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Lt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Et={itemStyle:{borderWidth:0,borderColor:"#ccc"}},zt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},It={itemStyle:{borderWidth:0,borderColor:"#ccc"}},jt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Dt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},$t={itemStyle:{color:"#fc97af",color0:"transparent",borderColor:"#fc97af",borderColor0:"#87f7cf",borderWidth:"2"}},Ft={itemStyle:{borderWidth:0,borderColor:"#ccc"},lineStyle:{width:"1",color:"#ffffff"},symbolSize:"0",symbol:"circle",smooth:!0,color:["#fc97af","#87f7cf","#f7f494","#72ccff","#f7c5a0","#d4a4eb","#d2f5a6","#76f2f2"],label:{color:"#293441"}},Bt={itemStyle:{areaColor:"#f3f3f3",borderColor:"#999999",borderWidth:.5},label:{color:"#893448"},emphasis:{itemStyle:{areaColor:"rgba(255,178,72,1)",borderColor:"#eb8146",borderWidth:1},label:{color:"rgb(137,52,72)"}}},Wt={itemStyle:{areaColor:"#f3f3f3",borderColor:"#999999",borderWidth:.5},label:{color:"#893448"},emphasis:{itemStyle:{areaColor:"rgba(255,178,72,1)",borderColor:"#eb8146",borderWidth:1},label:{color:"rgb(137,52,72)"}}},Kt={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},Ut={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},qt={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},Gt={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},Ht={iconStyle:{borderColor:"#999999"},emphasis:{iconStyle:{borderColor:"#666666"}}},Yt={textStyle:{color:"#999999"},pageTextStyle:{color:"#999999"}},Xt={axisPointer:{lineStyle:{color:"#cccccc",width:1},crossStyle:{color:"#cccccc",width:1}}},Zt={lineStyle:{color:"#87f7cf",width:1},itemStyle:{color:"#87f7cf",borderWidth:1},controlStyle:{color:"#87f7cf",borderColor:"#87f7cf",borderWidth:.5},checkpointStyle:{color:"#fc97af",borderColor:"#fc97af"},label:{color:"#87f7cf"},emphasis:{itemStyle:{color:"#f7f494"},controlStyle:{color:"#87f7cf",borderColor:"#87f7cf",borderWidth:.5},label:{color:"#87f7cf"}}},Jt={color:["#fc97af","#87f7cf"]},Qt={backgroundColor:"rgba(255,255,255,0)",dataBackgroundColor:"rgba(114,204,255,1)",fillerColor:"rgba(114,204,255,0.2)",handleColor:"#72ccff",handleSize:"100%",textStyle:{color:"#333333"}},eo={label:{color:"#293441"},emphasis:{label:{color:"#293441"}}},Ga={color:Nt,backgroundColor:Ot,textStyle:kt,title:xt,line:Rt,radar:At,bar:Pt,pie:Mt,scatter:Lt,boxplot:Et,parallel:zt,sankey:It,funnel:jt,gauge:Dt,candlestick:$t,graph:Ft,map:Bt,geo:Wt,categoryAxis:Kt,valueAxis:Ut,logAxis:qt,timeAxis:Gt,toolbox:Ht,legend:Yt,tooltip:Xt,timeline:Zt,visualMap:Jt,dataZoom:Qt,markPoint:eo},Ha=Object.freeze(Object.defineProperty({__proto__:null,backgroundColor:Ot,bar:Pt,boxplot:Et,candlestick:$t,categoryAxis:Kt,color:Nt,dataZoom:Qt,default:Ga,funnel:jt,gauge:Dt,geo:Wt,graph:Ft,legend:Yt,line:Rt,logAxis:qt,map:Bt,markPoint:eo,parallel:zt,pie:Mt,radar:At,sankey:It,scatter:Lt,textStyle:kt,timeAxis:Gt,timeline:Zt,title:xt,toolbox:Ht,tooltip:Xt,valueAxis:Ut,visualMap:Jt},Symbol.toStringTag,{value:"Module"})),to=["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3","#e5cf0d","#97b552","#95706d","#dc69aa","#07a2a4","#9a7fd1","#588dd5","#f5994e","#c05050","#59678c","#c9ab00","#7eb00a","#6f5553","#c14089","#516b91","#59c4e6","#edafda","#93b7e3","#a5e7f0","#cbb0e3"],oo="transparent",no={},ao={textStyle:{color:"#008acd"},subtextStyle:{color:"#aaaaaa"}},ro={itemStyle:{borderWidth:1},lineStyle:{width:2},symbolSize:3,symbol:"emptyCircle",smooth:!0},lo={itemStyle:{borderWidth:1},lineStyle:{width:2},symbolSize:3,symbol:"emptyCircle",smooth:!0},so={itemStyle:{barBorderWidth:0,barBorderColor:"#ccc"}},io={itemStyle:{borderWidth:0,borderColor:"#ccc"}},co={itemStyle:{borderWidth:0,borderColor:"#ccc"}},uo={itemStyle:{borderWidth:0,borderColor:"#ccc"}},po={itemStyle:{borderWidth:0,borderColor:"#ccc"}},mo={itemStyle:{borderWidth:0,borderColor:"#ccc"}},fo={itemStyle:{borderWidth:0,borderColor:"#ccc"}},ho={itemStyle:{borderWidth:0,borderColor:"#ccc"}},go={itemStyle:{color:"#d87a80",color0:"#2ec7c9",borderColor:"#d87a80",borderColor0:"#2ec7c9",borderWidth:1}},yo={itemStyle:{borderWidth:0,borderColor:"#ccc"},lineStyle:{width:1,color:"#aaa"},symbolSize:3,symbol:"emptyCircle",smooth:!0,color:["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3","#e5cf0d","#97b552","#95706d","#dc69aa","#07a2a4","#9a7fd1","#588dd5","#f5994e","#c05050","#59678c","#c9ab00","#7eb00a","#6f5553","#c14089"],label:{color:"#eee"}},bo={itemStyle:{areaColor:"#dddddd",borderColor:"#eeeeee",borderWidth:.5},label:{color:"#d87a80"},emphasis:{itemStyle:{areaColor:"rgba(254,153,78,1)",borderColor:"#444",borderWidth:1},label:{color:"rgb(100,0,0)"}}},vo={itemStyle:{areaColor:"#dddddd",borderColor:"#eeeeee",borderWidth:.5},label:{color:"#d87a80"},emphasis:{itemStyle:{areaColor:"rgba(254,153,78,1)",borderColor:"#444",borderWidth:1},label:{color:"rgb(100,0,0)"}}},Vo={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!1,lineStyle:{color:["#eee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},So={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},_o={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},wo={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},Co={iconStyle:{borderColor:"#2ec7c9"},emphasis:{iconStyle:{borderColor:"#18a4a6"}}},To={textStyle:{color:"#333333"}},No={axisPointer:{lineStyle:{color:"#008acd",width:"1"},crossStyle:{color:"#008acd",width:"1"}}},Oo={lineStyle:{color:"#008acd",width:1},itemStyle:{color:"#008acd",borderWidth:1},controlStyle:{color:"#008acd",borderColor:"#008acd",borderWidth:.5},checkpointStyle:{color:"#2ec7c9",borderColor:"#2ec7c9"},label:{color:"#008acd"},emphasis:{itemStyle:{color:"#a9334c"},controlStyle:{color:"#008acd",borderColor:"#008acd",borderWidth:.5},label:{color:"#008acd"}}},ko={color:["#5ab1ef","#e0ffff"]},xo={backgroundColor:"rgba(47,69,84,0)",dataBackgroundColor:"#efefff",fillerColor:"rgba(182,162,222,0.2)",handleColor:"#008acd",handleSize:"100%",textStyle:{color:"#333333"}},Ro={label:{color:"#eee"},emphasis:{label:{color:"#eee"}}},Ya={color:to,backgroundColor:oo,textStyle:no,title:ao,line:ro,radar:lo,bar:so,pie:io,scatter:co,boxplot:uo,parallel:po,sankey:mo,funnel:fo,gauge:ho,candlestick:go,graph:yo,map:bo,geo:vo,categoryAxis:Vo,valueAxis:So,logAxis:_o,timeAxis:wo,toolbox:Co,legend:To,tooltip:No,timeline:Oo,visualMap:ko,dataZoom:xo,markPoint:Ro},Xa=Object.freeze(Object.defineProperty({__proto__:null,backgroundColor:oo,bar:so,boxplot:uo,candlestick:go,categoryAxis:Vo,color:to,dataZoom:xo,default:Ya,funnel:fo,gauge:ho,geo:vo,graph:yo,legend:To,line:ro,logAxis:_o,map:bo,markPoint:Ro,parallel:po,pie:io,radar:lo,sankey:mo,scatter:co,textStyle:no,timeAxis:wo,timeline:Oo,title:ao,toolbox:Co,tooltip:No,valueAxis:So,visualMap:ko},Symbol.toStringTag,{value:"Module"})),Za=()=>{const e=Object.assign({"/src/app-config/echart-themes/macarons/macarons-dark.json":Ha,"/src/app-config/echart-themes/macarons/macarons.json":Xa}),t=/\/([^/]+)\.json$/;return Object.keys(e).reduce((n,r)=>{var s;const a=(s=r.match(t))==null?void 0:s[1];if(a)return n.push({name:a,theme:e[r].default}),n;throw new Error(`[RChart Theme Error]: name ${r} is invalid!`)},[])},Ja=e=>{const{getAppTheme:t}=Uo(),{theme:o}=t();return Object.assign({},{text:"loading",color:"#c23531",textColor:o?"#fff":"#000",maskColor:o?"rgba(0, 0, 0, 0.5)":"rgba(255, 255, 255, 0.5)",zlevel:0,fontSize:12,showSpinner:!0,spinnerRadius:10,lineWidth:5,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"},e)},Qa={intersectionObserver:{type:Boolean,default:!0},intersectionObserverTarget:{type:Object,default:null},intersectionOptions:{type:Object,default:{threshold:.1}},bordered:{type:Boolean,default:!0},downloadOptions:{type:Object,default:()=>({})},onDropdownSelect:{type:[Function,Array]},dropdownOptions:{type:Array},preset:{type:String},contentStyle:{type:[String,Object]},title:{type:[String,Function]},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"100%"},autoResize:{type:Boolean,default:!0},showAria:{type:Boolean,default:!1},options:{type:Object,default:()=>({})},onSuccess:{type:[Function,Array],default:null},onError:{type:[Function,Array],default:null},onFinally:{type:[Function,Array],default:null},theme:{type:String,default:null},autoChangeTheme:{type:Boolean,default:!0},use:{type:Array,default:()=>[]},watchOptions:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},loadingOptions:{type:Object,default:()=>Ja()},autoResizeObserverTarget:{type:Object,default:null},watchOptionsThrottleWait:{type:Number,default:500},nextTick:{type:Boolean,default:!0},setChartOptions:{type:Object,default:()=>({notMerge:!0,lazyUpdate:!0,silent:!1,replaceMerge:[]})},onRegister:{type:[Function,Array],default:null}},er={notMerge:!0,lazyUpdate:!0,silent:!1,replaceMerge:[]},tr=Za(),tt="__R_CHART_DOWN_LOAD_CHART__";tr.forEach(e=>{fn(e.name,e.theme)});const es=Vue.defineComponent({name:"RChart",props:Qa,setup(e,{expose:t}){const{getAppTheme:o}=j(),n=Vue.ref(),r=Vue.ref(),a=Vue.ref();let s,l;const{echartTheme:i}=$;let u,c;const f=Vue.computed(()=>[{label:"下载图片",key:tt,disabled:!(a.value&&a.value.getDom())}]),y=Vue.computed(()=>({"--ray-chart-width":L(e.width),"--ray-chart-height":L(e.height)})),m=Vue.ref(!1);let p;const h=async()=>{var C;oe([gn,yn,bn,vn,Vn,Sn,_n,wn]),oe([Cn,Tn,Nn,On,kn,xn]),oe([Rn,An]),oe([Pn]);try{oe((C=e.use)==null?void 0:C.filter(Boolean))}catch(M){console.error("[RChart register error]: ",M)}},g=()=>{if(c!=null&&c.getDom()&&S(),e.theme==="default"){e.autoChangeTheme?d("dark"):d("");return}if(e.theme)d(e.theme);else{const C=e.autoChangeTheme&&o.value?`${i}-dark`:i;d(C)}},b=C=>{let M=Vue.unref(C);const P=D=>Object.assign({},M,D);return e.showAria&&(M=P({aria:{enabled:!0,decal:{show:!0}}})),M},d=(C=i)=>{const M=n.value,P=b(e.options),{height:D,width:B}=M.getBoundingClientRect(),{onSuccess:ce,onError:ue}=e;try{c=hn(M,C,{width:B===0?200:void 0,height:D===0?200:void 0}),a.value=c,ce&&R(ce,c),e.nextTick?(c.setOption({}),Vue.nextTick(()=>{P&&(c==null||c.setOption(P))})):P&&(c==null||c.setOption(P))}catch(X){throw ue&&R(ue),new Error(`[RChart render error]: ${X}`)}finally{const{onFinally:X}=e;X&&R(X)}},V=()=>!(c&&c.getDom()),S=()=>{V()||(c.clear(),c.dispose(),a.value=void 0,c=null)},O=()=>{c&&c.resize()},v=(C,M)=>{if(C===tt&&!V()){const{filename:D,...B}=e.downloadOptions;ln(c.getDataURL(B),D??`${new Date().getTime()}`)}const{onDropdownSelect:P}=e;P&&R(P,C,M)},w=()=>{if(e.autoResize&&(s||(s=Be(O,500)),l||(l=on(e.autoResizeObserverTarget||r,s))),c!=null&&c.getDom()||!m.value&&e.intersectionObserver)return;g(),p==null||p.stop();const{onRegister:C}=e;C&&c&&R(C,c,w,x)};e.intersectionObserver&&(p=tn(e.intersectionObserverTarget||r,([C])=>{m.value=C.isIntersecting},e.intersectionOptions));const x=()=>{S(),s==null||s.cancel(),l==null||l.stop(),p==null||p.stop(),p=null,s=null,l=null};return Vue.watch(()=>o.value,()=>{e.autoChangeTheme&&(S(),g())}),Vue.watch(()=>e.showAria,()=>{S(),g()}),Vue.watchEffect(()=>{e.watchOptions?u=Ln(()=>e.options,C=>{const M=b(C),P=Object.assign({},er,e.setChartOptions);c==null||c.setOption(M,P)},{deep:!0,throttle:e.watchOptionsThrottleWait}):u==null||u(),e.loading?c==null||c.showLoading(e.loadingOptions):c==null||c.hideLoading(),m.value&&w()}),t(),Vue.onBeforeMount(async()=>{await h()}),Vue.onMounted(()=>{w()}),Vue.onBeforeUnmount(()=>{x(),u==null||u()}),{rayChartRef:n,cssVarsRef:y,rayChartWrapperRef:r,moreDropDownOptions:f,dropdownSelect:v}},render(){const{title:e,contentStyle:t,preset:o,moreDropDownOptions:n,dropdownSelect:r,bordered:a,dropdownOptions:s}=this,{cardExtra:l}=this.$slots;return o==="card"?Vue.createVNode(naive.NCard,{class:"ray-chart",ref:"rayChartWrapperRef",style:[this.cssVarsRef],contentStyle:t,bordered:a},{default:Q(Vue.createVNode("div",{class:"ray-chart__container",ref:"rayChartRef"},null)),header:Q(e,{defaultElement:Vue.createVNode("div",{style:"display: none;"},null)}),"header-extra":Q(l,{defaultElement:Vue.createVNode(Mo,{iconSize:18,cursor:"pointer",options:s??n,trigger:"click",onSelect:r.bind(this),placement:"bottom-end"},null)})}):Vue.createVNode("div",{class:"ray-chart",style:[this.cssVarsRef],ref:"rayChartWrapperRef"},[Vue.createVNode("div",{class:"ray-chart__container",ref:"rayChartRef"},null)])}}),ts=()=>{let e,t,o;const n=(i,u,c)=>{i&&(e=i,t=c,o=u)},r=()=>{if(!e)throw new Error("[useChart]: echart instance is not ready yet. if you are using useChart, please make sure you have called register method in onRegister event.");return{dispose:t,render:o,echartInst:e}};return[n,{getChartInstance:r,isDispose:()=>!(e&&r().echartInst.getDom()),dispose:()=>r().dispose.call(null),render:()=>r().render.call(null)}]},or={actionAlign:{type:String,default:"end"},open:{type:Boolean,default:!1},collapseToggleText:{type:Array,default:()=>["展开","收起"]},bordered:{type:Boolean,default:!1},onUpdateValue:{type:[Function,Array],default:null},"onUpdate:value":{type:[Function,Array],default:null},...naive.gridProps},os=Vue.defineComponent({name:"RCollapseGrid",props:or,setup(e){const t=Vue.computed({get:()=>!e.open,set:a=>{const{onUpdateValue:s,"onUpdate:value":l}=e;s&&R(s,a),l&&R(l,a)}}),o=Vue.computed(()=>({"--r-collapse-grid-action-align":e.actionAlign})),n=()=>{t.value=!t.value};return{modelCollapsed:t,collapseClick:n,CollapseIcon:()=>Vue.createVNode("div",{class:"collapse-icon",onClick:n.bind(this)},[Vue.createVNode("span",null,[t.value?e.collapseToggleText[0]:e.collapseToggleText[1]]),Vue.createVNode(N,{customClassName:`collapse-icon--arrow ${t.value?"":"collapse-icon--arrow__expanded"}`,name:"expanded",size:"14"},null)]),cssVars:o}},render(){const{$slots:{collapse:e,action:t,default:o},CollapseIcon:n,$props:r,modelCollapsed:a,xGap:s,yGap:l,collapsedRows:i,cssVars:u}=this;return Vue.createVNode(naive.NCard,{bordered:this.bordered,style:[u]},{default:()=>Vue.createVNode(naive.NGrid,Vue.mergeProps({class:"ray-collapse-grid"},r,{collapsed:a,xGap:s||12,yGap:l||12,collapsedRows:i}),{default:()=>[o==null?void 0:o(),Vue.createVNode(naive.NGridItem,{suffix:!0,class:"ray-collapse-grid__suffix--btn"},{default:()=>[Vue.createVNode(naive.NFlex,{justify:"end",align:"center"},{default:()=>[t==null?void 0:t(),e?e(a):n()]})]})]})})}}),nr={color:{type:String,default:"currentColor"},prefix:{type:String,default:"icon"},name:{type:String,required:!0},size:{type:[Number,String],default:14},width:{type:[Number,String],default:0},height:{type:[Number,String],default:0},customClassName:{type:String,default:null},depth:{type:Number,default:1},cursor:{type:String,default:"default"},onClick:{type:[Function,Array],default:null}},N=Vue.defineComponent({name:"RIcon",props:nr,setup(e){const t=Vue.computed(()=>`#${e.prefix}-${e.name}`),o=Vue.computed(()=>({"--ray-icon-width":e.width?L(e.width):L(e.size),"--ray-icon-height":e.height?L(e.height):L(e.size),"--ray-icon-depth":e.depth,"--ray-icon-cursor":e.cursor,"--ray-icon-color":e.color}));return{symbolId:t,cssVars:o,iconClick:r=>{const{onClick:a}=e;a&&R(a,r)}}},render(){return Vue.createVNode("span",{class:["ray-icon",this.customClassName],style:[this.cssVars],onClick:this.iconClick.bind(this)},[Vue.createVNode("svg",{RayIconAttribute:"ray-icon",ariaHidden:!0},[Vue.createVNode("use",Vue.mergeProps({"xlink:href":this.symbolId},{fill:this.color}),null)])])}}),ar={src:{type:String,required:!0},iframeWrapperClass:{type:String,default:null},frameborder:{type:Number,default:0},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"100%"},allow:{type:String,default:null},name:{type:String,default:null},title:{type:String,default:null},onSuccess:{type:[Function,Array],default:null},onError:{type:[Function,Array],default:null},customSpinProps:{type:Object,default:()=>({})},lazy:{type:Boolean,default:!0},iframeClass:{type:String,default:null}},ns=Vue.defineComponent({name:"RIframe",props:ar,setup(e,{expose:t}){const o=Vue.computed(()=>({"--ray-iframe-frameborder":L(e.frameborder),"--ray-iframe-width":L(e.width),"--ray-iframe-height":L(e.height)})),n=Vue.ref(),r=Vue.ref(!0),a=l=>{r.value=!1;const{onSuccess:i}=e;i&&R(i,n.value,l)},s=l=>{r.value=!1;const{onError:i}=e;i&&R(i,l)};return ae(n,"load",a),ae(n,"error",s),t({iframeInst:n}),{cssVars:o,iframeRef:n,spinShow:r}},render(){return Vue.createVNode("div",{class:["ray-iframe",this.iframeWrapperClass],style:[this.cssVars]},[Vue.createVNode(naive.NSpin,Vue.mergeProps(this.customSpinProps,{show:this.spinShow}),{...this.$slots,default:()=>Vue.createVNode("iframe",Vue.mergeProps({class:["ray-iframe__container",this.iframeClass],ref:"iframeRef",src:this.src,allow:this.allow,name:this.name,title:this.title},{loading:this.lazy?"lazy":null}),null)})])}}),rr={...naive.modalProps,memo:{type:Boolean,default:!0},fullscreen:{type:Boolean,default:!1},width:{type:[String,Number],default:600},cardWidth:{type:[String,Number],default:600},dialogWidth:{type:[String,Number],default:446},dad:{type:Boolean,default:!1}},lr=(e,t,o)=>{const{scheduler:n}=o??{};return new Promise(r=>{setTimeout(()=>{const a=t==="card"?".n-card-header__main":".n-dialog__title";if(e){const s=Je(e).draggable({inertia:!0,autoScroll:!0,allowFrom:a,modifiers:[Je.modifiers.restrictRect({restriction:"parent",endOnly:!0})],listeners:{move:l=>{n==null||n(l)}}}).resizable(!1);r(s)}},30)})},Ao=(e,t)=>{const o=typeof e=="string"?document.querySelector(e):e;return new Promise((n,r)=>{if(o){o.setAttribute("can-drag","true");const{preset:a,dargCallback:s}=t;let{x:l,y:i}=t;lr(o,a,{scheduler:u=>{const c=u.target;l+=u.dx,i+=u.dy,c.style.transform=`translate(${l}px, ${i}px)`,s==null||s(l,i,u)}}).then(u=>{n(u)})}else r()})},sr="r-modal__preset-card--fullscreen",Po="r-modal",ee={width:"--r-modal-width",cardWidth:"--r-modal-card-width",dialogWidth:"--r-modal-dialog-width"},as=Vue.defineComponent({name:"RModal",props:rr,setup(e){const t=Vue.computed(()=>({[ee.width]:L(e.width??600),[ee.cardWidth]:L(e.cardWidth??600),[ee.dialogWidth]:L(e.dialogWidth??446)})),o=be();let n;const r={x:0,y:0},a=Vue.computed(()=>e.preset==="card"&&e.fullscreen);return Vue.watch(()=>e.show,s=>{s&&e.dad&&(e.preset==="card"||e.preset==="dialog")?Vue.nextTick(()=>{const l=document.getElementById(o);l&&Ao(l,{preset:e.preset,x:r.x,y:r.y,dargCallback:(i,u)=>{r.x=i,r.y=u}}).then(i=>{n=i}),e.memo&&l&&(l.style.transform=`translate(${r.x}px, ${r.y}px)`)}):(n==null||n.unset(),n=null)},{immediate:!0}),{cssVars:t,isFullscreenCardType:a,uuidEl:o}},render(){const{$props:e,$slots:t,$attrs:o}=this,{preset:n,...r}=e,{cssVars:a,uuidEl:s,isFullscreenCardType:l}=this;return Vue.createVNode(naive.NModal,Vue.mergeProps({class:[Po,l?sr:""],style:[a,l?"height: 100vh":""],preset:n},{id:s},r,o),{...t})}}),rs=()=>{const{create:e,destroyAll:t}=naive.useModal();return{create:n=>{const{content:r,...a}=n;let s=r;a.preset==="card"&&a.fullscreen&&(s=()=>Vue.h(naive.NScrollbar,{themeOverrides:{color:"rgba(0, 0, 0, 0)",colorHover:"rgba(0, 0, 0, 0)"},trigger:"none",style:{width:"auto",height:"calc(100vh - 29px - var(--n-padding-bottom) - var(--n-padding-bottom) - var(--n-padding-top))"}},{default:()=>typeof r=="function"?r():r}));const{preset:l,dad:i,fullscreen:u,width:c,cardWidth:f,dialogWidth:y}=n,m=e({...a,content:s}),{key:p}=m,h={[ee.width]:L(c??600),[ee.cardWidth]:L(f??600),[ee.dialogWidth]:L(y??446)};return Vue.nextTick(()=>{const[g]=ve(`[internalkey="${p}"]`)||[];if(g){if(i&&Ao(g,{preset:l,x:0,y:0}),u&&l==="card"){const b=g.querySelector(".n-card__content");b&&Ne(b,{maxHeight:"calc(100vh - 9px - var(--n-padding-bottom) - var(--n-padding-bottom) - var(--n-padding-top))",overflowY:"hidden",padding:"0"}),Ne(g,{width:"100%",height:"100vh"})}Ne(g,h),ht(g,Po)}}),m},destroyAll:t}},ir={...naive.dropdownProps,icon:{type:String,default:"more"},iconSize:{type:Number,default:14},cursor:{type:String,default:"default"}};function cr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Mo=Vue.defineComponent({name:"RMoreDropdown",props:ir,render(){let e;const{iconSize:t,cursor:o,icon:n}=this,{default:r}=this.$slots;return Vue.createVNode(naive.NDropdown,Vue.mergeProps(this.$props,this.$attrs,{placement:"bottom-start"}),cr(e=Q(r,{defaultElement:Vue.createVNode(N,{name:n,size:t,cursor:o},null)}))?e:{default:()=>[e]})}}),se={...naive.dataTableProps,renderWrapperHeader:{type:Boolean,default:!0},cardProps:{type:Object,default:()=>({})},tool:{type:Boolean,default:!0},downloadCsvTableOptions:{type:Object,default:()=>({})},title:{type:[String,Number,Object],default:null},toolOptions:{type:Array},coverTool:{type:Boolean,default:!1},contextMenuOptions:{type:Array},disabledContextMenu:{type:Boolean,default:!1},onContextMenuClick:{type:[Function,Array],default:null},wrapperBordered:{type:Boolean,default:!1},printTableOptions:{type:Object,default:()=>({})},onUpdateColumns:{type:[Function,Array],default:null},"onUpdate:columns":{type:[Function,Array],default:null},onContextmenu:{type:[Function,Array],default:null},onRegister:{type:[Function,Array],default:null}},F={tableIconSize:"18",tableKey:Symbol("r-table")},ur=[{label:"斑马条纹",value:"striped"},{label:"表格边框",value:"bordered"}],dr=Vue.defineComponent({name:"TableSizeSelect",props:{onChangeSize:{type:[Function,Array],default:null},...se},setup(e){return{size:Vue.ref(e.size),sizeOptions:[{label:"默认",value:"medium"},{label:"紧凑",value:"small"},{label:"宽松",value:"large"}],updatePopselectValue:r=>{const{onChangeSize:a}=e;a&&R(a,r)}}},render(){return Vue.createVNode(naive.NPopselect,{value:this.size,"onUpdate:value":e=>this.size=e,options:this.sizeOptions,trigger:"click",onUpdateValue:this.updatePopselectValue.bind(this)},{default:()=>[Vue.createVNode(N,{name:"adjustment",size:F.tableIconSize,cursor:"pointer"},null)]})}}),pr=Vue.defineComponent({name:"TableFullscreen",setup(){const{wrapperRef:e}=Vue.inject(F.tableKey,{}),[t,{toggleFullscreen:o,isEnabled:n}]=ft(e);return{toggleFullscreen:o,isEnabled:n}},render(){const{toggleFullscreen:e,isEnabled:t,$t:o}=this;return Vue.createVNode(N,{name:"fullscreen",size:F.tableIconSize,cursor:"pointer",onClick:()=>{t||window.$message.warning(o("globalMessage.isEnabledFullscreen")),e()}},null)}}),mr=()=>Vue.createVNode(N,{name:"draggable",size:14,cursor:"grab"},null),ot=({icon:e,title:t,onClick:o,customClassName:n})=>Vue.createVNode(naive.NPopover,{showArrow:!1},{trigger:()=>Vue.createVNode(N,{name:e,size:F.tableIconSize,cursor:"pointer",customClassName:n,onClick:o==null?void 0:o.bind(null)},null),default:()=>t}),De=(e,t)=>{if(!t)return[null,null];for(let o=0;oye(e.columns).filter(i=>i.type?(t=i,!1):!0).map((i,u)=>{const{key:c,title:f,children:y,fixed:m,isResizable:p,...h}=i,g=m==="left",b=m==="right",d={...h,title:f,key:c,fixed:m,isLeftFixedActivated:g,isRightFixedActivated:b,isResizable:p};return{...d,suffix:()=>Vue.createVNode(naive.NFlex,{style:"padding-left: 32px;"},{default:()=>[Vue.createVNode(ot,{icon:"row_head",title:"固定在列首",customClassName:g?xe:"",onClick:a.bind(this,"left",d,u)},null),Vue.createVNode(naive.NPopover,{showArrow:!1},{trigger:()=>Vue.createVNode(N,{name:"resize_h",size:F.tableIconSize,cursor:"pointer",customClassName:p?xe:"",onClick:r.bind(this,d,u)},null),default:()=>"修改列宽"}),Vue.createVNode(ot,{icon:"row_end",title:"固定在列尾",customClassName:b?xe:"",onClick:a.bind(this,"right",d,u)},null)]})}}),set:()=>{}}),n=l=>{const{onUpdateColumn:i}=e;i&&R(i,l)},r=(l,i)=>{l.isResizable=!l.isResizable,l.resizable=l.isResizable,o.value[i]=l,n(o.value)},a=(l,i,u)=>{const c=`${l}FixedActivated`,f=`${l==="left"?"right":"left"}FixedActivated`;i[f]=!1,i[c]=!i[c],i[c]?i.fixed=l:i.fixed=void 0,o.value[u]=i,n(o.value)};return{treeDataSource:o,treeDrop:({node:l,dragNode:i,dropPosition:u})=>{const[c,f]=De(i,o.value);if(c===null||f===null)return;c.splice(f,1);const[y,m]=De(l,o.value);y===null||m===null||(u==="before"?y.splice(m,0,i):y.splice(m+1,0,i),pt(t)||y.unshift(t),n(y))}}},render(){return Vue.createVNode(naive.NPopover,{displayDirective:"show",trigger:"click",showArrow:!1},{trigger:()=>Vue.createVNode(N,{name:"setting",size:F.tableIconSize,cursor:"pointer",customClassName:"r-table__setting"},null),default:()=>Vue.createVNode(naive.NTree,{class:"r-table__c-tree",data:this.treeDataSource,blockLine:!0,draggable:!0,keyboard:!1,labelField:"title",selectable:!1,renderSwitcherIcon:mr.bind(this),onDrop:this.treeDrop.bind(this)},null)})}}),hr=Vue.defineComponent({name:"TablePrint",props:se,setup(e){const{wrapperRef:t}=Vue.inject(F.tableKey,{});return{printTableClick:()=>{const{printTableOptions:{printOptions:n={},domToImageOptions:r}={},title:a}=e;(n.documentTitle===""||n.documentTitle===void 0||n.documentTitle===null)&&(n.documentTitle=typeof a=="string"?a:""),gt(t,{printOptions:n,domToImageOptions:r})}}},render(){return Vue.createVNode(N,{name:"print",size:F.tableIconSize,cursor:"pointer",onClick:this.printTableClick.bind(this)},null)}}),gr=Vue.defineComponent({name:"TablePropsSelect",props:{...se,onPopselectChange:{type:[Function,Array],default:null},onInitialed:{type:[Function,Array],default:null}},setup(e){const t=Vue.ref(!1),o=Vue.ref([]),n=a=>{const{onPopselectChange:s}=e;s&&R(s,a)};return(()=>{const{striped:a,bordered:s,onInitialed:l}=e;a&&o.value.push("striped"),s&&o.value.push("bordered"),l&&R(l,o.value)})(),{propsPopselectValue:o,popoverShow:t,updatePopselectValue:n}},render(){return Vue.createVNode(naive.NPopselect,{value:this.propsPopselectValue,"onUpdate:value":e=>this.propsPopselectValue=e,options:ur,trigger:"click",multiple:!0,onUpdateValue:this.updatePopselectValue.bind(this)},{default:()=>[Vue.createVNode(N,{name:"expanded",size:F.tableIconSize,cursor:"pointer",style:"transform: rotate(270deg);"},null)]})}});function yr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const ls=Vue.defineComponent({name:"RTable",inheritAttrs:!1,props:se,setup(e,t){const{expose:o,emit:n}=t,r=Vue.ref(),a=Vue.ref(),s=be(16),l=be(16),i=Vue.reactive({x:0,y:0,showContextMenu:!1}),u=Vue.reactive({size:e.size}),c=Vue.ref(Object.assign({striped:!1,bordered:!1},ne(e,"striped","bordered"))),f=(d,V)=>{const{onContextMenuClick:S}=e;S&&R(S,d,V),i.showContextMenu=!1},y=(d,V)=>{var O;return{...(O=e.rowProps)==null?void 0:O.call(e,d,V),onContextmenu:e.disabledContextMenu?void 0:v=>{v.preventDefault(),i.showContextMenu=!1,Vue.nextTick().then(()=>{i.showContextMenu=!0,i.x=v.clientX,i.y=v.clientY})}}},m=d=>{u.size=d},p=d=>{const{onUpdateColumns:V,"onUpdate:columns":S}=e;V&&R(V,d),S&&R(S,d)},h=()=>{const{toolOptions:d}=e;return d==null?void 0:d.filter(Boolean).map(V=>typeof V=="function"?V():V)},g=d=>{Object.keys(c.value).forEach(S=>{c.value[S]=d.includes(S)})},b=d=>{const{tool:V}=d;if(!V)return;const S=()=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createVNode(hr,d,null),Vue.createVNode(dr,Vue.mergeProps(d,{onChangeSize:m.bind(this)}),null),Vue.createVNode(pr,null,null),Vue.createVNode(fr,Vue.mergeProps(d,{onUpdateColumn:p.bind(this)}),null),Vue.createVNode(gr,Vue.mergeProps(d,{onPopselectChange:g.bind(this),onInitialed:g.bind(this)}),null)]});return e.toolOptions?e.coverTool?()=>{let O;return Vue.createVNode(naive.NFlex,{align:"center"},yr(O=h())?O:{default:()=>[O]})}:()=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[S(),h()]}):S};return Vue.onMounted(()=>{const{onRegister:d}=e;d&&r.value&&R(d,r.value,{uuidTable:l,uuidWrapper:s,wrapperRef:a})}),Vue.provide(F.tableKey,{uuidTable:l,uuidWrapper:s,wrapperRef:a}),o(),{uuidWrapper:s,uuidTable:l,contextMenuReactive:i,rTableInst:r,combineRowProps:y,contextMenuSelect:f,privateReactive:u,tool:b,wrapperRef:a,propsPopselectValue:c}},render(){const{$props:e,$attrs:t,wrapperBordered:o,uuidWrapper:n,privateReactive:r,disabledContextMenu:a,contextMenuReactive:s,contextMenuOptions:l,uuidTable:i,title:u,$slots:c,propsPopselectValue:f,renderWrapperHeader:y}=this,{class:m}=t,{tool:p,combineRowProps:h,contextMenuSelect:g}=this;return Vue.createVNode(naive.NCard,Vue.mergeProps(e.cardProps,{id:n},{ref:"wrapperRef",bordered:o,class:m}),{default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NDataTable,Vue.mergeProps({id:i},t,e,f,{rowProps:h.bind(this),size:r.size,ref:"rTableInst"}),{...c}),a?null:Vue.createVNode(naive.NDropdown,{show:s.showContextMenu,placement:"bottom-start",trigger:"manual",x:s.x,y:s.y,options:l,onClickoutside:()=>s.showContextMenu=!1,onSelect:g.bind(this)},null)]),header:y?Q(u,{defaultElement:Vue.createVNode("div",{style:"display: none;"},null)}):null,"header-extra":p(e),footer:()=>{var b;return(b=c.tableFooter)==null?void 0:b.call(c)},action:()=>{var b;return(b=c.tableAction)==null?void 0:b.call(c)}})}}),ss=()=>{const e=Vue.ref();let t={};const o=(m,p)=>{m&&(e.value=m,t=p)},n=()=>{if(!e.value)throw new Error("[useTable]: table instance is not ready yet. if you are using useTable, please make sure you have called register method in onRegister event.");return e.value};return[o,{getTableInstance:n,clearFilters:()=>n().clearFilters.call(null),clearSorter:()=>n().clearSorter.call(null),downloadCsv:m=>n().downloadCsv.call(null,m),filters:m=>n().filters.call(null,m),page:m=>n().page.call(null,m),scrollTo:m=>n().scrollTo(m),sort:(m,p)=>n().sort.call(null,m,p),print:m=>{const{uuidWrapper:p}=t;if(p){const h=document.getElementById(p);gt(h,m)}},filter:m=>n().filter.call(null,m)}]},Lo=(e,t,o)=>{var n;if(e.length)for(const r of e){if(r[t]===o)return r;if((n=r==null?void 0:r.children)!=null&&n.length){const a=Lo(r.children,t,o);if(a)return a}}},nt=e=>{const t=Vue.unref(e);return t?t.findIndex(n=>{const{type:r,multiple:a}=n;if(r==="selection"&&(a==null||a===!0))return!0})!==-1:!0},br=(e,t,o,n)=>{const r=Vue.unref(e);return r?t.reduce((a,s)=>{const l=Vue.unref(o).findIndex(u=>u[n]===s);if(l!==-1)return a.push(Vue.unref(o)[l]),a;const i=r.findIndex(u=>u[n]===s);return i!==-1&&a.push(r[i]),a},[]):o},is=(e,t,o)=>{const n=Vue.ref([]),r=Vue.ref([]),{rowKey:a="key",onChange:s}=o||{},l=Vue.computed(()=>nt(t)),i=(p,h,g)=>{n.value=p,r.value=Vue.unref(br(e,p,r,a)),s==null||s(p,r.value,g),nt(t)},u=()=>n.value,c=()=>r.value,f=()=>{n.value=[],r.value=[],s==null||s(n.value,r.value,{row:void 0,action:"uncheckAll"})},y=p=>{if(p==null)return;let h;n.value=n.value.filter(g=>g!==p),r.value=r.value.filter(g=>g[a]===p?(h=g,!1):!0),s==null||s(n.value,r.value,{row:h,action:"uncheck"})},m=p=>{if(n.value.includes(p))return;const h=!l.value&&n.value.length>=1,g=Lo(Vue.unref(e)||[],a,p);h?n.value=[p]:n.value.push(p),g&&(h?r.value=[g]:r.value.push(g),s==null||s(n.value,r.value,{row:g,action:"check"}))};return Ue(()=>{f()}),[n,{checkedRows:r,checkedRowKeysBind:i,getKeys:u,getRows:c,clearAll:f,clearKey:y,selectKey:m}]},vr={transitionPropName:"fade",transitionMode:"out-in",transitionAppear:!0},Vr=Vue.defineComponent({name:"RTransitionComponent",__name:"index",props:Vue.mergeDefaults({transitionPropName:{},transitionMode:{},transitionAppear:{type:Boolean}},vr),setup(e){const{getKeepAliveInclude:t}=Er(),{setupKeepAlive:o,maxKeepAliveLength:n,keepAliveExclude:r}=Vt;return(a,s)=>{const l=Vue.resolveComponent("RouterView");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(l,null,{default:Vue.withCtx(({Component:i,route:u})=>[i?(Vue.openBlock(),Vue.createBlock(Vue.Transition,{key:0,name:a.transitionPropName,mode:a.transitionMode,appear:a.transitionAppear},{default:Vue.withCtx(()=>[(Vue.openBlock(),Vue.createBlock(Vue.Suspense,null,{default:Vue.withCtx(()=>[Vue.unref(o)?(Vue.openBlock(),Vue.createBlock(Vue.KeepAlive,{key:0,max:Vue.unref(n),include:Vue.unref(t),exclude:Vue.unref(r)},[(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(i),{key:u.fullPath}))],1032,["max","include","exclude"])):(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(i),{key:u.fullPath}))]),_:2},1024))]),_:2},1032,["name","mode","appear"])):Vue.createCommentVNode("",!0)]),_:1})])}}}),Sr={...naive.formProps,onRegister:{type:[Function,Array],default:null}},cs=Vue.defineComponent({name:"RForm",props:Sr,setup(e,{expose:t}){const o=Vue.ref();return Vue.onMounted(()=>{const{onRegister:n}=e;n&&o.value&&R(n,o.value)}),t(),{formRef:o}},render(){const{$attrs:e,$props:t,$slots:o}=this;return Vue.createVNode(naive.NForm,Vue.mergeProps(e,t,{ref:"formRef"}),{...o})}}),us=(e,t)=>{const o=Vue.ref(),n=u=>{u&&(o.value=u)},r=()=>{if(!o.value)throw new Error("[useForm]: form instance is not ready yet. if you are using useForm, please make sure you have called register method in onRegister event.");return o.value};return[n,{getFormInstance:r,validate:(u,c)=>r().validate.call(null,u,c),restoreValidation:()=>r().restoreValidation.call(null),formModel:()=>ye(e)||{},formRules:()=>ye(t)||{}}]},_r=["addTabClass","addTabStyle","paneClass","paneStyle","paneWrapperStyle","tabClass","tabStyle","type","label","addable","closable","onAdd","onClose","placement","animated","justifyContent","builtinThemeOverrides","displayDirective"],wr={tabPaddingSmallSegment:"4px 7px",tabPaddingMediumSegment:"6px 11px",tabPaddingLargeSegment:"8px 11px"},Cr=We({...naive.tabsProps,options:{type:Array,default:()=>[]},width:{type:[Number,String],default:"fitContent"}},..._r);function Tr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const $e=e=>{const{icon:t,label:o}=e;return t?Vue.createVNode(naive.NFlex,{align:"center",wrap:!1,size:"small"},{default:()=>[Vue.createVNode(t,null,null),Vue.createVNode("div",null,[o])]}):o},Nr=e=>{if(typeof e.popover=="string")return Vue.createVNode(naive.NPopover,null,{trigger:()=>$e(e),default:()=>e.popover});if(q(e.popover,"Object")){const{popover:t}=e,{label:o,...n}=t;return Vue.createVNode(naive.NPopover,n,{trigger:()=>$e(e),default:()=>o})}},ds=Vue.defineComponent({name:"RSegment",props:Cr,setup(e,{expose:t}){const o=Vue.computed(()=>{const{width:n}=e;let r="";switch(n){case"block":r="100%";break;case"fitContent":r="fit-content";break;default:r=typeof n=="number"?L(n):"fit-content"}return{"--r-segment-width":r}});return t(),{cssVars:o}},render(){let e;const{$props:t,options:o,cssVars:n,themeOverrides:r}=this;return Vue.createVNode(naive.NTabs,Vue.mergeProps(t,{ref:"segmentRef",style:[n],class:"r-segment",type:"segment",animated:!0,themeOverrides:Object.assign({},wr,r)}),Tr(e=o.map(a=>Vue.createVNode(naive.NTab,{key:a.key,name:a.key,tab:a.popover?Nr(a):$e(a),disabled:a.disabled},{...a.slots})))?e:{default:()=>[e]})}}),Or={width:{type:[String,Number],default:"auto"},height:{type:[String,Number],default:"auto"},loading:{type:Boolean,default:!1},barcodeRender:{type:String,default:"canvas",validator:e=>["canvas","svg"].includes(e)},text:{type:String},options:{type:Object,default:()=>({})},format:{type:String,default:()=>"CODE128"},watchText:{type:Boolean,default:!0},onSuccess:{type:[Function,Array]},onError:{type:[Function,Array]},onFinally:{type:[Function,Array]}},ps=Vue.defineComponent({name:"RBarcode",props:Or,setup(e){const t=Vue.ref(),o=Vue.computed(()=>({"--r-barcode-width":L(e.width),"--r-barcode-height":L(e.height)}));let n;const r=()=>{try{const{format:a,text:s,options:l,onSuccess:i}=e,u=Object.assign({},l,{format:a});JsBarcode(t.value,s!=null?s.toString():"",u),i&&R(i,s,a,l)}catch(a){const{onError:s}=e;s&&R(s,a)}finally{const{onFinally:a}=e;a&&R(a)}};return Vue.watchEffect(()=>{e.watchText?n=Vue.watch(()=>e.text,r):n==null||n()}),Vue.onMounted(()=>{r()}),Vue.onBeforeUnmount(()=>{n==null||n()}),{barcodeRef:t,cssVars:o}},render(){const{barcodeRender:e,loading:t,cssVars:o}=this,n=["r-barcode",{"r-barcode--loading":t}];return Vue.createVNode(naive.NSpin,{class:"r-barcode-spin",show:t},{default:()=>[e==="canvas"?Vue.createVNode("canvas",{class:n,style:o,ref:"barcodeRef"},null):Vue.createVNode("svg",{class:n,style:o,ref:"barcodeRef"},null)]})}});var kr={pkg:{dependencies:{"@vueuse/core":"^10.9.0",axios:"^1.7.5",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.39.0",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.38","vue-demi":"0.14.6","vue-hooks-plus":"2.2.1","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.0","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-with-include":"1.2.2",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.17.5","unplugin-vue-components":"^0.26.0",vite:"^5.4.1","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.0.11"},name:"ray-template",version:"4.9.4"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const xr=(e,t,o)=>!e||typeof e!="object"?!1:e[t]===o,Eo=(e,t,o)=>{const n=[];if(xr(e,t,o))return n.push(e),n;if(e.children&&e.children.length>0)for(const r of e.children){const a=Eo(r,t,o);a.length>0&&n.push(e,...a)}return n},Rr=(e,t,o)=>{const n=[];for(const r of e){const a=Eo(r,t,o);a.length>0&&n.push(...a)}return n},at=e=>{const{breadcrumbLabel:t}=e;if(!t)return;const{layout:{sideBarLogo:o}}=kr,n=o?o.title:"";document.title=t+" - "+n},Ar=e=>{const{meta:{icon:t}}=e;if(!t)return;if(q(t,"Object"))return()=>t;const o=Vue.h(N,{name:t,size:H.menuCollapsedIconSize,cursor:"pointer"},{});return()=>o},zo=e=>{const{meta:{extra:t}}=e;if(!t)return;const{show:o}=t;if(o===!1)return;const{t:n}=le(),{label:r,icon:a,type:s,i18nLabel:l}=t,i={type:"primary",size:"small",round:!0,bordered:!1,strong:!0},u=()=>l?n(l):r||null,c=()=>a&&(l||r)||!a&&(l||r)?null:{"padding-right":"0"};if(q(t,"Object"))return()=>Vue.h(naive.NTag,{...i,type:s||"primary",style:c()},{default:()=>u(),icon:()=>a})},rt=()=>{const{getRootPath:e}=te();return re(E.appMenuKey,"sessionStorage",{defaultValue:e.value})},Io=()=>Ba(Da()),Pr=()=>Fa(Io()),Fe=["redirect","breadcrumbLabel","children","key","meta","name","path","show","fullPath"];let me;const jo=(e,t)=>{var o;if(me&&Ze(me.fullPath,t))return me;for(const n of e){if(Ze(n.fullPath,t))return me=n,n;if((o=n.children)!=null&&o.length){jo(n.children,t);continue}}},Do=Pinia.defineStore("menu",()=>{const{push:e,getRoutes:t}=VueRouter.useRouter(),o=VueRouter.useRoute(),{t:n}=le(),{setKeepAliveInclude:r}=zr(),a=Vue.reactive({menuKey:rt(),options:[],collapsed:!1,menuTagOptions:[],breadcrumbOptions:[],currentMenuOption:null}),s=Vue.ref(!0),l=(d,V)=>{Object.hasOwn(a,d)&&(a[d]=V)},i=d=>{const{meta:V}=d,{i18nKey:S,noLocalTitle:O}=V,v=Vue.computed(()=>S?n(`${S}`):O),w={...d,key:d.fullPath,label:()=>Vue.h(naive.NEllipsis,null,{default:()=>v.value}),breadcrumbLabel:v.value},x=Object.assign({},w,{icon:Ar(d),extra:zo(d)});return d.fullPath===rt()&&(a.currentMenuOption=x),x.show=Ct(x),x},u=d=>{a.breadcrumbOptions=Rr(a.options,"fullPath",d)},c=(d,V=!0)=>{const O=Array.isArray(d)?[...d]:[d];V?a.menuTagOptions.push(...O):a.menuTagOptions=O},f=(d,V)=>{a.menuTagOptions.find(O=>O.fullPath===d)||a.menuTagOptions.push(V)},y=(d,V,S)=>{const{meta:O}=V;if(O.windowOpen)window.open(O.windowOpen);else{e({path:String(d),query:S});const{sameLevel:v}=O;if(r(V),at(V),!v)f(d,V),u(d),a.menuKey=d,a.currentMenuOption=V,Ke(E.appMenuKey,d);else{const w=ne(i(V),Fe);a.breadcrumbOptions.find(C=>C.key===w.key)||a.breadcrumbOptions.push({...w,fullPath:String(w.key)})}}},m=async(d,V)=>{const[S]=d.split("?"),O=t().find(v=>v.path===S);if(O){const v=ne(O,Fe);y(S,i({...v,fullPath:v.path}),V)}},p=()=>new Promise(d=>{const V=(S,O)=>{var w;const v=[];for(const x of S){let C=`${O.endsWith("/")?O:O+"/"}${x.path}`;if(C=C.replace(/\/+/g,"/"),(w=x.children)!=null&&w.length)x.children=V(x.children,C);else if(!Bo(x.meta))continue;v.push(i({...x,fullPath:C}))}return v};if(a.options=V(Io(),""),a.currentMenuOption){const{currentMenuOption:S}=a;a.breadcrumbOptions.length||u(S.key),f(S.fullPath,S),at(S)}d()}),h=d=>a.collapsed=d,g=(d,V=1)=>a.menuTagOptions.splice(d,V),b=async()=>{s.value&&(await p(),s.value=!1)};return Vue.watch(()=>o.fullPath,async(d,V)=>{await b(),d!==V&&await m(d,o.query)},{immediate:!0}),{...Vue.toRefs(a),changeMenuModelValue:y,collapsedMenu:h,spliceMenTagOptions:g,setMenuTagOptions:c,resolveOption:i,updateMenuState:l}},{persist:{key:E.appPiniaMenuStore,storage:window.localStorage,paths:["breadcrumbOptions","menuKey","menuTagOptions","collapsed"]}}),$o=Pinia.defineStore("signing",()=>{const e=Vue.reactive({signingCallback:{}}),t=n=>new Promise((r,a)=>{pt(n)?a({code:1,message:"登陆失败",data:null}):(e.signingCallback={role:"admin",name:n.name,avatar:"https://avatars.githubusercontent.com/u/51957438?v=4"},r({code:0,message:"登陆成功",data:e.signingCallback}))}),o=()=>{const{closeAll:n}=qo(),{appPiniaMenuStore:r,appPiniaSigningStore:a}=E;window.$message.info("账号退出中..."),Oe("__all_sessionStorage__","sessionStorage"),Oe(r,"localStorage"),Oe(a,"localStorage"),n(),setTimeout(()=>window.location.reload())};return{...Vue.toRefs(e),signing:t,logout:o}},{persist:{key:E.appPiniaSigningStore,paths:["signingCallback"],storage:window.localStorage}}),Fo=Pinia.defineStore("keepAlive",()=>{const{maxKeepAliveLength:e}=Vt,t=Vue.reactive({keepAliveInclude:[]}),o=()=>t.keepAliveInclude.length,n=a=>{const s=o(),{name:l,meta:{keepAlive:i}}=a;if(i){if(s=e&&(t.keepAliveInclude.splice(0,1),t.keepAliveInclude.push(l))}},r=()=>t.keepAliveInclude;return{...Vue.toRefs(t),setKeepAliveInclude:n,getKeepAliveInclude:r}},{persist:{key:E.appPiniaKeepAliveStore,storage:window.sessionStorage,paths:["keepAliveInclude"]}}),Y=()=>{const e=Do(),t=Vue.computed(()=>e.options),o=Vue.computed(()=>e.breadcrumbOptions),n=Vue.computed(()=>e.menuKey),r=Vue.computed(()=>{const{getRootPath:l}=te();return e.menuTagOptions.map((i,u,c)=>(i.key===n.value&&i.key!==l.value?i.closeable=!0:i.closeable=!1,i.key===l.value&&(i.closeable=!1),c.length<=1&&(i.closeable=!1),i))}),a=Vue.computed(()=>e.currentMenuOption),s=Vue.computed(()=>e.collapsed);return{getMenuOptions:t,getBreadcrumbOptions:o,getMenuKey:n,getMenuTagOptions:r,getCurrentMenuOption:a,getCollapsed:s}},ie=()=>{const{changeMenuModelValue:e,collapsedMenu:t,spliceMenTagOptions:o,setMenuTagOptions:n,resolveOption:r,updateMenuState:a}=Do();return{changeMenuModelValue:e,collapsedMenu:t,spliceMenTagOptions:o,setMenuTagOptions:n,resolveOption:r,updateMenuState:a}},j=()=>{const e=Tt(),t=Vue.computed(()=>e.drawerPlacement),o=Vue.computed(()=>e.primaryColorOverride),n=Vue.computed(()=>e.appTheme),r=Vue.computed(()=>e.menuTagSwitch),a=Vue.computed(()=>e.breadcrumbSwitch),s=Vue.computed(()=>e.localeLanguage),l=Vue.computed(()=>e.lockScreenSwitch),i=Vue.computed(()=>e.copyrightSwitch),u=Vue.computed(()=>e.contentTransition),c=Vue.computed(()=>e.watermarkSwitch),f=Vue.computed(()=>e.watermarkConfig),y=Vue.computed(()=>e.appRootRoute),m=Vue.computed(()=>e.sideBarLogo);return{getDrawerPlacement:t,getPrimaryColorOverride:o,getAppTheme:n,getMenuTagSwitch:r,getBreadcrumbSwitch:a,getLocaleLanguage:s,getLockScreenSwitch:l,getCopyrightSwitch:i,getContentTransition:u,getWatermarkSwitch:c,getWatermarkConfig:f,getAppRootRoute:y,getSideBarLogo:m}},I=()=>{const{updateLocale:e,changePrimaryColor:t,updateSettingState:o}=Tt();return{updateLocale:e,changePrimaryColor:t,updateSettingState:o}},Mr=()=>{const e=$o();return{getSigningCallback:Vue.computed(()=>e.signingCallback)}},Lr=()=>{const{signing:e,logout:t}=$o();return{signing:e,logout:t}},Er=()=>{const e=Fo();return{getKeepAliveInclude:Vue.computed(()=>e.keepAliveInclude)}},zr=()=>{const{setKeepAliveInclude:e,getKeepAliveInclude:t}=Fo();return{setKeepAliveInclude:e,getKeepAliveInclude:t}},ms=e=>{const t=Pinia.createPinia();e.use(t),t.use(mn)},Bo=e=>{const{getSigningCallback:t}=Mr(),{role:o}=e;return pe!=null&&pe.length&&pe.includes(t.value.role)||!o||!(o!=null&&o.length)?!0:o?o.includes(t.value.role):!0},Ir=e=>{const{setupRouterLoadingBar:t,setupRouterGuard:o}=Un;t&&Ua(e),o&&Wa(e)},jr=Vue.ref(),Dr=Vue.defineComponent({name:"SiderBarLogo",props:{collapsed:{type:Boolean,required:!0}},setup(){const e=VueRouter.useRouter(),{getSideBarLogo:t}=j();return{sideBarLogo:t,sideBarLogoClick:()=>{t.value&&t.value.url&&(t.value.jumpType==="station"?e.push(t.value.url):window.open(t.value.url))},TemplateLogo:({cursor:r})=>{if(!t.value)return null;if(typeof t.value.icon=="string")return Vue.createVNode(N,{name:t.value.icon,size:"30",cursor:r},null);if(q(t.value.icon,"Object"))return Q(t.value.icon)}}},render(){const{sideBarLogo:e,collapsed:t,TemplateLogo:o,sideBarLogoClick:n}=this;return e!=null&&e.title?Vue.createVNode("div",{class:["ray-menu__logo",e!=null&&e.url?"ray-menu__logo-url":null],onClick:n.bind(this),ref:jr},[e!=null&&e.icon?t?Vue.createVNode(naive.NTooltip,{placement:"right"},{trigger:()=>o({cursor:"pointer"}),default:()=>e.title}):o({cursor:"pointer"}):t?Vue.createVNode(naive.NTooltip,{placement:"right"},{trigger:()=>{var r;return Vue.createVNode("h1",{class:"n-menu-item-content"},[((r=e.title)==null?void 0:r[0])||null])},default:()=>e.title}):null,Vue.createVNode("h1",{class:[t?null:"ray-menu__logo-title--open","ray-menu__logo-title",'class="n-menu-item-content"']},[Vue.createVNode(naive.NEllipsis,null,{default:()=>[e.title]})])]):null}}),$r=Vue.defineComponent({name:"AppMenu",setup(){const e=Vue.ref(null),{changeMenuModelValue:t,collapsedMenu:o,updateMenuState:n}=ie(),{getMenuOptions:r,getCollapsed:a,getMenuKey:s}=Y(),l=Vue.computed({get:()=>(Vue.nextTick().then(()=>{c()}),s.value),set:()=>{i.value&&U("globalDrawerValue",!1)}}),{isTabletOrSmaller:i}=we({observer:y=>{y&&n("collapsed",!1)}}),u=Vue.computed({get:()=>_e("globalDrawerValue").value,set:y=>{U("globalDrawerValue",y)}}),c=()=>{const y=l.value;y!=null&&Vue.nextTick(()=>{var m,p;return(p=(m=e.value)==null?void 0:m.showOption)==null?void 0:p.call(m,y)})};return{isTabletOrSmaller:i,BasicMenu:()=>Vue.createVNode(naive.NLayoutSider,{class:"app-menu__sider",showTrigger:!i.value,collapseMode:H.menuCollapsedMode,collapsedWidth:H.menuCollapsedWidth,onUpdateCollapsed:o.bind(this),nativeScrollbar:!1,ref:_t,collapsed:a.value,onExpand:()=>{n("collapsed",!1)},onCollapse:()=>{n("collapsed",!0)}},{default:()=>[Vue.createVNode(Dr,{collapsed:a.value},null),Vue.createVNode(naive.NMenu,{ref:e,class:"r-menu--app",keyField:"fullPath",value:l.value,"onUpdate:value":y=>l.value=y,options:r.value,indent:H.menuCollapsedIndent,collapsed:a.value,collapsedIconSize:H.menuCollapsedIconSize,collapsedWidth:H.menuCollapsedWidth,onUpdateValue:(y,m)=>{t(y,m)},accordion:H.menuAccordion},null)]}),modelGlobalDrawerValue:u}},render(){const{isTabletOrSmaller:e,BasicMenu:t}=this;return e?Vue.createVNode(naive.NDrawer,{class:"app-menu__drawer",show:this.modelGlobalDrawerValue,"onUpdate:show":o=>this.modelGlobalDrawerValue=o,placement:"left",displayDirective:"show",autoFocus:!1},{default:()=>[Vue.createVNode(t,null,null)]}):Vue.createVNode(t,null,null)}});class Fr{constructor(){Xe(this,"pendingRequest");this.pendingRequest=new Map}isAppending(t){var o;return((o=t.cancelConfig)==null?void 0:o.cancel)??!0}generateRequestKey(t){const{method:o,url:n}=t;return[n||"",o||"",JSON.stringify(t.params),JSON.stringify(t.data)].join("&")}addPendingRequest(t){var o;if(this.isAppending(t)){t.__CANCELER_TAG_RAY_TEMPLATE__="__CANCELER_TAG_RAY_TEMPLATE__";const n=this.generateRequestKey(t);if(this.pendingRequest.has(n))t.signal=(o=this.pendingRequest.get(n))==null?void 0:o.signal;else{const r=new AbortController;t.signal=r.signal,this.pendingRequest.set(n,r)}}}removePendingRequest(t){const o=this.generateRequestKey(t);this.pendingRequest.has(o)&&(this.pendingRequest.get(o).abort(),this.pendingRequest.delete(o))}cancelAllRequest(){this.pendingRequest.forEach(t=>{t.abort()})}}const Re={requestInstance:null,responseInstance:null},Ae={implementRequestInterceptorArray:[],implementResponseInterceptorArray:[]},fe={implementRequestInterceptorErrorArray:[],implementResponseInterceptorErrorArray:[]},Br=new Fr,fs=()=>{const e=(l,i)=>{i==="requestInstance"?Re.requestInstance=l:Re.responseInstance=l},t=l=>Re[l],o=(l,i,u)=>{u==="ok"?Ae[l]=i:fe[l]=i},n=(l,i)=>i==="ok"?Ae[l]:fe[l],r=(l,...i)=>{Array.isArray(l)&&l.forEach(u=>{typeof u=="function"&&u(...i)})};return{createAxiosInstance:e,setImplement:o,getImplement:n,getAxiosInstance:t,beforeFetch:(l,i,u)=>{const c=u==="ok"?Ae[i]:fe[i],f=t(l),{MODE:y}=je();f&&r(c,f,y)},fetchError:(l,i,u)=>{const c=fe[u],{MODE:f}=je();r(c,i,f)}}},Wr=Vue.defineComponent({name:"AppRequestCancelerProvider",setup(e,{expose:t}){VueRouter.onBeforeRouteUpdate(()=>{Br.cancelAllRequest()}),t()},render(){return Vue.createVNode("div",{class:"app-style-provider"},null)}}),Wo=Vue.defineComponent({name:"LayoutContentWrapper",setup(){VueRouter.useRouter();const{maximize:e}=Ko(),{getContentTransition:t}=j(),o=Vue.ref(!1),n={opacitySpinning:"0"},{globalMainLayoutLoad:r,layoutContentMaximize:a,layoutContentSpinning:s}=Gn();return{globalMainLayoutLoad:r,spinning:o,themeOverridesSpin:n,getContentTransition:t,layoutContentMaximize:a,maximize:e,layoutContentSpinning:s}},render(){const{globalMainLayoutLoad:e,layoutContentMaximize:t,layoutContentSpinning:o,maximize:n,spinning:r,themeOverridesSpin:a,getContentTransition:s}=this;return Vue.createVNode(naive.NSpin,{show:r||!e||o,description:"loading...",size:"large",themeOverrides:a,class:[t?"r-layout-full__viewer-content--maximize":null,"r-layout-full__viewer-content--maximize--light","r-layout-full__viewer-content--maximize--dark"]},{default:()=>[t?Vue.createVNode("div",{class:"layout-content__maximize-out",onClick:()=>{n(!1)}},[Vue.createVNode(N,{name:"out",size:"16",cursor:"pointer"},null)]):null,Vue.createVNode(Wr,null,null),e?Vue.createVNode(Vr,{class:"content-wrapper",transitionPropName:s+"-transform"},null):null]})}}),Kr=Object.freeze(Object.defineProperty({__proto__:null,default:Wo},Symbol.toStringTag,{value:"Module"}));var Ur={pkg:{dependencies:{"@vueuse/core":"^10.9.0",axios:"^1.7.5",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.39.0",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.38","vue-demi":"0.14.6","vue-hooks-plus":"2.2.1","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.0","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-with-include":"1.2.2",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.17.5","unplugin-vue-components":"^0.26.0",vite:"^5.4.1","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.0.11"},name:"ray-template",version:"4.9.4"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const qr=Vue.defineComponent({name:"LayoutFooterWrapper",setup(){const{layout:{copyright:e}}=Ur;return{copyright:e}},render(){return this.copyright?Vue.createVNode("div",{class:"layout-footer-wrapper"},[this.copyright]):""}}),Gr=Vue.defineComponent({name:"TooltipIcon",props:{...naive.tooltipProps,iconName:{type:String,required:!0},customClassName:{type:String,default:null},tooltipText:{type:String,default:null}},emits:["click"],setup(e,{emit:t}){const o=r=>{t("click",r)};return{iconClick:o,Icon:()=>Vue.createVNode(N,{name:e.iconName,size:"18",customClassName:`tooltip-text__icon ${e.customClassName}`,cursor:"pointer",onClick:o.bind(this)},null)}},render(){const{Icon:e}=this;return this.tooltipText?Vue.createVNode(naive.NTooltip,this.$props,{trigger:()=>Vue.createVNode(e,null,null),default:()=>this.tooltipText}):Vue.createVNode(e,null,null)}}),Hr=Vue.defineComponent({name:"ThemeSwitch",setup(){const{darkTheme:e,lightTheme:t}=Uo(),{getAppTheme:o}=j(),n=Vue.ref(o.value);return{darkTheme:e,lightTheme:t,getAppTheme:o,railStyle:({checked:a})=>a?{backgroundColor:"#000000"}:{color:"#000000"},modelAppThemeRef:n}},render(){const{$t:e,darkTheme:t,lightTheme:o,railStyle:n}=this;return Vue.createVNode(naive.NFlex,{justify:"center"},{default:()=>[Vue.createVNode(naive.NTooltip,null,{trigger:()=>Vue.createVNode(naive.NSwitch,{value:this.modelAppThemeRef,"onUpdate:value":r=>this.modelAppThemeRef=r,railStyle:n.bind(this),onUpdateValue:r=>r?t():o()},{"checked-icon":()=>Vue.createVNode(N,{name:"dark"},null),"unchecked-icon":()=>Vue.createVNode(N,{name:"light"},null),checked:()=>"亮",unchecked:()=>"暗"}),default:()=>this.getAppTheme?e("headerSettingOptions.ThemeOptions.Dark"):e("headerSettingOptions.ThemeOptions.Light")})]})}});function he(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Yr=Vue.defineComponent({name:"SettingDrawer",props:{show:{type:Boolean,default:!1},placement:{type:String,default:"right"},width:{type:Number,default:280}},emits:["update:show"],setup(e,{emit:t}){const{changePrimaryColor:o,updateSettingState:n}=I(),{getAppTheme:r,getPrimaryColorOverride:a,getMenuTagSwitch:s,getBreadcrumbSwitch:l,getCopyrightSwitch:i,getContentTransition:u,getWatermarkSwitch:c}=j(),f=Vue.computed({get:()=>e.show,set:m=>{t("update:show",m)}}),y=Vue.computed({get:()=>({getMenuTagSwitch:s.value,getBreadcrumbSwitch:l.value,getCopyrightSwitch:i.value,getContentTransition:u.value,getWatermarkSwitch:c.value}),set:m=>{}});return{modelShow:f,changePrimaryColor:o,getAppTheme:r,getPrimaryColorOverride:a,updateSettingState:n,modelSwitchReactive:y}},render(){let e,t,o,n;const{$t:r,changePrimaryColor:a,updateSettingState:s}=this;return Vue.createVNode(naive.NDrawer,{show:this.modelShow,"onUpdate:show":l=>this.modelShow=l,placement:this.placement,width:this.width},{default:()=>[Vue.createVNode(naive.NDrawerContent,{title:r("headerSettingOptions.Title")},{default:()=>[Vue.createVNode(naive.NFlex,{class:"setting-drawer__space",vertical:!0},{default:()=>[Vue.createVNode(naive.NDivider,{titlePlacement:"center"},he(e=r("headerSettingOptions.ThemeOptions.Title"))?e:{default:()=>[e]}),Vue.createVNode(Hr,null,null),Vue.createVNode(naive.NDivider,{titlePlacement:"center"},he(t=r("headerSettingOptions.ThemeOptions.PrimaryColorConfig"))?t:{default:()=>[t]}),Vue.createVNode(naive.NColorPicker,{swatches:$.appThemeColors,value:this.getPrimaryColorOverride.common.primaryColor,"onUpdate:value":l=>this.getPrimaryColorOverride.common.primaryColor=l,onUpdateValue:a.bind(this)},null),Vue.createVNode(naive.NDivider,{titlePlacement:"center"},he(o=r("headerSettingOptions.ContentTransition"))?o:{default:()=>[o]}),Vue.createVNode(naive.NSelect,{value:this.modelSwitchReactive.getContentTransition,"onUpdate:value":l=>this.modelSwitchReactive.getContentTransition=l,options:$n,onUpdateValue:l=>{s("contentTransition",l)}},null),Vue.createVNode(naive.NDivider,{titlePlacement:"center"},he(n=r("headerSettingOptions.InterfaceDisplay"))?n:{default:()=>[n]}),Vue.createVNode(naive.NDescriptions,{labelPlacement:"left",column:1},{default:()=>[Vue.createVNode(naive.NDescriptionsItem,{label:"多标签"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.modelSwitchReactive.getMenuTagSwitch,"onUpdate:value":l=>this.modelSwitchReactive.getMenuTagSwitch=l,onUpdateValue:l=>s("menuTagSwitch",l)},null)]}),Vue.createVNode(naive.NDescriptionsItem,{label:"面包屑"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.modelSwitchReactive.getBreadcrumbSwitch,"onUpdate:value":l=>this.modelSwitchReactive.getBreadcrumbSwitch=l,onUpdateValue:l=>s("breadcrumbSwitch",l)},null)]}),Vue.createVNode(naive.NDescriptionsItem,{label:"水印"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.modelSwitchReactive.getWatermarkSwitch,"onUpdate:value":l=>this.modelSwitchReactive.getWatermarkSwitch=l,onUpdateValue:l=>s("watermarkSwitch",l)},null)]}),Vue.createVNode(naive.NDescriptionsItem,{label:"版权信息"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.modelSwitchReactive.getCopyrightSwitch,"onUpdate:value":l=>this.modelSwitchReactive.getCopyrightSwitch=l,onUpdateValue:l=>s("copyrightSwitch",l)},null)]})]})]})]})]})}});function Xr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Zr=Vue.defineComponent({name:"SiderBarBreadcrumb",setup(){const{changeMenuModelValue:e}=ie(),{getBreadcrumbOptions:t}=Y(),{isTabletOrSmaller:o}=we();return{getBreadcrumbOptions:t,dropdownSelect:(a,s)=>{e(a,s)},breadcrumbItemClick:a=>{var s;if(!((s=a.children)!=null&&s.length)){const{meta:l={}}=a;l.sameLevel||e(a.fullPath,a)}},isTabletOrSmaller:o}},render(){let e;const{isTabletOrSmaller:t,getBreadcrumbOptions:o}=this,{dropdownSelect:n,breadcrumbItemClick:r}=this;return t?Vue.createVNode("div",{style:"display: none;"},null):Vue.createVNode(naive.NBreadcrumb,null,{default:()=>[Vue.createVNode(Vue.TransitionGroup,{tag:"li",name:"breadcrumb",appear:!0},Xr(e=o.map(a=>Vue.createVNode(naive.NBreadcrumbItem,{key:a.fullPath,onClick:r.bind(this,a)},{default:()=>{var s;return[Vue.createVNode(naive.NDropdown,{labelField:"breadcrumbLabel",keyField:"fullPath",options:a.children&&((s=a.children)==null?void 0:s.length)>1?a.children:[],onSelect:n.bind(this)},{default:()=>Vue.createVNode("span",null,[a.label&&typeof a.label=="function"?a.label():a.breadcrumbLabel])})]}})))?e:{default:()=>[e]})]})}});function Pe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Jr=Vue.defineComponent({name:"GlobalSearch",props:{show:{type:Boolean,default:!1}},emits:["update:show"],setup(e,{emit:t}){const{changeMenuModelValue:o,resolveOption:n}=ie(),{getRoutes:r}=VueRouter.useRouter(),a=Vue.computed({get:()=>e.show,set:v=>{t("update:show",v),v||m()}}),s=Vue.reactive({searchValue:null,searchOptions:[]}),l=[{icon:["↑","↓"],label:"切换",plain:!0},{icon:["↵"],label:"选择",plain:!0},{icon:["esc"],label:"关闭",plain:!0}];let i=0,u=i;const{isTabletOrSmaller:c}=we(),f=Vue.ref(!1),y="content-item--active",m=()=>{s.searchOptions=[],s.searchValue=null,i=0,u=i},p=v=>{a.value||(v.ctrlKey||v.metaKey)&&v.key==="k"&&(v.preventDefault(),v.stopPropagation(),m(),a.value=!0)},h=v=>{if(v)f.value=!0;else{f.value=!1,s.searchOptions=[];return}const w=r().reduce((x,C)=>{var B;const M=ne(C,["children","meta","path","name"]),P=n({...M,fullPath:C.path}),{breadcrumbLabel:D}=P;return(B=D==null?void 0:D.toLocaleLowerCase())!=null&&B.includes(v.toLocaleLowerCase())&&Ct(P)&&x.push(P),x},[]);setTimeout(()=>{s.searchOptions=w,Vue.nextTick().then(()=>{b()}),f.value=!1},500)},g=v=>{if(v){const{meta:w}=v;w.windowOpen?window.open(w.windowOpen):(a.value=!1,o(v.fullPath,v),setTimeout(sn,300))}},b=()=>{const v=s.searchOptions[i],w=s.searchOptions[u];v&&Vue.nextTick().then(()=>{const x=ve(`attr:data_path="${v.path}"`),C=w?ve(`attr:data_path="${w==null?void 0:w.path}"`):null;if(C!=null&&C.length){const[M]=C;cn(M,y)}if(x!=null&&x.length){const[M]=x;ht(M,y)}})},d=v=>{const{icon:w}=v;return typeof w=="string"?Vue.createVNode(N,{name:w,size:"24"},null):typeof w=="function"?()=>w:Vue.createVNode(N,{name:"search",size:"24"},null)},V=v=>{v==="up"&&(i-=1,i<0&&(i=s.searchOptions.length-1)),v==="down"&&(i+=1,i>=s.searchOptions.length&&(i=0))},S=v=>{const w=v.key;switch((w==="ArrowUp"||w==="ArrowDown"||w==="Enter")&&(v.preventDefault(),v.stopPropagation()),u=i<=0?0:i,w){case"ArrowUp":V("up");break;case"ArrowDown":V("down");break;case"Enter":const x=s.searchOptions[i];x&&g(x);break}b()},O=({menuOption:v})=>Vue.createVNode(naive.NFlex,Vue.mergeProps({align:"center",class:"content-item"},{onClick:g.bind(this,v),data_path:v.path}),{default:()=>[Vue.createVNode("div",{class:"content-item-icon"},[d(v.meta)]),Vue.createVNode("div",{class:"content-item-label"},[v.breadcrumbLabel]),Vue.createVNode(N,{name:"enter",size:"18",customClassName:"content-item-icon__enter"},null)]});return Vue.watchEffect(()=>{c.value&&(a.value=!1)}),ae(window,"keydown",v=>{p(v),S(v)},!0),{...Vue.toRefs(s),modelShow:a,helperTipOptions:l,fuzzySearchMenuOptions:Be(h,300),searchItemClick:g,RenderPreIcon:d,isTabletOrSmaller:c,SearchItem:O,loading:f}},render(){const{isTabletOrSmaller:e,searchOptions:t,loading:o}=this,{SearchItem:n,fuzzySearchMenuOptions:r}=this;return e?Vue.createVNode("div",{style:"display: none;"},null):Vue.createVNode(naive.NModal,{show:this.modelShow,"onUpdate:show":a=>this.modelShow=a,transformOrigin:"center",displayDirective:"if"},{default:()=>[Vue.createVNode("div",{class:"global-search global-search--dark global-search--light"},[Vue.createVNode("div",{class:"global-search__wrapper"},[Vue.createVNode(naive.NCard,{class:"global-search__card",headerStyle:{padding:"12px 12px 0 12px"},contentStyle:{padding:"12px"},segmented:{action:"soft"}},{header:()=>Vue.createVNode(naive.NInput,{size:"large",value:this.searchValue,"onUpdate:value":a=>this.searchValue=a,clearable:!0,onInput:r.bind(this)},{prefix:()=>Vue.createVNode(N,{name:"search",size:"24"},null)}),default:()=>{let a;return Vue.createVNode(naive.NScrollbar,null,{default:()=>[Vue.createVNode(naive.NSpin,{show:o},{default:()=>[t.length?Vue.createVNode(naive.NFlex,{vertical:!0,size:[0,6],class:"global-search__card-content"},Pe(a=t.map((s,l)=>Vue.createVNode(n,{menuOption:s,key:s.fullPath},null)))?a:{default:()=>[a]}):Vue.createVNode(naive.NResult,{size:"large",class:"global-search__empty"},{icon:()=>null,default:()=>Vue.createVNode(naive.NFlex,{justify:"center",class:"global-search__empty-content"},{default:()=>[Vue.createVNode(naive.NText,null,{default:()=>[Vue.createTextVNode("没有搜索结果")]})]})})]})]})},action:()=>{let a;return Vue.createVNode(naive.NFlex,{justify:"flex-start",align:"center",size:[16,0]},Pe(a=this.helperTipOptions.map(s=>Vue.createVNode(naive.NFlex,{key:s.label,size:[4,0]},{default:()=>[s.icon.map(l=>Vue.createVNode(naive.NFlex,{class:"item-icon",align:"center",justify:"center"},Pe(l)?l:{default:()=>[l]})),Vue.createVNode(naive.NFlex,{class:"item-label",align:"center"},{default:()=>[s.label]})]})))?a:{default:()=>[a]})}})])])]})}}),Qr=Vue.defineComponent({name:"GlobalSearchButton",props:{onClick:{type:[Function,Array],default:null}},setup(e){return{getShortcutKeyAboutSystem:()=>{const n=un();return n==="MacOS"?"⌘ + K":"CTRL + K"},click:n=>{const{onClick:r}=e;r&&R(r,n)}}},render(){const{getShortcutKeyAboutSystem:e,click:t,$t:o}=this;return Vue.createVNode(naive.NButton,{class:"global-search__btn-wrapper",bordered:!1,onClick:t.bind(this)},{icon:()=>Vue.createVNode(N,{name:"search",size:"16"},null),default:()=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[o("headerTooltip.Search"),Vue.createVNode("div",{class:"global-search-btn__label"},[e()])]})})}}),el=Vue.defineComponent({name:"AppAvatar",props:{...naive.avatarProps,cursor:{type:String,default:"auto"},spaceSize:{type:[String,Number,Array],default:"medium"},avatarSize:{type:[String,Number],default:"medium"},vertical:{type:Boolean,default:!1}},setup(e){return{signing:re(E.signing,"localStorage")}},render(){const{signing:e,avatarSize:t,spaceSize:o,$props:n,vertical:r}=this;return Vue.createVNode(naive.NButton,{quaternary:!0,strong:!0},{default:()=>[Vue.createVNode(naive.NFlex,{align:"center",size:o,vertical:r},{default:()=>[Vue.createVNode(naive.NAvatar,Vue.mergeProps(n,{src:e==null?void 0:e.avatar,objectFit:"cover",round:!0,size:t}),null),e==null?void 0:e.name]})]})}}),tl=()=>[{key:"person",label:"个人信息"},{key:"lockScreen",label:"锁定屏幕"},{type:"divider",key:"d1"},{key:"logout",label:"退出登陆"}],ol={logout:()=>{const{logout:e}=Lr();window.$dialog.warning({title:"提示",content:"您确定要退出登录吗",positiveText:"确定",negativeText:"不确定",onPositiveClick:()=>{e()}})},lockScreen:()=>{const{updateSettingState:e}=I();e("lockScreenSwitch",!0)}},nl=e=>{const t=ol[e];t?t():window.$message.info("这个人很懒, 没做这个功能~")},al=e=>{const{isTabletOrSmaller:t}=e,o=[],n=[{name:"menu",size:18,eventKey:"menu"}];return t.value?n:o},rl=e=>{const{isTabletOrSmaller:t}=e,o=[{name:"fullscreen",size:18,eventKey:"screen"},{name:"github",size:18,eventKey:"github"},{name:"setting",size:18,eventKey:"setting"}],n=[...o],r=[...o];return t.value?r:n},ll=Vue.defineComponent({name:"AppSiderBar",setup(){const{updateLocale:e,updateSettingState:t}=I(),{t:o}=le(),[n,{toggleFullscreen:r,isEnabled:a}]=ft(document.getElementsByTagName("html")[0]),{getDrawerPlacement:s,getBreadcrumbSwitch:l}=j(),i=Vue.ref(!1),u=Vue.ref(!1),{isTabletOrSmaller:c}=we(),f=_e("globalDrawerValue"),y=Vue.computed(()=>al({isFullscreen:n,isTabletOrSmaller:c})),m=Vue.computed(()=>rl({isFullscreen:n,isTabletOrSmaller:c})),p={search:()=>{u.value=!0},setting:()=>{i.value=!0},github:()=>{window.open("https://github.com/XiaoDaiGua-Ray/ray-template")},fullscreen:()=>{a||window.$message.warning(o("globalMessage.isEnabledFullscreen")),r()},lock:()=>{t("lockScreenSwitch",!0)},menu:()=>{U("globalDrawerValue",!f.value)}};return{leftIconOptions:y,rightTooltipIconOptions:m,toolIconClick:b=>{var d;(d=p[b])==null||d.call(p)},showSettings:i,updateLocale:e,getDrawerPlacement:s,getBreadcrumbSwitch:l,globalSearchShown:u,isRenderVNode:b=>c.value?null:b}},render(){const{rightTooltipIconOptions:e,leftIconOptions:t,getDrawerPlacement:o,getBreadcrumbSwitch:n}=this,{toolIconClick:r,updateLocale:a,isRenderVNode:s}=this;return Vue.createVNode(naive.NLayoutHeader,{class:"layout-header"},{default:()=>[Vue.createVNode(Jr,{show:this.globalSearchShown,"onUpdate:show":l=>this.globalSearchShown=l},null),Vue.createVNode(naive.NFlex,{class:"layout-header__method",align:"center",justify:"space-between",wrap:!1},{default:()=>[Vue.createVNode(naive.NFlex,{align:"center",wrap:!1},{default:()=>[t.map(l=>Vue.createVNode(Gr,{key:l.name,iconName:l.name,tooltipText:Vue.isRef(l.tooltip)?l.tooltip.value:l.tooltip,customClassName:l.iconClass,onClick:r.bind(this,l.name)},null)),n?Vue.createVNode(Zr,null,null):null]}),Vue.createVNode(naive.NFlex,{justify:"end",align:"center",size:[4,0],wrap:!1},{default:()=>[s(Vue.createVNode(Qr,{onClick:l=>{l.stopPropagation(),this.globalSearchShown=!0}},null)),e.map(l=>Vue.createVNode(naive.NButton,{class:"override-button__layout",quaternary:!0,size:"medium",key:l.name,onClick:r.bind(this,l.name)},{default:()=>[Vue.createVNode(N,{name:l.name,size:18,cursor:"pointer"},null)]})),Vue.createVNode(naive.NDropdown,{options:St,onSelect:l=>a(String(l)),trigger:"click"},{default:()=>[Vue.createVNode(naive.NButton,{quaternary:!0,class:"override-button__layout"},{default:()=>[Vue.createVNode(N,{customClassName:"layout-header__method--icon",name:"language",size:"18",cursor:"pointer"},null)]})]}),Vue.createVNode(naive.NDropdown,{options:tl(),onSelect:nl.bind(this),trigger:"click"},{default:()=>[Vue.createVNode(el,{avatarSize:24,spaceSize:[8,0],class:"override-button__layout"},null)]})]})]}),Vue.createVNode(Yr,{show:this.showSettings,"onUpdate:show":l=>this.showSettings=l,placement:o},null)]})}}),sl=Vue.defineComponent({name:"LayoutHeaderWrapper",setup(){return{}},render(){return Vue.createVNode(naive.NFlex,{size:[0,0]},{default:()=>[Vue.createVNode(ll,null,null)]})}}),il={xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em","aria-hidden":"true",viewBox:"0 0 24 24"},cl=vt('',1),ul=[cl];function dl(e,t){return bt(),yt("svg",il,[...ul])}const pl={render:dl},ml={xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em","aria-hidden":"true",viewBox:"0 0 24 24"},fl=vt('',1),hl=[fl];function gl(e,t){return bt(),yt("svg",ml,[...hl])}const yl={render:gl};function bl(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const vl=Vue.defineComponent({name:"AppMenuTag",setup(e,{expose:t}){const o=Vue.ref(null),{getMenuKey:n,getMenuTagOptions:r}=Y(),{changeMenuModelValue:a}=ie(),{getRootPath:s}=te(),{maximize:l}=Ko(),{reload:i}=kl(),{close:u,closeAll:c,closeRight:f,closeLeft:y,closeOther:m,checkCloseLeft:p,checkCloseRight:h}=qo(),g=["closeAll","closeRight","closeLeft","closeOther","closeCurrentPage"];let b=1/0;const d={size:16},V=Vue.ref([{label:"刷新页面",key:"reloadCurrentPage",icon:()=>Vue.createVNode(N,{name:"reload",size:d.size},null)},{label:"关闭当前页面",key:"closeCurrentPage",icon:()=>Vue.createVNode(N,{name:"close",size:d.size},null)},{type:"divider",key:"d1"},{label:"关闭左侧标签页",key:"closeLeft",icon:()=>Vue.createVNode(yl,{class:"menu-tag__icon"},null)},{label:"关闭右侧标签页",key:"closeRight",icon:()=>Vue.createVNode(pl,{class:"menu-tag__icon"},null)},{type:"divider",key:"d1"},{label:"关闭其他标签页",key:"closeOther",icon:()=>Vue.createVNode(N,{name:"other",size:d.size},null)},{label:"关闭所有标签页",key:"closeAll",icon:()=>Vue.createVNode(N,{name:"resize_h",size:d.size},null),disabled:!1}]),S=be(16),O={closeCurrentPage:()=>{n.value!==s.value&&u(b)},reloadCurrentPage:()=>{i()},closeAll:()=>{c()},closeRight:()=>{f(b)},closeLeft:()=>{y(b)},closeOther:()=>{m(b)}},v=Vue.reactive({x:0,y:0,actionDropdownShow:!1}),w="menu_tag_data",x=_e("globalMainLayoutLoad"),C="n-scrollbar-container",M=_=>{u(_)},P=(_,T)=>{V.value.forEach(z=>{if(z.key===_){z.disabled=T;return}})},D=_=>{v.actionDropdownShow=!1,a(_.fullPath,_)},B=()=>{const _=document.getElementById(S);if(_)return Array.from(_.childNodes).find(de=>dn(de,C).value)},ce=_=>{var z;const T=B();if(T){const de=T.scrollLeft||0,Ye=_==="left"?Math.max(0,de-200):de+200;(z=o.value)==null||z.scrollTo({left:Ye,behavior:"smooth"})}},ue=_=>{v.actionDropdownShow=!1;const T=O[_];T&&T()},X=(_,T)=>{T.preventDefault(),v.actionDropdownShow=!1,b=_,Vue.nextTick(()=>{v.actionDropdownShow=!0,v.x=T.clientX,v.y=T.clientY})},Ge=()=>{const{closeable:_}=r.value[b]??{};P("closeCurrentPage",!_),h(b)?P("closeRight",!1):P("closeRight",!0),p(b)?P("closeLeft",!1):P("closeLeft",!0)},Ho=()=>{b=r.value.findIndex(T=>T.fullPath===n.value),Ge()},Yo=_=>{r.value.length>1&&_.fullPath!==s.value&&(_.closeable=!0)},Xo=_=>{_.fullPath!==n.value&&(_.closeable=!1)},Zo=()=>{B()&&Vue.nextTick().then(()=>{var T;(T=o.value)==null||T.scrollTo({left:99999,behavior:"smooth"})})},He=()=>{Vue.nextTick().then(()=>{const _=ve(`attr:${w}="${n.value}"`);if(_!=null&&_.length){const[T]=_;Vue.nextTick().then(()=>{var z;(z=o.value)==null||z.scrollTo({left:T.offsetLeft,behavior:"smooth"})})}})};return Vue.watch(()=>r.value,(_,T)=>{V.value.forEach(z=>{g.includes(z.key)&&(_.length>1?z.disabled=!1:z.disabled=!0)}),T!=null&&T.length&&(_.length>(T==null?void 0:T.length)?Zo():_.length===(T==null?void 0:T.length)&&He()),T===void 0&&He()},{immediate:!0}),Vue.watch(()=>v.actionDropdownShow,_=>{var T;_&&((T=Be(Ge,100))==null||T())}),t({}),{getMenuTagOptions:r,closeCurrentMenuTag:M,getMenuKey:n,menuTagClick:D,moreOptions:V,scrollX:ce,scrollRef:o,uuidScrollBar:S,actionDropdownSelect:ue,actionState:v,menuTagContextMenu:X,setCurrentContextmenuIndex:Ho,menuTagMouseenter:Yo,menuTagMouseleave:Xo,MENU_TAG_DATA:w,iconConfig:{width:22,height:22},maximize:l,getRootPath:s,reload:i,globalMainLayoutLoad:x}},render(){let e;const{iconConfig:t,getRootPath:o,uuidScrollBar:n,getMenuTagOptions:r,MENU_TAG_DATA:a,globalMainLayoutLoad:s}=this,{maximize:l,closeCurrentMenuTag:i,scrollX:u,$t:c,menuTagClick:f,menuTagContextMenu:y,menuTagMouseenter:m,menuTagMouseleave:p,actionDropdownSelect:h,reload:g}=this;return Vue.createVNode(naive.NLayoutHeader,null,{default:()=>[Vue.createVNode("div",{class:"menu-tag"},[Vue.createVNode(naive.NDropdown,{class:"menu-tag__dropdown",options:this.moreOptions,x:this.actionState.x,y:this.actionState.y,keyboard:!1,show:this.actionState.actionDropdownShow,trigger:"manual",placement:"bottom-start",onSelect:h.bind(this),onClickoutside:()=>{this.actionState.actionDropdownShow=!1}},null),Vue.createVNode(naive.NFlex,{class:"menu-tag-space",wrap:!1,align:"center",justify:"space-between",inline:!0,size:[16,0]},{default:()=>[Vue.createVNode(N,{name:"expanded",width:t.width,height:t.height,customClassName:"menu-tag__left-arrow",onClick:this.scrollX.bind(this,"left")},null),Vue.createVNode(naive.NScrollbar,Vue.mergeProps({xScrollable:!0,ref:"scrollRef"},{id:n},{themeOverrides:{width:"0px",height:"0px"}}),{default:()=>[Vue.createVNode(naive.NFlex,{ref:"menuTagSpaceRef",class:"menu-tag-wrapper",wrap:!1,align:"center",justify:"start"},bl(e=r.map((b,d)=>Vue.createVNode(naive.NButton,Vue.mergeProps({key:b.fullPath,class:["menu-tag__btn"],strong:!0,secondary:!0,type:b.fullPath===this.getMenuKey?"primary":"default"},{onClick:f.bind(this,b),onContextmenu:y.bind(this,d),onMouseenter:m.bind(this,b),onMouseleave:p.bind(this,b),[a]:b.path},{size:"small"}),{default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode("span",null,{default:()=>{const{breadcrumbLabel:V,meta:{i18nKey:S}}=b;return S?c(S):V}}),(b.closeable||r.length===1)&&b.fullPath!==o?Vue.createVNode(naive.NIcon,Vue.mergeProps({class:"menu-tag__btn-icon"},{onMousedown:i.bind(this,d)}),{default:()=>[Vue.createVNode(N,{name:"close",size:"14"},null)]}):Vue.createVNode(naive.NIcon,{class:[b.fullPath!==o?"menu-tag__btn-icon":"menu-tag__btn-icon--hidden"]},null)])})))?e:{default:()=>[e]})]}),Vue.createVNode(naive.NFlex,{class:"menu-tag__right-wrapper",align:"center",inline:!0,wrap:!1,size:[8,0]},{default:()=>[Vue.createVNode(N,{name:"expanded",width:t.width,height:t.height,customClassName:"menu-tag__right-arrow",onClick:u.bind(this,"right")},null),Vue.createVNode(N,{name:"fullscreen_fold",width:t.width,height:t.height,customClassName:"menu-tag__right-setting",onClick:()=>{l(!0)}},null),Vue.createVNode(N,{name:"reload",width:t.width,height:t.height,customClassName:`menu-tag__right-setting ${s?"":"menu-tag__right-setting--spinning"}`,onClick:()=>{g()}},null),Vue.createVNode(Mo,{class:"menu-tag__dropdown",options:this.moreOptions,trigger:"click",onSelect:this.actionDropdownSelect.bind(this),iconSize:20,keyboard:!1},{default:()=>[Vue.createVNode(N,{name:"more",width:t.width,height:t.height,customClassName:"menu-tag__right-setting",onClick:this.setCurrentContextmenuIndex.bind(this)},null)]})]})]})])]})}}),Vl=Vue.defineComponent({name:"LayoutFeatureWrapper",setup(){return{}},render(){return Vue.createVNode(vl,null,null)}}),Sl=e=>{const t=Te(e[0]),o=Te(e[1]),n=Te(e[2]);return Vue.computed(()=>({"--layout-content-height":`calc(100% - ${t.height.value}px - ${o.height.value}px - ${n.height.value}px)`,"--layout-siderbar-height":`${t.height.value}px`,"--layout-menutag-height":`${o.height.value}px`,"--layout-footer-height":`${n.height.value}px`}))},lt=nn(E.isAppLockScreen,!1,sessionStorage,{mergeDefaults:!0}),_l=()=>({setLockAppScreen:o=>{lt.value=o},getLockAppScreen:()=>lt.value}),wl=Vue.defineComponent({name:"RLayout",setup(){const e=Vue.ref(),t=Vue.ref(),o=Vue.ref(),{getMenuTagSwitch:n,getCopyrightSwitch:r}=j(),{getLockAppScreen:a}=_l(),s=Sl([e,t,o]);return{getMenuTagSwitch:n,cssVarsRef:s,getLockAppScreen:a,layoutSiderBarRef:e,layoutMenuTagRef:t,layoutFooterRef:o,getCopyrightSwitch:r}},render(){const{getMenuTagSwitch:e,cssVarsRef:t,getCopyrightSwitch:o}=this,{getLockAppScreen:n}=this;return n()?null:Vue.createVNode(naive.NLayout,{class:"r-layout-full",style:[t],hasSider:!0,embedded:!0},{default:()=>[Vue.createVNode($r,null,null),Vue.createVNode(naive.NLayoutContent,{class:"r-layout-full__viewer"},{default:()=>[Vue.createVNode(sl,{ref:"layoutSiderBarRef"},null),e?Vue.createVNode(Vl,{ref:"layoutMenuTagRef"},null):null,Vue.createVNode(naive.NLayoutContent,{ref:J,class:["r-layout-full__viewer-content"],nativeScrollbar:!1},{default:()=>[Vue.createVNode(Wo,null,null)]}),o?Vue.createVNode(qr,{ref:"layoutFooterRef"},null):null]})]})}}),Cl=[{path:"/",name:"RLogin",component:()=>k(()=>import("./index-U-KjHHUk.js"),__vite__mapDeps([53,1,2,3,4,5,6,11,7,8,38,39,40,9,10,22,12,13,14,15,16,17,18,19,54]))},{path:"/",name:"RLayout",component:wl,children:[...Pr(),{path:"/:catchAll(.*)",component:()=>k(()=>import("./index-zGfSlYZ-.js"),__vite__mapDeps([55,1,2,3,4,5,6,11,7,8,9,10,12,13,14,15,16,17,18,19,56])),meta:{i18nKey:A("menu.Error"),icon:"error",hidden:!0,sameLevel:!0}}]}],Se=VueRouter.createRouter({history:VueRouter.createWebHashHistory(),routes:Cl,scrollBehavior:e=>{Ka(e)}}),hs=e=>{e.use(Se),Ir(Se)},qe=()=>Se?{router:Se}:{router:{}},st="YYYY-MM-DD HH:mm:ss",Tl=()=>({locale:s=>{const l=Wn[s];l?dayjs.locale(l):dayjs.locale(Kn)},getStartAndEndOfDay:s=>{const{format:l=st}=s??{},i=dayjs(),u=i.startOf("day"),c=i.endOf("day"),f=i.format(l),y=u.format(l),m=c.format(l);return{today:i,startOfDay:u,endOfDay:c,formatToday:f,formatStartOfDay:y,formatEndOfDay:m}},format:(s,l)=>{const{format:i=st}=l??{};return dayjs(s).format(i)},isDayjs:s=>dayjs.isDayjs(s),daysDiff:(s,l)=>{const i=dayjs(s);return dayjs(l).diff(i,"days")},isDateInRange:(s,l)=>{const{start:i,end:u}=l,c=dayjs(s);return c.isAfter(i)&&c.isBefore(u)}});function we(e){const{width:t,height:o}=mt(e),n=Vue.ref(!1),{observer:r}=e??{};return pn(()=>{const{media:s=768}=e??{};n.value=t.value<=s,r==null||r(n.value,{width:t.value,height:o.value})}),{width:t,height:o,isTabletOrSmaller:Vue.readonly(n)}}let Me=999,Le=!1;const G="ELEMENT-FULLSCREEN-RAY",{width:it,height:ct}=mt(),ut=document.createElement("style"),Nl=(e,t)=>{const{beforeEnter:o,beforeExit:n,enter:r,exit:a,backgroundColor:s,zIndex:l,transition:i="all 0.3s var(--r-bezier)"}=t??{};let u=!1;const c=()=>{const h=K(e);if(!h)return;const{left:g,top:b}=h.getBoundingClientRect(),d=` - [${G}] { - position: fixed; - width: ${it.value}px !important; - height: ${ct.value}px !important; - transform: translate(-${g}px, -${b}px) !important; - transition: ${i}; - z-index: ${q(l,"Null")||q(l,"Undefined")?Me:l} !important; - background-color: ${s??null}; - } - `;ut.innerHTML=d,Le||document.head.appendChild(ut)},f=()=>{const h=K(e);o==null||o(),h&&(h.getAttribute(G)||h.setAttribute(G,G),u||(u=!0,Me+=1),Le||(c(),Le=!0),h.style.transition=i,r==null||r())},y=()=>{n==null||n();const h=K(e);h&&h.removeAttribute(G),a==null||a()},m=()=>{const h=K(e);h&&(h.getAttribute(G)?y():f())},p=Vue.watch(()=>[it.value,ct.value],c);return Ue(()=>{const h=K(e);h&&h.removeAttribute(G),Me--,p()}),{enter:f,exit:y,toggleFullscreen:m}},Ee={svg:domtoimage.toSvg,png:domtoimage.toPng,jpeg:domtoimage.toJpeg,blob:domtoimage.toBlob,pixelData:domtoimage.toPixelData},gs=(e,t)=>{const{beforeCreate:o,created:n,createdError:r,finally:a,imageType:s}=t??{};return{create:i=>new Promise((u,c)=>{var y;const f=K(e);if(o==null||o(f),!f)return r==null||r(),c("useDomToImage: element is undefined.");(y=Ee[i??s??"jpeg"])==null||y.call(Ee,f,t).then(m=>(n==null||n(m,f),u(m))).catch(m=>(r==null||r(m),c(m))).finally(()=>{a==null||a()})})}},ys=(e,t)=>({print:()=>{const n=K(e)||e;an({...We(t,["printable"]),printable:n})}}),Ol={page:1,pageSize:10,showSizePicker:!0,pageSizes:[10,20,50,100]},bs=(e,t)=>{const o=Vue.ref(e),n=We(t,["on-update:page","on-update:page-size","onUpdatePage","onUpdatePageSize","onUpdate:page","onUpdate:page-size"]),r={onUpdatePage:d=>{var V;a.value.page=d,(V=o.value)==null||V.call(o)},onUpdatePageSize:d=>{var V;a.value.pageSize=d,a.value.page=1,(V=o.value)==null||V.call(o)}},a=Vue.ref(Object.assign({},Ol,n,r)),s=a.value.onUpdatePage,l=a.value.onUpdatePageSize,i=()=>a.value.itemCount,u=d=>{a.value.itemCount=d},c=()=>a.value.page,f=d=>{s(d)},y=()=>a.value.pageSize,m=d=>{l(d)},p=()=>a.value,h=e,g=d=>{o.value=d},b=()=>{const{pageSizes:d}=a.value;a.value.page=1,a.value.pageSize=(d==null?void 0:d[0])||10};return Ue(()=>{o.value=void 0}),[a,{getItemCount:i,setItemCount:u,getPage:c,setPage:f,getPageSize:y,setPageSize:m,getPagination:p,getCallback:h,setCallback:g,resetPagination:b}]},Ko=()=>({isLayoutContentMaximized:Vue.computed(()=>_e("layoutContentMaximize").value),maximize:(o,n)=>{var l;const{scrollToOptions:r}=n??{},a=K(J),{toggleFullscreen:s}=Nl(a,n);U("layoutContentMaximize",o),s(),r&&o&&((l=J==null?void 0:J.value)==null||l.scrollTo(r))}}),kl=()=>({reload:(n=800)=>{U("globalMainLayoutLoad",!1),setTimeout(()=>U("globalMainLayoutLoad",!0),n)},openSpin:()=>{U("layoutContentSpinning",!0)},closeSpin:()=>{U("layoutContentSpinning",!1)}}),vs=()=>({setWatermarkContent:r=>{const{getWatermarkConfig:a}=j(),s=Object.assign(a.value,{content:r}),{updateSettingState:l}=I();l("watermarkConfig",s)},showWatermark:()=>{const{updateSettingState:r}=I();r("watermarkSwitch",!0)},hiddenWatermark:()=>{const{updateSettingState:r}=I();r("watermarkSwitch",!1)},toggleWatermark:()=>{const{getWatermarkSwitch:r}=j(),{updateSettingState:a}=I();a("watermarkSwitch",!r.value)}}),ze=e=>{const{getPrimaryColorOverride:t}=j(),{updateSettingState:o}=I();o("primaryColorOverride",e?Object.assign({},t.value,$.appNaiveUIThemeOverrides.dark,$.appNaiveUIThemeOverridesCommon.dark):Object.assign({},t.value,$.appNaiveUIThemeOverrides.light,$.appNaiveUIThemeOverridesCommon.light))},Uo=()=>{const e=()=>{const{getAppTheme:r}=j(),{t:a}=le();return{theme:r.value,themeI18nLabel:r.value?a("headerSettingOptions.ThemeOptions.Dark"):a("headerSettingOptions.ThemeOptions.Light"),themeLabel:r.value?"Dark":"Light"}};return{darkTheme:()=>{const{updateSettingState:r}=I();r("appTheme",!0),ze(!0)},lightTheme:()=>{const{updateSettingState:r}=I();r("appTheme",!1),ze(!1)},toggleTheme:()=>{const{theme:r}=e(),{updateSettingState:a}=I();a("appTheme",!r),ze(!r)},getAppTheme:e}},Z=(e,t)=>{const{getMenuTagOptions:o}=Y();if(typeof e=="number"){if(isNaN(e)){console.warn(`${t}: The ${e} is NaN, expect number.`);return}if(e>o.value.length||e<-1){console.warn(`${t}: The incoming index ${e} did not match the corresponding item.`);return}return{option:o.value[e],index:e}}else if(typeof e=="string"){const n=o.value.findIndex(r=>r.fullPath===e);return n>-1?{option:o.value[n],index:n}:console.warn(`${t}: The incoming key ${e} did not match the corresponding item.`)}else{const{fullPath:n}=e,r=o.value.findIndex(a=>a.fullPath===n);if(r===-1){console.warn(`${t}: The incoming menuTag option ${e.fullPath} did not match the corresponding item.`);return}return{option:e,index:r}}};function qo(){const{getMenuTagOptions:e,getMenuKey:t}=Y(),{changeMenuModelValue:o,spliceMenTagOptions:n,setMenuTagOptions:r,resolveOption:a}=ie(),s=()=>e.value.findIndex(p=>p.fullPath===t.value);return{close:p=>{const h=Z(p,"close");if(e.value.length!==1&&h){const{index:g,option:b}=h;if(n(g),b.fullPath===t.value){const d=e.value[g-1];d&&o(d.fullPath,d)}}},closeAll:()=>{n(0,e.value.length);const{getRootPath:p}=te(),{router:{getRoutes:h}}=qe(),g=h().find(b=>b.path===p.value);if(g){const b=ne(g,Fe),d=a(b);o(d.path,a({...d,fullPath:d.path}))}},closeRight:p=>{const h=Z(p,"closeRight");if(h){const{option:g,index:b}=h,d=e.value.length-b,V=s();n(b+1,d),b<=V&&t.value!==g.fullPath&&o(g.fullPath,g)}},closeLeft:p=>{const h=Z(p,"closeLeft");if(h){const{option:g,index:b}=h,d=s();n(0,b),d<=b&&t.value!==g.fullPath&&o(g.fullPath,g)}},closeOther:p=>{const h=Z(p,"closeOther");if(h){const{option:g}=h;t.value!==g.fullPath?(n(0,e.value.length),o(g.fullPath,g)):r(g,!1)}},getCurrentTagIndex:s,checkCloseRight:p=>{const h=Z(p,"checkCloseRight");if(h){const{index:g}=h,b=e.value.length-1;return!(g>=b)}return!1},checkCloseLeft:p=>{const h=Z(p,"checkCloseRight");if(h){const{index:g}=h,b=e.value.length-1;return g===0?!1:g>0&&b>0}return!1}}}function Vs(){return{navigationTo:(t,o)=>{const{router:{getRoutes:n,push:r,replace:a}}=qe(),{isPush:s=!0,query:l}=o||{},i=u=>s?r({path:u,query:l}):a({path:u,query:l});if(typeof t=="number"){if(isNaN(t)){console.warn(`[navigationTo]: The ${t} is NaN, expect number.`);return}const{getMenuOptions:u}=Y();if(t>u.value.length){console.warn(`[navigationTo]: The current ${t} exceeds the maximum number of menus.`);return}const c=u.value[t],f=y=>{if(y.children&&y.children.length>0){const{children:[m]}=y;f(m);return}i(y.fullPath)};f(c)}else if(typeof t=="string"){const u=n().find(c=>c.path===t);u?i(u.path):console.warn(`[navigationTo]: The path "${t}" is not found.`)}else i(t.fullPath)}}}function te(){const{getAppRootRoute:e}=j(),{updateSettingState:t}=I(),o=e,n=Vue.computed(()=>e.value.path),r=Vue.computed(()=>e.value.name);return{getRootRoute:o,getRootPath:n,getRootName:r,setRootRoute:s=>{t("appRootRoute",Object.assign({},e.value,s))}}}const xl=(e,t)=>{const{show:o,...n}=t;e.meta.extra=Object.assign({},e.meta.extra,{...n,show:o}),e.extra=zo(e)},dt=(e,t,o)=>{const n=jo(e,t);n&&xl(n,o)},Ie=(e,t,o)=>{const{getMenuOptions:n}=Y();if(typeof e=="string")dt(n.value,e,o);else if(q(e,"Object")){const{fullPath:r}=e;dt(n.value,r,o)}else console.warn(`[useBadge ${t}]: target expect string or object.`)};function Ss(){return{hidden:n=>{Ie(n,"hidden",{show:!1})},show:n=>{Ie(n,"show",{show:!0})},update:(n,r)=>{Ie(n,"update",r)}}}const _s=()=>{const e=_t.value,{scrollTo:t}=e||{};if(!t)throw new Error("[useSiderScroll]: LAYOUT_SIDER_REF is not ready yet. please wait component mounted!");return t},Go=()=>re(E.localeLanguage,"localStorage",{defaultValue:Fn}),ws=()=>{const e=Vue.ref(),t=p=>{p&&(e.value=p)},o=()=>{if(!e.value)throw new Error("[useTablePro]: table instance is not ready yet. if you are using useTablePro, please make sure you have called register method in onRegister event.");return e.value};return[t,{clearFilters:()=>o().clearFilters.call(null),getTableProInstance:o,clearSorter:()=>o().clearSorter.call(null),downloadCsv:p=>o().downloadCsv.call(null,p),filters:p=>o().filters.call(null,p),page:p=>o().page.call(null,p),scrollTo:p=>o().scrollTo(p),sort:(p,h)=>o().sort.call(null,p,h),getTablePagination:()=>o().getTablePagination.call(null),runTableRequest:p=>o().runTableRequest.call(null,p),print:p=>o().print.call(null,p),getCurrentTableRequestParams:p=>o().getCurrentTableRequestParams.call(null,p)}]};export{Zl as $,Yl as A,es as B,ts as C,Kn as D,us as E,cs as F,ns as G,bs as H,os as I,ls as J,rs as K,_t as L,Gl as M,ds as N,or as O,Sr as P,se as Q,as as R,jr as S,Hr as T,ss as U,ws as V,is as W,Tl as X,Br as Y,fs as Z,k as _,ys as a,Mo as a0,Ko as a1,Vs as a2,kl as a3,vs as a4,Uo as a5,Ss as a6,_s as b,Xl as c,j as d,E as e,I as f,ql as g,_l as h,Lr as i,we as j,el as k,_e as l,Hl as m,Ql as n,hs as o,te as p,le as q,N as r,ms as s,St as t,gs as u,ke as v,qe as w,Ul as x,ps as y,Jl as z}; diff --git a/js/hooks-DeCbIFFS.js.gz b/js/hooks-DeCbIFFS.js.gz deleted file mode 100644 index 65f9ab62..00000000 Binary files a/js/hooks-DeCbIFFS.js.gz and /dev/null differ diff --git a/js/index--cyhTTPE.js b/js/index--cyhTTPE.js deleted file mode 100644 index 617ae6a6..00000000 --- a/js/index--cyhTTPE.js +++ /dev/null @@ -1 +0,0 @@ -import{l as A,d as E,a1 as h,r as f,a2 as x,a3 as k,a4 as g,a5 as T,a6 as b}from"./hooks-DeCbIFFS.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.4.38-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.4.38-Cp_qoKMZ.js";import"./@vueuse_shared@10.9.0_vue@3.4.38-BTLxKjPf.js";import"./utils-DGuZdIHQ.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.38-f9XU7P4m.js";import"./@vue_reactivity@3.4.38-CmXFqMGn.js";import"./@vue_shared@3.4.38-D8qfpBTH.js";const Y=Vue.defineComponent({name:"TemplateHooks",setup(){const t=Vue.ref(""),a=A("layoutContentMaximize"),o=Vue.ref(E().getWatermarkConfig.value.content),n=Vue.ref("new"),{navigationTo:i}=x(),{maximize:r,isLayoutContentMaximized:l}=h(),{reload:d,openSpin:V,closeSpin:F}=k(),{showWatermark:c,hiddenWatermark:N,setWatermarkContent:m,toggleWatermark:C}=g(),{darkTheme:B,lightTheme:s,toggleTheme:u,getAppTheme:e}=T(),{hidden:p,show:v,update:D}=b();return{navigationTo:i,reload:d,currentMenuOption:t,maximize:r,maximizeRef:a,openSpin:V,closeSpin:F,showWatermark:c,hiddenWatermark:N,setWatermarkContent:m,watermark:o,toggleWatermark:C,darkTheme:B,lightTheme:s,toggleTheme:u,getAppTheme:e,isLayoutContentMaximized:l,badgeHidden:p,badgeShow:v,badgeUpdateLabel:D,badgeValue:n}},render(){const{navigationTo:t,reload:a,maximize:o,openSpin:n,closeSpin:i,showWatermark:r,hiddenWatermark:l,setWatermarkContent:d,toggleWatermark:V,darkTheme:F,lightTheme:c,toggleTheme:N,getAppTheme:m,isLayoutContentMaximized:C,badgeHidden:B,badgeShow:s,badgeUpdateLabel:u}=this;return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,{title:"接口说明"},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("hooks/template 包存放模板专属 hook 方法。这里不做过多的赘述,可以查看文档具体描述。")])]}),Vue.createVNode(naive.NCard,{title:"useBadge 菜单标记"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NInput,{value:this.badgeValue,"onUpdate:value":e=>this.badgeValue=e},null),Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>B("/template-hooks")},{default:()=>[Vue.createTextVNode("隐藏当前菜单标记")]}),Vue.createVNode(naive.NButton,{onClick:()=>s("/template-hooks")},{default:()=>[Vue.createTextVNode("显示当前菜单标记")]}),Vue.createVNode(naive.NButton,{onClick:()=>u("/template-hooks",{label:this.badgeValue})},{default:()=>[Vue.createTextVNode("更新当前菜单标记")]}),Vue.createVNode(naive.NButton,{onClick:()=>{u("/template-hooks",{label:this.badgeValue,icon:Vue.createVNode(f,{name:"error",size:"18"},null)})}},{default:()=>[Vue.createTextVNode("添加标记图标")]}),Vue.createVNode(naive.NButton,{onClick:()=>{u("/template-hooks",{label:this.badgeValue,icon:void 0})}},{default:()=>[Vue.createTextVNode("隐藏标记图标")]})]})]})]}),Vue.createVNode(naive.NCard,{title:"useTheme 主题"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("getAppTheme 获取当前主题色: "),m().themeLabel]),Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>F()},{default:()=>[Vue.createTextVNode("切换暗黑主题")]}),Vue.createVNode(naive.NButton,{onClick:()=>c()},{default:()=>[Vue.createTextVNode("切换明亮主题")]}),Vue.createVNode(naive.NButton,{onClick:()=>N()},{default:()=>[Vue.createTextVNode("切换主题")]})]})]})]}),Vue.createVNode(naive.NCard,{title:"useWatermark 水印"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NInput,{value:this.watermark,"onUpdate:value":e=>this.watermark=e,onInput:e=>{d(e)}},null),Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>r()},{default:()=>[Vue.createTextVNode("显示水印")]}),Vue.createVNode(naive.NButton,{onClick:()=>l()},{default:()=>[Vue.createTextVNode("隐藏水印")]}),Vue.createVNode(naive.NButton,{onClick:()=>V()},{default:()=>[Vue.createTextVNode("切换水印")]})]})]})]}),Vue.createVNode(naive.NCard,{title:"useSpinning"},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("手动刷新内容区域,会使得当前路由页面内容强制重新加载(会执行完整的 vue 生命周期)。默认 800ms 延迟。")]),Vue.createVNode("br",null,null),Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>{a()}},{default:()=>[Vue.createTextVNode("刷新(强制刷新)")]}),Vue.createVNode(naive.NButton,{onClick:()=>{n(),setTimeout(()=>{i()},800)}},{default:()=>[Vue.createTextVNode("触发加载动画(不强制刷新)")]})]})]}),Vue.createVNode(naive.NCard,{title:"useMaximize 内容区域最大化"},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("isLayoutContentMaximized 检测当前内容区域是否最大化:"),C?"最大化":"正常尺寸"]),Vue.createVNode(naive.NButton,{onClick:()=>{o(!this.maximizeRef,{scrollToOptions:{left:0,top:0}})}},{default:()=>[Vue.createTextVNode("最大化内容区域,并且滚动至顶部")]})]}),Vue.createVNode(naive.NCard,{title:"useAppNavigation 导航方法"},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("navigationTo 参数为正整数时,会更具当前的菜单顺序进行自动导航匹配。但是此方法仅能导航一级菜单。并且如果导航菜单非根菜单项,会自动递归导航至一子菜单。 支持传入完整的菜单路径,如:/multi/multi-menu-one。")]),Vue.createVNode("br",null,null),Vue.createVNode(naive.NButton,{onClick:()=>t("/multi/multi-menu-one")},{default:()=>[Vue.createTextVNode("跳转至多级菜单")]})]})]})}});export{Y as default}; diff --git a/js/index--cyhTTPE.js.gz b/js/index--cyhTTPE.js.gz deleted file mode 100644 index 947c748e..00000000 Binary files a/js/index--cyhTTPE.js.gz and /dev/null differ diff --git a/js/index-2JATXzfJ.js b/js/index-2JATXzfJ.js deleted file mode 100644 index a33fd664..00000000 --- a/js/index-2JATXzfJ.js +++ /dev/null @@ -1 +0,0 @@ -import"./hooks-DeCbIFFS.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.4.38-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import{y as s,z as d,A as l,B as p,C as c,D as V}from"./utils-DGuZdIHQ.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.4.38-Cp_qoKMZ.js";import"./@vueuse_shared@10.9.0_vue@3.4.38-BTLxKjPf.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.38-f9XU7P4m.js";import"./@vue_reactivity@3.4.38-CmXFqMGn.js";import"./@vue_shared@3.4.38-D8qfpBTH.js";const I=Vue.defineComponent({name:"CalculatePrecision",setup(){const t=Vue.reactive({addOptions:["1","0.2","0.1","1.1"],subtractOptions:["1","0.2","0.1","1.1"],multiplyOptions:["1","0.2","0.1","1.1"],divideOptions:["1","0.2","0.1","1.1"],distributeValue:12,distributeOutputValue:[],distributeLength:3}),e={addOptions:l,subtractOptions:p,multiplyOptions:c,divideOptions:V},i=(a,o)=>{const n=e[o],r=n(...a);return"结果: "+s(r)},u=()=>{Vue.nextTick().then(()=>{t.distributeOutputValue=d(t.distributeValue,t.distributeLength)})};return u(),{...Vue.toRefs(t),copilotFunc:i,updateDistributeValue:u}},render(){return Vue.createVNode(naive.NLayout,null,{default:()=>[Vue.createVNode("h2",{style:"margin: 0 0 20px 0"},[Vue.createTextVNode("计算方法,默认都保留八位小数与四舍五入,可以根据 format 方法自行转换")]),Vue.createVNode("h3",{style:"margin: 0 0 20px 0"},[Vue.createTextVNode("示例方法都基于 currency.js 封装,利用其精度处理能力封装了常用的一些计算方法,解决精度问题。如果需要其他的方法请阅读官方文档 https://currency.js.org/#subtract")]),Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,{title:"加法"},{default:()=>Vue.createVNode(naive.NDynamicTags,{value:this.addOptions,"onUpdate:value":t=>this.addOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"addOptions")}},null),footer:()=>this.copilotFunc(this.addOptions,"addOptions")}),Vue.createVNode(naive.NCard,{title:"减法"},{default:()=>Vue.createVNode(naive.NDynamicTags,{value:this.subtractOptions,"onUpdate:value":t=>this.subtractOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"subtractOptions")}},null),footer:()=>this.copilotFunc(this.subtractOptions,"subtractOptions")}),Vue.createVNode(naive.NCard,{title:"乘法"},{default:()=>Vue.createVNode(naive.NDynamicTags,{value:this.multiplyOptions,"onUpdate:value":t=>this.multiplyOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"multiplyOptions")}},null),footer:()=>this.copilotFunc(this.multiplyOptions,"multiplyOptions")}),Vue.createVNode(naive.NCard,{title:"除法(非取模)"},{default:()=>Vue.createVNode(naive.NDynamicTags,{value:this.divideOptions,"onUpdate:value":t=>this.divideOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"divideOptions")}},null),footer:()=>this.copilotFunc(this.divideOptions,"divideOptions")}),Vue.createVNode(naive.NCard,{title:"平分一个值"},{default:()=>Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NInputNumber,{value:this.distributeValue,"onUpdate:value":t=>this.distributeValue=t,onUpdateValue:()=>{this.updateDistributeValue()}},null),Vue.createVNode(naive.NInputNumber,{value:this.distributeLength,"onUpdate:value":t=>this.distributeLength=t,onUpdateValue:()=>{this.updateDistributeValue()}},null)]}),footer:()=>"结果: "+this.distributeOutputValue.join(", ")})]})]})}});export{I as default}; diff --git a/js/index-2JATXzfJ.js.gz b/js/index-2JATXzfJ.js.gz deleted file mode 100644 index 636f6aee..00000000 Binary files a/js/index-2JATXzfJ.js.gz and /dev/null differ diff --git a/js/index-4_KfG0hf.js b/js/index-4_KfG0hf.js deleted file mode 100644 index 74d85dc5..00000000 --- a/js/index-4_KfG0hf.js +++ /dev/null @@ -1 +0,0 @@ -import{K as d,R as a}from"./hooks-DeCbIFFS.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.4.38-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.4.38-Cp_qoKMZ.js";import"./@vueuse_shared@10.9.0_vue@3.4.38-BTLxKjPf.js";import"./utils-DGuZdIHQ.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.38-f9XU7P4m.js";import"./@vue_reactivity@3.4.38-CmXFqMGn.js";import"./@vue_shared@3.4.38-D8qfpBTH.js";const T=Vue.defineComponent({name:"ModalDemo",setup(){const t=Vue.reactive({modal1:!1,modal2:!1,modal3:!1}),{create:e}=d(),u=()=>{e({title:"卡片模态框",dad:!0,preset:"card",content:"我可以被拖拽的全屏card模态框",fullscreen:!0})},o=()=>{e({title:"模态框",content:"内容",preset:"dialog",dad:!0})};return{...Vue.toRefs(t),createCardModal:u,createDialogModal:o}},render(){const{createCardModal:t,createDialogModal:e}=this;return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,{title:"props"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("memoryPosition: 是否记住上一次被拖拽的位置,如果设置为 true,那么下一次打开的时候会自动定位到上一次的位置。")]),Vue.createVNode("h3",null,[Vue.createTextVNode("fullscreen: 全屏模态框。")]),Vue.createVNode("h3",null,[Vue.createTextVNode("dad: 启用拖拽,当配置为 false 时,会禁用拖拽效果。")])]})]}),Vue.createVNode(a,{show:this.modal1,"onUpdate:show":u=>this.modal1=u,title:"全屏模态框",fullscreen:!0,preset:"card"},{default:()=>[Vue.createTextVNode("我是全屏模态框,并且会自动启用滚动条。")]}),Vue.createVNode(a,{show:this.modal2,"onUpdate:show":u=>this.modal2=u,preset:"card",title:"可拖拽卡片模态框",dad:!0},{default:()=>[Vue.createVNode("p",null,[Vue.createTextVNode("我可以被拖拽")])]}),Vue.createVNode(a,{show:this.modal3,"onUpdate:show":u=>this.modal3=u,preset:"dialog",title:"可拖拽卡片模态框",dad:!0},{default:()=>[Vue.createVNode("p",null,[Vue.createTextVNode("我可以被拖拽")])]}),Vue.createVNode(naive.NCard,{title:"可拖拽模态框"},{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>this.modal2=!0},{default:()=>[Vue.createTextVNode("卡片模态框")]}),Vue.createVNode(naive.NButton,{onClick:()=>this.modal3=!0},{default:()=>[Vue.createTextVNode("对话框模态框")]})]}),Vue.createVNode(naive.NCard,{title:"全屏模态框"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode("h4",null,[Vue.createTextVNode("全屏模态框需要同时设置:fullscreen 为 true,并且 preset 为 card 时才会生效。")]),Vue.createVNode(naive.NButton,{onClick:()=>this.modal1=!0},{default:()=>[Vue.createTextVNode("打开")]})]})]}),Vue.createVNode(naive.NCard,{title:"手动设置宽度"},{default:()=>[Vue.createVNode("h4",null,[Vue.createTextVNode("width(--r-modal-width): 当 preset 不为 dialog 或者 card 的时候,你可能用得上。")]),Vue.createVNode("h4",null,[Vue.createTextVNode("dialogWidth(--r-modal-dialog-width): 当 preset 为 dialog,你可能用得上。")]),Vue.createVNode("h4",null,[Vue.createTextVNode("cardWidth(--r-modal-card-width): 当 preset 为 card,你可能用得上。")]),Vue.createVNode("h4",null,[Vue.createTextVNode("所有的宽度配置属性都会注入一个对应的 `css variable`,有时候会用上。")])]}),Vue.createVNode(naive.NCard,{title:"重写 useModal"},{default:()=>[Vue.createVNode(naive.NButton,{onClick:t.bind(this)},{default:()=>[Vue.createTextVNode("创建卡片模态框")]}),Vue.createVNode(naive.NButton,{onClick:e.bind(this)},{default:()=>[Vue.createTextVNode("创建对话框模态框")]})]})]})}});export{T as default}; diff --git a/js/index-4_KfG0hf.js.gz b/js/index-4_KfG0hf.js.gz deleted file mode 100644 index 88eeaa12..00000000 Binary files a/js/index-4_KfG0hf.js.gz and /dev/null differ diff --git a/js/index-B0CACC_9.js b/js/index-B0CACC_9.js deleted file mode 100644 index 6d9f12a6..00000000 --- a/js/index-B0CACC_9.js +++ /dev/null @@ -1 +0,0 @@ -var g={pkg:{dependencies:{"@vueuse/core":"^10.9.0",axios:"^1.7.5",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.39.0",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.38","vue-demi":"0.14.6","vue-hooks-plus":"2.2.1","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.0","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-with-include":"1.2.2",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.17.5","unplugin-vue-components":"^0.26.0",vite:"^5.4.1","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.0.11"},name:"ray-template",version:"4.9.4"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};function a(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Vue.isVNode(t)}const V=Vue.defineComponent({name:"RelyAbout",setup(){const{pkg:t}=g,{dependencies:i,devDependencies:n,name:e,version:d}=t,c=[{title:"依赖名称",key:"name"},{title:"依赖版本",key:"relyVersion"},{title:"依赖地址",key:"relyAddress"}],l=Vue.ref([]),o=Vue.ref([]),v=[{name:"项目名称",label:e},{name:"版本信息",label:d},{name:"项目地址",label:"GitHub",url:"https://github.com/XiaoDaiGua-Ray/ray-template"}],m=()=>{const s=r=>Object.keys(r).reduce((p,u)=>(p.push({name:u,relyVersion:r[u],relyAddress:""}),p),[]);l.value=s(i),o.value=s(n)},y=s=>{s.url&&window.open(s.url)};return Vue.onBeforeMount(()=>{m()}),{columns:c,dependenciesOptions:l,devDependenciesOptions:o,templateOptions:v,handleTagClick:y}},render(){let t,i,n;return Vue.createVNode("div",{class:"rely-about"},[Vue.createVNode(naive.NCard,{title:"关于项目"},{default:()=>[Vue.createTextVNode("ray template 是一个基于: tsx pinia vue3.x vite sass 的中后台解决方案. 项目干净与轻巧, 已经集成了很多项目中可能需要的搬砖工具可以让你快速起一个相关项目, 并且不需要剔除大量无用页面与组件.")]}),Vue.createVNode(naive.NCard,{title:"项目信息"},{default:()=>[Vue.createVNode(naive.NDescriptions,{bordered:!0,labelPlacement:"left"},a(t=this.templateOptions.map(e=>Vue.createVNode(naive.NDescriptionsItem,{key:e.name,label:e.name},{default:()=>[Vue.createVNode(naive.NTag,Vue.mergeProps({bordered:!1,type:"info"},{onClick:this.handleTagClick.bind(this,e)},{style:[e.url?"cursor: pointer":""]}),{default:()=>[e.label]})]})))?t:{default:()=>[t]})]}),Vue.createVNode(naive.NCard,{title:"生产依赖"},{default:()=>[Vue.createVNode(naive.NDescriptions,{bordered:!0,labelPlacement:"left"},a(i=this.dependenciesOptions.map(e=>Vue.createVNode(naive.NDescriptionsItem,{key:e.name,label:e.name},{default:()=>[e.relyVersion]})))?i:{default:()=>[i]})]}),Vue.createVNode(naive.NCard,{title:"开发依赖"},{default:()=>[Vue.createVNode(naive.NDescriptions,{bordered:!0,labelPlacement:"left"},a(n=this.devDependenciesOptions.map(e=>Vue.createVNode(naive.NDescriptionsItem,{key:e.name,label:e.name},{default:()=>[e.relyVersion]})))?n:{default:()=>[n]})]})])}});export{V as default}; diff --git a/js/index-B0CACC_9.js.gz b/js/index-B0CACC_9.js.gz deleted file mode 100644 index 1d0efc58..00000000 Binary files a/js/index-B0CACC_9.js.gz and /dev/null differ diff --git a/js/index-B4Svketz.js b/js/index-B4Svketz.js deleted file mode 100644 index 358d741e..00000000 --- a/js/index-B4Svketz.js +++ /dev/null @@ -1 +0,0 @@ -import{G as e}from"./hooks-DeCbIFFS.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.4.38-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.4.38-Cp_qoKMZ.js";import"./@vueuse_shared@10.9.0_vue@3.4.38-BTLxKjPf.js";import"./utils-DGuZdIHQ.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.38-f9XU7P4m.js";import"./@vue_reactivity@3.4.38-CmXFqMGn.js";import"./@vue_shared@3.4.38-D8qfpBTH.js";const D=Vue.defineComponent({name:"IframeDemo",setup(){return{}},render(){return Vue.createVNode(naive.NFlex,{vertical:!0,size:[20,20]},{default:()=>[Vue.createVNode(naive.NCard,{title:"naive ui(延迟加载)"},{default:()=>[Vue.createVNode(e,{src:"https://www.naiveui.com/zh-CN/dark",height:"300",allow:"fullscreen"},null)]}),Vue.createVNode(naive.NCard,{title:"vue-hooks-plus(立即加载)"},{default:()=>[Vue.createVNode(e,{src:"https://inhiblabcore.github.io/docs/hooks/",height:"300",lazy:!1},null)]})]})}});export{D as default}; diff --git a/js/index-B4Svketz.js.gz b/js/index-B4Svketz.js.gz deleted file mode 100644 index 37f00186..00000000 Binary files a/js/index-B4Svketz.js.gz and /dev/null differ diff --git a/js/index-B6y9-Yqs.js b/js/index-B6y9-Yqs.js deleted file mode 100644 index 5fe3483f..00000000 --- a/js/index-B6y9-Yqs.js +++ /dev/null @@ -1 +0,0 @@ -import{H as c,I as p,J as V}from"./hooks-DeCbIFFS.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./print-js@1.6.0-BdoEj60G.js";import{a as F}from"./vue-hooks-plus@2.2.1_vue@3.4.38-DdMBTcyt.js";import{s as E}from"./instance-B5j64X7o.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.4.38-Cp_qoKMZ.js";import"./@vueuse_shared@10.9.0_vue@3.4.38-BTLxKjPf.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./utils-DGuZdIHQ.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.38-f9XU7P4m.js";import"./@vue_reactivity@3.4.38-CmXFqMGn.js";import"./@vue_shared@3.4.38-D8qfpBTH.js";const N=u=>E({url:"/api/list",method:"get",params:u}),U=Vue.defineComponent({name:"MockDemo",setup(){const u=[{type:"selection",multiple:!0},{title:"id",key:"id"},{title:"邮箱",key:"email"},{title:"地址",key:"address"},{title:"姓名",key:"name"},{title:"年龄",key:"age"},{title:"创建时间",key:"createDate"},{title:"操作",key:"action",render:o=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createVNode(naive.NButton,{type:"primary",text:!0,onClick:()=>{window.$message.info("查看")}},{default:()=>[Vue.createTextVNode("查看")]}),Vue.createVNode(naive.NButton,{type:"primary",text:!0,onClick:()=>{window.$message.warning("编辑")}},{default:()=>[Vue.createTextVNode("编辑")]}),Vue.createVNode(naive.NButton,{type:"error",text:!0,onClick:()=>{window.$message.error("删除")}},{default:()=>[Vue.createTextVNode("删除")]})]})}],e=Vue.reactive({email:null}),[r,{getPage:t,getPageSize:a,setItemCount:i,getCallback:n,setPage:g,setPageSize:C}]=c(()=>{m({page:t(),pageSize:a(),email:e.email})}),{data:l,loading:d,run:m}=F(N,{defaultParams:[{page:t(),pageSize:a(),email:e.email}],onSuccess:o=>{const{total:s}=o;i(s)}});return{personData:l,personLoading:d,columns:u,...Vue.toRefs(e),getCallback:n,paginationRef:r}},render(){return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>{var u;return[Vue.createVNode(naive.NCard,{title:"Mock 数据"},{default:()=>[Vue.createVNode("h2",null,[Vue.createTextVNode("mock 数据使用。但是,并没有启用生产环境的部署,所以生产环境结果为空。")])]}),Vue.createVNode(naive.NCard,{title:"提示"},{default:()=>[Vue.createVNode("h2",null,[Vue.createTextVNode("RTable 组件有一个比较值得注意的地方就是,该组件会自动的按照数据量计算分页条数。所以你在异步获取数据的时候,一定要手动设置 remote 属性为 true,并且设置 itemCount 或者 pageCount。")])]}),Vue.createVNode(naive.NForm,{labelPlacement:"left"},{default:()=>[Vue.createVNode(p,{bordered:!1,cols:3},{default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NFormItemGi,{label:"邮箱"},{default:()=>[Vue.createVNode(naive.NInput,{value:this.email,"onUpdate:value":e=>this.email=e,clearable:!0},null)]})]),action:()=>{var e;return Vue.createVNode(naive.NButton,{type:"primary",onClick:(e=this.getCallback)==null?void 0:e.bind(this)},{default:()=>[Vue.createTextVNode("搜索")]})}})]}),Vue.createVNode(V,{title:"Mock数据表格",data:(u=this.personData)==null?void 0:u.data,loading:this.personLoading,columns:this.columns,"onUpdate:columns":e=>this.columns=e,pagination:this.paginationRef,remote:!0,rowKey:e=>e.id},null)]}})}});export{U as default}; diff --git a/js/index-B6y9-Yqs.js.gz b/js/index-B6y9-Yqs.js.gz deleted file mode 100644 index dafe6248..00000000 Binary files a/js/index-B6y9-Yqs.js.gz and /dev/null differ diff --git a/js/index-BKg9uIUv.js b/js/index-BKg9uIUv.js new file mode 100644 index 00000000..81222c27 --- /dev/null +++ b/js/index-BKg9uIUv.js @@ -0,0 +1 @@ +import{K as i}from"./hooks-DUpKDX8W.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./print-js@1.6.0-BdoEj60G.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.5.6-CMHqEu2-.js";import"./@vueuse_shared@10.9.0_vue@3.5.6-BTLxKjPf.js";import"./vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./utils-DvxnuKiq.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./pinia-plugin-persistedstate@4.0.1_pinia@2.1.7-MNUqeAcu.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.0-DyxInw53.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.5.6-CUaD_-7Q.js";import"./@vue_reactivity@3.5.6-CXMPYrvZ.js";import"./@vue_shared@3.5.6-6BrT-eFF.js";const H=Vue.defineComponent({name:"RouterDemoHome",setup(){const t=VueRouter.useRouter(),r=Vue.ref([{title:"姓名",key:"name"},{title:"地址",key:"address"},{title:"联系方式",key:"phone"},{title:"操作",key:"",render:e=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createVNode(naive.NButton,{type:"info",text:!0,size:"tiny",onClick:()=>{t.push({path:"/router-demo/router-demo-detail",query:{name:e.name}})}},{default:()=>[Vue.createTextVNode("详情")]})]})}]),o=[];for(let e=0;e<10;e++)o.push({name:"张三"+e,address:"New York No. 1 Lake Park",phone:"010-121212",key:e});return{dataSource:o,columns:r}},render(){return Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(i,{columns:this.columns,"onUpdate:columns":t=>this.columns=t,data:this.dataSource},null)]})}});export{H as default}; diff --git a/js/index-BKg9uIUv.js.gz b/js/index-BKg9uIUv.js.gz new file mode 100644 index 00000000..0d9d15f6 Binary files /dev/null and b/js/index-BKg9uIUv.js.gz differ diff --git a/js/index-BSxFfDS7.js b/js/index-BSxFfDS7.js new file mode 100644 index 00000000..b0ea328c --- /dev/null +++ b/js/index-BSxFfDS7.js @@ -0,0 +1 @@ +import{V as B,X as D,J as I,K,t as S,a1 as A}from"./hooks-DUpKDX8W.js";import{u as G}from"./utils-DvxnuKiq.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./print-js@1.6.0-BdoEj60G.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.5.6-CMHqEu2-.js";import"./@vueuse_shared@10.9.0_vue@3.5.6-BTLxKjPf.js";import"./vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./pinia-plugin-persistedstate@4.0.1_pinia@2.1.7-MNUqeAcu.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.0-DyxInw53.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.5.6-CUaD_-7Q.js";import"./@vue_reactivity@3.5.6-CXMPYrvZ.js";import"./@vue_shared@3.5.6-6BrT-eFF.js";function k(u){return typeof u=="function"||Object.prototype.toString.call(u)==="[object Object]"&&!Vue.isVNode(u)}const le=Vue.defineComponent({name:"TableView",setup(){const[u,{getTableInstance:n,clearFilters:r,clearSorter:i,scrollTo:d,filters:c,sort:s,downloadCsv:V,print:N}]=B(),p=[{type:"selection"},{title:"Name",key:"name",filterOptions:[{label:"John Brown",value:"John Brown"},{label:"Jim Green",value:"Jim Green"}],filter:(e,a)=>a.name.includes(e.toString())},{title:"Age",key:"age",sorter:(e,a)=>e.age-a.age},{title:"Address",key:"address"},{title:"Tags",key:"tags",render:e=>e.tags.map(l=>Vue.createVNode(naive.NTag,{type:"info",bordered:!1,style:"margin-right: 6px"},k(l)?l:{default:()=>[l]}))},{title:"Remark",key:"remark"},{title:"Action",key:"actions",render:e=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createVNode(naive.NButton,{size:"tiny"},{default:()=>[Vue.createTextVNode("查看")]}),Vue.createVNode(A,{options:[{label:"编辑",key:"edit"},{label:"新增",key:"add"}],onSelect:a=>{window.$message.info(`当前选择: ${a}`)}},null)]})}],m=Vue.ref([...p].map((e,a)=>({...e}))),o=Vue.ref([]),f=[{label:"编辑",key:"edit"},{label:()=>Vue.createVNode("span",{style:"color: red;"},[Vue.createTextVNode("删除")]),key:"delete"}],v=Vue.reactive({gridItemCount:4,gridCollapsedRows:1,tableLoading:!1}),[y,{checkedRowKeysBind:h,getKeys:C,getRows:t,clearKey:g,clearAll:w,selectKey:b}]=D(o,m,{rowKey:"key",onChange:(e,a,l)=>{}}),T=()=>{for(let e=0;e<10;e++)o.value.push({key:G(),name:e%2===0?"John Brown":"Jim Green",age:e+20,address:"New York No. 1 Lake Park",tags:["nice","developer"],remark:"我是一条很长很长的备注"})},x=e=>{window.$message.info(`${e}`)},F=()=>{const{key:e}=o.value[1];g(e)},E=()=>{o.value.map(a=>a.key).forEach(a=>b(a))},R=()=>{const{key:e}=o.value[1];b(e)};return T(),{...Vue.toRefs(v),tableData:o,actionColumns:m,baseColumns:p,tableMenuOptions:f,menuSelect:x,register:u,getKeys:C,getRows:t,clearKey:g,clearAll:w,checkedRowKeysBind:h,checkedRowKeys:y,clearSecondIndexRow:F,selectAll:E,selectSecondIndexRow:R,clearFilters:r,clearSorter:i,scrollTo:d,filters:c,sort:s,downloadCsv:V,getTableInstance:n,print:N}},render(){let u;const{register:n,clearAll:r,checkedRowKeysBind:i,clearSecondIndexRow:d,selectAll:c,selectSecondIndexRow:s,clearFilters:V,clearSorter:N,scrollTo:p,filters:m,sort:o,downloadCsv:f,getTableInstance:v,getRows:y,getKeys:h,print:C}=this;return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,{title:"RTable"},{default:()=>[Vue.createTextVNode("基于 NDataTable 封装,继承该组件所有 props 属性。查看 RTable props 文件即可查看该组件拓展项")]}),Vue.createVNode(naive.NCard,{title:"useTable"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0,style:"width: 100%"},{default:()=>[Vue.createVNode(naive.NAlert,{title:"DataTable Methods",type:"info"},{default:()=>[Vue.createTextVNode("其余的方法查看")," ",Vue.createVNode("a",{style:"color: transparent",href:"https://www.naiveui.com/zh-CN/dark/components/data-table#DataTable-Methods"},[Vue.createTextVNode("Naive UI")]),Vue.createTextVNode("官网,保持一致。")]}),Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:N.bind(this)},{default:()=>[Vue.createTextVNode("清除所有排序")]}),Vue.createVNode(naive.NButton,{onClick:V.bind(this)},{default:()=>[Vue.createTextVNode("清除所有过滤")]}),Vue.createVNode(naive.NButton,{onClick:()=>{f()}},{default:()=>[Vue.createTextVNode("下载 CSV")]}),Vue.createVNode(naive.NButton,{onClick:()=>v()},{default:()=>[Vue.createTextVNode("getTableInstance")]}),Vue.createVNode(naive.NButton,{onClick:()=>C()},{default:()=>[Vue.createTextVNode("打印")]})]})]})]}),Vue.createVNode(naive.NCard,{title:"useCheckedRowKeys"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:c.bind(this)},{default:()=>[Vue.createTextVNode("选中所有行")]}),Vue.createVNode(naive.NButton,{onClick:r.bind(this)},{default:()=>[Vue.createTextVNode("取消所有已选中行")]}),Vue.createVNode(naive.NButton,{onClick:s.bind(this)},{default:()=>[Vue.createTextVNode("选中第二行")]}),Vue.createVNode(naive.NButton,{onClick:d.bind(this)},{default:()=>[Vue.createTextVNode("取消第二行选中")]})]}),Vue.createVNode(naive.NFlex,null,k(u=this.checkedRowKeys.map(t=>Vue.createVNode(naive.NTag,{type:"success",key:t},k(t)?t:{default:()=>[t]})))?u:{default:()=>[u]})]})]}),Vue.createVNode(I,{bordered:!1,collapsedRows:this.gridCollapsedRows,cols:this.gridItemCount,onUpdateValue:t=>window.$message.info(`我是 RCollapseGrid 组件${t?"收起":"展开"}的回调函数`)},{action:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NButton,{type:"primary"},{default:()=>[Vue.createTextVNode("搜索")]}),Vue.createVNode(naive.NButton,null,{default:()=>[Vue.createTextVNode("重置")]})]),default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NGridItem,null,{default:()=>[Vue.createVNode(naive.NSelect,null,null)]}),Vue.createVNode(naive.NGridItem,null,{default:()=>[Vue.createVNode(naive.NInput,null,null)]}),Vue.createVNode(naive.NGridItem,null,{default:()=>[Vue.createVNode(naive.NDatePicker,{type:"datetimerange",clearable:!0},null)]}),Vue.createVNode(naive.NGridItem,null,{default:()=>[Vue.createVNode(naive.NInput,null,null)]}),Vue.createVNode(naive.NGridItem,null,{default:()=>[Vue.createVNode(naive.NInput,null,null)]})])}),Vue.createVNode(K,{checkedRowKeys:this.checkedRowKeys,"onUpdate:checkedRowKeys":t=>this.checkedRowKeys=t,onUpdateCheckedRowKeys:i.bind(this),onRegister:n.bind(this),scrollX:1e3,title:Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createVNode("span",null,[Vue.createTextVNode("标题插槽:")]),Vue.createVNode(naive.NSwitch,{onUpdateValue:t=>this.tableLoading=t},null)]}),data:this.tableData,columns:this.actionColumns,"onUpdate:columns":t=>this.actionColumns=t,pagination:{pageSize:10},contextMenuOptions:this.tableMenuOptions,loading:this.tableLoading,onContextMenuClick:this.menuSelect.bind(this),toolOptions:[Vue.createVNode(naive.NPopover,null,{trigger:()=>Vue.createVNode(S,{name:"search",size:"18",cursor:"pointer",onClick:()=>{window.$message.info("点击了搜索按钮")}},null),default:()=>"我是自定义工具栏示例"})],rowKey:t=>t.key,striped:!0},{tableFooter:()=>"表格的底部内容区域插槽,有时候你可能会用上",tableAction:()=>"表格的操作区域内容插槽,有时候可能会用上"})]})}});export{le as default}; diff --git a/js/index-BSxFfDS7.js.gz b/js/index-BSxFfDS7.js.gz new file mode 100644 index 00000000..b4006205 Binary files /dev/null and b/js/index-BSxFfDS7.js.gz differ diff --git a/js/index-BZAIqgSr.js b/js/index-BZAIqgSr.js deleted file mode 100644 index b8a0ef55..00000000 --- a/js/index-BZAIqgSr.js +++ /dev/null @@ -1 +0,0 @@ -import{B as a,C as c}from"./hooks-DeCbIFFS.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.4.38-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.4.38-Cp_qoKMZ.js";import"./@vueuse_shared@10.9.0_vue@3.4.38-BTLxKjPf.js";import"./utils-DGuZdIHQ.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.38-f9XU7P4m.js";import"./@vue_reactivity@3.4.38-CmXFqMGn.js";import"./@vue_shared@3.4.38-D8qfpBTH.js";const j=Vue.defineComponent({name:"REchart",setup(){const[u,{getChartInstance:n,dispose:i,render:r,isDispose:o}]=c(),[t,{getChartInstance:v,dispose:h,render:p,isDispose:V}]=c(),m=Vue.ref(!1),d=Vue.ref(!1),l=Vue.reactive({loading:!1}),g={legend:{},tooltip:{},xAxis:{type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]},yAxis:{type:"value"},series:[{name:"日期",data:[120,200,150,80,70,110,130],type:"bar",showBackground:!0,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)"}},{name:"数量",data:[12,220,250,180,20,10,190],type:"bar",showBackground:!0,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)"}}]},N={title:{text:"Referer of a Website",subtext:"Fake Data",left:"center"},tooltip:{trigger:"item"},legend:{orient:"vertical",left:"left"},series:[{name:"Access From",type:"pie",radius:"50%",data:[{value:1048,name:"Search Engine"},{value:735,name:"Direct"},{value:580,name:"Email"},{value:484,name:"Union Ads"},{value:300,name:"Video Ads"}],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]},s=Vue.ref({tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},legend:{data:["Email","Union Ads","Video Ads","Direct","Search Engine"]},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",boundaryGap:!1,data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]}],yAxis:[{type:"value"}],series:[{name:"Email",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[120,132,101,134,90,230,210]},{name:"Union Ads",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[220,182,191,234,290,330,310]},{name:"Video Ads",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[150,232,201,154,190,330,410]},{name:"Direct",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[320,332,301,334,390,330,320]},{name:"Search Engine",type:"line",stack:"Total",label:{show:!0,position:"top"},areaStyle:{},emphasis:{focus:"series"},data:[820,932,901,934,1290,1330,1320]}]}),f=e=>{l.loading=e},C=e=>{d.value=e},E=()=>{o()?r():window.$message.warning("不可以重复渲染图表~")},A=()=>{i()},F=()=>{const e=()=>Math.floor((Math.random()+1)*100);s.value.series[0].data=new Array(7).fill(0).map(()=>e()),s.value.series[1].data=new Array(7).fill(0).map(()=>e())};return{baseOptions:g,chartLoading:m,handleLoadingShow:f,chartAria:d,handleAriaShow:C,basePieOptions:N,baseLineOptions:s,...Vue.toRefs(l),mountChart:E,unmountChart:A,updateChartOptions:F,register:u,register2:t,dispose2:h,render2:p,isDispose2:V}},render(){const{register:u,register2:n,dispose2:i,render2:r,isDispose2:o}=this;return Vue.createVNode("div",{class:"echart"},[Vue.createVNode(naive.NCard,{title:"chart 组件"},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("该组件基于 ECharts, Vueuse 封装。默认做了最佳的优化封装实践。")]),Vue.createVNode("h3",null,[Vue.createTextVNode("开箱即用的优化策略:节流更新图表、异步渲染、自动销毁、贴花、加载、主题、视窗区域渲染、自动更新尺寸等高级特性。")])]}),Vue.createVNode(naive.NCard,{title:"预设 card 风格图表"},{default:()=>[Vue.createVNode(naive.NFlex,{style:["padding: 18px 0"]},{default:()=>[Vue.createVNode(naive.NButton,{onClick:this.mountChart.bind(this)},{default:()=>[Vue.createTextVNode("渲染")]}),Vue.createVNode(naive.NButton,{onClick:this.unmountChart.bind(this)},{default:()=>[Vue.createTextVNode("卸载")]}),Vue.createVNode(naive.NButton,{onClick:this.updateChartOptions.bind(this)},{default:()=>[Vue.createTextVNode("更新配置项")]})]}),Vue.createVNode("div",{class:"chart--container"},[Vue.createVNode(a,{onRegister:u,title:"周销售量",autoChangeTheme:!0,options:this.baseLineOptions,showAria:this.chartAria,preset:"card"},null)])]}),Vue.createVNode(naive.NCard,{title:"不跟随主题切换的暗色主题可视化图,并且手动指定原始主题色"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>{o()?r():window.$message.warning("不可以重复渲染图表~")}},{default:()=>[Vue.createTextVNode("渲染")]}),Vue.createVNode(naive.NButton,{onClick:i.bind(this)},{default:()=>[Vue.createTextVNode("卸载")]})]}),Vue.createVNode("div",{class:"chart--container"},[Vue.createVNode(a,{onRegister:n,autoChangeTheme:!1,theme:"default",options:this.baseOptions},null)])]})]}),Vue.createVNode(naive.NCard,{title:"加载动画"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.chartLoading,"onUpdate:value":t=>this.chartLoading=t,onUpdateValue:this.handleLoadingShow.bind(this),style:["padding: 18px 0"]},{checked:()=>"隐藏加载动画",unchecked:()=>"显示加载动画"}),Vue.createVNode("div",{class:"chart--container"},[Vue.createVNode(a,{loading:this.loading,options:this.baseOptions},null)])]}),Vue.createVNode(naive.NCard,{title:"贴画可视化图"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.chartAria,"onUpdate:value":t=>this.chartAria=t,onUpdateValue:this.handleAriaShow.bind(this),style:["padding: 18px 0"]},{checked:()=>"隐藏贴花",unchecked:()=>"显示贴花"}),Vue.createVNode("div",{class:"chart--container"},[Vue.createVNode(a,{options:this.baseOptions,showAria:this.chartAria},null)])]})])}});export{j as default}; diff --git a/js/index-BZAIqgSr.js.gz b/js/index-BZAIqgSr.js.gz deleted file mode 100644 index 4ad5035a..00000000 Binary files a/js/index-BZAIqgSr.js.gz and /dev/null differ diff --git a/js/index-Bh3tfFvH.js b/js/index-Bh3tfFvH.js deleted file mode 100644 index 1a6ff294..00000000 --- a/js/index-Bh3tfFvH.js +++ /dev/null @@ -1 +0,0 @@ -import"./hooks-DeCbIFFS.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.4.38-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import{s as u,g as r,l as a,x as o}from"./utils-DGuZdIHQ.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.4.38-Cp_qoKMZ.js";import"./@vueuse_shared@10.9.0_vue@3.4.38-BTLxKjPf.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.38-f9XU7P4m.js";import"./@vue_reactivity@3.4.38-CmXFqMGn.js";import"./@vue_shared@3.4.38-D8qfpBTH.js";const E=Vue.defineComponent({name:"CacheDemo",setup(){const e=Vue.ref("Ray"),t=Vue.ref("ray:");return{nameValue:e,currentPrefix:t}},render(){return Vue.createVNode(naive.NCard,{title:"cache 工具包示例"},{default:()=>Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("点击 setStorage 按钮,设置缓存示例")]),Vue.createVNode(naive.NInputGroup,null,{default:()=>[Vue.createVNode(naive.NInputGroupLabel,null,{default:()=>[Vue.createTextVNode("设置缓存内容")]}),Vue.createVNode(naive.NInput,{value:this.nameValue,"onUpdate:value":e=>this.nameValue=e,placeholder:"请输入姓名"},null)]}),Vue.createVNode(naive.NInputGroup,null,{default:()=>[Vue.createVNode(naive.NInputGroupLabel,null,{default:()=>[Vue.createTextVNode("设置前缀")]}),Vue.createVNode(naive.NInput,{value:this.currentPrefix,"onUpdate:value":e=>this.currentPrefix=e,placeholder:"请输入前缀"},null)]})]}),action:()=>Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>{u("name",this.nameValue,"sessionStorage",{prefix:!0,prefixKey:this.currentPrefix}),window.$message.success("设置成功")}},{default:()=>[Vue.createTextVNode("setStorage")]}),Vue.createVNode(naive.NButton,{onClick:()=>{const e=r("name","sessionStorage",{prefix:!0,prefixKey:this.currentPrefix});window.$message.success(`获取到的姓名为:${e}`)}},{default:()=>[Vue.createTextVNode("getStorage")]}),Vue.createVNode(naive.NButton,{onClick:()=>{a("name","sessionStorage",{prefix:!0,prefixKey:this.currentPrefix}),window.$message.success("删除成功")}},{default:()=>[Vue.createTextVNode("removeStorage")]}),Vue.createVNode(naive.NButton,{onClick:()=>{const e=o("name","sessionStorage",{prefix:!0,prefixKey:this.currentPrefix});window.$message.success(`是否存在:${e}`)}},{default:()=>[Vue.createTextVNode("hasStorage")]})]})})}});export{E as default}; diff --git a/js/index-Bh3tfFvH.js.gz b/js/index-Bh3tfFvH.js.gz deleted file mode 100644 index 37e10d74..00000000 Binary files a/js/index-Bh3tfFvH.js.gz and /dev/null differ diff --git a/js/index-Bpto_sNS.js b/js/index-Bpto_sNS.js new file mode 100644 index 00000000..7bbb75f8 --- /dev/null +++ b/js/index-Bpto_sNS.js @@ -0,0 +1 @@ +import{t as d,O as u}from"./hooks-DUpKDX8W.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.5.6-CMHqEu2-.js";import"./@vueuse_shared@10.9.0_vue@3.5.6-BTLxKjPf.js";import"./utils-DvxnuKiq.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.0.1_pinia@2.1.7-MNUqeAcu.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.0-DyxInw53.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.5.6-CUaD_-7Q.js";import"./@vue_reactivity@3.5.6-CXMPYrvZ.js";import"./@vue_shared@3.5.6-6BrT-eFF.js";const O=Vue.defineComponent({name:"SegmentDemo",setup(){const t=[{label:"这是一",key:"this is one"},{label:"这是二",key:"this is two"},{label:"这是三",key:"this is three"}],a=[...t,{label:"这是四",key:"this is four",slots:{default:()=>"我是自定义"}}],o=[...t,{label:"不许点",key:"disabled option",disabled:!0},{label:"popover",key:"popover",popover:"我是 popover"},{label:"popover options",key:"popover options",popover:{label:"我是配置项的 popover"}}],i=[{label:"设置",key:"setting",icon:Vue.createVNode(d,{name:"setting"},null)},{label:"刷新",key:"reload",icon:Vue.createVNode(d,{name:"reload"},null)},{label:"搜索",key:"search",icon:Vue.createVNode(d,{name:"search"},null),popover:"我是搜索"}],l=Vue.ref("this is three"),e=Vue.ref("medium"),n=Vue.ref("block");return{baseOptions:t,options:a,segmentValueOne:l,segmentChange:r=>{window.$message.info(String(r))},size:e,width:n,disabledOptions:o,iconOptions:i}},render(){const{options:t,baseOptions:a,disabledOptions:o,iconOptions:i}=this,{segmentChange:l}=this;return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NAlert,{title:"警告⚠️",type:"warning"},{default:()=>[Vue.createTextVNode("n-tabs 默认情况下会从 slot 获取默认展示的 tab 值,因此会产生一个 vue slot 的 warning。如果你不想看到这个 warning,请设定一个 default-value。")]}),Vue.createVNode(naive.NAlert,{title:"已知问题",type:"warning"},{default:()=>[Vue.createTextVNode("由于 NTabs 设计缘故,手动设置 width 为 fitContent 后,配置了 disabled, popover 的配置项,会丢失过度效果。具体可以看下面的例子。"),Vue.createVNode("br",null,null),Vue.createTextVNode("解决方法,在该组件外层包一层 div,设置宽度,但是不能为 fit-content。")]}),Vue.createVNode(naive.NCard,{title:"分段器"},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("该组件基于 NTabs + NTabPane 封装,所以保留了一些该组件的特性。")])]}),Vue.createVNode(naive.NGrid,{cols:2,xGap:8,yGap:12},{default:()=>[Vue.createVNode(naive.NGridItem,{span:1},{default:()=>[Vue.createVNode(naive.NCard,{title:"基础非受控分段器"},{default:()=>[Vue.createVNode(u,{defaultValue:"this is two",options:a},null)]})]}),Vue.createVNode(naive.NGridItem,{span:1},{default:()=>[Vue.createVNode(naive.NCard,{title:"自定义分段器插槽"},{default:()=>[Vue.createVNode(u,{defaultValue:this.segmentValueOne,options:t},null)]})]}),Vue.createVNode(naive.NGridItem,{span:1},{default:()=>[Vue.createVNode(naive.NCard,{title:"updateValue 事件"},{default:()=>[Vue.createVNode(u,{value:this.segmentValueOne,"onUpdate:value":e=>this.segmentValueOne=e,defaultValue:"this is two",options:o,onUpdateValue:l.bind(this),width:"block"},null)]})]}),Vue.createVNode(naive.NGridItem,{span:1},{default:()=>[Vue.createVNode(naive.NCard,{title:"自适应宽度"},{default:()=>[Vue.createVNode(u,{defaultValue:"setting",options:i,width:"block"},null)]})]}),Vue.createVNode(naive.NGridItem,{span:2},{default:()=>[Vue.createVNode(naive.NCard,{title:"尺寸"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0,size:"large"},{default:()=>[Vue.createVNode(naive.NRadioGroup,{value:this.size,"onUpdate:value":e=>this.size=e},{default:()=>[Vue.createVNode(naive.NRadio,{value:"small"},{default:()=>[Vue.createTextVNode("小")]}),Vue.createVNode(naive.NRadio,{value:"medium"},{default:()=>[Vue.createTextVNode("不小")]}),Vue.createVNode(naive.NRadio,{value:"large"},{default:()=>[Vue.createTextVNode("不太小")]})]}),Vue.createVNode(u,{defaultValue:"this is two",options:a,size:this.size,width:"block"},null)]})]})]}),Vue.createVNode(naive.NGridItem,{span:2},{default:()=>[Vue.createVNode(naive.NCard,{title:"宽度"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0,size:"large"},{default:()=>[Vue.createVNode(naive.NAlert,{title:"注意",type:"info"},{default:()=>[Vue.createTextVNode("RSegment 组件宽度默认为 fitContent,按照内容自适应宽度;如果需要自适应宽度,请设置 width 为 block;如果需要手动指定宽度请设置一个数字。")]}),Vue.createVNode(naive.NRadioGroup,{value:this.width,"onUpdate:value":e=>this.width=e},{default:()=>[Vue.createVNode(naive.NRadio,{value:"fitContent"},{default:()=>[Vue.createTextVNode("fitContent")]}),Vue.createVNode(naive.NRadio,{value:"block"},{default:()=>[Vue.createTextVNode("block")]}),Vue.createVNode(naive.NRadio,{value:800},{default:()=>[Vue.createTextVNode("800")]})]}),Vue.createVNode(u,{defaultValue:"this is two",options:o,width:this.width},null)]})]})]})]})]})}});export{O as default}; diff --git a/js/index-Bpto_sNS.js.gz b/js/index-Bpto_sNS.js.gz new file mode 100644 index 00000000..ca940c85 Binary files /dev/null and b/js/index-Bpto_sNS.js.gz differ diff --git a/js/index-C-LZM-Gd.js b/js/index-C-LZM-Gd.js deleted file mode 100644 index d185ce2c..00000000 --- a/js/index-C-LZM-Gd.js +++ /dev/null @@ -1 +0,0 @@ -import{r as o}from"./hooks-DeCbIFFS.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.4.38-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import{A as r}from"./index-43Sr2ZDd.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.4.38-Cp_qoKMZ.js";import"./@vueuse_shared@10.9.0_vue@3.4.38-BTLxKjPf.js";import"./utils-DGuZdIHQ.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.38-f9XU7P4m.js";import"./@vue_reactivity@3.4.38-CmXFqMGn.js";import"./@vue_shared@3.4.38-D8qfpBTH.js";function l(u){return typeof u=="function"||Object.prototype.toString.call(u)==="[object Object]"&&!Vue.isVNode(u)}const g=Vue.defineComponent({name:"RDashboard",setup(){return{coverLetterOptions:[{label:"掌握搬砖框架",des:()=>Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NTag,{type:"success"},{default:()=>[Vue.createTextVNode("Vue3.x")]}),Vue.createVNode(naive.NTag,{type:"info"},{default:()=>[Vue.createTextVNode("React")]})]})},{label:"从事搬砖时长",des:()=>Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NTag,{type:"success"},{default:()=>[Vue.createTextVNode("练习时长两年半的小白前端搬砖师")]})]})},{label:"个人",des:()=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createVNode(o,{name:"ray",size:"22"},null),Vue.createTextVNode("努力搬砖、努力摸鱼, 建设美丽家园")]}),span:2},{label:"补充说明",des:()=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createTextVNode("如果有希望补充的功能可以在"),Vue.createVNode("a",{class:"dashboard-link",href:"https://github.com/XiaoDaiGua-Ray/ray-template"},[Vue.createTextVNode("GitHub")]),Vue.createTextVNode("提一个 Issues")]}),span:2}],technologyTagOptions:[{label:"Vue3.x",value:"Vue3.x"},{label:"Vite5.x",value:"Vite5.x"},{label:"Pinia",value:"Pinia"},{label:"TS(X)",value:"TS(X)"}]}},render(){let u,t;return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,null,{header:()=>Vue.createVNode(o,{name:"ray",size:"64"},null),default:()=>"当你看见这个页面后, 就说明项目已经启动成功了~"}),Vue.createVNode(naive.NCard,{title:"个人介绍"},{default:()=>[Vue.createVNode(naive.NDescriptions,{bordered:!0,labelPlacement:"left",column:2},l(u=this.coverLetterOptions.map(e=>{let a;return Vue.createVNode(naive.NDescriptionsItem,{key:e.label,label:e.label,span:e==null?void 0:e.span},l(a=e.des())?a:{default:()=>[a]})}))?u:{default:()=>[u]})]}),Vue.createVNode(naive.NCard,{title:"项目介绍"},{default:()=>[Vue.createVNode(naive.NH6,null,{default:()=>[Vue.createTextVNode("技术栈")]}),Vue.createVNode(naive.NP,null,{default:()=>[Vue.createVNode(naive.NFlex,null,l(t=this.technologyTagOptions.map(e=>Vue.createVNode(naive.NTag,{key:e.value,type:"info"},{default:()=>[e.label]})))?t:{default:()=>[t]})]}),Vue.createVNode(naive.NH6,null,{default:()=>[Vue.createTextVNode("项目介绍")]}),Vue.createVNode(naive.NP,null,{default:()=>[Vue.createTextVNode("预设了最佳构建体验的配置与常用搬砖工具。意在提供一个简洁、快速上手的模板。")]})]}),Vue.createVNode(naive.NCard,{title:"友情链接"},{default:()=>[Vue.createVNode(r,null,null)]})]})}});export{g as default}; diff --git a/js/index-C-LZM-Gd.js.gz b/js/index-C-LZM-Gd.js.gz deleted file mode 100644 index 5479ff83..00000000 Binary files a/js/index-C-LZM-Gd.js.gz and /dev/null differ diff --git a/js/index-C2xNskF6.js b/js/index-C2xNskF6.js new file mode 100644 index 00000000..cc97b2de --- /dev/null +++ b/js/index-C2xNskF6.js @@ -0,0 +1 @@ +import{w as o,x as u,f as i}from"./hooks-DUpKDX8W.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import{g as a}from"./utils-DvxnuKiq.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.5.6-CMHqEu2-.js";import"./@vueuse_shared@10.9.0_vue@3.5.6-BTLxKjPf.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.0.1_pinia@2.1.7-MNUqeAcu.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.0-DyxInw53.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.5.6-CUaD_-7Q.js";import"./@vue_reactivity@3.5.6-CXMPYrvZ.js";import"./@vue_shared@3.5.6-6BrT-eFF.js";const s=Vue.defineComponent({name:"PageResult",props:{...naive.resultProps},setup(){const{router:e}=u();return{goBack:()=>{const{appMenuKey:r}=i,t=a(r,"sessionStorage",{defaultValue:""});t&&e.replace(t)}}},render(){const{goBack:e}=this;return Vue.createVNode("div",{class:"error-page"},[Vue.createVNode(naive.NResult,Vue.mergeProps(this.$props,{status:"500",title:"404 资源不存在",description:"小调皮你走错地方了"}),{...this.$slots,footer:()=>Vue.createVNode(naive.NFlex,{align:"center",justify:"center"},{default:()=>[Vue.createVNode(naive.NButton,{onClick:o.bind(this,!0)},{default:()=>[Vue.createTextVNode("返回首页")]}),Vue.createVNode(naive.NButton,{type:"primary",onClick:e.bind(this)},{default:()=>[Vue.createTextVNode("返回上一页面")]})]})})])}}),T=Vue.defineComponent({name:"ErrorPage404",setup(){return{}},render(){return Vue.createVNode(s,{status:"404"},null)}});export{T as default}; diff --git a/js/index-C2xNskF6.js.gz b/js/index-C2xNskF6.js.gz new file mode 100644 index 00000000..de62fe52 Binary files /dev/null and b/js/index-C2xNskF6.js.gz differ diff --git a/js/index-CCVgw_kY.js b/js/index-CCVgw_kY.js new file mode 100644 index 00000000..c69b117e --- /dev/null +++ b/js/index-CCVgw_kY.js @@ -0,0 +1 @@ +import{t as o}from"./hooks-DUpKDX8W.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import{A as r}from"./index-43Sr2ZDd.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.5.6-CMHqEu2-.js";import"./@vueuse_shared@10.9.0_vue@3.5.6-BTLxKjPf.js";import"./utils-DvxnuKiq.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.0.1_pinia@2.1.7-MNUqeAcu.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.0-DyxInw53.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.5.6-CUaD_-7Q.js";import"./@vue_reactivity@3.5.6-CXMPYrvZ.js";import"./@vue_shared@3.5.6-6BrT-eFF.js";function l(u){return typeof u=="function"||Object.prototype.toString.call(u)==="[object Object]"&&!Vue.isVNode(u)}const O=Vue.defineComponent({name:"RDashboard",setup(){return{coverLetterOptions:[{label:"掌握搬砖框架",des:()=>Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NTag,{type:"success"},{default:()=>[Vue.createTextVNode("Vue3.x")]}),Vue.createVNode(naive.NTag,{type:"info"},{default:()=>[Vue.createTextVNode("React")]})]})},{label:"从事搬砖时长",des:()=>Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NTag,{type:"success"},{default:()=>[Vue.createTextVNode("练习时长两年半的小白前端搬砖师")]})]})},{label:"个人",des:()=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createVNode(o,{name:"ray",size:"22"},null),Vue.createTextVNode("努力搬砖、努力摸鱼, 建设美丽家园")]}),span:2},{label:"补充说明",des:()=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createTextVNode("如果有希望补充的功能可以在"),Vue.createVNode("a",{class:"dashboard-link",href:"https://github.com/XiaoDaiGua-Ray/ray-template"},[Vue.createTextVNode("GitHub")]),Vue.createTextVNode("提一个 Issues")]}),span:2}],technologyTagOptions:[{label:"Vue3.x",value:"Vue3.x"},{label:"Vite5.x",value:"Vite5.x"},{label:"Pinia",value:"Pinia"},{label:"TS(X)",value:"TS(X)"}]}},render(){let u,t;return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,null,{header:()=>Vue.createVNode(o,{name:"ray",size:"64"},null),default:()=>"当你看见这个页面后, 就说明项目已经启动成功了~"}),Vue.createVNode(naive.NCard,{title:"个人介绍"},{default:()=>[Vue.createVNode(naive.NDescriptions,{bordered:!0,labelPlacement:"left",column:2},l(u=this.coverLetterOptions.map(e=>{let a;return Vue.createVNode(naive.NDescriptionsItem,{key:e.label,label:e.label,span:e==null?void 0:e.span},l(a=e.des())?a:{default:()=>[a]})}))?u:{default:()=>[u]})]}),Vue.createVNode(naive.NCard,{title:"项目介绍"},{default:()=>[Vue.createVNode(naive.NH6,null,{default:()=>[Vue.createTextVNode("技术栈")]}),Vue.createVNode(naive.NP,null,{default:()=>[Vue.createVNode(naive.NFlex,null,l(t=this.technologyTagOptions.map(e=>Vue.createVNode(naive.NTag,{key:e.value,type:"info"},{default:()=>[e.label]})))?t:{default:()=>[t]})]}),Vue.createVNode(naive.NH6,null,{default:()=>[Vue.createTextVNode("项目介绍")]}),Vue.createVNode(naive.NP,null,{default:()=>[Vue.createTextVNode("预设了最佳构建体验的配置与常用搬砖工具。意在提供一个简洁、快速上手的模板。")]})]}),Vue.createVNode(naive.NCard,{title:"友情链接"},{default:()=>[Vue.createVNode(r,null,null)]})]})}});export{O as default}; diff --git a/js/index-CCVgw_kY.js.gz b/js/index-CCVgw_kY.js.gz new file mode 100644 index 00000000..62209582 Binary files /dev/null and b/js/index-CCVgw_kY.js.gz differ diff --git a/js/index-CPNbYLeV.js b/js/index-CPNbYLeV.js new file mode 100644 index 00000000..cd8fe3ec --- /dev/null +++ b/js/index-CPNbYLeV.js @@ -0,0 +1 @@ +var g={pkg:{dependencies:{"@vueuse/core":"^10.9.0",axios:"^1.7.5",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.39.0",pinia:"^2.1.7","pinia-plugin-persistedstate":"^4.0.1","print-js":"^1.6.0",vue:"^3.5.6","vue-demi":"0.14.6","vue-hooks-plus":"2.2.1","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.8.1","@commitlint/config-conventional":"^17.8.1","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.2.2","@types/dom-to-image":"2.6.7","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.21.0","@typescript-eslint/parser":"^6.21.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.0","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.16",depcheck:"^1.4.7",eslint:"^8.57.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.2.0",postcss:"^8.4.38","postcss-px-to-viewport-8-with-include":"1.2.2",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.18.2","unplugin-vue-components":"^0.27.4",vite:"^5.4.3","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.0.13"},name:"ray-template",version:"4.9.5"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};function a(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Vue.isVNode(t)}const V=Vue.defineComponent({name:"RelyAbout",setup(){const{pkg:t}=g,{dependencies:i,devDependencies:n,name:e,version:d}=t,c=[{title:"依赖名称",key:"name"},{title:"依赖版本",key:"relyVersion"},{title:"依赖地址",key:"relyAddress"}],l=Vue.ref([]),o=Vue.ref([]),v=[{name:"项目名称",label:e},{name:"版本信息",label:d},{name:"项目地址",label:"GitHub",url:"https://github.com/XiaoDaiGua-Ray/ray-template"}],m=()=>{const s=r=>Object.keys(r).reduce((p,u)=>(p.push({name:u,relyVersion:r[u],relyAddress:""}),p),[]);l.value=s(i),o.value=s(n)},y=s=>{s.url&&window.open(s.url)};return Vue.onBeforeMount(()=>{m()}),{columns:c,dependenciesOptions:l,devDependenciesOptions:o,templateOptions:v,handleTagClick:y}},render(){let t,i,n;return Vue.createVNode("div",{class:"rely-about"},[Vue.createVNode(naive.NCard,{title:"关于项目"},{default:()=>[Vue.createTextVNode("ray template 是一个基于: tsx pinia vue3.x vite sass 的中后台解决方案. 项目干净与轻巧, 已经集成了很多项目中可能需要的搬砖工具可以让你快速起一个相关项目, 并且不需要剔除大量无用页面与组件.")]}),Vue.createVNode(naive.NCard,{title:"项目信息"},{default:()=>[Vue.createVNode(naive.NDescriptions,{bordered:!0,labelPlacement:"left"},a(t=this.templateOptions.map(e=>Vue.createVNode(naive.NDescriptionsItem,{key:e.name,label:e.name},{default:()=>[Vue.createVNode(naive.NTag,Vue.mergeProps({bordered:!1,type:"info"},{onClick:this.handleTagClick.bind(this,e)},{style:[e.url?"cursor: pointer":""]}),{default:()=>[e.label]})]})))?t:{default:()=>[t]})]}),Vue.createVNode(naive.NCard,{title:"生产依赖"},{default:()=>[Vue.createVNode(naive.NDescriptions,{bordered:!0,labelPlacement:"left"},a(i=this.dependenciesOptions.map(e=>Vue.createVNode(naive.NDescriptionsItem,{key:e.name,label:e.name},{default:()=>[e.relyVersion]})))?i:{default:()=>[i]})]}),Vue.createVNode(naive.NCard,{title:"开发依赖"},{default:()=>[Vue.createVNode(naive.NDescriptions,{bordered:!0,labelPlacement:"left"},a(n=this.devDependenciesOptions.map(e=>Vue.createVNode(naive.NDescriptionsItem,{key:e.name,label:e.name},{default:()=>[e.relyVersion]})))?n:{default:()=>[n]})]})])}});export{V as default}; diff --git a/js/index-CPNbYLeV.js.gz b/js/index-CPNbYLeV.js.gz new file mode 100644 index 00000000..ef079420 Binary files /dev/null and b/js/index-CPNbYLeV.js.gz differ diff --git a/js/index-CZvHIHEr.js b/js/index-CZvHIHEr.js new file mode 100644 index 00000000..2d8b041c --- /dev/null +++ b/js/index-CZvHIHEr.js @@ -0,0 +1 @@ +import{H as e}from"./hooks-DUpKDX8W.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.5.6-CMHqEu2-.js";import"./@vueuse_shared@10.9.0_vue@3.5.6-BTLxKjPf.js";import"./utils-DvxnuKiq.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.0.1_pinia@2.1.7-MNUqeAcu.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.0-DyxInw53.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.5.6-CUaD_-7Q.js";import"./@vue_reactivity@3.5.6-CXMPYrvZ.js";import"./@vue_shared@3.5.6-6BrT-eFF.js";const b=Vue.defineComponent({name:"IframeDemo",setup(){return{}},render(){return Vue.createVNode(naive.NFlex,{vertical:!0,size:[20,20]},{default:()=>[Vue.createVNode(naive.NCard,{title:"naive ui(延迟加载)"},{default:()=>[Vue.createVNode(e,{src:"https://www.naiveui.com/zh-CN/dark",height:"300",allow:"fullscreen"},null)]}),Vue.createVNode(naive.NCard,{title:"vue-hooks-plus(立即加载)"},{default:()=>[Vue.createVNode(e,{src:"https://inhiblabcore.github.io/docs/hooks/",height:"300",lazy:!1},null)]})]})}});export{b as default}; diff --git a/js/index-CZvHIHEr.js.gz b/js/index-CZvHIHEr.js.gz new file mode 100644 index 00000000..fbc85b6e Binary files /dev/null and b/js/index-CZvHIHEr.js.gz differ diff --git a/js/index-CmEUgXeH.js b/js/index-CmEUgXeH.js new file mode 100644 index 00000000..69b8c053 --- /dev/null +++ b/js/index-CmEUgXeH.js @@ -0,0 +1 @@ +import{B as d}from"./hooks-DUpKDX8W.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.5.6-CMHqEu2-.js";import"./@vueuse_shared@10.9.0_vue@3.5.6-BTLxKjPf.js";import"./utils-DvxnuKiq.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.0.1_pinia@2.1.7-MNUqeAcu.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.0-DyxInw53.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.5.6-CUaD_-7Q.js";import"./@vue_reactivity@3.5.6-CXMPYrvZ.js";import"./@vue_shared@3.5.6-6BrT-eFF.js";const A=Vue.defineComponent({name:"ContextMenuDemo",setup(){const e=Vue.ref(),o=Vue.ref(!1),u=Vue.ref([{label:"杰·盖茨比",key:"jay gatsby"},{label:"黛西·布坎南",key:"daisy buchanan"},{type:"divider",key:"d1"},{label:"尼克·卡拉威",key:"nick caraway"}]),{x:r,y:i,show:a,updateShow:t}=d(e);return{demoOneRef:e,demoOneShow:o,x:r,y:i,show:a,options:u,clickOutside:n=>{n.preventDefault(),t(!1)},updateShow:t}},render(){const{x:e,y:o,show:u}=this,{clickOutside:r,updateShow:i}=this;return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,{title:"useContextmenuCoordinate + NDropdown 实现右键菜单"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("默认点击元素外部会关闭菜单。")]),Vue.createVNode("div",{ref:"demoOneRef",style:"width: 100%; height: 200px; background-color: rgba(0, 128, 0, 0.5)"},[Vue.createTextVNode("右击")])]})]}),Vue.createVNode(naive.NDropdown,{show:u,x:e,y:o,options:this.options,trigger:"manual",placement:"bottom-start",onSelect:(a,t)=>{window.$message.info(`选中了 ${t.label}`),i(!1)},onClickoutside:r.bind(this)},null)]})}});export{A as default}; diff --git a/js/index-CmEUgXeH.js.gz b/js/index-CmEUgXeH.js.gz new file mode 100644 index 00000000..a5b9694e Binary files /dev/null and b/js/index-CmEUgXeH.js.gz differ diff --git a/js/index-CthhD5N4.js b/js/index-CthhD5N4.js new file mode 100644 index 00000000..25a177da --- /dev/null +++ b/js/index-CthhD5N4.js @@ -0,0 +1 @@ +import{a as u}from"./vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import{s as o}from"./instance-Mlryd73B.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./hooks-DUpKDX8W.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.5.6-CMHqEu2-.js";import"./@vueuse_shared@10.9.0_vue@3.5.6-BTLxKjPf.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./print-js@1.6.0-BdoEj60G.js";import"./utils-DvxnuKiq.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./pinia-plugin-persistedstate@4.0.1_pinia@2.1.7-MNUqeAcu.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.0-DyxInw53.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.5.6-CUaD_-7Q.js";import"./@vue_reactivity@3.5.6-CXMPYrvZ.js";import"./@vue_shared@3.5.6-6BrT-eFF.js";function D(e,t){return u(()=>o(e),Object.assign({},t))}const p=e=>o({url:`https://www.tianqiapi.com/api?version=v9&appid=23035354&appsecret=8YvlPNrz&city=${e}`,method:"get"}),n=()=>o({url:"https://jsonplaceholder.typicode.com/todos/1",method:"get"}),H=Vue.defineComponent({name:"RAxios",setup(){const e=Vue.reactive({weatherData:[],inputCityValue:null,throttleDemoInputValue:null,debounceDemoInputValue:null,weatherDemoInputValue:null}),{data:t,loading:a,run:r}=u(n,{throttleWait:1e3,manual:!0}),{data:l,loading:d,run:V}=u(n,{debounceWait:1e3,manual:!0}),{data:i,loading:c,run:s}=u(p,{throttleWait:1e3,manual:!0}),{data:m,loading:F,run:N}=D({url:"https://jsonplaceholder.typicode.com/todos/1",method:"get",cancelConfig:{cancel:!0}},{manual:!0,onError:()=>{window.$message.error("接口出现异常")}});return{...Vue.toRefs(e),throttleDemoValue:t,throttleDemoLoading:a,throttleDemoRun:r,debounceDemoValue:l,debounceDemoLoading:d,debounceDemoRun:V,weatherDemoValue:i,weatherDemoLoading:c,weatherDemoRun:s,demoData:m,demoLoading:F,demoRun:N}},render(){return Vue.createVNode(naive.NLayout,null,{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode("h1",null,[Vue.createTextVNode("请求")]),Vue.createVNode(naive.NCard,null,{default:()=>[Vue.createVNode("h2",null,[Vue.createTextVNode("useRequest")]),Vue.createVNode("p",null,[Vue.createTextVNode("支持配置化请求数据")]),Vue.createVNode("h2",null,[Vue.createTextVNode("useHookPlusRequest")]),Vue.createVNode("p",null,[Vue.createTextVNode("支持包裹一个拥有 promise 状态的异步函数,可以用来包裹一个 axios 请求返回值方法")])]}),Vue.createVNode("h1",null,[Vue.createTextVNode("使用 useRequest 获取")]),Vue.createVNode(naive.NCard,{title:"请求函数"},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("1.基于 axios 封装,能够自动取消连续请求,避免重复渲染造成问题")]),Vue.createVNode("h3",null,[Vue.createTextVNode("2.打开控制台 => 网络 => 使用低速3g网络 => 查看控制台被取消的请求")]),Vue.createVNode("h3",null,[Vue.createTextVNode("3.详情请查看文档")])]}),Vue.createVNode(naive.NCard,{title:"useRequest示例(手动触发)"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>{var e;return[Vue.createVNode(naive.NButton,{onClick:this.demoRun.bind(this)},{default:()=>[Vue.createTextVNode("获取数据")]}),Vue.createVNode("h3",null,[Vue.createTextVNode("结果: "),this.demoLoading?"获取中...":(e=this.demoData)==null?void 0:e.title])]}})]}),Vue.createVNode("h1",null,[Vue.createTextVNode("使用 useHookPlusRequest 获取")]),Vue.createVNode(naive.NCard,{title:"节流"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NInput,{value:this.throttleDemoInputValue,"onUpdate:value":e=>this.throttleDemoInputValue=e,onUpdateValue:()=>{this.throttleDemoRun()}},null),Vue.createVNode("h3",null,[Vue.createTextVNode("不论触发多少次,一秒钟之内仅会触发一次")]),Vue.createVNode("h3",null,[Vue.createTextVNode("当前状态: "),this.throttleDemoLoading?"获取中...":"获取成功!!!"])]})]}),Vue.createVNode(naive.NCard,{title:"防抖"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NInput,{value:this.debounceDemoInputValue,"onUpdate:value":e=>this.debounceDemoInputValue=e,onUpdateValue:()=>{this.debounceDemoRun()}},null),Vue.createVNode("h3",null,[Vue.createTextVNode("一秒后才会执行,如果中途重新请求,则会重新计时")]),Vue.createVNode("h3",null,[Vue.createTextVNode("当前状态: "),this.debounceDemoLoading?"获取中...":"获取成功!!!"])]})]}),Vue.createVNode(naive.NCard,{title:"获取气候"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NInput,{value:this.weatherDemoInputValue,"onUpdate:value":e=>this.weatherDemoInputValue=e,onUpdateValue:e=>{this.weatherDemoRun(e)}},null),Vue.createVNode("h3",null,[Vue.createTextVNode("该示例演示了如何根据动态值获取数据")]),Vue.createVNode("h3",null,[Vue.createTextVNode("当前状态: "),this.weatherDemoLoading?"获取中...":"获取成功!!!"])]})]})]})]})}});export{H as default}; diff --git a/js/index-CthhD5N4.js.gz b/js/index-CthhD5N4.js.gz new file mode 100644 index 00000000..4a083e3a Binary files /dev/null and b/js/index-CthhD5N4.js.gz differ diff --git a/js/index-CzMkrH92.js b/js/index-CzMkrH92.js deleted file mode 100644 index 64cfe682..00000000 --- a/js/index-CzMkrH92.js +++ /dev/null @@ -1 +0,0 @@ -import{a as u}from"./vue-hooks-plus@2.2.1_vue@3.4.38-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import{s as o}from"./instance-B5j64X7o.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./hooks-DeCbIFFS.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.4.38-Cp_qoKMZ.js";import"./@vueuse_shared@10.9.0_vue@3.4.38-BTLxKjPf.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./print-js@1.6.0-BdoEj60G.js";import"./utils-DGuZdIHQ.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.38-f9XU7P4m.js";import"./@vue_reactivity@3.4.38-CmXFqMGn.js";import"./@vue_shared@3.4.38-D8qfpBTH.js";function D(e,t){return u(()=>o(e),Object.assign({},t))}const h=e=>o({url:`https://www.tianqiapi.com/api?version=v9&appid=23035354&appsecret=8YvlPNrz&city=${e}`,method:"get"}),n=()=>o({url:"https://jsonplaceholder.typicode.com/todos/1",method:"get"}),P=Vue.defineComponent({name:"RAxios",setup(){const e=Vue.reactive({weatherData:[],inputCityValue:null,throttleDemoInputValue:null,debounceDemoInputValue:null,weatherDemoInputValue:null}),{data:t,loading:a,run:r}=u(n,{throttleWait:1e3,manual:!0}),{data:l,loading:d,run:V}=u(n,{debounceWait:1e3,manual:!0}),{data:i,loading:c,run:s}=u(h,{throttleWait:1e3,manual:!0}),{data:F,loading:N,run:m}=D({url:"https://jsonplaceholder.typicode.com/todos/1",method:"get",cancelConfig:{cancel:!0}},{manual:!0,onError:()=>{window.$message.error("接口出现异常")}});return{...Vue.toRefs(e),throttleDemoValue:t,throttleDemoLoading:a,throttleDemoRun:r,debounceDemoValue:l,debounceDemoLoading:d,debounceDemoRun:V,weatherDemoValue:i,weatherDemoLoading:c,weatherDemoRun:s,demoData:F,demoLoading:N,demoRun:m}},render(){return Vue.createVNode(naive.NLayout,null,{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode("h1",null,[Vue.createTextVNode("请求")]),Vue.createVNode(naive.NCard,null,{default:()=>[Vue.createVNode("h2",null,[Vue.createTextVNode("useRequest")]),Vue.createVNode("p",null,[Vue.createTextVNode("支持配置化请求数据")]),Vue.createVNode("h2",null,[Vue.createTextVNode("useHookPlusRequest")]),Vue.createVNode("p",null,[Vue.createTextVNode("支持包裹一个拥有 promise 状态的异步函数,可以用来包裹一个 axios 请求返回值方法")])]}),Vue.createVNode("h1",null,[Vue.createTextVNode("使用 useRequest 获取")]),Vue.createVNode(naive.NCard,{title:"请求函数"},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("1.基于 axios 封装,能够自动取消连续请求,避免重复渲染造成问题")]),Vue.createVNode("h3",null,[Vue.createTextVNode("2.打开控制台 => 网络 => 使用低速3g网络 => 查看控制台被取消的请求")]),Vue.createVNode("h3",null,[Vue.createTextVNode("3.详情请查看文档")])]}),Vue.createVNode(naive.NCard,{title:"useRequest示例(手动触发)"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>{var e;return[Vue.createVNode(naive.NButton,{onClick:this.demoRun.bind(this)},{default:()=>[Vue.createTextVNode("获取数据")]}),Vue.createVNode("h3",null,[Vue.createTextVNode("结果: "),this.demoLoading?"获取中...":(e=this.demoData)==null?void 0:e.title])]}})]}),Vue.createVNode("h1",null,[Vue.createTextVNode("使用 useHookPlusRequest 获取")]),Vue.createVNode(naive.NCard,{title:"节流"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NInput,{value:this.throttleDemoInputValue,"onUpdate:value":e=>this.throttleDemoInputValue=e,onUpdateValue:()=>{this.throttleDemoRun()}},null),Vue.createVNode("h3",null,[Vue.createTextVNode("不论触发多少次,一秒钟之内仅会触发一次")]),Vue.createVNode("h3",null,[Vue.createTextVNode("当前状态: "),this.throttleDemoLoading?"获取中...":"获取成功!!!"])]})]}),Vue.createVNode(naive.NCard,{title:"防抖"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NInput,{value:this.debounceDemoInputValue,"onUpdate:value":e=>this.debounceDemoInputValue=e,onUpdateValue:()=>{this.debounceDemoRun()}},null),Vue.createVNode("h3",null,[Vue.createTextVNode("一秒后才会执行,如果中途重新请求,则会重新计时")]),Vue.createVNode("h3",null,[Vue.createTextVNode("当前状态: "),this.debounceDemoLoading?"获取中...":"获取成功!!!"])]})]}),Vue.createVNode(naive.NCard,{title:"获取气候"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NInput,{value:this.weatherDemoInputValue,"onUpdate:value":e=>this.weatherDemoInputValue=e,onUpdateValue:e=>{this.weatherDemoRun(e)}},null),Vue.createVNode("h3",null,[Vue.createTextVNode("该示例演示了如何根据动态值获取数据")]),Vue.createVNode("h3",null,[Vue.createTextVNode("当前状态: "),this.weatherDemoLoading?"获取中...":"获取成功!!!"])]})]})]})]})}});export{P as default}; diff --git a/js/index-CzMkrH92.js.gz b/js/index-CzMkrH92.js.gz deleted file mode 100644 index ddae1944..00000000 Binary files a/js/index-CzMkrH92.js.gz and /dev/null differ diff --git a/js/index-D1YBALoT.js b/js/index-D1YBALoT.js new file mode 100644 index 00000000..37a9f955 --- /dev/null +++ b/js/index-D1YBALoT.js @@ -0,0 +1 @@ +import{N as r,R as a}from"./hooks-DUpKDX8W.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.5.6-CMHqEu2-.js";import"./@vueuse_shared@10.9.0_vue@3.5.6-BTLxKjPf.js";import"./utils-DvxnuKiq.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.0.1_pinia@2.1.7-MNUqeAcu.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.0-DyxInw53.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.5.6-CUaD_-7Q.js";import"./@vue_reactivity@3.5.6-CXMPYrvZ.js";import"./@vue_shared@3.5.6-6BrT-eFF.js";const g=Vue.defineComponent({name:"ModalDemo",setup(){const t=Vue.reactive({modal1:!1,modal2:!1,modal3:!1}),{create:e}=r(),u=()=>{e({title:"卡片模态框",dad:!0,preset:"card",content:"我可以被拖拽的全屏card模态框",fullscreen:!0})},o=()=>{e({title:"模态框",content:"内容",preset:"dialog",dad:!0})};return{...Vue.toRefs(t),createCardModal:u,createDialogModal:o}},render(){const{createCardModal:t,createDialogModal:e}=this;return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,{title:"props"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("memoryPosition: 是否记住上一次被拖拽的位置,如果设置为 true,那么下一次打开的时候会自动定位到上一次的位置。")]),Vue.createVNode("h3",null,[Vue.createTextVNode("fullscreen: 全屏模态框。")]),Vue.createVNode("h3",null,[Vue.createTextVNode("dad: 启用拖拽,当配置为 false 时,会禁用拖拽效果。")])]})]}),Vue.createVNode(a,{show:this.modal1,"onUpdate:show":u=>this.modal1=u,title:"全屏模态框",fullscreen:!0,preset:"card"},{default:()=>[Vue.createTextVNode("我是全屏模态框,并且会自动启用滚动条。")]}),Vue.createVNode(a,{show:this.modal2,"onUpdate:show":u=>this.modal2=u,preset:"card",title:"可拖拽卡片模态框",dad:!0},{default:()=>[Vue.createVNode("p",null,[Vue.createTextVNode("我可以被拖拽")])]}),Vue.createVNode(a,{show:this.modal3,"onUpdate:show":u=>this.modal3=u,preset:"dialog",title:"可拖拽卡片模态框",dad:!0},{default:()=>[Vue.createVNode("p",null,[Vue.createTextVNode("我可以被拖拽")])]}),Vue.createVNode(naive.NCard,{title:"可拖拽模态框"},{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>this.modal2=!0},{default:()=>[Vue.createTextVNode("卡片模态框")]}),Vue.createVNode(naive.NButton,{onClick:()=>this.modal3=!0},{default:()=>[Vue.createTextVNode("对话框模态框")]})]}),Vue.createVNode(naive.NCard,{title:"全屏模态框"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode("h4",null,[Vue.createTextVNode("全屏模态框需要同时设置:fullscreen 为 true,并且 preset 为 card 时才会生效。")]),Vue.createVNode(naive.NButton,{onClick:()=>this.modal1=!0},{default:()=>[Vue.createTextVNode("打开")]})]})]}),Vue.createVNode(naive.NCard,{title:"手动设置宽度"},{default:()=>[Vue.createVNode("h4",null,[Vue.createTextVNode("width(--r-modal-width): 当 preset 不为 dialog 或者 card 的时候,你可能用得上。")]),Vue.createVNode("h4",null,[Vue.createTextVNode("dialogWidth(--r-modal-dialog-width): 当 preset 为 dialog,你可能用得上。")]),Vue.createVNode("h4",null,[Vue.createTextVNode("cardWidth(--r-modal-card-width): 当 preset 为 card,你可能用得上。")]),Vue.createVNode("h4",null,[Vue.createTextVNode("所有的宽度配置属性都会注入一个对应的 `css variable`,有时候会用上。")])]}),Vue.createVNode(naive.NCard,{title:"重写 useModal"},{default:()=>[Vue.createVNode(naive.NButton,{onClick:t.bind(this)},{default:()=>[Vue.createTextVNode("创建卡片模态框")]}),Vue.createVNode(naive.NButton,{onClick:e.bind(this)},{default:()=>[Vue.createTextVNode("创建对话框模态框")]})]})]})}});export{g as default}; diff --git a/js/index-D1YBALoT.js.gz b/js/index-D1YBALoT.js.gz new file mode 100644 index 00000000..043c8766 Binary files /dev/null and b/js/index-D1YBALoT.js.gz differ diff --git a/js/index-D2S_rdww.js b/js/index-D2S_rdww.js deleted file mode 100644 index 7a163380..00000000 --- a/js/index-D2S_rdww.js +++ /dev/null @@ -1 +0,0 @@ -import{r as s,_ as o}from"./hooks-DeCbIFFS.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.4.38-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.4.38-Cp_qoKMZ.js";import"./@vueuse_shared@10.9.0_vue@3.4.38-BTLxKjPf.js";import"./utils-DGuZdIHQ.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.38-f9XU7P4m.js";import"./@vue_reactivity@3.4.38-CmXFqMGn.js";import"./@vue_shared@3.4.38-D8qfpBTH.js";function c(i){return typeof i=="function"||Object.prototype.toString.call(i)==="[object Object]"&&!Vue.isVNode(i)}const h=Vue.defineComponent({name:"PreviewSVGIcons",setup(){const i=Vue.ref([]);return Object.keys(Object.assign({"/src/icons/action/draggable.svg":()=>o(()=>import("./draggable-D6qza0mp.js"),[]),"/src/icons/action/fullscreen.svg":()=>o(()=>import("./fullscreen-Cjm0bPGx.js"),[]),"/src/icons/action/fullscreen_fold.svg":()=>o(()=>import("./fullscreen_fold-BUWP5JFn.js"),[]),"/src/icons/action/out.svg":()=>o(()=>import("./out-CMQCc625.js"),[]),"/src/icons/action/reload.svg":()=>o(()=>import("./reload-BCsJCBo-.js"),[]),"/src/icons/action/search.svg":()=>o(()=>import("./search-DPR73sQp.js"),[]),"/src/icons/action/setting.svg":()=>o(()=>import("./setting-CqYm8XBn.js"),[]),"/src/icons/directional/adjustment.svg":()=>o(()=>import("./adjustment-DIo_g8Za.js"),[]),"/src/icons/directional/close_left.svg":()=>o(()=>import("./close_left-C6k2eGWg.js"),[]),"/src/icons/directional/close_right.svg":()=>o(()=>import("./close_right-CrnE5vtw.js"),[]),"/src/icons/directional/expanded.svg":()=>o(()=>import("./expanded-BswQDJyW.js"),[]),"/src/icons/directional/left_arrow.svg":()=>o(()=>import("./left_arrow-DAKeumRT.js"),[]),"/src/icons/directional/lock.svg":()=>o(()=>import("./lock-dC7sQfx2.js"),[]),"/src/icons/directional/resize_h.svg":()=>o(()=>import("./resize_h-DA2p7YCQ.js"),[]),"/src/icons/directional/right_arrow.svg":()=>o(()=>import("./right_arrow-CbmroMoE.js"),[]),"/src/icons/directional/row_end.svg":()=>o(()=>import("./row_end-CqbNhb3G.js"),[]),"/src/icons/directional/row_head.svg":()=>o(()=>import("./row_head-BCxi2x-p.js"),[]),"/src/icons/logo/github.svg":()=>o(()=>import("./github-B4ARmChV.js"),[]),"/src/icons/logo/google.svg":()=>o(()=>import("./google-GEcrFhWr.js"),[]),"/src/icons/logo/login_bg.svg":()=>o(()=>import("./login_bg-CRcyXHBf.js"),[]),"/src/icons/logo/office.svg":()=>o(()=>import("./office-B5pC1KGi.js"),[]),"/src/icons/logo/ray.svg":()=>o(()=>import("./ray-B93BjtIh.js"),[]),"/src/icons/logo/twitter.svg":()=>o(()=>import("./twitter-DjE7U1HD.js"),[]),"/src/icons/template/dark.svg":()=>o(()=>import("./dark-BqsidBpX.js"),[]),"/src/icons/template/light.svg":()=>o(()=>import("./light-DWbddXnY.js"),[]),"/src/icons/tip/axios.svg":()=>o(()=>import("./axios-o8g4A-7A.js"),[]),"/src/icons/tip/close.svg":()=>o(()=>import("./close-10SEVxdb.js"),[]),"/src/icons/tip/dashboard.svg":()=>o(()=>import("./dashboard-70op-CO0.js"),[]),"/src/icons/tip/echart.svg":()=>o(()=>import("./echart-c_3t778P.js"),[]),"/src/icons/tip/enter.svg":()=>o(()=>import("./enter-CPGcsJ25.js"),[]),"/src/icons/tip/error.svg":()=>o(()=>import("./error-CjWalrOZ.js"),[]),"/src/icons/tip/export_excel.svg":()=>o(()=>import("./export_excel-ZmNoLzCr.js"),[]),"/src/icons/tip/language.svg":()=>o(()=>import("./language-C4AMs4_p.js"),[]),"/src/icons/tip/menu.svg":()=>o(()=>import("./menu-CPMkWw77.js"),[]),"/src/icons/tip/more.svg":()=>o(()=>import("./more-DW-qndwg.js"),[]),"/src/icons/tip/mouse.svg":()=>o(()=>import("./mouse-C_l6KSTs.js"),[]),"/src/icons/tip/other.svg":()=>o(()=>import("./other-DU6bZUrM.js"),[]),"/src/icons/tip/print.svg":()=>o(()=>import("./print-jFo_n0lx.js"),[]),"/src/icons/tip/rely.svg":()=>o(()=>import("./rely-DlDUQEbT.js"),[]),"/src/icons/tip/table.svg":()=>o(()=>import("./table-tYkftQGA.js"),[])})).forEach(e=>{var t;const r=(t=e.match(/\/(\w+)\.svg/))==null?void 0:t[1];r&&i.value.push(r)}),{icons:i}},render(){return Vue.createVNode(naive.NCard,{title:"svg图标"},{"header-extra":()=>"点击图标复制代码",default:()=>{let i;return Vue.createVNode(naive.NFlex,null,c(i=this.icons.map(_=>Vue.withDirectives(Vue.createVNode("div",{class:"pre-view-icons__card",key:_},[Vue.createVNode(naive.NPopover,null,{trigger:()=>Vue.createVNode(s,{name:_,size:"56",cursor:"pointer"},null),default:()=>_})]),[[Vue.resolveDirective("copy"),``]])))?i:{default:()=>[i]})}})}});export{h as default}; diff --git a/js/index-D2S_rdww.js.gz b/js/index-D2S_rdww.js.gz deleted file mode 100644 index c7ca6322..00000000 Binary files a/js/index-D2S_rdww.js.gz and /dev/null differ diff --git a/js/index-DCDj5HZ8.js b/js/index-DCDj5HZ8.js new file mode 100644 index 00000000..5256452e --- /dev/null +++ b/js/index-DCDj5HZ8.js @@ -0,0 +1 @@ +import"./hooks-DUpKDX8W.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import{s as u,g as r,o as a,A as o}from"./utils-DvxnuKiq.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.5.6-CMHqEu2-.js";import"./@vueuse_shared@10.9.0_vue@3.5.6-BTLxKjPf.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.0.1_pinia@2.1.7-MNUqeAcu.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.0-DyxInw53.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.5.6-CUaD_-7Q.js";import"./@vue_reactivity@3.5.6-CXMPYrvZ.js";import"./@vue_shared@3.5.6-6BrT-eFF.js";const P=Vue.defineComponent({name:"CacheDemo",setup(){const e=Vue.ref("Ray"),t=Vue.ref("ray:");return{nameValue:e,currentPrefix:t}},render(){return Vue.createVNode(naive.NCard,{title:"cache 工具包示例"},{default:()=>Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("点击 setStorage 按钮,设置缓存示例")]),Vue.createVNode(naive.NInputGroup,null,{default:()=>[Vue.createVNode(naive.NInputGroupLabel,null,{default:()=>[Vue.createTextVNode("设置缓存内容")]}),Vue.createVNode(naive.NInput,{value:this.nameValue,"onUpdate:value":e=>this.nameValue=e,placeholder:"请输入姓名"},null)]}),Vue.createVNode(naive.NInputGroup,null,{default:()=>[Vue.createVNode(naive.NInputGroupLabel,null,{default:()=>[Vue.createTextVNode("设置前缀")]}),Vue.createVNode(naive.NInput,{value:this.currentPrefix,"onUpdate:value":e=>this.currentPrefix=e,placeholder:"请输入前缀"},null)]})]}),action:()=>Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>{u("name",this.nameValue,"sessionStorage",{prefix:!0,prefixKey:this.currentPrefix}),window.$message.success("设置成功")}},{default:()=>[Vue.createTextVNode("setStorage")]}),Vue.createVNode(naive.NButton,{onClick:()=>{const e=r("name","sessionStorage",{prefix:!0,prefixKey:this.currentPrefix});window.$message.success(`获取到的姓名为:${e}`)}},{default:()=>[Vue.createTextVNode("getStorage")]}),Vue.createVNode(naive.NButton,{onClick:()=>{a("name","sessionStorage",{prefix:!0,prefixKey:this.currentPrefix}),window.$message.success("删除成功")}},{default:()=>[Vue.createTextVNode("removeStorage")]}),Vue.createVNode(naive.NButton,{onClick:()=>{const e=o("name","sessionStorage",{prefix:!0,prefixKey:this.currentPrefix});window.$message.success(`是否存在:${e}`)}},{default:()=>[Vue.createTextVNode("hasStorage")]})]})})}});export{P as default}; diff --git a/js/index-DCDj5HZ8.js.gz b/js/index-DCDj5HZ8.js.gz new file mode 100644 index 00000000..a8829e79 Binary files /dev/null and b/js/index-DCDj5HZ8.js.gz differ diff --git a/js/index-DQWUCipC.js b/js/index-DQWUCipC.js new file mode 100644 index 00000000..89b7429d --- /dev/null +++ b/js/index-DQWUCipC.js @@ -0,0 +1 @@ +import{j as V,q as v,r as h,f as u,t as a,h as N,T as f,v as y}from"./hooks-DUpKDX8W.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import{s as d}from"./utils-DvxnuKiq.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{Q as w}from"./vue3-next-qrcode@2.0.10_typescript@5.2.2-B-d0H0H3.js";import{L as b}from"./ray-dCjhX_JK.js";import{e as S}from"./@vueuse_core@10.9.0_vue@3.5.6-CMHqEu2-.js";import{A as x}from"./index-43Sr2ZDd.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.0.1_pinia@2.1.7-MNUqeAcu.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.0-DyxInw53.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vueuse_shared@10.9.0_vue@3.5.6-BTLxKjPf.js";import"./@vue_runtime-core@3.5.6-CUaD_-7Q.js";import"./@vue_reactivity@3.5.6-CXMPYrvZ.js";import"./@vue_shared@3.5.6-6BrT-eFF.js";function _(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const R=Vue.defineComponent({name:"RSigning",setup(){const e=Vue.ref(),{t}=h(),{signing:i}=V(),{getRootPath:n}=v(),o=Vue.ref(!1),c=()=>({name:"Ray Admin",pwd:"123456"}),p=VueRouter.useRouter(),r=Vue.ref(c()),g={name:{required:!0,message:t("views.login.index.NamePlaceholder"),trigger:["blur","input"]},pwd:{required:!0,message:t("views.login.index.PasswordPlaceholder"),trigger:["blur","input"]}};return{signingForm:r,loginFormRef:e,handleLogin:()=>{var s;(s=e.value)==null||s.validate(m=>{m||(o.value=!0,i(r.value).then(l=>{l.code===0&&setTimeout(()=>{window.$message.success(`欢迎${r.value.name}登陆~`),d(u.token,"tokenValue","localStorage"),d(u.signing,l.data,"localStorage"),p.push(n.value),o.value=!1},2*1e3)}).catch(()=>{window.$message.error("不可以这样哟, 不可以哟")}))})},rules:g,loading:o}},render(){let e;const{$t:t,loading:i}=this;return Vue.createVNode(naive.NForm,{model:this.signingForm,ref:"loginFormRef",rules:this.rules},{default:()=>[Vue.createVNode(naive.NFormItem,{label:t("views.login.index.Name"),path:"name"},{default:()=>[Vue.createVNode(naive.NInput,{value:this.signingForm.name,"onUpdate:value":n=>this.signingForm.name=n,placeholder:t("views.login.index.NamePlaceholder")},null)]}),Vue.createVNode(naive.NFormItem,{label:t("views.login.index.Password"),path:"pwd"},{default:()=>[Vue.createVNode(naive.NInput,{value:this.signingForm.pwd,"onUpdate:value":n=>this.signingForm.pwd=n,type:"password",showPasswordOn:"click",placeholder:t("views.login.index.PasswordPlaceholder"),onKeydown:n=>n.key==="Enter"&&this.handleLogin()},null)]}),Vue.createVNode(naive.NButton,{style:["width: 100%","margin-to: 18px"],type:"primary",onClick:this.handleLogin.bind(this),loading:i},_(e=t("views.login.index.Login"))?e:{default:()=>[e]})]})}}),j=Vue.defineComponent({name:"RRegister",render(){return Vue.createVNode(naive.NResult,{status:"info",title:"提示",description:"我实在是不想写了..."},null)}}),C=Vue.defineComponent({name:"QRCodeSigning",setup(){const e=Vue.reactive({qrcodeValue:"https://github.com/XiaoDaiGua-Ray/xiaodaigua-ray.github.io"});return{...Vue.toRefs(e)}},render(){return Vue.createVNode("div",{class:"qrcode-signing"},[Vue.createVNode(w,{text:"ray template yes",size:200,logoImage:b},null)])}});function k(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const F=Vue.defineComponent({name:"SSOSigning",setup(){return{ssoSigningOptions:[{icon:"github",key:"github",tooltipLabel:"Github登陆"},{icon:"google",key:"google",tooltipLabel:"Google登陆"},{icon:"twitter",key:"twitter",tooltipLabel:"Twitter登陆"}],handleSSOSigningClick:i=>{window.$message.info(`调用${i.tooltipLabel}`)}}},render(){let e;return Vue.createVNode(naive.NFlex,{class:"sso-signing",align:"center"},k(e=this.ssoSigningOptions.map(t=>Vue.createVNode(naive.NPopover,{key:t.key},{trigger:()=>Vue.createVNode(a,{name:t.icon,size:"24",cursor:"pointer",onClick:this.handleSSOSigningClick.bind(this,t)},null),default:()=>t.tooltipLabel})))?e:{default:()=>[e]})}});var L={pkg:{dependencies:{"@vueuse/core":"^10.9.0",axios:"^1.7.5",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.39.0",pinia:"^2.1.7","pinia-plugin-persistedstate":"^4.0.1","print-js":"^1.6.0",vue:"^3.5.6","vue-demi":"0.14.6","vue-hooks-plus":"2.2.1","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.8.1","@commitlint/config-conventional":"^17.8.1","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.2.2","@types/dom-to-image":"2.6.7","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.21.0","@typescript-eslint/parser":"^6.21.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.0","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.16",depcheck:"^1.4.7",eslint:"^8.57.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.2.0",postcss:"^8.4.38","postcss-px-to-viewport-8-with-include":"1.2.2",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.18.2","unplugin-vue-components":"^0.27.4",vite:"^5.4.3","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.0.13"},name:"ray-template",version:"4.9.5"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};function O(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const ae=Vue.defineComponent({name:"RLogin",setup(){const{layout:{copyright:e}}=L,t=Vue.reactive({tabsValue:"signing"}),{height:i,width:n}=S(),{updateLocale:o}=N();return{...Vue.toRefs(t),windowHeight:i,updateLocale:o,copyright:e,windowWidth:n}},render(){let e;const{$t:t}=this;return Vue.createVNode("div",{class:["login"],style:[`height: ${this.windowHeight}px`,`--login-height: ${this.windowHeight}px`]},[Vue.createVNode("div",{class:["login-wrapper",this.windowWidth>=1440?"login-wrapper--divider":""]},[Vue.createVNode("div",{class:["login-wrapper__content"]},[Vue.createVNode(naive.NFlex,{align:"center",class:"login-title__wrapper"},{default:()=>[Vue.createVNode(a,{name:"ray",size:"48"},null),Vue.createVNode(naive.NGradientText,{class:"login-title",type:"info",size:28},{default:()=>[Vue.createTextVNode("Ray Template")]})]}),Vue.createVNode(naive.NFlex,{align:"center",class:"login-action__wrapper"},{default:()=>[Vue.createVNode(f,null,null),Vue.createVNode(naive.NDropdown,{options:y,onSelect:i=>this.updateLocale(i),trigger:"click"},{default:()=>[Vue.createVNode(a,{customClassName:"login-icon",name:"language",size:"18",cursor:"pointer"},null)]})]}),Vue.createVNode(naive.NGrid,{cols:"s:1 m:1 l:2 xl:2 2xl:2",itemResponsive:!1,responsive:"screen"},{default:()=>[Vue.createVNode(naive.NGridItem,{span:"s:0 m:0 l:1 xl:1 2xl:1",class:"login__left-wrapper"},{default:()=>[Vue.createVNode(naive.NFlex,{align:"center",vertical:!0},{default:()=>[Vue.createVNode(a,{name:"login_bg",width:"368",height:"368"},null),Vue.createVNode(naive.NGradientText,{class:"login-title",type:"info",size:36},O(e=t("views.login.index.RayTemplate"))?e:{default:()=>[e]})]})]}),Vue.createVNode(naive.NGridItem,{span:1,class:"login__right-wrapper"},{default:()=>[Vue.createVNode(naive.NCard,{class:"login__right-wrapper__content",embedded:!0,bordered:!1},{default:()=>[Vue.createVNode(naive.NTabs,{value:this.tabsValue,"onUpdate:value":i=>this.tabsValue=i,type:"line",animated:!0,size:"large"},{default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NTabPane,{tab:t("views.login.index.Signing"),name:"signing"},{default:()=>[Vue.createVNode(R,null,null)]}),Vue.createVNode(naive.NTabPane,{tab:t("views.login.index.Register"),name:"register"},{default:()=>[Vue.createVNode(j,null,null)]}),Vue.createVNode(naive.NTabPane,{tab:t("views.login.index.QRCodeSigning"),name:"qrcodeSigning"},{default:()=>[Vue.createVNode(C,null,null)]})])}),Vue.createVNode(naive.NDivider,null,{default:()=>[Vue.createTextVNode("其他登陆方式")]}),Vue.createVNode(F,null,null),Vue.createVNode(naive.NDivider,null,{default:()=>[Vue.createTextVNode("友情链接")]}),Vue.createVNode(x,null,null)]})]})]}),Vue.createVNode(naive.NFlex,{align:"center",justify:"center",class:"login-copyright__wrapper"},{default:()=>[this.copyright]})])])])}});export{ae as default}; diff --git a/js/index-DQWUCipC.js.gz b/js/index-DQWUCipC.js.gz new file mode 100644 index 00000000..10f6898c Binary files /dev/null and b/js/index-DQWUCipC.js.gz differ diff --git a/js/index-DT33t_LC.js b/js/index-DT33t_LC.js new file mode 100644 index 00000000..911950e2 --- /dev/null +++ b/js/index-DT33t_LC.js @@ -0,0 +1 @@ +import{m as A,e as E,a2 as h,t as f,a3 as x,a4 as k,a5 as g,u as T,a6 as b}from"./hooks-DUpKDX8W.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.5.6-CMHqEu2-.js";import"./@vueuse_shared@10.9.0_vue@3.5.6-BTLxKjPf.js";import"./utils-DvxnuKiq.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.0.1_pinia@2.1.7-MNUqeAcu.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.0-DyxInw53.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.5.6-CUaD_-7Q.js";import"./@vue_reactivity@3.5.6-CXMPYrvZ.js";import"./@vue_shared@3.5.6-6BrT-eFF.js";const _=Vue.defineComponent({name:"TemplateHooks",setup(){const t=Vue.ref(""),a=A("layoutContentMaximize"),o=Vue.ref(E().getWatermarkConfig.value.content),n=Vue.ref("new"),{navigationTo:i}=x(),{maximize:r,isLayoutContentMaximized:l}=h(),{reload:d,openSpin:V,closeSpin:F}=k(),{showWatermark:c,hiddenWatermark:N,setWatermarkContent:m,toggleWatermark:C}=g(),{darkTheme:B,lightTheme:s,toggleTheme:u,getAppTheme:e}=T(),{hidden:p,show:v,update:D}=b();return{navigationTo:i,reload:d,currentMenuOption:t,maximize:r,maximizeRef:a,openSpin:V,closeSpin:F,showWatermark:c,hiddenWatermark:N,setWatermarkContent:m,watermark:o,toggleWatermark:C,darkTheme:B,lightTheme:s,toggleTheme:u,getAppTheme:e,isLayoutContentMaximized:l,badgeHidden:p,badgeShow:v,badgeUpdateLabel:D,badgeValue:n}},render(){const{navigationTo:t,reload:a,maximize:o,openSpin:n,closeSpin:i,showWatermark:r,hiddenWatermark:l,setWatermarkContent:d,toggleWatermark:V,darkTheme:F,lightTheme:c,toggleTheme:N,getAppTheme:m,isLayoutContentMaximized:C,badgeHidden:B,badgeShow:s,badgeUpdateLabel:u}=this;return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,{title:"接口说明"},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("hooks/template 包存放模板专属 hook 方法。这里不做过多的赘述,可以查看文档具体描述。")])]}),Vue.createVNode(naive.NCard,{title:"useBadge 菜单标记"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NInput,{value:this.badgeValue,"onUpdate:value":e=>this.badgeValue=e},null),Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>B("/template-hooks")},{default:()=>[Vue.createTextVNode("隐藏当前菜单标记")]}),Vue.createVNode(naive.NButton,{onClick:()=>s("/template-hooks")},{default:()=>[Vue.createTextVNode("显示当前菜单标记")]}),Vue.createVNode(naive.NButton,{onClick:()=>u("/template-hooks",{label:this.badgeValue})},{default:()=>[Vue.createTextVNode("更新当前菜单标记")]}),Vue.createVNode(naive.NButton,{onClick:()=>{u("/template-hooks",{label:this.badgeValue,icon:Vue.createVNode(f,{name:"error",size:"18"},null)})}},{default:()=>[Vue.createTextVNode("添加标记图标")]}),Vue.createVNode(naive.NButton,{onClick:()=>{u("/template-hooks",{label:this.badgeValue,icon:void 0})}},{default:()=>[Vue.createTextVNode("隐藏标记图标")]})]})]})]}),Vue.createVNode(naive.NCard,{title:"useTheme 主题"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("getAppTheme 获取当前主题色: "),m().themeLabel]),Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>F()},{default:()=>[Vue.createTextVNode("切换暗黑主题")]}),Vue.createVNode(naive.NButton,{onClick:()=>c()},{default:()=>[Vue.createTextVNode("切换明亮主题")]}),Vue.createVNode(naive.NButton,{onClick:()=>N()},{default:()=>[Vue.createTextVNode("切换主题")]})]})]})]}),Vue.createVNode(naive.NCard,{title:"useWatermark 水印"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NInput,{value:this.watermark,"onUpdate:value":e=>this.watermark=e,onInput:e=>{d(e)}},null),Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>r()},{default:()=>[Vue.createTextVNode("显示水印")]}),Vue.createVNode(naive.NButton,{onClick:()=>l()},{default:()=>[Vue.createTextVNode("隐藏水印")]}),Vue.createVNode(naive.NButton,{onClick:()=>V()},{default:()=>[Vue.createTextVNode("切换水印")]})]})]})]}),Vue.createVNode(naive.NCard,{title:"useSpinning"},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("手动刷新内容区域,会使得当前路由页面内容强制重新加载(会执行完整的 vue 生命周期)。默认 800ms 延迟。")]),Vue.createVNode("br",null,null),Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>{a()}},{default:()=>[Vue.createTextVNode("刷新(强制刷新)")]}),Vue.createVNode(naive.NButton,{onClick:()=>{n(),setTimeout(()=>{i()},800)}},{default:()=>[Vue.createTextVNode("触发加载动画(不强制刷新)")]})]})]}),Vue.createVNode(naive.NCard,{title:"useMaximize 内容区域最大化"},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("isLayoutContentMaximized 检测当前内容区域是否最大化:"),C?"最大化":"正常尺寸"]),Vue.createVNode(naive.NButton,{onClick:()=>{o(!this.maximizeRef,{scrollToOptions:{left:0,top:0}})}},{default:()=>[Vue.createTextVNode("最大化内容区域,并且滚动至顶部")]})]}),Vue.createVNode(naive.NCard,{title:"useAppNavigation 导航方法"},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("navigationTo 参数为正整数时,会更具当前的菜单顺序进行自动导航匹配。但是此方法仅能导航一级菜单。并且如果导航菜单非根菜单项,会自动递归导航至一子菜单。 支持传入完整的菜单路径,如:/multi/multi-menu-one。")]),Vue.createVNode("br",null,null),Vue.createVNode(naive.NButton,{onClick:()=>t("/multi/multi-menu-one")},{default:()=>[Vue.createTextVNode("跳转至多级菜单")]})]})]})}});export{_ as default}; diff --git a/js/index-DT33t_LC.js.gz b/js/index-DT33t_LC.js.gz new file mode 100644 index 00000000..45e21ddb Binary files /dev/null and b/js/index-DT33t_LC.js.gz differ diff --git a/js/index-DWyvlcWc.js b/js/index-DWyvlcWc.js deleted file mode 100644 index 9a756054..00000000 --- a/js/index-DWyvlcWc.js +++ /dev/null @@ -1 +0,0 @@ -import{J as u}from"./hooks-DeCbIFFS.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./print-js@1.6.0-BdoEj60G.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.4.38-Cp_qoKMZ.js";import"./@vueuse_shared@10.9.0_vue@3.4.38-BTLxKjPf.js";import"./vue-hooks-plus@2.2.1_vue@3.4.38-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./utils-DGuZdIHQ.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.38-f9XU7P4m.js";import"./@vue_reactivity@3.4.38-CmXFqMGn.js";import"./@vue_shared@3.4.38-D8qfpBTH.js";const D=Vue.defineComponent({name:"RouterDemoHome",setup(){const t=VueRouter.useRouter(),r=Vue.ref([{title:"姓名",key:"name"},{title:"地址",key:"address"},{title:"联系方式",key:"phone"},{title:"操作",key:"",render:e=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createVNode(naive.NButton,{type:"info",text:!0,size:"tiny",onClick:()=>{t.push({path:"/router-demo/router-demo-detail",query:{name:e.name}})}},{default:()=>[Vue.createTextVNode("详情")]})]})}]),o=[];for(let e=0;e<10;e++)o.push({name:"张三"+e,address:"New York No. 1 Lake Park",phone:"010-121212",key:e});return{dataSource:o,columns:r}},render(){return Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(u,{columns:this.columns,"onUpdate:columns":t=>this.columns=t,data:this.dataSource},null)]})}});export{D as default}; diff --git a/js/index-DWyvlcWc.js.gz b/js/index-DWyvlcWc.js.gz deleted file mode 100644 index 3104831b..00000000 Binary files a/js/index-DWyvlcWc.js.gz and /dev/null differ diff --git a/js/index-D_ua31vB.js b/js/index-D_ua31vB.js deleted file mode 100644 index e4556fa1..00000000 --- a/js/index-D_ua31vB.js +++ /dev/null @@ -1 +0,0 @@ -import{z as d}from"./hooks-DeCbIFFS.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.4.38-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.4.38-Cp_qoKMZ.js";import"./@vueuse_shared@10.9.0_vue@3.4.38-BTLxKjPf.js";import"./utils-DGuZdIHQ.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.38-f9XU7P4m.js";import"./@vue_reactivity@3.4.38-CmXFqMGn.js";import"./@vue_shared@3.4.38-D8qfpBTH.js";const E=Vue.defineComponent({name:"ContextMenuDemo",setup(){const e=Vue.ref(),o=Vue.ref(!1),u=Vue.ref([{label:"杰·盖茨比",key:"jay gatsby"},{label:"黛西·布坎南",key:"daisy buchanan"},{type:"divider",key:"d1"},{label:"尼克·卡拉威",key:"nick caraway"}]),{x:r,y:i,show:a,updateShow:t}=d(e);return{demoOneRef:e,demoOneShow:o,x:r,y:i,show:a,options:u,clickOutside:n=>{n.preventDefault(),t(!1)},updateShow:t}},render(){const{x:e,y:o,show:u}=this,{clickOutside:r,updateShow:i}=this;return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,{title:"useContextmenuCoordinate + NDropdown 实现右键菜单"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("默认点击元素外部会关闭菜单。")]),Vue.createVNode("div",{ref:"demoOneRef",style:"width: 100%; height: 200px; background-color: rgba(0, 128, 0, 0.5)"},[Vue.createTextVNode("右击")])]})]}),Vue.createVNode(naive.NDropdown,{show:u,x:e,y:o,options:this.options,trigger:"manual",placement:"bottom-start",onSelect:(a,t)=>{window.$message.info(`选中了 ${t.label}`),i(!1)},onClickoutside:r.bind(this)},null)]})}});export{E as default}; diff --git a/js/index-D_ua31vB.js.gz b/js/index-D_ua31vB.js.gz deleted file mode 100644 index 2b3b083d..00000000 Binary files a/js/index-D_ua31vB.js.gz and /dev/null differ diff --git a/js/index-DbJuBYMf.js b/js/index-DbJuBYMf.js new file mode 100644 index 00000000..58e4b317 --- /dev/null +++ b/js/index-DbJuBYMf.js @@ -0,0 +1 @@ +import{t as s,_ as o}from"./hooks-DUpKDX8W.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.5.6-CMHqEu2-.js";import"./@vueuse_shared@10.9.0_vue@3.5.6-BTLxKjPf.js";import"./utils-DvxnuKiq.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.0.1_pinia@2.1.7-MNUqeAcu.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.0-DyxInw53.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.5.6-CUaD_-7Q.js";import"./@vue_reactivity@3.5.6-CXMPYrvZ.js";import"./@vue_shared@3.5.6-6BrT-eFF.js";function c(i){return typeof i=="function"||Object.prototype.toString.call(i)==="[object Object]"&&!Vue.isVNode(i)}const w=Vue.defineComponent({name:"PreviewSVGIcons",setup(){const i=Vue.ref([]);return Object.keys(Object.assign({"/src/icons/action/draggable.svg":()=>o(()=>import("./draggable-D6qza0mp.js"),[]),"/src/icons/action/fullscreen.svg":()=>o(()=>import("./fullscreen-Cjm0bPGx.js"),[]),"/src/icons/action/fullscreen_fold.svg":()=>o(()=>import("./fullscreen_fold-BUWP5JFn.js"),[]),"/src/icons/action/out.svg":()=>o(()=>import("./out-CMQCc625.js"),[]),"/src/icons/action/reload.svg":()=>o(()=>import("./reload-BCsJCBo-.js"),[]),"/src/icons/action/search.svg":()=>o(()=>import("./search-DPR73sQp.js"),[]),"/src/icons/action/setting.svg":()=>o(()=>import("./setting-CqYm8XBn.js"),[]),"/src/icons/directional/adjustment.svg":()=>o(()=>import("./adjustment-DIo_g8Za.js"),[]),"/src/icons/directional/close_left.svg":()=>o(()=>import("./close_left-C6k2eGWg.js"),[]),"/src/icons/directional/close_right.svg":()=>o(()=>import("./close_right-CrnE5vtw.js"),[]),"/src/icons/directional/expanded.svg":()=>o(()=>import("./expanded-BswQDJyW.js"),[]),"/src/icons/directional/left_arrow.svg":()=>o(()=>import("./left_arrow-DAKeumRT.js"),[]),"/src/icons/directional/lock.svg":()=>o(()=>import("./lock-dC7sQfx2.js"),[]),"/src/icons/directional/resize_h.svg":()=>o(()=>import("./resize_h-DA2p7YCQ.js"),[]),"/src/icons/directional/right_arrow.svg":()=>o(()=>import("./right_arrow-CbmroMoE.js"),[]),"/src/icons/directional/row_end.svg":()=>o(()=>import("./row_end-CqbNhb3G.js"),[]),"/src/icons/directional/row_head.svg":()=>o(()=>import("./row_head-BCxi2x-p.js"),[]),"/src/icons/logo/github.svg":()=>o(()=>import("./github-B4ARmChV.js"),[]),"/src/icons/logo/google.svg":()=>o(()=>import("./google-GEcrFhWr.js"),[]),"/src/icons/logo/login_bg.svg":()=>o(()=>import("./login_bg-CRcyXHBf.js"),[]),"/src/icons/logo/office.svg":()=>o(()=>import("./office-B5pC1KGi.js"),[]),"/src/icons/logo/ray.svg":()=>o(()=>import("./ray-B93BjtIh.js"),[]),"/src/icons/logo/twitter.svg":()=>o(()=>import("./twitter-DjE7U1HD.js"),[]),"/src/icons/template/dark.svg":()=>o(()=>import("./dark-BqsidBpX.js"),[]),"/src/icons/template/light.svg":()=>o(()=>import("./light-DWbddXnY.js"),[]),"/src/icons/tip/axios.svg":()=>o(()=>import("./axios-o8g4A-7A.js"),[]),"/src/icons/tip/close.svg":()=>o(()=>import("./close-10SEVxdb.js"),[]),"/src/icons/tip/dashboard.svg":()=>o(()=>import("./dashboard-70op-CO0.js"),[]),"/src/icons/tip/echart.svg":()=>o(()=>import("./echart-c_3t778P.js"),[]),"/src/icons/tip/enter.svg":()=>o(()=>import("./enter-CPGcsJ25.js"),[]),"/src/icons/tip/error.svg":()=>o(()=>import("./error-CjWalrOZ.js"),[]),"/src/icons/tip/export_excel.svg":()=>o(()=>import("./export_excel-ZmNoLzCr.js"),[]),"/src/icons/tip/language.svg":()=>o(()=>import("./language-C4AMs4_p.js"),[]),"/src/icons/tip/menu.svg":()=>o(()=>import("./menu-CPMkWw77.js"),[]),"/src/icons/tip/more.svg":()=>o(()=>import("./more-DW-qndwg.js"),[]),"/src/icons/tip/mouse.svg":()=>o(()=>import("./mouse-C_l6KSTs.js"),[]),"/src/icons/tip/other.svg":()=>o(()=>import("./other-DU6bZUrM.js"),[]),"/src/icons/tip/print.svg":()=>o(()=>import("./print-jFo_n0lx.js"),[]),"/src/icons/tip/rely.svg":()=>o(()=>import("./rely-DlDUQEbT.js"),[]),"/src/icons/tip/table.svg":()=>o(()=>import("./table-tYkftQGA.js"),[])})).forEach(e=>{var t;const r=(t=e.match(/\/(\w+)\.svg/))==null?void 0:t[1];r&&i.value.push(r)}),{icons:i}},render(){return Vue.createVNode(naive.NCard,{title:"svg图标"},{"header-extra":()=>"点击图标复制代码",default:()=>{let i;return Vue.createVNode(naive.NFlex,null,c(i=this.icons.map(_=>Vue.withDirectives(Vue.createVNode("div",{class:"pre-view-icons__card",key:_},[Vue.createVNode(naive.NPopover,null,{trigger:()=>Vue.createVNode(s,{name:_,size:"56",cursor:"pointer"},null),default:()=>_})]),[[Vue.resolveDirective("copy"),``]])))?i:{default:()=>[i]})}})}});export{w as default}; diff --git a/js/index-DbJuBYMf.js.gz b/js/index-DbJuBYMf.js.gz new file mode 100644 index 00000000..8835154c Binary files /dev/null and b/js/index-DbJuBYMf.js.gz differ diff --git a/js/index-DbiAk4nh.js b/js/index-DbiAk4nh.js new file mode 100644 index 00000000..d429bd19 --- /dev/null +++ b/js/index-DbiAk4nh.js @@ -0,0 +1 @@ +import{I as c,J as p,K as V}from"./hooks-DUpKDX8W.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./print-js@1.6.0-BdoEj60G.js";import{a as F}from"./vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js";import{s as E}from"./instance-Mlryd73B.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.5.6-CMHqEu2-.js";import"./@vueuse_shared@10.9.0_vue@3.5.6-BTLxKjPf.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./utils-DvxnuKiq.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./pinia-plugin-persistedstate@4.0.1_pinia@2.1.7-MNUqeAcu.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.0-DyxInw53.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.5.6-CUaD_-7Q.js";import"./@vue_reactivity@3.5.6-CXMPYrvZ.js";import"./@vue_shared@3.5.6-6BrT-eFF.js";const N=u=>E({url:"/api/list",method:"get",params:u}),q=Vue.defineComponent({name:"MockDemo",setup(){const u=[{type:"selection",multiple:!0},{title:"id",key:"id"},{title:"邮箱",key:"email"},{title:"地址",key:"address"},{title:"姓名",key:"name"},{title:"年龄",key:"age"},{title:"创建时间",key:"createDate"},{title:"操作",key:"action",render:o=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createVNode(naive.NButton,{type:"primary",text:!0,onClick:()=>{window.$message.info("查看")}},{default:()=>[Vue.createTextVNode("查看")]}),Vue.createVNode(naive.NButton,{type:"primary",text:!0,onClick:()=>{window.$message.warning("编辑")}},{default:()=>[Vue.createTextVNode("编辑")]}),Vue.createVNode(naive.NButton,{type:"error",text:!0,onClick:()=>{window.$message.error("删除")}},{default:()=>[Vue.createTextVNode("删除")]})]})}],e=Vue.reactive({email:null}),[r,{getPage:t,getPageSize:a,setItemCount:i,getCallback:n,setPage:g,setPageSize:C}]=c(()=>{m({page:t(),pageSize:a(),email:e.email})}),{data:l,loading:d,run:m}=F(N,{defaultParams:[{page:t(),pageSize:a(),email:e.email}],onSuccess:o=>{const{total:s}=o;i(s)}});return{personData:l,personLoading:d,columns:u,...Vue.toRefs(e),getCallback:n,paginationRef:r}},render(){return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>{var u;return[Vue.createVNode(naive.NCard,{title:"Mock 数据"},{default:()=>[Vue.createVNode("h2",null,[Vue.createTextVNode("mock 数据使用。但是,并没有启用生产环境的部署,所以生产环境结果为空。")])]}),Vue.createVNode(naive.NCard,{title:"提示"},{default:()=>[Vue.createVNode("h2",null,[Vue.createTextVNode("RTable 组件有一个比较值得注意的地方就是,该组件会自动的按照数据量计算分页条数。所以你在异步获取数据的时候,一定要手动设置 remote 属性为 true,并且设置 itemCount 或者 pageCount。")])]}),Vue.createVNode(naive.NForm,{labelPlacement:"left"},{default:()=>[Vue.createVNode(p,{bordered:!1,cols:3},{default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NFormItemGi,{label:"邮箱"},{default:()=>[Vue.createVNode(naive.NInput,{value:this.email,"onUpdate:value":e=>this.email=e,clearable:!0},null)]})]),action:()=>{var e;return Vue.createVNode(naive.NButton,{type:"primary",onClick:(e=this.getCallback)==null?void 0:e.bind(this)},{default:()=>[Vue.createTextVNode("搜索")]})}})]}),Vue.createVNode(V,{title:"Mock数据表格",data:(u=this.personData)==null?void 0:u.data,loading:this.personLoading,columns:this.columns,"onUpdate:columns":e=>this.columns=e,pagination:this.paginationRef,remote:!0,rowKey:e=>e.id},null)]}})}});export{q as default}; diff --git a/js/index-DbiAk4nh.js.gz b/js/index-DbiAk4nh.js.gz new file mode 100644 index 00000000..c2697b20 Binary files /dev/null and b/js/index-DbiAk4nh.js.gz differ diff --git a/js/index-DsT8uWts.js b/js/index-DsT8uWts.js new file mode 100644 index 00000000..3d248110 --- /dev/null +++ b/js/index-DsT8uWts.js @@ -0,0 +1 @@ +import{F as d,G as l}from"./hooks-DUpKDX8W.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.5.6-CMHqEu2-.js";import"./@vueuse_shared@10.9.0_vue@3.5.6-BTLxKjPf.js";import"./utils-DvxnuKiq.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.0.1_pinia@2.1.7-MNUqeAcu.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.0-DyxInw53.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.5.6-CUaD_-7Q.js";import"./@vue_reactivity@3.5.6-CXMPYrvZ.js";import"./@vue_shared@3.5.6-6BrT-eFF.js";const w=Vue.defineComponent({name:"RFormDemo",setup(){const[u,{getFormInstance:i,validate:t,restoreValidation:r,formModel:a,formRules:e}]=d({name:null,age:null,gender:null,date:null,remark:null},{name:{required:!0,message:"请输入姓名",trigger:["blur","change"]},date:{required:!0,message:"请选择日期",trigger:["blur","change"],type:"number"},gender:{required:!0,message:"请选择性别",trigger:"change"},age:{required:!0,message:"请输入年龄",trigger:["blur","change"],type:"number"}}),o=Vue.ref(e()),n=Vue.ref(a());return{register:u,rules:o,condition:n,restoreValidation:r,formModel:a,validate:t}},render(){const{rules:u}=this,{register:i,restoreValidation:t,formModel:r,validate:a}=this;return Vue.createVNode(l,{onRegister:i,rules:u,model:this.condition},{default:()=>[Vue.createVNode(naive.NGrid,{cols:24,xGap:24},{default:()=>[Vue.createVNode(naive.NFormItemGi,{label:"姓名",path:"name",span:12},{default:()=>[Vue.createVNode(naive.NInput,{value:this.condition.name,"onUpdate:value":e=>this.condition.name=e},null)]}),Vue.createVNode(naive.NFormItemGi,{label:"年龄",path:"age",span:12},{default:()=>[Vue.createVNode(naive.NInputNumber,{value:this.condition.age,"onUpdate:value":e=>this.condition.age=e,showButton:!1,style:"width: 100%"},null)]}),Vue.createVNode(naive.NFormItemGi,{label:"出生日期",path:"date",span:12},{default:()=>[Vue.createVNode(naive.NDatePicker,{value:this.condition.date,"onUpdate:value":e=>this.condition.date=e,style:"width: 100%"},null)]}),Vue.createVNode(naive.NFormItemGi,{label:"性别",path:"gender",span:12},{default:()=>[Vue.createVNode(naive.NRadioGroup,{value:this.condition.gender,"onUpdate:value":e=>this.condition.gender=e},{default:()=>[Vue.createVNode(naive.NRadio,{value:"girl"},{default:()=>[Vue.createTextVNode("女")]}),Vue.createVNode(naive.NRadio,{value:"man"},{default:()=>[Vue.createTextVNode("男")]})]})]}),Vue.createVNode(naive.NFormItemGi,{label:"备注信息",span:24},{default:()=>[Vue.createVNode(naive.NInput,{type:"textarea",value:this.condition.remark,"onUpdate:value":e=>this.condition.remark=e},null)]}),Vue.createVNode(naive.NFormItemGi,{span:24},{default:()=>[Vue.createVNode(naive.NFlex,{justify:"flex-end",style:"width: 100%"},{default:()=>[Vue.createVNode(naive.NButton,{type:"info",onClick:()=>{this.condition=r(),t()}},{default:()=>[Vue.createTextVNode("重置表单为初始状态")]}),Vue.createVNode(naive.NButton,{type:"warning",onClick:t.bind(this)},{default:()=>[Vue.createTextVNode("移除校验状态")]}),Vue.createVNode(naive.NButton,{type:"primary",onClick:()=>a()},{default:()=>[Vue.createTextVNode("校验")]})]})]})]})]})}});export{w as default}; diff --git a/js/index-DsT8uWts.js.gz b/js/index-DsT8uWts.js.gz new file mode 100644 index 00000000..e688adf3 Binary files /dev/null and b/js/index-DsT8uWts.js.gz differ diff --git a/js/index-Dw0dXXH_.js b/js/index-Dw0dXXH_.js deleted file mode 100644 index e0b86a7a..00000000 --- a/js/index-Dw0dXXH_.js +++ /dev/null @@ -1 +0,0 @@ -import{E as d,F as l}from"./hooks-DeCbIFFS.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.4.38-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.4.38-Cp_qoKMZ.js";import"./@vueuse_shared@10.9.0_vue@3.4.38-BTLxKjPf.js";import"./utils-DGuZdIHQ.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.38-f9XU7P4m.js";import"./@vue_reactivity@3.4.38-CmXFqMGn.js";import"./@vue_shared@3.4.38-D8qfpBTH.js";const R=Vue.defineComponent({name:"RFormDemo",setup(){const[u,{getFormInstance:i,validate:t,restoreValidation:r,formModel:a,formRules:e}]=d({name:null,age:null,gender:null,date:null,remark:null},{name:{required:!0,message:"请输入姓名",trigger:["blur","change"]},date:{required:!0,message:"请选择日期",trigger:["blur","change"],type:"number"},gender:{required:!0,message:"请选择性别",trigger:"change"},age:{required:!0,message:"请输入年龄",trigger:["blur","change"],type:"number"}}),o=Vue.ref(e()),n=Vue.ref(a());return{register:u,rules:o,condition:n,restoreValidation:r,formModel:a,validate:t}},render(){const{rules:u}=this,{register:i,restoreValidation:t,formModel:r,validate:a}=this;return Vue.createVNode(l,{onRegister:i,rules:u,model:this.condition},{default:()=>[Vue.createVNode(naive.NGrid,{cols:24,xGap:24},{default:()=>[Vue.createVNode(naive.NFormItemGi,{label:"姓名",path:"name",span:12},{default:()=>[Vue.createVNode(naive.NInput,{value:this.condition.name,"onUpdate:value":e=>this.condition.name=e},null)]}),Vue.createVNode(naive.NFormItemGi,{label:"年龄",path:"age",span:12},{default:()=>[Vue.createVNode(naive.NInputNumber,{value:this.condition.age,"onUpdate:value":e=>this.condition.age=e,showButton:!1,style:"width: 100%"},null)]}),Vue.createVNode(naive.NFormItemGi,{label:"出生日期",path:"date",span:12},{default:()=>[Vue.createVNode(naive.NDatePicker,{value:this.condition.date,"onUpdate:value":e=>this.condition.date=e,style:"width: 100%"},null)]}),Vue.createVNode(naive.NFormItemGi,{label:"性别",path:"gender",span:12},{default:()=>[Vue.createVNode(naive.NRadioGroup,{value:this.condition.gender,"onUpdate:value":e=>this.condition.gender=e},{default:()=>[Vue.createVNode(naive.NRadio,{value:"girl"},{default:()=>[Vue.createTextVNode("女")]}),Vue.createVNode(naive.NRadio,{value:"man"},{default:()=>[Vue.createTextVNode("男")]})]})]}),Vue.createVNode(naive.NFormItemGi,{label:"备注信息",span:24},{default:()=>[Vue.createVNode(naive.NInput,{type:"textarea",value:this.condition.remark,"onUpdate:value":e=>this.condition.remark=e},null)]}),Vue.createVNode(naive.NFormItemGi,{span:24},{default:()=>[Vue.createVNode(naive.NFlex,{justify:"flex-end",style:"width: 100%"},{default:()=>[Vue.createVNode(naive.NButton,{type:"info",onClick:()=>{this.condition=r(),t()}},{default:()=>[Vue.createTextVNode("重置表单为初始状态")]}),Vue.createVNode(naive.NButton,{type:"warning",onClick:t.bind(this)},{default:()=>[Vue.createTextVNode("移除校验状态")]}),Vue.createVNode(naive.NButton,{type:"primary",onClick:()=>a()},{default:()=>[Vue.createTextVNode("校验")]})]})]})]})]})}});export{R as default}; diff --git a/js/index-Dw0dXXH_.js.gz b/js/index-Dw0dXXH_.js.gz deleted file mode 100644 index eada495e..00000000 Binary files a/js/index-Dw0dXXH_.js.gz and /dev/null differ diff --git a/js/index-HE4cugSz.js b/js/index-HE4cugSz.js new file mode 100644 index 00000000..378e891b --- /dev/null +++ b/js/index-HE4cugSz.js @@ -0,0 +1 @@ +import{e as g,g as Y,M as W,f as v,h as y,i as M,j as N,k as q,l as G,R as A,m as J,n as K,D as X,s as Q,o as e1,p as t1}from"./hooks-DUpKDX8W.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{g as P,c as l1,j as _,v as b,k as L,s as k,e as C,i as i1}from"./utils-DvxnuKiq.js";import{g as o1,d as c1,t as a1,f as n1}from"./lodash-es@4.17.21-BALnwRTu.js";import"./vue3-next-qrcode@2.0.10_typescript@5.2.2-B-d0H0H3.js";import"./dayjs@1.11.10-BRzSdUgl.js";import{C as s1}from"./clipboard@2.0.11-DheAgBlr.js";import{u as B}from"./@vueuse_core@10.9.0_vue@3.5.6-CMHqEu2-.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.0.1_pinia@2.1.7-MNUqeAcu.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.0-DyxInw53.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vueuse_shared@10.9.0_vue@3.5.6-BTLxKjPf.js";import"./@vue_runtime-core@3.5.6-CUaD_-7Q.js";import"./@vue_reactivity@3.5.6-CXMPYrvZ.js";import"./@vue_shared@3.5.6-6BrT-eFF.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))o(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const c of a.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&o(c)}).observe(document,{childList:!0,subtree:!0});function l(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function o(i){if(i.ep)return;i.ep=!0;const a=l(i);fetch(i.href,a)}})();const r1=Vue.defineComponent({name:"GlobalProvider",setup(e,{expose:t}){const{getPrimaryColorOverride:l,getAppTheme:o,getLocaleLanguage:i}=g(),a=Vue.computed(()=>{const n=i.value;return Y(n)}),c=()=>{const{message:n,notification:s,dialog:r,loadingBar:d}=naive.createDiscreteApi(["message","dialog","notification","loadingBar"],{configProviderProps:Vue.computed(()=>({theme:o.value?naive.darkTheme:null}))});window.$dialog=r,window.$message=n,window.$loadingBar=d,window.$notification=s};return t(),{getPrimaryColorOverride:l,localePackage:a,getAppTheme:o,discreteApi:c}},render(){const{$slots:{default:e},discreteApi:t}=this,{getPrimaryColorOverride:l,getAppTheme:o,localePackage:i}=this;return Vue.createVNode(naive.NConfigProvider,{themeOverrides:l,theme:o?naive.darkTheme:null,locale:i.locale,dateLocale:i.dateLocal},{default:()=>[Vue.createVNode(naive.NLoadingBarProvider,null,{default:()=>[Vue.createVNode(naive.NMessageProvider,W,{default:()=>[Vue.createVNode(naive.NDialogProvider,null,{default:()=>[Vue.createVNode(naive.NModalProvider,null,{default:()=>[Vue.createVNode(naive.NNotificationProvider,null,{default:()=>[Vue.createVNode(naive.NGlobalStyle,null,null),e==null?void 0:e(),t()]})]})]})]})]})]})}});var d1={pkg:{dependencies:{"@vueuse/core":"^10.9.0",axios:"^1.7.5",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.39.0",pinia:"^2.1.7","pinia-plugin-persistedstate":"^4.0.1","print-js":"^1.6.0",vue:"^3.5.6","vue-demi":"0.14.6","vue-hooks-plus":"2.2.1","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.8.1","@commitlint/config-conventional":"^17.8.1","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.2.2","@types/dom-to-image":"2.6.7","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.21.0","@typescript-eslint/parser":"^6.21.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.0","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.16",depcheck:"^1.4.7",eslint:"^8.57.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.2.0",postcss:"^8.4.38","postcss-px-to-viewport-8-with-include":"1.2.2",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.18.2","unplugin-vue-components":"^0.27.4",vite:"^5.4.3","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.0.13"},name:"ray-template",version:"4.9.5"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const p1=Vue.defineComponent({name:"AppStyleProvider",setup(e,{expose:t}){const{getAppTheme:l}=g(),o=()=>{const{appPrimaryColor:{primaryColor:c,primaryFadeColor:n}}=d1,s=document.body,r=P(v.appPiniaSettingStore,"localStorage");if(r){const d=o1(r,"primaryColorOverride.common.primaryColor",c),u=l1(d,.38);s.style.setProperty("--ray-theme-primary-color",d),s.style.setProperty("--ray-theme-primary-fade-color",u||n)}},i=()=>{const c=document.getElementById("pre-loading-animation");c&&_(c,{display:"none"})},a=c=>{const n=document.body,s="ray-template--dark",r="ray-template--light";c?b(n,r):b(n,s),L(n,c?s:r)};o(),i(),Vue.watch(()=>l.value,c=>{a(c)},{immediate:!0}),t()},render(){return Vue.createVNode("div",{class:"app-style-provider"},null)}}),j={lockPassword:{required:!0,message:"请输入正确格式密码",min:6,max:12,trigger:["input"]}},m=()=>({lockPassword:null}),u1=Vue.defineComponent({name:"LockScreen",setup(){const e=Vue.ref(null),t=Vue.ref(null),{setLockAppScreen:l}=M(),{updateSettingState:o}=y(),i=Vue.reactive({lockCondition:m()}),a=()=>{var c;(c=e.value)==null||c.validate(n=>{n||(l(!0),o("lockScreenSwitch",!0),i.lockCondition=m())})};return Vue.onMounted(()=>{Vue.nextTick(()=>{var c;(c=t.value)==null||c.focus()})}),{...Vue.toRefs(i),lockScreen:a,formInstRef:e,inputInstRef:t}},render(){return Vue.createVNode("div",{class:"app-lock-screen__input"},[Vue.createVNode(naive.NForm,{ref:"formInstRef",model:this.lockCondition,rules:j,labelPlacement:"left"},{default:()=>[Vue.createVNode(naive.NFormItem,{path:"lockPassword"},{default:()=>[Vue.createVNode(naive.NInput,{ref:"inputInstRef",value:this.lockCondition.lockPassword,"onUpdate:value":e=>this.lockCondition.lockPassword=e,type:"password",placeholder:"请输入锁屏密码",clearable:!0,showPasswordOn:"click",minlength:6,maxlength:12,onKeydown:e=>{e.code==="Enter"&&this.lockScreen()}},null)]}),Vue.createVNode(naive.NButton,{type:"primary",onClick:this.lockScreen.bind(this)},{default:()=>[Vue.createTextVNode("锁屏")]})]})])}}),h1=Vue.defineComponent({name:"UnlockScreen",setup(){const e=Vue.ref(null),t=Vue.ref(null),{logout:l}=N(),{updateSettingState:o}=y(),{setLockAppScreen:i}=M(),{isTabletOrSmaller:a}=q(),c="HH:mm",n="A",s="YY年MM月DD日",r="ddd",d=Vue.reactive({lockCondition:m(),HH_MM:dayjs().format(c),AM_PM:dayjs().locale("en").format(n),YY_MM_DD:dayjs().format(s),DDD:dayjs().format(r)}),u=setInterval(()=>{d.HH_MM=dayjs().format(c),d.AM_PM=dayjs().format(n)},6e3),h=setInterval(()=>{d.YY_MM_DD=dayjs().format(s),d.DDD=dayjs().format(r)},864e5),f=()=>{window.$dialog.warning({title:"警告",content:"是否返回到登陆页?",positiveText:"确定",negativeText:"取消",onPositiveClick:()=>{l(),setTimeout(()=>{o("lockScreenSwitch",!1)})}})},I=()=>{var w;(w=e.value)==null||w.validate(U=>{U||(i(!1),o("lockScreenSwitch",!1),d.lockCondition=m())})};return Vue.onBeforeUnmount(()=>{clearInterval(u),clearInterval(h)}),{...Vue.toRefs(d),backToSigning:f,unlockScreen:I,formRef:e,inputInstRef:t,isTabletOrSmaller:a}},render(){const{isTabletOrSmaller:e}=this,{HH_MM:t,AM_PM:l,YY_MM_DD:o,DDD:i}=this,a=t.split(":"),{unlockScreen:c,backToSigning:n}=this;return Vue.createVNode("div",{class:"app-lock-screen__unlock"},[Vue.createVNode("div",{class:"app-lock-screen__unlock__content"},[Vue.createVNode("div",{class:"app-lock-screen__unlock__content-wrapper"},[Vue.createVNode("div",{class:["app-lock-screen__unlock__content-bg__wrapper","app-lock-screen__unlock__content-bg",e?"app-lock-screen__unlock__content-bg--smaller":""]},[Vue.createVNode("div",{class:"left"},[a[0]]),Vue.createVNode("div",{class:"right"},[a[1]])])]),Vue.createVNode("div",{class:"app-lock-screen__unlock__content-avatar"},[Vue.createVNode(G,{avatarSize:52,style:"pointer-events: none;",vertical:!0},null)]),Vue.createVNode("div",{class:"app-lock-screen__unlock__content-input"},[Vue.createVNode(naive.NForm,{ref:"formRef",model:this.lockCondition,rules:j},{default:()=>[Vue.createVNode(naive.NFormItem,{path:"lockPassword"},{default:()=>[Vue.createVNode(naive.NInput,{ref:"inputInstRef",value:this.lockCondition.lockPassword,"onUpdate:value":s=>this.lockCondition.lockPassword=s,type:"password",placeholder:"请输入解锁密码",clearable:!0,minlength:6,maxlength:12,onKeydown:s=>{s.code==="Enter"&&c()}},null)]}),Vue.createVNode(naive.NFlex,{justify:"space-between"},{default:()=>[Vue.createVNode(naive.NButton,{type:"primary",text:!0,onClick:n.bind(this)},{default:()=>[Vue.createTextVNode("返回登陆")]}),Vue.createVNode(naive.NButton,{type:"primary",text:!0,onClick:c.bind(this)},{default:()=>[Vue.createTextVNode("进入系统")]})]})]})]),Vue.createVNode("div",{class:"app-lock-screen__unlock__content-date"},[Vue.createVNode("div",{class:"current-date"},[t,Vue.createTextVNode(" "),Vue.createVNode("span",null,[l])]),Vue.createVNode("div",{class:"current-year"},[o,Vue.createTextVNode(" "),Vue.createVNode("span",null,[i])])])])])}}),f1=Vue.defineComponent({name:"AppLockScreen",setup(){const{getLockAppScreen:e}=M(),{updateSettingState:t}=y(),{getLockScreenSwitch:l}=g();return{lockScreenSwitchRef:Vue.computed({get:()=>l.value,set:i=>{t("lockScreenSwitch",i)}}),getLockAppScreen:e}},render(){const{getLockAppScreen:e}=this;return Vue.createVNode(A,{show:this.lockScreenSwitchRef,"onUpdate:show":t=>this.lockScreenSwitchRef=t,transformOrigin:"center",autoFocus:!1,maskClosable:!1,closeOnEsc:!1,preset:e()?void 0:"dialog",title:"锁定屏幕"},{default:()=>[Vue.createVNode("div",{class:"app-lock-screen__content"},[e()?Vue.createVNode(h1,null,null):Vue.createVNode(u1,null,null)])]})}}),v1=Vue.defineComponent({name:"AppWatermarkProvider",setup(){const{getWatermarkSwitch:e,getWatermarkConfig:t}=g();return{getWatermarkSwitch:e,getWatermarkConfig:t}},render(){const{getWatermarkConfig:e,getWatermarkSwitch:t}=this;return t?Vue.createVNode(naive.NWatermark,Vue.mergeProps({cross:!0,fullscreen:!0},e),null):null}}),m1=Vue.defineComponent({name:"GlobalSpin",props:{...naive.spinProps},setup(){const e={opacitySpinning:"0.3"};return{spinValue:J("globalSpinning"),overrides:e}},render(){return Vue.createVNode(naive.NSpin,Vue.mergeProps(this.$props,{show:this.spinValue,themeOverrides:this.overrides}),{...this.$slots})}});var g1={pkg:{dependencies:{"@vueuse/core":"^10.9.0",axios:"^1.7.5",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.39.0",pinia:"^2.1.7","pinia-plugin-persistedstate":"^4.0.1","print-js":"^1.6.0",vue:"^3.5.6","vue-demi":"0.14.6","vue-hooks-plus":"2.2.1","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.8.1","@commitlint/config-conventional":"^17.8.1","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.2.2","@types/dom-to-image":"2.6.7","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.21.0","@typescript-eslint/parser":"^6.21.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.0","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.16",depcheck:"^1.4.7",eslint:"^8.57.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.2.0",postcss:"^8.4.38","postcss-px-to-viewport-8-with-include":"1.2.2",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.18.2","unplugin-vue-components":"^0.27.4",vite:"^5.4.3","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.0.13"},name:"ray-template",version:"4.9.5"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const _1=Vue.defineComponent({name:"AppVersionProvider",setup(){const{pkg:{version:e}}=g1,t=P(v.appVersionProvider,"localStorage"),l=Vue.ref(!1),{logout:o}=N();return t!==null?e!==t&&(l.value=!0,k(v.appVersionProvider,e,"localStorage")):k(v.appVersionProvider,e,"localStorage"),{modalShow:l,logout:o}},render(){const{logout:e}=this;return Vue.createVNode("div",{class:"app-style-provider"},[Vue.createVNode(A,{show:this.modalShow,"onUpdate:show":t=>this.modalShow=t,closeOnEsc:!1,maskClosable:!1,preset:"dialog",closable:!1,title:"发现新版本",content:"当前版本已更新,点击确认加载新版本~",zIndex:999999999,dad:!0,positiveText:"确认",negativeText:"取消",onPositiveClick:e,onNegativeClick:()=>{this.modalShow=!1}},null)])}}),T=Vue.defineComponent({name:"App",render(){return Vue.createVNode(r1,null,{default:()=>[Vue.createVNode(_1,null,null),Vue.createVNode(f1,null,null),Vue.createVNode(p1,null,null),Vue.createVNode(v1,null,null),Vue.createVNode(m1,null,{default:()=>Vue.createVNode(VueRouter.RouterView,null,null),description:()=>K})]})}});if(typeof window<"u"){let e=function(){var t=document.body,l=document.getElementById("__svg__icons__dom__");l||(l=document.createElementNS("http://www.w3.org/2000/svg","svg"),l.style.position="absolute",l.style.width="0",l.style.height="0",l.id="__svg__icons__dom__",l.setAttribute("xmlns","http://www.w3.org/2000/svg"),l.setAttribute("xmlns:link","http://www.w3.org/1999/xlink")),l.innerHTML='',t.insertBefore(l,t.lastChild)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e()}const b1=()=>{dayjs.locale(X)},z=(e,t)=>{const l=new s1(e,{text:()=>t});e.$$clipboard=l,e.$$clipboard.on("success",()=>{window.$message.success("复制成功")}),e.$$clipboard.on("error",()=>{window.$message.error("复制失败")})},y1=()=>({mounted:(e,{value:t})=>{z(e,t)},updated:(e,{value:t,oldValue:l})=>{var o;t!==l&&((o=e.$$clipboard)==null||o.destroy(),z(e,t))},beforeUnmount:e=>{var t;e.$$clipboard&&((t=e.$$clipboard)==null||t.destroy(),e.$$clipboard=null)}}),M1=Object.freeze(Object.defineProperty({__proto__:null,default:y1},Symbol.toStringTag,{value:"Module"})),V1=()=>{let e,t;return{beforeMount:(l,{value:o})=>{const{func:i,trigger:a="click",wait:c=500,options:n}=o;if(typeof i!="function")throw new TypeError("debounce directive value must be a function");e=c1(i,c,Object.assign({},n)),t=B(l,a,e)},beforeUnmount:(l,{value:o})=>{e&&(e.cancel(),t==null||t()),e=null}}},w1=Object.freeze(Object.defineProperty({__proto__:null,default:V1},Symbol.toStringTag,{value:"Module"})),Z=(e,t)=>{if(e){const l="ray-template__directive--disabled";t?(e.setAttribute("disabled","disabled"),L(e,l)):(e.removeAttribute("disabled"),b(e,l)),e==null||e.setAttribute("disabled",t?"disabled":"")}},k1=()=>({mounted:(e,{value:t})=>{Z(e,t)},updated:(e,{value:t,oldValue:l})=>{t!==l&&Z(e,t)}}),C1=Object.freeze(Object.defineProperty({__proto__:null,default:k1},Symbol.toStringTag,{value:"Module"})),S=(e,t)=>{const{line:l=1,type:o="block",width:i,popoverText:a}=t;if(i==null){console.error(`[v-ellipsis]: Expected width is string or number, but got typeof ${i}!`);return}a&&e.textContent&&e.setAttribute("title",e.textContent),o==="line"?_(e,{display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":l,overflow:"hidden",width:C(i)}):_(e,{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:C(i)})},z1=()=>({mounted:(e,{value:t})=>{S(e,t)},updated:(e,{value:t})=>{S(e,t)}}),Z1=Object.freeze(Object.defineProperty({__proto__:null,default:z1},Symbol.toStringTag,{value:"Module"})),p={vRippleAnimationEnter:"v-ripple__animation--enter",vRippleAnimationVisible:"v-ripple__animation--visible",vRippleAnimationIn:"v-ripple__animation--in",vRippleAnimationOut:"v-ripple__animation--out",vRippleAnimation:"v-ripple__animation"},S1="v-ripple__container";function H(e,t){e.style.transform=t}function D(e){const t={},l=e.currentTarget;!(l!=null&&l.__d_ripple__)||l.__d_ripple__.touched||(t.center=l.__d_ripple__.centered,l.__d_ripple__.class&&(t.class=l.__d_ripple__.class),V.show(e,l,t))}function R(e){const t=e.currentTarget;t!=null&&t.__d_ripple__&&(setTimeout(()=>{t.__d_ripple__&&(t.__d_ripple__.touched=!1)}),V.hide(t))}const H1=(e,t,l={})=>{var h;const o=t.getBoundingClientRect(),i=e.clientX-o.left,a=e.clientY-o.top;let c=0,n=.3;(h=t.__d_ripple__)!=null&&h.circle?(n=.15,c=t.clientWidth/2,c=l.center?c:c+Math.sqrt((i-c)**2+(a-c)**2)/4):c=Math.sqrt(t.clientWidth**2+t.clientHeight**2)/2;const s=`${(t.clientWidth-c*2)/2}px`,r=`${(t.clientHeight-c*2)/2}px`,d=l.center?s:`${i-c}px`,u=l.center?r:`${a-c}px`;return{radius:c,scale:n,x:d,y:u,centerX:s,centerY:r}},V={show(e,t,l={}){var f;if(!((f=t==null?void 0:t.__d_ripple__)!=null&&f.enabled))return;const o=document.createElement("span"),i=document.createElement("span");o.appendChild(i),o.className=S1,l.class&&(o.className+=` ${l.class}`);const{radius:a,scale:c,x:n,y:s,centerX:r,centerY:d}=H1(e,t,l),u=`${a*2}px`;i.className=p.vRippleAnimation,i.style.width=u,i.style.height=u,t.appendChild(o);const h=window.getComputedStyle(t);h&&h.position==="static"&&(t.style.position="relative",t.dataset.previousPosition="static"),i.classList.add(p.vRippleAnimationEnter),i.classList.add(p.vRippleAnimationVisible),H(i,`translate(${n}, ${s}) scale3d(${c},${c},${c})`),i.dataset.activated=String(performance.now()),setTimeout(()=>{i.classList.remove(p.vRippleAnimationEnter),i.classList.add(p.vRippleAnimationIn),H(i,`translate(${r}, ${d}) scale3d(1,1,1)`)},0)},hide(e){var a;if(!((a=e==null?void 0:e.__d_ripple__)!=null&&a.enabled))return;const t=e.getElementsByClassName(p.vRippleAnimation);if(t.length===0)return;const l=t[t.length-1];if(l.dataset.isHiding)return;l.dataset.isHiding="true";const o=performance.now()-Number(l.dataset.activated),i=Math.max(250-o,0);setTimeout(()=>{l.classList.remove(p.vRippleAnimationIn),l.classList.add(p.vRippleAnimationOut),setTimeout(()=>{var n;e.getElementsByClassName(p.vRippleAnimation).length===1&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),((n=l.parentNode)==null?void 0:n.parentNode)===e&&e.removeChild(l.parentNode)},300)},i)}};function O(e){return typeof e>"u"||!!e}function E(e){e.removeEventListener("pointerdown",D),e.removeEventListener("pointerup",R)}function x(e,t,l){const{value:o,modifiers:i}=t,a=O(o);a||V.hide(e),e.__d_ripple__=e.__d_ripple__??{},e.__d_ripple__.enabled=a,e.__d_ripple__.centered=i.center,e.__d_ripple__.circle=i.circle,i1(o,"Object")&&o.class&&(e.__d_ripple__.class=o.class),a&&!l?(e.addEventListener("pointerdown",D),e.addEventListener("pointerup",R)):!a&&l&&E(e)}const x1=()=>({mounted:(e,t)=>{x(e,t,!1)},beforeUnmount:e=>{delete e.__d_ripple__,E(e)},updated:(e,t)=>{if(t.value===t.oldValue)return;const l=O(t.oldValue);x(e,t,l)}}),N1=Object.freeze(Object.defineProperty({__proto__:null,default:x1},Symbol.toStringTag,{value:"Module"})),A1=()=>{let e;return{beforeMount:(t,{value:l})=>{const{func:o,trigger:i="click",wait:a=500,options:c}=l;if(typeof o!="function")throw new TypeError("throttle directive value must be a function");e=a1(o,a,Object.assign({},c)),B(t,i,e)},beforeUnmount:()=>{e&&e.cancel(),e=null}}},P1=Object.freeze(Object.defineProperty({__proto__:null,default:A1},Symbol.toStringTag,{value:"Module"})),L1=e=>Object.keys(e).reduce((l,o)=>{var a;const i=(a=e[o])==null?void 0:a.default;if(typeof i=="function")return l[o]=i,l;throw new TypeError(`directiveModules: ${o} is not function`)},{}),B1=e=>{const l=L1(Object.assign({"/src/directives/modules/copy/index.ts":M1,"/src/directives/modules/debounce/index.ts":w1,"/src/directives/modules/disabled/index.ts":C1,"/src/directives/modules/ellipsis/index.ts":Z1,"/src/directives/modules/ripple/index.ts":N1,"/src/directives/modules/throttle/index.ts":P1})),o=new RegExp("(?<=modules\\/).*(?=\\/index\\.ts)"),i=/^([^-]+-)*[^-]+$/;n1(l,(a,c)=>{var s;const n=(s=c.match(o))==null?void 0:s[0];typeof n=="string"&&i.test(n)?e.directive(n,a()):console.error(`[setupDirectives] ${n} is not a valid directive name`)})},$=async()=>{},F=async e=>{Q(e),await e1(e),t1(e),b1(),B1(e)},j1=async()=>{const e=Vue.createApp(T);await F(e),e.mount("#app"),await $()},T1=async()=>{let e;window.__WUJIE_MOUNT=async()=>{e=Vue.createApp(T),await F(e),e.mount("#app"),await $()},window.__WUJIE_UNMOUNT=()=>{e.unmount()},window.__WUJIE.mount()};window.__POWERED_BY_WUJIE__?T1():j1(); diff --git a/js/index-HE4cugSz.js.gz b/js/index-HE4cugSz.js.gz new file mode 100644 index 00000000..c87dac91 Binary files /dev/null and b/js/index-HE4cugSz.js.gz differ diff --git a/js/index-Kmm92eIK.js b/js/index-Kmm92eIK.js deleted file mode 100644 index 21dcbf37..00000000 --- a/js/index-Kmm92eIK.js +++ /dev/null @@ -1 +0,0 @@ -import{U as B,W as D,I,J as S,r as K,a0 as A}from"./hooks-DeCbIFFS.js";import{u as G}from"./utils-DGuZdIHQ.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./print-js@1.6.0-BdoEj60G.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.4.38-Cp_qoKMZ.js";import"./@vueuse_shared@10.9.0_vue@3.4.38-BTLxKjPf.js";import"./vue-hooks-plus@2.2.1_vue@3.4.38-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.38-f9XU7P4m.js";import"./@vue_reactivity@3.4.38-CmXFqMGn.js";import"./@vue_shared@3.4.38-D8qfpBTH.js";function k(u){return typeof u=="function"||Object.prototype.toString.call(u)==="[object Object]"&&!Vue.isVNode(u)}const ue=Vue.defineComponent({name:"TableView",setup(){const[u,{getTableInstance:n,clearFilters:r,clearSorter:i,scrollTo:d,filters:c,sort:s,downloadCsv:V,print:N}]=B(),p=[{type:"selection"},{title:"Name",key:"name",filterOptions:[{label:"John Brown",value:"John Brown"},{label:"Jim Green",value:"Jim Green"}],filter:(e,a)=>a.name.includes(e.toString())},{title:"Age",key:"age",sorter:(e,a)=>e.age-a.age},{title:"Address",key:"address"},{title:"Tags",key:"tags",render:e=>e.tags.map(l=>Vue.createVNode(naive.NTag,{type:"info",bordered:!1,style:"margin-right: 6px"},k(l)?l:{default:()=>[l]}))},{title:"Remark",key:"remark"},{title:"Action",key:"actions",render:e=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createVNode(naive.NButton,{size:"tiny"},{default:()=>[Vue.createTextVNode("查看")]}),Vue.createVNode(A,{options:[{label:"编辑",key:"edit"},{label:"新增",key:"add"}],onSelect:a=>{window.$message.info(`当前选择: ${a}`)}},null)]})}],m=Vue.ref([...p].map((e,a)=>({...e}))),o=Vue.ref([]),f=[{label:"编辑",key:"edit"},{label:()=>Vue.createVNode("span",{style:"color: red;"},[Vue.createTextVNode("删除")]),key:"delete"}],v=Vue.reactive({gridItemCount:4,gridCollapsedRows:1,tableLoading:!1}),[y,{checkedRowKeysBind:h,getKeys:C,getRows:t,clearKey:g,clearAll:w,selectKey:b}]=D(o,m,{rowKey:"key",onChange:(e,a,l)=>{}}),T=()=>{for(let e=0;e<10;e++)o.value.push({key:G(),name:e%2===0?"John Brown":"Jim Green",age:e+20,address:"New York No. 1 Lake Park",tags:["nice","developer"],remark:"我是一条很长很长的备注"})},x=e=>{window.$message.info(`${e}`)},F=()=>{const{key:e}=o.value[1];g(e)},E=()=>{o.value.map(a=>a.key).forEach(a=>b(a))},R=()=>{const{key:e}=o.value[1];b(e)};return T(),{...Vue.toRefs(v),tableData:o,actionColumns:m,baseColumns:p,tableMenuOptions:f,menuSelect:x,register:u,getKeys:C,getRows:t,clearKey:g,clearAll:w,checkedRowKeysBind:h,checkedRowKeys:y,clearSecondIndexRow:F,selectAll:E,selectSecondIndexRow:R,clearFilters:r,clearSorter:i,scrollTo:d,filters:c,sort:s,downloadCsv:V,getTableInstance:n,print:N}},render(){let u;const{register:n,clearAll:r,checkedRowKeysBind:i,clearSecondIndexRow:d,selectAll:c,selectSecondIndexRow:s,clearFilters:V,clearSorter:N,scrollTo:p,filters:m,sort:o,downloadCsv:f,getTableInstance:v,getRows:y,getKeys:h,print:C}=this;return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,{title:"RTable"},{default:()=>[Vue.createTextVNode("基于 NDataTable 封装,继承该组件所有 props 属性。查看 RTable props 文件即可查看该组件拓展项")]}),Vue.createVNode(naive.NCard,{title:"useTable"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0,style:"width: 100%"},{default:()=>[Vue.createVNode(naive.NAlert,{title:"DataTable Methods",type:"info"},{default:()=>[Vue.createTextVNode("其余的方法查看")," ",Vue.createVNode("a",{style:"color: transparent",href:"https://www.naiveui.com/zh-CN/dark/components/data-table#DataTable-Methods"},[Vue.createTextVNode("Naive UI")]),Vue.createTextVNode("官网,保持一致。")]}),Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:N.bind(this)},{default:()=>[Vue.createTextVNode("清除所有排序")]}),Vue.createVNode(naive.NButton,{onClick:V.bind(this)},{default:()=>[Vue.createTextVNode("清除所有过滤")]}),Vue.createVNode(naive.NButton,{onClick:()=>{f()}},{default:()=>[Vue.createTextVNode("下载 CSV")]}),Vue.createVNode(naive.NButton,{onClick:()=>v()},{default:()=>[Vue.createTextVNode("getTableInstance")]}),Vue.createVNode(naive.NButton,{onClick:()=>C()},{default:()=>[Vue.createTextVNode("打印")]})]})]})]}),Vue.createVNode(naive.NCard,{title:"useCheckedRowKeys"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:c.bind(this)},{default:()=>[Vue.createTextVNode("选中所有行")]}),Vue.createVNode(naive.NButton,{onClick:r.bind(this)},{default:()=>[Vue.createTextVNode("取消所有已选中行")]}),Vue.createVNode(naive.NButton,{onClick:s.bind(this)},{default:()=>[Vue.createTextVNode("选中第二行")]}),Vue.createVNode(naive.NButton,{onClick:d.bind(this)},{default:()=>[Vue.createTextVNode("取消第二行选中")]})]}),Vue.createVNode(naive.NFlex,null,k(u=this.checkedRowKeys.map(t=>Vue.createVNode(naive.NTag,{type:"success",key:t},k(t)?t:{default:()=>[t]})))?u:{default:()=>[u]})]})]}),Vue.createVNode(I,{bordered:!1,collapsedRows:this.gridCollapsedRows,cols:this.gridItemCount,onUpdateValue:t=>window.$message.info(`我是 RCollapseGrid 组件${t?"收起":"展开"}的回调函数`)},{action:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NButton,{type:"primary"},{default:()=>[Vue.createTextVNode("搜索")]}),Vue.createVNode(naive.NButton,null,{default:()=>[Vue.createTextVNode("重置")]})]),default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NGridItem,null,{default:()=>[Vue.createVNode(naive.NSelect,null,null)]}),Vue.createVNode(naive.NGridItem,null,{default:()=>[Vue.createVNode(naive.NInput,null,null)]}),Vue.createVNode(naive.NGridItem,null,{default:()=>[Vue.createVNode(naive.NDatePicker,{type:"datetimerange",clearable:!0},null)]}),Vue.createVNode(naive.NGridItem,null,{default:()=>[Vue.createVNode(naive.NInput,null,null)]}),Vue.createVNode(naive.NGridItem,null,{default:()=>[Vue.createVNode(naive.NInput,null,null)]})])}),Vue.createVNode(S,{checkedRowKeys:this.checkedRowKeys,"onUpdate:checkedRowKeys":t=>this.checkedRowKeys=t,onUpdateCheckedRowKeys:i.bind(this),onRegister:n.bind(this),scrollX:1e3,title:Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createVNode("span",null,[Vue.createTextVNode("标题插槽:")]),Vue.createVNode(naive.NSwitch,{onUpdateValue:t=>this.tableLoading=t},null)]}),data:this.tableData,columns:this.actionColumns,"onUpdate:columns":t=>this.actionColumns=t,pagination:{pageSize:10},contextMenuOptions:this.tableMenuOptions,loading:this.tableLoading,onContextMenuClick:this.menuSelect.bind(this),toolOptions:[Vue.createVNode(naive.NPopover,null,{trigger:()=>Vue.createVNode(K,{name:"search",size:"18",cursor:"pointer",onClick:()=>{window.$message.info("点击了搜索按钮")}},null),default:()=>"我是自定义工具栏示例"})],rowKey:t=>t.key,striped:!0},{tableFooter:()=>"表格的底部内容区域插槽,有时候你可能会用上",tableAction:()=>"表格的操作区域内容插槽,有时候可能会用上"})]})}});export{ue as default}; diff --git a/js/index-Kmm92eIK.js.gz b/js/index-Kmm92eIK.js.gz deleted file mode 100644 index 5b702ce3..00000000 Binary files a/js/index-Kmm92eIK.js.gz and /dev/null differ diff --git a/js/index-U-KjHHUk.js b/js/index-U-KjHHUk.js deleted file mode 100644 index 13f55095..00000000 --- a/js/index-U-KjHHUk.js +++ /dev/null @@ -1 +0,0 @@ -import{i as V,p as v,q as h,e as u,r as a,f as N,T as f,t as y}from"./hooks-DeCbIFFS.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.4.38-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import{s as d}from"./utils-DGuZdIHQ.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{Q as w}from"./vue3-next-qrcode@2.0.10_typescript@5.2.2-B-d0H0H3.js";import{L as b}from"./ray-dCjhX_JK.js";import{e as S}from"./@vueuse_core@10.9.0_vue@3.4.38-Cp_qoKMZ.js";import{A as x}from"./index-43Sr2ZDd.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vueuse_shared@10.9.0_vue@3.4.38-BTLxKjPf.js";import"./@vue_runtime-core@3.4.38-f9XU7P4m.js";import"./@vue_reactivity@3.4.38-CmXFqMGn.js";import"./@vue_shared@3.4.38-D8qfpBTH.js";function _(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const R=Vue.defineComponent({name:"RSigning",setup(){const e=Vue.ref(),{t}=h(),{signing:i}=V(),{getRootPath:n}=v(),o=Vue.ref(!1),c=()=>({name:"Ray Admin",pwd:"123456"}),p=VueRouter.useRouter(),r=Vue.ref(c()),g={name:{required:!0,message:t("views.login.index.NamePlaceholder"),trigger:["blur","input"]},pwd:{required:!0,message:t("views.login.index.PasswordPlaceholder"),trigger:["blur","input"]}};return{signingForm:r,loginFormRef:e,handleLogin:()=>{var s;(s=e.value)==null||s.validate(m=>{m||(o.value=!0,i(r.value).then(l=>{l.code===0&&setTimeout(()=>{window.$message.success(`欢迎${r.value.name}登陆~`),d(u.token,"tokenValue","localStorage"),d(u.signing,l.data,"localStorage"),p.push(n.value),o.value=!1},2*1e3)}).catch(()=>{window.$message.error("不可以这样哟, 不可以哟")}))})},rules:g,loading:o}},render(){let e;const{$t:t,loading:i}=this;return Vue.createVNode(naive.NForm,{model:this.signingForm,ref:"loginFormRef",rules:this.rules},{default:()=>[Vue.createVNode(naive.NFormItem,{label:t("views.login.index.Name"),path:"name"},{default:()=>[Vue.createVNode(naive.NInput,{value:this.signingForm.name,"onUpdate:value":n=>this.signingForm.name=n,placeholder:t("views.login.index.NamePlaceholder")},null)]}),Vue.createVNode(naive.NFormItem,{label:t("views.login.index.Password"),path:"pwd"},{default:()=>[Vue.createVNode(naive.NInput,{value:this.signingForm.pwd,"onUpdate:value":n=>this.signingForm.pwd=n,type:"password",showPasswordOn:"click",placeholder:t("views.login.index.PasswordPlaceholder")},null)]}),Vue.createVNode(naive.NButton,{style:["width: 100%","margin-to: 18px"],type:"primary",onClick:this.handleLogin.bind(this),loading:i},_(e=t("views.login.index.Login"))?e:{default:()=>[e]})]})}}),j=Vue.defineComponent({name:"RRegister",render(){return Vue.createVNode(naive.NResult,{status:"info",title:"提示",description:"我实在是不想写了..."},null)}}),C=Vue.defineComponent({name:"QRCodeSigning",setup(){const e=Vue.reactive({qrcodeValue:"https://github.com/XiaoDaiGua-Ray/xiaodaigua-ray.github.io"});return{...Vue.toRefs(e)}},render(){return Vue.createVNode("div",{class:"qrcode-signing"},[Vue.createVNode(w,{text:"ray template yes",size:200,logoImage:b},null)])}});function k(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const F=Vue.defineComponent({name:"SSOSigning",setup(){return{ssoSigningOptions:[{icon:"github",key:"github",tooltipLabel:"Github登陆"},{icon:"google",key:"google",tooltipLabel:"Google登陆"},{icon:"twitter",key:"twitter",tooltipLabel:"Twitter登陆"}],handleSSOSigningClick:i=>{window.$message.info(`调用${i.tooltipLabel}`)}}},render(){let e;return Vue.createVNode(naive.NFlex,{class:"sso-signing",align:"center"},k(e=this.ssoSigningOptions.map(t=>Vue.createVNode(naive.NPopover,{key:t.key},{trigger:()=>Vue.createVNode(a,{name:t.icon,size:"24",cursor:"pointer",onClick:this.handleSSOSigningClick.bind(this,t)},null),default:()=>t.tooltipLabel})))?e:{default:()=>[e]})}});var O={pkg:{dependencies:{"@vueuse/core":"^10.9.0",axios:"^1.7.5",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.39.0",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.38","vue-demi":"0.14.6","vue-hooks-plus":"2.2.1","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.0","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-with-include":"1.2.2",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.17.5","unplugin-vue-components":"^0.26.0",vite:"^5.4.1","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.0.11"},name:"ray-template",version:"4.9.4"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};function L(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const ne=Vue.defineComponent({name:"RLogin",setup(){const{layout:{copyright:e}}=O,t=Vue.reactive({tabsValue:"signing"}),{height:i,width:n}=S(),{updateLocale:o}=N();return{...Vue.toRefs(t),windowHeight:i,updateLocale:o,copyright:e,windowWidth:n}},render(){let e;const{$t:t}=this;return Vue.createVNode("div",{class:["login"],style:[`height: ${this.windowHeight}px`,`--login-height: ${this.windowHeight}px`]},[Vue.createVNode("div",{class:["login-wrapper",this.windowWidth>=1440?"login-wrapper--divider":""]},[Vue.createVNode("div",{class:["login-wrapper__content"]},[Vue.createVNode(naive.NFlex,{align:"center",class:"login-title__wrapper"},{default:()=>[Vue.createVNode(a,{name:"ray",size:"48"},null),Vue.createVNode(naive.NGradientText,{class:"login-title",type:"info",size:28},{default:()=>[Vue.createTextVNode("Ray Template")]})]}),Vue.createVNode(naive.NFlex,{align:"center",class:"login-action__wrapper"},{default:()=>[Vue.createVNode(f,null,null),Vue.createVNode(naive.NDropdown,{options:y,onSelect:i=>this.updateLocale(i),trigger:"click"},{default:()=>[Vue.createVNode(a,{customClassName:"login-icon",name:"language",size:"18",cursor:"pointer"},null)]})]}),Vue.createVNode(naive.NGrid,{cols:"s:1 m:1 l:2 xl:2 2xl:2",itemResponsive:!1,responsive:"screen"},{default:()=>[Vue.createVNode(naive.NGridItem,{span:"s:0 m:0 l:1 xl:1 2xl:1",class:"login__left-wrapper"},{default:()=>[Vue.createVNode(naive.NFlex,{align:"center",vertical:!0},{default:()=>[Vue.createVNode(a,{name:"login_bg",width:"368",height:"368"},null),Vue.createVNode(naive.NGradientText,{class:"login-title",type:"info",size:36},L(e=t("views.login.index.RayTemplate"))?e:{default:()=>[e]})]})]}),Vue.createVNode(naive.NGridItem,{span:1,class:"login__right-wrapper"},{default:()=>[Vue.createVNode(naive.NCard,{class:"login__right-wrapper__content",embedded:!0,bordered:!1},{default:()=>[Vue.createVNode(naive.NTabs,{value:this.tabsValue,"onUpdate:value":i=>this.tabsValue=i,type:"line",animated:!0,size:"large"},{default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NTabPane,{tab:t("views.login.index.Signing"),name:"signing"},{default:()=>[Vue.createVNode(R,null,null)]}),Vue.createVNode(naive.NTabPane,{tab:t("views.login.index.Register"),name:"register"},{default:()=>[Vue.createVNode(j,null,null)]}),Vue.createVNode(naive.NTabPane,{tab:t("views.login.index.QRCodeSigning"),name:"qrcodeSigning"},{default:()=>[Vue.createVNode(C,null,null)]})])}),Vue.createVNode(naive.NDivider,null,{default:()=>[Vue.createTextVNode("其他登陆方式")]}),Vue.createVNode(F,null,null),Vue.createVNode(naive.NDivider,null,{default:()=>[Vue.createTextVNode("友情链接")]}),Vue.createVNode(x,null,null)]})]})]}),Vue.createVNode(naive.NFlex,{align:"center",justify:"center",class:"login-copyright__wrapper"},{default:()=>[this.copyright]})])])])}});export{ne as default}; diff --git a/js/index-U-KjHHUk.js.gz b/js/index-U-KjHHUk.js.gz deleted file mode 100644 index 6051c762..00000000 Binary files a/js/index-U-KjHHUk.js.gz and /dev/null differ diff --git a/js/index-_-HOULeL.js b/js/index-_-HOULeL.js deleted file mode 100644 index 08273e9e..00000000 --- a/js/index-_-HOULeL.js +++ /dev/null @@ -1 +0,0 @@ -import{d as g,g as Y,M as W,e as v,f as y,h as M,i as N,j as q,k as G,R as A,l as J,m as K,D as X,s as Q,n as e1,o as t1}from"./hooks-DeCbIFFS.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.4.38-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{g as P,c as l1,f as _,n as b,h as L,s as k,b as C,i as i1}from"./utils-DGuZdIHQ.js";import{g as o1,d as c1,t as a1,f as n1}from"./lodash-es@4.17.21-BALnwRTu.js";import"./vue3-next-qrcode@2.0.10_typescript@5.2.2-B-d0H0H3.js";import"./dayjs@1.11.10-BRzSdUgl.js";import{C as s1}from"./clipboard@2.0.11-DheAgBlr.js";import{u as B}from"./@vueuse_core@10.9.0_vue@3.4.38-Cp_qoKMZ.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vueuse_shared@10.9.0_vue@3.4.38-BTLxKjPf.js";import"./@vue_runtime-core@3.4.38-f9XU7P4m.js";import"./@vue_reactivity@3.4.38-CmXFqMGn.js";import"./@vue_shared@3.4.38-D8qfpBTH.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))o(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const c of a.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&o(c)}).observe(document,{childList:!0,subtree:!0});function l(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function o(i){if(i.ep)return;i.ep=!0;const a=l(i);fetch(i.href,a)}})();const r1=Vue.defineComponent({name:"GlobalProvider",setup(e,{expose:t}){const{getPrimaryColorOverride:l,getAppTheme:o,getLocaleLanguage:i}=g(),a=Vue.computed(()=>{const n=i.value;return Y(n)}),c=()=>{const{message:n,notification:s,dialog:r,loadingBar:d}=naive.createDiscreteApi(["message","dialog","notification","loadingBar"],{configProviderProps:Vue.computed(()=>({theme:o.value?naive.darkTheme:null}))});window.$dialog=r,window.$message=n,window.$loadingBar=d,window.$notification=s};return t(),{getPrimaryColorOverride:l,localePackage:a,getAppTheme:o,discreteApi:c}},render(){const{$slots:{default:e},discreteApi:t}=this,{getPrimaryColorOverride:l,getAppTheme:o,localePackage:i}=this;return Vue.createVNode(naive.NConfigProvider,{themeOverrides:l,theme:o?naive.darkTheme:null,locale:i.locale,dateLocale:i.dateLocal},{default:()=>[Vue.createVNode(naive.NLoadingBarProvider,null,{default:()=>[Vue.createVNode(naive.NMessageProvider,W,{default:()=>[Vue.createVNode(naive.NDialogProvider,null,{default:()=>[Vue.createVNode(naive.NModalProvider,null,{default:()=>[Vue.createVNode(naive.NNotificationProvider,null,{default:()=>[Vue.createVNode(naive.NGlobalStyle,null,null),e==null?void 0:e(),t()]})]})]})]})]})]})}});var d1={pkg:{dependencies:{"@vueuse/core":"^10.9.0",axios:"^1.7.5",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.39.0",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.38","vue-demi":"0.14.6","vue-hooks-plus":"2.2.1","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.0","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-with-include":"1.2.2",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.17.5","unplugin-vue-components":"^0.26.0",vite:"^5.4.1","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.0.11"},name:"ray-template",version:"4.9.4"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const p1=Vue.defineComponent({name:"AppStyleProvider",setup(e,{expose:t}){const{getAppTheme:l}=g(),o=()=>{const{appPrimaryColor:{primaryColor:c,primaryFadeColor:n}}=d1,s=document.body,r=P(v.appPiniaSettingStore,"localStorage");if(r){const d=o1(r,"primaryColorOverride.common.primaryColor",c),u=l1(d,.38);s.style.setProperty("--ray-theme-primary-color",d),s.style.setProperty("--ray-theme-primary-fade-color",u||n)}},i=()=>{const c=document.getElementById("pre-loading-animation");c&&_(c,{display:"none"})},a=c=>{const n=document.body,s="ray-template--dark",r="ray-template--light";c?b(n,r):b(n,s),L(n,c?s:r)};o(),i(),Vue.watch(()=>l.value,c=>{a(c)},{immediate:!0}),t()},render(){return Vue.createVNode("div",{class:"app-style-provider"},null)}}),j={lockPassword:{required:!0,message:"请输入正确格式密码",min:6,max:12,trigger:["input"]}},m=()=>({lockPassword:null}),u1=Vue.defineComponent({name:"LockScreen",setup(){const e=Vue.ref(null),t=Vue.ref(null),{setLockAppScreen:l}=M(),{updateSettingState:o}=y(),i=Vue.reactive({lockCondition:m()}),a=()=>{var c;(c=e.value)==null||c.validate(n=>{n||(l(!0),o("lockScreenSwitch",!0),i.lockCondition=m())})};return Vue.onMounted(()=>{Vue.nextTick(()=>{var c;(c=t.value)==null||c.focus()})}),{...Vue.toRefs(i),lockScreen:a,formInstRef:e,inputInstRef:t}},render(){return Vue.createVNode("div",{class:"app-lock-screen__input"},[Vue.createVNode(naive.NForm,{ref:"formInstRef",model:this.lockCondition,rules:j,labelPlacement:"left"},{default:()=>[Vue.createVNode(naive.NFormItem,{path:"lockPassword"},{default:()=>[Vue.createVNode(naive.NInput,{ref:"inputInstRef",value:this.lockCondition.lockPassword,"onUpdate:value":e=>this.lockCondition.lockPassword=e,type:"password",placeholder:"请输入锁屏密码",clearable:!0,showPasswordOn:"click",minlength:6,maxlength:12,onKeydown:e=>{e.code==="Enter"&&this.lockScreen()}},null)]}),Vue.createVNode(naive.NButton,{type:"primary",onClick:this.lockScreen.bind(this)},{default:()=>[Vue.createTextVNode("锁屏")]})]})])}}),h1=Vue.defineComponent({name:"UnlockScreen",setup(){const e=Vue.ref(null),t=Vue.ref(null),{logout:l}=N(),{updateSettingState:o}=y(),{setLockAppScreen:i}=M(),{isTabletOrSmaller:a}=q(),c="HH:mm",n="A",s="YY年MM月DD日",r="ddd",d=Vue.reactive({lockCondition:m(),HH_MM:dayjs().format(c),AM_PM:dayjs().locale("en").format(n),YY_MM_DD:dayjs().format(s),DDD:dayjs().format(r)}),u=setInterval(()=>{d.HH_MM=dayjs().format(c),d.AM_PM=dayjs().format(n)},6e3),h=setInterval(()=>{d.YY_MM_DD=dayjs().format(s),d.DDD=dayjs().format(r)},864e5),f=()=>{window.$dialog.warning({title:"警告",content:"是否返回到登陆页?",positiveText:"确定",negativeText:"取消",onPositiveClick:()=>{l(),setTimeout(()=>{o("lockScreenSwitch",!1)})}})},I=()=>{var w;(w=e.value)==null||w.validate(U=>{U||(i(!1),o("lockScreenSwitch",!1),d.lockCondition=m())})};return Vue.onBeforeUnmount(()=>{clearInterval(u),clearInterval(h)}),{...Vue.toRefs(d),backToSigning:f,unlockScreen:I,formRef:e,inputInstRef:t,isTabletOrSmaller:a}},render(){const{isTabletOrSmaller:e}=this,{HH_MM:t,AM_PM:l,YY_MM_DD:o,DDD:i}=this,a=t.split(":"),{unlockScreen:c,backToSigning:n}=this;return Vue.createVNode("div",{class:"app-lock-screen__unlock"},[Vue.createVNode("div",{class:"app-lock-screen__unlock__content"},[Vue.createVNode("div",{class:"app-lock-screen__unlock__content-wrapper"},[Vue.createVNode("div",{class:["app-lock-screen__unlock__content-bg__wrapper","app-lock-screen__unlock__content-bg",e?"app-lock-screen__unlock__content-bg--smaller":""]},[Vue.createVNode("div",{class:"left"},[a[0]]),Vue.createVNode("div",{class:"right"},[a[1]])])]),Vue.createVNode("div",{class:"app-lock-screen__unlock__content-avatar"},[Vue.createVNode(G,{avatarSize:52,style:"pointer-events: none;",vertical:!0},null)]),Vue.createVNode("div",{class:"app-lock-screen__unlock__content-input"},[Vue.createVNode(naive.NForm,{ref:"formRef",model:this.lockCondition,rules:j},{default:()=>[Vue.createVNode(naive.NFormItem,{path:"lockPassword"},{default:()=>[Vue.createVNode(naive.NInput,{ref:"inputInstRef",value:this.lockCondition.lockPassword,"onUpdate:value":s=>this.lockCondition.lockPassword=s,type:"password",placeholder:"请输入解锁密码",clearable:!0,minlength:6,maxlength:12,onKeydown:s=>{s.code==="Enter"&&c()}},null)]}),Vue.createVNode(naive.NFlex,{justify:"space-between"},{default:()=>[Vue.createVNode(naive.NButton,{type:"primary",text:!0,onClick:n.bind(this)},{default:()=>[Vue.createTextVNode("返回登陆")]}),Vue.createVNode(naive.NButton,{type:"primary",text:!0,onClick:c.bind(this)},{default:()=>[Vue.createTextVNode("进入系统")]})]})]})]),Vue.createVNode("div",{class:"app-lock-screen__unlock__content-date"},[Vue.createVNode("div",{class:"current-date"},[t,Vue.createTextVNode(" "),Vue.createVNode("span",null,[l])]),Vue.createVNode("div",{class:"current-year"},[o,Vue.createTextVNode(" "),Vue.createVNode("span",null,[i])])])])])}}),f1=Vue.defineComponent({name:"AppLockScreen",setup(){const{getLockAppScreen:e}=M(),{updateSettingState:t}=y(),{getLockScreenSwitch:l}=g();return{lockScreenSwitchRef:Vue.computed({get:()=>l.value,set:i=>{t("lockScreenSwitch",i)}}),getLockAppScreen:e}},render(){const{getLockAppScreen:e}=this;return Vue.createVNode(A,{show:this.lockScreenSwitchRef,"onUpdate:show":t=>this.lockScreenSwitchRef=t,transformOrigin:"center",autoFocus:!1,maskClosable:!1,closeOnEsc:!1,preset:e()?void 0:"dialog",title:"锁定屏幕"},{default:()=>[Vue.createVNode("div",{class:"app-lock-screen__content"},[e()?Vue.createVNode(h1,null,null):Vue.createVNode(u1,null,null)])]})}}),v1=Vue.defineComponent({name:"AppWatermarkProvider",setup(){const{getWatermarkSwitch:e,getWatermarkConfig:t}=g();return{getWatermarkSwitch:e,getWatermarkConfig:t}},render(){const{getWatermarkConfig:e,getWatermarkSwitch:t}=this;return t?Vue.createVNode(naive.NWatermark,Vue.mergeProps({cross:!0,fullscreen:!0},e),null):null}}),m1=Vue.defineComponent({name:"GlobalSpin",props:{...naive.spinProps},setup(){const e={opacitySpinning:"0.3"};return{spinValue:J("globalSpinning"),overrides:e}},render(){return Vue.createVNode(naive.NSpin,Vue.mergeProps(this.$props,{show:this.spinValue,themeOverrides:this.overrides}),{...this.$slots})}});var g1={pkg:{dependencies:{"@vueuse/core":"^10.9.0",axios:"^1.7.5",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.39.0",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.38","vue-demi":"0.14.6","vue-hooks-plus":"2.2.1","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.0","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-with-include":"1.2.2",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.17.5","unplugin-vue-components":"^0.26.0",vite:"^5.4.1","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.0.11"},name:"ray-template",version:"4.9.4"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const _1=Vue.defineComponent({name:"AppVersionProvider",setup(){const{pkg:{version:e}}=g1,t=P(v.appVersionProvider,"localStorage"),l=Vue.ref(!1),{logout:o}=N();return t!==null?e!==t&&(l.value=!0,k(v.appVersionProvider,e,"localStorage")):k(v.appVersionProvider,e,"localStorage"),{modalShow:l,logout:o}},render(){const{logout:e}=this;return Vue.createVNode("div",{class:"app-style-provider"},[Vue.createVNode(A,{show:this.modalShow,"onUpdate:show":t=>this.modalShow=t,closeOnEsc:!1,maskClosable:!1,preset:"dialog",closable:!1,title:"发现新版本",content:"当前版本已更新,点击确认加载新版本~",zIndex:999999999,dad:!0,positiveText:"确认",negativeText:"取消",onPositiveClick:e,onNegativeClick:()=>{this.modalShow=!1}},null)])}}),T=Vue.defineComponent({name:"App",render(){return Vue.createVNode(r1,null,{default:()=>[Vue.createVNode(_1,null,null),Vue.createVNode(f1,null,null),Vue.createVNode(p1,null,null),Vue.createVNode(v1,null,null),Vue.createVNode(m1,null,{default:()=>Vue.createVNode(VueRouter.RouterView,null,null),description:()=>K})]})}});if(typeof window<"u"){let e=function(){var t=document.body,l=document.getElementById("__svg__icons__dom__");l||(l=document.createElementNS("http://www.w3.org/2000/svg","svg"),l.style.position="absolute",l.style.width="0",l.style.height="0",l.id="__svg__icons__dom__",l.setAttribute("xmlns","http://www.w3.org/2000/svg"),l.setAttribute("xmlns:link","http://www.w3.org/1999/xlink")),l.innerHTML='',t.insertBefore(l,t.lastChild)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e()}const b1=()=>{dayjs.locale(X)},z=(e,t)=>{const l=new s1(e,{text:()=>t});e.$$clipboard=l,e.$$clipboard.on("success",()=>{window.$message.success("复制成功")}),e.$$clipboard.on("error",()=>{window.$message.error("复制失败")})},y1=()=>({mounted:(e,{value:t})=>{z(e,t)},updated:(e,{value:t,oldValue:l})=>{var o;t!==l&&((o=e.$$clipboard)==null||o.destroy(),z(e,t))},beforeUnmount:e=>{var t;e.$$clipboard&&((t=e.$$clipboard)==null||t.destroy(),e.$$clipboard=null)}}),M1=Object.freeze(Object.defineProperty({__proto__:null,default:y1},Symbol.toStringTag,{value:"Module"})),V1=()=>{let e,t;return{beforeMount:(l,{value:o})=>{const{func:i,trigger:a="click",wait:c=500,options:n}=o;if(typeof i!="function")throw new TypeError("debounce directive value must be a function");e=c1(i,c,Object.assign({},n)),t=B(l,a,e)},beforeUnmount:(l,{value:o})=>{e&&(e.cancel(),t==null||t()),e=null}}},w1=Object.freeze(Object.defineProperty({__proto__:null,default:V1},Symbol.toStringTag,{value:"Module"})),Z=(e,t)=>{if(e){const l="ray-template__directive--disabled";t?(e.setAttribute("disabled","disabled"),L(e,l)):(e.removeAttribute("disabled"),b(e,l)),e==null||e.setAttribute("disabled",t?"disabled":"")}},k1=()=>({mounted:(e,{value:t})=>{Z(e,t)},updated:(e,{value:t,oldValue:l})=>{t!==l&&Z(e,t)}}),C1=Object.freeze(Object.defineProperty({__proto__:null,default:k1},Symbol.toStringTag,{value:"Module"})),S=(e,t)=>{const{line:l=1,type:o="block",width:i,popoverText:a}=t;if(i==null){console.error(`[v-ellipsis]: Expected width is string or number, but got typeof ${i}!`);return}a&&e.textContent&&e.setAttribute("title",e.textContent),o==="line"?_(e,{display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":l,overflow:"hidden",width:C(i)}):_(e,{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:C(i)})},z1=()=>({mounted:(e,{value:t})=>{S(e,t)},updated:(e,{value:t})=>{S(e,t)}}),Z1=Object.freeze(Object.defineProperty({__proto__:null,default:z1},Symbol.toStringTag,{value:"Module"})),p={vRippleAnimationEnter:"v-ripple__animation--enter",vRippleAnimationVisible:"v-ripple__animation--visible",vRippleAnimationIn:"v-ripple__animation--in",vRippleAnimationOut:"v-ripple__animation--out",vRippleAnimation:"v-ripple__animation"},S1="v-ripple__container";function H(e,t){e.style.transform=t}function D(e){const t={},l=e.currentTarget;!(l!=null&&l.__d_ripple__)||l.__d_ripple__.touched||(t.center=l.__d_ripple__.centered,l.__d_ripple__.class&&(t.class=l.__d_ripple__.class),V.show(e,l,t))}function R(e){const t=e.currentTarget;t!=null&&t.__d_ripple__&&(setTimeout(()=>{t.__d_ripple__&&(t.__d_ripple__.touched=!1)}),V.hide(t))}const H1=(e,t,l={})=>{var h;const o=t.getBoundingClientRect(),i=e.clientX-o.left,a=e.clientY-o.top;let c=0,n=.3;(h=t.__d_ripple__)!=null&&h.circle?(n=.15,c=t.clientWidth/2,c=l.center?c:c+Math.sqrt((i-c)**2+(a-c)**2)/4):c=Math.sqrt(t.clientWidth**2+t.clientHeight**2)/2;const s=`${(t.clientWidth-c*2)/2}px`,r=`${(t.clientHeight-c*2)/2}px`,d=l.center?s:`${i-c}px`,u=l.center?r:`${a-c}px`;return{radius:c,scale:n,x:d,y:u,centerX:s,centerY:r}},V={show(e,t,l={}){var f;if(!((f=t==null?void 0:t.__d_ripple__)!=null&&f.enabled))return;const o=document.createElement("span"),i=document.createElement("span");o.appendChild(i),o.className=S1,l.class&&(o.className+=` ${l.class}`);const{radius:a,scale:c,x:n,y:s,centerX:r,centerY:d}=H1(e,t,l),u=`${a*2}px`;i.className=p.vRippleAnimation,i.style.width=u,i.style.height=u,t.appendChild(o);const h=window.getComputedStyle(t);h&&h.position==="static"&&(t.style.position="relative",t.dataset.previousPosition="static"),i.classList.add(p.vRippleAnimationEnter),i.classList.add(p.vRippleAnimationVisible),H(i,`translate(${n}, ${s}) scale3d(${c},${c},${c})`),i.dataset.activated=String(performance.now()),setTimeout(()=>{i.classList.remove(p.vRippleAnimationEnter),i.classList.add(p.vRippleAnimationIn),H(i,`translate(${r}, ${d}) scale3d(1,1,1)`)},0)},hide(e){var a;if(!((a=e==null?void 0:e.__d_ripple__)!=null&&a.enabled))return;const t=e.getElementsByClassName(p.vRippleAnimation);if(t.length===0)return;const l=t[t.length-1];if(l.dataset.isHiding)return;l.dataset.isHiding="true";const o=performance.now()-Number(l.dataset.activated),i=Math.max(250-o,0);setTimeout(()=>{l.classList.remove(p.vRippleAnimationIn),l.classList.add(p.vRippleAnimationOut),setTimeout(()=>{var n;e.getElementsByClassName(p.vRippleAnimation).length===1&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),((n=l.parentNode)==null?void 0:n.parentNode)===e&&e.removeChild(l.parentNode)},300)},i)}};function O(e){return typeof e>"u"||!!e}function E(e){e.removeEventListener("pointerdown",D),e.removeEventListener("pointerup",R)}function x(e,t,l){const{value:o,modifiers:i}=t,a=O(o);a||V.hide(e),e.__d_ripple__=e.__d_ripple__??{},e.__d_ripple__.enabled=a,e.__d_ripple__.centered=i.center,e.__d_ripple__.circle=i.circle,i1(o,"Object")&&o.class&&(e.__d_ripple__.class=o.class),a&&!l?(e.addEventListener("pointerdown",D),e.addEventListener("pointerup",R)):!a&&l&&E(e)}const x1=()=>({mounted:(e,t)=>{x(e,t,!1)},beforeUnmount:e=>{delete e.__d_ripple__,E(e)},updated:(e,t)=>{if(t.value===t.oldValue)return;const l=O(t.oldValue);x(e,t,l)}}),N1=Object.freeze(Object.defineProperty({__proto__:null,default:x1},Symbol.toStringTag,{value:"Module"})),A1=()=>{let e;return{beforeMount:(t,{value:l})=>{const{func:o,trigger:i="click",wait:a=500,options:c}=l;if(typeof o!="function")throw new TypeError("throttle directive value must be a function");e=a1(o,a,Object.assign({},c)),B(t,i,e)},beforeUnmount:()=>{e&&e.cancel(),e=null}}},P1=Object.freeze(Object.defineProperty({__proto__:null,default:A1},Symbol.toStringTag,{value:"Module"})),L1=e=>Object.keys(e).reduce((l,o)=>{var a;const i=(a=e[o])==null?void 0:a.default;if(typeof i=="function")return l[o]=i,l;throw new TypeError(`directiveModules: ${o} is not function`)},{}),B1=e=>{const l=L1(Object.assign({"/src/directives/modules/copy/index.ts":M1,"/src/directives/modules/debounce/index.ts":w1,"/src/directives/modules/disabled/index.ts":C1,"/src/directives/modules/ellipsis/index.ts":Z1,"/src/directives/modules/ripple/index.ts":N1,"/src/directives/modules/throttle/index.ts":P1})),o=new RegExp("(?<=modules\\/).*(?=\\/index\\.ts)"),i=/^([^-]+-)*[^-]+$/;n1(l,(a,c)=>{var s;const n=(s=c.match(o))==null?void 0:s[0];typeof n=="string"&&i.test(n)?e.directive(n,a()):console.error(`[setupDirectives] ${n} is not a valid directive name`)})},$=async()=>{},F=async e=>{Q(e),await e1(e),t1(e),b1(),B1(e)},j1=async()=>{const e=Vue.createApp(T);await F(e),e.mount("#app"),await $()},T1=async()=>{let e;window.__WUJIE_MOUNT=async()=>{e=Vue.createApp(T),await F(e),e.mount("#app"),await $()},window.__WUJIE_UNMOUNT=()=>{e.unmount()},window.__WUJIE.mount()};window.__POWERED_BY_WUJIE__?T1():j1(); diff --git a/js/index-_-HOULeL.js.gz b/js/index-_-HOULeL.js.gz deleted file mode 100644 index 1f5df4ac..00000000 Binary files a/js/index-_-HOULeL.js.gz and /dev/null differ diff --git a/js/index-d7z__Ck2.js b/js/index-d7z__Ck2.js new file mode 100644 index 00000000..4d3aca20 --- /dev/null +++ b/js/index-d7z__Ck2.js @@ -0,0 +1 @@ +import"./hooks-DUpKDX8W.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import{B as s,C as p,D as d,E as l,F as c,G as V}from"./utils-DvxnuKiq.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.5.6-CMHqEu2-.js";import"./@vueuse_shared@10.9.0_vue@3.5.6-BTLxKjPf.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.0.1_pinia@2.1.7-MNUqeAcu.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.0-DyxInw53.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.5.6-CUaD_-7Q.js";import"./@vue_reactivity@3.5.6-CXMPYrvZ.js";import"./@vue_shared@3.5.6-6BrT-eFF.js";const k=Vue.defineComponent({name:"CalculatePrecision",setup(){const t=Vue.reactive({addOptions:["1","0.2","0.1","1.1"],subtractOptions:["1","0.2","0.1","1.1"],multiplyOptions:["1","0.2","0.1","1.1"],divideOptions:["1","0.2","0.1","1.1"],distributeValue:12,distributeOutputValue:[],distributeLength:3}),e={addOptions:d,subtractOptions:l,multiplyOptions:c,divideOptions:V},i=(a,o)=>{const n=e[o],r=n(...a);return"结果: "+s(r)},u=()=>{Vue.nextTick().then(()=>{t.distributeOutputValue=p(t.distributeValue,t.distributeLength)})};return u(),{...Vue.toRefs(t),copilotFunc:i,updateDistributeValue:u}},render(){return Vue.createVNode(naive.NLayout,null,{default:()=>[Vue.createVNode("h2",{style:"margin: 0 0 20px 0"},[Vue.createTextVNode("计算方法,默认都保留八位小数与四舍五入,可以根据 format 方法自行转换")]),Vue.createVNode("h3",{style:"margin: 0 0 20px 0"},[Vue.createTextVNode("示例方法都基于 currency.js 封装,利用其精度处理能力封装了常用的一些计算方法,解决精度问题。如果需要其他的方法请阅读官方文档 https://currency.js.org/#subtract")]),Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,{title:"加法"},{default:()=>Vue.createVNode(naive.NDynamicTags,{value:this.addOptions,"onUpdate:value":t=>this.addOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"addOptions")}},null),footer:()=>this.copilotFunc(this.addOptions,"addOptions")}),Vue.createVNode(naive.NCard,{title:"减法"},{default:()=>Vue.createVNode(naive.NDynamicTags,{value:this.subtractOptions,"onUpdate:value":t=>this.subtractOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"subtractOptions")}},null),footer:()=>this.copilotFunc(this.subtractOptions,"subtractOptions")}),Vue.createVNode(naive.NCard,{title:"乘法"},{default:()=>Vue.createVNode(naive.NDynamicTags,{value:this.multiplyOptions,"onUpdate:value":t=>this.multiplyOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"multiplyOptions")}},null),footer:()=>this.copilotFunc(this.multiplyOptions,"multiplyOptions")}),Vue.createVNode(naive.NCard,{title:"除法(非取模)"},{default:()=>Vue.createVNode(naive.NDynamicTags,{value:this.divideOptions,"onUpdate:value":t=>this.divideOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"divideOptions")}},null),footer:()=>this.copilotFunc(this.divideOptions,"divideOptions")}),Vue.createVNode(naive.NCard,{title:"平分一个值"},{default:()=>Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NInputNumber,{value:this.distributeValue,"onUpdate:value":t=>this.distributeValue=t,onUpdateValue:()=>{this.updateDistributeValue()}},null),Vue.createVNode(naive.NInputNumber,{value:this.distributeLength,"onUpdate:value":t=>this.distributeLength=t,onUpdateValue:()=>{this.updateDistributeValue()}},null)]}),footer:()=>"结果: "+this.distributeOutputValue.join(", ")})]})]})}});export{k as default}; diff --git a/js/index-d7z__Ck2.js.gz b/js/index-d7z__Ck2.js.gz new file mode 100644 index 00000000..5e026b79 Binary files /dev/null and b/js/index-d7z__Ck2.js.gz differ diff --git a/js/index-enc6OrTS.js b/js/index-enc6OrTS.js deleted file mode 100644 index 10e55653..00000000 --- a/js/index-enc6OrTS.js +++ /dev/null @@ -1 +0,0 @@ -import{r as d,N as u}from"./hooks-DeCbIFFS.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.4.38-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.4.38-Cp_qoKMZ.js";import"./@vueuse_shared@10.9.0_vue@3.4.38-BTLxKjPf.js";import"./utils-DGuZdIHQ.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.38-f9XU7P4m.js";import"./@vue_reactivity@3.4.38-CmXFqMGn.js";import"./@vue_shared@3.4.38-D8qfpBTH.js";const T=Vue.defineComponent({name:"SegmentDemo",setup(){const t=[{label:"这是一",key:"this is one"},{label:"这是二",key:"this is two"},{label:"这是三",key:"this is three"}],a=[...t,{label:"这是四",key:"this is four",slots:{default:()=>"我是自定义"}}],o=[...t,{label:"不许点",key:"disabled option",disabled:!0},{label:"popover",key:"popover",popover:"我是 popover"},{label:"popover options",key:"popover options",popover:{label:"我是配置项的 popover"}}],i=[{label:"设置",key:"setting",icon:Vue.createVNode(d,{name:"setting"},null)},{label:"刷新",key:"reload",icon:Vue.createVNode(d,{name:"reload"},null)},{label:"搜索",key:"search",icon:Vue.createVNode(d,{name:"search"},null),popover:"我是搜索"}],l=Vue.ref("this is three"),e=Vue.ref("medium"),n=Vue.ref("block");return{baseOptions:t,options:a,segmentValueOne:l,segmentChange:r=>{window.$message.info(String(r))},size:e,width:n,disabledOptions:o,iconOptions:i}},render(){const{options:t,baseOptions:a,disabledOptions:o,iconOptions:i}=this,{segmentChange:l}=this;return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NAlert,{title:"警告⚠️",type:"warning"},{default:()=>[Vue.createTextVNode("n-tabs 默认情况下会从 slot 获取默认展示的 tab 值,因此会产生一个 vue slot 的 warning。如果你不想看到这个 warning,请设定一个 default-value。")]}),Vue.createVNode(naive.NAlert,{title:"已知问题",type:"warning"},{default:()=>[Vue.createTextVNode("由于 NTabs 设计缘故,手动设置 width 为 fitContent 后,配置了 disabled, popover 的配置项,会丢失过度效果。具体可以看下面的例子。"),Vue.createVNode("br",null,null),Vue.createTextVNode("解决方法,在该组件外层包一层 div,设置宽度,但是不能为 fit-content。")]}),Vue.createVNode(naive.NCard,{title:"分段器"},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("该组件基于 NTabs + NTabPane 封装,所以保留了一些该组件的特性。")])]}),Vue.createVNode(naive.NGrid,{cols:2,xGap:8,yGap:12},{default:()=>[Vue.createVNode(naive.NGridItem,{span:1},{default:()=>[Vue.createVNode(naive.NCard,{title:"基础非受控分段器"},{default:()=>[Vue.createVNode(u,{defaultValue:"this is two",options:a},null)]})]}),Vue.createVNode(naive.NGridItem,{span:1},{default:()=>[Vue.createVNode(naive.NCard,{title:"自定义分段器插槽"},{default:()=>[Vue.createVNode(u,{defaultValue:this.segmentValueOne,options:t},null)]})]}),Vue.createVNode(naive.NGridItem,{span:1},{default:()=>[Vue.createVNode(naive.NCard,{title:"updateValue 事件"},{default:()=>[Vue.createVNode(u,{value:this.segmentValueOne,"onUpdate:value":e=>this.segmentValueOne=e,defaultValue:"this is two",options:o,onUpdateValue:l.bind(this),width:"block"},null)]})]}),Vue.createVNode(naive.NGridItem,{span:1},{default:()=>[Vue.createVNode(naive.NCard,{title:"自适应宽度"},{default:()=>[Vue.createVNode(u,{defaultValue:"setting",options:i,width:"block"},null)]})]}),Vue.createVNode(naive.NGridItem,{span:2},{default:()=>[Vue.createVNode(naive.NCard,{title:"尺寸"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0,size:"large"},{default:()=>[Vue.createVNode(naive.NRadioGroup,{value:this.size,"onUpdate:value":e=>this.size=e},{default:()=>[Vue.createVNode(naive.NRadio,{value:"small"},{default:()=>[Vue.createTextVNode("小")]}),Vue.createVNode(naive.NRadio,{value:"medium"},{default:()=>[Vue.createTextVNode("不小")]}),Vue.createVNode(naive.NRadio,{value:"large"},{default:()=>[Vue.createTextVNode("不太小")]})]}),Vue.createVNode(u,{defaultValue:"this is two",options:a,size:this.size,width:"block"},null)]})]})]}),Vue.createVNode(naive.NGridItem,{span:2},{default:()=>[Vue.createVNode(naive.NCard,{title:"宽度"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0,size:"large"},{default:()=>[Vue.createVNode(naive.NAlert,{title:"注意",type:"info"},{default:()=>[Vue.createTextVNode("RSegment 组件宽度默认为 fitContent,按照内容自适应宽度;如果需要自适应宽度,请设置 width 为 block;如果需要手动指定宽度请设置一个数字。")]}),Vue.createVNode(naive.NRadioGroup,{value:this.width,"onUpdate:value":e=>this.width=e},{default:()=>[Vue.createVNode(naive.NRadio,{value:"fitContent"},{default:()=>[Vue.createTextVNode("fitContent")]}),Vue.createVNode(naive.NRadio,{value:"block"},{default:()=>[Vue.createTextVNode("block")]}),Vue.createVNode(naive.NRadio,{value:800},{default:()=>[Vue.createTextVNode("800")]})]}),Vue.createVNode(u,{defaultValue:"this is two",options:o,width:this.width},null)]})]})]})]})]})}});export{T as default}; diff --git a/js/index-enc6OrTS.js.gz b/js/index-enc6OrTS.js.gz deleted file mode 100644 index 333d2bf4..00000000 Binary files a/js/index-enc6OrTS.js.gz and /dev/null differ diff --git a/js/index-kcH3_LHw.js b/js/index-kcH3_LHw.js new file mode 100644 index 00000000..0b972ad6 --- /dev/null +++ b/js/index-kcH3_LHw.js @@ -0,0 +1 @@ +import{C as u,E as h}from"./hooks-DUpKDX8W.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.5.6-CMHqEu2-.js";import"./@vueuse_shared@10.9.0_vue@3.5.6-BTLxKjPf.js";import"./utils-DvxnuKiq.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.0.1_pinia@2.1.7-MNUqeAcu.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.0-DyxInw53.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.5.6-CUaD_-7Q.js";import"./@vue_reactivity@3.5.6-CXMPYrvZ.js";import"./@vue_shared@3.5.6-6BrT-eFF.js";const z=Vue.defineComponent({name:"REchart",setup(){const[i,{getChartInstance:l,dispose:o,render:r,isDisposed:s}]=h(),[n,{getChartInstance:t,dispose:p,render:V,isDisposed:m}]=h(),g=Vue.ref(!1),c=Vue.ref(!1),a=Vue.reactive({loading:!1,loading1:!1}),N={legend:{},tooltip:{},xAxis:{type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]},yAxis:{type:"value"},series:[{name:"日期",data:[120,200,150,80,70,110,130],type:"bar",showBackground:!0,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)"}},{name:"数量",data:[12,220,250,180,20,10,190],type:"bar",showBackground:!0,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)"}}]},f={title:{text:"Referer of a Website",subtext:"Fake Data",left:"center"},tooltip:{trigger:"item"},legend:{orient:"vertical",left:"left"},series:[{name:"Access From",type:"pie",radius:"50%",data:[{value:1048,name:"Search Engine"},{value:735,name:"Direct"},{value:580,name:"Email"},{value:484,name:"Union Ads"},{value:300,name:"Video Ads"}],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]},d=Vue.ref({tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},legend:{data:["Email","Union Ads","Video Ads","Direct","Search Engine"]},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",boundaryGap:!1,data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]}],yAxis:[{type:"value"}],series:[{name:"Email",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[120,132,101,134,90,230,210]},{name:"Union Ads",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[220,182,191,234,290,330,310]},{name:"Video Ads",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[150,232,201,154,190,330,410]},{name:"Direct",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[320,332,301,334,390,330,320]},{name:"Search Engine",type:"line",stack:"Total",label:{show:!0,position:"top"},areaStyle:{},emphasis:{focus:"series"},data:[820,932,901,934,1290,1330,1320]}]}),C=e=>{a.loading=e},E=e=>{c.value=e},A=()=>{s()?r():window.$message.warning("图表已渲染~")},F=()=>{o()},v=()=>{a.loading1=!0;const e=()=>Math.floor((Math.random()+1)*100);setTimeout(()=>{d.value.series[0].data=new Array(7).fill(0).map(()=>e()),d.value.series[1].data=new Array(7).fill(0).map(()=>e()),a.loading1=!1},1e3)};return{baseOptions:N,chartLoading:g,handleLoadingShow:C,chartAria:c,handleAriaShow:E,basePieOptions:f,baseLineOptions:d,...Vue.toRefs(a),mountChart:A,unmountChart:F,updateChartOptions:v,register:i,register2:n,dispose2:p,render2:V,isDisposed2:m}},render(){const{register:i,register2:l,dispose2:o,render2:r,isDisposed2:s,loading1:n}=this;return Vue.createVNode("div",{class:"echart"},[Vue.createVNode(naive.NCard,{title:"chart 组件"},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("该组件基于 ECharts, Vueuse 封装。默认做了最佳的优化封装实践。")]),Vue.createVNode("h3",null,[Vue.createTextVNode("开箱即用的优化策略:节流更新图表、异步渲染、自动销毁、贴花、加载、主题、视窗区域渲染、自动更新尺寸等高级特性。")])]}),Vue.createVNode(naive.NCard,{title:"预设 card 风格图表"},{default:()=>[Vue.createVNode(naive.NFlex,{style:["padding: 18px 0"]},{default:()=>[Vue.createVNode(naive.NButton,{onClick:this.mountChart.bind(this)},{default:()=>[Vue.createTextVNode("渲染")]}),Vue.createVNode(naive.NButton,{onClick:this.unmountChart.bind(this)},{default:()=>[Vue.createTextVNode("卸载")]}),Vue.createVNode(naive.NButton,{onClick:this.updateChartOptions.bind(this)},{default:()=>[Vue.createTextVNode("更新配置项")]}),Vue.createVNode(naive.NButton,{onClick:()=>{this.loading1=!this.loading1}},{default:()=>[`${this.loading1?"关闭":"开启"}`,Vue.createTextVNode("加载动画")]})]}),Vue.createVNode("div",{class:"chart--container"},[Vue.createVNode(u,{onRegister:i,title:"周销售量",autoChangeTheme:!0,options:this.baseLineOptions,showAria:this.chartAria,preset:"card",loading:n},null)])]}),Vue.createVNode(naive.NCard,{title:"不跟随主题切换的暗色主题可视化图,并且手动指定原始主题色"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>{s()?r():window.$message.warning("不可以重复渲染图表~")}},{default:()=>[Vue.createTextVNode("渲染")]}),Vue.createVNode(naive.NButton,{onClick:o.bind(this)},{default:()=>[Vue.createTextVNode("卸载")]})]}),Vue.createVNode("div",{class:"chart--container"},[Vue.createVNode(u,{onRegister:l,autoChangeTheme:!1,theme:"default",options:this.baseOptions},null)])]})]}),Vue.createVNode(naive.NCard,{title:"加载动画"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.chartLoading,"onUpdate:value":t=>this.chartLoading=t,onUpdateValue:this.handleLoadingShow.bind(this),style:["padding: 18px 0"]},{checked:()=>"隐藏加载动画",unchecked:()=>"显示加载动画"}),Vue.createVNode("div",{class:"chart--container"},[Vue.createVNode(u,{loading:this.loading,options:this.baseOptions},null)])]}),Vue.createVNode(naive.NCard,{title:"贴画可视化图"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.chartAria,"onUpdate:value":t=>this.chartAria=t,onUpdateValue:this.handleAriaShow.bind(this),style:["padding: 18px 0"]},{checked:()=>"隐藏贴花",unchecked:()=>"显示贴花"}),Vue.createVNode("div",{class:"chart--container"},[Vue.createVNode(u,{options:this.baseOptions,showAria:this.chartAria},null)])]})])}});export{z as default}; diff --git a/js/index-kcH3_LHw.js.gz b/js/index-kcH3_LHw.js.gz new file mode 100644 index 00000000..6471181c Binary files /dev/null and b/js/index-kcH3_LHw.js.gz differ diff --git a/js/index-zGfSlYZ-.js b/js/index-zGfSlYZ-.js deleted file mode 100644 index bceebc36..00000000 --- a/js/index-zGfSlYZ-.js +++ /dev/null @@ -1 +0,0 @@ -import{v as o,w as u,e as i}from"./hooks-DeCbIFFS.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.4.38-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import{g as a}from"./utils-DGuZdIHQ.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.4.38-Cp_qoKMZ.js";import"./@vueuse_shared@10.9.0_vue@3.4.38-BTLxKjPf.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.38-f9XU7P4m.js";import"./@vue_reactivity@3.4.38-CmXFqMGn.js";import"./@vue_shared@3.4.38-D8qfpBTH.js";const s=Vue.defineComponent({name:"PageResult",props:{...naive.resultProps},setup(){const{router:e}=u();return{goBack:()=>{const{appMenuKey:r}=i,t=a(r,"sessionStorage",{defaultValue:""});t&&e.replace(t)}}},render(){const{goBack:e}=this;return Vue.createVNode("div",{class:"error-page"},[Vue.createVNode(naive.NResult,Vue.mergeProps(this.$props,{status:"500",title:"404 资源不存在",description:"小调皮你走错地方了"}),{...this.$slots,footer:()=>Vue.createVNode(naive.NFlex,{align:"center",justify:"center"},{default:()=>[Vue.createVNode(naive.NButton,{onClick:o.bind(this,!0)},{default:()=>[Vue.createTextVNode("返回首页")]}),Vue.createVNode(naive.NButton,{type:"primary",onClick:e.bind(this)},{default:()=>[Vue.createTextVNode("返回上一页面")]})]})})])}}),x=Vue.defineComponent({name:"ErrorPage404",setup(){return{}},render(){return Vue.createVNode(s,{status:"404"},null)}});export{x as default}; diff --git a/js/index-zGfSlYZ-.js.gz b/js/index-zGfSlYZ-.js.gz deleted file mode 100644 index 376c5f9a..00000000 Binary files a/js/index-zGfSlYZ-.js.gz and /dev/null differ diff --git a/js/instance-B5j64X7o.js.gz b/js/instance-B5j64X7o.js.gz deleted file mode 100644 index 8a58c28c..00000000 Binary files a/js/instance-B5j64X7o.js.gz and /dev/null differ diff --git a/js/instance-B5j64X7o.js b/js/instance-Mlryd73B.js similarity index 76% rename from js/instance-B5j64X7o.js rename to js/instance-Mlryd73B.js index f82ce38e..ea4a1334 100644 --- a/js/instance-B5j64X7o.js +++ b/js/instance-Mlryd73B.js @@ -1 +1 @@ -import{Y as t,Z as n,e as R,$ as q}from"./hooks-DeCbIFFS.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.4.38-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import{g as d}from"./utils-DGuZdIHQ.js";import"./currency.js@2.0.4-9OAR_aOO.js";const A=(e,r)=>{t.removePendingRequest(e)},y=(e,r)=>{t.removePendingRequest(e)},p={implementResponseInterceptorArray:[A],implementResponseInterceptorErrorArray:[y]},{setImplement:m}=n(),E=()=>{const{implementResponseInterceptorArray:e}=p;m("implementResponseInterceptorArray",e,"ok")},k=()=>{const{implementResponseInterceptorErrorArray:e}=p;m("implementResponseInterceptorErrorArray",e,"error")},P=(e,r)=>{t.removePendingRequest(e),t.addPendingRequest(e)},g=(e,r)=>{t.removePendingRequest(e)},v=(e,r)=>{if(e){const o=e.headers;r.forEach(s=>{o[s.key]=s.value})}},C=(e,r)=>{const o=d(R.token,"localStorage");return e.url,{key:"X-TOKEN",value:o}},f=(e,r)=>{v(e,[C(e),{key:"Demo-Header-Key",value:"Demo Header Value"}])},c={implementRequestInterceptorArray:[f,P],implementRequestInterceptorErrorArray:[g]},{setImplement:a}=n(),H=()=>{const{implementRequestInterceptorArray:e}=c;a("implementRequestInterceptorArray",e,"ok")},j=()=>{const{implementRequestInterceptorErrorArray:e}=c;a("implementRequestInterceptorErrorArray",e,"error")},i=axios.create(q),{createAxiosInstance:u,beforeFetch:l,fetchError:I}=n();i.interceptors.request.use(e=>(u(e,"requestInstance"),H(),l("requestInstance","implementRequestInterceptorArray","ok"),e),e=>(j(),I("requestError",e,"implementRequestInterceptorErrorArray"),Promise.reject(e)));i.interceptors.response.use(e=>{u(e,"responseInstance"),E(),l("responseInstance","implementResponseInterceptorArray","ok");const{data:r}=e;return Promise.resolve(r)},e=>(k(),I("responseError",e,"implementResponseInterceptorErrorArray"),Promise.reject(e)));export{i as s}; +import{Z as t,$ as n,f as R,a0 as q}from"./hooks-DUpKDX8W.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import{g as d}from"./utils-DvxnuKiq.js";import"./currency.js@2.0.4-9OAR_aOO.js";const A=(e,r)=>{t.removePendingRequest(e)},y=(e,r)=>{t.removePendingRequest(e)},p={implementResponseInterceptorArray:[A],implementResponseInterceptorErrorArray:[y]},{setImplement:m}=n(),E=()=>{const{implementResponseInterceptorArray:e}=p;m("implementResponseInterceptorArray",e,"ok")},k=()=>{const{implementResponseInterceptorErrorArray:e}=p;m("implementResponseInterceptorErrorArray",e,"error")},P=(e,r)=>{t.removePendingRequest(e),t.addPendingRequest(e)},g=(e,r)=>{t.removePendingRequest(e)},v=(e,r)=>{if(e){const o=e.headers;r.forEach(s=>{o[s.key]=s.value})}},f=(e,r)=>{const o=d(R.token,"localStorage");return e.url,{key:"X-TOKEN",value:o}},C=(e,r)=>{v(e,[f(e),{key:"Demo-Header-Key",value:"Demo Header Value"}])},c={implementRequestInterceptorArray:[C,P],implementRequestInterceptorErrorArray:[g]},{setImplement:a}=n(),H=()=>{const{implementRequestInterceptorArray:e}=c;a("implementRequestInterceptorArray",e,"ok")},j=()=>{const{implementRequestInterceptorErrorArray:e}=c;a("implementRequestInterceptorErrorArray",e,"error")},i=axios.create(q),{createAxiosInstance:u,beforeFetch:l,fetchError:I}=n();i.interceptors.request.use(e=>(u(e,"requestInstance"),H(),l("requestInstance","implementRequestInterceptorArray","ok"),e),e=>(j(),I("requestError",e,"implementRequestInterceptorErrorArray"),Promise.reject(e)));i.interceptors.response.use(e=>{u(e,"responseInstance"),E(),l("responseInstance","implementResponseInterceptorArray","ok");const{data:r}=e;return Promise.resolve(r)},e=>(k(),I("responseError",e,"implementResponseInterceptorErrorArray"),Promise.reject(e)));export{i as s}; diff --git a/js/instance-Mlryd73B.js.gz b/js/instance-Mlryd73B.js.gz new file mode 100644 index 00000000..1b47442a Binary files /dev/null and b/js/instance-Mlryd73B.js.gz differ diff --git a/js/pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js b/js/pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js deleted file mode 100644 index 0afc7bdb..00000000 --- a/js/pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js +++ /dev/null @@ -1 +0,0 @@ -function h(r){return typeof r=="object"&&r!==null}function d(r,t){return r=h(r)?r:Object.create(null),new Proxy(r,{get(n,i,e){return i==="key"?Reflect.get(n,i,e):Reflect.get(n,i,e)||Reflect.get(t,i,e)}})}function y(r,t){return t.reduce((n,i)=>n==null?void 0:n[i],r)}function _(r,t,n){return t.slice(0,-1).reduce((i,e)=>/^(__proto__)$/.test(e)?{}:i[e]=i[e]||{},r)[t[t.length-1]]=n,r}function $(r,t){return t.reduce((n,i)=>{const e=i.split(".");return _(n,e,y(r,e))},{})}function v(r,t){return n=>{var i;try{const{storage:e=localStorage,beforeRestore:o=void 0,afterRestore:l=void 0,serializer:s={serialize:JSON.stringify,deserialize:JSON.parse},key:u=t.$id,paths:a=null,debug:c=!1}=n;return{storage:e,beforeRestore:o,afterRestore:l,serializer:s,key:((i=r.key)!=null?i:f=>f)(typeof u=="string"?u:u(t.$id)),paths:a,debug:c}}catch(e){return n.debug&&console.error("[pinia-plugin-persistedstate]",e),null}}}function g(r,{storage:t,serializer:n,key:i,debug:e}){try{const o=t==null?void 0:t.getItem(i);o&&r.$patch(n==null?void 0:n.deserialize(o))}catch(o){e&&console.error("[pinia-plugin-persistedstate]",o)}}function p(r,{storage:t,serializer:n,key:i,paths:e,debug:o}){try{const l=Array.isArray(e)?$(r,e):r;t.setItem(i,n.serialize(l))}catch(l){o&&console.error("[pinia-plugin-persistedstate]",l)}}function R(r={}){return t=>{const{auto:n=!1}=r,{options:{persist:i=n},store:e,pinia:o}=t;if(!i)return;if(!(e.$id in o.state.value)){const s=o._s.get(e.$id.replace("__hot:",""));s&&Promise.resolve().then(()=>s.$persist());return}const l=(Array.isArray(i)?i.map(s=>d(s,r)):[d(i,r)]).map(v(r,e)).filter(Boolean);e.$persist=()=>{l.forEach(s=>{p(e.$state,s)})},e.$hydrate=({runHooks:s=!0}={})=>{l.forEach(u=>{const{beforeRestore:a,afterRestore:c}=u;s&&(a==null||a(t)),g(e,u),s&&(c==null||c(t))})},l.forEach(s=>{const{beforeRestore:u,afterRestore:a}=s;u==null||u(t),g(e,s),a==null||a(t),e.$subscribe((c,f)=>{p(f,s)},{detached:!0})})}}var b=R();export{b as s}; diff --git a/js/pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js.gz b/js/pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js.gz deleted file mode 100644 index 934ee265..00000000 Binary files a/js/pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js.gz and /dev/null differ diff --git a/js/pinia-plugin-persistedstate@4.0.1_pinia@2.1.7-MNUqeAcu.js b/js/pinia-plugin-persistedstate@4.0.1_pinia@2.1.7-MNUqeAcu.js new file mode 100644 index 00000000..22025246 --- /dev/null +++ b/js/pinia-plugin-persistedstate@4.0.1_pinia@2.1.7-MNUqeAcu.js @@ -0,0 +1 @@ +import{d as S}from"./destr@2.0.3-CVtkxrq9.js";import{d as $,a as h}from"./deep-pick-omit@1.2.0-DyxInw53.js";function p(s,{storage:c,serializer:e,key:i,debug:t,pick:o,omit:d,beforeHydrate:a,afterHydrate:r},n,f=!0){try{f&&(a==null||a(n));const l=c.getItem(i);if(l){const u=e.deserialize(l),g=o?$(u,o):u,z=d?h(g,d):g;s.$patch(z)}f&&(r==null||r(n))}catch(l){t&&console.error("[pinia-plugin-persistedstate]",l)}}function m(s,{storage:c,serializer:e,key:i,debug:t,pick:o,omit:d}){try{const a=o?$(s,o):s,r=d?h(a,d):a,n=e.serialize(r);c.setItem(i,n)}catch(a){t&&console.error("[pinia-plugin-persistedstate]",a)}}function y(s,c,e=i=>i()){const{pinia:i,store:t,options:{persist:o}}=s;if(!o)return;if(!(t.$id in i.state.value)){const r=i._s.get(t.$id.replace("__hot:",""));r&&Promise.resolve().then(()=>r.$persist());return}const a=(Array.isArray(o)?o:o===!0?[{}]:[o]).map(c);t.$hydrate=({runHooks:r=!0}={})=>{a.forEach(n=>{e(()=>p(t,n,s,r))})},t.$persist=()=>{a.forEach(r=>{e(()=>m(t.$state,r))})},a.forEach(r=>{e(()=>p(t,r,s)),t.$subscribe((n,f)=>e(()=>m(f,r)),{detached:!0})})}function k(s={}){return function(c){y(c,e=>({key:(s.key?s.key:i=>i)(e.key??c.store.$id),debug:e.debug??s.debug??!1,serializer:e.serializer??s.serializer??{serialize:i=>JSON.stringify(i),deserialize:i=>S(i)},storage:e.storage??s.storage??window.localStorage,beforeHydrate:e.beforeHydrate,afterHydrate:e.afterHydrate,pick:e.pick,omit:e.omit}))}}var P=k();export{P as s}; diff --git a/js/pinia-plugin-persistedstate@4.0.1_pinia@2.1.7-MNUqeAcu.js.gz b/js/pinia-plugin-persistedstate@4.0.1_pinia@2.1.7-MNUqeAcu.js.gz new file mode 100644 index 00000000..f3b9722f Binary files /dev/null and b/js/pinia-plugin-persistedstate@4.0.1_pinia@2.1.7-MNUqeAcu.js.gz differ diff --git a/js/utils-DGuZdIHQ.js b/js/utils-DGuZdIHQ.js deleted file mode 100644 index ade8f6c4..00000000 --- a/js/utils-DGuZdIHQ.js +++ /dev/null @@ -1 +0,0 @@ -import{u as x,a as A,b as I,L as $,S as C,A as h,c as v}from"./hooks-DeCbIFFS.js";import{c as l}from"./currency.js@2.0.4-9OAR_aOO.js";import"./vue-hooks-plus@2.2.1_vue@3.4.38-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import{o as R,c as b}from"./lodash-es@4.17.21-BALnwRTu.js";import"./print-js@1.6.0-BdoEj60G.js";const T=(e,r)=>{var o;const{domToImageOptions:t,printOptions:s}=r??{},{create:n}=x(e,{...t,beforeCreate:i=>{var a,c;(a=t==null?void 0:t.beforeCreate)==null||a.call(t,i),(c=window.$loadingBar)==null||c.start()},created(i,a){var c,f;(c=t==null?void 0:t.created)==null||c.call(t,i,a),(f=window.$loadingBar)==null||f.finish()},createdError(i){var a,c;(a=t==null?void 0:t.createdError)==null||a.call(t,i),(c=window.$loadingBar)==null||c.error()}});(o=n("jpeg"))==null||o.then(i=>{const{print:a}=A(i,{type:"image",base64:!0,targetStyles:["*"],...R(s,["type","base64"])});a()})},P=".n-menu-item-content--selected",V="n-menu-item",X=()=>{const e=d($),r=e==null?void 0:e.querySelector(P),t=d(C);let s=0;const n=e==null?void 0:e.querySelector(V);if(t){const{height:o}=t.getBoundingClientRect();s=o}if(r&&e){const o=I(),{top:i}=e.getBoundingClientRect(),{top:a}=r.getBoundingClientRect(),c=e.scrollTop,f=n?parseInt(window.getComputedStyle(n).marginTop):6;o({top:a-i+c-s-f,left:0,behavior:"smooth"})}};var m=(e=>(e.Windows="Windows",e.MacOS="MacOS",e.Linux="Linux",e.Android="Android",e.IOS="IOS",e.Unknown="Unknown",e))(m||{});const L={BASE_URL:"/ray-template/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_APP_OFFICE_PROXY_URL:"https://office.yka.one/",VITE_APP_OFFICE_SCRIPT_URL:"https://office.yka.one/web-apps/apps/api/documents/api.js",VITE_APP_URL:"/"},Y=()=>L,G=(e,r)=>{const t=document.createElement("a");t.href=e,t.download=r,t.style.display="none",document.body.appendChild(t),t.click(),document.body.removeChild(t)},g=(e,r)=>Object.prototype.toString.call(e).includes(r),H=(e=16,r=62)=>{const t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),s=[],n=window.crypto||window.msCrypto;let o=0;for(o=0;o{const e=navigator.userAgent;return/windows/i.test(e)?m.Windows:/macintosh|mac os x/i.test(e)?m.MacOS:/linux/i.test(e)?m.Linux:/android/i.test(e)?m.Android:/iphone|ipad|ipod/i.test(e)?m.IOS:m.Unknown},N=(e,r)=>{const t=e.split("?").filter(Boolean)[0],s=r.split("?").filter(Boolean)[0],n=/\/$/;return t.replace(n,"")===s.replace(n,"")};function Q(e,r="sessionStorage",t){const{prefix:s,prefixKey:n}=t??{},o=s?n||h:"",i=r==="localStorage"?window.localStorage:window.sessionStorage;return!!Object.keys(i).find(a=>a===o+e)}function Z(e,r,t="sessionStorage",s){if(!e){console.error(`[setStorage]: Failed to set stored data: key ${e} is empty`);return}const{prefix:n,prefixKey:o}=s??{},i=n?o||h:"";try{const a=JSON.stringify(r);t==="localStorage"?window.localStorage.setItem(i+e,a):window.sessionStorage.setItem(i+e,a)}catch(a){console.error(`[setStorage]: Failed to set stored data for key '${e}'`,a)}}function z(e,r="sessionStorage",t){const{prefix:s,prefixKey:n,defaultValue:o}=t??{},i=s?n||h:"";try{const a=r==="localStorage"?window.localStorage.getItem(i+e):window.sessionStorage.getItem(i+e);return a===null?o??null:JSON.parse(a)}catch(a){return console.error(`[getStorage]: Failed to get stored data for key '${e}'`,a),o??null}}const ee=(e,r,t)=>{if(!e){console.error(`[removeStorage]: Failed to remove stored data: key ${e} is empty or undefined`);return}const{prefix:s,prefixKey:n}=t??{},o=s?n||h:"",i=Object.keys(window.localStorage),a=Object.keys(window.sessionStorage),c=(f,w)=>{(f?[...a,...i]:w==="localStorage"?i:a).forEach(p=>{e==="__all__"?(window.sessionStorage.removeItem(o+p),window.localStorage.removeItem(o+p)):w==="localStorage"?window.localStorage.removeItem(o+p):window.sessionStorage.removeItem(o+p)})};switch(e){case"__all__":c(!0);break;case"__all_sessionStorage__":c(!1,"sessionStorage");break;case"__all_localStorage__":c(!1,"localStorage");break;default:r==="localStorage"?window.localStorage.removeItem(o+e):window.sessionStorage.removeItem(o+e);break}},te=(e,r)=>{const t=()=>{const n=d(e);n&&(typeof r=="string"?r.trim().split(" "):r).forEach(i=>{i&&n.classList.add(i)})},s=Vue.watch(()=>d(e),t,{immediate:!0});S(s)},re=(e,r)=>{const t=()=>{const n=d(e);if(n)if(r==="removeAllClass"){const o=n.classList;o.forEach(i=>o.remove(i))}else(typeof r=="string"?r.trim().split(" "):r).forEach(i=>{i&&n.classList.remove(i)})},s=Vue.watch(()=>d(e),t,{immediate:!0});S(s)},ne=(e,r)=>{const t=Vue.ref(!1),s=()=>{const o=d(e);if(!o)t.value=!1;else{const i=o.className,a=r.trim().split(" ").filter(c=>c!=="");t.value=a.some(c=>i.includes(c))}},n=Vue.watch(()=>d(e),s,{immediate:!0});return S(n),t},k=e=>{const r=["webkit","moz","ms","o"],t={};return r.forEach(s=>{t[`${s}${e.charAt(0).toUpperCase()}${e.slice(1)}`]=e}),t[e]=e,t},se=(e,r)=>{const t=(o,i)=>{o.split(";").forEach(a=>{const[c,f]=a.split(":");if(c&&f){const w=c.trim(),_=f.trim();if(c.startsWith("--"))i.style.setProperty(w,_);else if(c.startsWith("-"))i.style[c]=f;else{const p=k(w);Object.keys(p).forEach(E=>{i.style[E]=p[E]}),i.style[w]=_}}})},s=()=>{const o=d(e);o&&(g(r,"String")?t(r,o):g(r,"Array")?r.forEach(i=>{t(i,o)}):Object.keys(r).forEach(a=>{t(`${a}: ${r[a]}`,o)}))},n=Vue.watch(()=>d(e),s,{immediate:!0});S(n)},oe=(e,r=1)=>{if(e.includes("rgba"))return e;if(e.includes("rgb"))return e.replace("rgb","rgba").replace(")",`, ${r})`);if(e.includes("#")){const t=e.replace("#","");switch(t.length){case 3:return`rgba(${parseInt(t[0]+t[0],16)}, ${parseInt(t[1]+t[1],16)}, ${parseInt(t[2]+t[2],16)}, ${r})`;case 6:return`rgba(${parseInt(t.slice(0,2),16)}, ${parseInt(t.slice(2,4),16)}, ${parseInt(t.slice(4,6),16)}, ${r})`;case 8:return`rgba(${parseInt(t.slice(0,2),16)}, ${parseInt(t.slice(2,4),16)}, ${parseInt(t.slice(4,6),16)}, ${(parseInt(t.slice(6,8),16)/255).toFixed(2)})`;default:return e}}return e},ie=(e,r)=>{const{defaultElement:t}={};if(!e)return t?[t]:null;const s=e.startsWith("attr:")?`[${e.replace("attr:","")}]`:e;try{const n=Array.from(document.querySelectorAll(s));return!n.length&&t?[t]:n}catch(n){return console.error(`[queryElements]: Failed to get elements for selector '${e}'`,n),t?[t]:null}},ae=(e,r="px")=>e==="auto"?e:typeof e=="number"?e.toString()+r:g(e,"String")&&v.cssUnit.test(e)?e:e+r,u={precision:8,decimal:"."},y=(e,r,t)=>e!=null&&e.length?e.length===1?l(e[0],u):e.reduce((n,o,i,a)=>(n=t==null?void 0:t(n,o,i,a),n),r):0,j=(e,r)=>{const t=Object.assign({},u,r),s=l(e,t),{type:n="number"}=t;return n==="number"?s.value:s.toString()},ce=(...e)=>e.length===1?l(e[0],u).add(0):y(e,0,(r,t)=>l(r,u).add(t)),le=(...e)=>{if(e.length===1)return l(e[0],u).subtract(0);if(e.length===2){const[s,n]=e;return l(s,u).subtract(n)}const r=b(e),t=r.shift();return r.length?y(r,t,(s,n)=>l(s,u).subtract(n)):t},ue=(...e)=>e.length===1?l(e[0],u).multiply(1):y(e,1,(r,t)=>l(r,u).multiply(t)),fe=(...e)=>{if(e.length===1)return l(e[0],u).divide(1);if(e.length===2){const[s,n]=e;return l(s,u).divide(n)}const r=b(e),t=r.shift();return y(r,t,(s,n)=>l(s,u).divide(n))},de=(e,r,t)=>{if(r<=1)return[e||0];if(!e)return new Array(r).fill(0);const s=Object.assign({},u,t);return l(e,s).distribute(r).map(o=>j(o,s))};function B(e,...r){if(Array.isArray(e))e.forEach(t=>B(t,...r));else return e(...r)}function d(e,r){var s;if(!e)return r;let t;return typeof e=="function"?t=e():Vue.isRef(e)?t=((s=e.value)==null?void 0:s.$el)??e.value:t=e,t}function pe(e,r){if(!e){const{defaultElement:t=null}=r??{};return typeof t=="function"?t:()=>t}if(typeof e=="string"||g(e,"Object"))return()=>e;if(typeof e=="function")return e}function S(e){return Vue.getCurrentScope()?(Vue.onScopeDispose(e),!0):!1}function me(e,r){const t=Vue.watchEffect(e,r);S(t)}export{ce as A,le as B,ue as C,fe as D,Y as a,ae as b,oe as c,B as d,G as e,se as f,z as g,te as h,g as i,S as j,N as k,ee as l,X as m,re as n,J as o,T as p,ie as q,pe as r,Z as s,ne as t,H as u,d as v,me as w,Q as x,j as y,de as z}; diff --git a/js/utils-DGuZdIHQ.js.gz b/js/utils-DGuZdIHQ.js.gz deleted file mode 100644 index aa0a4db9..00000000 Binary files a/js/utils-DGuZdIHQ.js.gz and /dev/null differ diff --git a/js/utils-DvxnuKiq.js b/js/utils-DvxnuKiq.js new file mode 100644 index 00000000..af69a569 --- /dev/null +++ b/js/utils-DvxnuKiq.js @@ -0,0 +1 @@ +import{u as Ee,a as We,b as Le,c as ve,L as Pe,S as Ie,A as y,d as Fe}from"./hooks-DUpKDX8W.js";import{c as i}from"./currency.js@2.0.4-9OAR_aOO.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import{o as Re,c as x}from"./lodash-es@4.17.21-BALnwRTu.js";const _=["#fc97af","#87f7cf","#f7f494","#72ccff","#f7c5a0","#d4a4eb","#d2f5a6","#76f2f2","#9b8bba","#e098c7","#8fd3e8","#71669e","#cc70af","#7cb4cc","#7EC4FF","#5FCBB0","#49C4BF","#F0C9CA","#34DC90","#3295E0","#EAB62E","#76C3F3","#2DC2C0","#FCC43F","#84CFFF"],A="transparent",$={},k={textStyle:{color:"#ffffff"},subtextStyle:{color:"#dddddd"}},E={itemStyle:{borderWidth:"4"},lineStyle:{width:"3"},symbolSize:"0",symbol:"circle",smooth:!0},W={itemStyle:{borderWidth:"4"},lineStyle:{width:"3"},symbolSize:"0",symbol:"circle",smooth:!0},L={itemStyle:{barBorderWidth:0,barBorderColor:"#ccc"}},v={itemStyle:{borderWidth:0,borderColor:"#ccc"}},P={itemStyle:{borderWidth:0,borderColor:"#ccc"}},I={itemStyle:{borderWidth:0,borderColor:"#ccc"}},F={itemStyle:{borderWidth:0,borderColor:"#ccc"}},R={itemStyle:{borderWidth:0,borderColor:"#ccc"}},j={itemStyle:{borderWidth:0,borderColor:"#ccc"}},B={itemStyle:{borderWidth:0,borderColor:"#ccc"}},T={itemStyle:{color:"#fc97af",color0:"transparent",borderColor:"#fc97af",borderColor0:"#87f7cf",borderWidth:"2"}},M={itemStyle:{borderWidth:0,borderColor:"#ccc"},lineStyle:{width:"1",color:"#ffffff"},symbolSize:"0",symbol:"circle",smooth:!0,color:["#fc97af","#87f7cf","#f7f494","#72ccff","#f7c5a0","#d4a4eb","#d2f5a6","#76f2f2"],label:{color:"#293441"}},V={itemStyle:{areaColor:"#f3f3f3",borderColor:"#999999",borderWidth:.5},label:{color:"#893448"},emphasis:{itemStyle:{areaColor:"rgba(255,178,72,1)",borderColor:"#eb8146",borderWidth:1},label:{color:"rgb(137,52,72)"}}},D={itemStyle:{areaColor:"#f3f3f3",borderColor:"#999999",borderWidth:.5},label:{color:"#893448"},emphasis:{itemStyle:{areaColor:"rgba(255,178,72,1)",borderColor:"#eb8146",borderWidth:1},label:{color:"rgb(137,52,72)"}}},O={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},U={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},z={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},q={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},K={iconStyle:{borderColor:"#999999"},emphasis:{iconStyle:{borderColor:"#666666"}}},Z={textStyle:{color:"#999999"},pageTextStyle:{color:"#999999"}},G={axisPointer:{lineStyle:{color:"#cccccc",width:1},crossStyle:{color:"#cccccc",width:1}}},X={lineStyle:{color:"#87f7cf",width:1},itemStyle:{color:"#87f7cf",borderWidth:1},controlStyle:{color:"#87f7cf",borderColor:"#87f7cf",borderWidth:.5},checkpointStyle:{color:"#fc97af",borderColor:"#fc97af"},label:{color:"#87f7cf"},emphasis:{itemStyle:{color:"#f7f494"},controlStyle:{color:"#87f7cf",borderColor:"#87f7cf",borderWidth:.5},label:{color:"#87f7cf"}}},Y={color:["#fc97af","#87f7cf"]},H={backgroundColor:"rgba(255,255,255,0)",dataBackgroundColor:"rgba(114,204,255,1)",fillerColor:"rgba(114,204,255,0.2)",handleColor:"#72ccff",handleSize:"100%",textStyle:{color:"#333333"}},J={label:{color:"#293441"},emphasis:{label:{color:"#293441"}}},je={color:_,backgroundColor:A,textStyle:$,title:k,line:E,radar:W,bar:L,pie:v,scatter:P,boxplot:I,parallel:F,sankey:R,funnel:j,gauge:B,candlestick:T,graph:M,map:V,geo:D,categoryAxis:O,valueAxis:U,logAxis:z,timeAxis:q,toolbox:K,legend:Z,tooltip:G,timeline:X,visualMap:Y,dataZoom:H,markPoint:J},Be=Object.freeze(Object.defineProperty({__proto__:null,backgroundColor:A,bar:L,boxplot:I,candlestick:T,categoryAxis:O,color:_,dataZoom:H,default:je,funnel:j,gauge:B,geo:D,graph:M,legend:Z,line:E,logAxis:z,map:V,markPoint:J,parallel:F,pie:v,radar:W,sankey:R,scatter:P,textStyle:$,timeAxis:q,timeline:X,title:k,toolbox:K,tooltip:G,valueAxis:U,visualMap:Y},Symbol.toStringTag,{value:"Module"})),N=["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3","#e5cf0d","#97b552","#95706d","#dc69aa","#07a2a4","#9a7fd1","#588dd5","#f5994e","#c05050","#59678c","#c9ab00","#7eb00a","#6f5553","#c14089","#516b91","#59c4e6","#edafda","#93b7e3","#a5e7f0","#cbb0e3"],Q="transparent",ee={},oe={textStyle:{color:"#008acd"},subtextStyle:{color:"#aaaaaa"}},te={itemStyle:{borderWidth:1},lineStyle:{width:2},symbolSize:3,symbol:"emptyCircle",smooth:!0},re={itemStyle:{borderWidth:1},lineStyle:{width:2},symbolSize:3,symbol:"emptyCircle",smooth:!0},le={itemStyle:{barBorderWidth:0,barBorderColor:"#ccc"}},ae={itemStyle:{borderWidth:0,borderColor:"#ccc"}},se={itemStyle:{borderWidth:0,borderColor:"#ccc"}},ce={itemStyle:{borderWidth:0,borderColor:"#ccc"}},ne={itemStyle:{borderWidth:0,borderColor:"#ccc"}},ie={itemStyle:{borderWidth:0,borderColor:"#ccc"}},de={itemStyle:{borderWidth:0,borderColor:"#ccc"}},fe={itemStyle:{borderWidth:0,borderColor:"#ccc"}},ue={itemStyle:{color:"#d87a80",color0:"#2ec7c9",borderColor:"#d87a80",borderColor0:"#2ec7c9",borderWidth:1}},be={itemStyle:{borderWidth:0,borderColor:"#ccc"},lineStyle:{width:1,color:"#aaa"},symbolSize:3,symbol:"emptyCircle",smooth:!0,color:["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3","#e5cf0d","#97b552","#95706d","#dc69aa","#07a2a4","#9a7fd1","#588dd5","#f5994e","#c05050","#59678c","#c9ab00","#7eb00a","#6f5553","#c14089"],label:{color:"#eee"}},he={itemStyle:{areaColor:"#dddddd",borderColor:"#eeeeee",borderWidth:.5},label:{color:"#d87a80"},emphasis:{itemStyle:{areaColor:"rgba(254,153,78,1)",borderColor:"#444",borderWidth:1},label:{color:"rgb(100,0,0)"}}},me={itemStyle:{areaColor:"#dddddd",borderColor:"#eeeeee",borderWidth:.5},label:{color:"#d87a80"},emphasis:{itemStyle:{areaColor:"rgba(254,153,78,1)",borderColor:"#444",borderWidth:1},label:{color:"rgb(100,0,0)"}}},pe={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!1,lineStyle:{color:["#eee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},Se={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},ye={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},ge={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},we={iconStyle:{borderColor:"#2ec7c9"},emphasis:{iconStyle:{borderColor:"#18a4a6"}}},Ce={textStyle:{color:"#333333"}},xe={axisPointer:{lineStyle:{color:"#008acd",width:"1"},crossStyle:{color:"#008acd",width:"1"}}},_e={lineStyle:{color:"#008acd",width:1},itemStyle:{color:"#008acd",borderWidth:1},controlStyle:{color:"#008acd",borderColor:"#008acd",borderWidth:.5},checkpointStyle:{color:"#2ec7c9",borderColor:"#2ec7c9"},label:{color:"#008acd"},emphasis:{itemStyle:{color:"#a9334c"},controlStyle:{color:"#008acd",borderColor:"#008acd",borderWidth:.5},label:{color:"#008acd"}}},Ae={color:["#5ab1ef","#e0ffff"]},$e={backgroundColor:"rgba(47,69,84,0)",dataBackgroundColor:"#efefff",fillerColor:"rgba(182,162,222,0.2)",handleColor:"#008acd",handleSize:"100%",textStyle:{color:"#333333"}},ke={label:{color:"#eee"},emphasis:{label:{color:"#eee"}}},Te={color:N,backgroundColor:Q,textStyle:ee,title:oe,line:te,radar:re,bar:le,pie:ae,scatter:se,boxplot:ce,parallel:ne,sankey:ie,funnel:de,gauge:fe,candlestick:ue,graph:be,map:he,geo:me,categoryAxis:pe,valueAxis:Se,logAxis:ye,timeAxis:ge,toolbox:we,legend:Ce,tooltip:xe,timeline:_e,visualMap:Ae,dataZoom:$e,markPoint:ke},Me=Object.freeze(Object.defineProperty({__proto__:null,backgroundColor:Q,bar:le,boxplot:ce,candlestick:ue,categoryAxis:pe,color:N,dataZoom:$e,default:Te,funnel:de,gauge:fe,geo:me,graph:be,legend:Ce,line:te,logAxis:ye,map:he,markPoint:ke,parallel:ne,pie:ae,radar:re,sankey:ie,scatter:se,textStyle:ee,timeAxis:ge,timeline:_e,title:oe,toolbox:we,tooltip:xe,valueAxis:Se,visualMap:Ae},Symbol.toStringTag,{value:"Module"})),Qe=()=>{const e=Object.assign({"/src/app-config/echart-themes/macarons/macarons-dark.json":Be,"/src/app-config/echart-themes/macarons/macarons.json":Me}),t=/\/([^/]+)\.json$/;return Object.keys(e).reduce((l,r)=>{var s;const a=(s=r.match(t))==null?void 0:s[1];if(a)return l.push({name:a,theme:e[r].default}),l;throw new Error(`[RChart Theme Error]: name ${r} is invalid!`)},[])},eo=e=>{const{getAppTheme:t}=Ee(),{theme:o}=t();return Object.assign({},e,{text:"loading",color:"#c23531",textColor:o?"#fff":"#000",maskColor:o?"rgba(0, 0, 0, 0.8)":"rgba(255, 255, 255, 0.8)",zlevel:0,fontSize:12,showSpinner:!0,spinnerRadius:10,lineWidth:5,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"})},oo=()=>({notMerge:!0,lazyUpdate:!0,silent:!1,replaceMerge:[]}),to=(e,t)=>{var a;const{domToImageOptions:o,printOptions:l}=t??{},{create:r}=We(e,{...o,beforeCreate:s=>{var c,n;(c=o==null?void 0:o.beforeCreate)==null||c.call(o,s),(n=window.$loadingBar)==null||n.start()},created(s,c){var n,f;(n=o==null?void 0:o.created)==null||n.call(o,s,c),(f=window.$loadingBar)==null||f.finish()},createdError(s){var c,n;(c=o==null?void 0:o.createdError)==null||c.call(o,s),(n=window.$loadingBar)==null||n.error()}});(a=r("jpeg"))==null||a.then(s=>{const{print:c}=Le(s,{type:"image",base64:!0,targetStyles:["*"],...Re(l,["type","base64"])});c()})},Ve=".n-menu-item-content--selected",De="n-menu-item",ro=()=>{const e=u(Pe),t=e==null?void 0:e.querySelector(Ve),o=u(Ie);let l=0;const r=e==null?void 0:e.querySelector(De);if(o){const{height:a}=o.getBoundingClientRect();l=a}if(t&&e){const a=ve(),{top:s}=e.getBoundingClientRect(),{top:c}=t.getBoundingClientRect(),n=e.scrollTop,f=r?parseInt(window.getComputedStyle(r).marginTop):6;a({top:c-s+n-l-f,left:0,behavior:"smooth"})}};var h=(e=>(e.Windows="Windows",e.MacOS="MacOS",e.Linux="Linux",e.Android="Android",e.IOS="IOS",e.Unknown="Unknown",e))(h||{});const Oe={BASE_URL:"/ray-template/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_APP_OFFICE_PROXY_URL:"https://office.yka.one/",VITE_APP_OFFICE_SCRIPT_URL:"https://office.yka.one/web-apps/apps/api/documents/api.js",VITE_APP_URL:"/"},lo=()=>Oe,ao=(e,t)=>{const o=document.createElement("a");o.href=e,o.download=t,o.style.display="none",document.body.appendChild(o),o.click(),document.body.removeChild(o)},S=(e,t)=>Object.prototype.toString.call(e).includes(t),so=(e=16,t=62)=>{const o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),l=[],r=window.crypto||window.msCrypto;let a=0;for(a=0;a{const e=navigator.userAgent;return/windows/i.test(e)?h.Windows:/macintosh|mac os x/i.test(e)?h.MacOS:/linux/i.test(e)?h.Linux:/android/i.test(e)?h.Android:/iphone|ipad|ipod/i.test(e)?h.IOS:h.Unknown},no=(e,t)=>{const o=e.split("?").filter(Boolean)[0],l=t.split("?").filter(Boolean)[0],r=/\/$/;return o.replace(r,"")===l.replace(r,"")};function io(e,t="sessionStorage",o){const{prefix:l,prefixKey:r}=o??{},a=l?r||y:"",s=t==="localStorage"?window.localStorage:window.sessionStorage;return!!Object.keys(s).find(c=>c===a+e)}function fo(e,t,o="sessionStorage",l){if(!e){console.error(`[setStorage]: Failed to set stored data: key ${e} is empty`);return}const{prefix:r,prefixKey:a}=l??{},s=r?a||y:"";try{const c=JSON.stringify(t);o==="localStorage"?window.localStorage.setItem(s+e,c):window.sessionStorage.setItem(s+e,c)}catch(c){console.error(`[setStorage]: Failed to set stored data for key '${e}'`,c)}}function uo(e,t="sessionStorage",o){const{prefix:l,prefixKey:r,defaultValue:a}=o??{},s=l?r||y:"";try{const c=t==="localStorage"?window.localStorage.getItem(s+e):window.sessionStorage.getItem(s+e);return c===null?a??null:JSON.parse(c)}catch(c){return console.error(`[getStorage]: Failed to get stored data for key '${e}'`,c),a??null}}const bo=(e,t,o)=>{if(!e){console.error(`[removeStorage]: Failed to remove stored data: key ${e} is empty or undefined`);return}const{prefix:l,prefixKey:r}=o??{},a=l?r||y:"",s=Object.keys(window.localStorage),c=Object.keys(window.sessionStorage),n=(f,m)=>{(f?[...c,...s]:m==="localStorage"?s:c).forEach(b=>{e==="__all__"?(window.sessionStorage.removeItem(a+b),window.localStorage.removeItem(a+b)):m==="localStorage"?window.localStorage.removeItem(a+b):window.sessionStorage.removeItem(a+b)})};switch(e){case"__all__":n(!0);break;case"__all_sessionStorage__":n(!1,"sessionStorage");break;case"__all_localStorage__":n(!1,"localStorage");break;default:t==="localStorage"?window.localStorage.removeItem(a+e):window.sessionStorage.removeItem(a+e);break}},ho=(e,t)=>{const o=()=>{const r=u(e);r&&(typeof t=="string"?t.trim().split(" "):t).forEach(s=>{s&&r.classList.add(s)})},l=Vue.watch(()=>u(e),o,{immediate:!0});p(l)},mo=(e,t)=>{const o=()=>{const r=u(e);if(r)if(t==="removeAllClass"){const a=r.classList;a.forEach(s=>a.remove(s))}else(typeof t=="string"?t.trim().split(" "):t).forEach(s=>{s&&r.classList.remove(s)})},l=Vue.watch(()=>u(e),o,{immediate:!0});p(l)},po=(e,t)=>{const o=Vue.ref(!1),l=()=>{const a=u(e);if(!a)o.value=!1;else{const s=a.className,c=t.trim().split(" ").filter(n=>n!=="");o.value=c.some(n=>s.includes(n))}},r=Vue.watch(()=>u(e),l,{immediate:!0});return p(r),o},Ue=e=>{const t=["webkit","moz","ms","o"],o={};return t.forEach(l=>{o[`${l}${e.charAt(0).toUpperCase()}${e.slice(1)}`]=e}),o[e]=e,o},So=(e,t)=>{const o=(a,s)=>{a.split(";").forEach(c=>{const[n,f]=c.split(":");if(n&&f){const m=n.trim(),w=f.trim();if(n.startsWith("--"))s.style.setProperty(m,w);else if(n.startsWith("-"))s.style[n]=f;else{const b=Ue(m);Object.keys(b).forEach(C=>{s.style[C]=b[C]}),s.style[m]=w}}})},l=()=>{const a=u(e);a&&(S(t,"String")?o(t,a):S(t,"Array")?t.forEach(s=>{o(s,a)}):Object.keys(t).forEach(c=>{o(`${c}: ${t[c]}`,a)}))},r=Vue.watch(()=>u(e),l,{immediate:!0});p(r)},yo=(e,t=1)=>{if(e.includes("rgba"))return e;if(e.includes("rgb"))return e.replace("rgb","rgba").replace(")",`, ${t})`);if(e.includes("#")){const o=e.replace("#","");switch(o.length){case 3:return`rgba(${parseInt(o[0]+o[0],16)}, ${parseInt(o[1]+o[1],16)}, ${parseInt(o[2]+o[2],16)}, ${t})`;case 6:return`rgba(${parseInt(o.slice(0,2),16)}, ${parseInt(o.slice(2,4),16)}, ${parseInt(o.slice(4,6),16)}, ${t})`;case 8:return`rgba(${parseInt(o.slice(0,2),16)}, ${parseInt(o.slice(2,4),16)}, ${parseInt(o.slice(4,6),16)}, ${(parseInt(o.slice(6,8),16)/255).toFixed(2)})`;default:return e}}return e},go=(e,t)=>{const{defaultElement:o}={};if(!e)return o?[o]:null;const l=e.startsWith("attr:")?`[${e.replace("attr:","")}]`:e;try{const r=Array.from(document.querySelectorAll(l));return!r.length&&o?[o]:r}catch(r){return console.error(`[queryElements]: Failed to get elements for selector '${e}'`,r),o?[o]:null}},wo=(e,t="px")=>e==="auto"?e:typeof e=="number"?e.toString()+t:S(e,"String")&&Fe.cssUnit.test(e)?e:e+t,d={precision:8,decimal:"."},g=(e,t,o)=>e!=null&&e.length?e.length===1?i(e[0],d):e.reduce((r,a,s,c)=>(r=o==null?void 0:o(r,a,s,c),r),t):0,ze=(e,t)=>{const o=Object.assign({},d,t),l=i(e,o),{type:r="number"}=o;return r==="number"?l.value:l.toString()},Co=(...e)=>e.length===1?i(e[0],d).add(0):g(e,0,(t,o)=>i(t,d).add(o)),xo=(...e)=>{if(e.length===1)return i(e[0],d).subtract(0);if(e.length===2){const[l,r]=e;return i(l,d).subtract(r)}const t=x(e),o=t.shift();return t.length?g(t,o,(l,r)=>i(l,d).subtract(r)):o},_o=(...e)=>e.length===1?i(e[0],d).multiply(1):g(e,1,(t,o)=>i(t,d).multiply(o)),Ao=(...e)=>{if(e.length===1)return i(e[0],d).divide(1);if(e.length===2){const[l,r]=e;return i(l,d).divide(r)}const t=x(e),o=t.shift();return g(t,o,(l,r)=>i(l,d).divide(r))},$o=(e,t,o)=>{if(t<=1)return[e||0];if(!e)return new Array(t).fill(0);const l=Object.assign({},d,o);return i(e,l).distribute(t).map(a=>ze(a,l))};function qe(e,...t){if(Array.isArray(e))e.forEach(o=>qe(o,...t));else return e(...t)}function u(e,t){var l;if(!e)return t;let o;return typeof e=="function"?o=e():Vue.isRef(e)?o=((l=e.value)==null?void 0:l.$el)??e.value:o=e,o}function ko(e,t){if(!e){const{defaultElement:o=null}=t??{};return typeof o=="function"?o:()=>o}if(typeof e=="string"||S(e,"Object"))return()=>e;if(typeof e=="function")return e}function p(e){return Vue.getCurrentScope()?(Vue.onScopeDispose(e),!0):!1}function Eo(e,t){const o=Vue.watchEffect(e,t);p(o)}export{io as A,ze as B,$o as C,Co as D,xo as E,_o as F,Ao as G,lo as a,oo as b,yo as c,Qe as d,wo as e,qe as f,uo as g,ao as h,S as i,So as j,ho as k,eo as l,p as m,no as n,bo as o,to as p,go as q,ko as r,fo as s,ro as t,so as u,mo as v,co as w,po as x,Eo as y,u as z}; diff --git a/js/utils-DvxnuKiq.js.gz b/js/utils-DvxnuKiq.js.gz new file mode 100644 index 00000000..5cae0c62 Binary files /dev/null and b/js/utils-DvxnuKiq.js.gz differ diff --git a/js/vue-hooks-plus@2.2.1_vue@3.4.38-DdMBTcyt.js b/js/vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js similarity index 100% rename from js/vue-hooks-plus@2.2.1_vue@3.4.38-DdMBTcyt.js rename to js/vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js diff --git a/js/vue-hooks-plus@2.2.1_vue@3.4.38-DdMBTcyt.js.gz b/js/vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js.gz similarity index 100% rename from js/vue-hooks-plus@2.2.1_vue@3.4.38-DdMBTcyt.js.gz rename to js/vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js.gz diff --git a/js/vue@3.4.38_typescript@5.2.2-l0sNRNKZ.js b/js/vue@3.5.6_typescript@5.2.2-l0sNRNKZ.js similarity index 100% rename from js/vue@3.4.38_typescript@5.2.2-l0sNRNKZ.js rename to js/vue@3.5.6_typescript@5.2.2-l0sNRNKZ.js diff --git a/js/zh-CN-BeERaeRn.js b/js/zh-CN-BeERaeRn.js deleted file mode 100644 index a1f05407..00000000 --- a/js/zh-CN-BeERaeRn.js +++ /dev/null @@ -1 +0,0 @@ -import{x as Z}from"./hooks-DeCbIFFS.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.4.38-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.4.38-Cp_qoKMZ.js";import"./@vueuse_shared@10.9.0_vue@3.4.38-BTLxKjPf.js";import"./utils-DGuZdIHQ.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.38-f9XU7P4m.js";import"./@vue_reactivity@3.4.38-CmXFqMGn.js";import"./@vue_shared@3.4.38-D8qfpBTH.js";const e="当前环境不支持全屏",ee={isEnabledFullscreen:e},oe=Object.freeze(Object.defineProperty({__proto__:null,default:ee,isEnabledFullscreen:e},Symbol.toStringTag,{value:"Module"})),o="项目配置",t={Title:"主题",Dark:"暗色",Light:"明亮",PrimaryColorConfig:"主题色"},n="界面显示",c="动画效果",te={Title:o,ThemeOptions:t,InterfaceDisplay:n,ContentTransition:c},ne=Object.freeze(Object.defineProperty({__proto__:null,ContentTransition:c,InterfaceDisplay:n,ThemeOptions:t,Title:o,default:te},Symbol.toStringTag,{value:"Module"})),s="刷新当前页面",i="锁屏",l="设置",r="Github",a="全屏",_="退出全屏",m="搜索",ce={Reload:s,Lock:i,Setting:l,Github:r,FullScreen:a,CancelFullScreen:_,Search:m},se=Object.freeze(Object.defineProperty({__proto__:null,CancelFullScreen:_,FullScreen:a,Github:r,Lock:i,Reload:s,Search:m,Setting:l,default:ce},Symbol.toStringTag,{value:"Module"})),p="请求",d="条形码",g="缓存工具函数",u="数字精度",f="右键菜单",b="首页",h="指令",S="文档",T="文档 (加速地址)",O="文档(内嵌)",C="可视化",y="表单",D="Mock 数据",P="模态框",M="多级菜单(缓存)",j="办公",v="文档",R="演示",z="表格",N="二维码",I="依赖项",L="关于",k="页面详情模式",x="分段器",F="SVG 图标",w="表格",A="模板内置 Api",E="滚动动画",G="高级表格",ie={Axios:p,Barcode:d,CacheDemo:g,CalculatePrecision:u,ContextMenu:f,Dashboard:b,Directive:h,Doc:S,DocLocal:T,DocLocalInside:O,Echart:C,Error:"错误页",Form:y,Mock:D,Modal:P,MultiMenu:M,Office:j,Office_Document:v,Office_Presentation:R,Office_Spreadsheet:z,QRCode:N,Rely:I,RelyAbout:L,RouterDemo:k,Segment:x,SvgIcon:F,Table:w,TemplateHooks:A,scrollReveal:E,TablePro:G},le=Object.freeze(Object.defineProperty({__proto__:null,Axios:p,Barcode:d,CacheDemo:g,CalculatePrecision:u,ContextMenu:f,Dashboard:b,Directive:h,Doc:S,DocLocal:T,DocLocalInside:O,Echart:C,Form:y,Mock:D,Modal:P,MultiMenu:M,Office:j,Office_Document:v,Office_Presentation:R,Office_Spreadsheet:z,QRCode:N,Rely:I,RelyAbout:L,RouterDemo:k,Segment:x,SvgIcon:F,Table:w,TablePro:G,TemplateHooks:A,default:ie,scrollReveal:E},Symbol.toStringTag,{value:"Module"})),Q="项目配置",$={Title:"主题",Dark:"暗色",Light:"明亮",PrimaryColorConfig:"主题色"},B="界面显示",re={Title:Q,ThemeOptions:$,InterfaceDisplay:B},ae=Object.freeze(Object.defineProperty({__proto__:null,InterfaceDisplay:B,ThemeOptions:$,Title:Q,default:re},Symbol.toStringTag,{value:"Module"})),H="注册",V="登录",q="扫码登陆",J="请输入用户名",K="请输入密码",U="登 陆",W="用户名",X="密码",Y="开箱即用的中后台管理系统",_e={Register:H,Signing:V,QRCodeSigning:q,NamePlaceholder:J,PasswordPlaceholder:K,Login:U,Name:W,Password:X,RayTemplate:Y},me=Object.freeze(Object.defineProperty({__proto__:null,Login:U,Name:W,NamePlaceholder:J,Password:X,PasswordPlaceholder:K,QRCodeSigning:q,RayTemplate:Y,Register:H,Signing:V,default:_e},Symbol.toStringTag,{value:"Module"})),pe=Object.assign({"./zh-CN/globalMessage.json":oe,"./zh-CN/headerSettingOptions.json":ne,"./zh-CN/headerTooltip.json":se,"./zh-CN/menu.json":le,"./zh-CN/setting.json":ae,"./zh-CN/views/login/index.json":me}),Le={message:{...Z(pe,"zh-CN")}};export{Le as default}; diff --git a/js/zh-CN-BeERaeRn.js.gz b/js/zh-CN-BeERaeRn.js.gz deleted file mode 100644 index 43451bc4..00000000 Binary files a/js/zh-CN-BeERaeRn.js.gz and /dev/null differ diff --git a/js/zh-CN-CeI0xlBH.js b/js/zh-CN-CeI0xlBH.js new file mode 100644 index 00000000..ea730940 --- /dev/null +++ b/js/zh-CN-CeI0xlBH.js @@ -0,0 +1 @@ +import{y as Z}from"./hooks-DUpKDX8W.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.5.6-CMHqEu2-.js";import"./@vueuse_shared@10.9.0_vue@3.5.6-BTLxKjPf.js";import"./utils-DvxnuKiq.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.0.1_pinia@2.1.7-MNUqeAcu.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.0-DyxInw53.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.5.6-CUaD_-7Q.js";import"./@vue_reactivity@3.5.6-CXMPYrvZ.js";import"./@vue_shared@3.5.6-6BrT-eFF.js";const e="当前环境不支持全屏",ee={isEnabledFullscreen:e},oe=Object.freeze(Object.defineProperty({__proto__:null,default:ee,isEnabledFullscreen:e},Symbol.toStringTag,{value:"Module"})),o="项目配置",t={Title:"主题",Dark:"暗色",Light:"明亮",PrimaryColorConfig:"主题色"},n="界面显示",c="动画效果",te={Title:o,ThemeOptions:t,InterfaceDisplay:n,ContentTransition:c},ne=Object.freeze(Object.defineProperty({__proto__:null,ContentTransition:c,InterfaceDisplay:n,ThemeOptions:t,Title:o,default:te},Symbol.toStringTag,{value:"Module"})),s="刷新当前页面",i="锁屏",l="设置",r="Github",a="全屏",_="退出全屏",m="搜索",ce={Reload:s,Lock:i,Setting:l,Github:r,FullScreen:a,CancelFullScreen:_,Search:m},se=Object.freeze(Object.defineProperty({__proto__:null,CancelFullScreen:_,FullScreen:a,Github:r,Lock:i,Reload:s,Search:m,Setting:l,default:ce},Symbol.toStringTag,{value:"Module"})),p="请求",d="条形码",g="缓存工具函数",u="数字精度",f="右键菜单",b="首页",h="指令",S="文档",T="文档 (加速地址)",O="文档(内嵌)",y="可视化",C="表单",D="Mock 数据",P="模态框",M="多级菜单(缓存)",j="办公",v="文档",R="演示",z="表格",N="二维码",I="依赖项",L="关于",k="页面详情模式",F="分段器",x="SVG 图标",w="表格",A="模板内置 Api",E="滚动动画",G="高级表格",ie={Axios:p,Barcode:d,CacheDemo:g,CalculatePrecision:u,ContextMenu:f,Dashboard:b,Directive:h,Doc:S,DocLocal:T,DocLocalInside:O,Echart:y,Error:"错误页",Form:C,Mock:D,Modal:P,MultiMenu:M,Office:j,Office_Document:v,Office_Presentation:R,Office_Spreadsheet:z,QRCode:N,Rely:I,RelyAbout:L,RouterDemo:k,Segment:F,SvgIcon:x,Table:w,TemplateHooks:A,scrollReveal:E,TablePro:G},le=Object.freeze(Object.defineProperty({__proto__:null,Axios:p,Barcode:d,CacheDemo:g,CalculatePrecision:u,ContextMenu:f,Dashboard:b,Directive:h,Doc:S,DocLocal:T,DocLocalInside:O,Echart:y,Form:C,Mock:D,Modal:P,MultiMenu:M,Office:j,Office_Document:v,Office_Presentation:R,Office_Spreadsheet:z,QRCode:N,Rely:I,RelyAbout:L,RouterDemo:k,Segment:F,SvgIcon:x,Table:w,TablePro:G,TemplateHooks:A,default:ie,scrollReveal:E},Symbol.toStringTag,{value:"Module"})),Q="项目配置",$={Title:"主题",Dark:"暗色",Light:"明亮",PrimaryColorConfig:"主题色"},B="界面显示",re={Title:Q,ThemeOptions:$,InterfaceDisplay:B},ae=Object.freeze(Object.defineProperty({__proto__:null,InterfaceDisplay:B,ThemeOptions:$,Title:Q,default:re},Symbol.toStringTag,{value:"Module"})),H="注册",V="登录",q="扫码登陆",J="请输入用户名",K="请输入密码",U="登 陆",W="用户名",X="密码",Y="开箱即用的中后台管理系统",_e={Register:H,Signing:V,QRCodeSigning:q,NamePlaceholder:J,PasswordPlaceholder:K,Login:U,Name:W,Password:X,RayTemplate:Y},me=Object.freeze(Object.defineProperty({__proto__:null,Login:U,Name:W,NamePlaceholder:J,Password:X,PasswordPlaceholder:K,QRCodeSigning:q,RayTemplate:Y,Register:H,Signing:V,default:_e},Symbol.toStringTag,{value:"Module"})),pe=Object.assign({"./zh-CN/globalMessage.json":oe,"./zh-CN/headerSettingOptions.json":ne,"./zh-CN/headerTooltip.json":se,"./zh-CN/menu.json":le,"./zh-CN/setting.json":ae,"./zh-CN/views/login/index.json":me}),Fe={message:{...Z(pe,"zh-CN")}};export{Fe as default}; diff --git a/js/zh-CN-CeI0xlBH.js.gz b/js/zh-CN-CeI0xlBH.js.gz new file mode 100644 index 00000000..78b5616b Binary files /dev/null and b/js/zh-CN-CeI0xlBH.js.gz differ diff --git a/mockServer/mock-data.js b/mockServer/mock-data.js index 8c101fbb..4e457bf4 100644 --- a/mockServer/mock-data.js +++ b/mockServer/mock-data.js @@ -4,7 +4,7 @@ var __export = (target, all) => { __defProp(target, name, { get: all[name], enumerable: true }); }; -// mock-data-1726641762090.js +// mock-data-1726917070678.js import { transformMockData } from "vite-plugin-mock-dev-server"; // mock/demo/person.mock.ts @@ -85,7 +85,7 @@ var getPersonList = defineMock({ } }); -// mock-data-1726641762090.js +// mock-data-1726917070678.js var exporters = [person_mock_exports]; var mockList = exporters.map((raw) => { let mockConfig; @@ -99,7 +99,7 @@ var mockList = exporters.map((raw) => { } return mockConfig; }); -var mock_data_1726641762090_default = transformMockData(mockList); +var mock_data_1726917070678_default = transformMockData(mockList); export { - mock_data_1726641762090_default as default + mock_data_1726917070678_default as default }; diff --git a/mockServer/mock-data.js.gz b/mockServer/mock-data.js.gz index a412d520..d32f07aa 100644 Binary files a/mockServer/mock-data.js.gz and b/mockServer/mock-data.js.gz differ