ss-component-new 1.2.171 → 1.2.173

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 (90) hide show
  1. package/dist/{MTLLoader-iFutuLGP.js → MTLLoader-OotrpWdX.js} +1 -1
  2. package/dist/{MTLLoader-CZuM102a.cjs → MTLLoader-Vt_rKhYC.cjs} +1 -1
  3. package/dist/{OrbitControls-BkcanIiq.cjs → OrbitControls-D-UMpCvg.cjs} +1 -1
  4. package/dist/{OrbitControls-jXngfgi9.js → OrbitControls-Iqmamox2.js} +1 -1
  5. package/dist/{URDFLoader-Da-U-aAy.cjs → URDFLoader-CNk6_QAV.cjs} +1 -1
  6. package/dist/{URDFLoader-_rWQrCW1.js → URDFLoader-CWmGwpFd.js} +2 -2
  7. package/dist/{animationData-BlMg8YJ2.js → animationData-C9v4jYn2.js} +1 -1
  8. package/dist/{animationData-BcYW7WoT.cjs → animationData-m_pJ2dS2.cjs} +1 -1
  9. package/dist/{array-SAjNjWUW.cjs → array-By9HwPH6.cjs} +1 -1
  10. package/dist/{array-w9gkmTnE.js → array-DqTV580k.js} +1 -1
  11. package/dist/{iconfont-DPdAGL6h.js → iconfont--KQz7veo.js} +2 -2
  12. package/dist/{iconfont-BSfwK1Y_.cjs → iconfont-D-HoATE4.cjs} +1 -1
  13. package/dist/{index-DdUT3Ahq.cjs → index-B-Smiu2e.cjs} +1 -1
  14. package/dist/{index-uQ_k0o0k.cjs → index-B6sKoLfB.cjs} +1 -1
  15. package/dist/{index-DRxjfgei.js → index-B7ZB9dtE.js} +1 -1
  16. package/dist/{index-DV5aO3Kf.cjs → index-B89PJfdl.cjs} +1 -1
  17. package/dist/{index-DZdJb7eg.cjs → index-BCSSgmX1.cjs} +1 -1
  18. package/dist/{index-B5IhrBhW.js → index-BKMrFhEq.js} +4 -4
  19. package/dist/{index-BorGtTuS.js → index-BT3P1Y13.js} +4 -4
  20. package/dist/{index-D-o1Gq-L.cjs → index-BsCdP4GU.cjs} +1 -1
  21. package/dist/{index-CiXggSyj.cjs → index-C4Enok6S.cjs} +1 -1
  22. package/dist/index-CHKnIJNG.cjs +1 -0
  23. package/dist/{index-k7rXtZZz.cjs → index-CJHUTLQ5.cjs} +1 -1
  24. package/dist/{index-0wp283iw.cjs → index-CLplgQv8.cjs} +1 -1
  25. package/dist/{index-Bp--5Ka5.js → index-CUcGJnEr.js} +1 -1
  26. package/dist/{index-Dukt9LiG.cjs → index-CXCvTEj7.cjs} +1 -1
  27. package/dist/{index-CkdgMtwM.cjs → index-C_rH3qc5.cjs} +1 -1
  28. package/dist/{index-DV9QdbkV.js → index-CgQJescE.js} +1 -1
  29. package/dist/{index-BGBZpUqE.js → index-ClAkWK_E.js} +2 -2
  30. package/dist/{index-DwyAhIB3.cjs → index-CnCvIESa.cjs} +1 -1
  31. package/dist/{index-C9guPO6g.cjs → index-CqiU8_12.cjs} +1 -1
  32. package/dist/{index-_zZxSBTD.js → index-CvZgKzVy.js} +3 -3
  33. package/dist/index-CxlZkOKA.js +2990 -0
  34. package/dist/{index-B4UOrBw2.cjs → index-D-89-oR0.cjs} +1 -1
  35. package/dist/{index-CQ4AXUzs.cjs → index-D3LUBeUf.cjs} +1 -1
  36. package/dist/{index-DoJQMmN3.js → index-D6lBSqO-.js} +8 -8
  37. package/dist/{index-D09UAi28.cjs → index-DI7Rk8RL.cjs} +1 -1
  38. package/dist/{index-EYkapDy0.js → index-DMjNtjQq.js} +1 -1
  39. package/dist/{index-Dw85AkWo.js → index-DVLVOApb.js} +7 -7
  40. package/dist/{index-C1OHKyEc.cjs → index-DVevq2lu.cjs} +1 -1
  41. package/dist/{index-h45nOnZZ.js → index-D_rSpA3p.js} +4 -4
  42. package/dist/{index-By-0qgfp.js → index-Ddn4mqtD.js} +1 -1
  43. package/dist/{index-CRF434MF.js → index-DlDMKzXJ.js} +3 -3
  44. package/dist/{index-BZzVq8Ei.cjs → index-DpuVt6so.cjs} +1 -1
  45. package/dist/{index-CidlKKPL.js → index-DrDTueeU.js} +1 -1
  46. package/dist/{index-ChvKdyre.js → index-Ds-L3xiS.js} +1 -1
  47. package/dist/{index-DrzTG2HT.cjs → index-DxVi8Uvy.cjs} +1 -1
  48. package/dist/{index-BXIN9rS9.cjs → index-GAOsxoSR.cjs} +1 -1
  49. package/dist/{index-GY_6-UCt.js → index-KpQ93ONh.js} +1 -1
  50. package/dist/{index-Dcz3FiPM.js → index-NIuF3_tO.js} +1 -1
  51. package/dist/{index-BhP9dYJ4.js → index-P_QOGfdz.js} +1 -1
  52. package/dist/{index-BXDNwNgJ.js → index-SEZGITTr.js} +2 -2
  53. package/dist/{index-CwwRxMOU.js → index-Z92HM3SL.js} +16 -16
  54. package/dist/{index-B-pMaCrc.js → index-oWTBiLqV.js} +1 -1
  55. package/dist/{index-BSN84rrY.cjs → index-siSIcFEB.cjs} +1 -1
  56. package/dist/{index-CXSnBKqt.cjs → index-zSE0hf4y.cjs} +1 -1
  57. package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-DfRbKmA6.cjs → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-CVHYaJqQ.cjs} +6 -6
  58. package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-Dk930NXK.js → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-DEF2cuZL.js} +3885 -3879
  59. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-C6LBzSoE.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DN2fgLxG.js} +13153 -13143
  60. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-IgS0VWEH.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-qe-jMFSA.cjs} +343 -343
  61. package/dist/{index.vue_vue_type_style_index_0_scoped_140f5e74_lang-DZ15BQ8v.js → index.vue_vue_type_style_index_0_scoped_140f5e74_lang-Bx5sQrUe.js} +4 -4
  62. package/dist/{index.vue_vue_type_style_index_0_scoped_140f5e74_lang-WvE8m5TV.cjs → index.vue_vue_type_style_index_0_scoped_140f5e74_lang-DwQ5-V0A.cjs} +1 -1
  63. package/dist/{index.vue_vue_type_style_index_1_lang-CCu4iGOg.cjs → index.vue_vue_type_style_index_1_lang-8NkE-jOB.cjs} +1 -1
  64. package/dist/{index.vue_vue_type_style_index_1_lang-CJJ-gyCh.js → index.vue_vue_type_style_index_1_lang-yt2Sy17K.js} +3 -3
  65. package/dist/{main-BUK9aCWU.cjs → main-CEcKQxe8.cjs} +1 -1
  66. package/dist/{main-DMewc_7a.js → main-CyQ1tD7W.js} +3 -3
  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-4y7nctHR.js → threeModel-BlG_rxLs.js} +4 -4
  73. package/dist/{threeModel-DlFjA3FG.cjs → threeModel-DQrhpdA7.cjs} +1 -1
  74. package/dist/{threePreview-DiNcUGLN.cjs → threePreview-1teaj5MF.cjs} +1 -1
  75. package/dist/{threePreview-BupIEMRQ.js → threePreview-TMZzzeVI.js} +3 -3
  76. package/dist/{threeSceneView-tePAWdW9.js → threeSceneView-BF136c7W.js} +8 -8
  77. package/dist/{threeSceneView-C825Nu6k.cjs → threeSceneView-DJyLGrVm.cjs} +1 -1
  78. package/dist/{threeSceneViewForCPMPIP-BhNaEH2b.js → threeSceneViewForCPMPIP-B5z7r16G.js} +7 -7
  79. package/dist/{threeSceneViewForCPMPIP-sKpzXTQi.cjs → threeSceneViewForCPMPIP-Czo-6YFD.cjs} +1 -1
  80. package/dist/{threeTrackPathView-DFhWSSIb.js → threeTrackPathView-CQ7MgeWt.js} +3 -3
  81. package/dist/{threeTrackPathView-BZsp-nHy.cjs → threeTrackPathView-DS7UBrAD.cjs} +1 -1
  82. package/dist/{threeViewerHost-BwEscl4_.cjs → threeViewerHost-CGAb7vN7.cjs} +1 -1
  83. package/dist/{threeViewerHost-D4hEvJ91.js → threeViewerHost-CjlSFLjR.js} +2 -2
  84. package/dist/{urdfTree-Y1bNuQK4.cjs → urdfTree-CQQr7rFc.cjs} +1 -1
  85. package/dist/{urdfTree-D4W479hk.js → urdfTree-D6QHjXFf.js} +1 -1
  86. package/dist/{workpieceTreePanel-BmPgILps.js → workpieceTreePanel-CLsk9FTb.js} +4 -4
  87. package/dist/{workpieceTreePanel-BCTmQ6ui.cjs → workpieceTreePanel-DGQXQa-x.cjs} +1 -1
  88. package/package.json +1 -1
  89. package/dist/index-D8aMUq7Q.cjs +0 -1
  90. package/dist/index-DRGR-5e1.js +0 -2974
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),c=require("./index-BoXjy_oE.cjs"),r=require("./index-D8aMUq7Q.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-BoXjy_oE.cjs"),r=require("./index-CHKnIJNG.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,5 +1,5 @@
1
1
  import { defineComponent as z, reactive as R, onMounted as T, watch as A, nextTick as U, resolveComponent as i, createElementBlock as k, openBlock as u, createVNode as c, withCtx as l, createElementVNode as _, toDisplayString as g, Fragment as v, renderList as B, createBlock as b, createTextVNode as f, withDirectives as I, vShow as P } from "vue";
2
- import { s as E } from "./index-DRGR-5e1.js";
2
+ import { s as E } from "./index-CxlZkOKA.js";
3
3
  import { u as F, ah as x } from "./index-AIq5wzuR.js";
4
4
  import { s as O, c as H } from "./index-DIUrwul5.js";
5
5
  import { _ as L } from "./_plugin-vue_export-helper-CHgC5LLL.js";
@@ -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-DV9QdbkV.js";
2
+ import { s as b } from "./index-CgQJescE.js";
3
3
  import { c as s } from "./index-DIUrwul5.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-DRGR-5e1.js";
2
+ import { s as h } from "./index-CxlZkOKA.js";
3
3
  import { g as C, s as c } from "./index-DIUrwul5.js";
4
4
  import { ae as k, ad as _, a as S, u as A, af as T } from "./index-AIq5wzuR.js";
5
5
  const B = S(), { itemData: I } = c(B), u = l(0), P = l([
@@ -1,5 +1,5 @@
1
- import { _ as I } from "./index.vue_vue_type_style_index_0_scoped_140f5e74_lang-DZ15BQ8v.js";
2
- import { a as W, d as X, f as Y, s as Z } from "./index.vue_vue_type_style_index_0_scoped_140f5e74_lang-DZ15BQ8v.js";
1
+ import { _ as I } from "./index.vue_vue_type_style_index_0_scoped_140f5e74_lang-Bx5sQrUe.js";
2
+ import { a as W, d as X, f as Y, s as Z } from "./index.vue_vue_type_style_index_0_scoped_140f5e74_lang-Bx5sQrUe.js";
3
3
  import { resolveComponent as r, createElementBlock as l, openBlock as n, Fragment as g, createVNode as s, createCommentVNode as d, withCtx as i, normalizeStyle as E, toDisplayString as c, createElementVNode as p, renderList as _, createTextVNode as M, createBlock as S, resolveDynamicComponent as L } from "vue";
4
4
  import { _ as V } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const $ = ["title"], N = {
@@ -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-BorGtTuS.js";
3
- import "./index.vue_vue_type_style_index_0_scoped_140f5e74_lang-DZ15BQ8v.js";
2
+ import { m as yn, a as jn, b as Hn } from "./index-BT3P1Y13.js";
3
+ import "./index.vue_vue_type_style_index_0_scoped_140f5e74_lang-Bx5sQrUe.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-Dk930NXK.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-DEF2cuZL.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-DIUrwul5.js";
7
7
  import { a as vn, u as an } from "./index-AIq5wzuR.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-DoJQMmN3.js";
10
- import { a as Ht } from "./array-w9gkmTnE.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-C6LBzSoE.js";
12
- import "./index.vue_vue_type_style_index_1_lang-CJJ-gyCh.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-D6lBSqO-.js";
10
+ import { a as Ht } from "./array-DqTV580k.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-DN2fgLxG.js";
12
+ import "./index.vue_vue_type_style_index_1_lang-yt2Sy17K.js";
13
13
  import "./index-_lg-jrRI.js";
14
14
  import { useRouter as xt } from "vue-router";
15
- import pt from "./index-BXDNwNgJ.js";
16
- import { C as mt } from "./index-DRxjfgei.js";
17
- import Jt from "./threeModel-4y7nctHR.js";
18
- import { _ as St, a as Bn } from "./index-B5IhrBhW.js";
15
+ import pt from "./index-SEZGITTr.js";
16
+ import { C as mt } from "./index-B7ZB9dtE.js";
17
+ import Jt from "./threeModel-BlG_rxLs.js";
18
+ import { _ as St, a as Bn } from "./index-BKMrFhEq.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-CidlKKPL.js";
21
- import { T as zn, u as Lt, a as ht } from "./threeViewerHost-D4hEvJ91.js";
22
- import { s as Qn } from "./index-CRF434MF.js";
23
- import { u as at } from "./index-DRGR-5e1.js";
20
+ import { s as rn } from "./index-DrDTueeU.js";
21
+ import { T as zn, u as Lt, a as ht } from "./threeViewerHost-CjlSFLjR.js";
22
+ import { s as Qn } from "./index-DlDMKzXJ.js";
23
+ import { u as at } from "./index-CxlZkOKA.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-gvHJ-SKY.js";
27
- import { f as Wt, a as Ut } from "./animationData-BlMg8YJ2.js";
27
+ import { f as Wt, a as Ut } from "./animationData-C9v4jYn2.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,5 +1,5 @@
1
1
  import { defineComponent as o, reactive as c, onMounted as s, createElementBlock as r, openBlock as u, createVNode as i } from "vue";
2
- import { s as m } from "./index-DRGR-5e1.js";
2
+ import { s as m } from "./index-CxlZkOKA.js";
3
3
  import { u as d, ag as p, af as l } from "./index-AIq5wzuR.js";
4
4
  import { s as g, u as h } from "./index-DIUrwul5.js";
5
5
  const _ = { class: "routerPage-wrapper" }, w = /* @__PURE__ */ o({
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),B=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-IgS0VWEH.cjs"),a=require("./index-C8qRkCgn.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-qe-jMFSA.cjs"),a=require("./index-C8qRkCgn.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;