diff --git a/index.html b/index.html index c547a056..29542268 100644 --- a/index.html +++ b/index.html @@ -8,7 +8,7 @@ content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> Ray Template - + @@ -34,14 +34,14 @@ - + - + @@ -56,7 +56,7 @@ - + diff --git a/index.html.gz b/index.html.gz index d8b74cc8..74c5abe7 100644 Binary files a/index.html.gz and b/index.html.gz differ diff --git a/js/BarcodeDemo-Cj7gPXWn.js.gz b/js/BarcodeDemo-Cj7gPXWn.js.gz deleted file mode 100644 index ae7d541a..00000000 Binary files a/js/BarcodeDemo-Cj7gPXWn.js.gz and /dev/null differ diff --git a/js/BarcodeDemo-Cj7gPXWn.js b/js/BarcodeDemo-PPIuMuNj.js similarity index 95% rename from js/BarcodeDemo-Cj7gPXWn.js rename to js/BarcodeDemo-PPIuMuNj.js index 21b2578e..9b499c9e 100644 --- a/js/BarcodeDemo-Cj7gPXWn.js +++ b/js/BarcodeDemo-PPIuMuNj.js @@ -1 +1 @@ -import{z as i}from"./hooks-DonDO7vb.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.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 e,N as a,c as l,ae as p,K as s,T as n,a as c}from"./naive-ui@2.40.1_vue@3.5.12-DyRQVgeU.js";import{l as F,b as t,I as u}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import{k as m}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./utils-6rpFoFAR.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.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-dom@3.5.12-ewSD1rNh.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const mt=F({name:"BarcodeDemo",setup(){const r={width:4},o=m(!1),d=m("RayTemplate");return{baseOptions:r,loading:o,text:d}},render(){const{baseOptions:r}=this;return t(c,{cols:2,xGap:12,yGap:12},{default:()=>[t(e,{span:2},{default:()=>[t(a,{title:"详细配置项说明"},{default:()=>[u("点击查看详细配置项:"),t("a",{href:"https://github.com/lindell/JsBarcode/wiki/Options"},[u("js-barcode options")]),u("。")]})]}),t(e,{span:1},{default:()=>[t(a,{title:"基础条形码"},{default:()=>[t(i,{text:"RayTemplate",options:{...r}},null)]})]}),t(e,{span:1},{default:()=>[t(a,{title:"自定义颜色条形码"},{default:()=>[t(i,{text:"RayTemplate",options:{...r,lineColor:"red"}},null)]})]}),t(e,{span:1},{default:()=>[t(a,{title:"pharmacode 模式"},{default:()=>[t(l,{vertical:!0},{default:()=>[t(p,{type:"warning",title:"注意"},{default:()=>[u("该模式下,条形码只能渲染有效数值,否则将会渲染失败。可以查看官网说明:"),t("a",{href:"https://github.com/lindell/JsBarcode/wiki/pharmacode"},[u("pharmacode")]),u("。")]}),t(i,{text:"1234",format:"pharmacode",options:{width:4,height:40,displayValue:!1,background:"#eee"}},null)]})]})]}),t(e,{span:1},{default:()=>[t(a,{title:"codabar 模式"},{default:()=>[t(l,{vertical:!0},{default:()=>[t(p,{type:"warning",title:"注意"},{default:()=>[u("该模式下,需要注意 text 中的特殊字符,可以查看官网说明:"),t("a",{href:"https://github.com/lindell/JsBarcode/wiki/codabar"},[u("codabar")]),u("。")]}),t(i,{text:"1234",format:"codabar",options:{width:4,height:40,displayValue:!1,background:"#eee"}},null)]})]})]}),t(e,{span:1},{default:()=>[t(a,{title:"有状态的条形码"},{default:()=>[t(l,{vertical:!0,size:"large",justify:"flex-start",inline:!0},{default:()=>[t(s,{value:this.loading,"onUpdate:value":o=>this.loading=o,style:"width: fit-content"},{checked:()=>"loading...",unchecked:()=>"success!"}),t(i,{text:"RayTemplate",loading:this.loading},null)]})]})]}),t(e,{span:1},{default:()=>[t(a,{title:"watchText 主动监听 text 变化"},{default:()=>[t(l,{vertical:!0},{default:()=>[t(n,{value:this.text,"onUpdate:value":o=>this.text=o},null),t(i,{text:this.text,watchText:!0},null)]})]})]})]})}});export{mt as default}; +import{z as i}from"./hooks-BwPndLx3.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-D8VSY-p2.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.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 e,N as a,c as l,ae as p,K as s,T as n,a as c}from"./naive-ui@2.40.1_vue@3.5.12-DyRQVgeU.js";import{l as F,b as t,I as u}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import{k as m}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./utils-Dh5AVlvo.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.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-dom@3.5.12-ewSD1rNh.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const mt=F({name:"BarcodeDemo",setup(){const r={width:4},o=m(!1),d=m("RayTemplate");return{baseOptions:r,loading:o,text:d}},render(){const{baseOptions:r}=this;return t(c,{cols:2,xGap:12,yGap:12},{default:()=>[t(e,{span:2},{default:()=>[t(a,{title:"详细配置项说明"},{default:()=>[u("点击查看详细配置项:"),t("a",{href:"https://github.com/lindell/JsBarcode/wiki/Options"},[u("js-barcode options")]),u("。")]})]}),t(e,{span:1},{default:()=>[t(a,{title:"基础条形码"},{default:()=>[t(i,{text:"RayTemplate",options:{...r}},null)]})]}),t(e,{span:1},{default:()=>[t(a,{title:"自定义颜色条形码"},{default:()=>[t(i,{text:"RayTemplate",options:{...r,lineColor:"red"}},null)]})]}),t(e,{span:1},{default:()=>[t(a,{title:"pharmacode 模式"},{default:()=>[t(l,{vertical:!0},{default:()=>[t(p,{type:"warning",title:"注意"},{default:()=>[u("该模式下,条形码只能渲染有效数值,否则将会渲染失败。可以查看官网说明:"),t("a",{href:"https://github.com/lindell/JsBarcode/wiki/pharmacode"},[u("pharmacode")]),u("。")]}),t(i,{text:"1234",format:"pharmacode",options:{width:4,height:40,displayValue:!1,background:"#eee"}},null)]})]})]}),t(e,{span:1},{default:()=>[t(a,{title:"codabar 模式"},{default:()=>[t(l,{vertical:!0},{default:()=>[t(p,{type:"warning",title:"注意"},{default:()=>[u("该模式下,需要注意 text 中的特殊字符,可以查看官网说明:"),t("a",{href:"https://github.com/lindell/JsBarcode/wiki/codabar"},[u("codabar")]),u("。")]}),t(i,{text:"1234",format:"codabar",options:{width:4,height:40,displayValue:!1,background:"#eee"}},null)]})]})]}),t(e,{span:1},{default:()=>[t(a,{title:"有状态的条形码"},{default:()=>[t(l,{vertical:!0,size:"large",justify:"flex-start",inline:!0},{default:()=>[t(s,{value:this.loading,"onUpdate:value":o=>this.loading=o,style:"width: fit-content"},{checked:()=>"loading...",unchecked:()=>"success!"}),t(i,{text:"RayTemplate",loading:this.loading},null)]})]})]}),t(e,{span:1},{default:()=>[t(a,{title:"watchText 主动监听 text 变化"},{default:()=>[t(l,{vertical:!0},{default:()=>[t(n,{value:this.text,"onUpdate:value":o=>this.text=o},null),t(i,{text:this.text,watchText:!0},null)]})]})]})]})}});export{mt as default}; diff --git a/js/BarcodeDemo-PPIuMuNj.js.gz b/js/BarcodeDemo-PPIuMuNj.js.gz new file mode 100644 index 00000000..caf697d1 Binary files /dev/null and b/js/BarcodeDemo-PPIuMuNj.js.gz differ diff --git a/js/TablePro-BcQb-4h1.js.gz b/js/TablePro-BcQb-4h1.js.gz deleted file mode 100644 index da1e06b9..00000000 Binary files a/js/TablePro-BcQb-4h1.js.gz and /dev/null differ diff --git a/js/TablePro-BcQb-4h1.js b/js/TablePro-D4fsREtV.js similarity index 96% rename from js/TablePro-BcQb-4h1.js rename to js/TablePro-D4fsREtV.js index 69dfe9cf..a680891e 100644 --- a/js/TablePro-BcQb-4h1.js +++ b/js/TablePro-D4fsREtV.js @@ -1 +1 @@ -import{P as W,Q as X,J as Y,t as x,T as Z,U as $}from"./hooks-DonDO7vb.js";import{j as ee}from"./utils-6rpFoFAR.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./print-js@1.6.0-BdoEj60G.js";import{a as te}from"./vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import"./instance-D7APY90Q.js";import{M as G}from"./mockjs@1.1.0-CxlURkif.js";import{d as U}from"./dayjs@1.11.10-C8LoRVP6.js";import{ah as T,T as O,H as ae,ai as ue,c as f,P as m,N as L,L as I,aj as z,am as b,v as oe}from"./naive-ui@2.40.1_vue@3.5.12-DyRQVgeU.js";import{l as le,b as e,F as re,I as r,p as ie}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import{k as c}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.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-dom@3.5.12-ewSD1rNh.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./axios@1.7.5-C8DqakIB.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";function se(a){return typeof a=="function"||Object.prototype.toString.call(a)==="[object Object]"&&!ie(a)}const rt=le({name:"TableProDemo",setup(){const{format:a}=$(),[h,{runTableRequest:v,getCurrentTableRequestParams:E,print:D,downloadCsv:n}]=W(),i=c([]),g=[{type:"selection"},{title:"Name",key:"name"},{title:"Sign Status",key:"statusText"},{title:"Sign Time",key:"signTimeStart",render:u=>a(u.signTimeStart)+" ~ "+a(u.signTimeEnd)},{title:"Age",key:"age"},{title:"Address",key:"address"},{title:"Tags",key:"tags",render:u=>u.tags.map(o=>e(oe,{type:"info",bordered:!1,style:"margin-right: 6px"},se(o)?o:{default:()=>[o]}))},{title:"Remark",key:"remark"}],y=c(0),F=c({}),k=c((()=>{const d=[],o=U().valueOf();for(let l=0;l<30;l++)d.push({key:ee(),name:G.Random.cname(),age:l+20,address:G.Random.city(),tags:["nice","developer"],remark:"我是一条很长很长的备注",status:l%2===0?"success":"error",statusText:l%2===0?"在线":"离线",signTimeStart:U(o).add(l*2,"year").valueOf(),signTimeEnd:U(o).add(l+5,"day").valueOf()});return d})()),P=c({pagination:!0,manual:!1}),[j,{checkedRowKeysBind:q,getKeys:w,getRows:A,clearKey:R,clearAll:t,selectKey:V}]=X(i,g,{rowKey:"key",onChange:(u,d,o)=>{}}),M=c(!0),C=u=>u==null,H=u=>new Promise(d=>{const{page:o=1,pageSize:l=10,name:K,status:N,signTimeStart:B,signTimeEnd:S}=u||{};let s=k.value;const _=k.value.length;K&&(s=s.filter(p=>p.name.includes(K))),N&&(s=s.filter(p=>p.status===N)),B&&S&&(s=s.filter(p=>p.signTimeStart>=B&&p.signTimeEnd<=S)),s=s.slice((o-1)*l,o*l),setTimeout(()=>{d({code:0,data:s,total:C(N)&&C(K)&&(C(B)||C(S))?_:s.length,message:"success",page:o,pageSize:l})},1e3)}),{run:J,loading:Q}=te(H,{onSuccess:u=>{const{data:d,total:o}=u;i.value=d,y.value=o}});return{tableDataRef:i,baseColumns:g,itemCountRef:y,loadingGetPersonList:Q,runGetPersonList:J,conditionRef:F,radioRef:P,runTableRequest:v,tableProRegister:h,print:D,downloadCsv:n,checkedRowKeysBind:q,checkedRowKeys:j,getKeys:w,getRows:A,clearKey:R,clearAll:t,collapseRef:M,selectKey:V}},render(){const{tableDataRef:a,baseColumns:h,itemCountRef:v,loadingGetPersonList:E,runGetPersonList:D,conditionRef:n,radioRef:i,runTableRequest:g,tableProRegister:y,print:F,downloadCsv:k,checkedRowKeysBind:P,getKeys:j,getRows:q,clearKey:w,clearAll:A,selectKey:R}=this;return e(f,{vertical:!0},{default:()=>[e(Y,{open:this.collapseRef,bordered:!0},{default:()=>e(re,null,[e(T,{label:"用户名"},{default:()=>[e(O,{value:n.name,"onUpdate:value":t=>n.name=t,clearable:!0},null)]}),e(T,{label:"状态"},{default:()=>[e(ae,{value:n.status,"onUpdate:value":t=>n.status=t,clearable:!0,options:[{label:"成功",value:"success"},{label:"失败",value:"error"}]},null)]}),e(T,{label:"登陆时间"},{default:()=>[e(ue,{type:"datetimerange",value:n.RangeTime,"onUpdate:value":t=>n.RangeTime=t,clearable:!0},null)]}),e(T,{label:"演示折叠的条件框"},{default:()=>[e(O,{readonly:!0,placeholder:"我只是为了占位"},null)]})]),action:()=>e(f,null,{default:()=>[e(m,{type:"primary",onClick:()=>g(),loading:E},{default:()=>[r("查询")]})]}),collapse:t=>t?e(m,{onClick:()=>this.collapseRef=!0,secondary:!0},{default:()=>"受控展开",icon:()=>e(x,{name:"dark",size:"18"},null)}):e(m,{onClick:()=>this.collapseRef=!1,secondary:!0},{default:()=>"受控收起",icon:()=>e(x,{name:"light",size:"18"},null)})}),e(L,{title:"常用高级拓展功能"},{default:()=>[e(f,null,{default:()=>[e(I,{label:"分页"},{default:()=>[e(z,{value:i.pagination,"onUpdate:value":t=>i.pagination=t},{default:()=>[e(b,{value:!0},{default:()=>[r("显示分页")]}),e(b,{value:!1},{default:()=>[r("隐藏分页")]})]})]}),e(I,{label:"自动更新"},{default:()=>[e(z,{value:i.manual,"onUpdate:value":t=>i.manual=t},{default:()=>[e(b,{value:!1},{default:()=>[r("自动更新")]}),e(b,{value:!0},{default:()=>[r("取消自动")]})]})]})]})]}),e(L,{title:"useTablePro 部分方法"},{default:()=>[e(f,null,{default:()=>[e(m,{type:"primary",onClick:()=>F()},{default:()=>[r("打印")]}),e(m,{type:"primary",onClick:()=>k()},{default:()=>[r("下载 csv")]})]})]}),e(L,{title:"useCheckedRowKeys 部分方法"},{default:()=>[e(f,null,{default:()=>[e(m,{type:"primary",onClick:()=>{const t=a[1].key;R(t)}},{default:()=>[r("选中第二行")]}),e(m,{type:"primary",onClick:()=>{const t=a[1].key;w(t)}},{default:()=>[r("取消选中第二行")]}),e(m,{type:"primary",onClick:()=>{a==null||a.forEach(t=>R(t.key))}},{default:()=>[r("选中当前页面所有行")]}),e(m,{type:"primary",onClick:()=>{A()}},{default:()=>[r("取消所有已选中行")]})]})]}),e(Z,{onRegister:y,data:a,columns:h,loading:E,paginationCount:v,request:D,requestConfig:{params:n,formatRangeTime:[{key:"RangeTime",target:["signTimeStart","signTimeEnd"]}]},showPagination:i.pagination,manual:i.manual,rowKey:t=>t.key,checkedRowKeys:this.checkedRowKeys,"onUpdate:checkedRowKeys":t=>this.checkedRowKeys=t,onUpdateCheckedRowKeys:P},null)]})}});export{rt as default}; +import{P as W,Q as X,J as Y,t as x,T as Z,U as $}from"./hooks-BwPndLx3.js";import{j as ee}from"./utils-Dh5AVlvo.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./print-js@1.6.0-BdoEj60G.js";import{a as te}from"./vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import"./instance-CGOUnAsK.js";import{M as G}from"./mockjs@1.1.0-CxlURkif.js";import{d as U}from"./dayjs@1.11.10-D8VSY-p2.js";import{ah as T,T as O,H as ae,ai as ue,c as f,P as m,N as L,L as I,aj as z,am as b,v as oe}from"./naive-ui@2.40.1_vue@3.5.12-DyRQVgeU.js";import{l as le,b as e,F as re,I as r,p as ie}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import{k as c}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.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-dom@3.5.12-ewSD1rNh.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./axios@1.7.5-C8DqakIB.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";function se(a){return typeof a=="function"||Object.prototype.toString.call(a)==="[object Object]"&&!ie(a)}const rt=le({name:"TableProDemo",setup(){const{format:a}=$(),[h,{runTableRequest:v,getCurrentTableRequestParams:E,print:D,downloadCsv:n}]=W(),i=c([]),g=[{type:"selection"},{title:"Name",key:"name"},{title:"Sign Status",key:"statusText"},{title:"Sign Time",key:"signTimeStart",render:u=>a(u.signTimeStart)+" ~ "+a(u.signTimeEnd)},{title:"Age",key:"age"},{title:"Address",key:"address"},{title:"Tags",key:"tags",render:u=>u.tags.map(o=>e(oe,{type:"info",bordered:!1,style:"margin-right: 6px"},se(o)?o:{default:()=>[o]}))},{title:"Remark",key:"remark"}],y=c(0),F=c({}),k=c((()=>{const d=[],o=U().valueOf();for(let l=0;l<30;l++)d.push({key:ee(),name:G.Random.cname(),age:l+20,address:G.Random.city(),tags:["nice","developer"],remark:"我是一条很长很长的备注",status:l%2===0?"success":"error",statusText:l%2===0?"在线":"离线",signTimeStart:U(o).add(l*2,"year").valueOf(),signTimeEnd:U(o).add(l+5,"day").valueOf()});return d})()),P=c({pagination:!0,manual:!1}),[j,{checkedRowKeysBind:q,getKeys:w,getRows:A,clearKey:R,clearAll:t,selectKey:V}]=X(i,g,{rowKey:"key",onChange:(u,d,o)=>{}}),M=c(!0),C=u=>u==null,H=u=>new Promise(d=>{const{page:o=1,pageSize:l=10,name:K,status:N,signTimeStart:B,signTimeEnd:S}=u||{};let s=k.value;const _=k.value.length;K&&(s=s.filter(p=>p.name.includes(K))),N&&(s=s.filter(p=>p.status===N)),B&&S&&(s=s.filter(p=>p.signTimeStart>=B&&p.signTimeEnd<=S)),s=s.slice((o-1)*l,o*l),setTimeout(()=>{d({code:0,data:s,total:C(N)&&C(K)&&(C(B)||C(S))?_:s.length,message:"success",page:o,pageSize:l})},1e3)}),{run:J,loading:Q}=te(H,{onSuccess:u=>{const{data:d,total:o}=u;i.value=d,y.value=o}});return{tableDataRef:i,baseColumns:g,itemCountRef:y,loadingGetPersonList:Q,runGetPersonList:J,conditionRef:F,radioRef:P,runTableRequest:v,tableProRegister:h,print:D,downloadCsv:n,checkedRowKeysBind:q,checkedRowKeys:j,getKeys:w,getRows:A,clearKey:R,clearAll:t,collapseRef:M,selectKey:V}},render(){const{tableDataRef:a,baseColumns:h,itemCountRef:v,loadingGetPersonList:E,runGetPersonList:D,conditionRef:n,radioRef:i,runTableRequest:g,tableProRegister:y,print:F,downloadCsv:k,checkedRowKeysBind:P,getKeys:j,getRows:q,clearKey:w,clearAll:A,selectKey:R}=this;return e(f,{vertical:!0},{default:()=>[e(Y,{open:this.collapseRef,bordered:!0},{default:()=>e(re,null,[e(T,{label:"用户名"},{default:()=>[e(O,{value:n.name,"onUpdate:value":t=>n.name=t,clearable:!0},null)]}),e(T,{label:"状态"},{default:()=>[e(ae,{value:n.status,"onUpdate:value":t=>n.status=t,clearable:!0,options:[{label:"成功",value:"success"},{label:"失败",value:"error"}]},null)]}),e(T,{label:"登陆时间"},{default:()=>[e(ue,{type:"datetimerange",value:n.RangeTime,"onUpdate:value":t=>n.RangeTime=t,clearable:!0},null)]}),e(T,{label:"演示折叠的条件框"},{default:()=>[e(O,{readonly:!0,placeholder:"我只是为了占位"},null)]})]),action:()=>e(f,null,{default:()=>[e(m,{type:"primary",onClick:()=>g(),loading:E},{default:()=>[r("查询")]})]}),collapse:t=>t?e(m,{onClick:()=>this.collapseRef=!0,secondary:!0},{default:()=>"受控展开",icon:()=>e(x,{name:"dark",size:"18"},null)}):e(m,{onClick:()=>this.collapseRef=!1,secondary:!0},{default:()=>"受控收起",icon:()=>e(x,{name:"light",size:"18"},null)})}),e(L,{title:"常用高级拓展功能"},{default:()=>[e(f,null,{default:()=>[e(I,{label:"分页"},{default:()=>[e(z,{value:i.pagination,"onUpdate:value":t=>i.pagination=t},{default:()=>[e(b,{value:!0},{default:()=>[r("显示分页")]}),e(b,{value:!1},{default:()=>[r("隐藏分页")]})]})]}),e(I,{label:"自动更新"},{default:()=>[e(z,{value:i.manual,"onUpdate:value":t=>i.manual=t},{default:()=>[e(b,{value:!1},{default:()=>[r("自动更新")]}),e(b,{value:!0},{default:()=>[r("取消自动")]})]})]})]})]}),e(L,{title:"useTablePro 部分方法"},{default:()=>[e(f,null,{default:()=>[e(m,{type:"primary",onClick:()=>F()},{default:()=>[r("打印")]}),e(m,{type:"primary",onClick:()=>k()},{default:()=>[r("下载 csv")]})]})]}),e(L,{title:"useCheckedRowKeys 部分方法"},{default:()=>[e(f,null,{default:()=>[e(m,{type:"primary",onClick:()=>{const t=a[1].key;R(t)}},{default:()=>[r("选中第二行")]}),e(m,{type:"primary",onClick:()=>{const t=a[1].key;w(t)}},{default:()=>[r("取消选中第二行")]}),e(m,{type:"primary",onClick:()=>{a==null||a.forEach(t=>R(t.key))}},{default:()=>[r("选中当前页面所有行")]}),e(m,{type:"primary",onClick:()=>{A()}},{default:()=>[r("取消所有已选中行")]})]})]}),e(Z,{onRegister:y,data:a,columns:h,loading:E,paginationCount:v,request:D,requestConfig:{params:n,formatRangeTime:[{key:"RangeTime",target:["signTimeStart","signTimeEnd"]}]},showPagination:i.pagination,manual:i.manual,rowKey:t=>t.key,checkedRowKeys:this.checkedRowKeys,"onUpdate:checkedRowKeys":t=>this.checkedRowKeys=t,onUpdateCheckedRowKeys:P},null)]})}});export{rt as default}; diff --git a/js/TablePro-D4fsREtV.js.gz b/js/TablePro-D4fsREtV.js.gz new file mode 100644 index 00000000..36432905 Binary files /dev/null and b/js/TablePro-D4fsREtV.js.gz differ diff --git a/js/dayjs@1.11.10-C8LoRVP6.js b/js/dayjs@1.11.10-C8LoRVP6.js deleted file mode 100644 index e10bb817..00000000 --- a/js/dayjs@1.11.10-C8LoRVP6.js +++ /dev/null @@ -1 +0,0 @@ -import{c as V,g as X}from"./call-bind@1.0.7-Cpj98o6Y.js";var q={exports:{}};(function(z,G){(function(O,D){z.exports=D()})(V,function(){var O=1e3,D=6e4,j=36e5,b="millisecond",d="second",y="minute",m="hour",v="day",C="week",M="month",U="quarter",p="year",L="date",J="Invalid Date",P=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,Q=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,K={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(s){var n=["th","st","nd","rd"],t=s%100;return"["+s+(n[(t-20)%10]||n[t]||n[0])+"]"}},F=function(s,n,t){var r=String(s);return!r||r.length>=n?s:""+Array(n+1-r.length).join(t)+s},R={s:F,z:function(s){var n=-s.utcOffset(),t=Math.abs(n),r=Math.floor(t/60),e=t%60;return(n<=0?"+":"-")+F(r,2,"0")+":"+F(e,2,"0")},m:function s(n,t){if(n.date()1)return s(u[0])}else{var o=n.name;g[o]=n,e=o}return!r&&e&&(k=e),e||!r&&k},f=function(s,n){if(N(s))return s.clone();var t=typeof n=="object"?n:{};return t.date=s,t.args=arguments,new A(t)},a=R;a.l=W,a.i=N,a.w=function(s,n){return f(s,{locale:n.$L,utc:n.$u,x:n.$x,$offset:n.$offset})};var A=function(){function s(t){this.$L=W(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[Z]=!0}var n=s.prototype;return n.parse=function(t){this.$d=function(r){var e=r.date,i=r.utc;if(e===null)return new Date(NaN);if(a.u(e))return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){var u=e.match(P);if(u){var o=u[2]-1||0,c=(u[7]||"0").substring(0,3);return i?new Date(Date.UTC(u[1],o,u[3]||1,u[4]||0,u[5]||0,u[6]||0,c)):new Date(u[1],o,u[3]||1,u[4]||0,u[5]||0,u[6]||0,c)}}return new Date(e)}(t),this.init()},n.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},n.$utils=function(){return a},n.isValid=function(){return this.$d.toString()!==J},n.isSame=function(t,r){var e=f(t);return this.startOf(r)<=e&&e<=this.endOf(r)},n.isAfter=function(t,r){return f(t)=n?s:""+Array(n+1-r.length).join(t)+s},X={s:F,z:function(s){var n=-s.utcOffset(),t=Math.abs(n),r=Math.floor(t/60),e=t%60;return(n<=0?"+":"-")+F(r,2,"0")+":"+F(e,2,"0")},m:function s(n,t){if(n.date()1)return s(u[0])}else{var o=n.name;g[o]=n,e=o}return!r&&e&&(k=e),e||!r&&k},f=function(s,n){if(N(s))return s.clone();var t=typeof n=="object"?n:{};return t.date=s,t.args=arguments,new A(t)},a=X;a.l=W,a.i=N,a.w=function(s,n){return f(s,{locale:n.$L,utc:n.$u,x:n.$x,$offset:n.$offset})};var A=function(){function s(t){this.$L=W(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[q]=!0}var n=s.prototype;return n.parse=function(t){this.$d=function(r){var e=r.date,i=r.utc;if(e===null)return new Date(NaN);if(a.u(e))return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){var u=e.match(Q);if(u){var o=u[2]-1||0,c=(u[7]||"0").substring(0,3);return i?new Date(Date.UTC(u[1],o,u[3]||1,u[4]||0,u[5]||0,u[6]||0,c)):new Date(u[1],o,u[3]||1,u[4]||0,u[5]||0,u[6]||0,c)}}return new Date(e)}(t),this.init()},n.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},n.$utils=function(){return a},n.isValid=function(){return this.$d.toString()!==Z},n.isSame=function(t,r){var e=f(t);return this.startOf(r)<=e&&e<=this.endOf(r)},n.isAfter=function(t,r){return f(t)i.map(i=>d[i]); -var Yn=Object.defineProperty;var Xn=(e,t,n)=>t in e?Yn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var jt=(e,t,n)=>Xn(e,typeof t!="symbol"?t+"":t,n);import{s as ut,c as He,t as kt,i as nn,p as ze,o as tt,f as Jn}from"./lodash-es@4.17.21-CeZG2a4n.js";import{z as Nt,d as Ft,f as Zn,g as Qn,N as nt,a as eo,b as to,c as E,e as ot,m as no,h as on,u as oo,S as xt,i as ao,j as Oe,k as lo,l as an,n as Ie,o as so,p as ro,q as ln,t as io,r as co,s as uo,v as po,w as sn,x as Ye,y as mo,A as rn,B as fo,C as go,D as ho,E as vo,F as oe,G as yo,H as Bt,I as bo,J as de,K as pe,L as Ve,M as ke,O as cn,P as J,Q as _o,R as So,T as wo,U as Co,V as To,W as Oo,X as un,Y as Ro,Z as Vt,_ as Ao}from"./naive-ui@2.40.1_vue@3.5.12-DyRQVgeU.js";import{o as Po,u as Le,a as ko,b as xo,c as dn,d as dt,e as Mt,f as Mo}from"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import{k as I,l as Ce,e as te,n as zo,x as Re,a as pn,s as Io,u as Z}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import{n as q,w as he,l as M,b as r,m as F,p as ne,q as ie,j as w,f as ve,t as Lo,k as Ee,v as mn,h as at,i as fn,x as Eo,F as gn,y as Do,z as be,A as jo,C as pt,D as No,E as xe,S as Fo,K as Bo,G as $t,H as Vo,I as fe}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{d as ae}from"./dayjs@1.11.10-C8LoRVP6.js";import{p as $o}from"./print-js@1.6.0-BdoEj60G.js";import{u as hn}from"./vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.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 Ko}from"./jsbarcode@3.11.6-DGNGFp02.js";import{g as Xe,i as ce,s as zt,a as Ot,c as Uo,u as vn,l as yn,b as bn,d as Wo,e as B,r as ge,f as D,h as qo,j as Je,q as Ze,k as qe,m as _n,p as Sn,n as It,o as Kt,t as _e,v as Go,w as Ho,x as Yo,y as Xo,z as Jo,A as se}from"./utils-6rpFoFAR.js";import{i as Ut}from"./interactjs@1.10.26-DZL_TZzP.js";import{s as Zo}from"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import{d as lt,c as Qo}from"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DjAImzYl.js";import{t as ea,a as ta,b as na,c as oa,d as aa,e as la}from"./html-to-image@1.11.11-BOFdlgi9.js";import{u as st,a as sa,o as ra,c as ia,b as ca}from"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import{c as ua}from"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.js";import{r as da,u as Me,i as pa,a as ma,b as fa,c as ga,d as ha,e as va,f as ya,g as ba,h as _a,j as Sa,k as wa,l as Ca,m as Ta,n as Oa,o as Ra,p as Aa,q as Pa,s as ka}from"./echarts@5.5.0-CezqL3m-.js";import{g as xa}from"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js";import{T as Ma,a as za}from"./@vue_runtime-dom@3.5.12-ewSD1rNh.js";const Br=(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(a=>{const l=e[a].default;let o=a.replace(`./${t}/`,"").replace(/^\.\//,"");const i=o.lastIndexOf(".");o=o.substring(0,i);const s=o.split("/"),c=s.shift(),d=s.join(".");c&&(d?(ut(n,c,n[c]||{}),ut(n[c],d,l)):ut(n,c,l||{}))}),n},Ia="modulepreload",La=function(e){return"/ray-template/"+e},Wt={},L=function(t,n,a){let l=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),i=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));l=Promise.all(n.map(s=>{if(s=La(s),s in Wt)return;Wt[s]=!0;const c=s.endsWith(".css"),d=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${s}"]${d}`))return;const p=document.createElement("link");if(p.rel=c?"stylesheet":Ia,c||(p.as="script"),p.crossOrigin="",p.href=s,i&&p.setAttribute("nonce",i),document.head.appendChild(p),c)return new Promise((h,S)=>{p.addEventListener("load",h),p.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${s}`)))})}))}return l.then(()=>t()).catch(o=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=o,window.dispatchEvent(i),!i.defaultPrevented)throw o})},Ea=(e,t,n)=>{const a=e[t];return a?typeof a=="function"?a():Promise.resolve(a):new Promise((l,o)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(o.bind(null,new Error("Unknown variable dynamic import: "+t+(t.split("/").length!==n?". Note that variables only represent file names one level deep.":""))))})},Da=async e=>{var n;const t={};for(const a of e){const l=await Ea(Object.assign({"../lang/en-US.ts":()=>L(()=>import("./en-US-D7xUZ2yk.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,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),"../lang/zh-CN.ts":()=>L(()=>import("./zh-CN-dOsAGuBk.js"),__vite__mapDeps([48,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47]))}),`../lang/${a.key}.ts`,3),o=a.key;o&&(t[o]=((n=l==null?void 0:l.default)==null?void 0:n.message)??{})}return t},Vr=e=>{switch(e){case"zh-CN":return{locale:Nt,dateLocal:Ft};case"en-US":return{locale:null,dateLocal:null};default:return{locale:Nt,dateLocal:Ft}}},$r={max:5,closable:!1},Kr="loading",Ur="",G={signing:"signing",localeLanguage:"localeLanguage",token:"token",appMenuKey:"menuKey",appPiniaSettingStore:"piniaSettingStore",appPiniaKeepAliveStore:"piniaKeepAliveStore",appPiniaMenuStore:"piniaMenuStore",appPiniaSigningStore:"piniaSigningStore",appVersionProvider:"appVersionProvider",isAppLockScreen:"isAppLockScreen",appGlobalSearchOptions:"appGlobalSearchOptions"},ja=[{label:"无",value:"none"},{label:"缩放出现",value:"scale"},{label:"缩放消退",value:"fade-scale"},{label:"滑入出现",value:"fade-slide"},{label:"淡入消退",value:"opacity"},{label:"底部消退",value:"fade-bottom"}],Q={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"},wn=[{key:"zh-CN",label:"中文(简体)"},{key:"en-US",label:"English(US)"}],Na="zh-CN",Fa="zh-CN",Ba={"zh-CN":"zh-cn","en-US":"en"},Va="zh-cn",Wr={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)$/,cssSize:/^auto|unset|fit-content|max-content|min-content|initial|inherit|revert|revert-layer|[-\w]+-webkit-fill-available$/},qr={baseURL:"",withCredentials:!1,timeout:5*1e3,headers:{"Content-Type":"application/json"}},we=I(null),Cn=I(null),$a={setupRouterLoadingBar:!0,setupRouterGuard:!0},Ka=["RLogin","ErrorPage","RayTemplateDoc"],$e=[],Gr=(e,t)=>{const n=I(0),a=I(0),l=I(!1),{clickOutside:o}={},i=h=>{l.value=h},s=h=>{h.preventDefault(),i(!1),q().then(()=>{const{clientX:S,clientY:g}=h;n.value=S,a.value=g,i(!0)})};o&&Po(e,h=>{o(h)});const c=Le(e,"contextmenu",s,t),d=Le(e,"click",()=>{i(!1)});return{stop:()=>{c(),d()},x:Ce(n),y:Ce(a),show:Ce(l),updateShow:i}},Qe=te({globalSpinning:!1,globalDrawerValue:!1,globalMainLayoutLoad:!0,layoutContentMaximize:!1,layoutContentSpinning:!1});function re(e,t,n){Object.hasOwn(Qe,e)&&(Qe[e]=t)}function rt(e){return Ce(zo(Qe,e))}function Ua(){return{...Re(Ce(Qe))}}let le;const Wa=async()=>{const e=Kn(),t=await Da(wn);return ua({legacy:!1,locale:e,messages:t,sync:!0,missingWarn:!1,silentFallbackWarn:!0,fallbackLocale:Fa})},Hr=async e=>{const t=await Wa();e.use(t),le=t},qt=(e,t)=>t,De=e=>{if(!le)return{t:o=>qt(e,o),locale:o=>{}};const{t,...n}=le.global;return{...n,t:(o,...i)=>o?!o.includes(".")&&!e?o:t(qt(e,o),...i):"",locale:o=>{le.mode==="legacy"?le.global.locale=o:pn(le.global.locale)?le.global.locale.value=o:le.global.locale=o}}},N=e=>e,qa={path:"/dashboard",component:()=>L(()=>import("./index-DcajtrM6.js"),__vite__mapDeps([49,12,1,2,3,4,5,6,7,8,9,10,11,50,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,51])),meta:{i18nKey:N("menu.Dashboard"),icon:"dashboard",order:0}},Ga=Object.freeze(Object.defineProperty({__proto__:null,default:qa},Symbol.toStringTag,{value:"Module"})),Ha={path:"/axios",name:"RAxios",component:()=>L(()=>import("./index-BkbN0lKB.js"),__vite__mapDeps([52,4,5,6,7,8,2,9,10,53,54,1,3,11,32,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,55])),meta:{i18nKey:N("menu.Axios"),icon:"axios",order:3,keepAlive:!0}},Ya=Object.freeze(Object.defineProperty({__proto__:null,default:Ha},Symbol.toStringTag,{value:"Module"})),Xa={path:"barcode",component:()=>L(()=>import("./BarcodeDemo-Cj7gPXWn.js"),__vite__mapDeps([56,12,1,2,3,4,5,6,7,8,9,10,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,30,31,11,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:N("menu.Barcode"),icon:"other",order:2,extra:{label:"new"}}},Ja=Object.freeze(Object.defineProperty({__proto__:null,default:Xa},Symbol.toStringTag,{value:"Module"})),Za={path:"/cache-demo",component:()=>L(()=>import("./index-40P_oJMv.js"),__vite__mapDeps([57,1,2,3,4,5,6,7,8,9,10,11,32,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:N("menu.CacheDemo"),icon:"other",order:3}},Qa=Object.freeze(Object.defineProperty({__proto__:null,default:Za},Symbol.toStringTag,{value:"Module"})),el={path:"/context-menu",component:()=>L(()=>import("./index-tgRTNfIG.js"),__vite__mapDeps([58,12,1,2,3,4,5,6,7,8,9,10,11,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:N("menu.ContextMenu"),icon:"other",order:2}},tl=Object.freeze(Object.defineProperty({__proto__:null,default:el},Symbol.toStringTag,{value:"Module"})),nl={path:"/directive",component:()=>L(()=>import("./index-Dy43M56X.js"),__vite__mapDeps([59,7,5,6,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29])),meta:{i18nKey:N("menu.Directive"),icon:"other",order:2,extra:{label:"ellipsis"}}},ol=Object.freeze(Object.defineProperty({__proto__:null,default:nl},Symbol.toStringTag,{value:"Module"})),al={path:"/echart",component:()=>L(()=>import("./index-IVPegtuP.js"),__vite__mapDeps([60,12,1,2,3,4,5,6,7,8,9,10,11,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,61])),meta:{i18nKey:N("menu.Echart"),icon:"echart",order:1,extra:{label:"useChart"}}},ll=Object.freeze(Object.defineProperty({__proto__:null,default:al},Symbol.toStringTag,{value:"Module"})),sl={path:"/form",component:()=>L(()=>import("./index-5V4yf9yZ.js"),__vite__mapDeps([62,12,1,2,3,4,5,6,7,8,9,10,11,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:N("menu.Form"),icon:"other",order:2,extra:{label:"useForm"}}},rl=Object.freeze(Object.defineProperty({__proto__:null,default:sl},Symbol.toStringTag,{value:"Module"})),il={path:"/iframe",component:()=>L(()=>import("./index-C9u1x56c.js"),__vite__mapDeps([63,12,1,2,3,4,5,6,7,8,9,10,11,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{icon:"other",order:2,noLocalTitle:"iframe"}},cl=Object.freeze(Object.defineProperty({__proto__:null,default:il},Symbol.toStringTag,{value:"Module"})),ul={path:"/mock-demo",component:()=>L(()=>import("./index-BA7MPIf6.js"),__vite__mapDeps([64,12,1,2,3,11,4,5,6,7,8,9,10,53,54,32,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:N("menu.Mock"),icon:"other",order:3,keepAlive:!1,extra:{label:"usePagination"}}},dl=Object.freeze(Object.defineProperty({__proto__:null,default:ul},Symbol.toStringTag,{value:"Module"})),pl={path:"/modal-demo",component:()=>L(()=>import("./index-ZK2gtRBB.js"),__vite__mapDeps([65,12,1,2,3,4,5,6,7,8,9,10,11,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:N("menu.Modal"),icon:"other",order:3}},ml=Object.freeze(Object.defineProperty({__proto__:null,default:pl},Symbol.toStringTag,{value:"Module"})),Ge=()=>L(()=>Promise.resolve().then(()=>Ns),void 0),fl={path:"/multi",component:Ge,meta:{i18nKey:N("menu.MultiMenu"),icon:"other",order:4,extra:{label:"cache"}},children:[{path:"multi-menu-one",name:"MultiMenuOne",component:()=>L(()=>import("./index-Dyp40qYu.js"),__vite__mapDeps([66,7,5,6,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29])),meta:{noLocalTitle:"多级菜单-1",keepAlive:!0}},{path:"multi-menu-two",name:"MultiMenuTwo",component:Ge,meta:{noLocalTitle:"多级菜单-2"},children:[{path:"sub-menu-other",name:"SubMenuOther",component:()=>L(()=>import("./index-8F6Ug6Kd.js"),__vite__mapDeps([67,7,5,6,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29])),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:()=>L(()=>import("./index-TI4DwZCx.js"),__vite__mapDeps([68,7,5,6,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29])),meta:{noLocalTitle:"多级菜单-2-2-1",keepAlive:!0}}]}]}]},gl=Object.freeze(Object.defineProperty({__proto__:null,default:fl},Symbol.toStringTag,{value:"Module"})),hl={path:"/precision",component:()=>L(()=>import("./index-hU9_Mjki.js"),__vite__mapDeps([69,1,2,3,4,5,6,7,8,9,10,11,32,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:N("menu.CalculatePrecision"),icon:"other",order:2}},vl=Object.freeze(Object.defineProperty({__proto__:null,default:hl},Symbol.toStringTag,{value:"Module"})),yl={path:"/qrcode",component:()=>L(()=>import("./index-JALWQc45.js"),__vite__mapDeps([70,71,7,5,6,72,73,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29])),meta:{i18nKey:N("menu.QRCode"),icon:"other",order:2}},bl=Object.freeze(Object.defineProperty({__proto__:null,default:yl},Symbol.toStringTag,{value:"Module"})),_l={path:"rely-about",component:()=>L(()=>import("./index-CjEDU2P3.js"),__vite__mapDeps([74,7,5,6,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,75])),meta:{i18nKey:N("menu.RelyAbout"),icon:"rely",order:999}},Sl=Object.freeze(Object.defineProperty({__proto__:null,default:_l},Symbol.toStringTag,{value:"Module"})),wl={path:"/router-demo",component:Ge,meta:{i18nKey:N("menu.RouterDemo"),icon:"other",order:3},children:[{path:"router-demo-home",component:()=>L(()=>import("./index-C5l76f6e.js"),__vite__mapDeps([76,12,1,2,3,40,5,6,7,11,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,30,31,4,8,9,10,32,33,34,35,36,37,38,39,41,42,43,44,45,46,47])),meta:{noLocalTitle:"人员信息(平级模式)"}},{path:"router-demo-detail",component:()=>L(()=>import("./index-3bzRwRyq.js"),__vite__mapDeps([77,7,5,6,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29])),meta:{noLocalTitle:"信息详情",sameLevel:!0}}]},Cl=Object.freeze(Object.defineProperty({__proto__:null,default:wl},Symbol.toStringTag,{value:"Module"})),Tl={path:"/scroll-reveal",component:()=>L(()=>import("./index-B-oZGJ3j.js"),__vite__mapDeps([78,7,5,6,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,79])),meta:{i18nKey:N("menu.scrollReveal"),icon:"scroll_reveal",hidden:!0}},Ol=Object.freeze(Object.defineProperty({__proto__:null,default:Tl},Symbol.toStringTag,{value:"Module"})),Rl={path:"/segment",component:()=>L(()=>import("./index-LYjmBIt_.js"),__vite__mapDeps([80,12,1,2,3,4,5,6,7,8,9,10,11,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:N("menu.Segment"),icon:"other",order:3,extra:{label:"segment"}}},Al=Object.freeze(Object.defineProperty({__proto__:null,default:Rl},Symbol.toStringTag,{value:"Module"})),Pl={path:"/svg-icons",component:()=>L(()=>import("./index-BlC6n-Ua.js"),__vite__mapDeps([81,12,1,2,3,4,5,6,7,8,9,10,11,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,82])),meta:{i18nKey:N("menu.SvgIcon"),icon:"other",order:3}},kl=Object.freeze(Object.defineProperty({__proto__:null,default:Pl},Symbol.toStringTag,{value:"Module"})),xl={path:"/table-pro",component:()=>L(()=>import("./TablePro-BcQb-4h1.js"),__vite__mapDeps([83,32,12,1,2,3,4,5,6,7,8,9,10,11,13,53,54,84,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:N("menu.TablePro"),icon:"other",order:2,extra:{label:"TablePro"}}},Ml=Object.freeze(Object.defineProperty({__proto__:null,default:xl},Symbol.toStringTag,{value:"Module"})),zl={path:"/table",component:()=>L(()=>import("./index-BG6oi-U_.js"),__vite__mapDeps([85,32,12,1,2,3,4,5,6,7,8,9,10,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:N("menu.Table"),icon:"other",order:2,extra:{label:"useTable"}}},Il=Object.freeze(Object.defineProperty({__proto__:null,default:zl},Symbol.toStringTag,{value:"Module"})),Ll={path:"/template-hooks",component:()=>L(()=>import("./index-D6uzvoU7.js"),__vite__mapDeps([86,12,1,2,3,4,5,6,7,8,9,10,11,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:N("menu.TemplateHooks"),icon:"other",order:1}},El=Object.freeze(Object.defineProperty({__proto__:null,default:Ll},Symbol.toStringTag,{value:"Module"})),Dl=()=>{const e=Object.assign({"/src/router/modules/dashboard.ts":Ga,"/src/router/modules/demo/axios.ts":Ya,"/src/router/modules/demo/barcode.ts":Ja,"/src/router/modules/demo/cache-demo.ts":Qa,"/src/router/modules/demo/context-menu.ts":tl,"/src/router/modules/demo/directive.ts":ol,"/src/router/modules/demo/echart.ts":ll,"/src/router/modules/demo/form.ts":rl,"/src/router/modules/demo/iframe.ts":cl,"/src/router/modules/demo/mock.ts":dl,"/src/router/modules/demo/modal.ts":ml,"/src/router/modules/demo/multi-menu.ts":gl,"/src/router/modules/demo/precision.ts":vl,"/src/router/modules/demo/qrcode.ts":bl,"/src/router/modules/demo/rely.ts":Sl,"/src/router/modules/demo/router-demo.ts":Cl,"/src/router/modules/demo/scroll-reveal.ts":Ol,"/src/router/modules/demo/segment.ts":Al,"/src/router/modules/demo/svg-icons.ts":kl,"/src/router/modules/demo/table-pro.ts":Ml,"/src/router/modules/demo/table.ts":Il,"/src/router/modules/demo/template-hooks.ts":El});return Object.keys(e).reduce((n,a)=>{const l=e[a].default;if(l)n.push(l);else throw new Error(`[combineRawRouteModules]: ${a} module must export default.`);return n},[])},jl=e=>e[0]==="/",Tn=(e,t=[],n="")=>{var a;if(!Array.isArray(e))return[];for(const l of e){const o=n+(jl(l.path)?l.path:"/"+l.path);if((a=l.children)!=null&&a.length){Tn(l.children,t,o);continue}else t.push({...l,path:o})}return t},Nl=e=>Array.isArray(e)?Tn(He(e)):[],Fl=e=>e.sort((t,n)=>{var o,i;const a=((o=t.meta)==null?void 0:o.order)??1,l=((i=n.meta)==null?void 0:i.order)??0;if(typeof a!="number"||typeof l!="number")throw new TypeError("orderRoutes error: order must be a number!");return a===l?t.name?n.name?t.name.localeCompare(n.name):-1:1:a-l}),Bl=e=>{const{beforeEach:t}=e,{getRootPath:n}=Pe(),a=(l,o)=>l.path==="/"||o.path==="/login";t((l,o,i)=>{const s=Xe(G.token,"localStorage"),c=Xe(G.appMenuKey,"sessionStorage",{defaultValue:n.value}),{meta:d,name:p}=l;s!==null?a(l,o)?mt(!0):!ce(p,"Symbol")&&p&&Ka.includes(p)?i():Fn(d)?a(l,o)?c?i(c):mt(!0):i():mt(!0):a(l,o)?i():i("/")})},mt=(e=!0)=>{const{router:t}=Et(),{push:n,replace:a}=t,{getRootPath:l}=Pe();zt(G.appMenuKey,l.value,"localStorage"),e?a(l.value):n(l.value)},Vl=e=>{var n;const{meta:t}=e;t!=null&&t.ignoreAutoResetScroll||(n=we.value)==null||n.scrollTo({top:0,left:0,behavior:"smooth"})},$l=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()})},On=e=>{const{meta:t={}}=e,{hidden:n,sameLevel:a,env:l}=t,{MODE:o}=Ot();return!(a||n||l&&typeof l=="string"&&l!==o||l&&Array.isArray(l)&&!l.includes(o))};var Kl={pkg:{dependencies:{"@vueuse/core":"^11.1.0",axios:"^1.7.5",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10",echarts:"^5.5.0","html-to-image":"1.11.11",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.40.1",pinia:"^2.2.4","pinia-plugin-persistedstate":"^4.1.1","print-js":"^1.6.0",vue:"^3.5.12","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:"5.0.1"},layout:{copyright:"Copyright © 2022-present Ray"},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const je=lt("setting",()=>{const{appPrimaryColor:{primaryColor:e}}=Kl,{locale:t}=De(),{locale:n}=ur(),a=te({drawerPlacement:"right",primaryColorOverride:{common:{primaryColor:e,primaryColorHover:e,primaryColorPressed:e}},_appTheme:!1,appTheme:"light",menuTagSwitch:!0,breadcrumbSwitch:!0,localeLanguage:Kn(),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:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"},keepAliveConfig:{setupKeepAlive:!0,keepAliveExclude:[],maxKeepAliveLength:10},menuConfig:{collapsedWidth:64,collapsedMode:"width",collapsedIconSize:16,collapsedIndent:24,accordion:!1,menuSiderBarLogo:!0,iconSize:16}}),l=s=>{t(s),n(s),a.localeLanguage=s,zt(G.localeLanguage,s,"localStorage")},o=(s,c=.3)=>{const d=Uo(s,c),p={primaryColor:s,primaryColorHover:s,primaryColorPressed:s};a.primaryColorOverride.common=p;const h=document.body;h.style.setProperty("--ray-theme-primary-color",s),h.style.setProperty("--ray-theme-primary-fade-color",d)},i=(s,c,d)=>{vn(a,s,c,d)};return he(()=>a.appTheme,s=>{s?a.primaryColorOverride=Object.assign({},a.primaryColorOverride,Q.appNaiveUIThemeOverrides.dark,Q.appNaiveUIThemeOverridesCommon.dark):a.primaryColorOverride=Object.assign({},a.primaryColorOverride,Q.appNaiveUIThemeOverrides.light,Q.appNaiveUIThemeOverridesCommon.light)},{immediate:!0,once:!0}),{...Re(a),updateLocale:l,changePrimaryColor:o,updateSettingState:i}},{persist:{key:G.appPiniaSettingStore}}),Rn={...Zn,onRegister:{type:[Function,Array],default:null}},An={actionAlign:{type:String,default:"end"},open:{type:Boolean,default:!1},collapseToggleText:{type:Array,default:()=>["展开","收起"]},bordered:{type:Boolean,default:!0},onUpdateOpen:{type:[Function,Array],default:null},"onUpdate:open":{type:[Function,Array],default:null},...Qn};function Ul(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ne(e)}const Yr=M({name:"RCollapse",props:Object.assign({},Rn,{...An,open:{type:Boolean,default:!0},cols:{type:Number,default:4},bordered:{type:Boolean,default:!0}}),render(){const{$slots:e,$props:t}=this,{labelPlacement:n,showFeedback:a,...l}=t;return r(fs,F(l,{labelPlacement:"top",showFeedback:!1}),{default:()=>[r(Gl,l,Ul(e)?e:{default:()=>[e]})]})}}),Wl={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:()=>yn()},autoResizeObserverTarget:{type:Object,default:null},watchOptionsThrottleWait:{type:Number,default:500},nextTick:{type:Boolean,default:!0},setChartOptions:{type:Object,default:()=>bn()},onRegister:{type:[Function,Array],default:null}},ql=Wo(),Gt="__R_CHART_DOWN_LOAD_CHART__";ql.forEach(e=>{da(e.name,e.theme)});const Xr=M({name:"RChart",props:Wl,setup(e,{expose:t}){const{getAppTheme:n}=$(),a=ie("rayChartRef"),l=ie("rayChartWrapperRef"),o=Io();let i,s;const{echartTheme:c}=Q;let d;const p=w(()=>[{label:"下载图片",key:Gt,disabled:!(o.value&&o.value.getDom())}]),h=w(()=>({"--ray-chart-width":B(e.width),"--ray-chart-height":B(e.height)})),S=I(!1);let g;const m={aria:e.showAria},_=async()=>{var O;Me([ma,fa,ga,ha,va,ya,ba,_a]),Me([Sa,wa,Ca,Ta,Oa,Ra]),Me([Aa,Pa]),Me([ka]);try{Me((O=e.use)==null?void 0:O.filter(Boolean))}catch(P){console.error("[RChart register error]: ",P)}},f=()=>{if(o.value&&R(),e.theme==="default"){e.autoChangeTheme?u("dark"):u("");return}if(e.theme)u(e.theme);else{const O=e.autoChangeTheme&&n.value?`${c}-dark`:c;u(O)}},b=O=>{let P=Z(O);return P=(V=>Object.assign({},P,V))({aria:{enabled:e.showAria,decal:{show:e.showAria}}}),P},u=(O=c)=>{var ue;const P=a.value,j=b(e.options),{height:V,width:U}=P.getBoundingClientRect(),{onSuccess:Y,onError:H}=e;try{o.value=pa(P,O,{width:U===0?200:void 0,height:V===0?200:void 0}),Y&&D(Y,o.value),e.nextTick?(o.value.setOption({}),q(()=>{var X;j&&((X=o.value)==null||X.setOption(j))})):j&&((ue=o.value)==null||ue.setOption(j))}catch(X){throw H&&D(H),new Error(`[RChart render error]: ${X}`)}finally{const{onFinally:X}=e;X&&D(X)}},v=()=>{var O;return!!((O=o.value)!=null&&O.isDisposed())},R=()=>{var O;v()||(O=o.value)==null||O.dispose()},C=()=>{o.value&&o.value.resize()},y=(O,P)=>{if(O===Gt&&!v()){const{filename:V,...U}=e.downloadOptions;qo(o.value.getDataURL(U),V??`${new Date().getTime()}`)}const{onDropdownSelect:j}=e;j&&D(j,O,P)},x=()=>{var P;if(e.autoResize&&(i||(i=kt(C,500)),s||(s=xo(e.autoResizeObserverTarget||l,i))),(P=o.value)!=null&&P.getDom()||!S.value&&e.intersectionObserver)return;f(),g==null||g.stop();const{onRegister:O}=e;O&&o.value&&D(O,o.value,x,A)},A=()=>{R(),i==null||i.cancel(),s==null||s.stop(),g==null||g.stop(),g=null,i=null,s=null};return he(()=>n.value,()=>{e.autoChangeTheme&&(R(),f())}),ve(()=>{var O,P;e.intersectionObserver&&(g=ko(e.intersectionObserverTarget||l,([j])=>{S.value=j.isIntersecting},e.intersectionOptions)),e.watchOptions?d=xa(()=>e.options,j=>{var Y;const V=b(j),U=Object.assign({},bn(),e.setChartOptions);(Y=o.value)==null||Y.setOption(V,U)},{deep:!0,throttle:e.watchOptionsThrottleWait}):d==null||d(),e.loading?(O=o.value)==null||O.showLoading(yn(e.loadingOptions)):(P=o.value)==null||P.hideLoading(),e.showAria!==m.aria&&o.value&&(o.value.setOption(b(e.options)),m.aria=e.showAria),S.value&&!v()&&x()}),t(),Lo(async()=>{await _()}),Ee(()=>{x()}),mn(()=>{A(),d==null||d()}),{rayChartRef:a,cssVarsRef:h,rayChartWrapperRef:l,moreDropDownOptions:p,dropdownSelect:y}},render(){const{title:e,contentStyle:t,preset:n,moreDropDownOptions:a,dropdownSelect:l,bordered:o,dropdownOptions:i}=this,{cardExtra:s}=this.$slots;return n==="card"?r(nt,{class:"ray-chart",ref:"rayChartWrapperRef",style:[this.cssVarsRef],contentStyle:t,bordered:o,embedded:!0},{default:ge(r("div",{class:"ray-chart__container",ref:"rayChartRef"},null)),header:ge(e,{defaultElement:r("div",{style:"display: none;"},null)}),"header-extra":ge(s,{defaultElement:r(xn,{iconSize:18,cursor:"pointer",options:i||a,trigger:"click",onSelect:l.bind(this),placement:"bottom-end"},null)})}):r("div",{class:"ray-chart",style:[this.cssVarsRef],ref:"rayChartWrapperRef"},[r("div",{class:"ray-chart__container",ref:"rayChartRef"},null)])}}),Jr=()=>{let e,t,n;const a=(c,d,p)=>{c&&(e=c,t=p,n=d)},l=()=>{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[a,{getChartInstance:l,isDisposed:()=>{var c;return!!((c=l().echartInst)!=null&&c.isDisposed())},dispose:()=>l().dispose.call(null),render:()=>l().render.call(null)}]},Gl=M({name:"RCollapseGrid",props:An,setup(e){const t=I(!e.open),n=w(()=>({"--r-collapse-grid-action-align":e.actionAlign})),a=()=>{const{onUpdateOpen:o,"onUpdate:open":i}=e;t.value=!t.value,o&&D(o,t.value),i&&D(i,t.value)},l=o=>r("div",{class:"collapse-icon",onClick:a.bind(this)},[r("span",null,[o?e.collapseToggleText[0]:e.collapseToggleText[1]]),r(k,{customClassName:`collapse-icon--arrow ${o?"":"collapse-icon--arrow__expanded"}`,name:"expanded",size:"14"},null)]);return ve(()=>{t.value=!e.open}),{modelCollapsed:t,collapseClick:a,CollapseIcon:l,cssVars:n}},render(){const{$slots:{collapse:e,action:t,default:n},CollapseIcon:a,$props:l,modelCollapsed:o,xGap:i,yGap:s,collapsedRows:c,cssVars:d,bordered:p}=this;return r(nt,{bordered:p,style:[d]},{default:()=>r(eo,F({class:"ray-collapse-grid"},l,{collapsed:o,xGap:i||12,yGap:s||12,collapsedRows:c}),{default:()=>[n==null?void 0:n(),r(to,{suffix:!0,class:"ray-collapse-grid__suffix--btn"},{default:()=>[r(E,{justify:"end",align:"center"},{default:()=>[t==null?void 0:t(),e?e(o):a(o)]})]})]})})}}),Hl={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}},k=M({name:"RIcon",props:Hl,setup(e){const t=w(()=>`#${e.prefix}-${e.name}`),n=w(()=>({"--ray-icon-width":e.width?B(e.width):B(e.size),"--ray-icon-height":e.height?B(e.height):B(e.size),"--ray-icon-depth":e.depth,"--ray-icon-cursor":e.cursor,"--ray-icon-color":e.color}));return{symbolId:t,cssVars:n,iconClick:l=>{const{onClick:o}=e;o&&D(o,l)}}},render(){return r("span",{class:["ray-icon",this.customClassName],style:[this.cssVars],onClick:this.iconClick.bind(this)},[r("svg",{RayIconAttribute:"ray-icon",ariaHidden:!0},[r("use",F({"xlink:href":this.symbolId},{fill:this.color}),null)])])}}),Yl={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}},Zr=M({name:"RIframe",props:Yl,setup(e,{expose:t}){const n=w(()=>({"--ray-iframe-frameborder":B(e.frameborder),"--ray-iframe-width":B(e.width),"--ray-iframe-height":B(e.height)})),a=ie("iframeRef"),l=I(!0),o=s=>{l.value=!1;const{onSuccess:c}=e;c&&D(c,a.value,s)},i=s=>{l.value=!1;const{onError:c}=e;c&&D(c,s)};return Le(a,"load",o),Le(a,"error",i),t({iframeInst:a}),{cssVars:n,iframeRef:a,spinShow:l}},render(){return r("div",{class:["ray-iframe",this.iframeWrapperClass],style:[this.cssVars]},[r(ot,F(this.customSpinProps,{show:this.spinShow}),{...this.$slots,default:()=>r("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)})])}}),Xl={...no,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}},Jl=(e,t,n)=>{const{scheduler:a}=n??{};return new Promise(l=>{setTimeout(()=>{const o=t==="card"?".n-card-header__main":".n-dialog__title";if(e){const i=Ut(e).draggable({inertia:!0,autoScroll:!0,allowFrom:o,modifiers:[Ut.modifiers.restrictRect({restriction:"parent",endOnly:!0})],listeners:{move:s=>{a==null||a(s)}}}).resizable(!1);l(i)}},30)})},Pn=(e,t)=>{const n=typeof e=="string"?document.querySelector(e):e;return new Promise((a,l)=>{if(n){n.setAttribute("can-drag","true");const{preset:o,dargCallback:i}=t;let{x:s,y:c}=t;Jl(n,o,{scheduler:d=>{const p=d.target;s+=d.dx,c+=d.dy,p.style.transform=`translate(${s}px, ${c}px)`,i==null||i(s,c,d)}}).then(d=>{a(d)})}else l()})},Zl="r-modal__preset-card--fullscreen",kn="r-modal",Te={width:"--r-modal-width",cardWidth:"--r-modal-card-width",dialogWidth:"--r-modal-dialog-width"},Qr=M({name:"RModal",props:Xl,setup(e){const t=w(()=>({[Te.width]:B(e.width??600),[Te.cardWidth]:B(e.cardWidth??600),[Te.dialogWidth]:B(e.dialogWidth??446)})),n=Je();let a;const l={x:0,y:0},o=w(()=>e.preset==="card"&&e.fullscreen);return he(()=>e.show,i=>{i&&e.dad&&(e.preset==="card"||e.preset==="dialog")?q(()=>{const s=document.getElementById(n);s&&Pn(s,{preset:e.preset,x:l.x,y:l.y,dargCallback:(c,d)=>{l.x=c,l.y=d}}).then(c=>{a=c}),e.memo&&s&&(s.style.transform=`translate(${l.x}px, ${l.y}px)`)}):(a==null||a.unset(),a=null)},{immediate:!0}),{cssVars:t,isFullscreenCardType:o,uuidEl:n}},render(){const{$props:e,$slots:t,$attrs:n}=this,{preset:a,...l}=e,{cssVars:o,uuidEl:i,isFullscreenCardType:s}=this;return r(on,F({class:[kn,s?Zl:""],style:[o,s?"height: 100vh":""],preset:a},{id:i},l,n),{...t})}}),ei=()=>{const{create:e,destroyAll:t}=oo();return{create:a=>{const{content:l,...o}=a;let i=l;o.preset==="card"&&o.fullscreen&&(i=()=>at(xt,{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 l=="function"?l():l}));const{preset:s,dad:c,fullscreen:d,width:p,cardWidth:h,dialogWidth:S}=a,g=e({...o,content:i}),{key:m}=g,_={[Te.width]:B(p??600),[Te.cardWidth]:B(h??600),[Te.dialogWidth]:B(S??446)};return q(()=>{const[f]=Ze(`[internalkey="${m}"]`)||[];if(f){if(c&&Pn(f,{preset:s,x:0,y:0}),d&&s==="card"){const b=f.querySelector(".n-card__content");b&&qe(b,{maxHeight:"calc(100vh - 9px - var(--n-padding-bottom) - var(--n-padding-bottom) - var(--n-padding-top))",overflowY:"hidden",padding:"0"}),qe(f,{width:"100%",height:"100vh"})}qe(f,_),_n(f,kn)}}),g},destroyAll:t}},Ql={...ao,icon:{type:String,default:"more"},iconSize:{type:Number,default:14},cursor:{type:String,default:"default"}};function es(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ne(e)}const xn=M({name:"RMoreDropdown",props:Ql,render(){let e;const{iconSize:t,cursor:n,icon:a}=this,{default:l}=this.$slots;return r(Oe,F(this.$props,this.$attrs,{placement:"bottom-start"}),es(e=ge(l,{defaultElement:r(k,{name:a,size:t,cursor:n},null)}))?e:{default:()=>[e]})}}),Ae={...lo,tableFlexHeight:{type:[String,Number],default:void 0},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:!0},bordered:{type:Boolean,default:!0},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}},ee={tableIconSize:"18",tableKey:Symbol("r-table")},ts=[{label:"斑马条纹",value:"striped"},{label:"表格边框",value:"bordered"}],ns=M({name:"TableSizeSelect",props:{onChangeSize:{type:[Function,Array],default:null},...Ae},setup(e){return{size:I(e.size),sizeOptions:[{label:"默认",value:"medium"},{label:"紧凑",value:"small"},{label:"宽松",value:"large"}],updatePopselectValue:l=>{const{onChangeSize:o}=e;o&&D(o,l)}}},render(){return r(an,{value:this.size,"onUpdate:value":e=>this.size=e,options:this.sizeOptions,trigger:"click",onUpdateValue:this.updatePopselectValue.bind(this)},{default:()=>[r(k,{name:"adjustment",size:ee.tableIconSize,cursor:"pointer"},null)]})}}),os=M({name:"TableFullscreen",setup(){const{wrapperRef:e}=fn(ee.tableKey,{}),[t,{toggleFullscreen:n,isEnabled:a}]=hn(e);return{toggleFullscreen:n,isEnabled:a}},render(){const{toggleFullscreen:e,isEnabled:t,$t:n}=this;return r(k,{name:"fullscreen",size:ee.tableIconSize,cursor:"pointer",onClick:()=>{t||window.$message.warning(n("globalMessage.isEnabledFullscreen")),e()}},null)}}),as=()=>r(k,{name:"draggable",size:14,cursor:"grab"},null),Ht=({icon:e,title:t,onClick:n,customClassName:a})=>r(Ie,{showArrow:!1},{trigger:()=>r(k,{name:e,size:ee.tableIconSize,cursor:"pointer",customClassName:a,onClick:n==null?void 0:n.bind(null)},null),default:()=>t}),Rt=(e,t)=>{if(!t)return[null,null];for(let n=0;nHe(e.columns).filter(c=>c.type?(t=c,!1):!0).map((c,d)=>{const{key:p,title:h,children:S,fixed:g,isResizable:m,..._}=c,f=g==="left",b=g==="right",u={..._,title:h,key:p,fixed:g,isLeftFixedActivated:f,isRightFixedActivated:b,isResizable:m};return{...u,suffix:()=>r(E,{style:"padding-left: 32px;"},{default:()=>[r(Ht,{icon:"row_head",title:"固定在列首",customClassName:f?ft:"",onClick:o.bind(this,"left",u,d)},null),r(Ie,{showArrow:!1},{trigger:()=>r(k,{name:"resize_h",size:ee.tableIconSize,cursor:"pointer",customClassName:m?ft:"",onClick:l.bind(this,u,d)},null),default:()=>"修改列宽"}),r(Ht,{icon:"row_end",title:"固定在列尾",customClassName:b?ft:"",onClick:o.bind(this,"right",u,d)},null)]})}}),set:()=>{}}),a=s=>{const{onUpdateColumn:c}=e;c&&D(c,s)},l=(s,c)=>{s.isResizable=!s.isResizable,s.resizable=s.isResizable,n.value[c]=s,a(n.value)},o=(s,c,d)=>{const p=`${s}FixedActivated`,h=`${s==="left"?"right":"left"}FixedActivated`;c[h]=!1,c[p]=!c[p],c[p]?c.fixed=s:c.fixed=void 0,n.value[d]=c,a(n.value)};return{treeDataSource:n,treeDrop:({node:s,dragNode:c,dropPosition:d})=>{const[p,h]=Rt(c,n.value);if(p===null||h===null)return;p.splice(h,1);const[S,g]=Rt(s,n.value);S===null||g===null||(d==="before"?S.splice(g,0,c):S.splice(g+1,0,c),nn(t)||S.unshift(t),a(S))}}},render(){return r(Ie,{displayDirective:"show",trigger:"click",showArrow:!1},{trigger:()=>r(k,{name:"setting",size:ee.tableIconSize,cursor:"pointer",customClassName:"r-table__setting"},null),default:()=>r(so,{class:"r-table__c-tree",data:this.treeDataSource,blockLine:!0,draggable:!0,keyboard:!1,labelField:"title",selectable:!1,renderSwitcherIcon:as.bind(this),onDrop:this.treeDrop.bind(this)},null)})}}),ss=M({name:"TablePrint",props:Ae,setup(e){const{wrapperRef:t}=fn(ee.tableKey,{});return{printTableClick:()=>{const{printTableOptions:{printOptions:a={},domToImageOptions:l}={},title:o}=e;(a.documentTitle===""||a.documentTitle===void 0||a.documentTitle===null)&&(a.documentTitle=typeof o=="string"?o:""),Sn(t,{printOptions:a,domToImageOptions:l})}}},render(){return r(k,{name:"print",size:ee.tableIconSize,cursor:"pointer",onClick:this.printTableClick.bind(this)},null)}}),rs=M({name:"TablePropsSelect",props:{...Ae,onPopselectChange:{type:[Function,Array],default:null},onInitialed:{type:[Function,Array],default:null}},setup(e){const t=I(!1),n=I([]),a=o=>{const{onPopselectChange:i}=e;i&&D(i,o)};return(()=>{const{striped:o,bordered:i,onInitialed:s}=e;o&&n.value.push("striped"),i&&n.value.push("bordered"),s&&D(s,n.value)})(),{propsPopselectValue:n,popoverShow:t,updatePopselectValue:a}},render(){return r(an,{value:this.propsPopselectValue,"onUpdate:value":e=>this.propsPopselectValue=e,options:ts,trigger:"click",multiple:!0,onUpdateValue:this.updatePopselectValue.bind(this)},{default:()=>[r(k,{name:"expanded",size:ee.tableIconSize,cursor:"pointer",style:"transform: rotate(270deg);"},null)]})}});function is(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ne(e)}const cs=M({name:"RTable",inheritAttrs:!1,props:Ae,setup(e,t){const{expose:n,emit:a}=t,l=ie("rTableInst"),o=ie("wrapperRef"),i=Je(16),s=Je(16),c=te({x:0,y:0,showContextMenu:!1}),d=te({size:e.size}),p=I(Object.assign({striped:!1,bordered:!1},ze(e,"striped","bordered"))),h=(u,v)=>{const{onContextMenuClick:R}=e;R&&D(R,u,v),c.showContextMenu=!1},S=(u,v)=>{var C;return{...(C=e.rowProps)==null?void 0:C.call(e,u,v),onContextmenu:e.disabledContextMenu?void 0:y=>{y.preventDefault(),c.showContextMenu=!1,q().then(()=>{c.showContextMenu=!0,c.x=y.clientX,c.y=y.clientY})}}},g=u=>{d.size=u},m=u=>{const{onUpdateColumns:v,"onUpdate:columns":R}=e;v&&D(v,u),R&&D(R,u)},_=()=>{const{toolOptions:u}=e;return u==null?void 0:u.filter(Boolean).map(v=>typeof v=="function"?v():v)},f=u=>{Object.keys(p.value).forEach(R=>{p.value[R]=u.includes(R)})},b=u=>{const{tool:v}=u;if(!v)return;const R=()=>r(E,{align:"center"},{default:()=>[r(ss,u,null),r(ns,F(u,{onChangeSize:g.bind(this)}),null),r(os,null,null),r(ls,F(u,{onUpdateColumn:m.bind(this)}),null),r(rs,F(u,{onPopselectChange:f.bind(this),onInitialed:f.bind(this)}),null)]});return e.toolOptions?e.coverTool?()=>{let C;return r(E,{align:"center"},is(C=_())?C:{default:()=>[C]})}:()=>r(E,{align:"center"},{default:()=>[R(),_()]}):R};return Ee(()=>{const{onRegister:u}=e;u&&l.value&&D(u,l.value,{uuidTable:s,uuidWrapper:i,wrapperRef:o})}),Eo(ee.tableKey,{uuidTable:s,uuidWrapper:i,wrapperRef:o}),n(),{uuidWrapper:i,uuidTable:s,contextMenuReactive:c,rTableInst:l,combineRowProps:S,contextMenuSelect:h,privateReactive:d,tool:b,wrapperRef:o,propsPopselectValue:p}},render(){const{$props:e,$attrs:t,$slots:n,uuidTable:a,contextMenuReactive:l,uuidWrapper:o,privateReactive:i,propsPopselectValue:s}=this,{class:c,...d}=t,{tool:p,combineRowProps:h,contextMenuSelect:S}=this,{renderWrapperHeader:g,wrapperBordered:m,disabledContextMenu:_,contextMenuOptions:f,title:b,tableFlexHeight:u,cardProps:v,...R}=e;return r(nt,F(v,{id:o},d,{ref:"wrapperRef",bordered:m,class:c}),{default:()=>r(gn,null,[r(ro,F({id:a},R,s,{rowProps:h.bind(this),size:i.size,ref:"rTableInst",style:{height:u!=null?B(u):null}}),{...n}),_?null:r(Oe,{show:l.showContextMenu,placement:"bottom-start",trigger:"manual",x:l.x,y:l.y,options:f,onClickoutside:()=>l.showContextMenu=!1,onSelect:S.bind(this)},null)]),header:g?ge(b,{defaultElement:r("div",{style:"display: none;"},null)}):null,"header-extra":p(e),footer:()=>{var C;return(C=n.tableFooter)==null?void 0:C.call(n)},action:()=>{var C;return(C=n.tableAction)==null?void 0:C.call(n)}})}}),us=()=>{const e=I();let t={};const n=(g,m)=>{g&&(e.value=g,t=m)},a=()=>{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:a,clearFilters:()=>a().clearFilters.call(null),clearSorter:()=>a().clearSorter.call(null),downloadCsv:g=>a().downloadCsv.call(null,g),filters:g=>a().filters.call(null,g),page:g=>a().page.call(null,g),scrollTo:g=>a().scrollTo(g),sort:(g,m)=>a().sort.call(null,g,m),print:g=>{const{uuidWrapper:m}=t;if(m){const _=document.getElementById(m);Sn(_,g)}},filter:g=>a().filter.call(null,g)}]},Mn=(e,t,n)=>{var a;if(e.length)for(const l of e){if(l[t]===n)return l;if((a=l==null?void 0:l.children)!=null&&a.length){const o=Mn(l.children,t,n);if(o)return o}}},Yt=e=>{const t=Z(e);return t?t.findIndex(a=>{const{type:l,multiple:o}=a;if(l==="selection"&&(o==null||o===!0))return!0})!==-1:!0},ds=(e,t,n,a)=>{const l=Z(e);return l?t.reduce((o,i)=>{const s=Z(n).findIndex(d=>d[a]===i);if(s!==-1)return o.push(Z(n)[s]),o;const c=l.findIndex(d=>d[a]===i);return c!==-1&&o.push(l[c]),o},[]):n},ti=(e,t,n)=>{const a=I([]),l=I([]),{rowKey:o="key",onChange:i}=n||{},s=w(()=>Yt(t)),c=(m,_,f)=>{a.value=m,l.value=Z(ds(e,m,l,o)),i==null||i(m,l.value,f),Yt(t)},d=()=>a.value,p=()=>l.value,h=()=>{a.value=[],l.value=[],i==null||i(a.value,l.value,{row:void 0,action:"uncheckAll"})},S=m=>{if(m==null)return;let _;a.value=a.value.filter(f=>f!==m),l.value=l.value.filter(f=>f[o]===m?(_=f,!1):!0),i==null||i(a.value,l.value,{row:_,action:"uncheck"})},g=m=>{if(a.value.includes(m))return;const _=!s.value&&a.value.length>=1,f=Mn(Z(e)||[],o,m);_?a.value=[m]:a.value.push(m),f&&(_?l.value=[f]:l.value.push(f),i==null||i(a.value,l.value,{row:f,action:"check"}))};return It(()=>{h()}),[a,{checkedRows:l,checkedRowKeysBind:c,getKeys:d,getRows:p,clearAll:h,clearKey:S,selectKey:g}]},ps={transitionPropName:"fade",transitionMode:"out-in",transitionAppear:!0},ms=M({name:"RTransitionComponent",__name:"index",props:Do({transitionPropName:{},transitionMode:{},transitionAppear:{type:Boolean}},ps),setup(e){const{getKeepAliveInclude:t}=ks(),{getKeepAliveConfig:n}=$();return(a,l)=>{const o=No("RouterView");return be(),jo("div",null,[r(o,null,{default:pt(({Component:i,route:s})=>[i?(be(),xe(Ma,{key:0,name:a.transitionPropName,mode:a.transitionMode,appear:a.transitionAppear},{default:pt(()=>[(be(),xe(Fo,null,{default:pt(()=>[Z(n).setupKeepAlive?(be(),xe(Bo,{key:0,max:Z(n).maxKeepAliveLength,include:Z(t),exclude:Z(n).keepAliveExclude},[(be(),xe($t(i),{key:s.fullPath}))],1032,["max","include","exclude"])):(be(),xe($t(i),{key:s.fullPath}))]),_:2},1024))]),_:2},1032,["name","mode","appear"])):Vo("",!0)]),_:1})])}}}),fs=M({name:"RForm",props:Rn,setup(e,{expose:t}){const n=ie("formRef");return Ee(()=>{const{onRegister:a}=e;a&&n.value&&D(a,n.value)}),t(),{formRef:n}},render(){const{$attrs:e,$props:t,$slots:n}=this;return r(ln,F(e,t,{ref:"formRef"}),{...n})}}),ni=(e,t)=>{const n=I(),a=d=>{d&&(n.value=d)},l=()=>{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[a,{getFormInstance:l,validate:(d,p)=>l().validate.call(null,d,p),restoreValidation:()=>l().restoreValidation.call(null),formModel:()=>He(e)||{},formRules:()=>He(t)||{}}]},gs=["addTabClass","addTabStyle","paneClass","paneStyle","paneWrapperStyle","tabClass","tabStyle","type","label","addable","closable","onAdd","onClose","placement","animated","justifyContent","builtinThemeOverrides","displayDirective"],hs={tabPaddingSmallSegment:"4px 7px",tabPaddingMediumSegment:"6px 11px",tabPaddingLargeSegment:"8px 11px"},vs=tt({...io,options:{type:Array,default:()=>[]},width:{type:[Number,String],default:"fitContent"}},...gs);function ys(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ne(e)}const At=e=>{const{icon:t,label:n}=e;return t?r(E,{align:"center",wrap:!1,size:"small"},{default:()=>{var a;return[(a=ge(t))==null?void 0:a(),r("div",null,[n])]}}):n},bs=e=>{if(typeof e.popover=="string")return r(Ie,null,{trigger:()=>At(e),default:()=>e.popover});if(ce(e.popover,"Object")){const{popover:t}=e,{label:n,...a}=t;return r(Ie,a,{trigger:()=>At(e),default:()=>n})}},_s=M({name:"RSegment",props:vs,setup(e,{expose:t}){const n=w(()=>{const{width:a}=e;let l="";switch(a){case"block":l="100%";break;case"fitContent":l="fit-content";break;default:l=typeof a=="number"?B(a):"fit-content"}return{"--r-segment-width":l}});return t(),{cssVars:n}},render(){let e;const{$props:t,options:n,cssVars:a,themeOverrides:l}=this;return r(uo,F(t,{ref:"segmentRef",style:[a],class:"r-segment",type:"segment",animated:!0,themeOverrides:Object.assign({},hs,l)}),ys(e=n.map(o=>r(co,{key:o.key,name:o.key,tab:o.popover?bs(o):At(o),disabled:o.disabled},{...o.slots})))?e:{default:()=>[e]})}}),Ss={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]}},oi=M({name:"RBarcode",props:Ss,setup(e){const t=ie("barcodeRef"),n=w(()=>({"--r-barcode-width":B(e.width),"--r-barcode-height":B(e.height)}));let a;const l=()=>{try{const{format:o,text:i,options:s,onSuccess:c}=e,d=Object.assign({},s,{format:o});Ko(t.value,i!=null?i.toString():"",d),c&&D(c,i,o,s)}catch(o){const{onError:i}=e;i&&D(i,o)}finally{const{onFinally:o}=e;o&&D(o)}};return ve(()=>{e.watchText?a=he(()=>e.text,l):a==null||a()}),Ee(()=>{l()}),mn(()=>{a==null||a()}),{barcodeRef:t,cssVars:n}},render(){const{barcodeRender:e,loading:t,cssVars:n}=this,a=["r-barcode",{"r-barcode--loading":t}];return r(ot,{class:"r-barcode-spin",show:t},{default:()=>[e==="canvas"?r("canvas",{class:a,style:n,ref:"barcodeRef"},null):r("svg",{class:a,style:n,ref:"barcodeRef"},null)]})}}),ws={...tt(Ae,["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}};function Cs(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ne(e)}const ai=M({name:"RTablePro",props:ws,setup(e){const[t,{clearFilters:n,clearSorter:a,downloadCsv:l,filters:o,page:i,scrollTo:s,sort:c,print:d,filter:p}]=us(),[h,{getPage:S,getPageSize:g,setCallback:m,setItemCount:_,resetPagination:f,getItemCount:b}]=mr(void 0,{prefix:A=>`共 ${A.itemCount} 条`}),u=w(()=>e.request),v=()=>({getItemCount:b,getPage:S,getPageSize:g}),R=()=>{const{onTablePaginationUpdate:A}=e;A&&D(A,v())},C=A=>{const O=Object.assign({},e.requestConfig,A),{params:P,formatRangeTime:j}=O;return j!=null&&j.length&&P&&j.forEach(U=>{const{key:Y,target:H}=U,ue=P[Y];if(ue&&(H!=null&&H.length)){const[X,Fe]=ue;P[H[0]]=X,P[H[1]]=Fe}else P[Y]=null,P[H[0]]=null,P[H[1]]=null}),Object.assign({},P,{page:S(),pageSize:g()})},y=A=>{var P;f();const O=C(A);(P=u.value)==null||P.call(u,O)},x=A=>{var P;const O=C(A);(P=u.value)==null||P.call(u,O)};return ve(()=>{_(e.paginationCount),m(()=>{const{manual:A}=e;A||x(),R()})}),Ee(()=>{const{onRegister:A}=e;A&&D(A,{getTablePagination:v,runTableRequest:y,clearFilters:n,clearSorter:a,downloadCsv:l,filters:o,page:i,scrollTo:s,sort:c,print:d,filter:p,getCurrentTableRequestParams:C})}),{register:t,paginationRef:h}},render(){const{register:e,$props:t,paginationRef:n,$slots:a}=this,{onRegister:l,showPagination:o,...i}=t;return r(cs,F(i,{onRegister:e,pagination:o?n:void 0}),Cs(a)?a:{default:()=>[a]})}}),li=()=>{const e=I(),t=m=>{m&&(e.value=m)},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: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,_)=>n().sort.call(null,m,_),getTablePagination:()=>n().getTablePagination.call(null),runTableRequest:m=>n().runTableRequest.call(null,m),print:m=>n().print.call(null,m),getCurrentTableRequestParams:m=>n().getCurrentTableRequestParams.call(null,m)}]},Ts=(e,t,n)=>!e||typeof e!="object"?!1:e[t]===n,zn=(e,t,n)=>{const a=[];if(Ts(e,t,n))return a.push(e),a;if(e.children&&e.children.length>0)for(const l of e.children){const o=zn(l,t,n);o.length>0&&a.push(e,...o)}return a},Os=(e,t,n)=>{const a=[];for(const l of e){const o=zn(l,t,n);o.length>0&&a.push(...o)}return a},Xt=e=>{const{breadcrumbLabel:t}=e;if(!t)return;const{sideBarLogo:n}=je(),a=n?n.title:"";document.title=t+" - "+a},Rs=e=>{const{meta:{icon:t}}=e;if(!t)return;if(ce(t,"Object"))return()=>t;const{menuConfig:n}=je(),{collapsed:a}=Lt(),l=at(k,{name:t,size:a?n.collapsedIconSize:n.iconSize,cursor:"pointer"},{});return()=>l},In=e=>{const{meta:{extra:t}}=e;if(!t)return;const{show:n}=t;if(n===!1)return;const{t:a}=De(),{label:l,icon:o,type:i,i18nLabel:s}=t,c={type:"primary",size:"small",round:!0,bordered:!1,strong:!0},d=()=>s?a(s):l||null,p=()=>o&&(s||l)||!o&&(s||l)?null:{"padding-right":"0"};if(ce(t,"Object"))return()=>at(po,{...c,type:i||"primary",style:p()},{default:()=>d(),icon:()=>o})},Jt=()=>{const{getRootPath:e}=Pe();return Xe(G.appMenuKey,"sessionStorage",{defaultValue:e.value})},Ln=()=>Fl(Dl()),As=()=>Nl(Ln()),Pt=["redirect","breadcrumbLabel","children","key","meta","name","path","show","fullPath"];let Ke;const En=(e,t)=>{var n;if(Ke&&Kt(Ke.fullPath,t))return Ke;for(const a of e){if(Kt(a.fullPath,t))return Ke=a,a;if((n=a.children)!=null&&n.length){En(a.children,t);continue}}},Lt=lt("menu",()=>{const{push:e,getRoutes:t}=st(),n=sa(),{t:a}=De(),{setKeepAliveInclude:l}=xs(),o=te({menuKey:Jt(),options:[],collapsed:!1,menuTagOptions:[],breadcrumbOptions:[],currentMenuOption:null}),i=I(!0),s=(u,v,R)=>{vn(o,u,v,R)},c=u=>{const{meta:v}=u,{i18nKey:R,noLocalTitle:C}=v,y=w(()=>R?a(`${R}`):C),x={...u,key:u.fullPath,label:()=>at(sn,null,{default:()=>y.value}),breadcrumbLabel:y.value},A=Object.assign({},x,{icon:Rs(u),extra:In(u)});return u.fullPath===Jt()&&(o.currentMenuOption=A),A.show=On(A),A},d=u=>{o.breadcrumbOptions=Os(o.options,"fullPath",u)},p=(u,v=!0)=>{const C=Array.isArray(u)?[...u]:[u];v?o.menuTagOptions.push(...C):o.menuTagOptions=C},h=(u,v)=>{o.menuTagOptions.find(C=>C.fullPath===u)||o.menuTagOptions.push(v)},S=(u,v,R)=>{const{meta:C}=v;if(C.windowOpen)window.open(C.windowOpen);else{e({path:String(u),query:R});const{sameLevel:y}=C;if(l(v),Xt(v),!y)h(u,v),d(u),o.menuKey=u,o.currentMenuOption=v,zt(G.appMenuKey,u);else{const x=ze(c(v),Pt);o.breadcrumbOptions.find(O=>O.key===x.key)||o.breadcrumbOptions.push({...x,fullPath:String(x.key)})}}},g=async(u,v)=>{const[R]=u.split("?"),C=t().find(y=>y.path===R);if(!((C==null?void 0:C.path)==="/"||!(C!=null&&C.path)||(C==null?void 0:C.path)==="/login")&&C){const y=ze(C,Pt);S(R,c({...y,fullPath:y.path}),v)}},m=()=>new Promise(u=>{const v=(R,C)=>{var x;const y=[];for(const A of R){let O=`${C.endsWith("/")?C:C+"/"}${A.path}`;if(O=O.replace(/\/+/g,"/"),(x=A.children)!=null&&x.length)A.children=v(A.children,O);else if(!Fn(A.meta))continue;y.push(c({...A,fullPath:O}))}return y};if(o.options=v(Ln(),""),o.currentMenuOption){const{currentMenuOption:R}=o;o.breadcrumbOptions.length||d(R.key),h(R.fullPath,R),Xt(R)}u()}),_=u=>o.collapsed=u,f=(u,v=1)=>o.menuTagOptions.splice(u,v),b=async()=>{i.value&&(await m(),i.value=!1)};return he(()=>n.fullPath,async(u,v)=>{await b(),u!==v&&await g(u,n.query)},{immediate:!0}),{...Re(o),changeMenuModelValue:S,collapsedMenu:_,spliceMenTagOptions:f,setMenuTagOptions:p,resolveOption:c,updateMenuState:s}},{persist:{key:G.appPiniaMenuStore,storage:window.localStorage,pick:["breadcrumbOptions","menuKey","menuTagOptions","collapsed"]}}),Dn=lt("signing",()=>{const e=te({signingCallback:{}}),t=l=>new Promise((o,i)=>{nn(l)?i({code:1,message:"登陆失败",data:null}):(e.signingCallback={role:"admin",name:l.name,avatar:"https://avatars.githubusercontent.com/u/51957438?v=4"},o({code:0,message:"登陆成功",data:e.signingCallback}))}),n=l=>{const{closeAll:o}=$n(),{appPiniaMenuStore:i,appPiniaSigningStore:s,token:c,signing:d,appMenuKey:p}=G;window.$message.info("账号退出中..."),_e("__all_sessionStorage__","sessionStorage"),_e(s,"localStorage"),_e(i,"localStorage"),_e(c,"localStorage"),_e(d,"localStorage"),_e(p,"localStorage"),o(),l&&(window.location.replace("#/"),setTimeout(()=>{window.location.reload()},0))},a=()=>{n(!0)};return{...Re(e),signing:t,logout:a,clearSigningCallback:n}},{persist:{key:G.appPiniaSigningStore,pick:["signingCallback"],storage:window.localStorage}}),jn=lt("keepAlive",()=>{const e=te({keepAliveInclude:[]}),t=()=>e.keepAliveInclude.length,n=l=>{const o=t(),{name:i,meta:{keepAlive:s}}=l,{maxKeepAliveLength:c}=je().keepAliveConfig;if(s){if(o=c&&(e.keepAliveInclude.splice(0,1),e.keepAliveInclude.push(i))}},a=()=>e.keepAliveInclude;return{...Re(e),setKeepAliveInclude:n,getKeepAliveInclude:a}},{persist:{key:G.appPiniaKeepAliveStore,storage:window.sessionStorage,pick:["keepAliveInclude"]}}),ye=()=>{const e=Lt(),t=w(()=>e.options),n=w(()=>e.breadcrumbOptions),a=w(()=>e.menuKey),l=w(()=>{const{getRootPath:s}=Pe();return e.menuTagOptions.map((c,d,p)=>(c.key===a.value&&c.key!==s.value?c.closeable=!0:c.closeable=!1,c.key===s.value&&(c.closeable=!1),p.length<=1&&(c.closeable=!1),c))}),o=w(()=>e.currentMenuOption),i=w(()=>e.collapsed);return{getMenuOptions:t,getBreadcrumbOptions:n,getMenuKey:a,getMenuTagOptions:l,getCurrentMenuOption:o,getCollapsed:i}},Ne=()=>{const{changeMenuModelValue:e,collapsedMenu:t,spliceMenTagOptions:n,setMenuTagOptions:a,resolveOption:l,updateMenuState:o}=Lt();return{changeMenuModelValue:e,collapsedMenu:t,spliceMenTagOptions:n,setMenuTagOptions:a,resolveOption:l,updateMenuState:o}},$=()=>{const e=je(),t=w(()=>e.drawerPlacement),n=w(()=>e.primaryColorOverride),a=w(()=>e._appTheme),l=w(()=>e.appTheme),o=w(()=>e.menuTagSwitch),i=w(()=>e.breadcrumbSwitch),s=w(()=>e.localeLanguage),c=w(()=>e.lockScreenSwitch),d=w(()=>e.copyrightSwitch),p=w(()=>e.contentTransition),h=w(()=>e.watermarkSwitch),S=w(()=>e.watermarkConfig),g=w(()=>e.appRootRoute),m=w(()=>e.sideBarLogo),_=w(()=>e.keepAliveConfig),f=w(()=>e.menuConfig);return{getDrawerPlacement:t,getPrimaryColorOverride:n,getAppTheme:a,getMenuTagSwitch:o,getBreadcrumbSwitch:i,getLocaleLanguage:s,getLockScreenSwitch:c,getCopyrightSwitch:d,getContentTransition:p,getWatermarkSwitch:h,getWatermarkConfig:S,getAppRootRoute:g,getSideBarLogo:m,getKeepAliveConfig:_,getMenuConfig:f,getAppThemeStr:l}},K=()=>{const{updateLocale:e,changePrimaryColor:t,updateSettingState:n}=je();return{updateLocale:e,changePrimaryColor:t,updateSettingState:n}},Nn=()=>{const e=Dn();return{getSigningCallback:w(()=>e.signingCallback)}},Ps=()=>{const{signing:e,logout:t,clearSigningCallback:n}=Dn();return{signing:e,logout:t,clearSigningCallback:n}},ks=()=>{const e=jn();return{getKeepAliveInclude:w(()=>e.keepAliveInclude)}},xs=()=>{const{setKeepAliveInclude:e,getKeepAliveInclude:t}=jn();return{setKeepAliveInclude:e,getKeepAliveInclude:t}},si=e=>{const t=Qo();e.use(t),t.use(Zo)},Fn=e=>{const{getSigningCallback:t}=Nn(),{role:n}=e;return $e!=null&&$e.length&&$e.includes(t.value.role)||!n||!(n!=null&&n.length)?!0:n?n.includes(t.value.role):!0},Ms=e=>{const{setupRouterLoadingBar:t,setupRouterGuard:n}=$a;t&&$l(e),n&&Bl(e)},zs=I(),Is=M({name:"SiderBarLogo",props:{collapsed:{type:Boolean,required:!0}},setup(){const e=st(),{getSideBarLogo:t}=$();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:l})=>{if(!t.value)return null;if(typeof t.value.icon=="string")return r(k,{name:t.value.icon,size:"30",cursor:l},null);if(ce(t.value.icon,"Object"))return ge(t.value.icon)}}},render(){const{sideBarLogo:e,collapsed:t,TemplateLogo:n,sideBarLogoClick:a}=this;return e!=null&&e.title?r("div",{class:["ray-menu__logo",e!=null&&e.url?"ray-menu__logo-url":null],onClick:a.bind(this),ref:zs},[e!=null&&e.icon?t?r(Ye,{placement:"right"},{trigger:()=>n({cursor:"pointer"}),default:()=>e.title}):n({cursor:"pointer"}):t?r(Ye,{placement:"right"},{trigger:()=>{var l;return r("h1",{class:"n-menu-item-content"},[((l=e.title)==null?void 0:l[0])||null])},default:()=>e.title}):null,r(mo,{class:[t?null:"ray-menu__logo-title--open","ray-menu__logo-title",'class="n-menu-item-content"'],type:"primary",size:18},{default:()=>[r(sn,null,{default:()=>[e.title]})]})]):null}}),Ls=M({name:"AppMenu",setup(){const e=I(null),{changeMenuModelValue:t,collapsedMenu:n,updateMenuState:a}=Ne(),{getMenuConfig:l}=$(),{getMenuOptions:o,getCollapsed:i,getMenuKey:s}=ye(),c=w({get:()=>(q().then(()=>{h()}),s.value),set:()=>{d.value&&re("globalDrawerValue",!1)}}),{isTabletOrSmaller:d}=it({observer:g=>{g&&a("collapsed",!1)}}),p=w({get:()=>rt("globalDrawerValue").value,set:g=>{re("globalDrawerValue",g)}}),h=()=>{const g=c.value;g!=null&&q(()=>{var m,_;return(_=(m=e.value)==null?void 0:m.showOption)==null?void 0:_.call(m,g)})};return{isTabletOrSmaller:d,BasicMenu:()=>r(go,{class:"app-menu__sider",showTrigger:!d.value,collapseMode:l.value.collapsedMode,collapsedWidth:l.value.collapsedWidth,onUpdateCollapsed:n.bind(this),nativeScrollbar:!1,ref:Cn,collapsed:i.value,onExpand:()=>{a("collapsed",!1)},onCollapse:()=>{a("collapsed",!0)}},{default:()=>[l.value.menuSiderBarLogo?r(Is,{collapsed:i.value},null):null,r(fo,{ref:e,class:"r-menu--app",keyField:"fullPath",value:c.value,"onUpdate:value":g=>c.value=g,options:o.value,indent:l.value.collapsedIndent,collapsed:i.value,collapsedIconSize:l.value.collapsedIconSize,collapsedWidth:l.value.collapsedWidth,onUpdateValue:(g,m)=>{t(g,m)},accordion:l.value.accordion,iconSize:l.value.iconSize},null)]}),modelGlobalDrawerValue:p}},render(){const{isTabletOrSmaller:e,BasicMenu:t}=this;return e?r(rn,{class:"app-menu__drawer",show:this.modelGlobalDrawerValue,"onUpdate:show":n=>this.modelGlobalDrawerValue=n,placement:"left",displayDirective:"show",autoFocus:!1},{default:()=>[r(t,null,null)]}):r(t,null,null)}});class Es{constructor(){jt(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:a}=t;return[a||"",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 a=this.generateRequestKey(t);if(this.pendingRequest.has(a))t.signal=(n=this.pendingRequest.get(a))==null?void 0:n.signal;else{const l=new AbortController;t.signal=l.signal,this.pendingRequest.set(a,l)}}}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 gt={requestInstance:null,responseInstance:null},ht={implementRequestInterceptorArray:[],implementResponseInterceptorArray:[]},Ue={implementRequestInterceptorErrorArray:[],implementResponseInterceptorErrorArray:[]},Ds=new Es,ri=()=>{const e=(s,c)=>{c==="requestInstance"?gt.requestInstance=s:gt.responseInstance=s},t=s=>gt[s],n=(s,c,d)=>{d==="ok"?ht[s]=c:Ue[s]=c},a=(s,c)=>c==="ok"?ht[s]:Ue[s],l=(s,...c)=>{Array.isArray(s)&&s.forEach(d=>{typeof d=="function"&&d(...c)})};return{createAxiosInstance:e,setImplement:n,getImplement:a,getAxiosInstance:t,beforeFetch:(s,c,d)=>{const p=d==="ok"?ht[c]:Ue[c],h=t(s),{MODE:S}=Ot();h&&l(p,h,S)},fetchError:(s,c,d)=>{const p=Ue[d],{MODE:h}=Ot();l(p,c,h)}}},js=M({name:"AppRequestCancelerProvider",setup(e,{expose:t}){ra(()=>{Ds.cancelAllRequest()}),t()},render(){return r("div",{class:"app-style-provider"},null)}}),Bn=M({name:"LayoutContentWrapper",setup(){st();const{maximize:e}=Vn(),{getContentTransition:t}=$(),n=I(!1),a={opacitySpinning:"0"},{globalMainLayoutLoad:l,layoutContentMaximize:o,layoutContentSpinning:i}=Ua();return{globalMainLayoutLoad:l,spinning:n,themeOverridesSpin:a,getContentTransition:t,layoutContentMaximize:o,maximize:e,layoutContentSpinning:i}},render(){const{globalMainLayoutLoad:e,layoutContentMaximize:t,layoutContentSpinning:n,maximize:a,spinning:l,themeOverridesSpin:o,getContentTransition:i}=this;return r(ot,{show:l||!e||n,description:"loading...",size:"large",themeOverrides:o,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?r("div",{class:"layout-content__maximize-out",onClick:()=>{a(!1)}},[r(k,{name:"out",size:"16",cursor:"pointer"},null)]):null,r(js,null,null),e?r(ms,{class:"content-wrapper",transitionPropName:i+"-transform"},null):null]})}}),Ns=Object.freeze(Object.defineProperty({__proto__:null,default:Bn},Symbol.toStringTag,{value:"Module"}));var Fs={pkg:{dependencies:{"@vueuse/core":"^11.1.0",axios:"^1.7.5",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10",echarts:"^5.5.0","html-to-image":"1.11.11",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.40.1",pinia:"^2.2.4","pinia-plugin-persistedstate":"^4.1.1","print-js":"^1.6.0",vue:"^3.5.12","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:"5.0.1"},layout:{copyright:"Copyright © 2022-present Ray"},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const Bs=M({name:"LayoutFooterWrapper",setup(){const{layout:{copyright:e}}=Fs;return{copyright:e}},render(){return this.copyright?r("div",{class:"layout-footer-wrapper"},[this.copyright]):""}}),Vs=M({name:"TooltipIcon",props:{...ho,iconName:{type:String,required:!0},customClassName:{type:String,default:null},tooltipText:{type:String,default:null}},emits:["click"],setup(e,{emit:t}){const n=l=>{t("click",l)};return{iconClick:n,Icon:()=>r(k,{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?r(Ye,this.$props,{trigger:()=>r(e,null,null),default:()=>this.tooltipText}):r(e,null,null)}}),$s=M({name:"ThemeSegment",setup(){const{system:e}=dn(),{getAppThemeStr:t,getAppTheme:n}=$(),{updateSettingState:a}=K(),l=[{label:"深色",key:"dark",icon:()=>r(k,{name:"dark",size:"16"},null)},{label:"浅色",key:"light",icon:()=>r(k,{name:"light",size:"16"},null)},{label:"自动",key:"auto",icon:()=>r(k,{name:"system_os",size:"16"},null)}],o=w({get:()=>t.value==="auto"?"auto":n.value?"dark":"light",set:s=>{i(s,e.value)}}),i=(s,c)=>{if(s==="auto"){a("_appTheme",c==="dark"),a("appTheme","auto");return}a("_appTheme",s==="dark"),a("appTheme",s)};return ve(()=>{i(o.value,e.value)}),{options:l,modelAppTheme:o}},render(){const{options:e}=this;return r(_s,{options:e,size:"small",width:"block",value:this.modelAppTheme,"onUpdate:value":t=>this.modelAppTheme=t},null)}}),Ks={contentTransition:"scale",watermarkSwitch:!1,keepAliveConfig:{maxKeepAliveLength:10,setupKeepAlive:!0},menuConfig:{collapsedWidth:64,collapsedMode:"width",collapsedIconSize:16,collapsedIndent:24,accordion:!1,menuSiderBarLogo:!0,iconSize:16},menuTagSwitch:!0,breadcrumbSwitch:!0,copyrightSwitch:!0,drawerPlacement:"right"};function vt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ne(e)}const Us=M({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:a}=K(),{getAppTheme:l,getPrimaryColorOverride:o,getMenuTagSwitch:i,getBreadcrumbSwitch:s,getCopyrightSwitch:c,getContentTransition:d,getWatermarkSwitch:p,getKeepAliveConfig:h,getMenuConfig:S,getDrawerPlacement:g}=$(),m=w({get:()=>e.show,set:b=>{t("update:show",b)}}),_=w({get:()=>({getMenuTagSwitch:i.value,getBreadcrumbSwitch:s.value,getCopyrightSwitch:c.value,getContentTransition:d.value,getWatermarkSwitch:p.value,getKeepAliveConfig:h.value,getMenuConfig:S.value,getDrawerPlacement:g.value}),set:b=>{}});return{modelShow:m,changePrimaryColor:n,getAppTheme:l,getPrimaryColorOverride:o,updateSettingState:a,modelReactive:_,defaultSettingBtnClick:()=>{Jn(Ks,(b,u)=>{a(u,b)})}}},render(){let e,t,n;const{$t:a,changePrimaryColor:l,updateSettingState:o,defaultSettingBtnClick:i}=this;return r(rn,{show:this.modelShow,"onUpdate:show":s=>this.modelShow=s,placement:this.placement,width:this.width,trapFocus:!1,autoFocus:!1},{default:()=>[r(vo,{title:"系统配置"},{default:()=>[r(E,{class:"setting-drawer__space",vertical:!0},{default:()=>[r(oe,{titlePlacement:"center"},vt(e=a("headerSettingOptions.ThemeOptions.Title"))?e:{default:()=>[e]}),r($s,null,null),r(oe,{titlePlacement:"center"},vt(t=a("headerSettingOptions.ThemeOptions.PrimaryColorConfig"))?t:{default:()=>[t]}),r(yo,{swatches:Q.appThemeColors,value:this.getPrimaryColorOverride.common.primaryColor,"onUpdate:value":s=>this.getPrimaryColorOverride.common.primaryColor=s,onUpdateValue:l.bind(this)},null),r(oe,{titlePlacement:"center"},vt(n=a("headerSettingOptions.ContentTransition"))?n:{default:()=>[n]}),r(Bt,{value:this.modelReactive.getContentTransition,"onUpdate:value":s=>this.modelReactive.getContentTransition=s,options:ja,onUpdateValue:s=>{o("contentTransition",s)}},null),r(oe,{titlePlacement:"center"},{default:()=>[fe("抽屉位置")]}),r(Bt,{value:this.modelReactive.getDrawerPlacement,"onUpdate:value":s=>this.modelReactive.getDrawerPlacement=s,options:[{label:"右边",value:"right"},{label:"左边",value:"left"}],onUpdateValue:s=>{o("drawerPlacement",s)}},null),r(oe,{titlePlacement:"center"},{default:()=>[fe("系统设置")]}),r(bo,{labelPlacement:"left",column:1},{default:()=>[r(de,{label:"菜单页头"},{default:()=>[r(pe,{value:this.modelReactive.getMenuConfig.menuSiderBarLogo,"onUpdate:value":s=>this.modelReactive.getMenuConfig.menuSiderBarLogo=s,onUpdateValue:s=>o("menuConfig",{menuSiderBarLogo:s})},null)]}),r(de,{label:"菜单手风琴"},{default:()=>[r(pe,{value:this.modelReactive.getMenuConfig.accordion,"onUpdate:value":s=>this.modelReactive.getMenuConfig.accordion=s,onUpdateValue:s=>o("menuConfig",{accordion:s})},null)]}),r(de,{label:"页面缓存"},{default:()=>[r(pe,{value:this.modelReactive.getKeepAliveConfig.setupKeepAlive,"onUpdate:value":s=>this.modelReactive.getKeepAliveConfig.setupKeepAlive=s,onUpdateValue:s=>o("keepAliveConfig",{setupKeepAlive:s})},null)]}),r(de,{label:"多标签"},{default:()=>[r(pe,{value:this.modelReactive.getMenuTagSwitch,"onUpdate:value":s=>this.modelReactive.getMenuTagSwitch=s,onUpdateValue:s=>o("menuTagSwitch",s)},null)]}),r(de,{label:"面包屑"},{default:()=>[r(pe,{value:this.modelReactive.getBreadcrumbSwitch,"onUpdate:value":s=>this.modelReactive.getBreadcrumbSwitch=s,onUpdateValue:s=>o("breadcrumbSwitch",s)},null)]}),r(de,{label:"水印"},{default:()=>[r(pe,{value:this.modelReactive.getWatermarkSwitch,"onUpdate:value":s=>this.modelReactive.getWatermarkSwitch=s,onUpdateValue:s=>o("watermarkSwitch",s)},null)]}),r(de,{label:"页底信息"},{default:()=>[r(pe,{value:this.modelReactive.getCopyrightSwitch,"onUpdate:value":s=>this.modelReactive.getCopyrightSwitch=s,onUpdateValue:s=>o("copyrightSwitch",s)},null)]})]}),r(oe,{titlePlacement:"center"},{default:()=>[fe("菜单样式")]}),r(ln,{showFeedback:!0,showRequireMark:!1},{default:()=>[r(Ve,{label:"每级菜单缩进"},{default:()=>[r(ke,{value:this.modelReactive.getMenuConfig.collapsedIndent,"onUpdate:value":s=>this.modelReactive.getMenuConfig.collapsedIndent=s,min:0,precision:0,onUpdateValue:s=>{s!==null&&o("menuConfig",{collapsedIndent:s})}},null)]}),r(Ve,{label:"菜单图标尺寸"},{default:()=>[r(ke,{value:this.modelReactive.getMenuConfig.iconSize,"onUpdate:value":s=>this.modelReactive.getMenuConfig.iconSize=s,min:0,precision:0,onUpdateValue:s=>{s!==null&&o("menuConfig",{iconSize:s})}},null)]}),r(Ve,{label:"折叠菜单图标尺寸"},{default:()=>[r(ke,{value:this.modelReactive.getMenuConfig.collapsedIconSize,"onUpdate:value":s=>this.modelReactive.getMenuConfig.collapsedIconSize=s,min:0,precision:0,onUpdateValue:s=>{s!==null&&o("menuConfig",{collapsedIconSize:s})}},null)]}),r(Ve,{label:"折叠菜单宽度",showFeedback:!1},{default:()=>[r(ke,{value:this.modelReactive.getMenuConfig.collapsedWidth,"onUpdate:value":s=>this.modelReactive.getMenuConfig.collapsedWidth=s,min:0,precision:0,onUpdateValue:s=>{s!==null&&o("menuConfig",{collapsedWidth:s})}},null)]})]}),r(oe,{titlePlacement:"center"},{default:()=>[r(E,{wrap:!1,align:"center",size:[4,0]},{default:()=>[r(Ye,{placement:"top",showArrow:!1},{trigger:()=>r(k,{name:"question",size:"16"},null),default:()=>"当设置为【0】时,缓存将会失效"}),r(cn,null,{default:()=>[fe("最大缓存数")]})]})]}),r(ke,{value:this.modelReactive.getKeepAliveConfig.maxKeepAliveLength,"onUpdate:value":s=>this.modelReactive.getKeepAliveConfig.maxKeepAliveLength=s,showButton:!0,min:0,max:100,precision:0,disabled:!this.modelReactive.getKeepAliveConfig.setupKeepAlive},null),r(oe,{titlePlacement:"center"},{default:()=>[fe("操作")]}),r(E,null,{default:()=>[r(J,{type:"primary",block:!0,onClick:i},{default:()=>[fe("清除设置")]})]})]})]})]})}});function Ws(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ne(e)}const qs=M({name:"SiderBarBreadcrumb",setup(){const{changeMenuModelValue:e}=Ne(),{getBreadcrumbOptions:t}=ye(),{isTabletOrSmaller:n}=it();return{getBreadcrumbOptions:t,dropdownSelect:(o,i)=>{e(o,i)},breadcrumbItemClick:o=>{var i;if(!((i=o.children)!=null&&i.length)){const{meta:s={}}=o;s.sameLevel||e(o.fullPath,o)}},isTabletOrSmaller:n}},render(){let e;const{isTabletOrSmaller:t,getBreadcrumbOptions:n}=this,{dropdownSelect:a,breadcrumbItemClick:l}=this;return t?r("div",{style:"display: none;"},null):r(So,null,{default:()=>[r(za,{tag:"li",name:"breadcrumb",appear:!0},Ws(e=n.map(o=>r(_o,{key:o.fullPath,onClick:l.bind(this,o)},{default:()=>{var i;return[r(Oe,{labelField:"breadcrumbLabel",keyField:"fullPath",options:o.children&&((i=o.children)==null?void 0:i.length)>1?o.children:[],onSelect:a.bind(this)},{default:()=>r("span",null,[o.label&&typeof o.label=="function"?o.label():o.breadcrumbLabel])})]}})))?e:{default:()=>[e]})]})}});function yt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ne(e)}const Gs=M({name:"GlobalSearch",props:{show:{type:Boolean,default:!1}},emits:["update:show"],setup(e,{emit:t}){const{changeMenuModelValue:n,resolveOption:a}=Ne(),{getRoutes:l}=st(),o=w({get:()=>e.show,set:y=>{t("update:show",y),y||g()}}),i=te({searchValue:null,searchOptions:[]}),s=[{icon:["↑","↓"],label:"切换",plain:!0},{icon:["↵"],label:"选择",plain:!0},{icon:["esc"],label:"关闭",plain:!0}];let c=0,d=c;const{isTabletOrSmaller:p}=it(),h=I(!1),S="content-item--active",g=()=>{i.searchOptions=[],i.searchValue=null,c=0,d=c},m=y=>{o.value||(y.ctrlKey||y.metaKey)&&y.key==="k"&&(y.preventDefault(),y.stopPropagation(),g(),o.value=!0)},_=y=>{if(y)h.value=!0;else{h.value=!1,i.searchOptions=[];return}const x=l().reduce((A,O)=>{var U;const P=ze(O,["children","meta","path","name"]),j=a({...P,fullPath:O.path}),{breadcrumbLabel:V}=j;return(U=V==null?void 0:V.toLocaleLowerCase())!=null&&U.includes(y.toLocaleLowerCase())&&On(j)&&A.push(j),A},[]);setTimeout(()=>{i.searchOptions=x,q().then(()=>{b()}),h.value=!1},500)},f=y=>{if(y){const{meta:x}=y;x.windowOpen?window.open(x.windowOpen):(o.value=!1,n(y.fullPath,y),setTimeout(Go,300))}},b=()=>{const y=i.searchOptions[c],x=i.searchOptions[d];y&&q().then(()=>{const A=Ze(`attr:data_path="${y.path}"`),O=x?Ze(`attr:data_path="${x==null?void 0:x.path}"`):null;if(O!=null&&O.length){const[P]=O;Ho(P,S)}if(A!=null&&A.length){const[P]=A;_n(P,S)}})},u=y=>{const{icon:x}=y;return typeof x=="string"?r(k,{name:x,size:"24"},null):typeof x=="function"?()=>x:r(k,{name:"search",size:"24"},null)},v=y=>{y==="up"&&(c-=1,c<0&&(c=i.searchOptions.length-1)),y==="down"&&(c+=1,c>=i.searchOptions.length&&(c=0))},R=y=>{const x=y.key;switch((x==="ArrowUp"||x==="ArrowDown"||x==="Enter")&&(y.preventDefault(),y.stopPropagation()),d=c<=0?0:c,x){case"ArrowUp":v("up");break;case"ArrowDown":v("down");break;case"Enter":const A=i.searchOptions[c];A&&f(A);break}b()},C=({menuOption:y})=>r(E,F({align:"center",class:"content-item"},{onClick:f.bind(this,y),data_path:y.path}),{default:()=>[r("div",{class:"content-item-icon"},[u(y.meta)]),r("div",{class:"content-item-label"},[y.breadcrumbLabel]),r(k,{name:"enter",size:"18",customClassName:"content-item-icon__enter"},null)]});return ve(()=>{p.value&&(o.value=!1)}),Le(window,"keydown",y=>{m(y),R(y)},!0),{...Re(i),modelShow:o,helperTipOptions:s,fuzzySearchMenuOptions:kt(_,300),searchItemClick:f,RenderPreIcon:u,isTabletOrSmaller:p,SearchItem:C,loading:h}},render(){const{isTabletOrSmaller:e,searchOptions:t,loading:n}=this,{SearchItem:a,fuzzySearchMenuOptions:l}=this;return e?r("div",{style:"display: none;"},null):r(on,{show:this.modelShow,"onUpdate:show":o=>this.modelShow=o,transformOrigin:"center",displayDirective:"if"},{default:()=>[r("div",{class:"global-search global-search--dark global-search--light"},[r("div",{class:"global-search__wrapper"},[r(nt,{class:"global-search__card",headerStyle:{padding:"12px 12px 0 12px"},contentStyle:{padding:"12px"},segmented:{action:"soft"}},{header:()=>r(wo,{size:"large",value:this.searchValue,"onUpdate:value":o=>this.searchValue=o,clearable:!0,onInput:l.bind(this)},{prefix:()=>r(k,{name:"search",size:"24"},null)}),default:()=>{let o;return r(xt,null,{default:()=>[r(ot,{show:n},{default:()=>[t.length?r(E,{vertical:!0,size:[0,6],class:"global-search__card-content"},yt(o=t.map((i,s)=>r(a,{menuOption:i,key:i.fullPath},null)))?o:{default:()=>[o]}):r(Co,{size:"large",class:"global-search__empty"},{icon:()=>null,default:()=>r(E,{justify:"center",class:"global-search__empty-content"},{default:()=>[r(cn,null,{default:()=>[fe("没有搜索结果")]})]})})]})]})},action:()=>{let o;return r(E,{justify:"flex-start",align:"center",size:[16,0]},yt(o=this.helperTipOptions.map(i=>r(E,{key:i.label,size:[4,0]},{default:()=>[i.icon.map(s=>r(E,{class:"item-icon",align:"center",justify:"center"},yt(s)?s:{default:()=>[s]})),r(E,{class:"item-label",align:"center"},{default:()=>[i.label]})]})))?o:{default:()=>[o]})}})])])]})}}),Hs=M({name:"GlobalSearchButton",props:{onClick:{type:[Function,Array],default:null}},setup(e){return{getShortcutKeyAboutSystem:()=>{const a=Yo();return a==="MacOS"?"⌘ + K":"CTRL + K"},click:a=>{const{onClick:l}=e;l&&D(l,a)}}},render(){const{getShortcutKeyAboutSystem:e,click:t,$t:n}=this;return r(J,{bordered:!1,onClick:t.bind(this),round:!0,tertiary:!0,style:"margin-right: 16px"},{icon:()=>r(k,{name:"search",size:"16"},null),default:()=>r(E,{align:"center"},{default:()=>[n("headerTooltip.Search"),r("div",{class:"global-search-btn__label"},[e()])]})})}}),Ys=M({name:"AppAvatar",props:{...To,cursor:{type:String,default:"auto"},spaceSize:{type:[String,Number,Array],default:"medium"},avatarSize:{type:[String,Number],default:"medium"},vertical:{type:Boolean,default:!1}},setup(){const{getSigningCallback:e}=Nn();return{getSigningCallback:e}},render(){const{getSigningCallback:e,avatarSize:t,spaceSize:n,$props:a,vertical:l}=this;return r(J,{quaternary:!0,strong:!0,focusable:!1},{default:()=>[r(E,{align:"center",size:n,vertical:l},{default:()=>[r(Oo,F(a,{src:e==null?void 0:e.avatar,objectFit:"cover",round:!0,size:t}),null),e==null?void 0:e.name]})]})}}),Xs=()=>[{key:"person",label:"个人信息"},{key:"lockScreen",label:"锁定屏幕"},{type:"divider",key:"d1"},{key:"logout",label:"退出登陆"}],Js={logout:()=>{const{logout:e}=Ps();window.$dialog.warning({title:"提示",content:"您确定要退出登录吗",positiveText:"确定",negativeText:"不确定",onPositiveClick:()=>{e()}})},lockScreen:()=>{const{updateSettingState:e}=K();e("lockScreenSwitch",!0)}},Zs=e=>{const t=Js[e];t?t():window.$message.info("这个人很懒, 没做这个功能~")},Qs=e=>{const{isTabletOrSmaller:t}=e,n=[],a=[{name:"menu",size:18,eventKey:"menu"}];return t.value?a:n},er=e=>{const{isTabletOrSmaller:t}=e,n=[{name:"fullscreen",size:18,eventKey:"screen"},{name:"github",size:18,eventKey:"github"},{name:"setting",size:18,eventKey:"setting"}],a=[...n],l=[...n];return t.value?l:a},tr=M({name:"AppSiderBar",setup(){const{updateLocale:e,updateSettingState:t}=K(),{t:n}=De(),[a,{toggleFullscreen:l,isEnabled:o}]=hn(document.getElementsByTagName("html")[0]),{getDrawerPlacement:i,getBreadcrumbSwitch:s}=$(),c=I(!1),d=I(!1),{isTabletOrSmaller:p}=it(),h=rt("globalDrawerValue"),S=w(()=>Qs({isFullscreen:a,isTabletOrSmaller:p})),g=w(()=>er({isFullscreen:a,isTabletOrSmaller:p})),m={search:()=>{d.value=!0},setting:()=>{c.value=!0},github:()=>{window.open("https://github.com/XiaoDaiGua-Ray/ray-template")},fullscreen:()=>{o||window.$message.warning(n("globalMessage.isEnabledFullscreen")),l()},lock:()=>{t("lockScreenSwitch",!0)},menu:()=>{re("globalDrawerValue",!h.value)}};return{leftIconOptions:S,rightTooltipIconOptions:g,toolIconClick:b=>{var u;(u=m[b])==null||u.call(m)},showSettings:c,updateLocale:e,getDrawerPlacement:i,getBreadcrumbSwitch:s,globalSearchShown:d,isRenderVNode:b=>p.value?null:b}},render(){const{rightTooltipIconOptions:e,leftIconOptions:t,getDrawerPlacement:n,getBreadcrumbSwitch:a}=this,{toolIconClick:l,updateLocale:o,isRenderVNode:i}=this;return r(un,{class:"layout-header"},{default:()=>[r(Gs,{show:this.globalSearchShown,"onUpdate:show":s=>this.globalSearchShown=s},null),r(E,{class:"layout-header__method",align:"center",justify:"space-between",wrap:!1},{default:()=>[r(E,{align:"center",wrap:!1},{default:()=>[t.map(s=>r(Vs,{key:s.name,iconName:s.name,tooltipText:pn(s.tooltip)?s.tooltip.value:s.tooltip,customClassName:s.iconClass,onClick:l.bind(this,s.name)},null)),a?r(qs,null,null):null]}),r(E,{justify:"end",align:"center",size:[0,0],wrap:!1},{default:()=>[i(r(Hs,{onClick:s=>{s.stopPropagation(),this.globalSearchShown=!0}},null)),e.map(s=>r(J,{class:"override-button__layout",quaternary:!0,size:"medium",key:s.name,onClick:l.bind(this,s.name),focusable:!1},{default:()=>[r(k,{name:s.name,size:16,cursor:"pointer"},null)]})),r(Oe,{options:wn,onSelect:s=>o(String(s)),trigger:"click"},{default:()=>[r(J,{quaternary:!0,class:"override-button__layout",focusable:!1},{default:()=>[r(k,{customClassName:"layout-header__method--icon",name:"language",size:"16",cursor:"pointer"},null)]})]}),r(Oe,{options:Xs(),onSelect:Zs.bind(this),trigger:"click"},{default:()=>[r(Ys,{avatarSize:24,spaceSize:[8,0],class:"override-button__layout"},null)]})]})]}),r(Us,{show:this.showSettings,"onUpdate:show":s=>this.showSettings=s,placement:n},null)]})}}),nr=M({name:"LayoutHeaderWrapper",setup(){return{}},render(){return r(E,{size:[0,0]},{default:()=>[r(tr,null,null)]})}});function or(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ne(e)}const ar=M({name:"AppMenuTag",setup(e,{expose:t}){const n=ie("scrollRef"),{getMenuKey:a,getMenuTagOptions:l}=ye(),{changeMenuModelValue:o}=Ne(),{getRootPath:i}=Pe(),{maximize:s}=Vn(),{reload:c}=fr(),{close:d,closeAll:p,closeRight:h,closeLeft:S,closeOther:g,checkCloseLeft:m,checkCloseRight:_}=$n(),f=["closeAll","closeRight","closeLeft","closeOther","closeCurrentPage"];let b=1/0;const u={size:16},v=I([{label:"关闭当前页面",key:"closeCurrentPage",icon:()=>r(k,{name:"close",size:u.size},null)},{label:"最大化当前页面",key:"maximizeLayoutContent",icon:()=>r(k,{name:"fullscreen_fold",size:u.size},null)},{label:"刷新当前页面",key:"reloadCurrentPage",icon:()=>r(k,{name:"reload",size:u.size},null)},{label:"新窗口打开",key:"windowOpenTab",icon:()=>r(k,{name:"shared",size:u.size},null)},{type:"divider",key:"d1"},{label:"关闭左侧标签页",key:"closeLeft",icon:()=>r(k,{name:"close_left",size:u.size},null)},{label:"关闭右侧标签页",key:"closeRight",icon:()=>r(k,{name:"close_right",size:u.size},null)},{type:"divider",key:"d1"},{label:"关闭其他标签页",key:"closeOther",icon:()=>r(k,{name:"close_other",size:u.size},null)},{label:"关闭所有标签页",key:"closeAll",icon:()=>r(k,{name:"resize_h",size:u.size},null),disabled:!1}]),R=Je(16),C={closeCurrentPage:()=>{a.value!==i.value&&d(b)},reloadCurrentPage:()=>{c()},closeAll:()=>{p()},closeRight:()=>{h(b)},closeLeft:()=>{S(b)},closeOther:()=>{g(b)},windowOpenTab:()=>{const T=l.value[b];if(!(T!=null&&T.fullPath))return;const z=T.fullPath.startsWith("#")?T.fullPath:`#${T.fullPath}`;window.open(z,"_blank")},maximizeLayoutContent:()=>{const T=l.value[b];s(!0),T&&U(T)}},y=te({x:0,y:0,actionDropdownShow:!1}),x="menu_tag_data",A=rt("globalMainLayoutLoad"),O="n-scrollbar-container";let P=a.value;const j=T=>{d(T)},V=(T,z)=>{for(const W of v.value)if(W.key===T){W.disabled=z;break}},U=T=>{y.actionDropdownShow=!1,o(T.fullPath,T)},Y=()=>{const T=document.getElementById(R);if(T)return Array.from(T.childNodes).find(Be=>Xo(Be,O).value)},H=T=>{var W;const z=Y();if(z){const Be=z.scrollLeft||0,Dt=T==="left"?Math.max(0,Be-200):Be+200;(W=n.value)==null||W.scrollTo({left:Dt,behavior:"smooth"})}},ue=T=>{y.actionDropdownShow=!1;const z=C[T];z==null||z()},X=(T,z)=>{z.preventDefault(),b=T,y.actionDropdownShow=!1,q(()=>{y.actionDropdownShow=!0,y.x=z.clientX,y.y=z.clientY})},Fe=()=>{const{closeable:T}=l.value[b]??{};V("closeCurrentPage",!T),_(b)?V("closeRight",!1):V("closeRight",!0),m(b)?V("closeLeft",!1):V("closeLeft",!0)},Un=()=>{b=l.value.findIndex(z=>z.fullPath===a.value),Fe()},Wn=T=>{l.value.length>1&&T.fullPath!==i.value&&(T.closeable=!0)},qn=T=>{T.fullPath!==a.value&&(T.closeable=!1)},Gn=()=>{Y()&&q().then(()=>{var z;(z=n.value)==null||z.scrollTo({left:99999,behavior:"smooth"})})},ct=()=>{q().then(()=>{const T=Ze(`attr:${x}="${a.value}"`);if(T!=null&&T.length){const[z]=T;q().then(()=>{var W;(W=n.value)==null||W.scrollTo({left:z.offsetLeft,behavior:"smooth"})})}})},Hn=()=>{s(!0)};return he(()=>l.value,(T,z)=>{v.value.forEach(W=>{f.includes(W.key)&&(T.length>1?W.disabled=!1:W.disabled=!0)}),z!=null&&z.length&&(T.length>(z==null?void 0:z.length)?Gn():T.length===(z==null?void 0:z.length)&&ct()),z===void 0&&ct()},{immediate:!0}),ve(()=>{var T;y.actionDropdownShow&&((T=kt(Fe,300))==null||T()),P!==a.value&&(P=a.value,ct())}),t(),{getMenuTagOptions:l,closeCurrentMenuTag:j,getMenuKey:a,menuTagClick:U,moreOptions:v,scrollX:H,scrollRef:n,uuidScrollBar:R,actionDropdownSelect:ue,actionState:y,menuTagContextMenu:X,setCurrentContextmenuIndex:Un,menuTagMouseenter:Wn,menuTagMouseleave:qn,MENU_TAG_DATA:x,iconConfig:u,maximize:s,reload:c,globalMainLayoutLoad:A,maximizeBtnClick:Hn}},render(){let e;const{iconConfig:t,uuidScrollBar:n,getMenuTagOptions:a,MENU_TAG_DATA:l,globalMainLayoutLoad:o}=this,{maximizeBtnClick:i,closeCurrentMenuTag:s,scrollX:c,$t:d,menuTagClick:p,menuTagContextMenu:h,menuTagMouseenter:S,menuTagMouseleave:g,actionDropdownSelect:m,reload:_}=this;return r(un,null,{default:()=>[r("div",{class:"menu-tag"},[r(Oe,{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:m.bind(this)},null),r(E,{class:"menu-tag-space",wrap:!1,align:"center",justify:"space-between",inline:!0},{default:()=>[r(J,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:this.scrollX.bind(this,"left")},{icon:()=>r(k,{name:"expanded",width:t.size,height:t.size,customClassName:"menu-tag__left-arrow"},null)}),r(xt,F({xScrollable:!0,ref:"scrollRef"},{id:n},{themeOverrides:{width:"0px",height:"0px"}}),{default:()=>[r(E,{class:"menu-tag-wrapper",wrap:!1,align:"center",justify:"start"},or(e=a.map((f,b)=>r(J,F({key:f.fullPath,class:["menu-tag__btn"],strong:!0,secondary:!0,type:f.fullPath===this.getMenuKey?"primary":"default"},{onClick:p.bind(this,f),onContextmenu:h.bind(this,b),onMouseenter:S.bind(this,f),onMouseleave:g.bind(this,f),onBlur:()=>{this.actionState.actionDropdownShow=!1},[l]:f.fullPath},{size:"small"}),{default:()=>r(gn,null,[r("span",null,{default:()=>{const{breadcrumbLabel:u,meta:{i18nKey:v}}=f;return v?d(v):u}}),r(Ro,F({class:"menu-tag__btn-icon"},{onMousedown:s.bind(this,b)}),{default:()=>[r(k,{name:"close",size:"14"},null)]})])})))?e:{default:()=>[e]})]}),r(E,{align:"center",inline:!0,wrap:!1,size:[0,0]},{default:()=>[r(J,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:c.bind(this,"right")},{icon:()=>r(k,{name:"expanded",width:t.size,height:t.size,style:{transform:"rotate(180deg)"}},null)}),r(J,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:i},{icon:()=>r(k,{name:"fullscreen_fold",width:t.size,height:t.size},null)}),r(J,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:()=>{_()}},{icon:()=>r(k,{name:"reload",width:t.size,height:t.size,customClassName:`${o?"":"menu-tag__right-setting--spinning"}`},null)}),r(xn,{class:"menu-tag__dropdown",options:this.moreOptions,trigger:"click",onSelect:this.actionDropdownSelect.bind(this),iconSize:18,keyboard:!1},{default:()=>[r(J,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:this.setCurrentContextmenuIndex.bind(this)},{icon:()=>r(k,{name:"more",width:t.size,height:t.size},null)})]})]})]})])]})}}),lr=M({name:"LayoutFeatureWrapper",setup(){return{}},render(){return r(ar,null,null)}}),sr=e=>{const t=dt(e[0]),n=dt(e[1]),a=dt(e[2]),{height:l,width:o}=Mt();return w(()=>({"--window-width":`${o.value}px`,"--window-height":`${l.value}px`,"--layout-content-height":`calc(${l.value}px - ${t.height.value}px - ${n.height.value}px - ${a.height.value}px)`,"--layout-content-width":`${t.width.value}px`,"--layout-siderbar-height":`${t.height.value}px`,"--layout-menutag-height":`${n.height.value}px`,"--layout-footer-height":`${a.height.value}px`}))},Zt=Mo(G.isAppLockScreen,!1,sessionStorage,{mergeDefaults:!0}),rr=()=>({setLockAppScreen:n=>{Zt.value=n},getLockAppScreen:()=>Zt.value}),ir=M({name:"RLayout",setup(){const e=I(),t=I(),n=I(),{getMenuTagSwitch:a,getCopyrightSwitch:l}=$(),{getLockAppScreen:o}=rr(),i=sr([e,t,n]);return{getMenuTagSwitch:a,cssVarsRef:i,getLockAppScreen:o,layoutSiderBarRef:e,layoutMenuTagRef:t,layoutFooterRef:n,getCopyrightSwitch:l}},render(){const{getMenuTagSwitch:e,cssVarsRef:t,getCopyrightSwitch:n}=this,{getLockAppScreen:a}=this;return a()?null:r(Ao,{class:"r-layout-full",style:[t],hasSider:!0,embedded:!0},{default:()=>[r(Ls,null,null),r(Vt,{class:"r-layout-full__viewer"},{default:()=>[r(nr,{ref:"layoutSiderBarRef"},null),e?r(lr,{ref:"layoutMenuTagRef"},null):null,r(Vt,{ref:we,class:["r-layout-full__viewer-content"],nativeScrollbar:!1},{default:()=>[r(Bn,null,null)]}),n?r(Bs,{ref:"layoutFooterRef"},null):null]})]})}}),cr=[{path:"/",name:"RLogin",component:()=>L(()=>import("./index-DrOZrx4m.js"),__vite__mapDeps([87,1,2,3,4,5,6,7,8,9,10,11,40,32,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,71,72,73,30,31,50,33,34,35,36,37,38,39,41,42,43,44,45,46,47,88]))},{path:"/",name:"RLayout",component:ir,children:[...As(),{path:"/:catchAll(.*)",component:()=>L(()=>import("./index-C296AXrg.js"),__vite__mapDeps([89,1,2,3,4,5,6,7,8,9,10,11,32,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,90])),meta:{i18nKey:N("menu.Error"),icon:"error",hidden:!0,sameLevel:!0}}]}],et=ia({history:ca(),routes:cr,scrollBehavior:e=>{Vl(e)}}),ii=e=>{e.use(et),Ms(et)},Et=()=>et?{router:et}:{router:{}},Qt="YYYY-MM-DD HH:mm:ss",ur=()=>({locale:i=>{const s=Ba[i];s?ae.locale(s):ae.locale(Va)},getStartAndEndOfDay:i=>{const{format:s=Qt}=i??{},c=ae(),d=c.startOf("day"),p=c.endOf("day"),h=c.format(s),S=d.format(s),g=p.format(s);return{today:c,startOfDay:d,endOfDay:p,formatToday:h,formatStartOfDay:S,formatEndOfDay:g}},format:(i,s)=>{const{format:c=Qt}=s??{};return ae(i).format(c)},isDayjs:i=>ae.isDayjs(i),daysDiff:(i,s)=>{const c=ae(i);return ae(s).diff(c,"days")},isDateInRange:(i,s)=>{const{start:c,end:d}=s,p=ae(i);return p.isAfter(c)&&p.isBefore(d)}});function it(e){const{width:t,height:n}=Mt(e),a=I(!1),{observer:l}=e??{};return Jo(()=>{const{media:i=768}=e??{};a.value=t.value<=i,l==null||l(a.value,{width:t.value,height:n.value})}),{width:t,height:n,isTabletOrSmaller:Ce(a)}}let bt=999,_t=!1;const me="ELEMENT-FULLSCREEN-RAY",{width:St,height:wt}=Mt(),en=document.createElement("style"),dr=(e,t)=>{const{beforeEnter:n,beforeExit:a,enter:l,exit:o,backgroundColor:i,zIndex:s,transition:c="all 0.3s var(--r-bezier)"}=t??{};let d=!1;const p={x:null,y:null},h=()=>{const f=se(e);if(!f)return;const{left:b,top:u}=f.getBoundingClientRect();p.x===null&&p.y===null&&(p.x=-b,p.y=-u),qe(document.body,{"--element-fullscreen-z-index":ce(s,"Null")||ce(s,"Undefined")?bt:s,"--element-fullscreen-transition":c,"--element-fullscreen-background-color":i,"--element-fullscreen-width":`${St.value}px`,"--element-fullscreen-height":`${wt.value}px`,"--element-fullscreen-transform-x":`${p.x}px`,"--element-fullscreen-transform-y":`${p.y}px`});const v=` +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["js/en-US-B6IsRhn3.js","js/dayjs@1.11.10-D8VSY-p2.js","js/call-bind@1.0.7-Cpj98o6Y.js","js/print-js@1.6.0-BdoEj60G.js","js/vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.js","js/@vue_reactivity@3.5.12-Bs6EYLxJ.js","js/@vue_shared@3.5.12--5_uv9t5.js","js/@vue_runtime-core@3.5.12-Ds-HrVrM.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/jsbarcode@3.11.6-DGNGFp02.js","js/currency.js@2.0.4-9OAR_aOO.js","js/lodash-es@4.17.21-CeZG2a4n.js","js/naive-ui@2.40.1_vue@3.5.12-DyRQVgeU.js","js/date-fns@3.6.0-q9PkOyxq.js","js/seemly@0.3.8-DjGKl9dV.js","js/vueuc@0.4.64_vue@3.5.12-gFk5c7Fb.js","js/evtd@0.2.4-CI_DDEu_.js","js/@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js","js/vooks@0.2.12_vue@3.5.12-CeQQlSXI.js","js/vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js","js/@juggle_resize-observer@3.4.0-C8OzoCMD.js","js/css-render@0.15.14-C5toWlUr.js","js/@emotion_hash@0.8.0-WldOFDRm.js","js/@vue_runtime-dom@3.5.12-ewSD1rNh.js","js/treemate@0.3.11-DKekKYbv.js","js/date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js","js/async-validator@4.2.5-DKvM95Vc.js","js/@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js","js/@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js","js/@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js","js/utils-Dh5AVlvo.js","js/interactjs@1.10.26-DZL_TZzP.js","js/pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js","js/destr@2.0.3-CVtkxrq9.js","js/deep-pick-omit@1.2.1-CegYQlcN.js","js/pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DjAImzYl.js","js/vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js","js/html-to-image@1.11.11-BOFdlgi9.js","js/vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js","js/vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.js","js/@intlify_shared@9.13.1-BxU0OzX2.js","js/@intlify_core-base@9.13.1-C6DqbPB6.js","js/@intlify_message-compiler@9.13.1-GrLDMuy_.js","js/echarts@5.5.0-CezqL3m-.js","js/zrender@5.5.0-DW8ownf1.js","js/tslib@2.3.0-BDyQ-Jie.js","js/zh-CN-EdAvjSXU.js","js/index-ZjF7vgNG.js","js/index-CgOgVoYU.js","css/index-D_4DGt8i.css","js/index-zScVDTMx.js","js/instance-CGOUnAsK.js","js/axios@1.7.5-C8DqakIB.js","css/index-QAd2IBUs.css","js/BarcodeDemo-PPIuMuNj.js","js/index-Bvg2a-5l.js","js/index-BvLKBkZY.js","js/index-Dy43M56X.js","js/index-DwrIb9z5.js","css/index-DHYYVpM7.css","js/index-DGkUQRrD.js","js/index-DaEQ8eWf.js","js/index-BXg9Fzcr.js","js/index-Curo11pz.js","js/index-Dyp40qYu.js","js/index-8F6Ug6Kd.js","js/index-TI4DwZCx.js","js/index-DMtG6gGb.js","js/index-JALWQc45.js","js/vue3-next-qrcode@2.0.10_typescript@5.2.2-BJQJW2Mf.js","css/vue3-next-qrcode@2.0.10_typescript@5.2-CG4VaxS5.css","js/ray-dCjhX_JK.js","js/index-CjEDU2P3.js","css/index-B6yUFiKH.css","js/index-D8sJnOnX.js","js/index-3bzRwRyq.js","js/index-B-oZGJ3j.js","css/index-Dig957GB.css","js/index-Q9IynwJ9.js","js/index-ChU4ghcC.js","css/index-Eq1L-L2-.css","js/TablePro-D4fsREtV.js","js/mockjs@1.1.0-CxlURkif.js","js/index-ByAQM_Wf.js","js/index-Dv102CZS.js","js/index-DJPWBbTq.js","css/index-74sXJ5VP.css","js/index-BBYs7MM0.js","css/index-b1h4j9PV.css"])))=>i.map(i=>d[i]); +var Yn=Object.defineProperty;var Xn=(e,t,n)=>t in e?Yn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var jt=(e,t,n)=>Xn(e,typeof t!="symbol"?t+"":t,n);import{s as ut,c as He,t as kt,i as nn,p as ze,o as tt,f as Jn}from"./lodash-es@4.17.21-CeZG2a4n.js";import{z as Nt,d as Ft,f as Zn,g as Qn,N as nt,a as eo,b as to,c as E,e as ot,m as no,h as on,u as oo,S as xt,i as ao,j as Oe,k as lo,l as an,n as Ie,o as so,p as ro,q as ln,t as io,r as co,s as uo,v as po,w as sn,x as Ye,y as mo,A as rn,B as fo,C as go,D as ho,E as vo,F as oe,G as yo,H as Bt,I as bo,J as de,K as pe,L as Ve,M as ke,O as cn,P as J,Q as _o,R as So,T as wo,U as Co,V as To,W as Oo,X as un,Y as Ro,Z as Vt,_ as Ao}from"./naive-ui@2.40.1_vue@3.5.12-DyRQVgeU.js";import{o as Po,u as Le,a as ko,b as xo,c as dn,d as dt,e as Mt,f as Mo}from"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import{k as I,l as Ce,e as te,n as zo,x as Re,a as pn,s as Io,u as Z}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import{n as q,w as he,l as M,b as r,m as F,p as ne,q as ie,j as w,f as ve,t as Lo,k as Ee,v as mn,h as at,i as fn,x as Eo,F as gn,y as Do,z as be,A as jo,C as pt,D as No,E as xe,S as Fo,K as Bo,G as $t,H as Vo,I as fe}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{d as ae}from"./dayjs@1.11.10-D8VSY-p2.js";import{p as $o}from"./print-js@1.6.0-BdoEj60G.js";import{u as hn}from"./vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.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 Ko}from"./jsbarcode@3.11.6-DGNGFp02.js";import{g as Xe,i as ce,s as zt,a as Ot,c as Uo,u as vn,l as yn,b as bn,d as Wo,e as B,r as ge,f as D,h as qo,j as Je,q as Ze,k as qe,m as _n,p as Sn,n as It,o as Kt,t as _e,v as Go,w as Ho,x as Yo,y as Xo,z as Jo,A as se}from"./utils-Dh5AVlvo.js";import{i as Ut}from"./interactjs@1.10.26-DZL_TZzP.js";import{s as Zo}from"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import{d as lt,c as Qo}from"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DjAImzYl.js";import{t as ea,a as ta,b as na,c as oa,d as aa,e as la}from"./html-to-image@1.11.11-BOFdlgi9.js";import{u as st,a as sa,o as ra,c as ia,b as ca}from"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import{c as ua}from"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.js";import{r as da,u as Me,i as pa,a as ma,b as fa,c as ga,d as ha,e as va,f as ya,g as ba,h as _a,j as Sa,k as wa,l as Ca,m as Ta,n as Oa,o as Ra,p as Aa,q as Pa,s as ka}from"./echarts@5.5.0-CezqL3m-.js";import{g as xa}from"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js";import{T as Ma,a as za}from"./@vue_runtime-dom@3.5.12-ewSD1rNh.js";const Br=(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(a=>{const l=e[a].default;let o=a.replace(`./${t}/`,"").replace(/^\.\//,"");const i=o.lastIndexOf(".");o=o.substring(0,i);const s=o.split("/"),c=s.shift(),d=s.join(".");c&&(d?(ut(n,c,n[c]||{}),ut(n[c],d,l)):ut(n,c,l||{}))}),n},Ia="modulepreload",La=function(e){return"/ray-template/"+e},Wt={},L=function(t,n,a){let l=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),i=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));l=Promise.all(n.map(s=>{if(s=La(s),s in Wt)return;Wt[s]=!0;const c=s.endsWith(".css"),d=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${s}"]${d}`))return;const p=document.createElement("link");if(p.rel=c?"stylesheet":Ia,c||(p.as="script"),p.crossOrigin="",p.href=s,i&&p.setAttribute("nonce",i),document.head.appendChild(p),c)return new Promise((h,S)=>{p.addEventListener("load",h),p.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${s}`)))})}))}return l.then(()=>t()).catch(o=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=o,window.dispatchEvent(i),!i.defaultPrevented)throw o})},Ea=(e,t,n)=>{const a=e[t];return a?typeof a=="function"?a():Promise.resolve(a):new Promise((l,o)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(o.bind(null,new Error("Unknown variable dynamic import: "+t+(t.split("/").length!==n?". Note that variables only represent file names one level deep.":""))))})},Da=async e=>{var n;const t={};for(const a of e){const l=await Ea(Object.assign({"../lang/en-US.ts":()=>L(()=>import("./en-US-B6IsRhn3.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,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),"../lang/zh-CN.ts":()=>L(()=>import("./zh-CN-EdAvjSXU.js"),__vite__mapDeps([48,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47]))}),`../lang/${a.key}.ts`,3),o=a.key;o&&(t[o]=((n=l==null?void 0:l.default)==null?void 0:n.message)??{})}return t},Vr=e=>{switch(e){case"zh-CN":return{locale:Nt,dateLocal:Ft};case"en-US":return{locale:null,dateLocal:null};default:return{locale:Nt,dateLocal:Ft}}},$r={max:5,closable:!1},Kr="loading",Ur="",G={signing:"signing",localeLanguage:"localeLanguage",token:"token",appMenuKey:"menuKey",appPiniaSettingStore:"piniaSettingStore",appPiniaKeepAliveStore:"piniaKeepAliveStore",appPiniaMenuStore:"piniaMenuStore",appPiniaSigningStore:"piniaSigningStore",appVersionProvider:"appVersionProvider",isAppLockScreen:"isAppLockScreen",appGlobalSearchOptions:"appGlobalSearchOptions"},ja=[{label:"无",value:"none"},{label:"缩放出现",value:"scale"},{label:"缩放消退",value:"fade-scale"},{label:"滑入出现",value:"fade-slide"},{label:"淡入消退",value:"opacity"},{label:"底部消退",value:"fade-bottom"}],Q={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"},wn=[{key:"zh-CN",label:"中文(简体)"},{key:"en-US",label:"English(US)"}],Na="zh-CN",Fa="zh-CN",Ba={"zh-CN":"zh-cn","en-US":"en"},Va="zh-cn",Wr={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)$/,cssSize:/^auto|unset|fit-content|max-content|min-content|initial|inherit|revert|revert-layer|[-\w]+-webkit-fill-available$/},qr={baseURL:"",withCredentials:!1,timeout:5*1e3,headers:{"Content-Type":"application/json"}},we=I(null),Cn=I(null),$a={setupRouterLoadingBar:!0,setupRouterGuard:!0},Ka=["RLogin","ErrorPage","RayTemplateDoc"],$e=[],Gr=(e,t)=>{const n=I(0),a=I(0),l=I(!1),{clickOutside:o}={},i=h=>{l.value=h},s=h=>{h.preventDefault(),i(!1),q().then(()=>{const{clientX:S,clientY:g}=h;n.value=S,a.value=g,i(!0)})};o&&Po(e,h=>{o(h)});const c=Le(e,"contextmenu",s,t),d=Le(e,"click",()=>{i(!1)});return{stop:()=>{c(),d()},x:Ce(n),y:Ce(a),show:Ce(l),updateShow:i}},Qe=te({globalSpinning:!1,globalDrawerValue:!1,globalMainLayoutLoad:!0,layoutContentMaximize:!1,layoutContentSpinning:!1});function re(e,t,n){Object.hasOwn(Qe,e)&&(Qe[e]=t)}function rt(e){return Ce(zo(Qe,e))}function Ua(){return{...Re(Ce(Qe))}}let le;const Wa=async()=>{const e=Kn(),t=await Da(wn);return ua({legacy:!1,locale:e,messages:t,sync:!0,missingWarn:!1,silentFallbackWarn:!0,fallbackLocale:Fa})},Hr=async e=>{const t=await Wa();e.use(t),le=t},qt=(e,t)=>t,De=e=>{if(!le)return{t:o=>qt(e,o),locale:o=>{}};const{t,...n}=le.global;return{...n,t:(o,...i)=>o?!o.includes(".")&&!e?o:t(qt(e,o),...i):"",locale:o=>{le.mode==="legacy"?le.global.locale=o:pn(le.global.locale)?le.global.locale.value=o:le.global.locale=o}}},N=e=>e,qa={path:"/dashboard",component:()=>L(()=>import("./index-ZjF7vgNG.js"),__vite__mapDeps([49,12,1,2,3,4,5,6,7,8,9,10,11,50,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,51])),meta:{i18nKey:N("menu.Dashboard"),icon:"dashboard",order:0}},Ga=Object.freeze(Object.defineProperty({__proto__:null,default:qa},Symbol.toStringTag,{value:"Module"})),Ha={path:"/axios",name:"RAxios",component:()=>L(()=>import("./index-zScVDTMx.js"),__vite__mapDeps([52,4,5,6,7,8,2,9,10,53,54,1,3,11,32,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,55])),meta:{i18nKey:N("menu.Axios"),icon:"axios",order:3,keepAlive:!0}},Ya=Object.freeze(Object.defineProperty({__proto__:null,default:Ha},Symbol.toStringTag,{value:"Module"})),Xa={path:"barcode",component:()=>L(()=>import("./BarcodeDemo-PPIuMuNj.js"),__vite__mapDeps([56,12,1,2,3,4,5,6,7,8,9,10,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,30,31,11,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:N("menu.Barcode"),icon:"other",order:2,extra:{label:"new"}}},Ja=Object.freeze(Object.defineProperty({__proto__:null,default:Xa},Symbol.toStringTag,{value:"Module"})),Za={path:"/cache-demo",component:()=>L(()=>import("./index-Bvg2a-5l.js"),__vite__mapDeps([57,1,2,3,4,5,6,7,8,9,10,11,32,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:N("menu.CacheDemo"),icon:"other",order:3}},Qa=Object.freeze(Object.defineProperty({__proto__:null,default:Za},Symbol.toStringTag,{value:"Module"})),el={path:"/context-menu",component:()=>L(()=>import("./index-BvLKBkZY.js"),__vite__mapDeps([58,12,1,2,3,4,5,6,7,8,9,10,11,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:N("menu.ContextMenu"),icon:"other",order:2}},tl=Object.freeze(Object.defineProperty({__proto__:null,default:el},Symbol.toStringTag,{value:"Module"})),nl={path:"/directive",component:()=>L(()=>import("./index-Dy43M56X.js"),__vite__mapDeps([59,7,5,6,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29])),meta:{i18nKey:N("menu.Directive"),icon:"other",order:2,extra:{label:"ellipsis"}}},ol=Object.freeze(Object.defineProperty({__proto__:null,default:nl},Symbol.toStringTag,{value:"Module"})),al={path:"/echart",component:()=>L(()=>import("./index-DwrIb9z5.js"),__vite__mapDeps([60,12,1,2,3,4,5,6,7,8,9,10,11,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,61])),meta:{i18nKey:N("menu.Echart"),icon:"echart",order:1,extra:{label:"useChart"}}},ll=Object.freeze(Object.defineProperty({__proto__:null,default:al},Symbol.toStringTag,{value:"Module"})),sl={path:"/form",component:()=>L(()=>import("./index-DGkUQRrD.js"),__vite__mapDeps([62,12,1,2,3,4,5,6,7,8,9,10,11,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:N("menu.Form"),icon:"other",order:2,extra:{label:"useForm"}}},rl=Object.freeze(Object.defineProperty({__proto__:null,default:sl},Symbol.toStringTag,{value:"Module"})),il={path:"/iframe",component:()=>L(()=>import("./index-DaEQ8eWf.js"),__vite__mapDeps([63,12,1,2,3,4,5,6,7,8,9,10,11,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{icon:"other",order:2,noLocalTitle:"iframe"}},cl=Object.freeze(Object.defineProperty({__proto__:null,default:il},Symbol.toStringTag,{value:"Module"})),ul={path:"/mock-demo",component:()=>L(()=>import("./index-BXg9Fzcr.js"),__vite__mapDeps([64,12,1,2,3,11,4,5,6,7,8,9,10,53,54,32,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:N("menu.Mock"),icon:"other",order:3,keepAlive:!1,extra:{label:"usePagination"}}},dl=Object.freeze(Object.defineProperty({__proto__:null,default:ul},Symbol.toStringTag,{value:"Module"})),pl={path:"/modal-demo",component:()=>L(()=>import("./index-Curo11pz.js"),__vite__mapDeps([65,12,1,2,3,4,5,6,7,8,9,10,11,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:N("menu.Modal"),icon:"other",order:3}},ml=Object.freeze(Object.defineProperty({__proto__:null,default:pl},Symbol.toStringTag,{value:"Module"})),Ge=()=>L(()=>Promise.resolve().then(()=>Ns),void 0),fl={path:"/multi",component:Ge,meta:{i18nKey:N("menu.MultiMenu"),icon:"other",order:4,extra:{label:"cache"}},children:[{path:"multi-menu-one",name:"MultiMenuOne",component:()=>L(()=>import("./index-Dyp40qYu.js"),__vite__mapDeps([66,7,5,6,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29])),meta:{noLocalTitle:"多级菜单-1",keepAlive:!0}},{path:"multi-menu-two",name:"MultiMenuTwo",component:Ge,meta:{noLocalTitle:"多级菜单-2"},children:[{path:"sub-menu-other",name:"SubMenuOther",component:()=>L(()=>import("./index-8F6Ug6Kd.js"),__vite__mapDeps([67,7,5,6,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29])),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:()=>L(()=>import("./index-TI4DwZCx.js"),__vite__mapDeps([68,7,5,6,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29])),meta:{noLocalTitle:"多级菜单-2-2-1",keepAlive:!0}}]}]}]},gl=Object.freeze(Object.defineProperty({__proto__:null,default:fl},Symbol.toStringTag,{value:"Module"})),hl={path:"/precision",component:()=>L(()=>import("./index-DMtG6gGb.js"),__vite__mapDeps([69,1,2,3,4,5,6,7,8,9,10,11,32,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:N("menu.CalculatePrecision"),icon:"other",order:2}},vl=Object.freeze(Object.defineProperty({__proto__:null,default:hl},Symbol.toStringTag,{value:"Module"})),yl={path:"/qrcode",component:()=>L(()=>import("./index-JALWQc45.js"),__vite__mapDeps([70,71,7,5,6,72,73,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29])),meta:{i18nKey:N("menu.QRCode"),icon:"other",order:2}},bl=Object.freeze(Object.defineProperty({__proto__:null,default:yl},Symbol.toStringTag,{value:"Module"})),_l={path:"rely-about",component:()=>L(()=>import("./index-CjEDU2P3.js"),__vite__mapDeps([74,7,5,6,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,75])),meta:{i18nKey:N("menu.RelyAbout"),icon:"rely",order:999}},Sl=Object.freeze(Object.defineProperty({__proto__:null,default:_l},Symbol.toStringTag,{value:"Module"})),wl={path:"/router-demo",component:Ge,meta:{i18nKey:N("menu.RouterDemo"),icon:"other",order:3},children:[{path:"router-demo-home",component:()=>L(()=>import("./index-D8sJnOnX.js"),__vite__mapDeps([76,12,1,2,3,40,5,6,7,11,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,30,31,4,8,9,10,32,33,34,35,36,37,38,39,41,42,43,44,45,46,47])),meta:{noLocalTitle:"人员信息(平级模式)"}},{path:"router-demo-detail",component:()=>L(()=>import("./index-3bzRwRyq.js"),__vite__mapDeps([77,7,5,6,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29])),meta:{noLocalTitle:"信息详情",sameLevel:!0}}]},Cl=Object.freeze(Object.defineProperty({__proto__:null,default:wl},Symbol.toStringTag,{value:"Module"})),Tl={path:"/scroll-reveal",component:()=>L(()=>import("./index-B-oZGJ3j.js"),__vite__mapDeps([78,7,5,6,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,79])),meta:{i18nKey:N("menu.scrollReveal"),icon:"scroll_reveal",hidden:!0}},Ol=Object.freeze(Object.defineProperty({__proto__:null,default:Tl},Symbol.toStringTag,{value:"Module"})),Rl={path:"/segment",component:()=>L(()=>import("./index-Q9IynwJ9.js"),__vite__mapDeps([80,12,1,2,3,4,5,6,7,8,9,10,11,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:N("menu.Segment"),icon:"other",order:3,extra:{label:"segment"}}},Al=Object.freeze(Object.defineProperty({__proto__:null,default:Rl},Symbol.toStringTag,{value:"Module"})),Pl={path:"/svg-icons",component:()=>L(()=>import("./index-ChU4ghcC.js"),__vite__mapDeps([81,12,1,2,3,4,5,6,7,8,9,10,11,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,82])),meta:{i18nKey:N("menu.SvgIcon"),icon:"other",order:3}},kl=Object.freeze(Object.defineProperty({__proto__:null,default:Pl},Symbol.toStringTag,{value:"Module"})),xl={path:"/table-pro",component:()=>L(()=>import("./TablePro-D4fsREtV.js"),__vite__mapDeps([83,32,12,1,2,3,4,5,6,7,8,9,10,11,13,53,54,84,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:N("menu.TablePro"),icon:"other",order:2,extra:{label:"TablePro"}}},Ml=Object.freeze(Object.defineProperty({__proto__:null,default:xl},Symbol.toStringTag,{value:"Module"})),zl={path:"/table",component:()=>L(()=>import("./index-ByAQM_Wf.js"),__vite__mapDeps([85,32,12,1,2,3,4,5,6,7,8,9,10,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:N("menu.Table"),icon:"other",order:2,extra:{label:"useTable"}}},Il=Object.freeze(Object.defineProperty({__proto__:null,default:zl},Symbol.toStringTag,{value:"Module"})),Ll={path:"/template-hooks",component:()=>L(()=>import("./index-Dv102CZS.js"),__vite__mapDeps([86,12,1,2,3,4,5,6,7,8,9,10,11,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:N("menu.TemplateHooks"),icon:"other",order:1}},El=Object.freeze(Object.defineProperty({__proto__:null,default:Ll},Symbol.toStringTag,{value:"Module"})),Dl=()=>{const e=Object.assign({"/src/router/modules/dashboard.ts":Ga,"/src/router/modules/demo/axios.ts":Ya,"/src/router/modules/demo/barcode.ts":Ja,"/src/router/modules/demo/cache-demo.ts":Qa,"/src/router/modules/demo/context-menu.ts":tl,"/src/router/modules/demo/directive.ts":ol,"/src/router/modules/demo/echart.ts":ll,"/src/router/modules/demo/form.ts":rl,"/src/router/modules/demo/iframe.ts":cl,"/src/router/modules/demo/mock.ts":dl,"/src/router/modules/demo/modal.ts":ml,"/src/router/modules/demo/multi-menu.ts":gl,"/src/router/modules/demo/precision.ts":vl,"/src/router/modules/demo/qrcode.ts":bl,"/src/router/modules/demo/rely.ts":Sl,"/src/router/modules/demo/router-demo.ts":Cl,"/src/router/modules/demo/scroll-reveal.ts":Ol,"/src/router/modules/demo/segment.ts":Al,"/src/router/modules/demo/svg-icons.ts":kl,"/src/router/modules/demo/table-pro.ts":Ml,"/src/router/modules/demo/table.ts":Il,"/src/router/modules/demo/template-hooks.ts":El});return Object.keys(e).reduce((n,a)=>{const l=e[a].default;if(l)n.push(l);else throw new Error(`[combineRawRouteModules]: ${a} module must export default.`);return n},[])},jl=e=>e[0]==="/",Tn=(e,t=[],n="")=>{var a;if(!Array.isArray(e))return[];for(const l of e){const o=n+(jl(l.path)?l.path:"/"+l.path);if((a=l.children)!=null&&a.length){Tn(l.children,t,o);continue}else t.push({...l,path:o})}return t},Nl=e=>Array.isArray(e)?Tn(He(e)):[],Fl=e=>e.sort((t,n)=>{var o,i;const a=((o=t.meta)==null?void 0:o.order)??1,l=((i=n.meta)==null?void 0:i.order)??0;if(typeof a!="number"||typeof l!="number")throw new TypeError("orderRoutes error: order must be a number!");return a===l?t.name?n.name?t.name.localeCompare(n.name):-1:1:a-l}),Bl=e=>{const{beforeEach:t}=e,{getRootPath:n}=Pe(),a=(l,o)=>l.path==="/"||o.path==="/login";t((l,o,i)=>{const s=Xe(G.token,"localStorage"),c=Xe(G.appMenuKey,"sessionStorage",{defaultValue:n.value}),{meta:d,name:p}=l;s!==null?a(l,o)?mt(!0):!ce(p,"Symbol")&&p&&Ka.includes(p)?i():Fn(d)?a(l,o)?c?i(c):mt(!0):i():mt(!0):a(l,o)?i():i("/")})},mt=(e=!0)=>{const{router:t}=Et(),{push:n,replace:a}=t,{getRootPath:l}=Pe();zt(G.appMenuKey,l.value,"localStorage"),e?a(l.value):n(l.value)},Vl=e=>{var n;const{meta:t}=e;t!=null&&t.ignoreAutoResetScroll||(n=we.value)==null||n.scrollTo({top:0,left:0,behavior:"smooth"})},$l=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()})},On=e=>{const{meta:t={}}=e,{hidden:n,sameLevel:a,env:l}=t,{MODE:o}=Ot();return!(a||n||l&&typeof l=="string"&&l!==o||l&&Array.isArray(l)&&!l.includes(o))};var Kl={pkg:{dependencies:{"@vueuse/core":"^11.1.0",axios:"^1.7.5",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10",echarts:"^5.5.0","html-to-image":"1.11.11",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.40.1",pinia:"^2.2.4","pinia-plugin-persistedstate":"^4.1.1","print-js":"^1.6.0",vue:"^3.5.12","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:"5.0.1"},layout:{copyright:"Copyright © 2022-present Ray"},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const je=lt("setting",()=>{const{appPrimaryColor:{primaryColor:e}}=Kl,{locale:t}=De(),{locale:n}=ur(),a=te({drawerPlacement:"right",primaryColorOverride:{common:{primaryColor:e,primaryColorHover:e,primaryColorPressed:e}},_appTheme:!1,appTheme:"light",menuTagSwitch:!0,breadcrumbSwitch:!0,localeLanguage:Kn(),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:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"},keepAliveConfig:{setupKeepAlive:!0,keepAliveExclude:[],maxKeepAliveLength:10},menuConfig:{collapsedWidth:64,collapsedMode:"width",collapsedIconSize:16,collapsedIndent:24,accordion:!1,menuSiderBarLogo:!0,iconSize:16}}),l=s=>{t(s),n(s),a.localeLanguage=s,zt(G.localeLanguage,s,"localStorage")},o=(s,c=.3)=>{const d=Uo(s,c),p={primaryColor:s,primaryColorHover:s,primaryColorPressed:s};a.primaryColorOverride.common=p;const h=document.body;h.style.setProperty("--ray-theme-primary-color",s),h.style.setProperty("--ray-theme-primary-fade-color",d)},i=(s,c,d)=>{vn(a,s,c,d)};return he(()=>a.appTheme,s=>{s?a.primaryColorOverride=Object.assign({},a.primaryColorOverride,Q.appNaiveUIThemeOverrides.dark,Q.appNaiveUIThemeOverridesCommon.dark):a.primaryColorOverride=Object.assign({},a.primaryColorOverride,Q.appNaiveUIThemeOverrides.light,Q.appNaiveUIThemeOverridesCommon.light)},{immediate:!0,once:!0}),{...Re(a),updateLocale:l,changePrimaryColor:o,updateSettingState:i}},{persist:{key:G.appPiniaSettingStore}}),Rn={...Zn,onRegister:{type:[Function,Array],default:null}},An={actionAlign:{type:String,default:"end"},open:{type:Boolean,default:!1},collapseToggleText:{type:Array,default:()=>["展开","收起"]},bordered:{type:Boolean,default:!0},onUpdateOpen:{type:[Function,Array],default:null},"onUpdate:open":{type:[Function,Array],default:null},...Qn};function Ul(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ne(e)}const Yr=M({name:"RCollapse",props:Object.assign({},Rn,{...An,open:{type:Boolean,default:!0},cols:{type:Number,default:4},bordered:{type:Boolean,default:!0}}),render(){const{$slots:e,$props:t}=this,{labelPlacement:n,showFeedback:a,...l}=t;return r(fs,F(l,{labelPlacement:"top",showFeedback:!1}),{default:()=>[r(Gl,l,Ul(e)?e:{default:()=>[e]})]})}}),Wl={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:()=>yn()},autoResizeObserverTarget:{type:Object,default:null},watchOptionsThrottleWait:{type:Number,default:500},nextTick:{type:Boolean,default:!0},setChartOptions:{type:Object,default:()=>bn()},onRegister:{type:[Function,Array],default:null}},ql=Wo(),Gt="__R_CHART_DOWN_LOAD_CHART__";ql.forEach(e=>{da(e.name,e.theme)});const Xr=M({name:"RChart",props:Wl,setup(e,{expose:t}){const{getAppTheme:n}=$(),a=ie("rayChartRef"),l=ie("rayChartWrapperRef"),o=Io();let i,s;const{echartTheme:c}=Q;let d;const p=w(()=>[{label:"下载图片",key:Gt,disabled:!(o.value&&o.value.getDom())}]),h=w(()=>({"--ray-chart-width":B(e.width),"--ray-chart-height":B(e.height)})),S=I(!1);let g;const m={aria:e.showAria},_=async()=>{var O;Me([ma,fa,ga,ha,va,ya,ba,_a]),Me([Sa,wa,Ca,Ta,Oa,Ra]),Me([Aa,Pa]),Me([ka]);try{Me((O=e.use)==null?void 0:O.filter(Boolean))}catch(P){console.error("[RChart register error]: ",P)}},f=()=>{if(o.value&&R(),e.theme==="default"){e.autoChangeTheme?u("dark"):u("");return}if(e.theme)u(e.theme);else{const O=e.autoChangeTheme&&n.value?`${c}-dark`:c;u(O)}},b=O=>{let P=Z(O);return P=(V=>Object.assign({},P,V))({aria:{enabled:e.showAria,decal:{show:e.showAria}}}),P},u=(O=c)=>{var ue;const P=a.value,j=b(e.options),{height:V,width:U}=P.getBoundingClientRect(),{onSuccess:Y,onError:H}=e;try{o.value=pa(P,O,{width:U===0?200:void 0,height:V===0?200:void 0}),Y&&D(Y,o.value),e.nextTick?(o.value.setOption({}),q(()=>{var X;j&&((X=o.value)==null||X.setOption(j))})):j&&((ue=o.value)==null||ue.setOption(j))}catch(X){throw H&&D(H),new Error(`[RChart render error]: ${X}`)}finally{const{onFinally:X}=e;X&&D(X)}},v=()=>{var O;return!!((O=o.value)!=null&&O.isDisposed())},R=()=>{var O;v()||(O=o.value)==null||O.dispose()},C=()=>{o.value&&o.value.resize()},y=(O,P)=>{if(O===Gt&&!v()){const{filename:V,...U}=e.downloadOptions;qo(o.value.getDataURL(U),V??`${new Date().getTime()}`)}const{onDropdownSelect:j}=e;j&&D(j,O,P)},x=()=>{var P;if(e.autoResize&&(i||(i=kt(C,500)),s||(s=xo(e.autoResizeObserverTarget||l,i))),(P=o.value)!=null&&P.getDom()||!S.value&&e.intersectionObserver)return;f(),g==null||g.stop();const{onRegister:O}=e;O&&o.value&&D(O,o.value,x,A)},A=()=>{R(),i==null||i.cancel(),s==null||s.stop(),g==null||g.stop(),g=null,i=null,s=null};return he(()=>n.value,()=>{e.autoChangeTheme&&(R(),f())}),ve(()=>{var O,P;e.intersectionObserver&&(g=ko(e.intersectionObserverTarget||l,([j])=>{S.value=j.isIntersecting},e.intersectionOptions)),e.watchOptions?d=xa(()=>e.options,j=>{var Y;const V=b(j),U=Object.assign({},bn(),e.setChartOptions);(Y=o.value)==null||Y.setOption(V,U)},{deep:!0,throttle:e.watchOptionsThrottleWait}):d==null||d(),e.loading?(O=o.value)==null||O.showLoading(yn(e.loadingOptions)):(P=o.value)==null||P.hideLoading(),e.showAria!==m.aria&&o.value&&(o.value.setOption(b(e.options)),m.aria=e.showAria),S.value&&!v()&&x()}),t(),Lo(async()=>{await _()}),Ee(()=>{x()}),mn(()=>{A(),d==null||d()}),{rayChartRef:a,cssVarsRef:h,rayChartWrapperRef:l,moreDropDownOptions:p,dropdownSelect:y}},render(){const{title:e,contentStyle:t,preset:n,moreDropDownOptions:a,dropdownSelect:l,bordered:o,dropdownOptions:i}=this,{cardExtra:s}=this.$slots;return n==="card"?r(nt,{class:"ray-chart",ref:"rayChartWrapperRef",style:[this.cssVarsRef],contentStyle:t,bordered:o,embedded:!0},{default:ge(r("div",{class:"ray-chart__container",ref:"rayChartRef"},null)),header:ge(e,{defaultElement:r("div",{style:"display: none;"},null)}),"header-extra":ge(s,{defaultElement:r(xn,{iconSize:18,cursor:"pointer",options:i||a,trigger:"click",onSelect:l.bind(this),placement:"bottom-end"},null)})}):r("div",{class:"ray-chart",style:[this.cssVarsRef],ref:"rayChartWrapperRef"},[r("div",{class:"ray-chart__container",ref:"rayChartRef"},null)])}}),Jr=()=>{let e,t,n;const a=(c,d,p)=>{c&&(e=c,t=p,n=d)},l=()=>{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[a,{getChartInstance:l,isDisposed:()=>{var c;return!!((c=l().echartInst)!=null&&c.isDisposed())},dispose:()=>l().dispose.call(null),render:()=>l().render.call(null)}]},Gl=M({name:"RCollapseGrid",props:An,setup(e){const t=I(!e.open),n=w(()=>({"--r-collapse-grid-action-align":e.actionAlign})),a=()=>{const{onUpdateOpen:o,"onUpdate:open":i}=e;t.value=!t.value,o&&D(o,t.value),i&&D(i,t.value)},l=o=>r("div",{class:"collapse-icon",onClick:a.bind(this)},[r("span",null,[o?e.collapseToggleText[0]:e.collapseToggleText[1]]),r(k,{customClassName:`collapse-icon--arrow ${o?"":"collapse-icon--arrow__expanded"}`,name:"expanded",size:"14"},null)]);return ve(()=>{t.value=!e.open}),{modelCollapsed:t,collapseClick:a,CollapseIcon:l,cssVars:n}},render(){const{$slots:{collapse:e,action:t,default:n},CollapseIcon:a,$props:l,modelCollapsed:o,xGap:i,yGap:s,collapsedRows:c,cssVars:d,bordered:p}=this;return r(nt,{bordered:p,style:[d]},{default:()=>r(eo,F({class:"ray-collapse-grid"},l,{collapsed:o,xGap:i||12,yGap:s||12,collapsedRows:c}),{default:()=>[n==null?void 0:n(),r(to,{suffix:!0,class:"ray-collapse-grid__suffix--btn"},{default:()=>[r(E,{justify:"end",align:"center"},{default:()=>[t==null?void 0:t(),e?e(o):a(o)]})]})]})})}}),Hl={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}},k=M({name:"RIcon",props:Hl,setup(e){const t=w(()=>`#${e.prefix}-${e.name}`),n=w(()=>({"--ray-icon-width":e.width?B(e.width):B(e.size),"--ray-icon-height":e.height?B(e.height):B(e.size),"--ray-icon-depth":e.depth,"--ray-icon-cursor":e.cursor,"--ray-icon-color":e.color}));return{symbolId:t,cssVars:n,iconClick:l=>{const{onClick:o}=e;o&&D(o,l)}}},render(){return r("span",{class:["ray-icon",this.customClassName],style:[this.cssVars],onClick:this.iconClick.bind(this)},[r("svg",{RayIconAttribute:"ray-icon",ariaHidden:!0},[r("use",F({"xlink:href":this.symbolId},{fill:this.color}),null)])])}}),Yl={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}},Zr=M({name:"RIframe",props:Yl,setup(e,{expose:t}){const n=w(()=>({"--ray-iframe-frameborder":B(e.frameborder),"--ray-iframe-width":B(e.width),"--ray-iframe-height":B(e.height)})),a=ie("iframeRef"),l=I(!0),o=s=>{l.value=!1;const{onSuccess:c}=e;c&&D(c,a.value,s)},i=s=>{l.value=!1;const{onError:c}=e;c&&D(c,s)};return Le(a,"load",o),Le(a,"error",i),t({iframeInst:a}),{cssVars:n,iframeRef:a,spinShow:l}},render(){return r("div",{class:["ray-iframe",this.iframeWrapperClass],style:[this.cssVars]},[r(ot,F(this.customSpinProps,{show:this.spinShow}),{...this.$slots,default:()=>r("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)})])}}),Xl={...no,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}},Jl=(e,t,n)=>{const{scheduler:a}=n??{};return new Promise(l=>{setTimeout(()=>{const o=t==="card"?".n-card-header__main":".n-dialog__title";if(e){const i=Ut(e).draggable({inertia:!0,autoScroll:!0,allowFrom:o,modifiers:[Ut.modifiers.restrictRect({restriction:"parent",endOnly:!0})],listeners:{move:s=>{a==null||a(s)}}}).resizable(!1);l(i)}},30)})},Pn=(e,t)=>{const n=typeof e=="string"?document.querySelector(e):e;return new Promise((a,l)=>{if(n){n.setAttribute("can-drag","true");const{preset:o,dargCallback:i}=t;let{x:s,y:c}=t;Jl(n,o,{scheduler:d=>{const p=d.target;s+=d.dx,c+=d.dy,p.style.transform=`translate(${s}px, ${c}px)`,i==null||i(s,c,d)}}).then(d=>{a(d)})}else l()})},Zl="r-modal__preset-card--fullscreen",kn="r-modal",Te={width:"--r-modal-width",cardWidth:"--r-modal-card-width",dialogWidth:"--r-modal-dialog-width"},Qr=M({name:"RModal",props:Xl,setup(e){const t=w(()=>({[Te.width]:B(e.width??600),[Te.cardWidth]:B(e.cardWidth??600),[Te.dialogWidth]:B(e.dialogWidth??446)})),n=Je();let a;const l={x:0,y:0},o=w(()=>e.preset==="card"&&e.fullscreen);return he(()=>e.show,i=>{i&&e.dad&&(e.preset==="card"||e.preset==="dialog")?q(()=>{const s=document.getElementById(n);s&&Pn(s,{preset:e.preset,x:l.x,y:l.y,dargCallback:(c,d)=>{l.x=c,l.y=d}}).then(c=>{a=c}),e.memo&&s&&(s.style.transform=`translate(${l.x}px, ${l.y}px)`)}):(a==null||a.unset(),a=null)},{immediate:!0}),{cssVars:t,isFullscreenCardType:o,uuidEl:n}},render(){const{$props:e,$slots:t,$attrs:n}=this,{preset:a,...l}=e,{cssVars:o,uuidEl:i,isFullscreenCardType:s}=this;return r(on,F({class:[kn,s?Zl:""],style:[o,s?"height: 100vh":""],preset:a},{id:i},l,n),{...t})}}),ei=()=>{const{create:e,destroyAll:t}=oo();return{create:a=>{const{content:l,...o}=a;let i=l;o.preset==="card"&&o.fullscreen&&(i=()=>at(xt,{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 l=="function"?l():l}));const{preset:s,dad:c,fullscreen:d,width:p,cardWidth:h,dialogWidth:S}=a,g=e({...o,content:i}),{key:m}=g,_={[Te.width]:B(p??600),[Te.cardWidth]:B(h??600),[Te.dialogWidth]:B(S??446)};return q(()=>{const[f]=Ze(`[internalkey="${m}"]`)||[];if(f){if(c&&Pn(f,{preset:s,x:0,y:0}),d&&s==="card"){const b=f.querySelector(".n-card__content");b&&qe(b,{maxHeight:"calc(100vh - 9px - var(--n-padding-bottom) - var(--n-padding-bottom) - var(--n-padding-top))",overflowY:"hidden",padding:"0"}),qe(f,{width:"100%",height:"100vh"})}qe(f,_),_n(f,kn)}}),g},destroyAll:t}},Ql={...ao,icon:{type:String,default:"more"},iconSize:{type:Number,default:14},cursor:{type:String,default:"default"}};function es(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ne(e)}const xn=M({name:"RMoreDropdown",props:Ql,render(){let e;const{iconSize:t,cursor:n,icon:a}=this,{default:l}=this.$slots;return r(Oe,F(this.$props,this.$attrs,{placement:"bottom-start"}),es(e=ge(l,{defaultElement:r(k,{name:a,size:t,cursor:n},null)}))?e:{default:()=>[e]})}}),Ae={...lo,tableFlexHeight:{type:[String,Number],default:void 0},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:!0},bordered:{type:Boolean,default:!0},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}},ee={tableIconSize:"18",tableKey:Symbol("r-table")},ts=[{label:"斑马条纹",value:"striped"},{label:"表格边框",value:"bordered"}],ns=M({name:"TableSizeSelect",props:{onChangeSize:{type:[Function,Array],default:null},...Ae},setup(e){return{size:I(e.size),sizeOptions:[{label:"默认",value:"medium"},{label:"紧凑",value:"small"},{label:"宽松",value:"large"}],updatePopselectValue:l=>{const{onChangeSize:o}=e;o&&D(o,l)}}},render(){return r(an,{value:this.size,"onUpdate:value":e=>this.size=e,options:this.sizeOptions,trigger:"click",onUpdateValue:this.updatePopselectValue.bind(this)},{default:()=>[r(k,{name:"adjustment",size:ee.tableIconSize,cursor:"pointer"},null)]})}}),os=M({name:"TableFullscreen",setup(){const{wrapperRef:e}=fn(ee.tableKey,{}),[t,{toggleFullscreen:n,isEnabled:a}]=hn(e);return{toggleFullscreen:n,isEnabled:a}},render(){const{toggleFullscreen:e,isEnabled:t,$t:n}=this;return r(k,{name:"fullscreen",size:ee.tableIconSize,cursor:"pointer",onClick:()=>{t||window.$message.warning(n("globalMessage.isEnabledFullscreen")),e()}},null)}}),as=()=>r(k,{name:"draggable",size:14,cursor:"grab"},null),Ht=({icon:e,title:t,onClick:n,customClassName:a})=>r(Ie,{showArrow:!1},{trigger:()=>r(k,{name:e,size:ee.tableIconSize,cursor:"pointer",customClassName:a,onClick:n==null?void 0:n.bind(null)},null),default:()=>t}),Rt=(e,t)=>{if(!t)return[null,null];for(let n=0;nHe(e.columns).filter(c=>c.type?(t=c,!1):!0).map((c,d)=>{const{key:p,title:h,children:S,fixed:g,isResizable:m,..._}=c,f=g==="left",b=g==="right",u={..._,title:h,key:p,fixed:g,isLeftFixedActivated:f,isRightFixedActivated:b,isResizable:m};return{...u,suffix:()=>r(E,{style:"padding-left: 32px;"},{default:()=>[r(Ht,{icon:"row_head",title:"固定在列首",customClassName:f?ft:"",onClick:o.bind(this,"left",u,d)},null),r(Ie,{showArrow:!1},{trigger:()=>r(k,{name:"resize_h",size:ee.tableIconSize,cursor:"pointer",customClassName:m?ft:"",onClick:l.bind(this,u,d)},null),default:()=>"修改列宽"}),r(Ht,{icon:"row_end",title:"固定在列尾",customClassName:b?ft:"",onClick:o.bind(this,"right",u,d)},null)]})}}),set:()=>{}}),a=s=>{const{onUpdateColumn:c}=e;c&&D(c,s)},l=(s,c)=>{s.isResizable=!s.isResizable,s.resizable=s.isResizable,n.value[c]=s,a(n.value)},o=(s,c,d)=>{const p=`${s}FixedActivated`,h=`${s==="left"?"right":"left"}FixedActivated`;c[h]=!1,c[p]=!c[p],c[p]?c.fixed=s:c.fixed=void 0,n.value[d]=c,a(n.value)};return{treeDataSource:n,treeDrop:({node:s,dragNode:c,dropPosition:d})=>{const[p,h]=Rt(c,n.value);if(p===null||h===null)return;p.splice(h,1);const[S,g]=Rt(s,n.value);S===null||g===null||(d==="before"?S.splice(g,0,c):S.splice(g+1,0,c),nn(t)||S.unshift(t),a(S))}}},render(){return r(Ie,{displayDirective:"show",trigger:"click",showArrow:!1},{trigger:()=>r(k,{name:"setting",size:ee.tableIconSize,cursor:"pointer",customClassName:"r-table__setting"},null),default:()=>r(so,{class:"r-table__c-tree",data:this.treeDataSource,blockLine:!0,draggable:!0,keyboard:!1,labelField:"title",selectable:!1,renderSwitcherIcon:as.bind(this),onDrop:this.treeDrop.bind(this)},null)})}}),ss=M({name:"TablePrint",props:Ae,setup(e){const{wrapperRef:t}=fn(ee.tableKey,{});return{printTableClick:()=>{const{printTableOptions:{printOptions:a={},domToImageOptions:l}={},title:o}=e;(a.documentTitle===""||a.documentTitle===void 0||a.documentTitle===null)&&(a.documentTitle=typeof o=="string"?o:""),Sn(t,{printOptions:a,domToImageOptions:l})}}},render(){return r(k,{name:"print",size:ee.tableIconSize,cursor:"pointer",onClick:this.printTableClick.bind(this)},null)}}),rs=M({name:"TablePropsSelect",props:{...Ae,onPopselectChange:{type:[Function,Array],default:null},onInitialed:{type:[Function,Array],default:null}},setup(e){const t=I(!1),n=I([]),a=o=>{const{onPopselectChange:i}=e;i&&D(i,o)};return(()=>{const{striped:o,bordered:i,onInitialed:s}=e;o&&n.value.push("striped"),i&&n.value.push("bordered"),s&&D(s,n.value)})(),{propsPopselectValue:n,popoverShow:t,updatePopselectValue:a}},render(){return r(an,{value:this.propsPopselectValue,"onUpdate:value":e=>this.propsPopselectValue=e,options:ts,trigger:"click",multiple:!0,onUpdateValue:this.updatePopselectValue.bind(this)},{default:()=>[r(k,{name:"expanded",size:ee.tableIconSize,cursor:"pointer",style:"transform: rotate(270deg);"},null)]})}});function is(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ne(e)}const cs=M({name:"RTable",inheritAttrs:!1,props:Ae,setup(e,t){const{expose:n,emit:a}=t,l=ie("rTableInst"),o=ie("wrapperRef"),i=Je(16),s=Je(16),c=te({x:0,y:0,showContextMenu:!1}),d=te({size:e.size}),p=I(Object.assign({striped:!1,bordered:!1},ze(e,"striped","bordered"))),h=(u,v)=>{const{onContextMenuClick:R}=e;R&&D(R,u,v),c.showContextMenu=!1},S=(u,v)=>{var C;return{...(C=e.rowProps)==null?void 0:C.call(e,u,v),onContextmenu:e.disabledContextMenu?void 0:y=>{y.preventDefault(),c.showContextMenu=!1,q().then(()=>{c.showContextMenu=!0,c.x=y.clientX,c.y=y.clientY})}}},g=u=>{d.size=u},m=u=>{const{onUpdateColumns:v,"onUpdate:columns":R}=e;v&&D(v,u),R&&D(R,u)},_=()=>{const{toolOptions:u}=e;return u==null?void 0:u.filter(Boolean).map(v=>typeof v=="function"?v():v)},f=u=>{Object.keys(p.value).forEach(R=>{p.value[R]=u.includes(R)})},b=u=>{const{tool:v}=u;if(!v)return;const R=()=>r(E,{align:"center"},{default:()=>[r(ss,u,null),r(ns,F(u,{onChangeSize:g.bind(this)}),null),r(os,null,null),r(ls,F(u,{onUpdateColumn:m.bind(this)}),null),r(rs,F(u,{onPopselectChange:f.bind(this),onInitialed:f.bind(this)}),null)]});return e.toolOptions?e.coverTool?()=>{let C;return r(E,{align:"center"},is(C=_())?C:{default:()=>[C]})}:()=>r(E,{align:"center"},{default:()=>[R(),_()]}):R};return Ee(()=>{const{onRegister:u}=e;u&&l.value&&D(u,l.value,{uuidTable:s,uuidWrapper:i,wrapperRef:o})}),Eo(ee.tableKey,{uuidTable:s,uuidWrapper:i,wrapperRef:o}),n(),{uuidWrapper:i,uuidTable:s,contextMenuReactive:c,rTableInst:l,combineRowProps:S,contextMenuSelect:h,privateReactive:d,tool:b,wrapperRef:o,propsPopselectValue:p}},render(){const{$props:e,$attrs:t,$slots:n,uuidTable:a,contextMenuReactive:l,uuidWrapper:o,privateReactive:i,propsPopselectValue:s}=this,{class:c,...d}=t,{tool:p,combineRowProps:h,contextMenuSelect:S}=this,{renderWrapperHeader:g,wrapperBordered:m,disabledContextMenu:_,contextMenuOptions:f,title:b,tableFlexHeight:u,cardProps:v,...R}=e;return r(nt,F(v,{id:o},d,{ref:"wrapperRef",bordered:m,class:c}),{default:()=>r(gn,null,[r(ro,F({id:a},R,s,{rowProps:h.bind(this),size:i.size,ref:"rTableInst",style:{height:u!=null?B(u):null}}),{...n}),_?null:r(Oe,{show:l.showContextMenu,placement:"bottom-start",trigger:"manual",x:l.x,y:l.y,options:f,onClickoutside:()=>l.showContextMenu=!1,onSelect:S.bind(this)},null)]),header:g?ge(b,{defaultElement:r("div",{style:"display: none;"},null)}):null,"header-extra":p(e),footer:()=>{var C;return(C=n.tableFooter)==null?void 0:C.call(n)},action:()=>{var C;return(C=n.tableAction)==null?void 0:C.call(n)}})}}),us=()=>{const e=I();let t={};const n=(g,m)=>{g&&(e.value=g,t=m)},a=()=>{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:a,clearFilters:()=>a().clearFilters.call(null),clearSorter:()=>a().clearSorter.call(null),downloadCsv:g=>a().downloadCsv.call(null,g),filters:g=>a().filters.call(null,g),page:g=>a().page.call(null,g),scrollTo:g=>a().scrollTo(g),sort:(g,m)=>a().sort.call(null,g,m),print:g=>{const{uuidWrapper:m}=t;if(m){const _=document.getElementById(m);Sn(_,g)}},filter:g=>a().filter.call(null,g)}]},Mn=(e,t,n)=>{var a;if(e.length)for(const l of e){if(l[t]===n)return l;if((a=l==null?void 0:l.children)!=null&&a.length){const o=Mn(l.children,t,n);if(o)return o}}},Yt=e=>{const t=Z(e);return t?t.findIndex(a=>{const{type:l,multiple:o}=a;if(l==="selection"&&(o==null||o===!0))return!0})!==-1:!0},ds=(e,t,n,a)=>{const l=Z(e);return l?t.reduce((o,i)=>{const s=Z(n).findIndex(d=>d[a]===i);if(s!==-1)return o.push(Z(n)[s]),o;const c=l.findIndex(d=>d[a]===i);return c!==-1&&o.push(l[c]),o},[]):n},ti=(e,t,n)=>{const a=I([]),l=I([]),{rowKey:o="key",onChange:i}=n||{},s=w(()=>Yt(t)),c=(m,_,f)=>{a.value=m,l.value=Z(ds(e,m,l,o)),i==null||i(m,l.value,f),Yt(t)},d=()=>a.value,p=()=>l.value,h=()=>{a.value=[],l.value=[],i==null||i(a.value,l.value,{row:void 0,action:"uncheckAll"})},S=m=>{if(m==null)return;let _;a.value=a.value.filter(f=>f!==m),l.value=l.value.filter(f=>f[o]===m?(_=f,!1):!0),i==null||i(a.value,l.value,{row:_,action:"uncheck"})},g=m=>{if(a.value.includes(m))return;const _=!s.value&&a.value.length>=1,f=Mn(Z(e)||[],o,m);_?a.value=[m]:a.value.push(m),f&&(_?l.value=[f]:l.value.push(f),i==null||i(a.value,l.value,{row:f,action:"check"}))};return It(()=>{h()}),[a,{checkedRows:l,checkedRowKeysBind:c,getKeys:d,getRows:p,clearAll:h,clearKey:S,selectKey:g}]},ps={transitionPropName:"fade",transitionMode:"out-in",transitionAppear:!0},ms=M({name:"RTransitionComponent",__name:"index",props:Do({transitionPropName:{},transitionMode:{},transitionAppear:{type:Boolean}},ps),setup(e){const{getKeepAliveInclude:t}=ks(),{getKeepAliveConfig:n}=$();return(a,l)=>{const o=No("RouterView");return be(),jo("div",null,[r(o,null,{default:pt(({Component:i,route:s})=>[i?(be(),xe(Ma,{key:0,name:a.transitionPropName,mode:a.transitionMode,appear:a.transitionAppear},{default:pt(()=>[(be(),xe(Fo,null,{default:pt(()=>[Z(n).setupKeepAlive?(be(),xe(Bo,{key:0,max:Z(n).maxKeepAliveLength,include:Z(t),exclude:Z(n).keepAliveExclude},[(be(),xe($t(i),{key:s.fullPath}))],1032,["max","include","exclude"])):(be(),xe($t(i),{key:s.fullPath}))]),_:2},1024))]),_:2},1032,["name","mode","appear"])):Vo("",!0)]),_:1})])}}}),fs=M({name:"RForm",props:Rn,setup(e,{expose:t}){const n=ie("formRef");return Ee(()=>{const{onRegister:a}=e;a&&n.value&&D(a,n.value)}),t(),{formRef:n}},render(){const{$attrs:e,$props:t,$slots:n}=this;return r(ln,F(e,t,{ref:"formRef"}),{...n})}}),ni=(e,t)=>{const n=I(),a=d=>{d&&(n.value=d)},l=()=>{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[a,{getFormInstance:l,validate:(d,p)=>l().validate.call(null,d,p),restoreValidation:()=>l().restoreValidation.call(null),formModel:()=>He(e)||{},formRules:()=>He(t)||{}}]},gs=["addTabClass","addTabStyle","paneClass","paneStyle","paneWrapperStyle","tabClass","tabStyle","type","label","addable","closable","onAdd","onClose","placement","animated","justifyContent","builtinThemeOverrides","displayDirective"],hs={tabPaddingSmallSegment:"4px 7px",tabPaddingMediumSegment:"6px 11px",tabPaddingLargeSegment:"8px 11px"},vs=tt({...io,options:{type:Array,default:()=>[]},width:{type:[Number,String],default:"fitContent"}},...gs);function ys(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ne(e)}const At=e=>{const{icon:t,label:n}=e;return t?r(E,{align:"center",wrap:!1,size:"small"},{default:()=>{var a;return[(a=ge(t))==null?void 0:a(),r("div",null,[n])]}}):n},bs=e=>{if(typeof e.popover=="string")return r(Ie,null,{trigger:()=>At(e),default:()=>e.popover});if(ce(e.popover,"Object")){const{popover:t}=e,{label:n,...a}=t;return r(Ie,a,{trigger:()=>At(e),default:()=>n})}},_s=M({name:"RSegment",props:vs,setup(e,{expose:t}){const n=w(()=>{const{width:a}=e;let l="";switch(a){case"block":l="100%";break;case"fitContent":l="fit-content";break;default:l=typeof a=="number"?B(a):"fit-content"}return{"--r-segment-width":l}});return t(),{cssVars:n}},render(){let e;const{$props:t,options:n,cssVars:a,themeOverrides:l}=this;return r(uo,F(t,{ref:"segmentRef",style:[a],class:"r-segment",type:"segment",animated:!0,themeOverrides:Object.assign({},hs,l)}),ys(e=n.map(o=>r(co,{key:o.key,name:o.key,tab:o.popover?bs(o):At(o),disabled:o.disabled},{...o.slots})))?e:{default:()=>[e]})}}),Ss={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]}},oi=M({name:"RBarcode",props:Ss,setup(e){const t=ie("barcodeRef"),n=w(()=>({"--r-barcode-width":B(e.width),"--r-barcode-height":B(e.height)}));let a;const l=()=>{try{const{format:o,text:i,options:s,onSuccess:c}=e,d=Object.assign({},s,{format:o});Ko(t.value,i!=null?i.toString():"",d),c&&D(c,i,o,s)}catch(o){const{onError:i}=e;i&&D(i,o)}finally{const{onFinally:o}=e;o&&D(o)}};return ve(()=>{e.watchText?a=he(()=>e.text,l):a==null||a()}),Ee(()=>{l()}),mn(()=>{a==null||a()}),{barcodeRef:t,cssVars:n}},render(){const{barcodeRender:e,loading:t,cssVars:n}=this,a=["r-barcode",{"r-barcode--loading":t}];return r(ot,{class:"r-barcode-spin",show:t},{default:()=>[e==="canvas"?r("canvas",{class:a,style:n,ref:"barcodeRef"},null):r("svg",{class:a,style:n,ref:"barcodeRef"},null)]})}}),ws={...tt(Ae,["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}};function Cs(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ne(e)}const ai=M({name:"RTablePro",props:ws,setup(e){const[t,{clearFilters:n,clearSorter:a,downloadCsv:l,filters:o,page:i,scrollTo:s,sort:c,print:d,filter:p}]=us(),[h,{getPage:S,getPageSize:g,setCallback:m,setItemCount:_,resetPagination:f,getItemCount:b}]=mr(void 0,{prefix:A=>`共 ${A.itemCount} 条`}),u=w(()=>e.request),v=()=>({getItemCount:b,getPage:S,getPageSize:g}),R=()=>{const{onTablePaginationUpdate:A}=e;A&&D(A,v())},C=A=>{const O=Object.assign({},e.requestConfig,A),{params:P,formatRangeTime:j}=O;return j!=null&&j.length&&P&&j.forEach(U=>{const{key:Y,target:H}=U,ue=P[Y];if(ue&&(H!=null&&H.length)){const[X,Fe]=ue;P[H[0]]=X,P[H[1]]=Fe}else P[Y]=null,P[H[0]]=null,P[H[1]]=null}),Object.assign({},P,{page:S(),pageSize:g()})},y=A=>{var P;f();const O=C(A);(P=u.value)==null||P.call(u,O)},x=A=>{var P;const O=C(A);(P=u.value)==null||P.call(u,O)};return ve(()=>{_(e.paginationCount),m(()=>{const{manual:A}=e;A||x(),R()})}),Ee(()=>{const{onRegister:A}=e;A&&D(A,{getTablePagination:v,runTableRequest:y,clearFilters:n,clearSorter:a,downloadCsv:l,filters:o,page:i,scrollTo:s,sort:c,print:d,filter:p,getCurrentTableRequestParams:C})}),{register:t,paginationRef:h}},render(){const{register:e,$props:t,paginationRef:n,$slots:a}=this,{onRegister:l,showPagination:o,...i}=t;return r(cs,F(i,{onRegister:e,pagination:o?n:void 0}),Cs(a)?a:{default:()=>[a]})}}),li=()=>{const e=I(),t=m=>{m&&(e.value=m)},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: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,_)=>n().sort.call(null,m,_),getTablePagination:()=>n().getTablePagination.call(null),runTableRequest:m=>n().runTableRequest.call(null,m),print:m=>n().print.call(null,m),getCurrentTableRequestParams:m=>n().getCurrentTableRequestParams.call(null,m)}]},Ts=(e,t,n)=>!e||typeof e!="object"?!1:e[t]===n,zn=(e,t,n)=>{const a=[];if(Ts(e,t,n))return a.push(e),a;if(e.children&&e.children.length>0)for(const l of e.children){const o=zn(l,t,n);o.length>0&&a.push(e,...o)}return a},Os=(e,t,n)=>{const a=[];for(const l of e){const o=zn(l,t,n);o.length>0&&a.push(...o)}return a},Xt=e=>{const{breadcrumbLabel:t}=e;if(!t)return;const{sideBarLogo:n}=je(),a=n?n.title:"";document.title=t+" - "+a},Rs=e=>{const{meta:{icon:t}}=e;if(!t)return;if(ce(t,"Object"))return()=>t;const{menuConfig:n}=je(),{collapsed:a}=Lt(),l=at(k,{name:t,size:a?n.collapsedIconSize:n.iconSize,cursor:"pointer"},{});return()=>l},In=e=>{const{meta:{extra:t}}=e;if(!t)return;const{show:n}=t;if(n===!1)return;const{t:a}=De(),{label:l,icon:o,type:i,i18nLabel:s}=t,c={type:"primary",size:"small",round:!0,bordered:!1,strong:!0},d=()=>s?a(s):l||null,p=()=>o&&(s||l)||!o&&(s||l)?null:{"padding-right":"0"};if(ce(t,"Object"))return()=>at(po,{...c,type:i||"primary",style:p()},{default:()=>d(),icon:()=>o})},Jt=()=>{const{getRootPath:e}=Pe();return Xe(G.appMenuKey,"sessionStorage",{defaultValue:e.value})},Ln=()=>Fl(Dl()),As=()=>Nl(Ln()),Pt=["redirect","breadcrumbLabel","children","key","meta","name","path","show","fullPath"];let Ke;const En=(e,t)=>{var n;if(Ke&&Kt(Ke.fullPath,t))return Ke;for(const a of e){if(Kt(a.fullPath,t))return Ke=a,a;if((n=a.children)!=null&&n.length){En(a.children,t);continue}}},Lt=lt("menu",()=>{const{push:e,getRoutes:t}=st(),n=sa(),{t:a}=De(),{setKeepAliveInclude:l}=xs(),o=te({menuKey:Jt(),options:[],collapsed:!1,menuTagOptions:[],breadcrumbOptions:[],currentMenuOption:null}),i=I(!0),s=(u,v,R)=>{vn(o,u,v,R)},c=u=>{const{meta:v}=u,{i18nKey:R,noLocalTitle:C}=v,y=w(()=>R?a(`${R}`):C),x={...u,key:u.fullPath,label:()=>at(sn,null,{default:()=>y.value}),breadcrumbLabel:y.value},A=Object.assign({},x,{icon:Rs(u),extra:In(u)});return u.fullPath===Jt()&&(o.currentMenuOption=A),A.show=On(A),A},d=u=>{o.breadcrumbOptions=Os(o.options,"fullPath",u)},p=(u,v=!0)=>{const C=Array.isArray(u)?[...u]:[u];v?o.menuTagOptions.push(...C):o.menuTagOptions=C},h=(u,v)=>{o.menuTagOptions.find(C=>C.fullPath===u)||o.menuTagOptions.push(v)},S=(u,v,R)=>{const{meta:C}=v;if(C.windowOpen)window.open(C.windowOpen);else{e({path:String(u),query:R});const{sameLevel:y}=C;if(l(v),Xt(v),!y)h(u,v),d(u),o.menuKey=u,o.currentMenuOption=v,zt(G.appMenuKey,u);else{const x=ze(c(v),Pt);o.breadcrumbOptions.find(O=>O.key===x.key)||o.breadcrumbOptions.push({...x,fullPath:String(x.key)})}}},g=async(u,v)=>{const[R]=u.split("?"),C=t().find(y=>y.path===R);if(!((C==null?void 0:C.path)==="/"||!(C!=null&&C.path)||(C==null?void 0:C.path)==="/login")&&C){const y=ze(C,Pt);S(R,c({...y,fullPath:y.path}),v)}},m=()=>new Promise(u=>{const v=(R,C)=>{var x;const y=[];for(const A of R){let O=`${C.endsWith("/")?C:C+"/"}${A.path}`;if(O=O.replace(/\/+/g,"/"),(x=A.children)!=null&&x.length)A.children=v(A.children,O);else if(!Fn(A.meta))continue;y.push(c({...A,fullPath:O}))}return y};if(o.options=v(Ln(),""),o.currentMenuOption){const{currentMenuOption:R}=o;o.breadcrumbOptions.length||d(R.key),h(R.fullPath,R),Xt(R)}u()}),_=u=>o.collapsed=u,f=(u,v=1)=>o.menuTagOptions.splice(u,v),b=async()=>{i.value&&(await m(),i.value=!1)};return he(()=>n.fullPath,async(u,v)=>{await b(),u!==v&&await g(u,n.query)},{immediate:!0}),{...Re(o),changeMenuModelValue:S,collapsedMenu:_,spliceMenTagOptions:f,setMenuTagOptions:p,resolveOption:c,updateMenuState:s}},{persist:{key:G.appPiniaMenuStore,storage:window.localStorage,pick:["breadcrumbOptions","menuKey","menuTagOptions","collapsed"]}}),Dn=lt("signing",()=>{const e=te({signingCallback:{}}),t=l=>new Promise((o,i)=>{nn(l)?i({code:1,message:"登陆失败",data:null}):(e.signingCallback={role:"admin",name:l.name,avatar:"https://avatars.githubusercontent.com/u/51957438?v=4"},o({code:0,message:"登陆成功",data:e.signingCallback}))}),n=l=>{const{closeAll:o}=$n(),{appPiniaMenuStore:i,appPiniaSigningStore:s,token:c,signing:d,appMenuKey:p}=G;window.$message.info("账号退出中..."),_e("__all_sessionStorage__","sessionStorage"),_e(s,"localStorage"),_e(i,"localStorage"),_e(c,"localStorage"),_e(d,"localStorage"),_e(p,"localStorage"),o(),l&&(window.location.replace("#/"),setTimeout(()=>{window.location.reload()},0))},a=()=>{n(!0)};return{...Re(e),signing:t,logout:a,clearSigningCallback:n}},{persist:{key:G.appPiniaSigningStore,pick:["signingCallback"],storage:window.localStorage}}),jn=lt("keepAlive",()=>{const e=te({keepAliveInclude:[]}),t=()=>e.keepAliveInclude.length,n=l=>{const o=t(),{name:i,meta:{keepAlive:s}}=l,{maxKeepAliveLength:c}=je().keepAliveConfig;if(s){if(o=c&&(e.keepAliveInclude.splice(0,1),e.keepAliveInclude.push(i))}},a=()=>e.keepAliveInclude;return{...Re(e),setKeepAliveInclude:n,getKeepAliveInclude:a}},{persist:{key:G.appPiniaKeepAliveStore,storage:window.sessionStorage,pick:["keepAliveInclude"]}}),ye=()=>{const e=Lt(),t=w(()=>e.options),n=w(()=>e.breadcrumbOptions),a=w(()=>e.menuKey),l=w(()=>{const{getRootPath:s}=Pe();return e.menuTagOptions.map((c,d,p)=>(c.key===a.value&&c.key!==s.value?c.closeable=!0:c.closeable=!1,c.key===s.value&&(c.closeable=!1),p.length<=1&&(c.closeable=!1),c))}),o=w(()=>e.currentMenuOption),i=w(()=>e.collapsed);return{getMenuOptions:t,getBreadcrumbOptions:n,getMenuKey:a,getMenuTagOptions:l,getCurrentMenuOption:o,getCollapsed:i}},Ne=()=>{const{changeMenuModelValue:e,collapsedMenu:t,spliceMenTagOptions:n,setMenuTagOptions:a,resolveOption:l,updateMenuState:o}=Lt();return{changeMenuModelValue:e,collapsedMenu:t,spliceMenTagOptions:n,setMenuTagOptions:a,resolveOption:l,updateMenuState:o}},$=()=>{const e=je(),t=w(()=>e.drawerPlacement),n=w(()=>e.primaryColorOverride),a=w(()=>e._appTheme),l=w(()=>e.appTheme),o=w(()=>e.menuTagSwitch),i=w(()=>e.breadcrumbSwitch),s=w(()=>e.localeLanguage),c=w(()=>e.lockScreenSwitch),d=w(()=>e.copyrightSwitch),p=w(()=>e.contentTransition),h=w(()=>e.watermarkSwitch),S=w(()=>e.watermarkConfig),g=w(()=>e.appRootRoute),m=w(()=>e.sideBarLogo),_=w(()=>e.keepAliveConfig),f=w(()=>e.menuConfig);return{getDrawerPlacement:t,getPrimaryColorOverride:n,getAppTheme:a,getMenuTagSwitch:o,getBreadcrumbSwitch:i,getLocaleLanguage:s,getLockScreenSwitch:c,getCopyrightSwitch:d,getContentTransition:p,getWatermarkSwitch:h,getWatermarkConfig:S,getAppRootRoute:g,getSideBarLogo:m,getKeepAliveConfig:_,getMenuConfig:f,getAppThemeStr:l}},K=()=>{const{updateLocale:e,changePrimaryColor:t,updateSettingState:n}=je();return{updateLocale:e,changePrimaryColor:t,updateSettingState:n}},Nn=()=>{const e=Dn();return{getSigningCallback:w(()=>e.signingCallback)}},Ps=()=>{const{signing:e,logout:t,clearSigningCallback:n}=Dn();return{signing:e,logout:t,clearSigningCallback:n}},ks=()=>{const e=jn();return{getKeepAliveInclude:w(()=>e.keepAliveInclude)}},xs=()=>{const{setKeepAliveInclude:e,getKeepAliveInclude:t}=jn();return{setKeepAliveInclude:e,getKeepAliveInclude:t}},si=e=>{const t=Qo();e.use(t),t.use(Zo)},Fn=e=>{const{getSigningCallback:t}=Nn(),{role:n}=e;return $e!=null&&$e.length&&$e.includes(t.value.role)||!n||!(n!=null&&n.length)?!0:n?n.includes(t.value.role):!0},Ms=e=>{const{setupRouterLoadingBar:t,setupRouterGuard:n}=$a;t&&$l(e),n&&Bl(e)},zs=I(),Is=M({name:"SiderBarLogo",props:{collapsed:{type:Boolean,required:!0}},setup(){const e=st(),{getSideBarLogo:t}=$();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:l})=>{if(!t.value)return null;if(typeof t.value.icon=="string")return r(k,{name:t.value.icon,size:"30",cursor:l},null);if(ce(t.value.icon,"Object"))return ge(t.value.icon)}}},render(){const{sideBarLogo:e,collapsed:t,TemplateLogo:n,sideBarLogoClick:a}=this;return e!=null&&e.title?r("div",{class:["ray-menu__logo",e!=null&&e.url?"ray-menu__logo-url":null],onClick:a.bind(this),ref:zs},[e!=null&&e.icon?t?r(Ye,{placement:"right"},{trigger:()=>n({cursor:"pointer"}),default:()=>e.title}):n({cursor:"pointer"}):t?r(Ye,{placement:"right"},{trigger:()=>{var l;return r("h1",{class:"n-menu-item-content"},[((l=e.title)==null?void 0:l[0])||null])},default:()=>e.title}):null,r(mo,{class:[t?null:"ray-menu__logo-title--open","ray-menu__logo-title",'class="n-menu-item-content"'],type:"primary",size:18},{default:()=>[r(sn,null,{default:()=>[e.title]})]})]):null}}),Ls=M({name:"AppMenu",setup(){const e=I(null),{changeMenuModelValue:t,collapsedMenu:n,updateMenuState:a}=Ne(),{getMenuConfig:l}=$(),{getMenuOptions:o,getCollapsed:i,getMenuKey:s}=ye(),c=w({get:()=>(q().then(()=>{h()}),s.value),set:()=>{d.value&&re("globalDrawerValue",!1)}}),{isTabletOrSmaller:d}=it({observer:g=>{g&&a("collapsed",!1)}}),p=w({get:()=>rt("globalDrawerValue").value,set:g=>{re("globalDrawerValue",g)}}),h=()=>{const g=c.value;g!=null&&q(()=>{var m,_;return(_=(m=e.value)==null?void 0:m.showOption)==null?void 0:_.call(m,g)})};return{isTabletOrSmaller:d,BasicMenu:()=>r(go,{class:"app-menu__sider",showTrigger:!d.value,collapseMode:l.value.collapsedMode,collapsedWidth:l.value.collapsedWidth,onUpdateCollapsed:n.bind(this),nativeScrollbar:!1,ref:Cn,collapsed:i.value,onExpand:()=>{a("collapsed",!1)},onCollapse:()=>{a("collapsed",!0)}},{default:()=>[l.value.menuSiderBarLogo?r(Is,{collapsed:i.value},null):null,r(fo,{ref:e,class:"r-menu--app",keyField:"fullPath",value:c.value,"onUpdate:value":g=>c.value=g,options:o.value,indent:l.value.collapsedIndent,collapsed:i.value,collapsedIconSize:l.value.collapsedIconSize,collapsedWidth:l.value.collapsedWidth,onUpdateValue:(g,m)=>{t(g,m)},accordion:l.value.accordion,iconSize:l.value.iconSize},null)]}),modelGlobalDrawerValue:p}},render(){const{isTabletOrSmaller:e,BasicMenu:t}=this;return e?r(rn,{class:"app-menu__drawer",show:this.modelGlobalDrawerValue,"onUpdate:show":n=>this.modelGlobalDrawerValue=n,placement:"left",displayDirective:"show",autoFocus:!1},{default:()=>[r(t,null,null)]}):r(t,null,null)}});class Es{constructor(){jt(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:a}=t;return[a||"",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 a=this.generateRequestKey(t);if(this.pendingRequest.has(a))t.signal=(n=this.pendingRequest.get(a))==null?void 0:n.signal;else{const l=new AbortController;t.signal=l.signal,this.pendingRequest.set(a,l)}}}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 gt={requestInstance:null,responseInstance:null},ht={implementRequestInterceptorArray:[],implementResponseInterceptorArray:[]},Ue={implementRequestInterceptorErrorArray:[],implementResponseInterceptorErrorArray:[]},Ds=new Es,ri=()=>{const e=(s,c)=>{c==="requestInstance"?gt.requestInstance=s:gt.responseInstance=s},t=s=>gt[s],n=(s,c,d)=>{d==="ok"?ht[s]=c:Ue[s]=c},a=(s,c)=>c==="ok"?ht[s]:Ue[s],l=(s,...c)=>{Array.isArray(s)&&s.forEach(d=>{typeof d=="function"&&d(...c)})};return{createAxiosInstance:e,setImplement:n,getImplement:a,getAxiosInstance:t,beforeFetch:(s,c,d)=>{const p=d==="ok"?ht[c]:Ue[c],h=t(s),{MODE:S}=Ot();h&&l(p,h,S)},fetchError:(s,c,d)=>{const p=Ue[d],{MODE:h}=Ot();l(p,c,h)}}},js=M({name:"AppRequestCancelerProvider",setup(e,{expose:t}){ra(()=>{Ds.cancelAllRequest()}),t()},render(){return r("div",{class:"app-style-provider"},null)}}),Bn=M({name:"LayoutContentWrapper",setup(){st();const{maximize:e}=Vn(),{getContentTransition:t}=$(),n=I(!1),a={opacitySpinning:"0"},{globalMainLayoutLoad:l,layoutContentMaximize:o,layoutContentSpinning:i}=Ua();return{globalMainLayoutLoad:l,spinning:n,themeOverridesSpin:a,getContentTransition:t,layoutContentMaximize:o,maximize:e,layoutContentSpinning:i}},render(){const{globalMainLayoutLoad:e,layoutContentMaximize:t,layoutContentSpinning:n,maximize:a,spinning:l,themeOverridesSpin:o,getContentTransition:i}=this;return r(ot,{show:l||!e||n,description:"loading...",size:"large",themeOverrides:o,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?r("div",{class:"layout-content__maximize-out",onClick:()=>{a(!1)}},[r(k,{name:"out",size:"16",cursor:"pointer"},null)]):null,r(js,null,null),e?r(ms,{class:"content-wrapper",transitionPropName:i+"-transform"},null):null]})}}),Ns=Object.freeze(Object.defineProperty({__proto__:null,default:Bn},Symbol.toStringTag,{value:"Module"}));var Fs={pkg:{dependencies:{"@vueuse/core":"^11.1.0",axios:"^1.7.5",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10",echarts:"^5.5.0","html-to-image":"1.11.11",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.40.1",pinia:"^2.2.4","pinia-plugin-persistedstate":"^4.1.1","print-js":"^1.6.0",vue:"^3.5.12","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:"5.0.1"},layout:{copyright:"Copyright © 2022-present Ray"},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const Bs=M({name:"LayoutFooterWrapper",setup(){const{layout:{copyright:e}}=Fs;return{copyright:e}},render(){return this.copyright?r("div",{class:"layout-footer-wrapper"},[this.copyright]):""}}),Vs=M({name:"TooltipIcon",props:{...ho,iconName:{type:String,required:!0},customClassName:{type:String,default:null},tooltipText:{type:String,default:null}},emits:["click"],setup(e,{emit:t}){const n=l=>{t("click",l)};return{iconClick:n,Icon:()=>r(k,{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?r(Ye,this.$props,{trigger:()=>r(e,null,null),default:()=>this.tooltipText}):r(e,null,null)}}),$s=M({name:"ThemeSegment",setup(){const{system:e}=dn(),{getAppThemeStr:t,getAppTheme:n}=$(),{updateSettingState:a}=K(),l=[{label:"深色",key:"dark",icon:()=>r(k,{name:"dark",size:"16"},null)},{label:"浅色",key:"light",icon:()=>r(k,{name:"light",size:"16"},null)},{label:"自动",key:"auto",icon:()=>r(k,{name:"system_os",size:"16"},null)}],o=w({get:()=>t.value==="auto"?"auto":n.value?"dark":"light",set:s=>{i(s,e.value)}}),i=(s,c)=>{if(s==="auto"){a("_appTheme",c==="dark"),a("appTheme","auto");return}a("_appTheme",s==="dark"),a("appTheme",s)};return ve(()=>{i(o.value,e.value)}),{options:l,modelAppTheme:o}},render(){const{options:e}=this;return r(_s,{options:e,size:"small",width:"block",value:this.modelAppTheme,"onUpdate:value":t=>this.modelAppTheme=t},null)}}),Ks={contentTransition:"scale",watermarkSwitch:!1,keepAliveConfig:{maxKeepAliveLength:10,setupKeepAlive:!0},menuConfig:{collapsedWidth:64,collapsedMode:"width",collapsedIconSize:16,collapsedIndent:24,accordion:!1,menuSiderBarLogo:!0,iconSize:16},menuTagSwitch:!0,breadcrumbSwitch:!0,copyrightSwitch:!0,drawerPlacement:"right"};function vt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ne(e)}const Us=M({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:a}=K(),{getAppTheme:l,getPrimaryColorOverride:o,getMenuTagSwitch:i,getBreadcrumbSwitch:s,getCopyrightSwitch:c,getContentTransition:d,getWatermarkSwitch:p,getKeepAliveConfig:h,getMenuConfig:S,getDrawerPlacement:g}=$(),m=w({get:()=>e.show,set:b=>{t("update:show",b)}}),_=w({get:()=>({getMenuTagSwitch:i.value,getBreadcrumbSwitch:s.value,getCopyrightSwitch:c.value,getContentTransition:d.value,getWatermarkSwitch:p.value,getKeepAliveConfig:h.value,getMenuConfig:S.value,getDrawerPlacement:g.value}),set:b=>{}});return{modelShow:m,changePrimaryColor:n,getAppTheme:l,getPrimaryColorOverride:o,updateSettingState:a,modelReactive:_,defaultSettingBtnClick:()=>{Jn(Ks,(b,u)=>{a(u,b)})}}},render(){let e,t,n;const{$t:a,changePrimaryColor:l,updateSettingState:o,defaultSettingBtnClick:i}=this;return r(rn,{show:this.modelShow,"onUpdate:show":s=>this.modelShow=s,placement:this.placement,width:this.width,trapFocus:!1,autoFocus:!1},{default:()=>[r(vo,{title:"系统配置"},{default:()=>[r(E,{class:"setting-drawer__space",vertical:!0},{default:()=>[r(oe,{titlePlacement:"center"},vt(e=a("headerSettingOptions.ThemeOptions.Title"))?e:{default:()=>[e]}),r($s,null,null),r(oe,{titlePlacement:"center"},vt(t=a("headerSettingOptions.ThemeOptions.PrimaryColorConfig"))?t:{default:()=>[t]}),r(yo,{swatches:Q.appThemeColors,value:this.getPrimaryColorOverride.common.primaryColor,"onUpdate:value":s=>this.getPrimaryColorOverride.common.primaryColor=s,onUpdateValue:l.bind(this)},null),r(oe,{titlePlacement:"center"},vt(n=a("headerSettingOptions.ContentTransition"))?n:{default:()=>[n]}),r(Bt,{value:this.modelReactive.getContentTransition,"onUpdate:value":s=>this.modelReactive.getContentTransition=s,options:ja,onUpdateValue:s=>{o("contentTransition",s)}},null),r(oe,{titlePlacement:"center"},{default:()=>[fe("抽屉位置")]}),r(Bt,{value:this.modelReactive.getDrawerPlacement,"onUpdate:value":s=>this.modelReactive.getDrawerPlacement=s,options:[{label:"右边",value:"right"},{label:"左边",value:"left"}],onUpdateValue:s=>{o("drawerPlacement",s)}},null),r(oe,{titlePlacement:"center"},{default:()=>[fe("系统设置")]}),r(bo,{labelPlacement:"left",column:1},{default:()=>[r(de,{label:"菜单页头"},{default:()=>[r(pe,{value:this.modelReactive.getMenuConfig.menuSiderBarLogo,"onUpdate:value":s=>this.modelReactive.getMenuConfig.menuSiderBarLogo=s,onUpdateValue:s=>o("menuConfig",{menuSiderBarLogo:s})},null)]}),r(de,{label:"菜单手风琴"},{default:()=>[r(pe,{value:this.modelReactive.getMenuConfig.accordion,"onUpdate:value":s=>this.modelReactive.getMenuConfig.accordion=s,onUpdateValue:s=>o("menuConfig",{accordion:s})},null)]}),r(de,{label:"页面缓存"},{default:()=>[r(pe,{value:this.modelReactive.getKeepAliveConfig.setupKeepAlive,"onUpdate:value":s=>this.modelReactive.getKeepAliveConfig.setupKeepAlive=s,onUpdateValue:s=>o("keepAliveConfig",{setupKeepAlive:s})},null)]}),r(de,{label:"多标签"},{default:()=>[r(pe,{value:this.modelReactive.getMenuTagSwitch,"onUpdate:value":s=>this.modelReactive.getMenuTagSwitch=s,onUpdateValue:s=>o("menuTagSwitch",s)},null)]}),r(de,{label:"面包屑"},{default:()=>[r(pe,{value:this.modelReactive.getBreadcrumbSwitch,"onUpdate:value":s=>this.modelReactive.getBreadcrumbSwitch=s,onUpdateValue:s=>o("breadcrumbSwitch",s)},null)]}),r(de,{label:"水印"},{default:()=>[r(pe,{value:this.modelReactive.getWatermarkSwitch,"onUpdate:value":s=>this.modelReactive.getWatermarkSwitch=s,onUpdateValue:s=>o("watermarkSwitch",s)},null)]}),r(de,{label:"页底信息"},{default:()=>[r(pe,{value:this.modelReactive.getCopyrightSwitch,"onUpdate:value":s=>this.modelReactive.getCopyrightSwitch=s,onUpdateValue:s=>o("copyrightSwitch",s)},null)]})]}),r(oe,{titlePlacement:"center"},{default:()=>[fe("菜单样式")]}),r(ln,{showFeedback:!0,showRequireMark:!1},{default:()=>[r(Ve,{label:"每级菜单缩进"},{default:()=>[r(ke,{value:this.modelReactive.getMenuConfig.collapsedIndent,"onUpdate:value":s=>this.modelReactive.getMenuConfig.collapsedIndent=s,min:0,precision:0,onUpdateValue:s=>{s!==null&&o("menuConfig",{collapsedIndent:s})}},null)]}),r(Ve,{label:"菜单图标尺寸"},{default:()=>[r(ke,{value:this.modelReactive.getMenuConfig.iconSize,"onUpdate:value":s=>this.modelReactive.getMenuConfig.iconSize=s,min:0,precision:0,onUpdateValue:s=>{s!==null&&o("menuConfig",{iconSize:s})}},null)]}),r(Ve,{label:"折叠菜单图标尺寸"},{default:()=>[r(ke,{value:this.modelReactive.getMenuConfig.collapsedIconSize,"onUpdate:value":s=>this.modelReactive.getMenuConfig.collapsedIconSize=s,min:0,precision:0,onUpdateValue:s=>{s!==null&&o("menuConfig",{collapsedIconSize:s})}},null)]}),r(Ve,{label:"折叠菜单宽度",showFeedback:!1},{default:()=>[r(ke,{value:this.modelReactive.getMenuConfig.collapsedWidth,"onUpdate:value":s=>this.modelReactive.getMenuConfig.collapsedWidth=s,min:0,precision:0,onUpdateValue:s=>{s!==null&&o("menuConfig",{collapsedWidth:s})}},null)]})]}),r(oe,{titlePlacement:"center"},{default:()=>[r(E,{wrap:!1,align:"center",size:[4,0]},{default:()=>[r(Ye,{placement:"top",showArrow:!1},{trigger:()=>r(k,{name:"question",size:"16"},null),default:()=>"当设置为【0】时,缓存将会失效"}),r(cn,null,{default:()=>[fe("最大缓存数")]})]})]}),r(ke,{value:this.modelReactive.getKeepAliveConfig.maxKeepAliveLength,"onUpdate:value":s=>this.modelReactive.getKeepAliveConfig.maxKeepAliveLength=s,showButton:!0,min:0,max:100,precision:0,disabled:!this.modelReactive.getKeepAliveConfig.setupKeepAlive},null),r(oe,{titlePlacement:"center"},{default:()=>[fe("操作")]}),r(E,null,{default:()=>[r(J,{type:"primary",block:!0,onClick:i},{default:()=>[fe("清除设置")]})]})]})]})]})}});function Ws(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ne(e)}const qs=M({name:"SiderBarBreadcrumb",setup(){const{changeMenuModelValue:e}=Ne(),{getBreadcrumbOptions:t}=ye(),{isTabletOrSmaller:n}=it();return{getBreadcrumbOptions:t,dropdownSelect:(o,i)=>{e(o,i)},breadcrumbItemClick:o=>{var i;if(!((i=o.children)!=null&&i.length)){const{meta:s={}}=o;s.sameLevel||e(o.fullPath,o)}},isTabletOrSmaller:n}},render(){let e;const{isTabletOrSmaller:t,getBreadcrumbOptions:n}=this,{dropdownSelect:a,breadcrumbItemClick:l}=this;return t?r("div",{style:"display: none;"},null):r(So,null,{default:()=>[r(za,{tag:"li",name:"breadcrumb",appear:!0},Ws(e=n.map(o=>r(_o,{key:o.fullPath,onClick:l.bind(this,o)},{default:()=>{var i;return[r(Oe,{labelField:"breadcrumbLabel",keyField:"fullPath",options:o.children&&((i=o.children)==null?void 0:i.length)>1?o.children:[],onSelect:a.bind(this)},{default:()=>r("span",null,[o.label&&typeof o.label=="function"?o.label():o.breadcrumbLabel])})]}})))?e:{default:()=>[e]})]})}});function yt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ne(e)}const Gs=M({name:"GlobalSearch",props:{show:{type:Boolean,default:!1}},emits:["update:show"],setup(e,{emit:t}){const{changeMenuModelValue:n,resolveOption:a}=Ne(),{getRoutes:l}=st(),o=w({get:()=>e.show,set:y=>{t("update:show",y),y||g()}}),i=te({searchValue:null,searchOptions:[]}),s=[{icon:["↑","↓"],label:"切换",plain:!0},{icon:["↵"],label:"选择",plain:!0},{icon:["esc"],label:"关闭",plain:!0}];let c=0,d=c;const{isTabletOrSmaller:p}=it(),h=I(!1),S="content-item--active",g=()=>{i.searchOptions=[],i.searchValue=null,c=0,d=c},m=y=>{o.value||(y.ctrlKey||y.metaKey)&&y.key==="k"&&(y.preventDefault(),y.stopPropagation(),g(),o.value=!0)},_=y=>{if(y)h.value=!0;else{h.value=!1,i.searchOptions=[];return}const x=l().reduce((A,O)=>{var U;const P=ze(O,["children","meta","path","name"]),j=a({...P,fullPath:O.path}),{breadcrumbLabel:V}=j;return(U=V==null?void 0:V.toLocaleLowerCase())!=null&&U.includes(y.toLocaleLowerCase())&&On(j)&&A.push(j),A},[]);setTimeout(()=>{i.searchOptions=x,q().then(()=>{b()}),h.value=!1},500)},f=y=>{if(y){const{meta:x}=y;x.windowOpen?window.open(x.windowOpen):(o.value=!1,n(y.fullPath,y),setTimeout(Go,300))}},b=()=>{const y=i.searchOptions[c],x=i.searchOptions[d];y&&q().then(()=>{const A=Ze(`attr:data_path="${y.path}"`),O=x?Ze(`attr:data_path="${x==null?void 0:x.path}"`):null;if(O!=null&&O.length){const[P]=O;Ho(P,S)}if(A!=null&&A.length){const[P]=A;_n(P,S)}})},u=y=>{const{icon:x}=y;return typeof x=="string"?r(k,{name:x,size:"24"},null):typeof x=="function"?()=>x:r(k,{name:"search",size:"24"},null)},v=y=>{y==="up"&&(c-=1,c<0&&(c=i.searchOptions.length-1)),y==="down"&&(c+=1,c>=i.searchOptions.length&&(c=0))},R=y=>{const x=y.key;switch((x==="ArrowUp"||x==="ArrowDown"||x==="Enter")&&(y.preventDefault(),y.stopPropagation()),d=c<=0?0:c,x){case"ArrowUp":v("up");break;case"ArrowDown":v("down");break;case"Enter":const A=i.searchOptions[c];A&&f(A);break}b()},C=({menuOption:y})=>r(E,F({align:"center",class:"content-item"},{onClick:f.bind(this,y),data_path:y.path}),{default:()=>[r("div",{class:"content-item-icon"},[u(y.meta)]),r("div",{class:"content-item-label"},[y.breadcrumbLabel]),r(k,{name:"enter",size:"18",customClassName:"content-item-icon__enter"},null)]});return ve(()=>{p.value&&(o.value=!1)}),Le(window,"keydown",y=>{m(y),R(y)},!0),{...Re(i),modelShow:o,helperTipOptions:s,fuzzySearchMenuOptions:kt(_,300),searchItemClick:f,RenderPreIcon:u,isTabletOrSmaller:p,SearchItem:C,loading:h}},render(){const{isTabletOrSmaller:e,searchOptions:t,loading:n}=this,{SearchItem:a,fuzzySearchMenuOptions:l}=this;return e?r("div",{style:"display: none;"},null):r(on,{show:this.modelShow,"onUpdate:show":o=>this.modelShow=o,transformOrigin:"center",displayDirective:"if"},{default:()=>[r("div",{class:"global-search global-search--dark global-search--light"},[r("div",{class:"global-search__wrapper"},[r(nt,{class:"global-search__card",headerStyle:{padding:"12px 12px 0 12px"},contentStyle:{padding:"12px"},segmented:{action:"soft"}},{header:()=>r(wo,{size:"large",value:this.searchValue,"onUpdate:value":o=>this.searchValue=o,clearable:!0,onInput:l.bind(this)},{prefix:()=>r(k,{name:"search",size:"24"},null)}),default:()=>{let o;return r(xt,null,{default:()=>[r(ot,{show:n},{default:()=>[t.length?r(E,{vertical:!0,size:[0,6],class:"global-search__card-content"},yt(o=t.map((i,s)=>r(a,{menuOption:i,key:i.fullPath},null)))?o:{default:()=>[o]}):r(Co,{size:"large",class:"global-search__empty"},{icon:()=>null,default:()=>r(E,{justify:"center",class:"global-search__empty-content"},{default:()=>[r(cn,null,{default:()=>[fe("没有搜索结果")]})]})})]})]})},action:()=>{let o;return r(E,{justify:"flex-start",align:"center",size:[16,0]},yt(o=this.helperTipOptions.map(i=>r(E,{key:i.label,size:[4,0]},{default:()=>[i.icon.map(s=>r(E,{class:"item-icon",align:"center",justify:"center"},yt(s)?s:{default:()=>[s]})),r(E,{class:"item-label",align:"center"},{default:()=>[i.label]})]})))?o:{default:()=>[o]})}})])])]})}}),Hs=M({name:"GlobalSearchButton",props:{onClick:{type:[Function,Array],default:null}},setup(e){return{getShortcutKeyAboutSystem:()=>{const a=Yo();return a==="MacOS"?"⌘ + K":"CTRL + K"},click:a=>{const{onClick:l}=e;l&&D(l,a)}}},render(){const{getShortcutKeyAboutSystem:e,click:t,$t:n}=this;return r(J,{bordered:!1,onClick:t.bind(this),round:!0,tertiary:!0,style:"margin-right: 16px"},{icon:()=>r(k,{name:"search",size:"16"},null),default:()=>r(E,{align:"center"},{default:()=>[n("headerTooltip.Search"),r("div",{class:"global-search-btn__label"},[e()])]})})}}),Ys=M({name:"AppAvatar",props:{...To,cursor:{type:String,default:"auto"},spaceSize:{type:[String,Number,Array],default:"medium"},avatarSize:{type:[String,Number],default:"medium"},vertical:{type:Boolean,default:!1}},setup(){const{getSigningCallback:e}=Nn();return{getSigningCallback:e}},render(){const{getSigningCallback:e,avatarSize:t,spaceSize:n,$props:a,vertical:l}=this;return r(J,{quaternary:!0,strong:!0,focusable:!1},{default:()=>[r(E,{align:"center",size:n,vertical:l},{default:()=>[r(Oo,F(a,{src:e==null?void 0:e.avatar,objectFit:"cover",round:!0,size:t}),null),e==null?void 0:e.name]})]})}}),Xs=()=>[{key:"person",label:"个人信息"},{key:"lockScreen",label:"锁定屏幕"},{type:"divider",key:"d1"},{key:"logout",label:"退出登陆"}],Js={logout:()=>{const{logout:e}=Ps();window.$dialog.warning({title:"提示",content:"您确定要退出登录吗",positiveText:"确定",negativeText:"不确定",onPositiveClick:()=>{e()}})},lockScreen:()=>{const{updateSettingState:e}=K();e("lockScreenSwitch",!0)}},Zs=e=>{const t=Js[e];t?t():window.$message.info("这个人很懒, 没做这个功能~")},Qs=e=>{const{isTabletOrSmaller:t}=e,n=[],a=[{name:"menu",size:18,eventKey:"menu"}];return t.value?a:n},er=e=>{const{isTabletOrSmaller:t}=e,n=[{name:"fullscreen",size:18,eventKey:"screen"},{name:"github",size:18,eventKey:"github"},{name:"setting",size:18,eventKey:"setting"}],a=[...n],l=[...n];return t.value?l:a},tr=M({name:"AppSiderBar",setup(){const{updateLocale:e,updateSettingState:t}=K(),{t:n}=De(),[a,{toggleFullscreen:l,isEnabled:o}]=hn(document.getElementsByTagName("html")[0]),{getDrawerPlacement:i,getBreadcrumbSwitch:s}=$(),c=I(!1),d=I(!1),{isTabletOrSmaller:p}=it(),h=rt("globalDrawerValue"),S=w(()=>Qs({isFullscreen:a,isTabletOrSmaller:p})),g=w(()=>er({isFullscreen:a,isTabletOrSmaller:p})),m={search:()=>{d.value=!0},setting:()=>{c.value=!0},github:()=>{window.open("https://github.com/XiaoDaiGua-Ray/ray-template")},fullscreen:()=>{o||window.$message.warning(n("globalMessage.isEnabledFullscreen")),l()},lock:()=>{t("lockScreenSwitch",!0)},menu:()=>{re("globalDrawerValue",!h.value)}};return{leftIconOptions:S,rightTooltipIconOptions:g,toolIconClick:b=>{var u;(u=m[b])==null||u.call(m)},showSettings:c,updateLocale:e,getDrawerPlacement:i,getBreadcrumbSwitch:s,globalSearchShown:d,isRenderVNode:b=>p.value?null:b}},render(){const{rightTooltipIconOptions:e,leftIconOptions:t,getDrawerPlacement:n,getBreadcrumbSwitch:a}=this,{toolIconClick:l,updateLocale:o,isRenderVNode:i}=this;return r(un,{class:"layout-header"},{default:()=>[r(Gs,{show:this.globalSearchShown,"onUpdate:show":s=>this.globalSearchShown=s},null),r(E,{class:"layout-header__method",align:"center",justify:"space-between",wrap:!1},{default:()=>[r(E,{align:"center",wrap:!1},{default:()=>[t.map(s=>r(Vs,{key:s.name,iconName:s.name,tooltipText:pn(s.tooltip)?s.tooltip.value:s.tooltip,customClassName:s.iconClass,onClick:l.bind(this,s.name)},null)),a?r(qs,null,null):null]}),r(E,{justify:"end",align:"center",size:[0,0],wrap:!1},{default:()=>[i(r(Hs,{onClick:s=>{s.stopPropagation(),this.globalSearchShown=!0}},null)),e.map(s=>r(J,{class:"override-button__layout",quaternary:!0,size:"medium",key:s.name,onClick:l.bind(this,s.name),focusable:!1},{default:()=>[r(k,{name:s.name,size:16,cursor:"pointer"},null)]})),r(Oe,{options:wn,onSelect:s=>o(String(s)),trigger:"click"},{default:()=>[r(J,{quaternary:!0,class:"override-button__layout",focusable:!1},{default:()=>[r(k,{customClassName:"layout-header__method--icon",name:"language",size:"16",cursor:"pointer"},null)]})]}),r(Oe,{options:Xs(),onSelect:Zs.bind(this),trigger:"click"},{default:()=>[r(Ys,{avatarSize:24,spaceSize:[8,0],class:"override-button__layout"},null)]})]})]}),r(Us,{show:this.showSettings,"onUpdate:show":s=>this.showSettings=s,placement:n},null)]})}}),nr=M({name:"LayoutHeaderWrapper",setup(){return{}},render(){return r(E,{size:[0,0]},{default:()=>[r(tr,null,null)]})}});function or(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ne(e)}const ar=M({name:"AppMenuTag",setup(e,{expose:t}){const n=ie("scrollRef"),{getMenuKey:a,getMenuTagOptions:l}=ye(),{changeMenuModelValue:o}=Ne(),{getRootPath:i}=Pe(),{maximize:s}=Vn(),{reload:c}=fr(),{close:d,closeAll:p,closeRight:h,closeLeft:S,closeOther:g,checkCloseLeft:m,checkCloseRight:_}=$n(),f=["closeAll","closeRight","closeLeft","closeOther","closeCurrentPage"];let b=1/0;const u={size:16},v=I([{label:"关闭当前页面",key:"closeCurrentPage",icon:()=>r(k,{name:"close",size:u.size},null)},{label:"最大化当前页面",key:"maximizeLayoutContent",icon:()=>r(k,{name:"fullscreen_fold",size:u.size},null)},{label:"刷新当前页面",key:"reloadCurrentPage",icon:()=>r(k,{name:"reload",size:u.size},null)},{label:"新窗口打开",key:"windowOpenTab",icon:()=>r(k,{name:"shared",size:u.size},null)},{type:"divider",key:"d1"},{label:"关闭左侧标签页",key:"closeLeft",icon:()=>r(k,{name:"close_left",size:u.size},null)},{label:"关闭右侧标签页",key:"closeRight",icon:()=>r(k,{name:"close_right",size:u.size},null)},{type:"divider",key:"d1"},{label:"关闭其他标签页",key:"closeOther",icon:()=>r(k,{name:"close_other",size:u.size},null)},{label:"关闭所有标签页",key:"closeAll",icon:()=>r(k,{name:"resize_h",size:u.size},null),disabled:!1}]),R=Je(16),C={closeCurrentPage:()=>{a.value!==i.value&&d(b)},reloadCurrentPage:()=>{c()},closeAll:()=>{p()},closeRight:()=>{h(b)},closeLeft:()=>{S(b)},closeOther:()=>{g(b)},windowOpenTab:()=>{const T=l.value[b];if(!(T!=null&&T.fullPath))return;const z=T.fullPath.startsWith("#")?T.fullPath:`#${T.fullPath}`;window.open(z,"_blank")},maximizeLayoutContent:()=>{const T=l.value[b];s(!0),T&&U(T)}},y=te({x:0,y:0,actionDropdownShow:!1}),x="menu_tag_data",A=rt("globalMainLayoutLoad"),O="n-scrollbar-container";let P=a.value;const j=T=>{d(T)},V=(T,z)=>{for(const W of v.value)if(W.key===T){W.disabled=z;break}},U=T=>{y.actionDropdownShow=!1,o(T.fullPath,T)},Y=()=>{const T=document.getElementById(R);if(T)return Array.from(T.childNodes).find(Be=>Xo(Be,O).value)},H=T=>{var W;const z=Y();if(z){const Be=z.scrollLeft||0,Dt=T==="left"?Math.max(0,Be-200):Be+200;(W=n.value)==null||W.scrollTo({left:Dt,behavior:"smooth"})}},ue=T=>{y.actionDropdownShow=!1;const z=C[T];z==null||z()},X=(T,z)=>{z.preventDefault(),b=T,y.actionDropdownShow=!1,q(()=>{y.actionDropdownShow=!0,y.x=z.clientX,y.y=z.clientY})},Fe=()=>{const{closeable:T}=l.value[b]??{};V("closeCurrentPage",!T),_(b)?V("closeRight",!1):V("closeRight",!0),m(b)?V("closeLeft",!1):V("closeLeft",!0)},Un=()=>{b=l.value.findIndex(z=>z.fullPath===a.value),Fe()},Wn=T=>{l.value.length>1&&T.fullPath!==i.value&&(T.closeable=!0)},qn=T=>{T.fullPath!==a.value&&(T.closeable=!1)},Gn=()=>{Y()&&q().then(()=>{var z;(z=n.value)==null||z.scrollTo({left:99999,behavior:"smooth"})})},ct=()=>{q().then(()=>{const T=Ze(`attr:${x}="${a.value}"`);if(T!=null&&T.length){const[z]=T;q().then(()=>{var W;(W=n.value)==null||W.scrollTo({left:z.offsetLeft,behavior:"smooth"})})}})},Hn=()=>{s(!0)};return he(()=>l.value,(T,z)=>{v.value.forEach(W=>{f.includes(W.key)&&(T.length>1?W.disabled=!1:W.disabled=!0)}),z!=null&&z.length&&(T.length>(z==null?void 0:z.length)?Gn():T.length===(z==null?void 0:z.length)&&ct()),z===void 0&&ct()},{immediate:!0}),ve(()=>{var T;y.actionDropdownShow&&((T=kt(Fe,300))==null||T()),P!==a.value&&(P=a.value,ct())}),t(),{getMenuTagOptions:l,closeCurrentMenuTag:j,getMenuKey:a,menuTagClick:U,moreOptions:v,scrollX:H,scrollRef:n,uuidScrollBar:R,actionDropdownSelect:ue,actionState:y,menuTagContextMenu:X,setCurrentContextmenuIndex:Un,menuTagMouseenter:Wn,menuTagMouseleave:qn,MENU_TAG_DATA:x,iconConfig:u,maximize:s,reload:c,globalMainLayoutLoad:A,maximizeBtnClick:Hn}},render(){let e;const{iconConfig:t,uuidScrollBar:n,getMenuTagOptions:a,MENU_TAG_DATA:l,globalMainLayoutLoad:o}=this,{maximizeBtnClick:i,closeCurrentMenuTag:s,scrollX:c,$t:d,menuTagClick:p,menuTagContextMenu:h,menuTagMouseenter:S,menuTagMouseleave:g,actionDropdownSelect:m,reload:_}=this;return r(un,null,{default:()=>[r("div",{class:"menu-tag"},[r(Oe,{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:m.bind(this)},null),r(E,{class:"menu-tag-space",wrap:!1,align:"center",justify:"space-between",inline:!0},{default:()=>[r(J,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:this.scrollX.bind(this,"left")},{icon:()=>r(k,{name:"expanded",width:t.size,height:t.size,customClassName:"menu-tag__left-arrow"},null)}),r(xt,F({xScrollable:!0,ref:"scrollRef"},{id:n},{themeOverrides:{width:"0px",height:"0px"}}),{default:()=>[r(E,{class:"menu-tag-wrapper",wrap:!1,align:"center",justify:"start"},or(e=a.map((f,b)=>r(J,F({key:f.fullPath,class:["menu-tag__btn"],strong:!0,secondary:!0,type:f.fullPath===this.getMenuKey?"primary":"default"},{onClick:p.bind(this,f),onContextmenu:h.bind(this,b),onMouseenter:S.bind(this,f),onMouseleave:g.bind(this,f),onBlur:()=>{this.actionState.actionDropdownShow=!1},[l]:f.fullPath},{size:"small"}),{default:()=>r(gn,null,[r("span",null,{default:()=>{const{breadcrumbLabel:u,meta:{i18nKey:v}}=f;return v?d(v):u}}),r(Ro,F({class:"menu-tag__btn-icon"},{onMousedown:s.bind(this,b)}),{default:()=>[r(k,{name:"close",size:"14"},null)]})])})))?e:{default:()=>[e]})]}),r(E,{align:"center",inline:!0,wrap:!1,size:[0,0]},{default:()=>[r(J,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:c.bind(this,"right")},{icon:()=>r(k,{name:"expanded",width:t.size,height:t.size,style:{transform:"rotate(180deg)"}},null)}),r(J,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:i},{icon:()=>r(k,{name:"fullscreen_fold",width:t.size,height:t.size},null)}),r(J,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:()=>{_()}},{icon:()=>r(k,{name:"reload",width:t.size,height:t.size,customClassName:`${o?"":"menu-tag__right-setting--spinning"}`},null)}),r(xn,{class:"menu-tag__dropdown",options:this.moreOptions,trigger:"click",onSelect:this.actionDropdownSelect.bind(this),iconSize:18,keyboard:!1},{default:()=>[r(J,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:this.setCurrentContextmenuIndex.bind(this)},{icon:()=>r(k,{name:"more",width:t.size,height:t.size},null)})]})]})]})])]})}}),lr=M({name:"LayoutFeatureWrapper",setup(){return{}},render(){return r(ar,null,null)}}),sr=e=>{const t=dt(e[0]),n=dt(e[1]),a=dt(e[2]),{height:l,width:o}=Mt();return w(()=>({"--window-width":`${o.value}px`,"--window-height":`${l.value}px`,"--layout-content-height":`calc(${l.value}px - ${t.height.value}px - ${n.height.value}px - ${a.height.value}px)`,"--layout-content-width":`${t.width.value}px`,"--layout-siderbar-height":`${t.height.value}px`,"--layout-menutag-height":`${n.height.value}px`,"--layout-footer-height":`${a.height.value}px`}))},Zt=Mo(G.isAppLockScreen,!1,sessionStorage,{mergeDefaults:!0}),rr=()=>({setLockAppScreen:n=>{Zt.value=n},getLockAppScreen:()=>Zt.value}),ir=M({name:"RLayout",setup(){const e=I(),t=I(),n=I(),{getMenuTagSwitch:a,getCopyrightSwitch:l}=$(),{getLockAppScreen:o}=rr(),i=sr([e,t,n]);return{getMenuTagSwitch:a,cssVarsRef:i,getLockAppScreen:o,layoutSiderBarRef:e,layoutMenuTagRef:t,layoutFooterRef:n,getCopyrightSwitch:l}},render(){const{getMenuTagSwitch:e,cssVarsRef:t,getCopyrightSwitch:n}=this,{getLockAppScreen:a}=this;return a()?null:r(Ao,{class:"r-layout-full",style:[t],hasSider:!0,embedded:!0},{default:()=>[r(Ls,null,null),r(Vt,{class:"r-layout-full__viewer"},{default:()=>[r(nr,{ref:"layoutSiderBarRef"},null),e?r(lr,{ref:"layoutMenuTagRef"},null):null,r(Vt,{ref:we,class:["r-layout-full__viewer-content"],nativeScrollbar:!1},{default:()=>[r(Bn,null,null)]}),n?r(Bs,{ref:"layoutFooterRef"},null):null]})]})}}),cr=[{path:"/",name:"RLogin",component:()=>L(()=>import("./index-DJPWBbTq.js"),__vite__mapDeps([87,1,2,3,4,5,6,7,8,9,10,11,40,32,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,71,72,73,30,31,50,33,34,35,36,37,38,39,41,42,43,44,45,46,47,88]))},{path:"/",name:"RLayout",component:ir,children:[...As(),{path:"/:catchAll(.*)",component:()=>L(()=>import("./index-BBYs7MM0.js"),__vite__mapDeps([89,1,2,3,4,5,6,7,8,9,10,11,32,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,90])),meta:{i18nKey:N("menu.Error"),icon:"error",hidden:!0,sameLevel:!0}}]}],et=ia({history:ca(),routes:cr,scrollBehavior:e=>{Vl(e)}}),ii=e=>{e.use(et),Ms(et)},Et=()=>et?{router:et}:{router:{}},Qt="YYYY-MM-DD HH:mm:ss",ur=()=>({locale:i=>{const s=Ba[i];s?ae.locale(s):ae.locale(Va)},getStartAndEndOfDay:i=>{const{format:s=Qt}=i??{},c=ae(),d=c.startOf("day"),p=c.endOf("day"),h=c.format(s),S=d.format(s),g=p.format(s);return{today:c,startOfDay:d,endOfDay:p,formatToday:h,formatStartOfDay:S,formatEndOfDay:g}},format:(i,s)=>{const{format:c=Qt}=s??{};return ae(i).format(c)},isDayjs:i=>ae.isDayjs(i),daysDiff:(i,s)=>{const c=ae(i);return ae(s).diff(c,"days")},isDateInRange:(i,s)=>{const{start:c,end:d}=s,p=ae(i);return p.isAfter(c)&&p.isBefore(d)}});function it(e){const{width:t,height:n}=Mt(e),a=I(!1),{observer:l}=e??{};return Jo(()=>{const{media:i=768}=e??{};a.value=t.value<=i,l==null||l(a.value,{width:t.value,height:n.value})}),{width:t,height:n,isTabletOrSmaller:Ce(a)}}let bt=999,_t=!1;const me="ELEMENT-FULLSCREEN-RAY",{width:St,height:wt}=Mt(),en=document.createElement("style"),dr=(e,t)=>{const{beforeEnter:n,beforeExit:a,enter:l,exit:o,backgroundColor:i,zIndex:s,transition:c="all 0.3s var(--r-bezier)"}=t??{};let d=!1;const p={x:null,y:null},h=()=>{const f=se(e);if(!f)return;const{left:b,top:u}=f.getBoundingClientRect();p.x===null&&p.y===null&&(p.x=-b,p.y=-u),qe(document.body,{"--element-fullscreen-z-index":ce(s,"Null")||ce(s,"Undefined")?bt:s,"--element-fullscreen-transition":c,"--element-fullscreen-background-color":i,"--element-fullscreen-width":`${St.value}px`,"--element-fullscreen-height":`${wt.value}px`,"--element-fullscreen-transform-x":`${p.x}px`,"--element-fullscreen-transform-y":`${p.y}px`});const v=` [${me}] { position: fixed; width: var(--element-fullscreen-width) !important; diff --git a/js/hooks-BwPndLx3.js.gz b/js/hooks-BwPndLx3.js.gz new file mode 100644 index 00000000..65c3437f Binary files /dev/null and b/js/hooks-BwPndLx3.js.gz differ diff --git a/js/hooks-DonDO7vb.js.gz b/js/hooks-DonDO7vb.js.gz deleted file mode 100644 index 038fa87f..00000000 Binary files a/js/hooks-DonDO7vb.js.gz and /dev/null differ diff --git a/js/index-40P_oJMv.js.gz b/js/index-40P_oJMv.js.gz deleted file mode 100644 index 1dbde79c..00000000 Binary files a/js/index-40P_oJMv.js.gz and /dev/null differ diff --git a/js/index-5V4yf9yZ.js.gz b/js/index-5V4yf9yZ.js.gz deleted file mode 100644 index 27ff2048..00000000 Binary files a/js/index-5V4yf9yZ.js.gz and /dev/null differ diff --git a/js/index-BA7MPIf6.js.gz b/js/index-BA7MPIf6.js.gz deleted file mode 100644 index 4f617132..00000000 Binary files a/js/index-BA7MPIf6.js.gz and /dev/null differ diff --git a/js/index-C296AXrg.js b/js/index-BBYs7MM0.js similarity index 93% rename from js/index-C296AXrg.js rename to js/index-BBYs7MM0.js index dbe30070..be840afc 100644 --- a/js/index-C296AXrg.js +++ b/js/index-BBYs7MM0.js @@ -1 +1 @@ -import{w as u,x as s,f as a}from"./hooks-DonDO7vb.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.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"./jsbarcode@3.11.6-DGNGFp02.js";import{g as n}from"./utils-6rpFoFAR.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{ab as c,U as l,c as d,P as i}from"./naive-ui@2.40.1_vue@3.5.12-DyRQVgeU.js";import{l as p,b as t,m as f,I as e}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js";import"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.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-dom@3.5.12-ewSD1rNh.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const g=p({name:"PageResult",props:{...c},setup(){const{router:r}=s();return{goBack:()=>{const{appMenuKey:m}=a,o=n(m,"sessionStorage",{defaultValue:""});o&&r.replace(o)}}},render(){const{goBack:r}=this;return t("div",{class:"error-page"},[t(l,f(this.$props,{status:"500",title:"404 资源不存在",description:"小调皮你走错地方了"}),{...this.$slots,footer:()=>t(d,{align:"center",justify:"center"},{default:()=>[t(i,{onClick:u.bind(this,!0)},{default:()=>[e("返回首页")]}),t(i,{type:"primary",onClick:r.bind(this)},{default:()=>[e("返回上一页面")]})]})})])}}),ct=p({name:"ErrorPage404",setup(){return{}},render(){return t(g,{status:"404"},null)}});export{ct as default}; +import{w as u,x as s,f as a}from"./hooks-BwPndLx3.js";import"./dayjs@1.11.10-D8VSY-p2.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.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"./jsbarcode@3.11.6-DGNGFp02.js";import{g as n}from"./utils-Dh5AVlvo.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{ab as c,U as l,c as d,P as i}from"./naive-ui@2.40.1_vue@3.5.12-DyRQVgeU.js";import{l as p,b as t,m as f,I as e}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js";import"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.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-dom@3.5.12-ewSD1rNh.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const g=p({name:"PageResult",props:{...c},setup(){const{router:r}=s();return{goBack:()=>{const{appMenuKey:m}=a,o=n(m,"sessionStorage",{defaultValue:""});o&&r.replace(o)}}},render(){const{goBack:r}=this;return t("div",{class:"error-page"},[t(l,f(this.$props,{status:"500",title:"404 资源不存在",description:"小调皮你走错地方了"}),{...this.$slots,footer:()=>t(d,{align:"center",justify:"center"},{default:()=>[t(i,{onClick:u.bind(this,!0)},{default:()=>[e("返回首页")]}),t(i,{type:"primary",onClick:r.bind(this)},{default:()=>[e("返回上一页面")]})]})})])}}),ct=p({name:"ErrorPage404",setup(){return{}},render(){return t(g,{status:"404"},null)}});export{ct as default}; diff --git a/js/index-BBYs7MM0.js.gz b/js/index-BBYs7MM0.js.gz new file mode 100644 index 00000000..2685d014 Binary files /dev/null and b/js/index-BBYs7MM0.js.gz differ diff --git a/js/index-BG6oi-U_.js.gz b/js/index-BG6oi-U_.js.gz deleted file mode 100644 index e80c575a..00000000 Binary files a/js/index-BG6oi-U_.js.gz and /dev/null differ diff --git a/js/index-BA7MPIf6.js b/js/index-BXg9Fzcr.js similarity index 94% rename from js/index-BA7MPIf6.js rename to js/index-BXg9Fzcr.js index 08cc480b..21895c19 100644 --- a/js/index-BA7MPIf6.js +++ b/js/index-BXg9Fzcr.js @@ -1 +1 @@ -import{I as C,J as f,K as k}from"./hooks-DonDO7vb.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import{a as A}from"./vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.js";import{s as B}from"./instance-D7APY90Q.js";import"./lodash@4.17.21-Cw59kuJw.js";import{N as l,q as y,ah as h,T as D,P as i,c as p}from"./naive-ui@2.40.1_vue@3.5.12-DyRQVgeU.js";import{l as b,b as t,I as o,F as w}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import{e as P,x as N}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.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-6rpFoFAR.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.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-dom@3.5.12-ewSD1rNh.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./axios@1.7.5-C8DqakIB.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const R=e=>B({url:"/api/list",method:"get",params:e}),Nt=b({name:"MockDemo",setup(){const e=[{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:m=>t(p,{align:"center"},{default:()=>[t(i,{type:"primary",text:!0,onClick:()=>{window.$message.info("查看")}},{default:()=>[o("查看")]}),t(i,{type:"primary",text:!0,onClick:()=>{window.$message.warning("编辑")}},{default:()=>[o("编辑")]}),t(i,{type:"error",text:!0,onClick:()=>{window.$message.error("删除")}},{default:()=>[o("删除")]})]})}],u=P({email:null}),[n,{getPage:r,getPageSize:a,setItemCount:s,getCallback:F,setPage:x,setPageSize:v}]=C(()=>{E({page:r(),pageSize:a(),email:u.email})}),{data:c,loading:d,run:E}=A(R,{defaultParams:[{page:r(),pageSize:a(),email:u.email}],onSuccess:m=>{const{total:g}=m;s(g)}});return{personData:c,personLoading:d,columns:e,...N(u),getCallback:F,paginationRef:n}},render(){return t(p,{vertical:!0},{default:()=>{var e;return[t(l,{title:"Mock 数据"},{default:()=>[t("h2",null,[o("mock 数据使用。但是,并没有启用生产环境的部署,所以生产环境结果为空。")])]}),t(l,{title:"提示"},{default:()=>[t("h2",null,[o("RTable 组件有一个比较值得注意的地方就是,该组件会自动的按照数据量计算分页条数。所以你在异步获取数据的时候,一定要手动设置 remote 属性为 true,并且设置 itemCount 或者 pageCount。")])]}),t(y,{labelPlacement:"left"},{default:()=>[t(f,{cols:3},{default:()=>t(w,null,[t(h,{label:"邮箱"},{default:()=>[t(D,{value:this.email,"onUpdate:value":u=>this.email=u,clearable:!0},null)]})]),action:()=>{var u;return t(i,{type:"primary",onClick:(u=this.getCallback)==null?void 0:u.bind(this)},{default:()=>[o("搜索")]})}})]}),t(k,{title:"Mock数据表格",data:(e=this.personData)==null?void 0:e.data,loading:this.personLoading,columns:this.columns,"onUpdate:columns":u=>this.columns=u,pagination:this.paginationRef,remote:!0,rowKey:u=>u.id},null)]}})}});export{Nt as default}; +import{I as C,J as f,K as k}from"./hooks-BwPndLx3.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-D8VSY-p2.js";import"./print-js@1.6.0-BdoEj60G.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import{a as A}from"./vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.js";import{s as B}from"./instance-CGOUnAsK.js";import"./lodash@4.17.21-Cw59kuJw.js";import{N as l,q as y,ah as h,T as D,P as i,c as p}from"./naive-ui@2.40.1_vue@3.5.12-DyRQVgeU.js";import{l as b,b as t,I as o,F as w}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import{e as P,x as N}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.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-Dh5AVlvo.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.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-dom@3.5.12-ewSD1rNh.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./axios@1.7.5-C8DqakIB.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const R=e=>B({url:"/api/list",method:"get",params:e}),Nt=b({name:"MockDemo",setup(){const e=[{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:m=>t(p,{align:"center"},{default:()=>[t(i,{type:"primary",text:!0,onClick:()=>{window.$message.info("查看")}},{default:()=>[o("查看")]}),t(i,{type:"primary",text:!0,onClick:()=>{window.$message.warning("编辑")}},{default:()=>[o("编辑")]}),t(i,{type:"error",text:!0,onClick:()=>{window.$message.error("删除")}},{default:()=>[o("删除")]})]})}],u=P({email:null}),[n,{getPage:r,getPageSize:a,setItemCount:s,getCallback:F,setPage:x,setPageSize:v}]=C(()=>{E({page:r(),pageSize:a(),email:u.email})}),{data:c,loading:d,run:E}=A(R,{defaultParams:[{page:r(),pageSize:a(),email:u.email}],onSuccess:m=>{const{total:g}=m;s(g)}});return{personData:c,personLoading:d,columns:e,...N(u),getCallback:F,paginationRef:n}},render(){return t(p,{vertical:!0},{default:()=>{var e;return[t(l,{title:"Mock 数据"},{default:()=>[t("h2",null,[o("mock 数据使用。但是,并没有启用生产环境的部署,所以生产环境结果为空。")])]}),t(l,{title:"提示"},{default:()=>[t("h2",null,[o("RTable 组件有一个比较值得注意的地方就是,该组件会自动的按照数据量计算分页条数。所以你在异步获取数据的时候,一定要手动设置 remote 属性为 true,并且设置 itemCount 或者 pageCount。")])]}),t(y,{labelPlacement:"left"},{default:()=>[t(f,{cols:3},{default:()=>t(w,null,[t(h,{label:"邮箱"},{default:()=>[t(D,{value:this.email,"onUpdate:value":u=>this.email=u,clearable:!0},null)]})]),action:()=>{var u;return t(i,{type:"primary",onClick:(u=this.getCallback)==null?void 0:u.bind(this)},{default:()=>[o("搜索")]})}})]}),t(k,{title:"Mock数据表格",data:(e=this.personData)==null?void 0:e.data,loading:this.personLoading,columns:this.columns,"onUpdate:columns":u=>this.columns=u,pagination:this.paginationRef,remote:!0,rowKey:u=>u.id},null)]}})}});export{Nt as default}; diff --git a/js/index-BXg9Fzcr.js.gz b/js/index-BXg9Fzcr.js.gz new file mode 100644 index 00000000..07de3b6a Binary files /dev/null and b/js/index-BXg9Fzcr.js.gz differ diff --git a/js/index-BkbN0lKB.js.gz b/js/index-BkbN0lKB.js.gz deleted file mode 100644 index 23aad248..00000000 Binary files a/js/index-BkbN0lKB.js.gz and /dev/null differ diff --git a/js/index-BlC6n-Ua.js.gz b/js/index-BlC6n-Ua.js.gz deleted file mode 100644 index 9f5f616c..00000000 Binary files a/js/index-BlC6n-Ua.js.gz and /dev/null differ diff --git a/js/index-hsDrsE97.js b/js/index-BrpGRZXF.js similarity index 99% rename from js/index-hsDrsE97.js rename to js/index-BrpGRZXF.js index 0d9352d3..a0256987 100644 --- a/js/index-hsDrsE97.js +++ b/js/index-BrpGRZXF.js @@ -1 +1 @@ -import{R as a1}from"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import{e as w,g as s1,M as r1,f as M,h as S,i as x,j as R,k as p1,l as d1,R as E,m as h1,n as u1,D as f1,s as m1,o as v1,p as g1}from"./hooks-DonDO7vb.js";import{d as u}from"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.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"./jsbarcode@3.11.6-DGNGFp02.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{$ as _1,a0 as b1,a1 as M1,a2 as y1,a3 as w1,a4 as k1,a5 as P,a6 as C1,a7 as Z1,q as $,L as N,T as F,P as k,c as z1,a8 as S1,a9 as x1,e as H1}from"./naive-ui@2.40.1_vue@3.5.12-DyRQVgeU.js";import{l as f,j as C,b as n,w as V1,k as P1,n as A1,I as g,v as L1,m as I}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import{g as U,c as B1,k as Z,w as z,m as q,s as A,e as L,i as j1}from"./utils-6rpFoFAR.js";import{g as D1,d as T1,t as O1,f as R1}from"./lodash-es@4.17.21-CeZG2a4n.js";import{k as _,e as Y,x as W}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./vue3-next-qrcode@2.0.10_typescript@5.2.2-BJQJW2Mf.js";import{C as E1}from"./clipboard@2.0.11-DheAgBlr.js";import{u as G}from"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import{c as J}from"./@vue_runtime-dom@3.5.12-ewSD1rNh.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.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@11.1.0_vue@3.5.12-B9WpRTpD.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";import"./@vue_shared@3.5.12--5_uv9t5.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 $1=f({name:"GlobalProvider",setup(e,{expose:t}){const{getPrimaryColorOverride:l,getAppTheme:o,getLocaleLanguage:i}=w(),a=C(()=>{const s=i.value;return s1(s)}),c=()=>{const{message:s,notification:r,dialog:p,loadingBar:d}=Z1(["message","dialog","notification","loadingBar"],{configProviderProps:C(()=>({theme:o.value?P:null}))});window.$dialog=p,window.$message=s,window.$loadingBar=d,window.$notification=r};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 n(C1,{themeOverrides:l,theme:o?P:null,locale:i.locale,dateLocale:i.dateLocal},{default:()=>[n(_1,null,{default:()=>[n(b1,r1,{default:()=>[n(M1,null,{default:()=>[n(y1,null,{default:()=>[n(w1,null,{default:()=>[n(k1,null,null),e==null?void 0:e(),t()]})]})]})]})]})]})}});var N1={pkg:{dependencies:{"@vueuse/core":"^11.1.0",axios:"^1.7.5",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10",echarts:"^5.5.0","html-to-image":"1.11.11",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.40.1",pinia:"^2.2.4","pinia-plugin-persistedstate":"^4.1.1","print-js":"^1.6.0",vue:"^3.5.12","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:"5.0.1"},layout:{copyright:"Copyright © 2022-present Ray"},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const F1=f({name:"AppStyleProvider",setup(e,{expose:t}){const{getAppTheme:l}=w(),o=()=>{const{appPrimaryColor:{primaryColor:c,primaryFadeColor:s}}=N1,r=document.body,p=U(M.appPiniaSettingStore,"localStorage");if(p){const d=D1(p,"primaryColorOverride.common.primaryColor",c),m=B1(d,.38);r.style.setProperty("--ray-theme-primary-color",d),r.style.setProperty("--ray-theme-primary-fade-color",m||s)}},i=()=>{const c=document.getElementById("pre-loading-animation");c&&Z(c,{display:"none"})},a=c=>{const s=document.body,r="ray-template--dark",p="ray-template--light";c?z(s,p):z(s,r),q(s,c?r:p)};o(),i(),V1(()=>l.value,c=>{a(c)},{immediate:!0}),t()},render(){return n("div",{class:"app-style-provider"},null)}}),K={lockPassword:{required:!0,message:"请输入正确格式密码",min:6,max:12,trigger:["input"]}},y=()=>({lockPassword:null}),I1=f({name:"LockScreen",setup(){const e=_(null),t=_(null),{setLockAppScreen:l}=x(),{updateSettingState:o}=S(),i=Y({lockCondition:y()}),a=()=>{var c;(c=e.value)==null||c.validate(s=>{s||(l(!0),o("lockScreenSwitch",!0),i.lockCondition=y())})};return P1(()=>{A1(()=>{var c;(c=t.value)==null||c.focus()})}),{...W(i),lockScreen:a,formInstRef:e,inputInstRef:t}},render(){return n("div",{class:"app-lock-screen__input"},[n($,{ref:"formInstRef",model:this.lockCondition,rules:K,labelPlacement:"left"},{default:()=>[n(N,{path:"lockPassword"},{default:()=>[n(F,{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)]}),n(k,{type:"primary",onClick:this.lockScreen.bind(this)},{default:()=>[g("锁屏")]})]})])}}),U1=f({name:"UnlockScreen",setup(){const e=_(null),t=_(null),{logout:l}=R(),{updateSettingState:o}=S(),{setLockAppScreen:i}=x(),{isTabletOrSmaller:a}=p1(),c="HH:mm",s="A",r="YY年MM月DD日",p="ddd",d=Y({lockCondition:y(),HH_MM:u().format(c),AM_PM:u().locale("en").format(s),YY_MM_DD:u().format(r),DDD:u().format(p)}),m=setInterval(()=>{d.HH_MM=u().format(c),d.AM_PM=u().format(s)},6e3),v=setInterval(()=>{d.YY_MM_DD=u().format(r),d.DDD=u().format(p)},864e5),b=()=>{window.$dialog.warning({title:"警告",content:"是否返回到登陆页?",positiveText:"确定",negativeText:"取消",onPositiveClick:()=>{l(),setTimeout(()=>{o("lockScreenSwitch",!1)})}})},c1=()=>{var V;(V=e.value)==null||V.validate(n1=>{n1||(i(!1),o("lockScreenSwitch",!1),d.lockCondition=y())})};return L1(()=>{clearInterval(m),clearInterval(v)}),{...W(d),backToSigning:b,unlockScreen:c1,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:s}=this;return n("div",{class:"app-lock-screen__unlock"},[n("div",{class:"app-lock-screen__unlock__content"},[n("div",{class:"app-lock-screen__unlock__content-wrapper"},[n("div",{class:["app-lock-screen__unlock__content-bg__wrapper","app-lock-screen__unlock__content-bg",e?"app-lock-screen__unlock__content-bg--smaller":""]},[n("div",{class:"left"},[a[0]]),n("div",{class:"right"},[a[1]])])]),n("div",{class:"app-lock-screen__unlock__content-avatar"},[n(d1,{avatarSize:52,style:"pointer-events: none;",vertical:!0},null)]),n("div",{class:"app-lock-screen__unlock__content-input"},[n($,{ref:"formRef",model:this.lockCondition,rules:K},{default:()=>[n(N,{path:"lockPassword"},{default:()=>[n(F,{ref:"inputInstRef",value:this.lockCondition.lockPassword,"onUpdate:value":r=>this.lockCondition.lockPassword=r,type:"password",placeholder:"请输入解锁密码",clearable:!0,minlength:6,maxlength:12,onKeydown:r=>{r.code==="Enter"&&c()}},null)]}),n(z1,{justify:"space-between"},{default:()=>[n(k,{type:"primary",text:!0,onClick:s.bind(this)},{default:()=>[g("返回登陆")]}),n(k,{type:"primary",text:!0,onClick:c.bind(this)},{default:()=>[g("进入系统")]})]})]})]),n("div",{class:"app-lock-screen__unlock__content-date"},[n("div",{class:"current-date"},[t,g(" "),n("span",null,[l])]),n("div",{class:"current-year"},[o,g(" "),n("span",null,[i])])])])])}}),q1=f({name:"AppLockScreen",setup(){const{getLockAppScreen:e}=x(),{updateSettingState:t}=S(),{getLockScreenSwitch:l}=w();return{lockScreenSwitchRef:C({get:()=>l.value,set:i=>{t("lockScreenSwitch",i)}}),getLockAppScreen:e}},render(){const{getLockAppScreen:e}=this;return n(E,{show:this.lockScreenSwitchRef,"onUpdate:show":t=>this.lockScreenSwitchRef=t,transformOrigin:"center",autoFocus:!1,maskClosable:!1,closeOnEsc:!1,preset:e()?void 0:"dialog",title:"锁定屏幕"},{default:()=>[n("div",{class:"app-lock-screen__content"},[e()?n(U1,null,null):n(I1,null,null)])]})}}),Y1=f({name:"AppWatermarkProvider",setup(){const{getWatermarkSwitch:e,getWatermarkConfig:t}=w();return{getWatermarkSwitch:e,getWatermarkConfig:t}},render(){const{getWatermarkConfig:e,getWatermarkSwitch:t}=this;return t?n(S1,I({cross:!0,fullscreen:!0},e),null):null}}),W1=f({name:"GlobalSpin",props:{...x1},setup(){const e={opacitySpinning:"0.3"};return{spinValue:h1("globalSpinning"),overrides:e}},render(){return n(H1,I(this.$props,{show:this.spinValue,themeOverrides:this.overrides}),{...this.$slots})}});var G1={pkg:{dependencies:{"@vueuse/core":"^11.1.0",axios:"^1.7.5",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10",echarts:"^5.5.0","html-to-image":"1.11.11",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.40.1",pinia:"^2.2.4","pinia-plugin-persistedstate":"^4.1.1","print-js":"^1.6.0",vue:"^3.5.12","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:"5.0.1"},layout:{copyright:"Copyright © 2022-present Ray"},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const J1=f({name:"AppVersionProvider",setup(){const{pkg:{version:e}}=G1,t=U(M.appVersionProvider,"localStorage"),l=_(!1),{logout:o}=R();return t!==null?e!==t&&(l.value=!0,A(M.appVersionProvider,e,"localStorage")):A(M.appVersionProvider,e,"localStorage"),{modalShow:l,logout:o}},render(){const{logout:e}=this;return n("div",{class:"app-style-provider"},[n(E,{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)])}}),X=f({name:"App",render(){return n($1,null,{default:()=>[n(J1,null,null),n(q1,null,null),n(F1,null,null),n(Y1,null,null),n(W1,null,{default:()=>n(a1,null,null),description:()=>u1})]})}});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 K1=()=>{u.locale(f1)},B=(e,t)=>{const l=new E1(e,{text:()=>t});e.$$clipboard=l,e.$$clipboard.on("success",()=>{window.$message.success("复制成功")}),e.$$clipboard.on("error",()=>{window.$message.error("复制失败")})},X1=()=>({mounted:(e,{value:t})=>{B(e,t)},updated:(e,{value:t,oldValue:l})=>{var o;t!==l&&((o=e.$$clipboard)==null||o.destroy(),B(e,t))},beforeUnmount:e=>{var t;e.$$clipboard&&((t=e.$$clipboard)==null||t.destroy(),e.$$clipboard=null)}}),Q1=Object.freeze(Object.defineProperty({__proto__:null,default:X1},Symbol.toStringTag,{value:"Module"})),e2=()=>{let e,t;return{beforeMount:(l,{value:o})=>{const{func:i,trigger:a="click",wait:c=500,options:s}=o;if(typeof i!="function")throw new TypeError("debounce directive value must be a function");e=T1(i,c,Object.assign({},s)),t=G(l,a,e)},beforeUnmount:(l,{value:o})=>{e&&(e.cancel(),t==null||t()),e=null}}},t2=Object.freeze(Object.defineProperty({__proto__:null,default:e2},Symbol.toStringTag,{value:"Module"})),j=(e,t)=>{if(e){const l="ray-template__directive--disabled";t?(e.setAttribute("disabled","disabled"),q(e,l)):(e.removeAttribute("disabled"),z(e,l)),e==null||e.setAttribute("disabled",t?"disabled":"")}},l2=()=>({mounted:(e,{value:t})=>{j(e,t)},updated:(e,{value:t,oldValue:l})=>{t!==l&&j(e,t)}}),i2=Object.freeze(Object.defineProperty({__proto__:null,default:l2},Symbol.toStringTag,{value:"Module"})),D=(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"?Z(e,{display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":l,overflow:"hidden",width:L(i)}):Z(e,{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:L(i)})},o2=()=>({mounted:(e,{value:t})=>{D(e,t)},updated:(e,{value:t})=>{D(e,t)}}),c2=Object.freeze(Object.defineProperty({__proto__:null,default:o2},Symbol.toStringTag,{value:"Module"})),h={vRippleAnimationEnter:"v-ripple__animation--enter",vRippleAnimationVisible:"v-ripple__animation--visible",vRippleAnimationIn:"v-ripple__animation--in",vRippleAnimationOut:"v-ripple__animation--out",vRippleAnimation:"v-ripple__animation"},n2="v-ripple__container";function T(e,t){e.style.transform=t}function Q(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),H.show(e,l,t))}function e1(e){const t=e.currentTarget;t!=null&&t.__d_ripple__&&(setTimeout(()=>{t.__d_ripple__&&(t.__d_ripple__.touched=!1)}),H.hide(t))}const a2=(e,t,l={})=>{var v;const o=t.getBoundingClientRect(),i=e.clientX-o.left,a=e.clientY-o.top;let c=0,s=.3;(v=t.__d_ripple__)!=null&&v.circle?(s=.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 r=`${(t.clientWidth-c*2)/2}px`,p=`${(t.clientHeight-c*2)/2}px`,d=l.center?r:`${i-c}px`,m=l.center?p:`${a-c}px`;return{radius:c,scale:s,x:d,y:m,centerX:r,centerY:p}},H={show(e,t,l={}){var b;if(!((b=t==null?void 0:t.__d_ripple__)!=null&&b.enabled))return;const o=document.createElement("span"),i=document.createElement("span");o.appendChild(i),o.className=n2,l.class&&(o.className+=` ${l.class}`);const{radius:a,scale:c,x:s,y:r,centerX:p,centerY:d}=a2(e,t,l),m=`${a*2}px`;i.className=h.vRippleAnimation,i.style.width=m,i.style.height=m,t.appendChild(o);const v=window.getComputedStyle(t);v&&v.position==="static"&&(t.style.position="relative",t.dataset.previousPosition="static"),i.classList.add(h.vRippleAnimationEnter),i.classList.add(h.vRippleAnimationVisible),T(i,`translate(${s}, ${r}) scale3d(${c},${c},${c})`),i.dataset.activated=String(performance.now()),setTimeout(()=>{i.classList.remove(h.vRippleAnimationEnter),i.classList.add(h.vRippleAnimationIn),T(i,`translate(${p}, ${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(h.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(h.vRippleAnimationIn),l.classList.add(h.vRippleAnimationOut),setTimeout(()=>{var s;e.getElementsByClassName(h.vRippleAnimation).length===1&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),((s=l.parentNode)==null?void 0:s.parentNode)===e&&e.removeChild(l.parentNode)},300)},i)}};function t1(e){return typeof e>"u"||!!e}function l1(e){e.removeEventListener("pointerdown",Q),e.removeEventListener("pointerup",e1)}function O(e,t,l){const{value:o,modifiers:i}=t,a=t1(o);a||H.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,j1(o,"Object")&&o.class&&(e.__d_ripple__.class=o.class),a&&!l?(e.addEventListener("pointerdown",Q),e.addEventListener("pointerup",e1)):!a&&l&&l1(e)}const s2=()=>({mounted:(e,t)=>{O(e,t,!1)},beforeUnmount:e=>{delete e.__d_ripple__,l1(e)},updated:(e,t)=>{if(t.value===t.oldValue)return;const l=t1(t.oldValue);O(e,t,l)}}),r2=Object.freeze(Object.defineProperty({__proto__:null,default:s2},Symbol.toStringTag,{value:"Module"})),p2=()=>{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=O1(o,a,Object.assign({},c)),G(t,i,e)},beforeUnmount:()=>{e&&e.cancel(),e=null}}},d2=Object.freeze(Object.defineProperty({__proto__:null,default:p2},Symbol.toStringTag,{value:"Module"})),h2=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`)},{}),u2=e=>{const l=h2(Object.assign({"/src/directives/modules/copy/index.ts":Q1,"/src/directives/modules/debounce/index.ts":t2,"/src/directives/modules/disabled/index.ts":i2,"/src/directives/modules/ellipsis/index.ts":c2,"/src/directives/modules/ripple/index.ts":r2,"/src/directives/modules/throttle/index.ts":d2})),o=new RegExp("(?<=modules\\/).*(?=\\/index\\.ts)"),i=/^([^-]+-)*[^-]+$/;R1(l,(a,c)=>{var r;const s=(r=c.match(o))==null?void 0:r[0];typeof s=="string"&&i.test(s)?e.directive(s,a()):console.error(`[setupDirectives] ${s} is not a valid directive name`)})},i1=async()=>{},o1=async e=>{m1(e),await v1(e),g1(e),K1(),u2(e)},f2=async()=>{const e=J(X);await o1(e),e.mount("#app"),await i1()},m2=async()=>{let e;window.__WUJIE_MOUNT=async()=>{e=J(X),await o1(e),e.mount("#app"),await i1()},window.__WUJIE_UNMOUNT=()=>{e.unmount()},window.__WUJIE.mount()};window.__POWERED_BY_WUJIE__?m2():f2(); +import{R as a1}from"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import{e as w,g as s1,M as r1,f as M,h as S,i as x,j as R,k as p1,l as d1,R as E,m as h1,n as u1,D as f1,s as m1,o as v1,p as g1}from"./hooks-BwPndLx3.js";import{d as u}from"./dayjs@1.11.10-D8VSY-p2.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.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"./jsbarcode@3.11.6-DGNGFp02.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{$ as _1,a0 as b1,a1 as M1,a2 as y1,a3 as w1,a4 as k1,a5 as P,a6 as C1,a7 as Z1,q as $,L as N,T as F,P as k,c as z1,a8 as S1,a9 as x1,e as H1}from"./naive-ui@2.40.1_vue@3.5.12-DyRQVgeU.js";import{l as f,j as C,b as n,w as V1,k as P1,n as A1,I as g,v as L1,m as I}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import{g as U,c as B1,k as Z,w as z,m as q,s as A,e as L,i as j1}from"./utils-Dh5AVlvo.js";import{g as D1,d as T1,t as O1,f as R1}from"./lodash-es@4.17.21-CeZG2a4n.js";import{k as _,e as Y,x as W}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./vue3-next-qrcode@2.0.10_typescript@5.2.2-BJQJW2Mf.js";import{C as E1}from"./clipboard@2.0.11-DheAgBlr.js";import{u as G}from"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import{c as J}from"./@vue_runtime-dom@3.5.12-ewSD1rNh.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.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@11.1.0_vue@3.5.12-B9WpRTpD.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";import"./@vue_shared@3.5.12--5_uv9t5.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 $1=f({name:"GlobalProvider",setup(e,{expose:t}){const{getPrimaryColorOverride:l,getAppTheme:o,getLocaleLanguage:i}=w(),a=C(()=>{const s=i.value;return s1(s)}),c=()=>{const{message:s,notification:r,dialog:p,loadingBar:d}=Z1(["message","dialog","notification","loadingBar"],{configProviderProps:C(()=>({theme:o.value?P:null}))});window.$dialog=p,window.$message=s,window.$loadingBar=d,window.$notification=r};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 n(C1,{themeOverrides:l,theme:o?P:null,locale:i.locale,dateLocale:i.dateLocal},{default:()=>[n(_1,null,{default:()=>[n(b1,r1,{default:()=>[n(M1,null,{default:()=>[n(y1,null,{default:()=>[n(w1,null,{default:()=>[n(k1,null,null),e==null?void 0:e(),t()]})]})]})]})]})]})}});var N1={pkg:{dependencies:{"@vueuse/core":"^11.1.0",axios:"^1.7.5",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10",echarts:"^5.5.0","html-to-image":"1.11.11",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.40.1",pinia:"^2.2.4","pinia-plugin-persistedstate":"^4.1.1","print-js":"^1.6.0",vue:"^3.5.12","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:"5.0.1"},layout:{copyright:"Copyright © 2022-present Ray"},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const F1=f({name:"AppStyleProvider",setup(e,{expose:t}){const{getAppTheme:l}=w(),o=()=>{const{appPrimaryColor:{primaryColor:c,primaryFadeColor:s}}=N1,r=document.body,p=U(M.appPiniaSettingStore,"localStorage");if(p){const d=D1(p,"primaryColorOverride.common.primaryColor",c),m=B1(d,.38);r.style.setProperty("--ray-theme-primary-color",d),r.style.setProperty("--ray-theme-primary-fade-color",m||s)}},i=()=>{const c=document.getElementById("pre-loading-animation");c&&Z(c,{display:"none"})},a=c=>{const s=document.body,r="ray-template--dark",p="ray-template--light";c?z(s,p):z(s,r),q(s,c?r:p)};o(),i(),V1(()=>l.value,c=>{a(c)},{immediate:!0}),t()},render(){return n("div",{class:"app-style-provider"},null)}}),K={lockPassword:{required:!0,message:"请输入正确格式密码",min:6,max:12,trigger:["input"]}},y=()=>({lockPassword:null}),I1=f({name:"LockScreen",setup(){const e=_(null),t=_(null),{setLockAppScreen:l}=x(),{updateSettingState:o}=S(),i=Y({lockCondition:y()}),a=()=>{var c;(c=e.value)==null||c.validate(s=>{s||(l(!0),o("lockScreenSwitch",!0),i.lockCondition=y())})};return P1(()=>{A1(()=>{var c;(c=t.value)==null||c.focus()})}),{...W(i),lockScreen:a,formInstRef:e,inputInstRef:t}},render(){return n("div",{class:"app-lock-screen__input"},[n($,{ref:"formInstRef",model:this.lockCondition,rules:K,labelPlacement:"left"},{default:()=>[n(N,{path:"lockPassword"},{default:()=>[n(F,{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)]}),n(k,{type:"primary",onClick:this.lockScreen.bind(this)},{default:()=>[g("锁屏")]})]})])}}),U1=f({name:"UnlockScreen",setup(){const e=_(null),t=_(null),{logout:l}=R(),{updateSettingState:o}=S(),{setLockAppScreen:i}=x(),{isTabletOrSmaller:a}=p1(),c="HH:mm",s="A",r="YY年MM月DD日",p="ddd",d=Y({lockCondition:y(),HH_MM:u().format(c),AM_PM:u().locale("en").format(s),YY_MM_DD:u().format(r),DDD:u().format(p)}),m=setInterval(()=>{d.HH_MM=u().format(c),d.AM_PM=u().format(s)},6e3),v=setInterval(()=>{d.YY_MM_DD=u().format(r),d.DDD=u().format(p)},864e5),b=()=>{window.$dialog.warning({title:"警告",content:"是否返回到登陆页?",positiveText:"确定",negativeText:"取消",onPositiveClick:()=>{l(),setTimeout(()=>{o("lockScreenSwitch",!1)})}})},c1=()=>{var V;(V=e.value)==null||V.validate(n1=>{n1||(i(!1),o("lockScreenSwitch",!1),d.lockCondition=y())})};return L1(()=>{clearInterval(m),clearInterval(v)}),{...W(d),backToSigning:b,unlockScreen:c1,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:s}=this;return n("div",{class:"app-lock-screen__unlock"},[n("div",{class:"app-lock-screen__unlock__content"},[n("div",{class:"app-lock-screen__unlock__content-wrapper"},[n("div",{class:["app-lock-screen__unlock__content-bg__wrapper","app-lock-screen__unlock__content-bg",e?"app-lock-screen__unlock__content-bg--smaller":""]},[n("div",{class:"left"},[a[0]]),n("div",{class:"right"},[a[1]])])]),n("div",{class:"app-lock-screen__unlock__content-avatar"},[n(d1,{avatarSize:52,style:"pointer-events: none;",vertical:!0},null)]),n("div",{class:"app-lock-screen__unlock__content-input"},[n($,{ref:"formRef",model:this.lockCondition,rules:K},{default:()=>[n(N,{path:"lockPassword"},{default:()=>[n(F,{ref:"inputInstRef",value:this.lockCondition.lockPassword,"onUpdate:value":r=>this.lockCondition.lockPassword=r,type:"password",placeholder:"请输入解锁密码",clearable:!0,minlength:6,maxlength:12,onKeydown:r=>{r.code==="Enter"&&c()}},null)]}),n(z1,{justify:"space-between"},{default:()=>[n(k,{type:"primary",text:!0,onClick:s.bind(this)},{default:()=>[g("返回登陆")]}),n(k,{type:"primary",text:!0,onClick:c.bind(this)},{default:()=>[g("进入系统")]})]})]})]),n("div",{class:"app-lock-screen__unlock__content-date"},[n("div",{class:"current-date"},[t,g(" "),n("span",null,[l])]),n("div",{class:"current-year"},[o,g(" "),n("span",null,[i])])])])])}}),q1=f({name:"AppLockScreen",setup(){const{getLockAppScreen:e}=x(),{updateSettingState:t}=S(),{getLockScreenSwitch:l}=w();return{lockScreenSwitchRef:C({get:()=>l.value,set:i=>{t("lockScreenSwitch",i)}}),getLockAppScreen:e}},render(){const{getLockAppScreen:e}=this;return n(E,{show:this.lockScreenSwitchRef,"onUpdate:show":t=>this.lockScreenSwitchRef=t,transformOrigin:"center",autoFocus:!1,maskClosable:!1,closeOnEsc:!1,preset:e()?void 0:"dialog",title:"锁定屏幕"},{default:()=>[n("div",{class:"app-lock-screen__content"},[e()?n(U1,null,null):n(I1,null,null)])]})}}),Y1=f({name:"AppWatermarkProvider",setup(){const{getWatermarkSwitch:e,getWatermarkConfig:t}=w();return{getWatermarkSwitch:e,getWatermarkConfig:t}},render(){const{getWatermarkConfig:e,getWatermarkSwitch:t}=this;return t?n(S1,I({cross:!0,fullscreen:!0},e),null):null}}),W1=f({name:"GlobalSpin",props:{...x1},setup(){const e={opacitySpinning:"0.3"};return{spinValue:h1("globalSpinning"),overrides:e}},render(){return n(H1,I(this.$props,{show:this.spinValue,themeOverrides:this.overrides}),{...this.$slots})}});var G1={pkg:{dependencies:{"@vueuse/core":"^11.1.0",axios:"^1.7.5",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10",echarts:"^5.5.0","html-to-image":"1.11.11",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.40.1",pinia:"^2.2.4","pinia-plugin-persistedstate":"^4.1.1","print-js":"^1.6.0",vue:"^3.5.12","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:"5.0.1"},layout:{copyright:"Copyright © 2022-present Ray"},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const J1=f({name:"AppVersionProvider",setup(){const{pkg:{version:e}}=G1,t=U(M.appVersionProvider,"localStorage"),l=_(!1),{logout:o}=R();return t!==null?e!==t&&(l.value=!0,A(M.appVersionProvider,e,"localStorage")):A(M.appVersionProvider,e,"localStorage"),{modalShow:l,logout:o}},render(){const{logout:e}=this;return n("div",{class:"app-style-provider"},[n(E,{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)])}}),X=f({name:"App",render(){return n($1,null,{default:()=>[n(J1,null,null),n(q1,null,null),n(F1,null,null),n(Y1,null,null),n(W1,null,{default:()=>n(a1,null,null),description:()=>u1})]})}});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 K1=()=>{u.locale(f1)},B=(e,t)=>{const l=new E1(e,{text:()=>t});e.$$clipboard=l,e.$$clipboard.on("success",()=>{window.$message.success("复制成功")}),e.$$clipboard.on("error",()=>{window.$message.error("复制失败")})},X1=()=>({mounted:(e,{value:t})=>{B(e,t)},updated:(e,{value:t,oldValue:l})=>{var o;t!==l&&((o=e.$$clipboard)==null||o.destroy(),B(e,t))},beforeUnmount:e=>{var t;e.$$clipboard&&((t=e.$$clipboard)==null||t.destroy(),e.$$clipboard=null)}}),Q1=Object.freeze(Object.defineProperty({__proto__:null,default:X1},Symbol.toStringTag,{value:"Module"})),e2=()=>{let e,t;return{beforeMount:(l,{value:o})=>{const{func:i,trigger:a="click",wait:c=500,options:s}=o;if(typeof i!="function")throw new TypeError("debounce directive value must be a function");e=T1(i,c,Object.assign({},s)),t=G(l,a,e)},beforeUnmount:(l,{value:o})=>{e&&(e.cancel(),t==null||t()),e=null}}},t2=Object.freeze(Object.defineProperty({__proto__:null,default:e2},Symbol.toStringTag,{value:"Module"})),j=(e,t)=>{if(e){const l="ray-template__directive--disabled";t?(e.setAttribute("disabled","disabled"),q(e,l)):(e.removeAttribute("disabled"),z(e,l)),e==null||e.setAttribute("disabled",t?"disabled":"")}},l2=()=>({mounted:(e,{value:t})=>{j(e,t)},updated:(e,{value:t,oldValue:l})=>{t!==l&&j(e,t)}}),i2=Object.freeze(Object.defineProperty({__proto__:null,default:l2},Symbol.toStringTag,{value:"Module"})),D=(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"?Z(e,{display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":l,overflow:"hidden",width:L(i)}):Z(e,{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:L(i)})},o2=()=>({mounted:(e,{value:t})=>{D(e,t)},updated:(e,{value:t})=>{D(e,t)}}),c2=Object.freeze(Object.defineProperty({__proto__:null,default:o2},Symbol.toStringTag,{value:"Module"})),h={vRippleAnimationEnter:"v-ripple__animation--enter",vRippleAnimationVisible:"v-ripple__animation--visible",vRippleAnimationIn:"v-ripple__animation--in",vRippleAnimationOut:"v-ripple__animation--out",vRippleAnimation:"v-ripple__animation"},n2="v-ripple__container";function T(e,t){e.style.transform=t}function Q(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),H.show(e,l,t))}function e1(e){const t=e.currentTarget;t!=null&&t.__d_ripple__&&(setTimeout(()=>{t.__d_ripple__&&(t.__d_ripple__.touched=!1)}),H.hide(t))}const a2=(e,t,l={})=>{var v;const o=t.getBoundingClientRect(),i=e.clientX-o.left,a=e.clientY-o.top;let c=0,s=.3;(v=t.__d_ripple__)!=null&&v.circle?(s=.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 r=`${(t.clientWidth-c*2)/2}px`,p=`${(t.clientHeight-c*2)/2}px`,d=l.center?r:`${i-c}px`,m=l.center?p:`${a-c}px`;return{radius:c,scale:s,x:d,y:m,centerX:r,centerY:p}},H={show(e,t,l={}){var b;if(!((b=t==null?void 0:t.__d_ripple__)!=null&&b.enabled))return;const o=document.createElement("span"),i=document.createElement("span");o.appendChild(i),o.className=n2,l.class&&(o.className+=` ${l.class}`);const{radius:a,scale:c,x:s,y:r,centerX:p,centerY:d}=a2(e,t,l),m=`${a*2}px`;i.className=h.vRippleAnimation,i.style.width=m,i.style.height=m,t.appendChild(o);const v=window.getComputedStyle(t);v&&v.position==="static"&&(t.style.position="relative",t.dataset.previousPosition="static"),i.classList.add(h.vRippleAnimationEnter),i.classList.add(h.vRippleAnimationVisible),T(i,`translate(${s}, ${r}) scale3d(${c},${c},${c})`),i.dataset.activated=String(performance.now()),setTimeout(()=>{i.classList.remove(h.vRippleAnimationEnter),i.classList.add(h.vRippleAnimationIn),T(i,`translate(${p}, ${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(h.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(h.vRippleAnimationIn),l.classList.add(h.vRippleAnimationOut),setTimeout(()=>{var s;e.getElementsByClassName(h.vRippleAnimation).length===1&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),((s=l.parentNode)==null?void 0:s.parentNode)===e&&e.removeChild(l.parentNode)},300)},i)}};function t1(e){return typeof e>"u"||!!e}function l1(e){e.removeEventListener("pointerdown",Q),e.removeEventListener("pointerup",e1)}function O(e,t,l){const{value:o,modifiers:i}=t,a=t1(o);a||H.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,j1(o,"Object")&&o.class&&(e.__d_ripple__.class=o.class),a&&!l?(e.addEventListener("pointerdown",Q),e.addEventListener("pointerup",e1)):!a&&l&&l1(e)}const s2=()=>({mounted:(e,t)=>{O(e,t,!1)},beforeUnmount:e=>{delete e.__d_ripple__,l1(e)},updated:(e,t)=>{if(t.value===t.oldValue)return;const l=t1(t.oldValue);O(e,t,l)}}),r2=Object.freeze(Object.defineProperty({__proto__:null,default:s2},Symbol.toStringTag,{value:"Module"})),p2=()=>{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=O1(o,a,Object.assign({},c)),G(t,i,e)},beforeUnmount:()=>{e&&e.cancel(),e=null}}},d2=Object.freeze(Object.defineProperty({__proto__:null,default:p2},Symbol.toStringTag,{value:"Module"})),h2=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`)},{}),u2=e=>{const l=h2(Object.assign({"/src/directives/modules/copy/index.ts":Q1,"/src/directives/modules/debounce/index.ts":t2,"/src/directives/modules/disabled/index.ts":i2,"/src/directives/modules/ellipsis/index.ts":c2,"/src/directives/modules/ripple/index.ts":r2,"/src/directives/modules/throttle/index.ts":d2})),o=new RegExp("(?<=modules\\/).*(?=\\/index\\.ts)"),i=/^([^-]+-)*[^-]+$/;R1(l,(a,c)=>{var r;const s=(r=c.match(o))==null?void 0:r[0];typeof s=="string"&&i.test(s)?e.directive(s,a()):console.error(`[setupDirectives] ${s} is not a valid directive name`)})},i1=async()=>{},o1=async e=>{m1(e),await v1(e),g1(e),K1(),u2(e)},f2=async()=>{const e=J(X);await o1(e),e.mount("#app"),await i1()},m2=async()=>{let e;window.__WUJIE_MOUNT=async()=>{e=J(X),await o1(e),e.mount("#app"),await i1()},window.__WUJIE_UNMOUNT=()=>{e.unmount()},window.__WUJIE.mount()};window.__POWERED_BY_WUJIE__?m2():f2(); diff --git a/js/index-BrpGRZXF.js.gz b/js/index-BrpGRZXF.js.gz new file mode 100644 index 00000000..522d0c4d Binary files /dev/null and b/js/index-BrpGRZXF.js.gz differ diff --git a/js/index-tgRTNfIG.js b/js/index-BvLKBkZY.js similarity index 94% rename from js/index-tgRTNfIG.js rename to js/index-BvLKBkZY.js index cc523f3d..2682ea5d 100644 --- a/js/index-tgRTNfIG.js +++ b/js/index-BvLKBkZY.js @@ -1 +1 @@ -import{B as d}from"./hooks-DonDO7vb.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.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"./jsbarcode@3.11.6-DGNGFp02.js";import{l as c,b as t,I as n}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import{k as u}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import{N as f,c as s,j as h}from"./naive-ui@2.40.1_vue@3.5.12-DyRQVgeU.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js";import"./utils-6rpFoFAR.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.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-dom@3.5.12-ewSD1rNh.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const lt=c({name:"ContextMenuDemo",setup(){const o=u(),i=u(!1),r=u([{label:"杰·盖茨比",key:"jay gatsby"},{label:"黛西·布坎南",key:"daisy buchanan"},{type:"divider",key:"d1"},{label:"尼克·卡拉威",key:"nick caraway"}]),{x:m,y:p,show:a,updateShow:e}=d(o);return{demoOneRef:o,demoOneShow:i,x:m,y:p,show:a,options:r,clickOutside:l=>{l.preventDefault(),e(!1)},updateShow:e}},render(){const{x:o,y:i,show:r}=this,{clickOutside:m,updateShow:p}=this;return t(s,{vertical:!0},{default:()=>[t(f,{title:"useContextmenuCoordinate + NDropdown 实现右键菜单"},{default:()=>[t(s,{vertical:!0},{default:()=>[t("h3",null,[n("默认点击元素外部会关闭菜单。")]),t("div",{ref:"demoOneRef",style:"width: 100%; height: 200px; background-color: rgba(0, 128, 0, 0.5)"},[n("右击")])]})]}),t(h,{show:r,x:o,y:i,options:this.options,trigger:"manual",placement:"bottom-start",onSelect:(a,e)=>{window.$message.info(`选中了 ${e.label}`),p(!1)},onClickoutside:m.bind(this)},null)]})}});export{lt as default}; +import{B as d}from"./hooks-BwPndLx3.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-D8VSY-p2.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.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"./jsbarcode@3.11.6-DGNGFp02.js";import{l as c,b as t,I as n}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import{k as u}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import{N as f,c as s,j as h}from"./naive-ui@2.40.1_vue@3.5.12-DyRQVgeU.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js";import"./utils-Dh5AVlvo.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.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-dom@3.5.12-ewSD1rNh.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const lt=c({name:"ContextMenuDemo",setup(){const o=u(),i=u(!1),r=u([{label:"杰·盖茨比",key:"jay gatsby"},{label:"黛西·布坎南",key:"daisy buchanan"},{type:"divider",key:"d1"},{label:"尼克·卡拉威",key:"nick caraway"}]),{x:m,y:p,show:a,updateShow:e}=d(o);return{demoOneRef:o,demoOneShow:i,x:m,y:p,show:a,options:r,clickOutside:l=>{l.preventDefault(),e(!1)},updateShow:e}},render(){const{x:o,y:i,show:r}=this,{clickOutside:m,updateShow:p}=this;return t(s,{vertical:!0},{default:()=>[t(f,{title:"useContextmenuCoordinate + NDropdown 实现右键菜单"},{default:()=>[t(s,{vertical:!0},{default:()=>[t("h3",null,[n("默认点击元素外部会关闭菜单。")]),t("div",{ref:"demoOneRef",style:"width: 100%; height: 200px; background-color: rgba(0, 128, 0, 0.5)"},[n("右击")])]})]}),t(h,{show:r,x:o,y:i,options:this.options,trigger:"manual",placement:"bottom-start",onSelect:(a,e)=>{window.$message.info(`选中了 ${e.label}`),p(!1)},onClickoutside:m.bind(this)},null)]})}});export{lt as default}; diff --git a/js/index-BvLKBkZY.js.gz b/js/index-BvLKBkZY.js.gz new file mode 100644 index 00000000..74a1cf52 Binary files /dev/null and b/js/index-BvLKBkZY.js.gz differ diff --git a/js/index-40P_oJMv.js b/js/index-Bvg2a-5l.js similarity index 96% rename from js/index-40P_oJMv.js rename to js/index-Bvg2a-5l.js index ca573862..aea2de81 100644 --- a/js/index-40P_oJMv.js +++ b/js/index-Bvg2a-5l.js @@ -1 +1 @@ -import"./hooks-DonDO7vb.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.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"./jsbarcode@3.11.6-DGNGFp02.js";import{s as n,g as l,t as c,B as f}from"./utils-6rpFoFAR.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{c as i,af as u,ag as a,T as m,P as o,N as d}from"./naive-ui@2.40.1_vue@3.5.12-DyRQVgeU.js";import{l as g,b as e,I as r}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import{k as p}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.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-dom@3.5.12-ewSD1rNh.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const ne=g({name:"CacheDemo",setup(){const t=p("Ray"),s=p("ray:");return{nameValue:t,currentPrefix:s}},render(){return e(d,{title:"cache 工具包示例"},{default:()=>e(i,{vertical:!0},{default:()=>[e("h3",null,[r("点击 setStorage 按钮,设置缓存示例")]),e(u,null,{default:()=>[e(a,null,{default:()=>[r("设置缓存内容")]}),e(m,{value:this.nameValue,"onUpdate:value":t=>this.nameValue=t,placeholder:"请输入姓名"},null)]}),e(u,null,{default:()=>[e(a,null,{default:()=>[r("设置前缀")]}),e(m,{value:this.currentPrefix,"onUpdate:value":t=>this.currentPrefix=t,placeholder:"请输入前缀"},null)]})]}),action:()=>e(i,null,{default:()=>[e(o,{onClick:()=>{n("name",this.nameValue,"sessionStorage",{prefix:!0,prefixKey:this.currentPrefix}),window.$message.success("设置成功")}},{default:()=>[r("setStorage")]}),e(o,{onClick:()=>{const t=l("name","sessionStorage",{prefix:!0,prefixKey:this.currentPrefix});window.$message.success(`获取到的姓名为:${t}`)}},{default:()=>[r("getStorage")]}),e(o,{onClick:()=>{c("name","sessionStorage",{prefix:!0,prefixKey:this.currentPrefix}),window.$message.success("删除成功")}},{default:()=>[r("removeStorage")]}),e(o,{onClick:()=>{const t=f("name","sessionStorage",{prefix:!0,prefixKey:this.currentPrefix});window.$message.success(`是否存在:${t}`)}},{default:()=>[r("hasStorage")]})]})})}});export{ne as default}; +import"./hooks-BwPndLx3.js";import"./dayjs@1.11.10-D8VSY-p2.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.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"./jsbarcode@3.11.6-DGNGFp02.js";import{s as n,g as l,t as c,B as f}from"./utils-Dh5AVlvo.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{c as i,af as u,ag as a,T as m,P as o,N as d}from"./naive-ui@2.40.1_vue@3.5.12-DyRQVgeU.js";import{l as g,b as e,I as r}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import{k as p}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.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-dom@3.5.12-ewSD1rNh.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const ne=g({name:"CacheDemo",setup(){const t=p("Ray"),s=p("ray:");return{nameValue:t,currentPrefix:s}},render(){return e(d,{title:"cache 工具包示例"},{default:()=>e(i,{vertical:!0},{default:()=>[e("h3",null,[r("点击 setStorage 按钮,设置缓存示例")]),e(u,null,{default:()=>[e(a,null,{default:()=>[r("设置缓存内容")]}),e(m,{value:this.nameValue,"onUpdate:value":t=>this.nameValue=t,placeholder:"请输入姓名"},null)]}),e(u,null,{default:()=>[e(a,null,{default:()=>[r("设置前缀")]}),e(m,{value:this.currentPrefix,"onUpdate:value":t=>this.currentPrefix=t,placeholder:"请输入前缀"},null)]})]}),action:()=>e(i,null,{default:()=>[e(o,{onClick:()=>{n("name",this.nameValue,"sessionStorage",{prefix:!0,prefixKey:this.currentPrefix}),window.$message.success("设置成功")}},{default:()=>[r("setStorage")]}),e(o,{onClick:()=>{const t=l("name","sessionStorage",{prefix:!0,prefixKey:this.currentPrefix});window.$message.success(`获取到的姓名为:${t}`)}},{default:()=>[r("getStorage")]}),e(o,{onClick:()=>{c("name","sessionStorage",{prefix:!0,prefixKey:this.currentPrefix}),window.$message.success("删除成功")}},{default:()=>[r("removeStorage")]}),e(o,{onClick:()=>{const t=f("name","sessionStorage",{prefix:!0,prefixKey:this.currentPrefix});window.$message.success(`是否存在:${t}`)}},{default:()=>[r("hasStorage")]})]})})}});export{ne as default}; diff --git a/js/index-Bvg2a-5l.js.gz b/js/index-Bvg2a-5l.js.gz new file mode 100644 index 00000000..a75a9057 Binary files /dev/null and b/js/index-Bvg2a-5l.js.gz differ diff --git a/js/index-BG6oi-U_.js b/js/index-ByAQM_Wf.js similarity index 97% rename from js/index-BG6oi-U_.js rename to js/index-ByAQM_Wf.js index a785cdff..615e82fb 100644 --- a/js/index-BG6oi-U_.js +++ b/js/index-ByAQM_Wf.js @@ -1 +1 @@ -import{Y as U,Q as j,J as z,K as G,t as L,Z as P}from"./hooks-DonDO7vb.js";import{j as Y}from"./utils-6rpFoFAR.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import{N as D,c as i,ae as _,P as u,v as S,b as r,H,T as F,ai as Q,K as X,n as Z}from"./naive-ui@2.40.1_vue@3.5.12-DyRQVgeU.js";import{l as q,b as e,I as l,F as I,p as W}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import{k as x,e as ee,x as te}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.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.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.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-dom@3.5.12-ewSD1rNh.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";function N(n){return typeof n=="function"||Object.prototype.toString.call(n)==="[object Object]"&&!W(n)}const Xe=q({name:"TableView",setup(){const[n,{getTableInstance:c,clearFilters:p,clearSorter:m,scrollTo:f,filters:C,sort:k,downloadCsv:y,print:h}]=U(),b=[{type:"selection"},{title:"Name",key:"name",filterOptions:[{label:"John Brown",value:"John Brown"},{label:"Jim Green",value:"Jim Green"}],filter:(t,a)=>a.name.includes(t.toString())},{title:"Age",key:"age",sorter:(t,a)=>t.age-a.age},{title:"Address",key:"address"},{title:"Tags",key:"tags",render:t=>t.tags.map(d=>e(S,{type:"info",bordered:!1,style:"margin-right: 6px"},N(d)?d:{default:()=>[d]}))},{title:"Remark",key:"remark"},{title:"Action",key:"actions",render:t=>e(i,{align:"center"},{default:()=>[e(u,{size:"tiny"},{default:()=>[l("查看")]}),e(P,{options:[{label:"编辑",key:"edit"},{label:"新增",key:"add"}],onSelect:a=>{window.$message.info(`当前选择: ${a}`)}},null)]})}],w=x([...b].map((t,a)=>({...t}))),s=x([]),g=[{label:"编辑",key:"edit"},{label:()=>e("span",{style:"color: red;"},[l("删除")]),key:"delete"}],E=ee({gridItemCount:4,gridCollapsedRows:1,tableLoading:!1}),[T,{checkedRowKeysBind:v,getKeys:R,getRows:o,clearKey:B,clearAll:A,selectKey:K}]=j(s,w,{rowKey:"key",onChange:(t,a,d)=>{}}),O=()=>{for(let t=0;t<10;t++)s.value.push({key:Y(),name:t%2===0?"John Brown":"Jim Green",age:t+20,address:"New York No. 1 Lake Park",tags:["nice","developer"],remark:"我是一条很长很长的备注"})},J=t=>{window.$message.info(`${t}`)},M=()=>{const{key:t}=s.value[1];B(t)},V=()=>{s.value.map(a=>a.key).forEach(a=>K(a))},$=()=>{const{key:t}=s.value[1];K(t)};return O(),{...te(E),tableData:s,actionColumns:w,baseColumns:b,tableMenuOptions:g,menuSelect:J,register:n,getKeys:R,getRows:o,clearKey:B,clearAll:A,checkedRowKeysBind:v,checkedRowKeys:T,clearSecondIndexRow:M,selectAll:V,selectSecondIndexRow:$,clearFilters:p,clearSorter:m,scrollTo:f,filters:C,sort:k,downloadCsv:y,getTableInstance:c,print:h}},render(){let n;const{register:c,clearAll:p,checkedRowKeysBind:m,clearSecondIndexRow:f,selectAll:C,selectSecondIndexRow:k,clearFilters:y,clearSorter:h,scrollTo:b,filters:w,sort:s,downloadCsv:g,getTableInstance:E,getRows:T,getKeys:v,print:R}=this;return e(i,{vertical:!0},{default:()=>[e(D,{title:"RTable"},{default:()=>[l("基于 NDataTable 封装,继承该组件所有 props 属性。查看 RTable props 文件即可查看该组件拓展项")]}),e(D,{title:"useTable"},{default:()=>[e(i,{vertical:!0,style:"width: 100%"},{default:()=>[e(_,{title:"DataTable Methods",type:"info"},{default:()=>[l("其余的方法查看")," ",e("a",{style:"color: transparent",href:"https://www.naiveui.com/zh-CN/dark/components/data-table#DataTable-Methods"},[l("Naive UI")]),l("官网,保持一致。")]}),e(i,null,{default:()=>[e(u,{onClick:h.bind(this)},{default:()=>[l("清除所有排序")]}),e(u,{onClick:y.bind(this)},{default:()=>[l("清除所有过滤")]}),e(u,{onClick:()=>{g()}},{default:()=>[l("下载 CSV")]}),e(u,{onClick:()=>E()},{default:()=>[l("getTableInstance")]}),e(u,{onClick:()=>R()},{default:()=>[l("打印")]})]})]})]}),e(D,{title:"useCheckedRowKeys"},{default:()=>[e(i,{vertical:!0},{default:()=>[e(i,null,{default:()=>[e(u,{onClick:C.bind(this)},{default:()=>[l("选中所有行")]}),e(u,{onClick:p.bind(this)},{default:()=>[l("取消所有已选中行")]}),e(u,{onClick:k.bind(this)},{default:()=>[l("选中第二行")]}),e(u,{onClick:f.bind(this)},{default:()=>[l("取消第二行选中")]})]}),e(i,null,N(n=this.checkedRowKeys.map(o=>e(S,{type:"success",key:o},N(o)?o:{default:()=>[o]})))?n:{default:()=>[n]})]})]}),e(z,{collapsedRows:this.gridCollapsedRows,cols:this.gridItemCount,onUpdateOpen:o=>window.$message.info(`我是 RCollapse 组件${o?"收起":"展开"}的回调函数`)},{action:()=>e(I,null,[e(u,{type:"primary"},{default:()=>[l("搜索")]}),e(u,null,{default:()=>[l("重置")]})]),default:()=>e(I,null,[e(r,null,{default:()=>[e(H,null,null)]}),e(r,null,{default:()=>[e(F,null,null)]}),e(r,null,{default:()=>[e(Q,{type:"datetimerange",clearable:!0},null)]}),e(r,null,{default:()=>[e(F,null,null)]}),e(r,null,{default:()=>[e(F,null,null)]})])}),e(G,{checkedRowKeys:this.checkedRowKeys,"onUpdate:checkedRowKeys":o=>this.checkedRowKeys=o,onUpdateCheckedRowKeys:m.bind(this),onRegister:c.bind(this),scrollX:1e3,title:e(i,{align:"center"},{default:()=>[e("span",null,[l("标题插槽:")]),e(X,{onUpdateValue:o=>this.tableLoading=o},null)]}),data:this.tableData,columns:this.actionColumns,"onUpdate:columns":o=>this.actionColumns=o,pagination:{pageSize:10},contextMenuOptions:this.tableMenuOptions,loading:this.tableLoading,onContextMenuClick:this.menuSelect.bind(this),toolOptions:[e(Z,null,{trigger:()=>e(L,{name:"search",size:"18",cursor:"pointer",onClick:()=>{window.$message.info("点击了搜索按钮")}},null),default:()=>"我是自定义工具栏示例"})],rowKey:o=>o.key,striped:!0},{tableFooter:()=>"表格的底部内容区域插槽,有时候你可能会用上",tableAction:()=>"表格的操作区域内容插槽,有时候可能会用上"})]})}});export{Xe as default}; +import{Y as U,Q as j,J as z,K as G,t as L,Z as P}from"./hooks-BwPndLx3.js";import{j as Y}from"./utils-Dh5AVlvo.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-D8VSY-p2.js";import"./print-js@1.6.0-BdoEj60G.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import{N as D,c as i,ae as _,P as u,v as S,b as r,H,T as F,ai as Q,K as X,n as Z}from"./naive-ui@2.40.1_vue@3.5.12-DyRQVgeU.js";import{l as q,b as e,I as l,F as I,p as W}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import{k as x,e as ee,x as te}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.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.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.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-dom@3.5.12-ewSD1rNh.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";function N(n){return typeof n=="function"||Object.prototype.toString.call(n)==="[object Object]"&&!W(n)}const Xe=q({name:"TableView",setup(){const[n,{getTableInstance:c,clearFilters:p,clearSorter:m,scrollTo:f,filters:C,sort:k,downloadCsv:y,print:h}]=U(),b=[{type:"selection"},{title:"Name",key:"name",filterOptions:[{label:"John Brown",value:"John Brown"},{label:"Jim Green",value:"Jim Green"}],filter:(t,a)=>a.name.includes(t.toString())},{title:"Age",key:"age",sorter:(t,a)=>t.age-a.age},{title:"Address",key:"address"},{title:"Tags",key:"tags",render:t=>t.tags.map(d=>e(S,{type:"info",bordered:!1,style:"margin-right: 6px"},N(d)?d:{default:()=>[d]}))},{title:"Remark",key:"remark"},{title:"Action",key:"actions",render:t=>e(i,{align:"center"},{default:()=>[e(u,{size:"tiny"},{default:()=>[l("查看")]}),e(P,{options:[{label:"编辑",key:"edit"},{label:"新增",key:"add"}],onSelect:a=>{window.$message.info(`当前选择: ${a}`)}},null)]})}],w=x([...b].map((t,a)=>({...t}))),s=x([]),g=[{label:"编辑",key:"edit"},{label:()=>e("span",{style:"color: red;"},[l("删除")]),key:"delete"}],E=ee({gridItemCount:4,gridCollapsedRows:1,tableLoading:!1}),[T,{checkedRowKeysBind:v,getKeys:R,getRows:o,clearKey:B,clearAll:A,selectKey:K}]=j(s,w,{rowKey:"key",onChange:(t,a,d)=>{}}),O=()=>{for(let t=0;t<10;t++)s.value.push({key:Y(),name:t%2===0?"John Brown":"Jim Green",age:t+20,address:"New York No. 1 Lake Park",tags:["nice","developer"],remark:"我是一条很长很长的备注"})},J=t=>{window.$message.info(`${t}`)},M=()=>{const{key:t}=s.value[1];B(t)},V=()=>{s.value.map(a=>a.key).forEach(a=>K(a))},$=()=>{const{key:t}=s.value[1];K(t)};return O(),{...te(E),tableData:s,actionColumns:w,baseColumns:b,tableMenuOptions:g,menuSelect:J,register:n,getKeys:R,getRows:o,clearKey:B,clearAll:A,checkedRowKeysBind:v,checkedRowKeys:T,clearSecondIndexRow:M,selectAll:V,selectSecondIndexRow:$,clearFilters:p,clearSorter:m,scrollTo:f,filters:C,sort:k,downloadCsv:y,getTableInstance:c,print:h}},render(){let n;const{register:c,clearAll:p,checkedRowKeysBind:m,clearSecondIndexRow:f,selectAll:C,selectSecondIndexRow:k,clearFilters:y,clearSorter:h,scrollTo:b,filters:w,sort:s,downloadCsv:g,getTableInstance:E,getRows:T,getKeys:v,print:R}=this;return e(i,{vertical:!0},{default:()=>[e(D,{title:"RTable"},{default:()=>[l("基于 NDataTable 封装,继承该组件所有 props 属性。查看 RTable props 文件即可查看该组件拓展项")]}),e(D,{title:"useTable"},{default:()=>[e(i,{vertical:!0,style:"width: 100%"},{default:()=>[e(_,{title:"DataTable Methods",type:"info"},{default:()=>[l("其余的方法查看")," ",e("a",{style:"color: transparent",href:"https://www.naiveui.com/zh-CN/dark/components/data-table#DataTable-Methods"},[l("Naive UI")]),l("官网,保持一致。")]}),e(i,null,{default:()=>[e(u,{onClick:h.bind(this)},{default:()=>[l("清除所有排序")]}),e(u,{onClick:y.bind(this)},{default:()=>[l("清除所有过滤")]}),e(u,{onClick:()=>{g()}},{default:()=>[l("下载 CSV")]}),e(u,{onClick:()=>E()},{default:()=>[l("getTableInstance")]}),e(u,{onClick:()=>R()},{default:()=>[l("打印")]})]})]})]}),e(D,{title:"useCheckedRowKeys"},{default:()=>[e(i,{vertical:!0},{default:()=>[e(i,null,{default:()=>[e(u,{onClick:C.bind(this)},{default:()=>[l("选中所有行")]}),e(u,{onClick:p.bind(this)},{default:()=>[l("取消所有已选中行")]}),e(u,{onClick:k.bind(this)},{default:()=>[l("选中第二行")]}),e(u,{onClick:f.bind(this)},{default:()=>[l("取消第二行选中")]})]}),e(i,null,N(n=this.checkedRowKeys.map(o=>e(S,{type:"success",key:o},N(o)?o:{default:()=>[o]})))?n:{default:()=>[n]})]})]}),e(z,{collapsedRows:this.gridCollapsedRows,cols:this.gridItemCount,onUpdateOpen:o=>window.$message.info(`我是 RCollapse 组件${o?"收起":"展开"}的回调函数`)},{action:()=>e(I,null,[e(u,{type:"primary"},{default:()=>[l("搜索")]}),e(u,null,{default:()=>[l("重置")]})]),default:()=>e(I,null,[e(r,null,{default:()=>[e(H,null,null)]}),e(r,null,{default:()=>[e(F,null,null)]}),e(r,null,{default:()=>[e(Q,{type:"datetimerange",clearable:!0},null)]}),e(r,null,{default:()=>[e(F,null,null)]}),e(r,null,{default:()=>[e(F,null,null)]})])}),e(G,{checkedRowKeys:this.checkedRowKeys,"onUpdate:checkedRowKeys":o=>this.checkedRowKeys=o,onUpdateCheckedRowKeys:m.bind(this),onRegister:c.bind(this),scrollX:1e3,title:e(i,{align:"center"},{default:()=>[e("span",null,[l("标题插槽:")]),e(X,{onUpdateValue:o=>this.tableLoading=o},null)]}),data:this.tableData,columns:this.actionColumns,"onUpdate:columns":o=>this.actionColumns=o,pagination:{pageSize:10},contextMenuOptions:this.tableMenuOptions,loading:this.tableLoading,onContextMenuClick:this.menuSelect.bind(this),toolOptions:[e(Z,null,{trigger:()=>e(L,{name:"search",size:"18",cursor:"pointer",onClick:()=>{window.$message.info("点击了搜索按钮")}},null),default:()=>"我是自定义工具栏示例"})],rowKey:o=>o.key,striped:!0},{tableFooter:()=>"表格的底部内容区域插槽,有时候你可能会用上",tableAction:()=>"表格的操作区域内容插槽,有时候可能会用上"})]})}});export{Xe as default}; diff --git a/js/index-ByAQM_Wf.js.gz b/js/index-ByAQM_Wf.js.gz new file mode 100644 index 00000000..2da8fd3f Binary files /dev/null and b/js/index-ByAQM_Wf.js.gz differ diff --git a/js/index-C296AXrg.js.gz b/js/index-C296AXrg.js.gz deleted file mode 100644 index 2ff1b15d..00000000 Binary files a/js/index-C296AXrg.js.gz and /dev/null differ diff --git a/js/index-C5l76f6e.js.gz b/js/index-C5l76f6e.js.gz deleted file mode 100644 index 54a0975c..00000000 Binary files a/js/index-C5l76f6e.js.gz and /dev/null differ diff --git a/js/index-C9u1x56c.js.gz b/js/index-C9u1x56c.js.gz deleted file mode 100644 index 3607fc1b..00000000 Binary files a/js/index-C9u1x56c.js.gz and /dev/null differ diff --git a/js/index-BlC6n-Ua.js b/js/index-ChU4ghcC.js similarity index 96% rename from js/index-BlC6n-Ua.js rename to js/index-ChU4ghcC.js index 2caae05f..235b6b6f 100644 --- a/js/index-BlC6n-Ua.js +++ b/js/index-ChU4ghcC.js @@ -1 +1 @@ -import{t as c,_ as o}from"./hooks-DonDO7vb.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.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"./jsbarcode@3.11.6-DGNGFp02.js";import{l as p,b as t,N as m,V as n,p as v}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import{k as E}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import{c as d,n as a,N as u}from"./naive-ui@2.40.1_vue@3.5.12-DyRQVgeU.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js";import"./utils-6rpFoFAR.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.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-dom@3.5.12-ewSD1rNh.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";function g(i){return typeof i=="function"||Object.prototype.toString.call(i)==="[object Object]"&&!v(i)}const vo=p({name:"PreviewSVGIcons",setup(){const i=E([]);return Object.keys(Object.assign({"/src/icons/action/close_other.svg":()=>o(()=>import("./close_other-DPtbrCYd.js"),[]),"/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-D_jdG9mi.js"),[]),"/src/icons/action/out.svg":()=>o(()=>import("./out-CMQCc625.js"),[]),"/src/icons/action/reload.svg":()=>o(()=>import("./reload-BPf1PV7s.js"),[]),"/src/icons/action/search.svg":()=>o(()=>import("./search-CFLGi5BR.js"),[]),"/src/icons/action/setting.svg":()=>o(()=>import("./setting-DyoycADf.js"),[]),"/src/icons/action/shared.svg":()=>o(()=>import("./shared-DVfOv8Mx.js"),[]),"/src/icons/directional/adjustment.svg":()=>o(()=>import("./adjustment-DIo_g8Za.js"),[]),"/src/icons/directional/close_left.svg":()=>o(()=>import("./close_left-DX8SFJx4.js"),[]),"/src/icons/directional/close_right.svg":()=>o(()=>import("./close_right-DWMWcuX1.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-zODhV8ab.js"),[]),"/src/icons/template/light.svg":()=>o(()=>import("./light-DWWBs-Ry.js"),[]),"/src/icons/template/system_os.svg":()=>o(()=>import("./system_os-Bu1k9Avg.js"),[]),"/src/icons/tip/axios.svg":()=>o(()=>import("./axios-o8g4A-7A.js"),[]),"/src/icons/tip/close.svg":()=>o(()=>import("./close-B43hVi0H.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-BOVZ3dlJ.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/question.svg":()=>o(()=>import("./question-TxSSjOrI.js"),[]),"/src/icons/tip/rely.svg":()=>o(()=>import("./rely-DlDUQEbT.js"),[]),"/src/icons/tip/table.svg":()=>o(()=>import("./table-tYkftQGA.js"),[])})).forEach(e=>{var s;const _=(s=e.match(/\/(\w+)\.svg/))==null?void 0:s[1];_&&i.value.push(_)}),{icons:i}},render(){return t(u,{title:"svg图标"},{"header-extra":()=>"点击图标复制代码",default:()=>{let i;return t(d,null,g(i=this.icons.map(r=>m(t("div",{class:"pre-view-icons__card",key:r},[t(a,null,{trigger:()=>t(c,{name:r,size:"56",cursor:"pointer"},null),default:()=>r})]),[[n("copy"),``]])))?i:{default:()=>[i]})}})}});export{vo as default}; +import{t as c,_ as o}from"./hooks-BwPndLx3.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-D8VSY-p2.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.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"./jsbarcode@3.11.6-DGNGFp02.js";import{l as p,b as t,N as m,V as n,p as v}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import{k as E}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import{c as d,n as a,N as u}from"./naive-ui@2.40.1_vue@3.5.12-DyRQVgeU.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js";import"./utils-Dh5AVlvo.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.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-dom@3.5.12-ewSD1rNh.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";function g(i){return typeof i=="function"||Object.prototype.toString.call(i)==="[object Object]"&&!v(i)}const vo=p({name:"PreviewSVGIcons",setup(){const i=E([]);return Object.keys(Object.assign({"/src/icons/action/close_other.svg":()=>o(()=>import("./close_other-DPtbrCYd.js"),[]),"/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-D_jdG9mi.js"),[]),"/src/icons/action/out.svg":()=>o(()=>import("./out-CMQCc625.js"),[]),"/src/icons/action/reload.svg":()=>o(()=>import("./reload-BPf1PV7s.js"),[]),"/src/icons/action/search.svg":()=>o(()=>import("./search-CFLGi5BR.js"),[]),"/src/icons/action/setting.svg":()=>o(()=>import("./setting-DyoycADf.js"),[]),"/src/icons/action/shared.svg":()=>o(()=>import("./shared-DVfOv8Mx.js"),[]),"/src/icons/directional/adjustment.svg":()=>o(()=>import("./adjustment-DIo_g8Za.js"),[]),"/src/icons/directional/close_left.svg":()=>o(()=>import("./close_left-DX8SFJx4.js"),[]),"/src/icons/directional/close_right.svg":()=>o(()=>import("./close_right-DWMWcuX1.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-zODhV8ab.js"),[]),"/src/icons/template/light.svg":()=>o(()=>import("./light-DWWBs-Ry.js"),[]),"/src/icons/template/system_os.svg":()=>o(()=>import("./system_os-Bu1k9Avg.js"),[]),"/src/icons/tip/axios.svg":()=>o(()=>import("./axios-o8g4A-7A.js"),[]),"/src/icons/tip/close.svg":()=>o(()=>import("./close-B43hVi0H.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-BOVZ3dlJ.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/question.svg":()=>o(()=>import("./question-TxSSjOrI.js"),[]),"/src/icons/tip/rely.svg":()=>o(()=>import("./rely-DlDUQEbT.js"),[]),"/src/icons/tip/table.svg":()=>o(()=>import("./table-tYkftQGA.js"),[])})).forEach(e=>{var s;const _=(s=e.match(/\/(\w+)\.svg/))==null?void 0:s[1];_&&i.value.push(_)}),{icons:i}},render(){return t(u,{title:"svg图标"},{"header-extra":()=>"点击图标复制代码",default:()=>{let i;return t(d,null,g(i=this.icons.map(r=>m(t("div",{class:"pre-view-icons__card",key:r},[t(a,null,{trigger:()=>t(c,{name:r,size:"56",cursor:"pointer"},null),default:()=>r})]),[[n("copy"),``]])))?i:{default:()=>[i]})}})}});export{vo as default}; diff --git a/js/index-ChU4ghcC.js.gz b/js/index-ChU4ghcC.js.gz new file mode 100644 index 00000000..8ca15b41 Binary files /dev/null and b/js/index-ChU4ghcC.js.gz differ diff --git a/js/index-ZK2gtRBB.js b/js/index-Curo11pz.js similarity index 95% rename from js/index-ZK2gtRBB.js rename to js/index-Curo11pz.js index 88673cfb..717a2232 100644 --- a/js/index-ZK2gtRBB.js +++ b/js/index-Curo11pz.js @@ -1 +1 @@ -import{N as m,R as i}from"./hooks-DonDO7vb.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.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"./jsbarcode@3.11.6-DGNGFp02.js";import{N as o,c as a,P as r}from"./naive-ui@2.40.1_vue@3.5.12-DyRQVgeU.js";import{l as p,b as u,I as t}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import{e as s,x as E}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js";import"./utils-6rpFoFAR.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.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-dom@3.5.12-ewSD1rNh.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const au=p({name:"ModalDemo",setup(){const l=s({modal1:!1,modal2:!1,modal3:!1}),{create:F}=m(),e=()=>{F({title:"卡片模态框",dad:!0,preset:"card",content:"我可以被拖拽的全屏card模态框",fullscreen:!0})},d=()=>{F({title:"模态框",content:"内容",preset:"dialog",dad:!0})};return{...E(l),createCardModal:e,createDialogModal:d}},render(){const{createCardModal:l,createDialogModal:F}=this;return u(a,{vertical:!0},{default:()=>[u(o,{title:"props"},{default:()=>[u(a,{vertical:!0},{default:()=>[u("h3",null,[t("memoryPosition: 是否记住上一次被拖拽的位置,如果设置为 true,那么下一次打开的时候会自动定位到上一次的位置。")]),u("h3",null,[t("fullscreen: 全屏模态框。")]),u("h3",null,[t("dad: 启用拖拽,当配置为 false 时,会禁用拖拽效果。")])]})]}),u(i,{show:this.modal1,"onUpdate:show":e=>this.modal1=e,title:"全屏模态框",fullscreen:!0,preset:"card"},{default:()=>[t("我是全屏模态框,并且会自动启用滚动条。")]}),u(i,{show:this.modal2,"onUpdate:show":e=>this.modal2=e,preset:"card",title:"可拖拽卡片模态框",dad:!0},{default:()=>[u("p",null,[t("我可以被拖拽")])]}),u(i,{show:this.modal3,"onUpdate:show":e=>this.modal3=e,preset:"dialog",title:"可拖拽卡片模态框",dad:!0},{default:()=>[u("p",null,[t("我可以被拖拽")])]}),u(o,{title:"可拖拽模态框"},{default:()=>[u(r,{onClick:()=>this.modal2=!0},{default:()=>[t("卡片模态框")]}),u(r,{onClick:()=>this.modal3=!0},{default:()=>[t("对话框模态框")]})]}),u(o,{title:"全屏模态框"},{default:()=>[u(a,{vertical:!0},{default:()=>[u("h4",null,[t("全屏模态框需要同时设置:fullscreen 为 true,并且 preset 为 card 时才会生效。")]),u(r,{onClick:()=>this.modal1=!0},{default:()=>[t("打开")]})]})]}),u(o,{title:"手动设置宽度"},{default:()=>[u("h4",null,[t("width(--r-modal-width): 当 preset 不为 dialog 或者 card 的时候,你可能用得上。")]),u("h4",null,[t("dialogWidth(--r-modal-dialog-width): 当 preset 为 dialog,你可能用得上。")]),u("h4",null,[t("cardWidth(--r-modal-card-width): 当 preset 为 card,你可能用得上。")]),u("h4",null,[t("所有的宽度配置属性都会注入一个对应的 `css variable`,有时候会用上。")])]}),u(o,{title:"重写 useModal"},{default:()=>[u(r,{onClick:l.bind(this)},{default:()=>[t("创建卡片模态框")]}),u(r,{onClick:F.bind(this)},{default:()=>[t("创建对话框模态框")]})]})]})}});export{au as default}; +import{N as m,R as i}from"./hooks-BwPndLx3.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-D8VSY-p2.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.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"./jsbarcode@3.11.6-DGNGFp02.js";import{N as o,c as a,P as r}from"./naive-ui@2.40.1_vue@3.5.12-DyRQVgeU.js";import{l as p,b as u,I as t}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import{e as s,x as E}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js";import"./utils-Dh5AVlvo.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.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-dom@3.5.12-ewSD1rNh.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const au=p({name:"ModalDemo",setup(){const l=s({modal1:!1,modal2:!1,modal3:!1}),{create:F}=m(),e=()=>{F({title:"卡片模态框",dad:!0,preset:"card",content:"我可以被拖拽的全屏card模态框",fullscreen:!0})},d=()=>{F({title:"模态框",content:"内容",preset:"dialog",dad:!0})};return{...E(l),createCardModal:e,createDialogModal:d}},render(){const{createCardModal:l,createDialogModal:F}=this;return u(a,{vertical:!0},{default:()=>[u(o,{title:"props"},{default:()=>[u(a,{vertical:!0},{default:()=>[u("h3",null,[t("memoryPosition: 是否记住上一次被拖拽的位置,如果设置为 true,那么下一次打开的时候会自动定位到上一次的位置。")]),u("h3",null,[t("fullscreen: 全屏模态框。")]),u("h3",null,[t("dad: 启用拖拽,当配置为 false 时,会禁用拖拽效果。")])]})]}),u(i,{show:this.modal1,"onUpdate:show":e=>this.modal1=e,title:"全屏模态框",fullscreen:!0,preset:"card"},{default:()=>[t("我是全屏模态框,并且会自动启用滚动条。")]}),u(i,{show:this.modal2,"onUpdate:show":e=>this.modal2=e,preset:"card",title:"可拖拽卡片模态框",dad:!0},{default:()=>[u("p",null,[t("我可以被拖拽")])]}),u(i,{show:this.modal3,"onUpdate:show":e=>this.modal3=e,preset:"dialog",title:"可拖拽卡片模态框",dad:!0},{default:()=>[u("p",null,[t("我可以被拖拽")])]}),u(o,{title:"可拖拽模态框"},{default:()=>[u(r,{onClick:()=>this.modal2=!0},{default:()=>[t("卡片模态框")]}),u(r,{onClick:()=>this.modal3=!0},{default:()=>[t("对话框模态框")]})]}),u(o,{title:"全屏模态框"},{default:()=>[u(a,{vertical:!0},{default:()=>[u("h4",null,[t("全屏模态框需要同时设置:fullscreen 为 true,并且 preset 为 card 时才会生效。")]),u(r,{onClick:()=>this.modal1=!0},{default:()=>[t("打开")]})]})]}),u(o,{title:"手动设置宽度"},{default:()=>[u("h4",null,[t("width(--r-modal-width): 当 preset 不为 dialog 或者 card 的时候,你可能用得上。")]),u("h4",null,[t("dialogWidth(--r-modal-dialog-width): 当 preset 为 dialog,你可能用得上。")]),u("h4",null,[t("cardWidth(--r-modal-card-width): 当 preset 为 card,你可能用得上。")]),u("h4",null,[t("所有的宽度配置属性都会注入一个对应的 `css variable`,有时候会用上。")])]}),u(o,{title:"重写 useModal"},{default:()=>[u(r,{onClick:l.bind(this)},{default:()=>[t("创建卡片模态框")]}),u(r,{onClick:F.bind(this)},{default:()=>[t("创建对话框模态框")]})]})]})}});export{au as default}; diff --git a/js/index-Curo11pz.js.gz b/js/index-Curo11pz.js.gz new file mode 100644 index 00000000..c95f0896 Binary files /dev/null and b/js/index-Curo11pz.js.gz differ diff --git a/js/index-D6uzvoU7.js.gz b/js/index-D6uzvoU7.js.gz deleted file mode 100644 index e19d64da..00000000 Binary files a/js/index-D6uzvoU7.js.gz and /dev/null differ diff --git a/js/index-C5l76f6e.js b/js/index-D8sJnOnX.js similarity index 93% rename from js/index-C5l76f6e.js rename to js/index-D8sJnOnX.js index f124f7a7..17e04f49 100644 --- a/js/index-C5l76f6e.js +++ b/js/index-D8sJnOnX.js @@ -1 +1 @@ -import{K as p}from"./hooks-DonDO7vb.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import{u as a}from"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import{P as n,c as m}from"./naive-ui@2.40.1_vue@3.5.12-DyRQVgeU.js";import{l as u,b as o,I as s}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import{k as l}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.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-6rpFoFAR.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.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-dom@3.5.12-ewSD1rNh.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const pt=u({name:"RouterDemoHome",setup(){const r=a(),i=l([{title:"姓名",key:"name"},{title:"地址",key:"address"},{title:"联系方式",key:"phone"},{title:"操作",key:"",render:t=>o(m,{align:"center"},{default:()=>[o(n,{type:"info",text:!0,size:"tiny",onClick:()=>{r.push({path:"/router-demo/router-demo-detail",query:{name:t.name}})}},{default:()=>[s("详情")]})]})}]),e=[];for(let t=0;t<10;t++)e.push({name:"张三"+t,address:"New York No. 1 Lake Park",phone:"010-121212",key:t});return{dataSource:e,columns:i}},render(){return o(m,null,{default:()=>[o(p,{columns:this.columns,"onUpdate:columns":r=>this.columns=r,data:this.dataSource},null)]})}});export{pt as default}; +import{K as p}from"./hooks-BwPndLx3.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-D8VSY-p2.js";import"./print-js@1.6.0-BdoEj60G.js";import{u as a}from"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import{P as n,c as m}from"./naive-ui@2.40.1_vue@3.5.12-DyRQVgeU.js";import{l as u,b as o,I as s}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import{k as l}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.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-Dh5AVlvo.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.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-dom@3.5.12-ewSD1rNh.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const pt=u({name:"RouterDemoHome",setup(){const r=a(),i=l([{title:"姓名",key:"name"},{title:"地址",key:"address"},{title:"联系方式",key:"phone"},{title:"操作",key:"",render:t=>o(m,{align:"center"},{default:()=>[o(n,{type:"info",text:!0,size:"tiny",onClick:()=>{r.push({path:"/router-demo/router-demo-detail",query:{name:t.name}})}},{default:()=>[s("详情")]})]})}]),e=[];for(let t=0;t<10;t++)e.push({name:"张三"+t,address:"New York No. 1 Lake Park",phone:"010-121212",key:t});return{dataSource:e,columns:i}},render(){return o(m,null,{default:()=>[o(p,{columns:this.columns,"onUpdate:columns":r=>this.columns=r,data:this.dataSource},null)]})}});export{pt as default}; diff --git a/js/index-D8sJnOnX.js.gz b/js/index-D8sJnOnX.js.gz new file mode 100644 index 00000000..97e19579 Binary files /dev/null and b/js/index-D8sJnOnX.js.gz differ diff --git a/js/index-5V4yf9yZ.js b/js/index-DGkUQRrD.js similarity index 95% rename from js/index-5V4yf9yZ.js rename to js/index-DGkUQRrD.js index 598babbd..021d669b 100644 --- a/js/index-5V4yf9yZ.js +++ b/js/index-DGkUQRrD.js @@ -1 +1 @@ -import{F as f,G as h}from"./hooks-DonDO7vb.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.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"./jsbarcode@3.11.6-DGNGFp02.js";import{a as F,ah as r,T as p,M as v,ai as b,aj as y,ak as s,c as N,P as l}from"./naive-ui@2.40.1_vue@3.5.12-DyRQVgeU.js";import{l as k,b as t,I as i}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import{k as d}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js";import"./utils-6rpFoFAR.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.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-dom@3.5.12-ewSD1rNh.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const Ft=k({name:"RFormDemo",setup(){const[u,{getFormInstance:m,validate:o,restoreValidation:n,formModel:a,formRules:e}]=f({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"}}),c=d(e()),g=d(a());return{register:u,rules:c,condition:g,restoreValidation:n,formModel:a,validate:o}},render(){const{rules:u}=this,{register:m,restoreValidation:o,formModel:n,validate:a}=this;return t(h,{onRegister:m,rules:u,model:this.condition},{default:()=>[t(F,{cols:24,xGap:24},{default:()=>[t(r,{label:"姓名",path:"name",span:12},{default:()=>[t(p,{value:this.condition.name,"onUpdate:value":e=>this.condition.name=e},null)]}),t(r,{label:"年龄",path:"age",span:12},{default:()=>[t(v,{value:this.condition.age,"onUpdate:value":e=>this.condition.age=e,showButton:!1,style:"width: 100%"},null)]}),t(r,{label:"出生日期",path:"date",span:12},{default:()=>[t(b,{value:this.condition.date,"onUpdate:value":e=>this.condition.date=e,style:"width: 100%"},null)]}),t(r,{label:"性别",path:"gender",span:12},{default:()=>[t(y,{value:this.condition.gender,"onUpdate:value":e=>this.condition.gender=e},{default:()=>[t(s,{value:"girl"},{default:()=>[i("女")]}),t(s,{value:"man"},{default:()=>[i("男")]})]})]}),t(r,{label:"备注信息",span:24},{default:()=>[t(p,{type:"textarea",value:this.condition.remark,"onUpdate:value":e=>this.condition.remark=e},null)]}),t(r,{span:24},{default:()=>[t(N,{justify:"flex-end",style:"width: 100%"},{default:()=>[t(l,{type:"info",onClick:()=>{this.condition=n(),o()}},{default:()=>[i("重置表单为初始状态")]}),t(l,{type:"warning",onClick:o.bind(this)},{default:()=>[i("移除校验状态")]}),t(l,{type:"primary",onClick:()=>a()},{default:()=>[i("校验")]})]})]})]})]})}});export{Ft as default}; +import{F as f,G as h}from"./hooks-BwPndLx3.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-D8VSY-p2.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.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"./jsbarcode@3.11.6-DGNGFp02.js";import{a as F,ah as r,T as p,M as v,ai as b,aj as y,ak as s,c as N,P as l}from"./naive-ui@2.40.1_vue@3.5.12-DyRQVgeU.js";import{l as k,b as t,I as i}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import{k as d}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js";import"./utils-Dh5AVlvo.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.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-dom@3.5.12-ewSD1rNh.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const Ft=k({name:"RFormDemo",setup(){const[u,{getFormInstance:m,validate:o,restoreValidation:n,formModel:a,formRules:e}]=f({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"}}),c=d(e()),g=d(a());return{register:u,rules:c,condition:g,restoreValidation:n,formModel:a,validate:o}},render(){const{rules:u}=this,{register:m,restoreValidation:o,formModel:n,validate:a}=this;return t(h,{onRegister:m,rules:u,model:this.condition},{default:()=>[t(F,{cols:24,xGap:24},{default:()=>[t(r,{label:"姓名",path:"name",span:12},{default:()=>[t(p,{value:this.condition.name,"onUpdate:value":e=>this.condition.name=e},null)]}),t(r,{label:"年龄",path:"age",span:12},{default:()=>[t(v,{value:this.condition.age,"onUpdate:value":e=>this.condition.age=e,showButton:!1,style:"width: 100%"},null)]}),t(r,{label:"出生日期",path:"date",span:12},{default:()=>[t(b,{value:this.condition.date,"onUpdate:value":e=>this.condition.date=e,style:"width: 100%"},null)]}),t(r,{label:"性别",path:"gender",span:12},{default:()=>[t(y,{value:this.condition.gender,"onUpdate:value":e=>this.condition.gender=e},{default:()=>[t(s,{value:"girl"},{default:()=>[i("女")]}),t(s,{value:"man"},{default:()=>[i("男")]})]})]}),t(r,{label:"备注信息",span:24},{default:()=>[t(p,{type:"textarea",value:this.condition.remark,"onUpdate:value":e=>this.condition.remark=e},null)]}),t(r,{span:24},{default:()=>[t(N,{justify:"flex-end",style:"width: 100%"},{default:()=>[t(l,{type:"info",onClick:()=>{this.condition=n(),o()}},{default:()=>[i("重置表单为初始状态")]}),t(l,{type:"warning",onClick:o.bind(this)},{default:()=>[i("移除校验状态")]}),t(l,{type:"primary",onClick:()=>a()},{default:()=>[i("校验")]})]})]})]})]})}});export{Ft as default}; diff --git a/js/index-DGkUQRrD.js.gz b/js/index-DGkUQRrD.js.gz new file mode 100644 index 00000000..87fe22f9 Binary files /dev/null and b/js/index-DGkUQRrD.js.gz differ diff --git a/js/index-DrOZrx4m.js b/js/index-DJPWBbTq.js similarity index 98% rename from js/index-DrOZrx4m.js rename to js/index-DJPWBbTq.js index cdea7d52..b6d0fe63 100644 --- a/js/index-DrOZrx4m.js +++ b/js/index-DJPWBbTq.js @@ -1 +1 @@ -import{j as O,q as C,r as L,f,t as r,e as F,u as P,h as A,v as $}from"./hooks-DonDO7vb.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.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"./jsbarcode@3.11.6-DGNGFp02.js";import{u as q}from"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import{s as y}from"./utils-6rpFoFAR.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{L as w,T as S,P as z,q as G,U as V,n as I,c as l,x as D,K as U,y as b,j as E,a as Q,b as k,N as H,s as K,aa as c,F as x}from"./naive-ui@2.40.1_vue@3.5.12-DyRQVgeU.js";import{l as a,b as e,p as m,I as d,F as W}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import{k as p,e as _,x as j}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import{Q as B}from"./vue3-next-qrcode@2.0.10_typescript@5.2.2-BJQJW2Mf.js";import{L as X}from"./ray-dCjhX_JK.js";import{e as Y}from"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import{A as J}from"./index-CgOgVoYU.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.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@11.1.0_vue@3.5.12-B9WpRTpD.js";import"./@vue_runtime-dom@3.5.12-ewSD1rNh.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";function M(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!m(t)}const Z=a({name:"RSigning",setup(){const t=p(),{t:i}=L(),{signing:n}=O(),{getRootPath:o}=C(),s=p(!1),u=()=>({name:"Ray Admin",pwd:"123456"}),R=q(),g=p(u()),T={name:{required:!0,message:i("views.login.index.NamePlaceholder"),trigger:["blur","input"]},pwd:{required:!0,message:i("views.login.index.PasswordPlaceholder"),trigger:["blur","input"]}};return{signingForm:g,loginFormRef:t,handleLogin:()=>{var h;(h=t.value)==null||h.validate(N=>{N||(s.value=!0,n(g.value).then(v=>{v.code===0&&setTimeout(()=>{window.$message.success(`欢迎${g.value.name}登陆~`),y(f.token,"tokenValue","localStorage"),y(f.signing,v.data,"localStorage"),R.push(o.value),s.value=!1},2*1e3)}).catch(()=>{window.$message.error("不可以这样哟, 不可以哟")}))})},rules:T,loading:s}},render(){let t;const{$t:i,loading:n}=this;return e(G,{model:this.signingForm,ref:"loginFormRef",rules:this.rules},{default:()=>[e(w,{label:i("views.login.index.Name"),path:"name"},{default:()=>[e(S,{value:this.signingForm.name,"onUpdate:value":o=>this.signingForm.name=o,placeholder:i("views.login.index.NamePlaceholder")},null)]}),e(w,{label:i("views.login.index.Password"),path:"pwd"},{default:()=>[e(S,{value:this.signingForm.pwd,"onUpdate:value":o=>this.signingForm.pwd=o,type:"password",showPasswordOn:"click",placeholder:i("views.login.index.PasswordPlaceholder"),onKeydown:o=>o.key==="Enter"&&this.handleLogin()},null)]}),e(z,{style:["width: 100%","margin-to: 18px"],type:"primary",onClick:this.handleLogin.bind(this),loading:n},M(t=i("views.login.index.Login"))?t:{default:()=>[t]})]})}}),ee=a({name:"RRegister",render(){return e(V,{status:"info",title:"提示",description:"我实在是不想写了..."},null)}}),te=a({name:"QRCodeSigning",setup(){const t=_({qrcodeValue:"https://github.com/XiaoDaiGua-Ray/xiaodaigua-ray.github.io"});return{...j(t)}},render(){return e("div",{class:"qrcode-signing"},[e(B,{text:"ray template yes",size:200,logoImage:X},null)])}});function ie(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!m(t)}const ne=a({name:"SSOSigning",setup(){return{ssoSigningOptions:[{icon:"github",key:"github",tooltipLabel:"Github登陆"},{icon:"google",key:"google",tooltipLabel:"Google登陆"},{icon:"twitter",key:"twitter",tooltipLabel:"Twitter登陆"}],handleSSOSigningClick:n=>{window.$message.info(`调用${n.tooltipLabel}`)}}},render(){let t;return e(l,{class:"sso-signing",align:"center"},ie(t=this.ssoSigningOptions.map(i=>e(I,{key:i.key},{trigger:()=>e(r,{name:i.icon,size:"24",cursor:"pointer",onClick:this.handleSSOSigningClick.bind(this,i)},null),default:()=>i.tooltipLabel})))?t:{default:()=>[t]})}}),oe=a({name:"ThemeSwitch",setup(){const{darkTheme:t,lightTheme:i}=P(),{getAppTheme:n}=F(),o=p(n.value);return{darkTheme:t,lightTheme:i,getAppTheme:n,railStyle:({checked:u})=>u?{backgroundColor:"#000000"}:{color:"#000000"},modelAppThemeRef:o}},render(){const{$t:t,darkTheme:i,lightTheme:n,railStyle:o}=this;return e(l,{justify:"center"},{default:()=>[e(D,null,{trigger:()=>e(U,{value:this.modelAppThemeRef,"onUpdate:value":s=>this.modelAppThemeRef=s,railStyle:o.bind(this),onUpdateValue:s=>s?i():n()},{"checked-icon":()=>e(r,{name:"dark"},null),"unchecked-icon":()=>e(r,{name:"light"},null),checked:()=>"亮",unchecked:()=>"暗"}),default:()=>this.getAppTheme?t("headerSettingOptions.ThemeOptions.Dark"):t("headerSettingOptions.ThemeOptions.Light")})]})}});var se={pkg:{dependencies:{"@vueuse/core":"^11.1.0",axios:"^1.7.5",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10",echarts:"^5.5.0","html-to-image":"1.11.11",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.40.1",pinia:"^2.2.4","pinia-plugin-persistedstate":"^4.1.1","print-js":"^1.6.0",vue:"^3.5.12","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:"5.0.1"},layout:{copyright:"Copyright © 2022-present Ray"},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};function le(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!m(t)}const st=a({name:"RLogin",setup(){const{layout:{copyright:t}}=se,i=_({tabsValue:"signing"}),{height:n,width:o}=Y(),{updateLocale:s}=A();return{...j(i),windowHeight:n,updateLocale:s,copyright:t,windowWidth:o}},render(){let t;const{$t:i}=this;return e("div",{class:["login"],style:[`height: ${this.windowHeight}px`,`--login-height: ${this.windowHeight}px`]},[e("div",{class:["login-wrapper",this.windowWidth>=1440?"login-wrapper--divider":""]},[e("div",{class:["login-wrapper__content"]},[e(l,{align:"center",class:"login-title__wrapper"},{default:()=>[e(r,{name:"ray",size:"48"},null),e(b,{class:"login-title",type:"info",size:28},{default:()=>[d("Ray Template")]})]}),e(l,{align:"center",class:"login-action__wrapper"},{default:()=>[e(oe,null,null),e(E,{options:$,onSelect:n=>this.updateLocale(n),trigger:"click"},{default:()=>[e(r,{customClassName:"login-icon",name:"language",size:"18",cursor:"pointer"},null)]})]}),e(Q,{cols:"s:1 m:1 l:2 xl:2 2xl:2",itemResponsive:!1,responsive:"screen"},{default:()=>[e(k,{span:"s:0 m:0 l:1 xl:1 2xl:1",class:"login__left-wrapper"},{default:()=>[e(l,{align:"center",vertical:!0},{default:()=>[e(r,{name:"login_bg",width:"368",height:"368"},null),e(b,{class:"login-title",type:"info",size:36},le(t=i("views.login.index.RayTemplate"))?t:{default:()=>[t]})]})]}),e(k,{span:1,class:"login__right-wrapper"},{default:()=>[e(H,{class:"login__right-wrapper__content",embedded:!0,bordered:!1},{default:()=>[e(K,{value:this.tabsValue,"onUpdate:value":n=>this.tabsValue=n,type:"line",animated:!0,size:"large"},{default:()=>e(W,null,[e(c,{tab:i("views.login.index.Signing"),name:"signing"},{default:()=>[e(Z,null,null)]}),e(c,{tab:i("views.login.index.Register"),name:"register"},{default:()=>[e(ee,null,null)]}),e(c,{tab:i("views.login.index.QRCodeSigning"),name:"qrcodeSigning"},{default:()=>[e(te,null,null)]})])}),e(x,null,{default:()=>[d("其他登陆方式")]}),e(ne,null,null),e(x,null,{default:()=>[d("友情链接")]}),e(J,null,null)]})]})]}),e(l,{align:"center",justify:"center",class:"login-copyright__wrapper"},{default:()=>[this.copyright]})])])])}});export{st as default}; +import{j as O,q as C,r as L,f,t as r,e as F,u as P,h as A,v as $}from"./hooks-BwPndLx3.js";import"./dayjs@1.11.10-D8VSY-p2.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.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"./jsbarcode@3.11.6-DGNGFp02.js";import{u as q}from"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import{s as y}from"./utils-Dh5AVlvo.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{L as w,T as S,P as z,q as G,U as V,n as I,c as l,x as D,K as U,y as b,j as E,a as Q,b as k,N as H,s as K,aa as c,F as x}from"./naive-ui@2.40.1_vue@3.5.12-DyRQVgeU.js";import{l as a,b as e,p as m,I as d,F as W}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import{k as p,e as _,x as j}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import{Q as B}from"./vue3-next-qrcode@2.0.10_typescript@5.2.2-BJQJW2Mf.js";import{L as X}from"./ray-dCjhX_JK.js";import{e as Y}from"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import{A as J}from"./index-CgOgVoYU.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.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@11.1.0_vue@3.5.12-B9WpRTpD.js";import"./@vue_runtime-dom@3.5.12-ewSD1rNh.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";function M(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!m(t)}const Z=a({name:"RSigning",setup(){const t=p(),{t:i}=L(),{signing:n}=O(),{getRootPath:o}=C(),s=p(!1),u=()=>({name:"Ray Admin",pwd:"123456"}),R=q(),g=p(u()),T={name:{required:!0,message:i("views.login.index.NamePlaceholder"),trigger:["blur","input"]},pwd:{required:!0,message:i("views.login.index.PasswordPlaceholder"),trigger:["blur","input"]}};return{signingForm:g,loginFormRef:t,handleLogin:()=>{var h;(h=t.value)==null||h.validate(N=>{N||(s.value=!0,n(g.value).then(v=>{v.code===0&&setTimeout(()=>{window.$message.success(`欢迎${g.value.name}登陆~`),y(f.token,"tokenValue","localStorage"),y(f.signing,v.data,"localStorage"),R.push(o.value),s.value=!1},2*1e3)}).catch(()=>{window.$message.error("不可以这样哟, 不可以哟")}))})},rules:T,loading:s}},render(){let t;const{$t:i,loading:n}=this;return e(G,{model:this.signingForm,ref:"loginFormRef",rules:this.rules},{default:()=>[e(w,{label:i("views.login.index.Name"),path:"name"},{default:()=>[e(S,{value:this.signingForm.name,"onUpdate:value":o=>this.signingForm.name=o,placeholder:i("views.login.index.NamePlaceholder")},null)]}),e(w,{label:i("views.login.index.Password"),path:"pwd"},{default:()=>[e(S,{value:this.signingForm.pwd,"onUpdate:value":o=>this.signingForm.pwd=o,type:"password",showPasswordOn:"click",placeholder:i("views.login.index.PasswordPlaceholder"),onKeydown:o=>o.key==="Enter"&&this.handleLogin()},null)]}),e(z,{style:["width: 100%","margin-to: 18px"],type:"primary",onClick:this.handleLogin.bind(this),loading:n},M(t=i("views.login.index.Login"))?t:{default:()=>[t]})]})}}),ee=a({name:"RRegister",render(){return e(V,{status:"info",title:"提示",description:"我实在是不想写了..."},null)}}),te=a({name:"QRCodeSigning",setup(){const t=_({qrcodeValue:"https://github.com/XiaoDaiGua-Ray/xiaodaigua-ray.github.io"});return{...j(t)}},render(){return e("div",{class:"qrcode-signing"},[e(B,{text:"ray template yes",size:200,logoImage:X},null)])}});function ie(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!m(t)}const ne=a({name:"SSOSigning",setup(){return{ssoSigningOptions:[{icon:"github",key:"github",tooltipLabel:"Github登陆"},{icon:"google",key:"google",tooltipLabel:"Google登陆"},{icon:"twitter",key:"twitter",tooltipLabel:"Twitter登陆"}],handleSSOSigningClick:n=>{window.$message.info(`调用${n.tooltipLabel}`)}}},render(){let t;return e(l,{class:"sso-signing",align:"center"},ie(t=this.ssoSigningOptions.map(i=>e(I,{key:i.key},{trigger:()=>e(r,{name:i.icon,size:"24",cursor:"pointer",onClick:this.handleSSOSigningClick.bind(this,i)},null),default:()=>i.tooltipLabel})))?t:{default:()=>[t]})}}),oe=a({name:"ThemeSwitch",setup(){const{darkTheme:t,lightTheme:i}=P(),{getAppTheme:n}=F(),o=p(n.value);return{darkTheme:t,lightTheme:i,getAppTheme:n,railStyle:({checked:u})=>u?{backgroundColor:"#000000"}:{color:"#000000"},modelAppThemeRef:o}},render(){const{$t:t,darkTheme:i,lightTheme:n,railStyle:o}=this;return e(l,{justify:"center"},{default:()=>[e(D,null,{trigger:()=>e(U,{value:this.modelAppThemeRef,"onUpdate:value":s=>this.modelAppThemeRef=s,railStyle:o.bind(this),onUpdateValue:s=>s?i():n()},{"checked-icon":()=>e(r,{name:"dark"},null),"unchecked-icon":()=>e(r,{name:"light"},null),checked:()=>"亮",unchecked:()=>"暗"}),default:()=>this.getAppTheme?t("headerSettingOptions.ThemeOptions.Dark"):t("headerSettingOptions.ThemeOptions.Light")})]})}});var se={pkg:{dependencies:{"@vueuse/core":"^11.1.0",axios:"^1.7.5",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10",echarts:"^5.5.0","html-to-image":"1.11.11",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.40.1",pinia:"^2.2.4","pinia-plugin-persistedstate":"^4.1.1","print-js":"^1.6.0",vue:"^3.5.12","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:"5.0.1"},layout:{copyright:"Copyright © 2022-present Ray"},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};function le(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!m(t)}const st=a({name:"RLogin",setup(){const{layout:{copyright:t}}=se,i=_({tabsValue:"signing"}),{height:n,width:o}=Y(),{updateLocale:s}=A();return{...j(i),windowHeight:n,updateLocale:s,copyright:t,windowWidth:o}},render(){let t;const{$t:i}=this;return e("div",{class:["login"],style:[`height: ${this.windowHeight}px`,`--login-height: ${this.windowHeight}px`]},[e("div",{class:["login-wrapper",this.windowWidth>=1440?"login-wrapper--divider":""]},[e("div",{class:["login-wrapper__content"]},[e(l,{align:"center",class:"login-title__wrapper"},{default:()=>[e(r,{name:"ray",size:"48"},null),e(b,{class:"login-title",type:"info",size:28},{default:()=>[d("Ray Template")]})]}),e(l,{align:"center",class:"login-action__wrapper"},{default:()=>[e(oe,null,null),e(E,{options:$,onSelect:n=>this.updateLocale(n),trigger:"click"},{default:()=>[e(r,{customClassName:"login-icon",name:"language",size:"18",cursor:"pointer"},null)]})]}),e(Q,{cols:"s:1 m:1 l:2 xl:2 2xl:2",itemResponsive:!1,responsive:"screen"},{default:()=>[e(k,{span:"s:0 m:0 l:1 xl:1 2xl:1",class:"login__left-wrapper"},{default:()=>[e(l,{align:"center",vertical:!0},{default:()=>[e(r,{name:"login_bg",width:"368",height:"368"},null),e(b,{class:"login-title",type:"info",size:36},le(t=i("views.login.index.RayTemplate"))?t:{default:()=>[t]})]})]}),e(k,{span:1,class:"login__right-wrapper"},{default:()=>[e(H,{class:"login__right-wrapper__content",embedded:!0,bordered:!1},{default:()=>[e(K,{value:this.tabsValue,"onUpdate:value":n=>this.tabsValue=n,type:"line",animated:!0,size:"large"},{default:()=>e(W,null,[e(c,{tab:i("views.login.index.Signing"),name:"signing"},{default:()=>[e(Z,null,null)]}),e(c,{tab:i("views.login.index.Register"),name:"register"},{default:()=>[e(ee,null,null)]}),e(c,{tab:i("views.login.index.QRCodeSigning"),name:"qrcodeSigning"},{default:()=>[e(te,null,null)]})])}),e(x,null,{default:()=>[d("其他登陆方式")]}),e(ne,null,null),e(x,null,{default:()=>[d("友情链接")]}),e(J,null,null)]})]})]}),e(l,{align:"center",justify:"center",class:"login-copyright__wrapper"},{default:()=>[this.copyright]})])])])}});export{st as default}; diff --git a/js/index-DJPWBbTq.js.gz b/js/index-DJPWBbTq.js.gz new file mode 100644 index 00000000..f81de30c Binary files /dev/null and b/js/index-DJPWBbTq.js.gz differ diff --git a/js/index-hU9_Mjki.js b/js/index-DMtG6gGb.js similarity index 97% rename from js/index-hU9_Mjki.js rename to js/index-DMtG6gGb.js index 12e0e126..2a0bbf02 100644 --- a/js/index-hU9_Mjki.js +++ b/js/index-DMtG6gGb.js @@ -1 +1 @@ -import"./hooks-DonDO7vb.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.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"./jsbarcode@3.11.6-DGNGFp02.js";import{C as F,D as h,E as O,F as C,G as E,H as b}from"./utils-6rpFoFAR.js";import{c as p,N as i,al as o,M as r,_ as D}from"./naive-ui@2.40.1_vue@3.5.12-DyRQVgeU.js";import{l as B,b as u,I as s,n as f}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import{e as v,x as V}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.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.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.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-dom@3.5.12-ewSD1rNh.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const bt=B({name:"CalculatePrecision",setup(){const t=v({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}),a={addOptions:O,subtractOptions:C,multiplyOptions:E,divideOptions:b},n=(l,d)=>{const m=a[d],c=m(...l);return"结果: "+F(c)},e=()=>{f().then(()=>{t.distributeOutputValue=h(t.distributeValue,t.distributeLength)})};return e(),{...V(t),copilotFunc:n,updateDistributeValue:e}},render(){return u(D,null,{default:()=>[u("h2",{style:"margin: 0 0 20px 0"},[s("计算方法,默认都保留八位小数与四舍五入,可以根据 format 方法自行转换")]),u("h3",{style:"margin: 0 0 20px 0"},[s("示例方法都基于 currency.js 封装,利用其精度处理能力封装了常用的一些计算方法,解决精度问题。如果需要其他的方法请阅读官方文档 https://currency.js.org/#subtract")]),u(p,{vertical:!0},{default:()=>[u(i,{title:"加法"},{default:()=>u(o,{value:this.addOptions,"onUpdate:value":t=>this.addOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"addOptions")}},null),footer:()=>this.copilotFunc(this.addOptions,"addOptions")}),u(i,{title:"减法"},{default:()=>u(o,{value:this.subtractOptions,"onUpdate:value":t=>this.subtractOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"subtractOptions")}},null),footer:()=>this.copilotFunc(this.subtractOptions,"subtractOptions")}),u(i,{title:"乘法"},{default:()=>u(o,{value:this.multiplyOptions,"onUpdate:value":t=>this.multiplyOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"multiplyOptions")}},null),footer:()=>this.copilotFunc(this.multiplyOptions,"multiplyOptions")}),u(i,{title:"除法(非取模)"},{default:()=>u(o,{value:this.divideOptions,"onUpdate:value":t=>this.divideOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"divideOptions")}},null),footer:()=>this.copilotFunc(this.divideOptions,"divideOptions")}),u(i,{title:"平分一个值"},{default:()=>u(p,null,{default:()=>[u(r,{value:this.distributeValue,"onUpdate:value":t=>this.distributeValue=t,onUpdateValue:()=>{this.updateDistributeValue()}},null),u(r,{value:this.distributeLength,"onUpdate:value":t=>this.distributeLength=t,onUpdateValue:()=>{this.updateDistributeValue()}},null)]}),footer:()=>"结果: "+this.distributeOutputValue.join(", ")})]})]})}});export{bt as default}; +import"./hooks-BwPndLx3.js";import"./dayjs@1.11.10-D8VSY-p2.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.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"./jsbarcode@3.11.6-DGNGFp02.js";import{C as F,D as h,E as O,F as C,G as E,H as b}from"./utils-Dh5AVlvo.js";import{c as p,N as i,al as o,M as r,_ as D}from"./naive-ui@2.40.1_vue@3.5.12-DyRQVgeU.js";import{l as B,b as u,I as s,n as f}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import{e as v,x as V}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.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.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.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-dom@3.5.12-ewSD1rNh.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const bt=B({name:"CalculatePrecision",setup(){const t=v({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}),a={addOptions:O,subtractOptions:C,multiplyOptions:E,divideOptions:b},n=(l,d)=>{const m=a[d],c=m(...l);return"结果: "+F(c)},e=()=>{f().then(()=>{t.distributeOutputValue=h(t.distributeValue,t.distributeLength)})};return e(),{...V(t),copilotFunc:n,updateDistributeValue:e}},render(){return u(D,null,{default:()=>[u("h2",{style:"margin: 0 0 20px 0"},[s("计算方法,默认都保留八位小数与四舍五入,可以根据 format 方法自行转换")]),u("h3",{style:"margin: 0 0 20px 0"},[s("示例方法都基于 currency.js 封装,利用其精度处理能力封装了常用的一些计算方法,解决精度问题。如果需要其他的方法请阅读官方文档 https://currency.js.org/#subtract")]),u(p,{vertical:!0},{default:()=>[u(i,{title:"加法"},{default:()=>u(o,{value:this.addOptions,"onUpdate:value":t=>this.addOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"addOptions")}},null),footer:()=>this.copilotFunc(this.addOptions,"addOptions")}),u(i,{title:"减法"},{default:()=>u(o,{value:this.subtractOptions,"onUpdate:value":t=>this.subtractOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"subtractOptions")}},null),footer:()=>this.copilotFunc(this.subtractOptions,"subtractOptions")}),u(i,{title:"乘法"},{default:()=>u(o,{value:this.multiplyOptions,"onUpdate:value":t=>this.multiplyOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"multiplyOptions")}},null),footer:()=>this.copilotFunc(this.multiplyOptions,"multiplyOptions")}),u(i,{title:"除法(非取模)"},{default:()=>u(o,{value:this.divideOptions,"onUpdate:value":t=>this.divideOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"divideOptions")}},null),footer:()=>this.copilotFunc(this.divideOptions,"divideOptions")}),u(i,{title:"平分一个值"},{default:()=>u(p,null,{default:()=>[u(r,{value:this.distributeValue,"onUpdate:value":t=>this.distributeValue=t,onUpdateValue:()=>{this.updateDistributeValue()}},null),u(r,{value:this.distributeLength,"onUpdate:value":t=>this.distributeLength=t,onUpdateValue:()=>{this.updateDistributeValue()}},null)]}),footer:()=>"结果: "+this.distributeOutputValue.join(", ")})]})]})}});export{bt as default}; diff --git a/js/index-DMtG6gGb.js.gz b/js/index-DMtG6gGb.js.gz new file mode 100644 index 00000000..f9d6c2a5 Binary files /dev/null and b/js/index-DMtG6gGb.js.gz differ diff --git a/js/index-C9u1x56c.js b/js/index-DaEQ8eWf.js similarity index 92% rename from js/index-C9u1x56c.js rename to js/index-DaEQ8eWf.js index 2874bc90..a1d0c13b 100644 --- a/js/index-C9u1x56c.js +++ b/js/index-DaEQ8eWf.js @@ -1 +1 @@ -import{H as r}from"./hooks-DonDO7vb.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.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"./jsbarcode@3.11.6-DGNGFp02.js";import{l as i,b as t}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import{N as o,c as m}from"./naive-ui@2.40.1_vue@3.5.12-DyRQVgeU.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js";import"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./utils-6rpFoFAR.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.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-dom@3.5.12-ewSD1rNh.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const $=i({name:"IframeDemo",setup(){return{}},render(){return t(m,{vertical:!0,size:[20,20]},{default:()=>[t(o,{title:"naive ui(延迟加载)"},{default:()=>[t(r,{src:"https://www.naiveui.com/zh-CN/dark",height:"300",allow:"fullscreen"},null)]}),t(o,{title:"vue-hooks-plus(立即加载)"},{default:()=>[t(r,{src:"https://inhiblabcore.github.io/docs/hooks/",height:"300",lazy:!1},null)]})]})}});export{$ as default}; +import{H as r}from"./hooks-BwPndLx3.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-D8VSY-p2.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.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"./jsbarcode@3.11.6-DGNGFp02.js";import{l as i,b as t}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import{N as o,c as m}from"./naive-ui@2.40.1_vue@3.5.12-DyRQVgeU.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js";import"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./utils-Dh5AVlvo.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.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-dom@3.5.12-ewSD1rNh.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const $=i({name:"IframeDemo",setup(){return{}},render(){return t(m,{vertical:!0,size:[20,20]},{default:()=>[t(o,{title:"naive ui(延迟加载)"},{default:()=>[t(r,{src:"https://www.naiveui.com/zh-CN/dark",height:"300",allow:"fullscreen"},null)]}),t(o,{title:"vue-hooks-plus(立即加载)"},{default:()=>[t(r,{src:"https://inhiblabcore.github.io/docs/hooks/",height:"300",lazy:!1},null)]})]})}});export{$ as default}; diff --git a/js/index-DaEQ8eWf.js.gz b/js/index-DaEQ8eWf.js.gz new file mode 100644 index 00000000..d414c80b Binary files /dev/null and b/js/index-DaEQ8eWf.js.gz differ diff --git a/js/index-DcajtrM6.js.gz b/js/index-DcajtrM6.js.gz deleted file mode 100644 index e280b9ad..00000000 Binary files a/js/index-DcajtrM6.js.gz and /dev/null differ diff --git a/js/index-DrOZrx4m.js.gz b/js/index-DrOZrx4m.js.gz deleted file mode 100644 index 7dfbc91f..00000000 Binary files a/js/index-DrOZrx4m.js.gz and /dev/null differ diff --git a/js/index-D6uzvoU7.js b/js/index-Dv102CZS.js similarity index 96% rename from js/index-D6uzvoU7.js rename to js/index-Dv102CZS.js index 8a1d3f43..80b16da2 100644 --- a/js/index-D6uzvoU7.js +++ b/js/index-Dv102CZS.js @@ -1 +1 @@ -import{m as S,e as W,$ as w,t as V,a0 as y,a1 as N,a2 as M,u as L,a3 as I}from"./hooks-DonDO7vb.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.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"./jsbarcode@3.11.6-DGNGFp02.js";import{N as i,c as a,T,P as t}from"./naive-ui@2.40.1_vue@3.5.12-DyRQVgeU.js";import{l as R,b as u,I as e}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import{k as b}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js";import"./utils-6rpFoFAR.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.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-dom@3.5.12-ewSD1rNh.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const yu=R({name:"TemplateHooks",setup(){const m=b(""),n=S("layoutContentMaximize"),r=b(W().getWatermarkConfig.value.content),F=b("new"),{navigationTo:p}=y(),{maximize:s,isLayoutContentMaximized:d}=w(),{reload:C,openSpin:B,closeSpin:D}=N(),{showWatermark:A,hiddenWatermark:E,setWatermarkContent:c,toggleWatermark:h}=M(),{darkTheme:f,lightTheme:k,toggleTheme:l,getAppTheme:g,syncSystemTheme:o}=L(),{hidden:v,show:x,update:z}=I();return{navigationTo:p,reload:C,currentMenuOption:m,maximize:s,maximizeRef:n,openSpin:B,closeSpin:D,showWatermark:A,hiddenWatermark:E,setWatermarkContent:c,watermark:r,toggleWatermark:h,darkTheme:f,lightTheme:k,toggleTheme:l,getAppTheme:g,isLayoutContentMaximized:d,badgeHidden:v,badgeShow:x,badgeUpdateLabel:z,badgeValue:F,syncSystemTheme:o}},render(){const{navigationTo:m,reload:n,maximize:r,openSpin:F,closeSpin:p,showWatermark:s,hiddenWatermark:d,setWatermarkContent:C,toggleWatermark:B,darkTheme:D,lightTheme:A,toggleTheme:E,getAppTheme:c,isLayoutContentMaximized:h,badgeHidden:f,badgeShow:k,badgeUpdateLabel:l,syncSystemTheme:g}=this;return u(a,{vertical:!0},{default:()=>[u(i,{title:"接口说明"},{default:()=>[u("h3",null,[e("hooks/template 包存放模板专属 hook 方法。这里不做过多的赘述,可以查看文档具体描述。")])]}),u(i,{title:"useBadge 菜单标记"},{default:()=>[u(a,{vertical:!0},{default:()=>[u(T,{value:this.badgeValue,"onUpdate:value":o=>this.badgeValue=o},null),u(a,null,{default:()=>[u(t,{onClick:()=>f("/template-hooks")},{default:()=>[e("隐藏当前菜单标记")]}),u(t,{onClick:()=>k("/template-hooks")},{default:()=>[e("显示当前菜单标记")]}),u(t,{onClick:()=>l("/template-hooks",{label:this.badgeValue})},{default:()=>[e("更新当前菜单标记")]}),u(t,{onClick:()=>{l("/template-hooks",{label:this.badgeValue,icon:u(V,{name:"error",size:"18"},null)})}},{default:()=>[e("添加标记图标")]}),u(t,{onClick:()=>{l("/template-hooks",{label:this.badgeValue,icon:void 0})}},{default:()=>[e("隐藏标记图标")]})]})]})]}),u(i,{title:"useTheme 主题"},{default:()=>[u(a,{vertical:!0},{default:()=>[u("h3",null,[e("getAppTheme 获取当前主题色: "),c().themeLabel]),u(a,null,{default:()=>[u(t,{onClick:()=>D()},{default:()=>[e("切换暗黑主题")]}),u(t,{onClick:()=>A()},{default:()=>[e("切换明亮主题")]}),u(t,{onClick:()=>g()},{default:()=>[e("跟随主题")]}),u(t,{onClick:()=>E()},{default:()=>[e("切换主题")]})]})]})]}),u(i,{title:"useWatermark 水印"},{default:()=>[u(a,{vertical:!0},{default:()=>[u(T,{value:this.watermark,"onUpdate:value":o=>this.watermark=o,onInput:o=>{C(o)}},null),u(a,null,{default:()=>[u(t,{onClick:()=>s()},{default:()=>[e("显示水印")]}),u(t,{onClick:()=>d()},{default:()=>[e("隐藏水印")]}),u(t,{onClick:()=>B()},{default:()=>[e("切换水印")]})]})]})]}),u(i,{title:"useSpinning"},{default:()=>[u("h3",null,[e("手动刷新内容区域,会使得当前路由页面内容强制重新加载(会执行完整的 vue 生命周期)。默认 800ms 延迟。")]),u("br",null,null),u(a,null,{default:()=>[u(t,{onClick:()=>{n()}},{default:()=>[e("刷新(强制刷新)")]}),u(t,{onClick:()=>{F(),setTimeout(()=>{p()},800)}},{default:()=>[e("触发加载动画(不强制刷新)")]})]})]}),u(i,{title:"useMaximize 内容区域最大化"},{default:()=>[u("h3",null,[e("isLayoutContentMaximized 检测当前内容区域是否最大化:"),h?"最大化":"正常尺寸"]),u(t,{onClick:()=>{r(!this.maximizeRef,{scrollToOptions:{left:0,top:0}})}},{default:()=>[e("最大化内容区域,并且滚动至顶部")]})]}),u(i,{title:"useAppNavigation 导航方法"},{default:()=>[u("h3",null,[e("navigationTo 参数为正整数时,会更具当前的菜单顺序进行自动导航匹配。但是此方法仅能导航一级菜单。并且如果导航菜单非根菜单项,会自动递归导航至一子菜单。 支持传入完整的菜单路径,如:/multi/multi-menu-one。")]),u("br",null,null),u(t,{onClick:()=>m("/multi/multi-menu-one")},{default:()=>[e("跳转至多级菜单")]})]})]})}});export{yu as default}; +import{m as S,e as W,$ as w,t as V,a0 as y,a1 as N,a2 as M,u as L,a3 as I}from"./hooks-BwPndLx3.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-D8VSY-p2.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.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"./jsbarcode@3.11.6-DGNGFp02.js";import{N as i,c as a,T,P as t}from"./naive-ui@2.40.1_vue@3.5.12-DyRQVgeU.js";import{l as R,b as u,I as e}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import{k as b}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js";import"./utils-Dh5AVlvo.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.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-dom@3.5.12-ewSD1rNh.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const yu=R({name:"TemplateHooks",setup(){const m=b(""),n=S("layoutContentMaximize"),r=b(W().getWatermarkConfig.value.content),F=b("new"),{navigationTo:p}=y(),{maximize:s,isLayoutContentMaximized:d}=w(),{reload:C,openSpin:B,closeSpin:D}=N(),{showWatermark:A,hiddenWatermark:E,setWatermarkContent:c,toggleWatermark:h}=M(),{darkTheme:f,lightTheme:k,toggleTheme:l,getAppTheme:g,syncSystemTheme:o}=L(),{hidden:v,show:x,update:z}=I();return{navigationTo:p,reload:C,currentMenuOption:m,maximize:s,maximizeRef:n,openSpin:B,closeSpin:D,showWatermark:A,hiddenWatermark:E,setWatermarkContent:c,watermark:r,toggleWatermark:h,darkTheme:f,lightTheme:k,toggleTheme:l,getAppTheme:g,isLayoutContentMaximized:d,badgeHidden:v,badgeShow:x,badgeUpdateLabel:z,badgeValue:F,syncSystemTheme:o}},render(){const{navigationTo:m,reload:n,maximize:r,openSpin:F,closeSpin:p,showWatermark:s,hiddenWatermark:d,setWatermarkContent:C,toggleWatermark:B,darkTheme:D,lightTheme:A,toggleTheme:E,getAppTheme:c,isLayoutContentMaximized:h,badgeHidden:f,badgeShow:k,badgeUpdateLabel:l,syncSystemTheme:g}=this;return u(a,{vertical:!0},{default:()=>[u(i,{title:"接口说明"},{default:()=>[u("h3",null,[e("hooks/template 包存放模板专属 hook 方法。这里不做过多的赘述,可以查看文档具体描述。")])]}),u(i,{title:"useBadge 菜单标记"},{default:()=>[u(a,{vertical:!0},{default:()=>[u(T,{value:this.badgeValue,"onUpdate:value":o=>this.badgeValue=o},null),u(a,null,{default:()=>[u(t,{onClick:()=>f("/template-hooks")},{default:()=>[e("隐藏当前菜单标记")]}),u(t,{onClick:()=>k("/template-hooks")},{default:()=>[e("显示当前菜单标记")]}),u(t,{onClick:()=>l("/template-hooks",{label:this.badgeValue})},{default:()=>[e("更新当前菜单标记")]}),u(t,{onClick:()=>{l("/template-hooks",{label:this.badgeValue,icon:u(V,{name:"error",size:"18"},null)})}},{default:()=>[e("添加标记图标")]}),u(t,{onClick:()=>{l("/template-hooks",{label:this.badgeValue,icon:void 0})}},{default:()=>[e("隐藏标记图标")]})]})]})]}),u(i,{title:"useTheme 主题"},{default:()=>[u(a,{vertical:!0},{default:()=>[u("h3",null,[e("getAppTheme 获取当前主题色: "),c().themeLabel]),u(a,null,{default:()=>[u(t,{onClick:()=>D()},{default:()=>[e("切换暗黑主题")]}),u(t,{onClick:()=>A()},{default:()=>[e("切换明亮主题")]}),u(t,{onClick:()=>g()},{default:()=>[e("跟随主题")]}),u(t,{onClick:()=>E()},{default:()=>[e("切换主题")]})]})]})]}),u(i,{title:"useWatermark 水印"},{default:()=>[u(a,{vertical:!0},{default:()=>[u(T,{value:this.watermark,"onUpdate:value":o=>this.watermark=o,onInput:o=>{C(o)}},null),u(a,null,{default:()=>[u(t,{onClick:()=>s()},{default:()=>[e("显示水印")]}),u(t,{onClick:()=>d()},{default:()=>[e("隐藏水印")]}),u(t,{onClick:()=>B()},{default:()=>[e("切换水印")]})]})]})]}),u(i,{title:"useSpinning"},{default:()=>[u("h3",null,[e("手动刷新内容区域,会使得当前路由页面内容强制重新加载(会执行完整的 vue 生命周期)。默认 800ms 延迟。")]),u("br",null,null),u(a,null,{default:()=>[u(t,{onClick:()=>{n()}},{default:()=>[e("刷新(强制刷新)")]}),u(t,{onClick:()=>{F(),setTimeout(()=>{p()},800)}},{default:()=>[e("触发加载动画(不强制刷新)")]})]})]}),u(i,{title:"useMaximize 内容区域最大化"},{default:()=>[u("h3",null,[e("isLayoutContentMaximized 检测当前内容区域是否最大化:"),h?"最大化":"正常尺寸"]),u(t,{onClick:()=>{r(!this.maximizeRef,{scrollToOptions:{left:0,top:0}})}},{default:()=>[e("最大化内容区域,并且滚动至顶部")]})]}),u(i,{title:"useAppNavigation 导航方法"},{default:()=>[u("h3",null,[e("navigationTo 参数为正整数时,会更具当前的菜单顺序进行自动导航匹配。但是此方法仅能导航一级菜单。并且如果导航菜单非根菜单项,会自动递归导航至一子菜单。 支持传入完整的菜单路径,如:/multi/multi-menu-one。")]),u("br",null,null),u(t,{onClick:()=>m("/multi/multi-menu-one")},{default:()=>[e("跳转至多级菜单")]})]})]})}});export{yu as default}; diff --git a/js/index-Dv102CZS.js.gz b/js/index-Dv102CZS.js.gz new file mode 100644 index 00000000..eef28d38 Binary files /dev/null and b/js/index-Dv102CZS.js.gz differ diff --git a/js/index-IVPegtuP.js b/js/index-DwrIb9z5.js similarity index 97% rename from js/index-IVPegtuP.js rename to js/index-DwrIb9z5.js index c6e09531..da05b5cd 100644 --- a/js/index-IVPegtuP.js +++ b/js/index-DwrIb9z5.js @@ -1 +1 @@ -import{C as r,E as A}from"./hooks-DonDO7vb.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.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"./jsbarcode@3.11.6-DGNGFp02.js";import{N as u,c as m,P as i,K as C}from"./naive-ui@2.40.1_vue@3.5.12-DyRQVgeU.js";import{l as O,b as t,I as e}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import{k as g,e as L,x as V}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js";import"./utils-6rpFoFAR.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.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-dom@3.5.12-ewSD1rNh.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const St=O({name:"REchart",setup(){const[n,{getChartInstance:f,dispose:l,render:d,isDisposed:p}]=A(),[c,{getChartInstance:s,dispose:F,render:y,isDisposed:B}]=A(),b=g(!1),E=g(!1),o=L({loading:!1,loading1:!1}),D={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)"}}]},k={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)"}}}]},h=g({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]}]}),v=a=>{o.loading=a},w=a=>{E.value=a},S=()=>{p()?d():window.$message.warning("图表已渲染~")},x=()=>{l()},T=()=>{o.loading1=!0;const a=()=>Math.floor((Math.random()+1)*100);setTimeout(()=>{h.value.series[0].data=new Array(7).fill(0).map(()=>a()),h.value.series[1].data=new Array(7).fill(0).map(()=>a()),o.loading1=!1},1e3)};return{baseOptions:D,chartLoading:b,handleLoadingShow:v,chartAria:E,handleAriaShow:w,basePieOptions:k,baseLineOptions:h,...V(o),mountChart:S,unmountChart:x,updateChartOptions:T,register:n,register2:c,dispose2:F,render2:y,isDisposed2:B}},render(){const{register:n,register2:f,dispose2:l,render2:d,isDisposed2:p,loading1:c}=this;return t("div",{class:"echart"},[t(u,{title:"chart 组件"},{default:()=>[t("h3",null,[e("该组件基于 ECharts, Vueuse 封装。默认做了最佳的优化封装实践。")]),t("h3",null,[e("开箱即用的优化策略:节流更新图表、异步渲染、自动销毁、贴花、加载、主题、视窗区域渲染、自动更新尺寸等高级特性。")])]}),t(u,{title:"预设 card 风格图表"},{default:()=>[t(m,{style:["padding: 18px 0"]},{default:()=>[t(i,{onClick:this.mountChart.bind(this)},{default:()=>[e("渲染")]}),t(i,{onClick:this.unmountChart.bind(this)},{default:()=>[e("卸载")]}),t(i,{onClick:this.updateChartOptions.bind(this)},{default:()=>[e("更新配置项")]}),t(i,{onClick:()=>{this.loading1=!this.loading1}},{default:()=>[`${this.loading1?"关闭":"开启"}`,e("加载动画")]})]}),t("div",{class:"chart--container"},[t(r,{onRegister:n,title:"周销售量",autoChangeTheme:!0,options:this.baseLineOptions,showAria:this.chartAria,preset:"card",loading:c},null)])]}),t(u,{title:"不跟随主题切换的暗色主题可视化图,并且手动指定原始主题色"},{default:()=>[t(m,{vertical:!0},{default:()=>[t(m,null,{default:()=>[t(i,{onClick:()=>{p()?d():window.$message.warning("不可以重复渲染图表~")}},{default:()=>[e("渲染")]}),t(i,{onClick:l.bind(this)},{default:()=>[e("卸载")]})]}),t("div",{class:"chart--container"},[t(r,{onRegister:f,autoChangeTheme:!1,theme:"default",options:this.baseOptions},null)])]})]}),t(u,{title:"加载动画"},{default:()=>[t(C,{value:this.chartLoading,"onUpdate:value":s=>this.chartLoading=s,onUpdateValue:this.handleLoadingShow.bind(this),style:["padding: 18px 0"]},{checked:()=>"隐藏加载动画",unchecked:()=>"显示加载动画"}),t("div",{class:"chart--container"},[t(r,{loading:this.loading,options:this.baseOptions},null)])]}),t(u,{title:"贴画可视化图"},{default:()=>[t(C,{value:this.chartAria,"onUpdate:value":s=>this.chartAria=s,onUpdateValue:this.handleAriaShow.bind(this),style:["padding: 18px 0"]},{checked:()=>"隐藏贴花",unchecked:()=>"显示贴花"}),t("div",{class:"chart--container"},[t(r,{options:this.baseOptions,showAria:this.chartAria},null)])]})])}});export{St as default}; +import{C as r,E as A}from"./hooks-BwPndLx3.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-D8VSY-p2.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.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"./jsbarcode@3.11.6-DGNGFp02.js";import{N as u,c as m,P as i,K as C}from"./naive-ui@2.40.1_vue@3.5.12-DyRQVgeU.js";import{l as O,b as t,I as e}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import{k as g,e as L,x as V}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js";import"./utils-Dh5AVlvo.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.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-dom@3.5.12-ewSD1rNh.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const St=O({name:"REchart",setup(){const[n,{getChartInstance:f,dispose:l,render:d,isDisposed:p}]=A(),[c,{getChartInstance:s,dispose:F,render:y,isDisposed:B}]=A(),b=g(!1),E=g(!1),o=L({loading:!1,loading1:!1}),D={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)"}}]},k={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)"}}}]},h=g({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]}]}),v=a=>{o.loading=a},w=a=>{E.value=a},S=()=>{p()?d():window.$message.warning("图表已渲染~")},x=()=>{l()},T=()=>{o.loading1=!0;const a=()=>Math.floor((Math.random()+1)*100);setTimeout(()=>{h.value.series[0].data=new Array(7).fill(0).map(()=>a()),h.value.series[1].data=new Array(7).fill(0).map(()=>a()),o.loading1=!1},1e3)};return{baseOptions:D,chartLoading:b,handleLoadingShow:v,chartAria:E,handleAriaShow:w,basePieOptions:k,baseLineOptions:h,...V(o),mountChart:S,unmountChart:x,updateChartOptions:T,register:n,register2:c,dispose2:F,render2:y,isDisposed2:B}},render(){const{register:n,register2:f,dispose2:l,render2:d,isDisposed2:p,loading1:c}=this;return t("div",{class:"echart"},[t(u,{title:"chart 组件"},{default:()=>[t("h3",null,[e("该组件基于 ECharts, Vueuse 封装。默认做了最佳的优化封装实践。")]),t("h3",null,[e("开箱即用的优化策略:节流更新图表、异步渲染、自动销毁、贴花、加载、主题、视窗区域渲染、自动更新尺寸等高级特性。")])]}),t(u,{title:"预设 card 风格图表"},{default:()=>[t(m,{style:["padding: 18px 0"]},{default:()=>[t(i,{onClick:this.mountChart.bind(this)},{default:()=>[e("渲染")]}),t(i,{onClick:this.unmountChart.bind(this)},{default:()=>[e("卸载")]}),t(i,{onClick:this.updateChartOptions.bind(this)},{default:()=>[e("更新配置项")]}),t(i,{onClick:()=>{this.loading1=!this.loading1}},{default:()=>[`${this.loading1?"关闭":"开启"}`,e("加载动画")]})]}),t("div",{class:"chart--container"},[t(r,{onRegister:n,title:"周销售量",autoChangeTheme:!0,options:this.baseLineOptions,showAria:this.chartAria,preset:"card",loading:c},null)])]}),t(u,{title:"不跟随主题切换的暗色主题可视化图,并且手动指定原始主题色"},{default:()=>[t(m,{vertical:!0},{default:()=>[t(m,null,{default:()=>[t(i,{onClick:()=>{p()?d():window.$message.warning("不可以重复渲染图表~")}},{default:()=>[e("渲染")]}),t(i,{onClick:l.bind(this)},{default:()=>[e("卸载")]})]}),t("div",{class:"chart--container"},[t(r,{onRegister:f,autoChangeTheme:!1,theme:"default",options:this.baseOptions},null)])]})]}),t(u,{title:"加载动画"},{default:()=>[t(C,{value:this.chartLoading,"onUpdate:value":s=>this.chartLoading=s,onUpdateValue:this.handleLoadingShow.bind(this),style:["padding: 18px 0"]},{checked:()=>"隐藏加载动画",unchecked:()=>"显示加载动画"}),t("div",{class:"chart--container"},[t(r,{loading:this.loading,options:this.baseOptions},null)])]}),t(u,{title:"贴画可视化图"},{default:()=>[t(C,{value:this.chartAria,"onUpdate:value":s=>this.chartAria=s,onUpdateValue:this.handleAriaShow.bind(this),style:["padding: 18px 0"]},{checked:()=>"隐藏贴花",unchecked:()=>"显示贴花"}),t("div",{class:"chart--container"},[t(r,{options:this.baseOptions,showAria:this.chartAria},null)])]})])}});export{St as default}; diff --git a/js/index-DwrIb9z5.js.gz b/js/index-DwrIb9z5.js.gz new file mode 100644 index 00000000..cc4edfe5 Binary files /dev/null and b/js/index-DwrIb9z5.js.gz differ diff --git a/js/index-IVPegtuP.js.gz b/js/index-IVPegtuP.js.gz deleted file mode 100644 index 04a20e3c..00000000 Binary files a/js/index-IVPegtuP.js.gz and /dev/null differ diff --git a/js/index-LYjmBIt_.js.gz b/js/index-LYjmBIt_.js.gz deleted file mode 100644 index e08f7d37..00000000 Binary files a/js/index-LYjmBIt_.js.gz and /dev/null differ diff --git a/js/index-LYjmBIt_.js b/js/index-Q9IynwJ9.js similarity index 95% rename from js/index-LYjmBIt_.js rename to js/index-Q9IynwJ9.js index 47ead83e..d1085d91 100644 --- a/js/index-LYjmBIt_.js +++ b/js/index-Q9IynwJ9.js @@ -1 +1 @@ -import{t as d,O as o}from"./hooks-DonDO7vb.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.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"./jsbarcode@3.11.6-DGNGFp02.js";import{l as h,b as u,I as t}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import{k as m}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import{ae as F,N as i,a as b,b as l,c as B,aj as f,ak as a}from"./naive-ui@2.40.1_vue@3.5.12-DyRQVgeU.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js";import"./utils-6rpFoFAR.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.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-dom@3.5.12-ewSD1rNh.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const fu=h({name:"SegmentDemo",setup(){const s=[{label:"这是一",key:"this is one"},{label:"这是二",key:"this is two"},{label:"这是三",key:"this is three"}],n=[...s,{label:"这是四",key:"this is four",slots:{default:()=>"我是自定义"}}],p=[...s,{label:"不许点",key:"disabled option",disabled:!0},{label:"popover",key:"popover",popover:"我是 popover"},{label:"popover options",key:"popover options",popover:{label:"我是配置项的 popover"}}],r=[{label:"设置",key:"setting",icon:u(d,{name:"setting"},null)},{label:"刷新",key:"reload",icon:u(d,{name:"reload"},null)},{label:"搜索",key:"search",icon:u(d,{name:"search"},null),popover:"我是搜索"}],E=m("this is three"),e=m("medium"),C=m("block");return{baseOptions:s,options:n,segmentValueOne:E,segmentChange:A=>{window.$message.info(String(A))},size:e,width:C,disabledOptions:p,iconOptions:r}},render(){const{options:s,baseOptions:n,disabledOptions:p,iconOptions:r}=this,{segmentChange:E}=this;return u(B,{vertical:!0},{default:()=>[u(F,{title:"警告⚠️",type:"warning"},{default:()=>[t("n-tabs 默认情况下会从 slot 获取默认展示的 tab 值,因此会产生一个 vue slot 的 warning。如果你不想看到这个 warning,请设定一个 default-value。")]}),u(F,{title:"已知问题",type:"warning"},{default:()=>[t("由于 NTabs 设计缘故,手动设置 width 为 fitContent 后,配置了 disabled, popover 的配置项,会丢失过度效果。具体可以看下面的例子。"),u("br",null,null),t("解决方法,在该组件外层包一层 div,设置宽度,但是不能为 fit-content。")]}),u(i,{title:"分段器"},{default:()=>[u("h3",null,[t("该组件基于 NTabs + NTabPane 封装,所以保留了一些该组件的特性。")])]}),u(b,{cols:2,xGap:8,yGap:12},{default:()=>[u(l,{span:1},{default:()=>[u(i,{title:"基础非受控分段器"},{default:()=>[u(o,{defaultValue:"this is two",options:n},null)]})]}),u(l,{span:1},{default:()=>[u(i,{title:"自定义分段器插槽"},{default:()=>[u(o,{defaultValue:this.segmentValueOne,options:s},null)]})]}),u(l,{span:1},{default:()=>[u(i,{title:"updateValue 事件"},{default:()=>[u(o,{value:this.segmentValueOne,"onUpdate:value":e=>this.segmentValueOne=e,defaultValue:"this is two",options:p,onUpdateValue:E.bind(this),width:"block"},null)]})]}),u(l,{span:1},{default:()=>[u(i,{title:"自适应宽度"},{default:()=>[u(o,{defaultValue:"setting",options:r,width:"block"},null)]})]}),u(l,{span:2},{default:()=>[u(i,{title:"尺寸"},{default:()=>[u(B,{vertical:!0,size:"large"},{default:()=>[u(f,{value:this.size,"onUpdate:value":e=>this.size=e},{default:()=>[u(a,{value:"small"},{default:()=>[t("小")]}),u(a,{value:"medium"},{default:()=>[t("不小")]}),u(a,{value:"large"},{default:()=>[t("不太小")]})]}),u(o,{defaultValue:"this is two",options:n,size:this.size,width:"block"},null)]})]})]}),u(l,{span:2},{default:()=>[u(i,{title:"宽度"},{default:()=>[u(B,{vertical:!0,size:"large"},{default:()=>[u(F,{title:"注意",type:"info"},{default:()=>[t("RSegment 组件宽度默认为 fitContent,按照内容自适应宽度;如果需要自适应宽度,请设置 width 为 block;如果需要手动指定宽度请设置一个数字。")]}),u(f,{value:this.width,"onUpdate:value":e=>this.width=e},{default:()=>[u(a,{value:"fitContent"},{default:()=>[t("fitContent")]}),u(a,{value:"block"},{default:()=>[t("block")]}),u(a,{value:800},{default:()=>[t("800")]})]}),u(o,{defaultValue:"this is two",options:p,width:this.width},null)]})]})]})]})]})}});export{fu as default}; +import{t as d,O as o}from"./hooks-BwPndLx3.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-D8VSY-p2.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.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"./jsbarcode@3.11.6-DGNGFp02.js";import{l as h,b as u,I as t}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import{k as m}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import{ae as F,N as i,a as b,b as l,c as B,aj as f,ak as a}from"./naive-ui@2.40.1_vue@3.5.12-DyRQVgeU.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js";import"./utils-Dh5AVlvo.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.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-dom@3.5.12-ewSD1rNh.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const fu=h({name:"SegmentDemo",setup(){const s=[{label:"这是一",key:"this is one"},{label:"这是二",key:"this is two"},{label:"这是三",key:"this is three"}],n=[...s,{label:"这是四",key:"this is four",slots:{default:()=>"我是自定义"}}],p=[...s,{label:"不许点",key:"disabled option",disabled:!0},{label:"popover",key:"popover",popover:"我是 popover"},{label:"popover options",key:"popover options",popover:{label:"我是配置项的 popover"}}],r=[{label:"设置",key:"setting",icon:u(d,{name:"setting"},null)},{label:"刷新",key:"reload",icon:u(d,{name:"reload"},null)},{label:"搜索",key:"search",icon:u(d,{name:"search"},null),popover:"我是搜索"}],E=m("this is three"),e=m("medium"),C=m("block");return{baseOptions:s,options:n,segmentValueOne:E,segmentChange:A=>{window.$message.info(String(A))},size:e,width:C,disabledOptions:p,iconOptions:r}},render(){const{options:s,baseOptions:n,disabledOptions:p,iconOptions:r}=this,{segmentChange:E}=this;return u(B,{vertical:!0},{default:()=>[u(F,{title:"警告⚠️",type:"warning"},{default:()=>[t("n-tabs 默认情况下会从 slot 获取默认展示的 tab 值,因此会产生一个 vue slot 的 warning。如果你不想看到这个 warning,请设定一个 default-value。")]}),u(F,{title:"已知问题",type:"warning"},{default:()=>[t("由于 NTabs 设计缘故,手动设置 width 为 fitContent 后,配置了 disabled, popover 的配置项,会丢失过度效果。具体可以看下面的例子。"),u("br",null,null),t("解决方法,在该组件外层包一层 div,设置宽度,但是不能为 fit-content。")]}),u(i,{title:"分段器"},{default:()=>[u("h3",null,[t("该组件基于 NTabs + NTabPane 封装,所以保留了一些该组件的特性。")])]}),u(b,{cols:2,xGap:8,yGap:12},{default:()=>[u(l,{span:1},{default:()=>[u(i,{title:"基础非受控分段器"},{default:()=>[u(o,{defaultValue:"this is two",options:n},null)]})]}),u(l,{span:1},{default:()=>[u(i,{title:"自定义分段器插槽"},{default:()=>[u(o,{defaultValue:this.segmentValueOne,options:s},null)]})]}),u(l,{span:1},{default:()=>[u(i,{title:"updateValue 事件"},{default:()=>[u(o,{value:this.segmentValueOne,"onUpdate:value":e=>this.segmentValueOne=e,defaultValue:"this is two",options:p,onUpdateValue:E.bind(this),width:"block"},null)]})]}),u(l,{span:1},{default:()=>[u(i,{title:"自适应宽度"},{default:()=>[u(o,{defaultValue:"setting",options:r,width:"block"},null)]})]}),u(l,{span:2},{default:()=>[u(i,{title:"尺寸"},{default:()=>[u(B,{vertical:!0,size:"large"},{default:()=>[u(f,{value:this.size,"onUpdate:value":e=>this.size=e},{default:()=>[u(a,{value:"small"},{default:()=>[t("小")]}),u(a,{value:"medium"},{default:()=>[t("不小")]}),u(a,{value:"large"},{default:()=>[t("不太小")]})]}),u(o,{defaultValue:"this is two",options:n,size:this.size,width:"block"},null)]})]})]}),u(l,{span:2},{default:()=>[u(i,{title:"宽度"},{default:()=>[u(B,{vertical:!0,size:"large"},{default:()=>[u(F,{title:"注意",type:"info"},{default:()=>[t("RSegment 组件宽度默认为 fitContent,按照内容自适应宽度;如果需要自适应宽度,请设置 width 为 block;如果需要手动指定宽度请设置一个数字。")]}),u(f,{value:this.width,"onUpdate:value":e=>this.width=e},{default:()=>[u(a,{value:"fitContent"},{default:()=>[t("fitContent")]}),u(a,{value:"block"},{default:()=>[t("block")]}),u(a,{value:800},{default:()=>[t("800")]})]}),u(o,{defaultValue:"this is two",options:p,width:this.width},null)]})]})]})]})]})}});export{fu as default}; diff --git a/js/index-Q9IynwJ9.js.gz b/js/index-Q9IynwJ9.js.gz new file mode 100644 index 00000000..14e0f6dc Binary files /dev/null and b/js/index-Q9IynwJ9.js.gz differ diff --git a/js/index-ZK2gtRBB.js.gz b/js/index-ZK2gtRBB.js.gz deleted file mode 100644 index 3548e39d..00000000 Binary files a/js/index-ZK2gtRBB.js.gz and /dev/null differ diff --git a/js/index-DcajtrM6.js b/js/index-ZjF7vgNG.js similarity index 95% rename from js/index-DcajtrM6.js rename to js/index-ZjF7vgNG.js index 083095c4..ac05f85f 100644 --- a/js/index-DcajtrM6.js +++ b/js/index-ZjF7vgNG.js @@ -1 +1 @@ -import{t as n}from"./hooks-DonDO7vb.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.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"./jsbarcode@3.11.6-DGNGFp02.js";import{A as d}from"./index-CgOgVoYU.js";import{N as i,I as f,J as c,ac as s,ad as E,c as o,v as p}from"./naive-ui@2.40.1_vue@3.5.12-DyRQVgeU.js";import{l as b,b as u,I as t,p as F}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js";import"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./utils-6rpFoFAR.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.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-dom@3.5.12-ewSD1rNh.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";function m(l){return typeof l=="function"||Object.prototype.toString.call(l)==="[object Object]"&&!F(l)}const du=b({name:"RDashboard",setup(){return{coverLetterOptions:[{label:"掌握搬砖框架",des:()=>u(o,null,{default:()=>[u(p,{type:"success"},{default:()=>[t("Vue3.x")]}),u(p,{type:"info"},{default:()=>[t("React")]})]})},{label:"从事搬砖时长",des:()=>u(o,null,{default:()=>[u(p,{type:"success"},{default:()=>[t("练习时长两年半的小白前端搬砖师")]})]})},{label:"个人",des:()=>u(o,{align:"center"},{default:()=>[u(n,{name:"ray",size:"22"},null),t("努力搬砖、努力摸鱼, 建设美丽家园")]}),span:2},{label:"补充说明",des:()=>u(o,{align:"center"},{default:()=>[t("如果有希望补充的功能可以在"),u("a",{class:"dashboard-link",href:"https://github.com/XiaoDaiGua-Ray/ray-template"},[t("GitHub")]),t("提一个 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 l,a;return u(o,{vertical:!0},{default:()=>[u(i,null,{header:()=>u(n,{name:"ray",size:"64"},null),default:()=>"当你看见这个页面后, 就说明项目已经启动成功了~"}),u(i,{title:"个人介绍"},{default:()=>[u(f,{bordered:!0,labelPlacement:"left",column:2},m(l=this.coverLetterOptions.map(e=>{let r;return u(c,{key:e.label,label:e.label,span:e==null?void 0:e.span},m(r=e.des())?r:{default:()=>[r]})}))?l:{default:()=>[l]})]}),u(i,{title:"项目介绍"},{default:()=>[u(s,null,{default:()=>[t("技术栈")]}),u(E,null,{default:()=>[u(o,null,m(a=this.technologyTagOptions.map(e=>u(p,{key:e.value,type:"info"},{default:()=>[e.label]})))?a:{default:()=>[a]})]}),u(s,null,{default:()=>[t("项目介绍")]}),u(E,null,{default:()=>[t("预设了最佳构建体验的配置与常用搬砖工具。意在提供一个简洁、快速上手的模板。")]})]}),u(i,{title:"友情链接"},{default:()=>[u(d,null,null)]})]})}});export{du as default}; +import{t as n}from"./hooks-BwPndLx3.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-D8VSY-p2.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.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"./jsbarcode@3.11.6-DGNGFp02.js";import{A as d}from"./index-CgOgVoYU.js";import{N as i,I as f,J as c,ac as s,ad as E,c as o,v as p}from"./naive-ui@2.40.1_vue@3.5.12-DyRQVgeU.js";import{l as b,b as u,I as t,p as F}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js";import"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./utils-Dh5AVlvo.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.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-dom@3.5.12-ewSD1rNh.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";function m(l){return typeof l=="function"||Object.prototype.toString.call(l)==="[object Object]"&&!F(l)}const du=b({name:"RDashboard",setup(){return{coverLetterOptions:[{label:"掌握搬砖框架",des:()=>u(o,null,{default:()=>[u(p,{type:"success"},{default:()=>[t("Vue3.x")]}),u(p,{type:"info"},{default:()=>[t("React")]})]})},{label:"从事搬砖时长",des:()=>u(o,null,{default:()=>[u(p,{type:"success"},{default:()=>[t("练习时长两年半的小白前端搬砖师")]})]})},{label:"个人",des:()=>u(o,{align:"center"},{default:()=>[u(n,{name:"ray",size:"22"},null),t("努力搬砖、努力摸鱼, 建设美丽家园")]}),span:2},{label:"补充说明",des:()=>u(o,{align:"center"},{default:()=>[t("如果有希望补充的功能可以在"),u("a",{class:"dashboard-link",href:"https://github.com/XiaoDaiGua-Ray/ray-template"},[t("GitHub")]),t("提一个 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 l,a;return u(o,{vertical:!0},{default:()=>[u(i,null,{header:()=>u(n,{name:"ray",size:"64"},null),default:()=>"当你看见这个页面后, 就说明项目已经启动成功了~"}),u(i,{title:"个人介绍"},{default:()=>[u(f,{bordered:!0,labelPlacement:"left",column:2},m(l=this.coverLetterOptions.map(e=>{let r;return u(c,{key:e.label,label:e.label,span:e==null?void 0:e.span},m(r=e.des())?r:{default:()=>[r]})}))?l:{default:()=>[l]})]}),u(i,{title:"项目介绍"},{default:()=>[u(s,null,{default:()=>[t("技术栈")]}),u(E,null,{default:()=>[u(o,null,m(a=this.technologyTagOptions.map(e=>u(p,{key:e.value,type:"info"},{default:()=>[e.label]})))?a:{default:()=>[a]})]}),u(s,null,{default:()=>[t("项目介绍")]}),u(E,null,{default:()=>[t("预设了最佳构建体验的配置与常用搬砖工具。意在提供一个简洁、快速上手的模板。")]})]}),u(i,{title:"友情链接"},{default:()=>[u(d,null,null)]})]})}});export{du as default}; diff --git a/js/index-ZjF7vgNG.js.gz b/js/index-ZjF7vgNG.js.gz new file mode 100644 index 00000000..14e29ac9 Binary files /dev/null and b/js/index-ZjF7vgNG.js.gz differ diff --git a/js/index-hU9_Mjki.js.gz b/js/index-hU9_Mjki.js.gz deleted file mode 100644 index dc9921e3..00000000 Binary files a/js/index-hU9_Mjki.js.gz and /dev/null differ diff --git a/js/index-hsDrsE97.js.gz b/js/index-hsDrsE97.js.gz deleted file mode 100644 index a31e5f30..00000000 Binary files a/js/index-hsDrsE97.js.gz and /dev/null differ diff --git a/js/index-tgRTNfIG.js.gz b/js/index-tgRTNfIG.js.gz deleted file mode 100644 index 20e2445f..00000000 Binary files a/js/index-tgRTNfIG.js.gz and /dev/null differ diff --git a/js/index-BkbN0lKB.js b/js/index-zScVDTMx.js similarity index 95% rename from js/index-BkbN0lKB.js rename to js/index-zScVDTMx.js index 05ef2aa3..3eaca9b4 100644 --- a/js/index-BkbN0lKB.js +++ b/js/index-zScVDTMx.js @@ -1 +1 @@ -import{a as r}from"./vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.js";import"./lodash@4.17.21-Cw59kuJw.js";import{s as n}from"./instance-D7APY90Q.js";import{c as l,N as o,P as A,T as i,_ as g}from"./naive-ui@2.40.1_vue@3.5.12-DyRQVgeU.js";import{l as V,b as u,I as t}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import{e as R,x as v}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.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"./axios@1.7.5-C8DqakIB.js";import"./hooks-DonDO7vb.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import"./utils-6rpFoFAR.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.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-dom@3.5.12-ewSD1rNh.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";function b(e,a){return r(()=>n(e),Object.assign({},a))}const w=e=>n({url:`https://www.tianqiapi.com/api?version=v9&appid=23035354&appsecret=8YvlPNrz&city=${e}`,method:"get"}),d=()=>n({url:"https://jsonplaceholder.typicode.com/todos/1",method:"get"}),Ru=V({name:"RAxios",setup(){const e=R({weatherData:[],inputCityValue:null,throttleDemoInputValue:null,debounceDemoInputValue:null,weatherDemoInputValue:null}),{data:a,loading:m,run:p}=r(d,{throttleWait:1e3,manual:!0}),{data:s,loading:D,run:F}=r(d,{debounceWait:1e3,manual:!0}),{data:h,loading:c,run:E}=r(w,{throttleWait:1e3,manual:!0}),{data:B,loading:C,run:f}=b({url:"https://jsonplaceholder.typicode.com/todos/1",method:"get",cancelConfig:{cancel:!0}},{manual:!0,onError:()=>{window.$message.error("接口出现异常")}});return{...v(e),throttleDemoValue:a,throttleDemoLoading:m,throttleDemoRun:p,debounceDemoValue:s,debounceDemoLoading:D,debounceDemoRun:F,weatherDemoValue:h,weatherDemoLoading:c,weatherDemoRun:E,demoData:B,demoLoading:C,demoRun:f}},render(){return u(g,null,{default:()=>[u(l,{vertical:!0},{default:()=>[u("h1",null,[t("请求")]),u(o,null,{default:()=>[u("h2",null,[t("useRequest")]),u("p",null,[t("支持配置化请求数据")]),u("h2",null,[t("useHookPlusRequest")]),u("p",null,[t("支持包裹一个拥有 promise 状态的异步函数,可以用来包裹一个 axios 请求返回值方法")])]}),u("h1",null,[t("使用 useRequest 获取")]),u(o,{title:"请求函数"},{default:()=>[u("h3",null,[t("1.基于 axios 封装,能够自动取消连续请求,避免重复渲染造成问题")]),u("h3",null,[t("2.打开控制台 => 网络 => 使用低速3g网络 => 查看控制台被取消的请求")]),u("h3",null,[t("3.详情请查看文档")])]}),u(o,{title:"useRequest示例(手动触发)"},{default:()=>[u(l,{vertical:!0},{default:()=>{var e;return[u(A,{onClick:this.demoRun.bind(this)},{default:()=>[t("获取数据")]}),u("h3",null,[t("结果: "),this.demoLoading?"获取中...":(e=this.demoData)==null?void 0:e.title])]}})]}),u("h1",null,[t("使用 useHookPlusRequest 获取")]),u(o,{title:"节流"},{default:()=>[u(l,{vertical:!0},{default:()=>[u(i,{value:this.throttleDemoInputValue,"onUpdate:value":e=>this.throttleDemoInputValue=e,onUpdateValue:()=>{this.throttleDemoRun()}},null),u("h3",null,[t("不论触发多少次,一秒钟之内仅会触发一次")]),u("h3",null,[t("当前状态: "),this.throttleDemoLoading?"获取中...":"获取成功!!!"])]})]}),u(o,{title:"防抖"},{default:()=>[u(l,{vertical:!0},{default:()=>[u(i,{value:this.debounceDemoInputValue,"onUpdate:value":e=>this.debounceDemoInputValue=e,onUpdateValue:()=>{this.debounceDemoRun()}},null),u("h3",null,[t("一秒后才会执行,如果中途重新请求,则会重新计时")]),u("h3",null,[t("当前状态: "),this.debounceDemoLoading?"获取中...":"获取成功!!!"])]})]}),u(o,{title:"获取气候"},{default:()=>[u(l,{vertical:!0},{default:()=>[u(i,{value:this.weatherDemoInputValue,"onUpdate:value":e=>this.weatherDemoInputValue=e,onUpdateValue:e=>{this.weatherDemoRun(e)}},null),u("h3",null,[t("该示例演示了如何根据动态值获取数据")]),u("h3",null,[t("当前状态: "),this.weatherDemoLoading?"获取中...":"获取成功!!!"])]})]})]})]})}});export{Ru as default}; +import{a as r}from"./vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.js";import"./lodash@4.17.21-Cw59kuJw.js";import{s as n}from"./instance-CGOUnAsK.js";import{c as l,N as o,P as A,T as i,_ as g}from"./naive-ui@2.40.1_vue@3.5.12-DyRQVgeU.js";import{l as V,b as u,I as t}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import{e as R,x as v}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.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"./axios@1.7.5-C8DqakIB.js";import"./hooks-BwPndLx3.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-D8VSY-p2.js";import"./print-js@1.6.0-BdoEj60G.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import"./utils-Dh5AVlvo.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.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-dom@3.5.12-ewSD1rNh.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";function b(e,a){return r(()=>n(e),Object.assign({},a))}const w=e=>n({url:`https://www.tianqiapi.com/api?version=v9&appid=23035354&appsecret=8YvlPNrz&city=${e}`,method:"get"}),d=()=>n({url:"https://jsonplaceholder.typicode.com/todos/1",method:"get"}),Ru=V({name:"RAxios",setup(){const e=R({weatherData:[],inputCityValue:null,throttleDemoInputValue:null,debounceDemoInputValue:null,weatherDemoInputValue:null}),{data:a,loading:m,run:p}=r(d,{throttleWait:1e3,manual:!0}),{data:s,loading:D,run:F}=r(d,{debounceWait:1e3,manual:!0}),{data:h,loading:c,run:E}=r(w,{throttleWait:1e3,manual:!0}),{data:B,loading:C,run:f}=b({url:"https://jsonplaceholder.typicode.com/todos/1",method:"get",cancelConfig:{cancel:!0}},{manual:!0,onError:()=>{window.$message.error("接口出现异常")}});return{...v(e),throttleDemoValue:a,throttleDemoLoading:m,throttleDemoRun:p,debounceDemoValue:s,debounceDemoLoading:D,debounceDemoRun:F,weatherDemoValue:h,weatherDemoLoading:c,weatherDemoRun:E,demoData:B,demoLoading:C,demoRun:f}},render(){return u(g,null,{default:()=>[u(l,{vertical:!0},{default:()=>[u("h1",null,[t("请求")]),u(o,null,{default:()=>[u("h2",null,[t("useRequest")]),u("p",null,[t("支持配置化请求数据")]),u("h2",null,[t("useHookPlusRequest")]),u("p",null,[t("支持包裹一个拥有 promise 状态的异步函数,可以用来包裹一个 axios 请求返回值方法")])]}),u("h1",null,[t("使用 useRequest 获取")]),u(o,{title:"请求函数"},{default:()=>[u("h3",null,[t("1.基于 axios 封装,能够自动取消连续请求,避免重复渲染造成问题")]),u("h3",null,[t("2.打开控制台 => 网络 => 使用低速3g网络 => 查看控制台被取消的请求")]),u("h3",null,[t("3.详情请查看文档")])]}),u(o,{title:"useRequest示例(手动触发)"},{default:()=>[u(l,{vertical:!0},{default:()=>{var e;return[u(A,{onClick:this.demoRun.bind(this)},{default:()=>[t("获取数据")]}),u("h3",null,[t("结果: "),this.demoLoading?"获取中...":(e=this.demoData)==null?void 0:e.title])]}})]}),u("h1",null,[t("使用 useHookPlusRequest 获取")]),u(o,{title:"节流"},{default:()=>[u(l,{vertical:!0},{default:()=>[u(i,{value:this.throttleDemoInputValue,"onUpdate:value":e=>this.throttleDemoInputValue=e,onUpdateValue:()=>{this.throttleDemoRun()}},null),u("h3",null,[t("不论触发多少次,一秒钟之内仅会触发一次")]),u("h3",null,[t("当前状态: "),this.throttleDemoLoading?"获取中...":"获取成功!!!"])]})]}),u(o,{title:"防抖"},{default:()=>[u(l,{vertical:!0},{default:()=>[u(i,{value:this.debounceDemoInputValue,"onUpdate:value":e=>this.debounceDemoInputValue=e,onUpdateValue:()=>{this.debounceDemoRun()}},null),u("h3",null,[t("一秒后才会执行,如果中途重新请求,则会重新计时")]),u("h3",null,[t("当前状态: "),this.debounceDemoLoading?"获取中...":"获取成功!!!"])]})]}),u(o,{title:"获取气候"},{default:()=>[u(l,{vertical:!0},{default:()=>[u(i,{value:this.weatherDemoInputValue,"onUpdate:value":e=>this.weatherDemoInputValue=e,onUpdateValue:e=>{this.weatherDemoRun(e)}},null),u("h3",null,[t("该示例演示了如何根据动态值获取数据")]),u("h3",null,[t("当前状态: "),this.weatherDemoLoading?"获取中...":"获取成功!!!"])]})]})]})]})}});export{Ru as default}; diff --git a/js/index-zScVDTMx.js.gz b/js/index-zScVDTMx.js.gz new file mode 100644 index 00000000..c7bec267 Binary files /dev/null and b/js/index-zScVDTMx.js.gz differ diff --git a/js/instance-D7APY90Q.js b/js/instance-CGOUnAsK.js similarity index 90% rename from js/instance-D7APY90Q.js rename to js/instance-CGOUnAsK.js index 573bdf87..9adf2f0c 100644 --- a/js/instance-D7APY90Q.js +++ b/js/instance-CGOUnAsK.js @@ -1 +1 @@ -import{a as R}from"./axios@1.7.5-C8DqakIB.js";import{V as t,W as n,f as q,X as d}from"./hooks-DonDO7vb.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.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"./jsbarcode@3.11.6-DGNGFp02.js";import{g as A}from"./utils-6rpFoFAR.js";import"./currency.js@2.0.4-9OAR_aOO.js";const y=(e,r)=>{t.removePendingRequest(e)},E=(e,r)=>{t.removePendingRequest(e)},p={implementResponseInterceptorArray:[y],implementResponseInterceptorErrorArray:[E]},{setImplement:m}=n(),k=()=>{const{implementResponseInterceptorArray:e}=p;m("implementResponseInterceptorArray",e,"ok")},P=()=>{const{implementResponseInterceptorErrorArray:e}=p;m("implementResponseInterceptorErrorArray",e,"error")},f=(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=A(q.token,"localStorage");return e.url,{key:"X-TOKEN",value:o}},H=(e,r)=>{v(e,[C(e),{key:"Demo-Header-Key",value:"Demo Header Value"}])},c={implementRequestInterceptorArray:[H,f],implementRequestInterceptorErrorArray:[g]},{setImplement:a}=n(),j=()=>{const{implementRequestInterceptorArray:e}=c;a("implementRequestInterceptorArray",e,"ok")},x=()=>{const{implementRequestInterceptorErrorArray:e}=c;a("implementRequestInterceptorErrorArray",e,"error")},i=R.create(d),{createAxiosInstance:u,beforeFetch:l,fetchError:I}=n();i.interceptors.request.use(e=>(u(e,"requestInstance"),j(),l("requestInstance","implementRequestInterceptorArray","ok"),e),e=>(x(),I("requestError",e,"implementRequestInterceptorErrorArray"),Promise.reject(e)));i.interceptors.response.use(e=>{u(e,"responseInstance"),k(),l("responseInstance","implementResponseInterceptorArray","ok");const{data:r}=e;return Promise.resolve(r)},e=>(P(),I("responseError",e,"implementResponseInterceptorErrorArray"),Promise.reject(e)));export{i as s}; +import{a as R}from"./axios@1.7.5-C8DqakIB.js";import{V as t,W as n,f as q,X as d}from"./hooks-BwPndLx3.js";import"./dayjs@1.11.10-D8VSY-p2.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.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"./jsbarcode@3.11.6-DGNGFp02.js";import{g as A}from"./utils-Dh5AVlvo.js";import"./currency.js@2.0.4-9OAR_aOO.js";const y=(e,r)=>{t.removePendingRequest(e)},E=(e,r)=>{t.removePendingRequest(e)},p={implementResponseInterceptorArray:[y],implementResponseInterceptorErrorArray:[E]},{setImplement:m}=n(),k=()=>{const{implementResponseInterceptorArray:e}=p;m("implementResponseInterceptorArray",e,"ok")},P=()=>{const{implementResponseInterceptorErrorArray:e}=p;m("implementResponseInterceptorErrorArray",e,"error")},f=(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=A(q.token,"localStorage");return e.url,{key:"X-TOKEN",value:o}},H=(e,r)=>{v(e,[C(e),{key:"Demo-Header-Key",value:"Demo Header Value"}])},c={implementRequestInterceptorArray:[H,f],implementRequestInterceptorErrorArray:[g]},{setImplement:a}=n(),j=()=>{const{implementRequestInterceptorArray:e}=c;a("implementRequestInterceptorArray",e,"ok")},x=()=>{const{implementRequestInterceptorErrorArray:e}=c;a("implementRequestInterceptorErrorArray",e,"error")},i=R.create(d),{createAxiosInstance:u,beforeFetch:l,fetchError:I}=n();i.interceptors.request.use(e=>(u(e,"requestInstance"),j(),l("requestInstance","implementRequestInterceptorArray","ok"),e),e=>(x(),I("requestError",e,"implementRequestInterceptorErrorArray"),Promise.reject(e)));i.interceptors.response.use(e=>{u(e,"responseInstance"),k(),l("responseInstance","implementResponseInterceptorArray","ok");const{data:r}=e;return Promise.resolve(r)},e=>(P(),I("responseError",e,"implementResponseInterceptorErrorArray"),Promise.reject(e)));export{i as s}; diff --git a/js/instance-CGOUnAsK.js.gz b/js/instance-CGOUnAsK.js.gz new file mode 100644 index 00000000..83fc0835 Binary files /dev/null and b/js/instance-CGOUnAsK.js.gz differ diff --git a/js/instance-D7APY90Q.js.gz b/js/instance-D7APY90Q.js.gz deleted file mode 100644 index d1739069..00000000 Binary files a/js/instance-D7APY90Q.js.gz and /dev/null differ diff --git a/js/utils-6rpFoFAR.js.gz b/js/utils-6rpFoFAR.js.gz deleted file mode 100644 index 5bea94cc..00000000 Binary files a/js/utils-6rpFoFAR.js.gz and /dev/null differ diff --git a/js/utils-6rpFoFAR.js b/js/utils-Dh5AVlvo.js similarity index 99% rename from js/utils-6rpFoFAR.js rename to js/utils-Dh5AVlvo.js index 04c669bf..7b7de8b5 100644 --- a/js/utils-6rpFoFAR.js +++ b/js/utils-Dh5AVlvo.js @@ -1 +1 @@ -import{u as We,a as Le,b as ve,c as Pe,L as Ie,S as Fe,A as y,d as je}from"./hooks-DonDO7vb.js";import{c as i}from"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.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"./jsbarcode@3.11.6-DGNGFp02.js";import{o as Re,c as _}from"./lodash-es@4.17.21-CeZG2a4n.js";import{k as Be,a as Te,q as Me,v as De}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import{w as g,f as Oe}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.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",E={},k={textStyle:{color:"#ffffff"},subtextStyle:{color:"#dddddd"}},W={itemStyle:{borderWidth:"4"},lineStyle:{width:"3"},symbolSize:"0",symbol:"circle",smooth:!0},L={itemStyle:{borderWidth:"4"},lineStyle:{width:"3"},symbolSize:"0",symbol:"circle",smooth:!0},v={itemStyle:{barBorderWidth:0,barBorderColor:"#ccc"}},P={itemStyle:{borderWidth:0,borderColor:"#ccc"}},I={itemStyle:{borderWidth:0,borderColor:"#ccc"}},F={itemStyle:{borderWidth:0,borderColor:"#ccc"}},j={itemStyle:{borderWidth:0,borderColor:"#ccc"}},R={itemStyle:{borderWidth:0,borderColor:"#ccc"}},B={itemStyle:{borderWidth:0,borderColor:"#ccc"}},T={itemStyle:{borderWidth:0,borderColor:"#ccc"}},M={itemStyle:{color:"#fc97af",color0:"transparent",borderColor:"#fc97af",borderColor0:"#87f7cf",borderWidth:"2"}},D={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"}},O={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)"}}},U={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)"}}},V={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)"]}}},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)"]}}},K={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={iconStyle:{borderColor:"#999999"},emphasis:{iconStyle:{borderColor:"#666666"}}},G={textStyle:{color:"#999999"},pageTextStyle:{color:"#999999"}},H={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"]},J={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"}},N={label:{color:"#293441"},emphasis:{label:{color:"#293441"}}},Ue={color:$,backgroundColor:A,textStyle:E,title:k,line:W,radar:L,bar:v,pie:P,scatter:I,boxplot:F,parallel:j,sankey:R,funnel:B,gauge:T,candlestick:M,graph:D,map:O,geo:U,categoryAxis:V,valueAxis:q,logAxis:z,timeAxis:K,toolbox:Z,legend:G,tooltip:H,timeline:X,visualMap:Y,dataZoom:J,markPoint:N},Ve=Object.freeze(Object.defineProperty({__proto__:null,backgroundColor:A,bar:v,boxplot:F,candlestick:M,categoryAxis:V,color:$,dataZoom:J,default:Ue,funnel:B,gauge:T,geo:U,graph:D,legend:G,line:W,logAxis:z,map:O,markPoint:N,parallel:j,pie:P,radar:L,sankey:R,scatter:I,textStyle:E,timeAxis:K,timeline:X,title:k,toolbox:Z,tooltip:H,valueAxis:q,visualMap:Y},Symbol.toStringTag,{value:"Module"})),Q=["#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"],ee="transparent",oe={},te={textStyle:{color:"#008acd"},subtextStyle:{color:"#aaaaaa"}},re={itemStyle:{borderWidth:1},lineStyle:{width:2},symbolSize:3,symbol:"emptyCircle",smooth:!0},le={itemStyle:{borderWidth:1},lineStyle:{width:2},symbolSize:3,symbol:"emptyCircle",smooth:!0},ae={itemStyle:{barBorderWidth:0,barBorderColor:"#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:{borderWidth:0,borderColor:"#ccc"}},be={itemStyle:{color:"#d87a80",color0:"#2ec7c9",borderColor:"#d87a80",borderColor0:"#2ec7c9",borderWidth:1}},me={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"}},pe={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)"}}},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)"}}},Se={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)"]}}},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:!0,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},we={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)"]}}},Ce={iconStyle:{borderColor:"#2ec7c9"},emphasis:{iconStyle:{borderColor:"#18a4a6"}}},xe={textStyle:{color:"#333333"}},_e={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"]},Ee={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"}}},qe={color:Q,backgroundColor:ee,textStyle:oe,title:te,line:re,radar:le,bar:ae,pie:se,scatter:ce,boxplot:ne,parallel:ie,sankey:de,funnel:fe,gauge:ue,candlestick:be,graph:me,map:pe,geo:he,categoryAxis:Se,valueAxis:ye,logAxis:ge,timeAxis:we,toolbox:Ce,legend:xe,tooltip:_e,timeline:$e,visualMap:Ae,dataZoom:Ee,markPoint:ke},ze=Object.freeze(Object.defineProperty({__proto__:null,backgroundColor:ee,bar:ae,boxplot:ne,candlestick:be,categoryAxis:Se,color:Q,dataZoom:Ee,default:qe,funnel:fe,gauge:ue,geo:he,graph:me,legend:xe,line:re,logAxis:ge,map:pe,markPoint:ke,parallel:ie,pie:se,radar:le,sankey:de,scatter:ce,textStyle:oe,timeAxis:we,timeline:$e,title:te,toolbox:Ce,tooltip:_e,valueAxis:ye,visualMap:Ae},Symbol.toStringTag,{value:"Module"})),io=()=>{const e=Object.assign({"/src/app-config/echart-themes/macarons/macarons-dark.json":Ve,"/src/app-config/echart-themes/macarons/macarons.json":ze}),t=/\/([^/]+)\.json$/;return Object.keys(e).reduce((r,l)=>{var s;const a=(s=l.match(t))==null?void 0:s[1];if(a)return r.push({name:a,theme:e[l].default}),r;throw new Error(`[RChart Theme Error]: name ${l} is invalid!`)},[])},fo=e=>{const{getAppTheme:t}=We(),{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"})},uo=()=>({notMerge:!0,lazyUpdate:!0,silent:!1,replaceMerge:[]}),bo=(e,t)=>{var a;const{domToImageOptions:o,printOptions:r}=t??{},{create:l}=Le(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=l("jpeg"))==null||a.then(s=>{const{print:c}=ve(s,{type:"image",base64:!0,targetStyles:["*"],...Re(r,["type","base64"])});c()})},Ke=".n-menu-item-content--selected",Ze="n-menu-item",mo=()=>{const e=u(Ie),t=e==null?void 0:e.querySelector(Ke),o=u(Fe);let r=0;const l=e==null?void 0:e.querySelector(Ze);if(o){const{height:a}=o.getBoundingClientRect();r=a}if(t&&e){const a=Pe(),{top:s}=e.getBoundingClientRect(),{top:c}=t.getBoundingClientRect(),n=e.scrollTop,f=l?parseInt(window.getComputedStyle(l).marginTop):6;a({top:c-s+n-r-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 Ge={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:"/"},po=()=>Ge,ho=(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(""),r=[],l=window.crypto||window.msCrypto;let a=0;for(a=0;a{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},go=(e,t)=>{const o=e.split("?").filter(Boolean)[0],r=t.split("?").filter(Boolean)[0],l=/\/$/;return o.replace(l,"")===r.replace(l,"")};function wo(e,t="sessionStorage",o){const{prefix:r,prefixKey:l}=o??{},a=r?l||y:"",s=t==="localStorage"?window.localStorage:window.sessionStorage;return!!Object.keys(s).find(c=>c===a+e)}function Co(e,t,o="sessionStorage",r){if(!e){console.error(`[setStorage]: Failed to set stored data: key ${e} is empty`);return}const{prefix:l,prefixKey:a}=r??{},s=l?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 xo(e,t="sessionStorage",o){const{prefix:r,prefixKey:l,defaultValue:a}=o??{},s=r?l||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 _o=(e,t,o)=>{if(!e){console.error(`[removeStorage]: Failed to remove stored data: key ${e} is empty or undefined`);return}const{prefix:r,prefixKey:l}=o??{},a=r?l||y:"",s=Object.keys(window.localStorage),c=Object.keys(window.sessionStorage),n=(f,p)=>{(f?[...c,...s]:p==="localStorage"?s:c).forEach(b=>{e==="__all__"?(window.sessionStorage.removeItem(a+b),window.localStorage.removeItem(a+b)):p==="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}},$o=(e,t)=>{const r=g(()=>u(e),()=>{const l=u(e);l&&(typeof t=="string"?t.trim().split(" "):t).forEach(s=>{s&&l.classList.add(s)})},{immediate:!0});h(r)},Ao=(e,t)=>{const r=g(()=>u(e),()=>{const l=u(e);if(l)if(t==="removeAllClass"){const a=l.classList;a.forEach(s=>a.remove(s))}else(typeof t=="string"?t.trim().split(" "):t).forEach(s=>{s&&l.classList.remove(s)})},{immediate:!0});h(r)},Eo=(e,t)=>{const o=Be(!1),l=g(()=>u(e),()=>{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))}},{immediate:!0});return h(l),o},He=e=>{const t=["webkit","moz","ms","o"],o={};return t.forEach(r=>{o[`${r}${e.charAt(0).toUpperCase()}${e.slice(1)}`]=e}),o[e]=e,o},ko=(e,t)=>{const o=(a,s)=>{a.split(";").forEach(c=>{const[n,f]=c.split(":");if(n&&f){const p=n.trim(),C=f.trim();if(n.startsWith("--"))s.style.setProperty(p,C);else if(n.startsWith("-"))s.style[n]=f;else{const b=He(p);Object.keys(b).forEach(x=>{s.style[x]=b[x]}),s.style[p]=C}}})},l=g(()=>u(e),()=>{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)}))},{immediate:!0});h(l)},Wo=(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},Lo=(e,t)=>{const{defaultElement:o}={};if(!e)return o?[o]:null;const r=e.startsWith("attr:")?`[${e.replace("attr:","")}]`:e;try{const l=Array.from(document.querySelectorAll(r));return!l.length&&o?[o]:l}catch(l){return console.error(`[queryElements]: Failed to get elements for selector '${e}'`,l),o?[o]:null}},vo=(e,t="px")=>e==="auto"?e:typeof e=="number"?e.toString()+t:S(e,"String")&&je.cssUnit.test(e)?e:e+t,d={precision:8,decimal:"."},w=(e,t,o)=>e!=null&&e.length?e.length===1?i(e[0],d):e.reduce((l,a,s,c)=>(l=o==null?void 0:o(l,a,s,c),l),t):0,Xe=(e,t)=>{const o=Object.assign({},d,t),r=i(e,o),{type:l="number"}=o;return l==="number"?r.value:r.toString()},Po=(...e)=>e.length===1?i(e[0],d).add(0):w(e,0,(t,o)=>i(t,d).add(o)),Io=(...e)=>{if(e.length===1)return i(e[0],d).subtract(0);if(e.length===2){const[r,l]=e;return i(r,d).subtract(l)}const t=_(e),o=t.shift();return t.length?w(t,o,(r,l)=>i(r,d).subtract(l)):o},Fo=(...e)=>e.length===1?i(e[0],d).multiply(1):w(e,1,(t,o)=>i(t,d).multiply(o)),jo=(...e)=>{if(e.length===1)return i(e[0],d).divide(1);if(e.length===2){const[r,l]=e;return i(r,d).divide(l)}const t=_(e),o=t.shift();return w(t,o,(r,l)=>i(r,d).divide(l))},Ro=(e,t,o)=>{if(t<=1)return[e||0];if(!e)return new Array(t).fill(0);const r=Object.assign({},d,o);return i(e,r).distribute(t).map(a=>Xe(a,r))};function Ye(e,...t){if(Array.isArray(e))e.forEach(o=>Ye(o,...t));else return e(...t)}function u(e,t){var r;if(!e)return t;let o;return typeof e=="function"?o=e():Te(e)?o=((r=e.value)==null?void 0:r.$el)??e.value:o=e,o}function Bo(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 h(e){return Me()?(De(e),!0):!1}function To(e,t){const o=Oe(e,t);h(o)}const Mo=(e,t,o,r)=>{if(!e||typeof e!="object"){console.warn(`[updateObjectValue]: targetObject must be an object, expected ${typeof e}`);return}Object.hasOwn(e,t)&&(typeof o=="object"?e[t]=Object.assign({},e[t],o):e[t]=o,r==null||r())};export{u as A,wo as B,Xe as C,Ro as D,Po as E,Io as F,Fo as G,jo as H,po as a,uo as b,Wo as c,io as d,vo as e,Ye as f,xo as g,ho as h,S as i,So as j,ko as k,fo as l,$o as m,h as n,go as o,bo as p,Lo as q,Bo as r,Co as s,_o as t,Mo as u,mo as v,Ao as w,yo as x,Eo as y,To as z}; +import{u as We,a as Le,b as ve,c as Pe,L as Ie,S as Fe,A as y,d as je}from"./hooks-BwPndLx3.js";import{c as i}from"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-D8VSY-p2.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.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"./jsbarcode@3.11.6-DGNGFp02.js";import{o as Re,c as _}from"./lodash-es@4.17.21-CeZG2a4n.js";import{k as Be,a as Te,q as Me,v as De}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import{w as g,f as Oe}from"./@vue_runtime-core@3.5.12-Ds-HrVrM.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",E={},k={textStyle:{color:"#ffffff"},subtextStyle:{color:"#dddddd"}},W={itemStyle:{borderWidth:"4"},lineStyle:{width:"3"},symbolSize:"0",symbol:"circle",smooth:!0},L={itemStyle:{borderWidth:"4"},lineStyle:{width:"3"},symbolSize:"0",symbol:"circle",smooth:!0},v={itemStyle:{barBorderWidth:0,barBorderColor:"#ccc"}},P={itemStyle:{borderWidth:0,borderColor:"#ccc"}},I={itemStyle:{borderWidth:0,borderColor:"#ccc"}},F={itemStyle:{borderWidth:0,borderColor:"#ccc"}},j={itemStyle:{borderWidth:0,borderColor:"#ccc"}},R={itemStyle:{borderWidth:0,borderColor:"#ccc"}},B={itemStyle:{borderWidth:0,borderColor:"#ccc"}},T={itemStyle:{borderWidth:0,borderColor:"#ccc"}},M={itemStyle:{color:"#fc97af",color0:"transparent",borderColor:"#fc97af",borderColor0:"#87f7cf",borderWidth:"2"}},D={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"}},O={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)"}}},U={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)"}}},V={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)"]}}},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)"]}}},K={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={iconStyle:{borderColor:"#999999"},emphasis:{iconStyle:{borderColor:"#666666"}}},G={textStyle:{color:"#999999"},pageTextStyle:{color:"#999999"}},H={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"]},J={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"}},N={label:{color:"#293441"},emphasis:{label:{color:"#293441"}}},Ue={color:$,backgroundColor:A,textStyle:E,title:k,line:W,radar:L,bar:v,pie:P,scatter:I,boxplot:F,parallel:j,sankey:R,funnel:B,gauge:T,candlestick:M,graph:D,map:O,geo:U,categoryAxis:V,valueAxis:q,logAxis:z,timeAxis:K,toolbox:Z,legend:G,tooltip:H,timeline:X,visualMap:Y,dataZoom:J,markPoint:N},Ve=Object.freeze(Object.defineProperty({__proto__:null,backgroundColor:A,bar:v,boxplot:F,candlestick:M,categoryAxis:V,color:$,dataZoom:J,default:Ue,funnel:B,gauge:T,geo:U,graph:D,legend:G,line:W,logAxis:z,map:O,markPoint:N,parallel:j,pie:P,radar:L,sankey:R,scatter:I,textStyle:E,timeAxis:K,timeline:X,title:k,toolbox:Z,tooltip:H,valueAxis:q,visualMap:Y},Symbol.toStringTag,{value:"Module"})),Q=["#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"],ee="transparent",oe={},te={textStyle:{color:"#008acd"},subtextStyle:{color:"#aaaaaa"}},re={itemStyle:{borderWidth:1},lineStyle:{width:2},symbolSize:3,symbol:"emptyCircle",smooth:!0},le={itemStyle:{borderWidth:1},lineStyle:{width:2},symbolSize:3,symbol:"emptyCircle",smooth:!0},ae={itemStyle:{barBorderWidth:0,barBorderColor:"#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:{borderWidth:0,borderColor:"#ccc"}},be={itemStyle:{color:"#d87a80",color0:"#2ec7c9",borderColor:"#d87a80",borderColor0:"#2ec7c9",borderWidth:1}},me={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"}},pe={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)"}}},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)"}}},Se={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)"]}}},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:!0,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},we={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)"]}}},Ce={iconStyle:{borderColor:"#2ec7c9"},emphasis:{iconStyle:{borderColor:"#18a4a6"}}},xe={textStyle:{color:"#333333"}},_e={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"]},Ee={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"}}},qe={color:Q,backgroundColor:ee,textStyle:oe,title:te,line:re,radar:le,bar:ae,pie:se,scatter:ce,boxplot:ne,parallel:ie,sankey:de,funnel:fe,gauge:ue,candlestick:be,graph:me,map:pe,geo:he,categoryAxis:Se,valueAxis:ye,logAxis:ge,timeAxis:we,toolbox:Ce,legend:xe,tooltip:_e,timeline:$e,visualMap:Ae,dataZoom:Ee,markPoint:ke},ze=Object.freeze(Object.defineProperty({__proto__:null,backgroundColor:ee,bar:ae,boxplot:ne,candlestick:be,categoryAxis:Se,color:Q,dataZoom:Ee,default:qe,funnel:fe,gauge:ue,geo:he,graph:me,legend:xe,line:re,logAxis:ge,map:pe,markPoint:ke,parallel:ie,pie:se,radar:le,sankey:de,scatter:ce,textStyle:oe,timeAxis:we,timeline:$e,title:te,toolbox:Ce,tooltip:_e,valueAxis:ye,visualMap:Ae},Symbol.toStringTag,{value:"Module"})),io=()=>{const e=Object.assign({"/src/app-config/echart-themes/macarons/macarons-dark.json":Ve,"/src/app-config/echart-themes/macarons/macarons.json":ze}),t=/\/([^/]+)\.json$/;return Object.keys(e).reduce((r,l)=>{var s;const a=(s=l.match(t))==null?void 0:s[1];if(a)return r.push({name:a,theme:e[l].default}),r;throw new Error(`[RChart Theme Error]: name ${l} is invalid!`)},[])},fo=e=>{const{getAppTheme:t}=We(),{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"})},uo=()=>({notMerge:!0,lazyUpdate:!0,silent:!1,replaceMerge:[]}),bo=(e,t)=>{var a;const{domToImageOptions:o,printOptions:r}=t??{},{create:l}=Le(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=l("jpeg"))==null||a.then(s=>{const{print:c}=ve(s,{type:"image",base64:!0,targetStyles:["*"],...Re(r,["type","base64"])});c()})},Ke=".n-menu-item-content--selected",Ze="n-menu-item",mo=()=>{const e=u(Ie),t=e==null?void 0:e.querySelector(Ke),o=u(Fe);let r=0;const l=e==null?void 0:e.querySelector(Ze);if(o){const{height:a}=o.getBoundingClientRect();r=a}if(t&&e){const a=Pe(),{top:s}=e.getBoundingClientRect(),{top:c}=t.getBoundingClientRect(),n=e.scrollTop,f=l?parseInt(window.getComputedStyle(l).marginTop):6;a({top:c-s+n-r-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 Ge={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:"/"},po=()=>Ge,ho=(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(""),r=[],l=window.crypto||window.msCrypto;let a=0;for(a=0;a{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},go=(e,t)=>{const o=e.split("?").filter(Boolean)[0],r=t.split("?").filter(Boolean)[0],l=/\/$/;return o.replace(l,"")===r.replace(l,"")};function wo(e,t="sessionStorage",o){const{prefix:r,prefixKey:l}=o??{},a=r?l||y:"",s=t==="localStorage"?window.localStorage:window.sessionStorage;return!!Object.keys(s).find(c=>c===a+e)}function Co(e,t,o="sessionStorage",r){if(!e){console.error(`[setStorage]: Failed to set stored data: key ${e} is empty`);return}const{prefix:l,prefixKey:a}=r??{},s=l?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 xo(e,t="sessionStorage",o){const{prefix:r,prefixKey:l,defaultValue:a}=o??{},s=r?l||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 _o=(e,t,o)=>{if(!e){console.error(`[removeStorage]: Failed to remove stored data: key ${e} is empty or undefined`);return}const{prefix:r,prefixKey:l}=o??{},a=r?l||y:"",s=Object.keys(window.localStorage),c=Object.keys(window.sessionStorage),n=(f,p)=>{(f?[...c,...s]:p==="localStorage"?s:c).forEach(b=>{e==="__all__"?(window.sessionStorage.removeItem(a+b),window.localStorage.removeItem(a+b)):p==="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}},$o=(e,t)=>{const r=g(()=>u(e),()=>{const l=u(e);l&&(typeof t=="string"?t.trim().split(" "):t).forEach(s=>{s&&l.classList.add(s)})},{immediate:!0});h(r)},Ao=(e,t)=>{const r=g(()=>u(e),()=>{const l=u(e);if(l)if(t==="removeAllClass"){const a=l.classList;a.forEach(s=>a.remove(s))}else(typeof t=="string"?t.trim().split(" "):t).forEach(s=>{s&&l.classList.remove(s)})},{immediate:!0});h(r)},Eo=(e,t)=>{const o=Be(!1),l=g(()=>u(e),()=>{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))}},{immediate:!0});return h(l),o},He=e=>{const t=["webkit","moz","ms","o"],o={};return t.forEach(r=>{o[`${r}${e.charAt(0).toUpperCase()}${e.slice(1)}`]=e}),o[e]=e,o},ko=(e,t)=>{const o=(a,s)=>{a.split(";").forEach(c=>{const[n,f]=c.split(":");if(n&&f){const p=n.trim(),C=f.trim();if(n.startsWith("--"))s.style.setProperty(p,C);else if(n.startsWith("-"))s.style[n]=f;else{const b=He(p);Object.keys(b).forEach(x=>{s.style[x]=b[x]}),s.style[p]=C}}})},l=g(()=>u(e),()=>{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)}))},{immediate:!0});h(l)},Wo=(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},Lo=(e,t)=>{const{defaultElement:o}={};if(!e)return o?[o]:null;const r=e.startsWith("attr:")?`[${e.replace("attr:","")}]`:e;try{const l=Array.from(document.querySelectorAll(r));return!l.length&&o?[o]:l}catch(l){return console.error(`[queryElements]: Failed to get elements for selector '${e}'`,l),o?[o]:null}},vo=(e,t="px")=>e==="auto"?e:typeof e=="number"?e.toString()+t:S(e,"String")&&je.cssUnit.test(e)?e:e+t,d={precision:8,decimal:"."},w=(e,t,o)=>e!=null&&e.length?e.length===1?i(e[0],d):e.reduce((l,a,s,c)=>(l=o==null?void 0:o(l,a,s,c),l),t):0,Xe=(e,t)=>{const o=Object.assign({},d,t),r=i(e,o),{type:l="number"}=o;return l==="number"?r.value:r.toString()},Po=(...e)=>e.length===1?i(e[0],d).add(0):w(e,0,(t,o)=>i(t,d).add(o)),Io=(...e)=>{if(e.length===1)return i(e[0],d).subtract(0);if(e.length===2){const[r,l]=e;return i(r,d).subtract(l)}const t=_(e),o=t.shift();return t.length?w(t,o,(r,l)=>i(r,d).subtract(l)):o},Fo=(...e)=>e.length===1?i(e[0],d).multiply(1):w(e,1,(t,o)=>i(t,d).multiply(o)),jo=(...e)=>{if(e.length===1)return i(e[0],d).divide(1);if(e.length===2){const[r,l]=e;return i(r,d).divide(l)}const t=_(e),o=t.shift();return w(t,o,(r,l)=>i(r,d).divide(l))},Ro=(e,t,o)=>{if(t<=1)return[e||0];if(!e)return new Array(t).fill(0);const r=Object.assign({},d,o);return i(e,r).distribute(t).map(a=>Xe(a,r))};function Ye(e,...t){if(Array.isArray(e))e.forEach(o=>Ye(o,...t));else return e(...t)}function u(e,t){var r;if(!e)return t;let o;return typeof e=="function"?o=e():Te(e)?o=((r=e.value)==null?void 0:r.$el)??e.value:o=e,o}function Bo(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 h(e){return Me()?(De(e),!0):!1}function To(e,t){const o=Oe(e,t);h(o)}const Mo=(e,t,o,r)=>{if(!e||typeof e!="object"){console.warn(`[updateObjectValue]: targetObject must be an object, expected ${typeof e}`);return}Object.hasOwn(e,t)&&(typeof o=="object"?e[t]=Object.assign({},e[t],o):e[t]=o,r==null||r())};export{u as A,wo as B,Xe as C,Ro as D,Po as E,Io as F,Fo as G,jo as H,po as a,uo as b,Wo as c,io as d,vo as e,Ye as f,xo as g,ho as h,S as i,So as j,ko as k,fo as l,$o as m,h as n,go as o,bo as p,Lo as q,Bo as r,Co as s,_o as t,Mo as u,mo as v,Ao as w,yo as x,Eo as y,To as z}; diff --git a/js/utils-Dh5AVlvo.js.gz b/js/utils-Dh5AVlvo.js.gz new file mode 100644 index 00000000..fdb4baba Binary files /dev/null and b/js/utils-Dh5AVlvo.js.gz differ diff --git a/js/zh-CN-dOsAGuBk.js b/js/zh-CN-EdAvjSXU.js similarity index 96% rename from js/zh-CN-dOsAGuBk.js rename to js/zh-CN-EdAvjSXU.js index fb7182ef..62345735 100644 --- a/js/zh-CN-dOsAGuBk.js +++ b/js/zh-CN-EdAvjSXU.js @@ -1 +1 @@ -import{y as Z}from"./hooks-DonDO7vb.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.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"./jsbarcode@3.11.6-DGNGFp02.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./naive-ui@2.40.1_vue@3.5.12-DyRQVgeU.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./vueuc@0.4.64_vue@3.5.12-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.12-ewSD1rNh.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";import"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js";import"./utils-6rpFoFAR.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";const o="当前环境不支持全屏",oo={isEnabledFullscreen:o},eo=Object.freeze(Object.defineProperty({__proto__:null,default:oo,isEnabledFullscreen:o},Symbol.toStringTag,{value:"Module"})),e="项目配置",t={Title:"主题",Dark:"暗色",Light:"明亮",PrimaryColorConfig:"主题色"},n="界面显示",i="动画效果",to={Title:e,ThemeOptions:t,InterfaceDisplay:n,ContentTransition:i},no=Object.freeze(Object.defineProperty({__proto__:null,ContentTransition:i,InterfaceDisplay:n,ThemeOptions:t,Title:e,default:to},Symbol.toStringTag,{value:"Module"})),r="刷新当前页面",c="锁屏",s="设置",l="Github",a="全屏",m="退出全屏",p="搜索",io={Reload:r,Lock:c,Setting:s,Github:l,FullScreen:a,CancelFullScreen:m,Search:p},ro=Object.freeze(Object.defineProperty({__proto__:null,CancelFullScreen:m,FullScreen:a,Github:l,Lock:c,Reload:r,Search:p,Setting:s,default:io},Symbol.toStringTag,{value:"Module"})),_="请求",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="高级表格",co={Axios:_,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},so=Object.freeze(Object.defineProperty({__proto__:null,Axios:_,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:co,scrollReveal:E},Symbol.toStringTag,{value:"Module"})),Q="项目配置",$={Title:"主题",Dark:"暗色",Light:"明亮",PrimaryColorConfig:"主题色"},B="界面显示",lo={Title:Q,ThemeOptions:$,InterfaceDisplay:B},ao=Object.freeze(Object.defineProperty({__proto__:null,InterfaceDisplay:B,ThemeOptions:$,Title:Q,default:lo},Symbol.toStringTag,{value:"Module"})),H="注册",V="登录",q="扫码登陆",J="请输入用户名",K="请输入密码",U="登 陆",W="用户名",X="密码",Y="开箱即用的中后台管理系统",mo={Register:H,Signing:V,QRCodeSigning:q,NamePlaceholder:J,PasswordPlaceholder:K,Login:U,Name:W,Password:X,RayTemplate:Y},po=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:mo},Symbol.toStringTag,{value:"Module"})),_o=Object.assign({"./zh-CN/globalMessage.json":eo,"./zh-CN/headerSettingOptions.json":no,"./zh-CN/headerTooltip.json":ro,"./zh-CN/menu.json":so,"./zh-CN/setting.json":ao,"./zh-CN/views/login/index.json":po}),le={message:{...Z(_o,"zh-CN")}};export{le as default}; +import{y as Z}from"./hooks-BwPndLx3.js";import"./dayjs@1.11.10-D8VSY-p2.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-C6aYKqdf.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"./jsbarcode@3.11.6-DGNGFp02.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./naive-ui@2.40.1_vue@3.5.12-DyRQVgeU.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./@vue_runtime-core@3.5.12-Ds-HrVrM.js";import"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./vueuc@0.4.64_vue@3.5.12-gFk5c7Fb.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CJ-8xq3W.js";import"./vooks@0.2.12_vue@3.5.12-CeQQlSXI.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.12-ewSD1rNh.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";import"./@vueuse_core@11.1.0_vue@3.5.12-C00EZtgk.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-B9WpRTpD.js";import"./utils-Dh5AVlvo.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DjAImzYl.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DrIOQ45i.js";import"./vue-i18n@9.13.1_vue@3.5.12-DJkg4ac8.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";const o="当前环境不支持全屏",oo={isEnabledFullscreen:o},eo=Object.freeze(Object.defineProperty({__proto__:null,default:oo,isEnabledFullscreen:o},Symbol.toStringTag,{value:"Module"})),e="项目配置",t={Title:"主题",Dark:"暗色",Light:"明亮",PrimaryColorConfig:"主题色"},n="界面显示",i="动画效果",to={Title:e,ThemeOptions:t,InterfaceDisplay:n,ContentTransition:i},no=Object.freeze(Object.defineProperty({__proto__:null,ContentTransition:i,InterfaceDisplay:n,ThemeOptions:t,Title:e,default:to},Symbol.toStringTag,{value:"Module"})),r="刷新当前页面",c="锁屏",s="设置",l="Github",a="全屏",m="退出全屏",p="搜索",io={Reload:r,Lock:c,Setting:s,Github:l,FullScreen:a,CancelFullScreen:m,Search:p},ro=Object.freeze(Object.defineProperty({__proto__:null,CancelFullScreen:m,FullScreen:a,Github:l,Lock:c,Reload:r,Search:p,Setting:s,default:io},Symbol.toStringTag,{value:"Module"})),_="请求",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="高级表格",co={Axios:_,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},so=Object.freeze(Object.defineProperty({__proto__:null,Axios:_,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:co,scrollReveal:E},Symbol.toStringTag,{value:"Module"})),Q="项目配置",$={Title:"主题",Dark:"暗色",Light:"明亮",PrimaryColorConfig:"主题色"},B="界面显示",lo={Title:Q,ThemeOptions:$,InterfaceDisplay:B},ao=Object.freeze(Object.defineProperty({__proto__:null,InterfaceDisplay:B,ThemeOptions:$,Title:Q,default:lo},Symbol.toStringTag,{value:"Module"})),H="注册",V="登录",q="扫码登陆",J="请输入用户名",K="请输入密码",U="登 陆",W="用户名",X="密码",Y="开箱即用的中后台管理系统",mo={Register:H,Signing:V,QRCodeSigning:q,NamePlaceholder:J,PasswordPlaceholder:K,Login:U,Name:W,Password:X,RayTemplate:Y},po=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:mo},Symbol.toStringTag,{value:"Module"})),_o=Object.assign({"./zh-CN/globalMessage.json":eo,"./zh-CN/headerSettingOptions.json":no,"./zh-CN/headerTooltip.json":ro,"./zh-CN/menu.json":so,"./zh-CN/setting.json":ao,"./zh-CN/views/login/index.json":po}),le={message:{...Z(_o,"zh-CN")}};export{le as default}; diff --git a/js/zh-CN-EdAvjSXU.js.gz b/js/zh-CN-EdAvjSXU.js.gz new file mode 100644 index 00000000..a20611cb Binary files /dev/null and b/js/zh-CN-EdAvjSXU.js.gz differ diff --git a/js/zh-CN-dOsAGuBk.js.gz b/js/zh-CN-dOsAGuBk.js.gz deleted file mode 100644 index b379e77f..00000000 Binary files a/js/zh-CN-dOsAGuBk.js.gz and /dev/null differ diff --git a/mockServer/mock-data.js b/mockServer/mock-data.js index 0049df71..337ce6f5 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-1729654366596.js +// mock-data-1729654369505.js import { transformMockData } from "vite-plugin-mock-dev-server"; // mock/demo/person.mock.ts @@ -85,7 +85,7 @@ var getPersonList = defineMock({ } }); -// mock-data-1729654366596.js +// mock-data-1729654369505.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_1729654366596_default = transformMockData(mockList); +var mock_data_1729654369505_default = transformMockData(mockList); export { - mock_data_1729654366596_default as default + mock_data_1729654369505_default as default }; diff --git a/mockServer/mock-data.js.gz b/mockServer/mock-data.js.gz index a0f2d22b..b91ab4de 100644 Binary files a/mockServer/mock-data.js.gz and b/mockServer/mock-data.js.gz differ