ss-component-new 1.2.239 → 1.2.240

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/dist/{MTLLoader-Dty52Kos.cjs → MTLLoader-BK7sCOKw.cjs} +1 -1
  2. package/dist/{MTLLoader-ZOJJ-Zca.js → MTLLoader-UTEzRiYH.js} +1 -1
  3. package/dist/{OrbitControls-fz1Q5z4o.js → OrbitControls-C4wOEoH5.js} +1 -1
  4. package/dist/{OrbitControls-B0AMmpiE.cjs → OrbitControls-DmVBM-Ud.cjs} +1 -1
  5. package/dist/{URDFLoader-Ancz7QVZ.cjs → URDFLoader-77AvV0WM.cjs} +1 -1
  6. package/dist/{URDFLoader-C3_kHBTh.js → URDFLoader-BAxsZiFV.js} +2 -2
  7. package/dist/{animationData-JHXk_SMb.js → animationData-DsDrgxIs.js} +1 -1
  8. package/dist/{animationData-D7z6SN34.cjs → animationData-DxQeR3lW.cjs} +1 -1
  9. package/dist/{array-B8jfTWdr.js → array-_9dR-jfG.js} +1 -1
  10. package/dist/{array-mOhrKMKc.cjs → array-gHdd6OE5.cjs} +1 -1
  11. package/dist/{iconfont-DeLrM3NF.js → iconfont-CCjP-T1w.js} +2 -2
  12. package/dist/{iconfont-Qm8bQNiI.cjs → iconfont-D4hZ8lQB.cjs} +1 -1
  13. package/dist/{index-mPCjoZzL.cjs → index-3a_FFP1r.cjs} +1 -1
  14. package/dist/{index-6cQWf9lg.cjs → index-B-ill49l.cjs} +1 -1
  15. package/dist/{index-DXc6VP0-.js → index-B4NaFshT.js} +1 -1
  16. package/dist/{index-DXahvDht.cjs → index-BGkKKMYM.cjs} +1 -1
  17. package/dist/{index-D9uP-j_f.js → index-BHB8_puL.js} +1 -1
  18. package/dist/{index-VXn4QQ6h.cjs → index-BHWo4qfG.cjs} +1 -1
  19. package/dist/{index-BLrtNHJw.cjs → index-BKj0fzZy.cjs} +1 -1
  20. package/dist/{index-BYyAqV5J.cjs → index-BOUCjrkn.cjs} +1 -1
  21. package/dist/{index-DW06_6Us.js → index-Bj_A0R0A.js} +3 -3
  22. package/dist/{index-DjD-V1yP.js → index-Bp-OGSaz.js} +7 -7
  23. package/dist/{index-CSoBuWPq.js → index-BpVqG5KK.js} +3 -3
  24. package/dist/{index-CaQkGd4w.cjs → index-ByAwqXPJ.cjs} +1 -1
  25. package/dist/{index-Cun2oG5e.js → index-C0EnW_nv.js} +4 -4
  26. package/dist/{index-Bt7zboia.js → index-CCBlxpGn.js} +1 -1
  27. package/dist/{index-C-GYH2e-.cjs → index-CEJrI-Nt.cjs} +1 -1
  28. package/dist/{index-CLIohYt2.cjs → index-COT_roXg.cjs} +1 -1
  29. package/dist/index-CQ52Awk5.js +4276 -0
  30. package/dist/{index-XAZJKL25.cjs → index-C_2bhy1j.cjs} +1 -1
  31. package/dist/{index-305au7cl.cjs → index-CjQ-w88j.cjs} +1 -1
  32. package/dist/{index-TnYAZpgF.js → index-CkKef9Xg.js} +2 -2
  33. package/dist/{index-DIv-wtkN.js → index-CmOyLg9f.js} +8 -8
  34. package/dist/{index--9gCNgdE.js → index-CqjjUEYP.js} +1 -1
  35. package/dist/{index-Ds4CAs9m.js → index-Csu4kumc.js} +4 -4
  36. package/dist/index-Cth3DRog.cjs +13 -0
  37. package/dist/{index-RBfbRP89.js → index-D-WFV7eu.js} +1 -1
  38. package/dist/{index-CB9123Ca.cjs → index-D5-t4UZk.cjs} +1 -1
  39. package/dist/{index-B7dQMnVH.js → index-D9L82EwE.js} +2 -2
  40. package/dist/{index-C_fnYWIg.cjs → index-DC2dPfGE.cjs} +1 -1
  41. package/dist/{index-BAahUD8z.cjs → index-DCCxsNGw.cjs} +1 -1
  42. package/dist/{index-DSmWhHh1.js → index-DFSBb_Up.js} +1 -1
  43. package/dist/{index-Y-qD2EKj.js → index-DNZm-g41.js} +1 -1
  44. package/dist/{index-B_R-9InB.cjs → index-DhWSyYn_.cjs} +1 -1
  45. package/dist/{index-CRoEK_jP.cjs → index-DrKyipWO.cjs} +1 -1
  46. package/dist/{index-CF8aoT7d.js → index-GCsmhk7R.js} +1 -1
  47. package/dist/{index-FjrBXhOF.js → index-IV9zWUQN.js} +1 -1
  48. package/dist/{index-DOCcOmco.js → index-JVlLPF3o.js} +1 -1
  49. package/dist/{index-D7CfJNBg.cjs → index-LSc_D7Br.cjs} +1 -1
  50. package/dist/{index-BwoWLLrS.cjs → index-QrPmlKwo.cjs} +1 -1
  51. package/dist/{index-cVN315Aw.cjs → index-Rsl-9SHE.cjs} +1 -1
  52. package/dist/{index-CL_SJFfm.js → index-WUwZkGTy.js} +4 -4
  53. package/dist/{index-BGQxV1Z0.js → index-YClaEzon.js} +1 -1
  54. package/dist/{index-BO9Xirjz.js → index-cajHEMXA.js} +16 -16
  55. package/dist/{index-CqcIJB7l.cjs → index-dP_btubw.cjs} +1 -1
  56. package/dist/{index-CIkvZBU9.cjs → index-frLe3S9h.cjs} +1 -1
  57. package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-B--yNtf1.js → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-DQlBopIf.js} +6 -6
  58. package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-Ceu3XjdH.cjs → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-FomZb4vY.cjs} +1 -1
  59. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-D1EZRqgB.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-B_ZyoH-c.cjs} +40 -40
  60. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-oA5S09l2.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-D6Ct13p6.js} +1008 -1013
  61. package/dist/{index.vue_vue_type_style_index_0_scoped_3d3811e8_lang-BmGjawag.js → index.vue_vue_type_style_index_0_scoped_3d3811e8_lang-BzowNu9E.js} +4 -4
  62. package/dist/{index.vue_vue_type_style_index_0_scoped_3d3811e8_lang-DNL_YdS9.cjs → index.vue_vue_type_style_index_0_scoped_3d3811e8_lang-DZHKXyL_.cjs} +1 -1
  63. package/dist/{index.vue_vue_type_style_index_1_lang-CDkVExU4.cjs → index.vue_vue_type_style_index_1_lang-CcCJPXIe.cjs} +1 -1
  64. package/dist/{index.vue_vue_type_style_index_1_lang-CmRU0NlU.js → index.vue_vue_type_style_index_1_lang-DZE35KJA.js} +3 -3
  65. package/dist/{main-B7qUb3OO.js → main-BZ1jv6xE.js} +3 -3
  66. package/dist/{main-CzJfiOuQ.cjs → main-CWD_I3fY.cjs} +1 -1
  67. package/dist/ss-component.cjs +1 -1
  68. package/dist/ss-component.css +1 -1
  69. package/dist/ss-component.js +9 -9
  70. package/dist/ss-component2.cjs +1 -1
  71. package/dist/ss-component2.js +10 -10
  72. package/dist/{threeModel-B-WiRZsP.js → threeModel-CgO4hMA7.js} +4 -4
  73. package/dist/{threeModel-9244RH82.cjs → threeModel-DQL1qjlJ.cjs} +1 -1
  74. package/dist/{threePreview-CDVWPPqC.js → threePreview-NRT3zSEh.js} +3 -3
  75. package/dist/{threePreview-Cs-fXU15.cjs → threePreview-tIv-KGBG.cjs} +1 -1
  76. package/dist/{threeSceneView-D-QgnVtZ.cjs → threeSceneView-B1nFHsgF.cjs} +1 -1
  77. package/dist/{threeSceneView-BIVFCX44.js → threeSceneView-ftUAfAK7.js} +8 -8
  78. package/dist/{threeSceneViewForCPMPIP-CP4Z7-ku.cjs → threeSceneViewForCPMPIP-8ezFd1ZK.cjs} +1 -1
  79. package/dist/{threeSceneViewForCPMPIP-l_jYJCJ1.js → threeSceneViewForCPMPIP-CwJWPro2.js} +7 -7
  80. package/dist/{threeTrackPathView-DMTFKySx.cjs → threeTrackPathView-DmKEVnaj.cjs} +1 -1
  81. package/dist/{threeTrackPathView-CMTtFQwo.js → threeTrackPathView-SF7nRPxQ.js} +3 -3
  82. package/dist/{threeViewerHost-AibV8TLI.cjs → threeViewerHost-BQ2Nydiz.cjs} +1 -1
  83. package/dist/{threeViewerHost-CSfITlTw.js → threeViewerHost-EYzWF2vO.js} +2 -2
  84. package/dist/{urdfTree-Bg_hGuBV.js → urdfTree-2wTWJ6Bj.js} +1 -1
  85. package/dist/{urdfTree-C5RSefmZ.cjs → urdfTree-Dboa3l9g.cjs} +1 -1
  86. package/dist/{workpieceTreePanel-DxjKBScf.js → workpieceTreePanel-BGGioqup.js} +4 -4
  87. package/dist/{workpieceTreePanel-CGYnW5xz.cjs → workpieceTreePanel-DM1pjPI1.cjs} +1 -1
  88. package/package.json +1 -1
  89. package/dist/index-BnD8y-0W.cjs +0 -1
  90. package/dist/index-C-X7YmVi.js +0 -3722
  91. package/dist/obj/model.mtl +0 -42
  92. package/dist/obj/model.obj +0 -26110
  93. package/public/obj/model.mtl +0 -42
  94. package/public/obj/model.obj +0 -26110
@@ -1,5 +1,5 @@
1
1
  import { ref as x, onMounted as _, createElementBlock as g, openBlock as y, createVNode as C } from "vue";
2
- import { s as b } from "./index-DOCcOmco.js";
2
+ import { s as b } from "./index-JVlLPF3o.js";
3
3
  import { c as s } from "./index-7MBVUN82.js";
4
4
  import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const A = (t, n, a) => {
@@ -1,5 +1,5 @@
1
1
  import { ref as l, watch as m, defineComponent as b, reactive as y, onMounted as g, createElementBlock as D, openBlock as f, createVNode as i } from "vue";
2
- import { s as h } from "./index-C-X7YmVi.js";
2
+ import { s as h } from "./index-CQ52Awk5.js";
3
3
  import { g as C, s as c } from "./index-7MBVUN82.js";
4
4
  import { ag as k, af as _, a as S, u as A, ah as T } from "./index-3oQGURYh.js";
5
5
  const B = S(), { itemData: I } = c(B), u = l(0), P = l([
@@ -1,5 +1,5 @@
1
1
  import { ref as c, onMounted as p, watch as u, onUnmounted as f, createElementBlock as v, openBlock as m } from "vue";
2
- import { ag as _ } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-oA5S09l2.js";
2
+ import { ag as _ } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-D6Ct13p6.js";
3
3
  import { _ as h } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  const z = {
5
5
  __name: "index",
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),_=require("./index-DXahvDht.cjs"),r=require("./index-DOItJqcJ.cjs"),f=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),m=(t,l,a)=>{var n,p,u,g;let e=l;e.title.text=(a==null?void 0:a.chartName)??"",e.xAxis.data=(n=r.cloneDeep(t))==null?void 0:n.map(i=>i.x),e.legend.data=(u=(p=r.cloneDeep(t))==null?void 0:p[0])!=null&&u.y?Object.keys(r.cloneDeep(t)[0].y):[];let o=[];return((g=e.legend.data)==null?void 0:g.length)>0&&r.cloneDeep(e.legend.data).forEach(i=>{var x;const y=(x=r.cloneDeep(t))==null?void 0:x.map(c=>{var h;return(h=c==null?void 0:c.y)==null?void 0:h[i]});o.push({name:i,type:"line",data:y})}),e.series=o,e},d=[{key:"折线图",value:{title:{text:"",left:"center",top:25,textStyle:{color:"#333",fontSize:18,fontWeight:"bold"}},tooltip:{trigger:"axis"},legend:{data:[]},grid:{left:"6%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",axisLabel:{interval:0},data:[]},yAxis:{type:"value"},series:[]}}],C={class:"eCharts"},D={__name:"index",props:{eChartContents:Array},setup(t){const l=t,a=s.ref({});return s.onMounted(()=>{var o;const e=l==null?void 0:l.eChartContents;a.value=m(r.cloneDeep(e==null?void 0:e.compData),(o=d==null?void 0:d.find(n=>(n==null?void 0:n.key)===(e==null?void 0:e.name)))==null?void 0:o.value,e==null?void 0:e.extraContent)}),(e,o)=>(s.openBlock(),s.createElementBlock("div",C,[s.createVNode(_.ssChart,{optionContents:a.value},null,8,["optionContents"])]))}},b=f._export_sfc(D,[["__scopeId","data-v-0440fac3"]]);exports.default=b;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),_=require("./index-BGkKKMYM.cjs"),r=require("./index-DOItJqcJ.cjs"),f=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),m=(t,l,a)=>{var n,p,u,g;let e=l;e.title.text=(a==null?void 0:a.chartName)??"",e.xAxis.data=(n=r.cloneDeep(t))==null?void 0:n.map(i=>i.x),e.legend.data=(u=(p=r.cloneDeep(t))==null?void 0:p[0])!=null&&u.y?Object.keys(r.cloneDeep(t)[0].y):[];let o=[];return((g=e.legend.data)==null?void 0:g.length)>0&&r.cloneDeep(e.legend.data).forEach(i=>{var x;const y=(x=r.cloneDeep(t))==null?void 0:x.map(c=>{var h;return(h=c==null?void 0:c.y)==null?void 0:h[i]});o.push({name:i,type:"line",data:y})}),e.series=o,e},d=[{key:"折线图",value:{title:{text:"",left:"center",top:25,textStyle:{color:"#333",fontSize:18,fontWeight:"bold"}},tooltip:{trigger:"axis"},legend:{data:[]},grid:{left:"6%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",axisLabel:{interval:0},data:[]},yAxis:{type:"value"},series:[]}}],C={class:"eCharts"},D={__name:"index",props:{eChartContents:Array},setup(t){const l=t,a=s.ref({});return s.onMounted(()=>{var o;const e=l==null?void 0:l.eChartContents;a.value=m(r.cloneDeep(e==null?void 0:e.compData),(o=d==null?void 0:d.find(n=>(n==null?void 0:n.key)===(e==null?void 0:e.name)))==null?void 0:o.value,e==null?void 0:e.extraContent)}),(e,o)=>(s.openBlock(),s.createElementBlock("div",C,[s.createVNode(_.ssChart,{optionContents:a.value},null,8,["optionContents"])]))}},b=f._export_sfc(D,[["__scopeId","data-v-0440fac3"]]);exports.default=b;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("./index-KaxOq1_-.cjs"),_=require("./index-XAZJKL25.cjs");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-D1EZRqgB.cjs");const h=require("./index-VXn4QQ6h.cjs"),f=require("./index-DOItJqcJ.cjs"),y=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),V={class:"personal-wrapper"},x={class:"personal-box left"},N={class:"base-avatar"},S={class:"center-avatar"},D={class:"base-info"},E={class:"base-signature"},k={class:"personal-box right"},B=e.defineComponent({__name:"index",setup(T){const t=e.reactive({...l.State}),b=f.useLoginState(),{loginUserInfo:n}=f.storeToRefs(b);return e.onMounted(()=>{var s;t.getUserTableHeadersAsync(),t.refreshLoginUserInfoAsync((s=n==null?void 0:n.value)==null?void 0:s.id),l.tabKey.value++}),(s,o)=>{var c,d,u,g,p,m,v;const r=e.resolveComponent("svg-icon"),i=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",V,[e.createElementVNode("div",x,[e.createElementVNode("div",N,[e.createElementVNode("div",S,[e.withDirectives(e.createVNode(_.ssAvatar,{size:100,disabled:t.uploadDisabled,userInfo:e.unref(n),onSubmitImage:o[0]||(o[0]=a=>t.submitImageAsync("avatarUrl",a))},null,8,["disabled","userInfo"]),[[i,t.avatarLoading]])])]),e.createElementVNode("div",D,[e.createElementVNode("div",null,[e.createVNode(r,{name:"userAccount",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((c=e.unref(n))==null?void 0:c.account)||(((d=e.unref(n))==null?void 0:d.姓名)??"未知")),1)]),e.createElementVNode("div",null,[e.createVNode(r,{name:"role",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((u=e.unref(n))==null?void 0:u.layer)==="superAdmin"?"超级管理员":((g=e.unref(n))==null?void 0:g.角色名称)??"未知"),1)]),e.createElementVNode("div",null,[e.createVNode(r,{name:"dept",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((p=e.unref(n))==null?void 0:p.部门名称)??"未知"),1)]),e.createElementVNode("div",null,[e.createVNode(r,{name:"status",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((m=e.unref(n))==null?void 0:m.layer)==="superAdmin"?"启用":((v=e.unref(n))==null?void 0:v.状态)??"未知"),1)])]),e.createElementVNode("div",E,[e.withDirectives(e.createVNode(_.ssSignature,{userInfo:e.unref(n),itemData:t.itemData,onClickSignButton:t.clickSignButton,onBeforeDestroy:t.beforeSignDestroy,onClickSubmitSign:o[1]||(o[1]=a=>t.submitImageAsync("signature",a))},null,8,["userInfo","itemData","onClickSignButton","onBeforeDestroy"]),[[i,t.signatureLoading]])])]),e.withDirectives((e.openBlock(),e.createElementBlock("div",k,[(e.openBlock(),e.createBlock(h.ssTab,{key:e.unref(l.tabKey),tabsContents:t.tabsContents,onChangeTrigger:t.changeFormTrigger,onClickTrigger:t.clickTabButton},null,8,["tabsContents","onChangeTrigger","onClickTrigger"]))])),[[i,t.loading]])])}}}),C=y._export_sfc(B,[["__scopeId","data-v-3bdf3f4b"]]);exports.default=C;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("./index-KaxOq1_-.cjs"),_=require("./index-C_2bhy1j.cjs");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-B_ZyoH-c.cjs");const h=require("./index-BHWo4qfG.cjs"),f=require("./index-DOItJqcJ.cjs"),y=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),V={class:"personal-wrapper"},x={class:"personal-box left"},N={class:"base-avatar"},S={class:"center-avatar"},D={class:"base-info"},E={class:"base-signature"},k={class:"personal-box right"},B=e.defineComponent({__name:"index",setup(T){const t=e.reactive({...l.State}),b=f.useLoginState(),{loginUserInfo:n}=f.storeToRefs(b);return e.onMounted(()=>{var s;t.getUserTableHeadersAsync(),t.refreshLoginUserInfoAsync((s=n==null?void 0:n.value)==null?void 0:s.id),l.tabKey.value++}),(s,o)=>{var c,d,u,g,p,m,v;const r=e.resolveComponent("svg-icon"),i=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",V,[e.createElementVNode("div",x,[e.createElementVNode("div",N,[e.createElementVNode("div",S,[e.withDirectives(e.createVNode(_.ssAvatar,{size:100,disabled:t.uploadDisabled,userInfo:e.unref(n),onSubmitImage:o[0]||(o[0]=a=>t.submitImageAsync("avatarUrl",a))},null,8,["disabled","userInfo"]),[[i,t.avatarLoading]])])]),e.createElementVNode("div",D,[e.createElementVNode("div",null,[e.createVNode(r,{name:"userAccount",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((c=e.unref(n))==null?void 0:c.account)||(((d=e.unref(n))==null?void 0:d.姓名)??"未知")),1)]),e.createElementVNode("div",null,[e.createVNode(r,{name:"role",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((u=e.unref(n))==null?void 0:u.layer)==="superAdmin"?"超级管理员":((g=e.unref(n))==null?void 0:g.角色名称)??"未知"),1)]),e.createElementVNode("div",null,[e.createVNode(r,{name:"dept",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((p=e.unref(n))==null?void 0:p.部门名称)??"未知"),1)]),e.createElementVNode("div",null,[e.createVNode(r,{name:"status",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((m=e.unref(n))==null?void 0:m.layer)==="superAdmin"?"启用":((v=e.unref(n))==null?void 0:v.状态)??"未知"),1)])]),e.createElementVNode("div",E,[e.withDirectives(e.createVNode(_.ssSignature,{userInfo:e.unref(n),itemData:t.itemData,onClickSignButton:t.clickSignButton,onBeforeDestroy:t.beforeSignDestroy,onClickSubmitSign:o[1]||(o[1]=a=>t.submitImageAsync("signature",a))},null,8,["userInfo","itemData","onClickSignButton","onBeforeDestroy"]),[[i,t.signatureLoading]])])]),e.withDirectives((e.openBlock(),e.createElementBlock("div",k,[(e.openBlock(),e.createBlock(h.ssTab,{key:e.unref(l.tabKey),tabsContents:t.tabsContents,onChangeTrigger:t.changeFormTrigger,onClickTrigger:t.clickTabButton},null,8,["tabsContents","onChangeTrigger","onClickTrigger"]))])),[[i,t.loading]])])}}}),C=y._export_sfc(B,[["__scopeId","data-v-3bdf3f4b"]]);exports.default=C;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),c=require("./index-CLqCXsqK.cjs"),r=require("./index-BnD8y-0W.cjs"),i=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),s={class:"log-wrap"},u=t.defineComponent({__name:"index",setup(_){const e=t.reactive({...c.State});t.onMounted(async()=>{e.tableData=await e.getLogTableDataAsync()});const l=n=>{var o;e.clickButton(n,(o=e.tableData)==null?void 0:o.map(a=>a.id),a=>{console.log("清空操作成功:",a),a&&(e.tableData=[])})};return(n,o)=>(t.openBlock(),t.createElementBlock("div",s,[t.createVNode(r.ssTable,{itemData:e.pageData,allowOperate:!1,allowSelect:!1,onOnButtonClick:l},null,8,["itemData"])]))}}),d=i._export_sfc(u,[["__scopeId","data-v-b4bfde04"]]);exports.default=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),c=require("./index-CLqCXsqK.cjs"),r=require("./index-Cth3DRog.cjs"),i=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),s={class:"log-wrap"},u=t.defineComponent({__name:"index",setup(_){const e=t.reactive({...c.State});t.onMounted(async()=>{e.tableData=await e.getLogTableDataAsync()});const l=n=>{var o;e.clickButton(n,(o=e.tableData)==null?void 0:o.map(a=>a.id),a=>{console.log("清空操作成功:",a),a&&(e.tableData=[])})};return(n,o)=>(t.openBlock(),t.createElementBlock("div",s,[t.createVNode(r.ssTable,{itemData:e.pageData,allowOperate:!1,allowSelect:!1,onOnButtonClick:l},null,8,["itemData"])]))}}),d=i._export_sfc(u,[["__scopeId","data-v-b4bfde04"]]);exports.default=d;
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as C, reactive as k, ref as v, onMounted as D, nextTick as b, resolveComponent as i, resolveDirective as T, createElementBlock as g, openBlock as u, createVNode as t, withCtx as n, withDirectives as w, createElementVNode as p, createTextVNode as f } from "vue";
2
- import { S as x } from "./index-Bt7zboia.js";
3
- import { s as B } from "./index-C-X7YmVi.js";
4
- import { s as F } from "./index--9gCNgdE.js";
5
- import { d as y } from "./index-Cun2oG5e.js";
2
+ import { S as x } from "./index-CCBlxpGn.js";
3
+ import { s as B } from "./index-CQ52Awk5.js";
4
+ import { s as F } from "./index-CqjjUEYP.js";
5
+ import { d as y } from "./index-C0EnW_nv.js";
6
6
  import { u as S } from "./index-3oQGURYh.js";
7
7
  import { p as I, s as N } from "./index-7MBVUN82.js";
8
8
  import { _ as R } from "./_plugin-vue_export-helper-CHgC5LLL.js";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as x, ref as I, reactive as T, resolveComponent as v, createElementBlock as E, openBlock as U, createVNode as u, withCtx as d, createElementVNode as l, createTextVNode as h, toDisplayString as $, nextTick as N, Fragment as q, withDirectives as z, renderSlot as H, vShow as M } from "vue";
2
- import { a$ as V } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-oA5S09l2.js";
2
+ import { a$ as V } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-D6Ct13p6.js";
3
3
  import { J as X, a5 as J, $ as G, C as D, D as c, av as R, X as g } from "./index-7MBVUN82.js";
4
4
  import { _ as L } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const K = "ElUpload";
@@ -1,30 +1,30 @@
1
1
  import { resolveComponent as oA, createBlock as lA, openBlock as f, withCtx as C, createElementVNode as u, toDisplayString as CA, defineComponent as ln, ref as o, watch as xA, createElementBlock as Q, Fragment as hA, renderList as VA, createCommentVNode as W, normalizeStyle as Re, createVNode as a, unref as A, resolveDynamicComponent as Le, onMounted as On, computed as RA, provide as Fe, resolveDirective as $n, withDirectives as ne, vShow as je, createTextVNode as te, renderSlot as ke, normalizeClass as He, onUnmounted as ut, createSlots as st } from "vue";
2
- import { m as yn, a as jn, b as Hn } from "./index-Ds4CAs9m.js";
3
- import "./index.vue_vue_type_style_index_0_scoped_3d3811e8_lang-BmGjawag.js";
2
+ import { m as yn, a as jn, b as Hn } from "./index-Csu4kumc.js";
3
+ import "./index.vue_vue_type_style_index_0_scoped_3d3811e8_lang-BzowNu9E.js";
4
4
  import { _ as Ie } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
- import { _ as gt, a as rt, b as dt, e as Pt, s as Ct } from "./index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-B--yNtf1.js";
5
+ import { _ as gt, a as rt, b as dt, e as Pt, s as Ct } from "./index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-DQlBopIf.js";
6
6
  import { p as QA, s as BA, d as ot, c as fn, u as wn, b as Ee, g as ue, e as At, E as oe, f as Gn, h as Et } from "./index-7MBVUN82.js";
7
7
  import { a as vn, u as an } from "./index-3oQGURYh.js";
8
8
  import { S as bA } from "./index-BHtNKL1L.js";
9
- import { a as he, s as se, b as It, c as it, r as wA, o as Je, d as Se, e as et, f as En, h as nt, i as In, j as tt, k as Bt, t as zt, l as Ge, m as Pn, n as Cn, p as Ve, q as sn, u as qe, v as _e, w as $e, x as An, y as en, z as gn, D as Qt, A as Xt, B as Ot, C as Fn, E as Vn, F as FA, G as yt, H as jt, I as qn } from "./index-DIv-wtkN.js";
10
- import { a as Ht } from "./array-B8jfTWdr.js";
11
- import { u as dn, a as bn, d as nn, g as we, b as ft, c as tn, o as lt, e as wt, l as bt, f as kt, h as vt } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-oA5S09l2.js";
12
- import "./index.vue_vue_type_style_index_1_lang-CmRU0NlU.js";
9
+ import { a as he, s as se, b as It, c as it, r as wA, o as Je, d as Se, e as et, f as En, h as nt, i as In, j as tt, k as Bt, t as zt, l as Ge, m as Pn, n as Cn, p as Ve, q as sn, u as qe, v as _e, w as $e, x as An, y as en, z as gn, D as Qt, A as Xt, B as Ot, C as Fn, E as Vn, F as FA, G as yt, H as jt, I as qn } from "./index-CmOyLg9f.js";
10
+ import { a as Ht } from "./array-_9dR-jfG.js";
11
+ import { u as dn, a as bn, d as nn, g as we, b as ft, c as tn, o as lt, e as wt, l as bt, f as kt, h as vt } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-D6Ct13p6.js";
12
+ import "./index.vue_vue_type_style_index_1_lang-DZE35KJA.js";
13
13
  import "./index-DfFq9kkn.js";
14
14
  import { useRouter as xt } from "vue-router";
15
- import pt from "./index-TnYAZpgF.js";
16
- import { C as mt } from "./index-BGQxV1Z0.js";
17
- import Jt from "./threeModel-B-WiRZsP.js";
18
- import { s as St, _ as Bn } from "./index-Cun2oG5e.js";
15
+ import pt from "./index-CkKef9Xg.js";
16
+ import { C as mt } from "./index-YClaEzon.js";
17
+ import Jt from "./threeModel-CgO4hMA7.js";
18
+ import { s as St, _ as Bn } from "./index-C0EnW_nv.js";
19
19
  import { _ as be } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
20
- import { s as rn } from "./index--9gCNgdE.js";
21
- import { T as zn, u as Lt, a as ht } from "./threeViewerHost-CSfITlTw.js";
22
- import { s as Qn } from "./index-DW06_6Us.js";
23
- import { u as at } from "./index-C-X7YmVi.js";
20
+ import { s as rn } from "./index-CqjjUEYP.js";
21
+ import { T as zn, u as Lt, a as ht } from "./threeViewerHost-EYzWF2vO.js";
22
+ import { s as Qn } from "./index-Bj_A0R0A.js";
23
+ import { u as at } from "./index-CQ52Awk5.js";
24
24
  import { T as _n } from "./svgIcon-D-_fXUBL.js";
25
25
  import { t as Rt, c as Kt, b as Dt } from "./index-CAPx0_D4.js";
26
26
  import { v as Nt } from "./index-r48vNrKN.js";
27
- import { f as Wt, a as Ut } from "./animationData-JHXk_SMb.js";
27
+ import { f as Wt, a as Ut } from "./animationData-DsDrgxIs.js";
28
28
  const Mt = { class: "menu-title" };
29
29
  function Zt(M, yA, g, vA, AA, cA) {
30
30
  const z = oA("ssMenu");
@@ -1 +1 @@
1
- "use strict";const l=require("vue");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-D1EZRqgB.cjs");const r=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),f={class:"dialog-title"},g={__name:"index",props:{title:{type:String,default:""},dialogWidth:{type:[Number,String],default:600},visible:{type:Boolean,default:!1},fullScreen:{type:Boolean,default:!1},dialogHeight:{type:Number,default:600},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},modalClass:{type:String,default:""},alignCenter:{type:Boolean,default:!1},appendToBody:{type:Boolean,default:!0}},emits:["beforeDestroy"],setup(t,{emit:s}){const e=t,d=s,o=l.ref(!1),i=()=>{d("beforeDestroy")};return l.watch(()=>e==null?void 0:e.visible,()=>{o.value=e==null?void 0:e.visible},{deep:!0,immediate:!0}),(a,n)=>{const u=l.resolveComponent("el-dialog");return l.openBlock(),l.createBlock(u,{modelValue:o.value,"onUpdate:modelValue":n[0]||(n[0]=c=>o.value=c),width:e==null?void 0:e.dialogWidth,"before-close":i,draggable:"",style:l.normalizeStyle({height:e==null?void 0:e.dialogHeight}),fullscreen:e==null?void 0:e.fullScreen,"destroy-on-close":!0,"show-close":e==null?void 0:e.showClose,"close-on-click-modal":e==null?void 0:e.closeOnClickModal,"modal-class":t.modalClass,"close-on-press-escape":e==null?void 0:e.closeOnPressEscape,"align-center":e==null?void 0:e.alignCenter,"append-to-body":t.appendToBody},{default:l.withCtx(()=>[l.renderSlot(a.$slots,"default",{},void 0,!0)]),header:l.withCtx(()=>[l.createElementVNode("div",f,l.toDisplayString(e==null?void 0:e.title),1),l.renderSlot(a.$slots,"header",{},void 0,!0)]),footer:l.withCtx(()=>[l.renderSlot(a.$slots,"footer",{},void 0,!0)]),_:3},8,["modelValue","width","style","fullscreen","show-close","close-on-click-modal","modal-class","close-on-press-escape","align-center","append-to-body"])}}},y=r._export_sfc(g,[["__scopeId","data-v-5e87a97b"]]);exports.ssDialog=y;
1
+ "use strict";const l=require("vue");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-B_ZyoH-c.cjs");const r=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),f={class:"dialog-title"},g={__name:"index",props:{title:{type:String,default:""},dialogWidth:{type:[Number,String],default:600},visible:{type:Boolean,default:!1},fullScreen:{type:Boolean,default:!1},dialogHeight:{type:Number,default:600},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},modalClass:{type:String,default:""},alignCenter:{type:Boolean,default:!1},appendToBody:{type:Boolean,default:!0}},emits:["beforeDestroy"],setup(t,{emit:s}){const e=t,d=s,o=l.ref(!1),i=()=>{d("beforeDestroy")};return l.watch(()=>e==null?void 0:e.visible,()=>{o.value=e==null?void 0:e.visible},{deep:!0,immediate:!0}),(a,n)=>{const u=l.resolveComponent("el-dialog");return l.openBlock(),l.createBlock(u,{modelValue:o.value,"onUpdate:modelValue":n[0]||(n[0]=c=>o.value=c),width:e==null?void 0:e.dialogWidth,"before-close":i,draggable:"",style:l.normalizeStyle({height:e==null?void 0:e.dialogHeight}),fullscreen:e==null?void 0:e.fullScreen,"destroy-on-close":!0,"show-close":e==null?void 0:e.showClose,"close-on-click-modal":e==null?void 0:e.closeOnClickModal,"modal-class":t.modalClass,"close-on-press-escape":e==null?void 0:e.closeOnPressEscape,"align-center":e==null?void 0:e.alignCenter,"append-to-body":t.appendToBody},{default:l.withCtx(()=>[l.renderSlot(a.$slots,"default",{},void 0,!0)]),header:l.withCtx(()=>[l.createElementVNode("div",f,l.toDisplayString(e==null?void 0:e.title),1),l.renderSlot(a.$slots,"header",{},void 0,!0)]),footer:l.withCtx(()=>[l.renderSlot(a.$slots,"footer",{},void 0,!0)]),_:3},8,["modelValue","width","style","fullscreen","show-close","close-on-click-modal","modal-class","close-on-press-escape","align-center","append-to-body"])}}},y=r._export_sfc(g,[["__scopeId","data-v-5e87a97b"]]);exports.ssDialog=y;
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),B=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-D1EZRqgB.cjs"),a=require("./index-DOItJqcJ.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),T="ElUpload";class R extends Error{constructor(o,l,i,p){super(o),this.name="UploadAjaxError",this.status=l,this.method=i,this.url=p}}function h(r,o,l){let i;return l.response?i=`${l.response.error||l.response}`:l.responseText?i=`${l.responseText}`:i=`fail to ${o.method} ${r} ${l.status}`,new R(i,l.status,o.method,r)}function U(r){const o=r.responseText||r.response;if(!o)return o;try{return JSON.parse(o)}catch{return o}}const D=r=>{typeof XMLHttpRequest>"u"&&a.throwError(T,"XMLHttpRequest is undefined");const o=new XMLHttpRequest,l=r.action;o.upload&&o.upload.addEventListener("progress",t=>{const c=t;c.percent=t.total>0?t.loaded/t.total*100:0,r.onProgress(c)});const i=new FormData;if(r.data)for(const[t,c]of Object.entries(r.data))a.isArray$1(c)&&c.length?i.append(t,...c):i.append(t,c);i.append(r.filename,r.file,r.file.name),o.addEventListener("error",()=>{r.onError(h(l,r,o))}),o.addEventListener("load",()=>{if(o.status<200||o.status>=300)return r.onError(h(l,r,o));r.onSuccess(U(o))}),o.open(r.method,l,!0),r.withCredentials&&"withCredentials"in o&&(o.withCredentials=!0);const p=r.headers||{};if(p instanceof Headers)p.forEach((t,c)=>o.setRequestHeader(c,t));else for(const[t,c]of Object.entries(p))a.isNil(c)||o.setRequestHeader(t,String(c));return o.send(i),o},b=["text","picture","picture-card"];let L=1;const N=()=>Date.now()+L++,x=a.buildProps({action:{type:String,default:"#"},headers:{type:a.definePropType(Object)},method:{type:String,default:"post"},data:{type:a.definePropType([Object,Function,Promise]),default:()=>a.mutable({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:a.definePropType(Array),default:()=>a.mutable([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:b,default:"text"},httpRequest:{type:a.definePropType(Function),default:D},disabled:Boolean,limit:Number}),F=a.buildProps({...x,beforeUpload:{type:a.definePropType(Function),default:a.NOOP},beforeRemove:{type:a.definePropType(Function)},onRemove:{type:a.definePropType(Function),default:a.NOOP},onChange:{type:a.definePropType(Function),default:a.NOOP},onPreview:{type:a.definePropType(Function),default:a.NOOP},onSuccess:{type:a.definePropType(Function),default:a.NOOP},onProgress:{type:a.definePropType(Function),default:a.NOOP},onError:{type:a.definePropType(Function),default:a.NOOP},onExceed:{type:a.definePropType(Function),default:a.NOOP},crossorigin:{type:a.definePropType(String)}}),j={style:{"text-align":"left"}},A={class:"cropper-warp"},q={class:"cropper-warp-left"},$=["src"],H={class:"cropper-warp-right"},z={class:"cropper-warp-right-item"},M={class:"cropper-warp-right-value"},X=["src"],J={class:"cropper-warp-right-item"},G={class:"cropper-warp-right-value"},K=["src"],Q={class:"dialog-footer"},W=e.defineComponent({__name:"index",props:{title:{type:String,default:""}},emits:["submitImage","deleteImage"],setup(r,{expose:o,emit:l}){const i=l,p=e.ref(),t=e.reactive({isShowDialog:!1,cropperImg:"",cropperImgBase64:"",cropper:null}),c=async s=>{if(t.isShowDialog=!0,!s)return;let n=window.URL||window.webkitURL;t.cropperImg=n.createObjectURL(s),e.nextTick(()=>{w()})},f=()=>{var s;(s=t.cropper)==null||s.destroy(),t.isShowDialog=!1},m=()=>{f()},y=async()=>{const s=await v();i("submitImage",{file:s}),f()},d=async()=>{i("deleteImage")},w=()=>{const s=document.querySelector(".cropper-warp-left-img");s&&s.setAttribute("crossOrigin","anonymous"),t.cropper=new B.Cropper(s,{viewMode:1,dragMode:"none",initialAspectRatio:1,aspectRatio:1,preview:".before",background:!0,autoCropArea:1,checkCrossOrigin:!1,crop:()=>{t.cropperImgBase64=t.cropper.getCroppedCanvas().toDataURL("image/jpeg")}})},v=async()=>t!=null&&t.cropper?new Promise(s=>{var n,u;(u=(n=t==null?void 0:t.cropper)==null?void 0:n.getCroppedCanvas())==null||u.toBlob(_=>{s(_)})}):(await fetch(t.cropperImg)).blob(),V=async s=>{var u;let n=window.URL||window.webkitURL;t.cropperImg=n.createObjectURL(s.raw),(u=t.cropper)==null||u.replace(t.cropperImg)},S=s=>{p.value.clearFiles();const n=s[0];n.uid=N(),p.value.handleStart(n)};return o({openDialog:c}),(s,n)=>{const u=e.resolveComponent("ele-Edit"),_=e.resolveComponent("el-icon"),g=e.resolveComponent("el-button"),I=e.resolveComponent("el-upload"),k=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(k,{modelValue:t.isShowDialog,"onUpdate:modelValue":n[0]||(n[0]=O=>t.isShowDialog=O),width:"769px","before-close":m},{header:e.withCtx(()=>[e.createElementVNode("div",j,[e.createVNode(_,{size:"16",style:{"margin-right":"3px",display:"inline","vertical-align":"middle"}},{default:e.withCtx(()=>[e.createVNode(u)]),_:1}),e.createElementVNode("span",null,e.toDisplayString(r.title),1)])]),footer:e.withCtx(()=>[e.createElementVNode("span",Q,[e.createVNode(I,{class:"avatar-uploader",ref_key:"uploadSignRef",ref:p,accept:".jpg,.png",limit:1,"show-file-list":!1,"auto-upload":!1,"on-change":V,"on-exceed":S},{trigger:e.withCtx(()=>[e.createVNode(g,{type:"info",icon:"ele-Picture"},{default:e.withCtx(()=>n[4]||(n[4]=[e.createTextVNode("选择图片")])),_:1,__:[4]})]),default:e.withCtx(()=>[e.createVNode(g,{onClick:d,type:"danger",icon:"ele-Picture",style:{"margin-left":"8px"}},{default:e.withCtx(()=>n[5]||(n[5]=[e.createTextVNode("删除图片")])),_:1,__:[5]})]),_:1},512),e.createElementVNode("div",null,[e.createVNode(g,{onClick:m,id:"themeBorderButton"},{default:e.withCtx(()=>n[6]||(n[6]=[e.createTextVNode("取 消")])),_:1,__:[6]}),e.createVNode(g,{onClick:y,id:"themeButton"},{default:e.withCtx(()=>n[7]||(n[7]=[e.createTextVNode("确 定")])),_:1,__:[7]})])])]),default:e.withCtx(()=>[e.createElementVNode("div",A,[e.createElementVNode("div",q,[e.createElementVNode("img",{src:t.cropperImg,class:"cropper-warp-left-img"},null,8,$)]),e.createElementVNode("div",H,[n[3]||(n[3]=e.createElementVNode("div",{class:"cropper-warp-right-title"},"预览",-1)),e.createElementVNode("div",z,[e.createElementVNode("div",M,[e.createElementVNode("img",{src:t.cropperImgBase64,class:"cropper-warp-right-value-img"},null,8,X)]),n[1]||(n[1]=e.createElementVNode("div",{class:"cropper-warp-right-label"},"100 x 100",-1))]),e.createElementVNode("div",J,[e.createElementVNode("div",G,[e.createElementVNode("img",{src:t.cropperImgBase64,class:"cropper-warp-right-value-img cropper-size"},null,8,K)]),n[2]||(n[2]=e.createElementVNode("div",{class:"cropper-warp-right-label"},"50 x 50",-1))])])])]),_:1},8,["modelValue"])])}}}),E=C._export_sfc(W,[["__scopeId","data-v-4a19ffcf"]]),Y=e.defineComponent({__name:"index",props:{avatarUrl:{type:String,default:""},avatarBlob:{type:Blob,default:""},size:{type:[String,Number],default:"large"},showCropper:{type:Boolean,default:!0},banClick:{type:Boolean,default:!1},clickStop:{type:Boolean,default:!0}},emits:["submitImage","deleteImage","clickAvatar"],setup(r,{emit:o}){const l=r,i=e.ref(),p=e.ref(null),t=o,c=()=>!0,f=async()=>{var d;l!=null&&l.banClick||(t("clickAvatar",l.avatarUrl),(d=i.value)==null||d.openDialog(l.avatarBlob))},m=async d=>{t("submitImage",d)},y=async()=>{t("deleteImage")};return(d,w)=>{const v=e.resolveComponent("el-avatar");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(v,{src:r.avatarUrl,onClick:f,fit:"cover",size:r.size,ref_key:"avatarRef",ref:p,style:{background:"var(--user-avatar-bg)"},alt:"头像查找失败",onError:c},{default:e.withCtx(()=>[e.renderSlot(d.$slots,"avatarDefault",{},void 0,!0)]),_:3},8,["src","size"]),e.withDirectives(e.createVNode(E,{ref_key:"cropperDialogRef",ref:i,title:"更改头像",avatarUrl:r.avatarUrl,onSubmitImage:m,onDeleteImage:y},null,8,["avatarUrl"]),[[e.vShow,r.showCropper&&(l==null?void 0:l.clickStop)]])],64)}}}),P=C._export_sfc(Y,[["__scopeId","data-v-82946fb9"]]),Z=Object.freeze(Object.defineProperty({__proto__:null,default:P},Symbol.toStringTag,{value:"Module"}));exports.CropperDialog=E;exports.genFileId=N;exports.index=Z;exports.ssAvatar=P;exports.uploadBaseProps=x;exports.uploadListTypes=b;exports.uploadProps=F;
1
+ "use strict";const e=require("vue"),B=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-B_ZyoH-c.cjs"),a=require("./index-DOItJqcJ.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),T="ElUpload";class R extends Error{constructor(o,l,i,p){super(o),this.name="UploadAjaxError",this.status=l,this.method=i,this.url=p}}function h(r,o,l){let i;return l.response?i=`${l.response.error||l.response}`:l.responseText?i=`${l.responseText}`:i=`fail to ${o.method} ${r} ${l.status}`,new R(i,l.status,o.method,r)}function U(r){const o=r.responseText||r.response;if(!o)return o;try{return JSON.parse(o)}catch{return o}}const D=r=>{typeof XMLHttpRequest>"u"&&a.throwError(T,"XMLHttpRequest is undefined");const o=new XMLHttpRequest,l=r.action;o.upload&&o.upload.addEventListener("progress",t=>{const c=t;c.percent=t.total>0?t.loaded/t.total*100:0,r.onProgress(c)});const i=new FormData;if(r.data)for(const[t,c]of Object.entries(r.data))a.isArray$1(c)&&c.length?i.append(t,...c):i.append(t,c);i.append(r.filename,r.file,r.file.name),o.addEventListener("error",()=>{r.onError(h(l,r,o))}),o.addEventListener("load",()=>{if(o.status<200||o.status>=300)return r.onError(h(l,r,o));r.onSuccess(U(o))}),o.open(r.method,l,!0),r.withCredentials&&"withCredentials"in o&&(o.withCredentials=!0);const p=r.headers||{};if(p instanceof Headers)p.forEach((t,c)=>o.setRequestHeader(c,t));else for(const[t,c]of Object.entries(p))a.isNil(c)||o.setRequestHeader(t,String(c));return o.send(i),o},b=["text","picture","picture-card"];let L=1;const N=()=>Date.now()+L++,x=a.buildProps({action:{type:String,default:"#"},headers:{type:a.definePropType(Object)},method:{type:String,default:"post"},data:{type:a.definePropType([Object,Function,Promise]),default:()=>a.mutable({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:a.definePropType(Array),default:()=>a.mutable([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:b,default:"text"},httpRequest:{type:a.definePropType(Function),default:D},disabled:Boolean,limit:Number}),F=a.buildProps({...x,beforeUpload:{type:a.definePropType(Function),default:a.NOOP},beforeRemove:{type:a.definePropType(Function)},onRemove:{type:a.definePropType(Function),default:a.NOOP},onChange:{type:a.definePropType(Function),default:a.NOOP},onPreview:{type:a.definePropType(Function),default:a.NOOP},onSuccess:{type:a.definePropType(Function),default:a.NOOP},onProgress:{type:a.definePropType(Function),default:a.NOOP},onError:{type:a.definePropType(Function),default:a.NOOP},onExceed:{type:a.definePropType(Function),default:a.NOOP},crossorigin:{type:a.definePropType(String)}}),j={style:{"text-align":"left"}},A={class:"cropper-warp"},q={class:"cropper-warp-left"},$=["src"],H={class:"cropper-warp-right"},z={class:"cropper-warp-right-item"},M={class:"cropper-warp-right-value"},X=["src"],J={class:"cropper-warp-right-item"},G={class:"cropper-warp-right-value"},K=["src"],Q={class:"dialog-footer"},W=e.defineComponent({__name:"index",props:{title:{type:String,default:""}},emits:["submitImage","deleteImage"],setup(r,{expose:o,emit:l}){const i=l,p=e.ref(),t=e.reactive({isShowDialog:!1,cropperImg:"",cropperImgBase64:"",cropper:null}),c=async s=>{if(t.isShowDialog=!0,!s)return;let n=window.URL||window.webkitURL;t.cropperImg=n.createObjectURL(s),e.nextTick(()=>{w()})},f=()=>{var s;(s=t.cropper)==null||s.destroy(),t.isShowDialog=!1},m=()=>{f()},y=async()=>{const s=await v();i("submitImage",{file:s}),f()},d=async()=>{i("deleteImage")},w=()=>{const s=document.querySelector(".cropper-warp-left-img");s&&s.setAttribute("crossOrigin","anonymous"),t.cropper=new B.Cropper(s,{viewMode:1,dragMode:"none",initialAspectRatio:1,aspectRatio:1,preview:".before",background:!0,autoCropArea:1,checkCrossOrigin:!1,crop:()=>{t.cropperImgBase64=t.cropper.getCroppedCanvas().toDataURL("image/jpeg")}})},v=async()=>t!=null&&t.cropper?new Promise(s=>{var n,u;(u=(n=t==null?void 0:t.cropper)==null?void 0:n.getCroppedCanvas())==null||u.toBlob(_=>{s(_)})}):(await fetch(t.cropperImg)).blob(),V=async s=>{var u;let n=window.URL||window.webkitURL;t.cropperImg=n.createObjectURL(s.raw),(u=t.cropper)==null||u.replace(t.cropperImg)},S=s=>{p.value.clearFiles();const n=s[0];n.uid=N(),p.value.handleStart(n)};return o({openDialog:c}),(s,n)=>{const u=e.resolveComponent("ele-Edit"),_=e.resolveComponent("el-icon"),g=e.resolveComponent("el-button"),I=e.resolveComponent("el-upload"),k=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(k,{modelValue:t.isShowDialog,"onUpdate:modelValue":n[0]||(n[0]=O=>t.isShowDialog=O),width:"769px","before-close":m},{header:e.withCtx(()=>[e.createElementVNode("div",j,[e.createVNode(_,{size:"16",style:{"margin-right":"3px",display:"inline","vertical-align":"middle"}},{default:e.withCtx(()=>[e.createVNode(u)]),_:1}),e.createElementVNode("span",null,e.toDisplayString(r.title),1)])]),footer:e.withCtx(()=>[e.createElementVNode("span",Q,[e.createVNode(I,{class:"avatar-uploader",ref_key:"uploadSignRef",ref:p,accept:".jpg,.png",limit:1,"show-file-list":!1,"auto-upload":!1,"on-change":V,"on-exceed":S},{trigger:e.withCtx(()=>[e.createVNode(g,{type:"info",icon:"ele-Picture"},{default:e.withCtx(()=>n[4]||(n[4]=[e.createTextVNode("选择图片")])),_:1,__:[4]})]),default:e.withCtx(()=>[e.createVNode(g,{onClick:d,type:"danger",icon:"ele-Picture",style:{"margin-left":"8px"}},{default:e.withCtx(()=>n[5]||(n[5]=[e.createTextVNode("删除图片")])),_:1,__:[5]})]),_:1},512),e.createElementVNode("div",null,[e.createVNode(g,{onClick:m,id:"themeBorderButton"},{default:e.withCtx(()=>n[6]||(n[6]=[e.createTextVNode("取 消")])),_:1,__:[6]}),e.createVNode(g,{onClick:y,id:"themeButton"},{default:e.withCtx(()=>n[7]||(n[7]=[e.createTextVNode("确 定")])),_:1,__:[7]})])])]),default:e.withCtx(()=>[e.createElementVNode("div",A,[e.createElementVNode("div",q,[e.createElementVNode("img",{src:t.cropperImg,class:"cropper-warp-left-img"},null,8,$)]),e.createElementVNode("div",H,[n[3]||(n[3]=e.createElementVNode("div",{class:"cropper-warp-right-title"},"预览",-1)),e.createElementVNode("div",z,[e.createElementVNode("div",M,[e.createElementVNode("img",{src:t.cropperImgBase64,class:"cropper-warp-right-value-img"},null,8,X)]),n[1]||(n[1]=e.createElementVNode("div",{class:"cropper-warp-right-label"},"100 x 100",-1))]),e.createElementVNode("div",J,[e.createElementVNode("div",G,[e.createElementVNode("img",{src:t.cropperImgBase64,class:"cropper-warp-right-value-img cropper-size"},null,8,K)]),n[2]||(n[2]=e.createElementVNode("div",{class:"cropper-warp-right-label"},"50 x 50",-1))])])])]),_:1},8,["modelValue"])])}}}),E=C._export_sfc(W,[["__scopeId","data-v-4a19ffcf"]]),Y=e.defineComponent({__name:"index",props:{avatarUrl:{type:String,default:""},avatarBlob:{type:Blob,default:""},size:{type:[String,Number],default:"large"},showCropper:{type:Boolean,default:!0},banClick:{type:Boolean,default:!1},clickStop:{type:Boolean,default:!0}},emits:["submitImage","deleteImage","clickAvatar"],setup(r,{emit:o}){const l=r,i=e.ref(),p=e.ref(null),t=o,c=()=>!0,f=async()=>{var d;l!=null&&l.banClick||(t("clickAvatar",l.avatarUrl),(d=i.value)==null||d.openDialog(l.avatarBlob))},m=async d=>{t("submitImage",d)},y=async()=>{t("deleteImage")};return(d,w)=>{const v=e.resolveComponent("el-avatar");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(v,{src:r.avatarUrl,onClick:f,fit:"cover",size:r.size,ref_key:"avatarRef",ref:p,style:{background:"var(--user-avatar-bg)"},alt:"头像查找失败",onError:c},{default:e.withCtx(()=>[e.renderSlot(d.$slots,"avatarDefault",{},void 0,!0)]),_:3},8,["src","size"]),e.withDirectives(e.createVNode(E,{ref_key:"cropperDialogRef",ref:i,title:"更改头像",avatarUrl:r.avatarUrl,onSubmitImage:m,onDeleteImage:y},null,8,["avatarUrl"]),[[e.vShow,r.showCropper&&(l==null?void 0:l.clickStop)]])],64)}}}),P=C._export_sfc(Y,[["__scopeId","data-v-82946fb9"]]),Z=Object.freeze(Object.defineProperty({__proto__:null,default:P},Symbol.toStringTag,{value:"Module"}));exports.CropperDialog=E;exports.genFileId=N;exports.index=Z;exports.ssAvatar=P;exports.uploadBaseProps=x;exports.uploadListTypes=b;exports.uploadProps=F;
@@ -1,17 +1,17 @@
1
- import { K as fl, L as $k, _ as Fm, M as Km, N as Tk, O as Nk } from "./index-DIv-wtkN.js";
1
+ import { K as fl, L as $k, _ as Fm, M as Km, N as Tk, O as Nk } from "./index-CmOyLg9f.js";
2
2
  import { defineComponent as Q, shallowRef as ln, ref as A, computed as E, watch as we, onMounted as dt, watchEffect as nl, createElementBlock as H, openBlock as O, normalizeStyle as Ke, normalizeClass as I, unref as o, createElementVNode as X, renderSlot as ae, nextTick as je, useSlots as Dn, toRef as Rt, createBlock as me, Transition as ll, withCtx as te, withDirectives as ot, createCommentVNode as de, resolveDynamicComponent as wt, createTextVNode as $t, toDisplayString as Me, Fragment as qe, createVNode as Z, vShow as _t, inject as Be, onBeforeUnmount as Gt, withModifiers as Ue, provide as St, reactive as At, onActivated as ad, onUpdated as ma, cloneVNode as Mk, Text as Ok, Comment as zo, mergeProps as vt, getCurrentInstance as Tt, Teleport as Pk, onBeforeMount as od, readonly as zm, onDeactivated as Ik, useAttrs as Ga, withKeys as Kt, createSlots as pl, renderList as mt, normalizeProps as wl, guardReactiveProps as da, isVNode as Ln, onUnmounted as Co, toRaw as Ni, isRef as Sl, vModelCheckbox as Mi, toRefs as Vn, vModelRadio as Hm, h as Ye, resolveComponent as yt, onBeforeUpdate as _k, vModelText as lu, toHandlers as Rk, TransitionGroup as Wm, markRaw as nr, effectScope as Ak, resolveDirective as au, toHandlerKey as Dk, render as Oi, createApp as xk, defineProps as jm } from "vue";
3
3
  import { i as Lk, j as Bk, k as sd, l as Vk, C as ft, m as rd, n as zn, o as Vv, p as ja, q as Nr, s as Ym, t as Fk, v as al, I as On, U as Je, w as ou, x as vl, y as tl, z as qm, A as Bn, B as is, D as ol, F as Cn, G as Wl, H as za, J as Jl, K as Kk, L as id, M as Qr, N as Um, O as su, T as Js, P as So, Q as zk, R as Hk, S as Gm, V as Wk, W as Xm, X as Jm, Y as jk, Z as ru, _ as ei, $ as Fv, a0 as Ho, a1 as Zm, a2 as ho, a3 as Ba, a4 as Kv, a5 as Yk, a6 as qk, a7 as Uk, a8 as Gk, a9 as zv, aa as Xk, ab as Hv, ac as Qm, E as Jk, u as iu, ad as Zk, a as eg } from "./index-3oQGURYh.js";
4
4
  import { i as ud, j as tg, S as Qk, k as ng, l as lg, m as ag, t as cd, n as bn, o as og, q as sg, r as rg, v as ig, w as ew, x as tw, y as Pu, z as nw, A as xt, B as He, C as Te, D as oe, _ as Ne, F as Ce, G as lw, H as Wv, I as kn, J as tn, K as gn, L as nt, M as aw, N as Mt, O as uu, T as Pi, P as Ut, Q as Ve, R as ow, U as cn, V as Pt, W as Lt, X as jn, Y as Mr, Z as Ql, $ as Un, a0 as nc, a1 as Or, a2 as De, a3 as ga, a4 as Ct, a5 as xe, a6 as sw, a7 as lc, a8 as dd, a9 as et, aa as us, ab as Ht, ac as Xa, ad as ug, ae as rw, af as Nt, ag as nn, ah as kl, ai as Wo, aj as fa, d as Gn, ak as Rn, al as ul, am as Pr, an as iw, c as ve, ao as na, ap as Ir, aq as cu, ar as ur, as as Eo, at as oa, au as uw, av as hn, aw as _l, ax as cw, ay as cg, az as dw, aA as dg, aB as du, aC as Ol, aD as Ya, aE as qa, aF as fg, aG as pg, aH as fw, aI as jo, aJ as pw, aK as lr, aL as vw, aM as hw, aN as mw, aO as vg, aP as gw, aQ as yw, aR as bw, aS as hg, aT as kw, aU as fd, aV as ca, aW as Fl, aX as ww, aY as Cw, aZ as ac, a_ as oc, a$ as mg, b0 as jv, b1 as Sw, b2 as Ew, b3 as $w, b4 as gg, b5 as yg, b6 as zr, b7 as Tw, b8 as Yv, b9 as Nw, ba as Mw, bb as Ow, bc as Pw, bd as Iw, be as _w, bf as Rw, bg as Aw, bh as Dw, bi as bg, bj as xw, bk as Lw, bl as Bw, bm as kg, bn as Vw, bo as Fw, bp as Kw, bq as zw, br as Hw, bs as Ww, E as pd, g as Rl, f as jw, bt as Yo, bu as sc, bv as vd, h as hd, e as rc, bw as Yw, p as fu, s as qo, u as wg, bx as Cg } from "./index-7MBVUN82.js";
5
5
  import { useRouter as Sg } from "vue-router";
6
6
  import { a as Eg, d as $g, e as Tg, f as Ng, g as Mg, h as Og } from "./index-CAPx0_D4.js";
7
- import { E as qw, c as Uw, g as Ii } from "./index-Cun2oG5e.js";
8
- import { i as Pg, j as Gw, k as Xw, s as Ig, S as Jw, m as Zw, n as Qw, p as eC, q as tt, r as Ja, t as _n, v as _g, w as tC, x as _i, y as Qn, z as ti, b as ar, A as ni, B as nC, C as Iu, I as Ha, D as Ri, a as Rg, E as so, F as lC, G as mo, H as go, J as Uo, K as li, L as aC, M as oC, N as sC, O as rC, P as _u, Q as Ru, R as iC, T as uC } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-oA5S09l2.js";
7
+ import { E as qw, c as Uw, g as Ii } from "./index-C0EnW_nv.js";
8
+ import { i as Pg, j as Gw, k as Xw, s as Ig, S as Jw, m as Zw, n as Qw, p as eC, q as tt, r as Ja, t as _n, v as _g, w as tC, x as _i, y as Qn, z as ti, b as ar, A as ni, B as nC, C as Iu, I as Ha, D as Ri, a as Rg, E as so, F as lC, G as mo, H as go, J as Uo, K as li, L as aC, M as oC, N as sC, O as rC, P as _u, Q as Ru, R as iC, T as uC } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-D6Ct13p6.js";
9
9
  import { _ as cC } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
10
10
  import { _ as dC } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
- import { u as fC, a as pC, g as ic, b as vC } from "./index-BGQxV1Z0.js";
12
- import { t as hC } from "./index-Bt7zboia.js";
11
+ import { u as fC, a as pC, g as ic, b as vC } from "./index-YClaEzon.js";
12
+ import { t as hC } from "./index-CCBlxpGn.js";
13
13
  import { t as mC } from "./index-gruT7omp.js";
14
- import { q as Ag, r as gC, u as yC, v as bC, w as kC } from "./array-B8jfTWdr.js";
14
+ import { q as Ag, r as gC, u as yC, v as bC, w as kC } from "./array-_9dR-jfG.js";
15
15
  function wC() {
16
16
  }
17
17
  function Dg(e, t, n, l) {