ss-component-new 1.3.667 → 1.3.669

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 (84) hide show
  1. package/dist/MTLLoader-C2ENwU4B.js +657 -0
  2. package/dist/URDFLoader-D8HIcp6W.js +2304 -0
  3. package/dist/animationData-CDGBdGSq.js +83 -0
  4. package/dist/array-GeFGcNng.js +1044 -0
  5. package/dist/clone-epSiajPW.js +8 -0
  6. package/dist/config.js +1 -1
  7. package/dist/eleIcon-BWVKfp5t.js +29 -0
  8. package/dist/iconfont-DMYmzqd8.js +1018 -0
  9. package/dist/icons/svg/Update.svg +1 -0
  10. package/dist/icons/svg/functionList.svg +1 -0
  11. package/dist/icons/svg/uploadCopy.svg +1 -0
  12. package/dist/index-3va3ENB8.js +201 -0
  13. package/dist/index-B4vESlof.js +78 -0
  14. package/dist/index-BFRbO6Ob.js +864 -0
  15. package/dist/index-BFqUz4pN.js +52 -0
  16. package/dist/index-BO_ie9cf.js +117 -0
  17. package/dist/index-BTcUmOL9.js +83 -0
  18. package/dist/index-Bd9AU0ks.js +93 -0
  19. package/dist/index-Bfe0Vmym.js +658 -0
  20. package/dist/index-BpGFvMaU.js +62 -0
  21. package/dist/index-Bto8e0_l.js +103 -0
  22. package/dist/index-Bvvz41NY.js +44 -0
  23. package/dist/index-CALpUVvi.js +2623 -0
  24. package/dist/index-CRusLwdZ.js +48 -0
  25. package/dist/index-CV_jQDcg.js +9 -0
  26. package/dist/index-CeVSdtF3.js +407 -0
  27. package/dist/{index-BobGeNMx.js → index-ChNfRlIP.js} +5 -5
  28. package/dist/index-CmRnsU1X.js +996 -0
  29. package/dist/index-CxGjXQS8.js +93 -0
  30. package/dist/index-DJrzqi4-.js +209 -0
  31. package/dist/index-DT2KzAmL.js +8988 -0
  32. package/dist/index-D_kI6aHR.js +98 -0
  33. package/dist/index-D_zqmWYW.js +627 -0
  34. package/dist/index-DgW-zPUZ.js +30 -0
  35. package/dist/index-DhllboDp.js +11773 -0
  36. package/dist/index-Di7_fN-l.js +61958 -0
  37. package/dist/index-DmuX4rYk.js +98 -0
  38. package/dist/index-DxEqN-_a.js +84 -0
  39. package/dist/index-FNOjQQWl.js +619 -0
  40. package/dist/index-GqaokPsw.js +342 -0
  41. package/dist/index-SjNcMhxZ.js +447 -0
  42. package/dist/index-XGieOXX9.js +55 -0
  43. package/dist/index-YVR3acYT.js +61 -0
  44. package/dist/index-b-1Cc3pU.js +28483 -0
  45. package/dist/index-bzdYGNwv.js +24879 -0
  46. package/dist/{index-BKK_dL6t.js → index-dD-mKgue.js} +3 -3
  47. package/dist/index-f22t3lGR.js +107 -0
  48. package/dist/index-hPoDGmt5.js +468 -0
  49. package/dist/index-uF-ibwG0.js +9 -0
  50. package/dist/{index.vue_vue_type_script_setup_true_lang-DRzriV-s.js → index.vue_vue_type_script_setup_true_lang-DwbHXtUp.js} +2 -2
  51. package/dist/index.vue_vue_type_style_index_0_scoped_83e6d490_lang-BGHEN9yR.js +137728 -0
  52. package/dist/isString-CoCw_sp3.js +8 -0
  53. package/dist/localIcon-CoJHw5ss.js +76 -0
  54. package/dist/main-B3uivmHw.js +502 -0
  55. package/dist/menuIndex-B7ZUahFp.js +159 -0
  56. package/dist/request-DiogHwkN.js +9465 -0
  57. package/dist/ss-component.css +8 -2
  58. package/dist/ss-component.js +64 -28
  59. package/dist/ss-component2.js +75 -15
  60. package/dist/ss-component3.js +1 -1
  61. package/dist/threeModel-BZpdWtB3.js +1108 -0
  62. package/dist/threePreview-QZ-g7bqk.js +2259 -0
  63. package/dist/threeSceneView-DeXv560D.js +1289 -0
  64. package/dist/threeSceneViewForCPMPIP-CdhC-Jg4.js +538 -0
  65. package/dist/threeTrackPathView-Cpwcmet3.js +620 -0
  66. package/dist/threeViewerHost-OeJJtWw4.js +233 -0
  67. package/dist/urdfTree-oAPOm0qi.js +254 -0
  68. package/dist/workpieceTreePanel-RgJlR6GJ.js +555 -0
  69. package/package.json +4 -4
  70. package/public/config.js +1 -1
  71. package/public/icons/svg/Update.svg +1 -0
  72. package/public/icons/svg/functionList.svg +1 -0
  73. package/public/icons/svg/uploadCopy.svg +1 -0
  74. package/dist/index-CCShKHTf.js +0 -50
  75. package/dist/index-CHLS51j8.js +0 -1044
  76. package/dist/index-Ccv8qbdo.js +0 -9091
  77. package/dist/index-D2V0zCQE.js +0 -195
  78. package/dist/index-DgjdKpj-.js +0 -182
  79. package/dist/menu-B8iV5Rhf.js +0 -5215
  80. package/dist/origin-B7bb-ZcE.js +0 -11428
  81. /package/dist/icons/svg/{table-close.svg → tableClose.svg} +0 -0
  82. /package/dist/icons/svg/{table-expand.svg → tableExpand.svg} +0 -0
  83. /package/public/icons/svg/{table-close.svg → tableClose.svg} +0 -0
  84. /package/public/icons/svg/{table-expand.svg → tableExpand.svg} +0 -0
@@ -0,0 +1,48 @@
1
+ import { ref as c, onMounted as p, watch as u, onUnmounted as f, openBlock as v, createElementBlock as m } from "vue";
2
+ import { a8 as _ } from "./index.vue_vue_type_style_index_0_scoped_83e6d490_lang-BGHEN9yR.js";
3
+ import { _ as h } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
+ const z = {
5
+ __name: "index",
6
+ props: {
7
+ optionContents: {
8
+ type: Object,
9
+ default: () => {
10
+ }
11
+ }
12
+ },
13
+ setup(l) {
14
+ const n = l;
15
+ let e = null, t = null;
16
+ const s = c({}), o = c(null), d = () => {
17
+ o.value && (t = new ResizeObserver(() => {
18
+ r();
19
+ }), t.observe(o.value));
20
+ };
21
+ p(() => {
22
+ s.value = n.optionContents, i(), window.addEventListener("resize", r), d();
23
+ }), u(
24
+ () => n.optionContents,
25
+ () => {
26
+ s.value = n.optionContents, i();
27
+ }
28
+ ), f(() => {
29
+ t && t.disconnect(), window.removeEventListener("resize", r);
30
+ });
31
+ const r = () => {
32
+ e.resize();
33
+ }, i = () => {
34
+ e && e.dispose(), e = _(o.value);
35
+ const a = s.value;
36
+ e.setOption(a), e.resize();
37
+ };
38
+ return (a, C) => (v(), m("div", {
39
+ id: "chartModelId",
40
+ class: "chart-model-class",
41
+ ref_key: "chartModelRef",
42
+ ref: o
43
+ }, null, 512));
44
+ }
45
+ }, x = /* @__PURE__ */ h(z, [["__scopeId", "data-v-69d6e63f"]]);
46
+ export {
47
+ x as s
48
+ };
@@ -0,0 +1,9 @@
1
+ import { _ as e } from "./_plugin-vue_export-helper-CHgC5LLL.js";
2
+ const r = {};
3
+ function c(n, t) {
4
+ return " 333 ";
5
+ }
6
+ const o = /* @__PURE__ */ e(r, [["render", c]]);
7
+ export {
8
+ o as default
9
+ };
@@ -0,0 +1,407 @@
1
+ import { defineComponent as x, ref as I, reactive as T, resolveComponent as v, openBlock as E, createElementBlock as U, createVNode as u, withCtx as d, createElementVNode as l, createTextVNode as h, toDisplayString as z, nextTick as N, Fragment as q, renderSlot as H, withDirectives as $, vShow as M } from "vue";
2
+ import { aj as V } from "./index.vue_vue_type_style_index_0_scoped_83e6d490_lang-BGHEN9yR.js";
3
+ import { aD as X, az as J, ao as G, a7 as D, ab as c, ac as R, ar as g } from "./request-DiogHwkN.js";
4
+ import { _ as L } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
+ const K = "ElUpload";
6
+ class Q extends Error {
7
+ constructor(r, o, n, p) {
8
+ super(r), this.name = "UploadAjaxError", this.status = o, this.method = n, this.url = p;
9
+ }
10
+ }
11
+ function B(t, r, o) {
12
+ let n;
13
+ return o.response ? n = `${o.response.error || o.response}` : o.responseText ? n = `${o.responseText}` : n = `fail to ${r.method} ${t} ${o.status}`, new Q(n, o.status, r.method, t);
14
+ }
15
+ function W(t) {
16
+ const r = t.responseText || t.response;
17
+ if (!r)
18
+ return r;
19
+ try {
20
+ return JSON.parse(r);
21
+ } catch {
22
+ return r;
23
+ }
24
+ }
25
+ const Y = (t) => {
26
+ typeof XMLHttpRequest > "u" && X(K, "XMLHttpRequest is undefined");
27
+ const r = new XMLHttpRequest(), o = t.action;
28
+ r.upload && r.upload.addEventListener("progress", (e) => {
29
+ const i = e;
30
+ i.percent = e.total > 0 ? e.loaded / e.total * 100 : 0, t.onProgress(i);
31
+ });
32
+ const n = new FormData();
33
+ if (t.data)
34
+ for (const [e, i] of Object.entries(t.data))
35
+ J(i) && i.length ? n.append(e, ...i) : n.append(e, i);
36
+ n.append(t.filename, t.file, t.file.name), r.addEventListener("error", () => {
37
+ t.onError(B(o, t, r));
38
+ }), r.addEventListener("load", () => {
39
+ if (r.status < 200 || r.status >= 300)
40
+ return t.onError(B(o, t, r));
41
+ t.onSuccess(W(r));
42
+ }), r.open(t.method, o, !0), t.withCredentials && "withCredentials" in r && (r.withCredentials = !0);
43
+ const p = t.headers || {};
44
+ if (p instanceof Headers)
45
+ p.forEach((e, i) => r.setRequestHeader(i, e));
46
+ else
47
+ for (const [e, i] of Object.entries(p))
48
+ G(i) || r.setRequestHeader(e, String(i));
49
+ return r.send(n), r;
50
+ }, Z = ["text", "picture", "picture-card"];
51
+ let ee = 1;
52
+ const te = () => Date.now() + ee++, re = D({
53
+ action: {
54
+ type: String,
55
+ default: "#"
56
+ },
57
+ headers: {
58
+ type: c(Object)
59
+ },
60
+ method: {
61
+ type: String,
62
+ default: "post"
63
+ },
64
+ data: {
65
+ type: c([Object, Function, Promise]),
66
+ default: () => R({})
67
+ },
68
+ multiple: Boolean,
69
+ name: {
70
+ type: String,
71
+ default: "file"
72
+ },
73
+ drag: Boolean,
74
+ withCredentials: Boolean,
75
+ showFileList: {
76
+ type: Boolean,
77
+ default: !0
78
+ },
79
+ accept: {
80
+ type: String,
81
+ default: ""
82
+ },
83
+ fileList: {
84
+ type: c(Array),
85
+ default: () => R([])
86
+ },
87
+ autoUpload: {
88
+ type: Boolean,
89
+ default: !0
90
+ },
91
+ listType: {
92
+ type: String,
93
+ values: Z,
94
+ default: "text"
95
+ },
96
+ httpRequest: {
97
+ type: c(Function),
98
+ default: Y
99
+ },
100
+ disabled: Boolean,
101
+ limit: Number
102
+ }), Ce = D({
103
+ ...re,
104
+ beforeUpload: {
105
+ type: c(Function),
106
+ default: g
107
+ },
108
+ beforeRemove: {
109
+ type: c(Function)
110
+ },
111
+ onRemove: {
112
+ type: c(Function),
113
+ default: g
114
+ },
115
+ onChange: {
116
+ type: c(Function),
117
+ default: g
118
+ },
119
+ onPreview: {
120
+ type: c(Function),
121
+ default: g
122
+ },
123
+ onSuccess: {
124
+ type: c(Function),
125
+ default: g
126
+ },
127
+ onProgress: {
128
+ type: c(Function),
129
+ default: g
130
+ },
131
+ onError: {
132
+ type: c(Function),
133
+ default: g
134
+ },
135
+ onExceed: {
136
+ type: c(Function),
137
+ default: g
138
+ },
139
+ crossorigin: {
140
+ type: c(String)
141
+ }
142
+ }), ae = { style: { "text-align": "left" } }, oe = { class: "cropper-warp" }, se = { class: "cropper-warp-left" }, ne = ["src"], le = { class: "cropper-warp-right" }, ie = { class: "cropper-warp-right-item" }, ce = { class: "cropper-warp-right-value" }, pe = ["src"], de = { class: "cropper-warp-right-item" }, ue = { class: "cropper-warp-right-value" }, fe = ["src"], ge = { class: "dialog-footer" }, me = /* @__PURE__ */ x({
143
+ __name: "index",
144
+ props: {
145
+ title: {
146
+ type: String,
147
+ default: ""
148
+ }
149
+ },
150
+ emits: ["submitImage", "deleteImage"],
151
+ setup(t, { expose: r, emit: o }) {
152
+ const n = o, p = I(), e = T({
153
+ isShowDialog: !1,
154
+ cropperImg: "",
155
+ cropperImgBase64: "",
156
+ cropper: null
157
+ }), i = async (s) => {
158
+ if (e.isShowDialog = !0, !s) return;
159
+ let a = window.URL || window.webkitURL;
160
+ e.cropperImg = a.createObjectURL(s), N(() => {
161
+ k();
162
+ });
163
+ }, y = () => {
164
+ var s;
165
+ (s = e.cropper) == null || s.destroy(), e.isShowDialog = !1;
166
+ }, w = () => {
167
+ y();
168
+ }, b = async () => {
169
+ const s = await S();
170
+ n("submitImage", { file: s }), y();
171
+ }, f = async () => {
172
+ n("deleteImage");
173
+ }, k = () => {
174
+ const s = document.querySelector(".cropper-warp-left-img");
175
+ s && s.setAttribute("crossOrigin", "anonymous"), e.cropper = new V(s, {
176
+ viewMode: 1,
177
+ dragMode: "none",
178
+ initialAspectRatio: 1,
179
+ aspectRatio: 1,
180
+ preview: ".before",
181
+ background: !0,
182
+ autoCropArea: 1,
183
+ // zoomOnWheel: false,
184
+ checkCrossOrigin: !1,
185
+ crop: () => {
186
+ e.cropperImgBase64 = e.cropper.getCroppedCanvas().toDataURL("image/jpeg");
187
+ }
188
+ });
189
+ }, S = async () => e != null && e.cropper ? new Promise((s) => {
190
+ var a, m;
191
+ (m = (a = e == null ? void 0 : e.cropper) == null ? void 0 : a.getCroppedCanvas()) == null || m.toBlob((C) => {
192
+ s(C);
193
+ });
194
+ }) : (await fetch(e.cropperImg)).blob(), F = async (s) => {
195
+ var m;
196
+ let a = window.URL || window.webkitURL;
197
+ e.cropperImg = a.createObjectURL(s.raw), (m = e.cropper) == null || m.replace(e.cropperImg);
198
+ }, P = (s) => {
199
+ p.value.clearFiles();
200
+ const a = s[0];
201
+ a.uid = te(), p.value.handleStart(a);
202
+ };
203
+ return r({
204
+ openDialog: i
205
+ }), (s, a) => {
206
+ const m = v("ele-Edit"), C = v("el-icon"), _ = v("el-button"), j = v("el-upload"), O = v("el-dialog");
207
+ return E(), U("div", null, [
208
+ u(O, {
209
+ modelValue: e.isShowDialog,
210
+ "onUpdate:modelValue": a[0] || (a[0] = (A) => e.isShowDialog = A),
211
+ width: "769px",
212
+ "before-close": w
213
+ }, {
214
+ header: d(() => [
215
+ l("div", ae, [
216
+ u(C, {
217
+ size: "16",
218
+ style: { "margin-right": "3px", display: "inline", "vertical-align": "middle" }
219
+ }, {
220
+ default: d(() => [
221
+ u(m)
222
+ ]),
223
+ _: 1
224
+ }),
225
+ l("span", null, z(t.title), 1)
226
+ ])
227
+ ]),
228
+ footer: d(() => [
229
+ l("span", ge, [
230
+ u(j, {
231
+ class: "avatar-uploader",
232
+ ref_key: "uploadSignRef",
233
+ ref: p,
234
+ accept: ".jpg,.png",
235
+ limit: 1,
236
+ "show-file-list": !1,
237
+ "auto-upload": !1,
238
+ "on-change": F,
239
+ "on-exceed": P
240
+ }, {
241
+ trigger: d(() => [
242
+ u(_, {
243
+ type: "info",
244
+ icon: "ele-Picture"
245
+ }, {
246
+ default: d(() => [...a[4] || (a[4] = [
247
+ h("选择图片", -1)
248
+ ])]),
249
+ _: 1
250
+ })
251
+ ]),
252
+ default: d(() => [
253
+ u(_, {
254
+ onClick: f,
255
+ type: "danger",
256
+ icon: "ele-Picture",
257
+ style: { "margin-left": "8px" }
258
+ }, {
259
+ default: d(() => [...a[5] || (a[5] = [
260
+ h("删除图片", -1)
261
+ ])]),
262
+ _: 1
263
+ })
264
+ ]),
265
+ _: 1
266
+ }, 512),
267
+ l("div", null, [
268
+ u(_, {
269
+ onClick: w,
270
+ id: "themeBorderButton"
271
+ }, {
272
+ default: d(() => [...a[6] || (a[6] = [
273
+ h("取 消", -1)
274
+ ])]),
275
+ _: 1
276
+ }),
277
+ u(_, {
278
+ onClick: b,
279
+ id: "themeButton"
280
+ }, {
281
+ default: d(() => [...a[7] || (a[7] = [
282
+ h("确 定", -1)
283
+ ])]),
284
+ _: 1
285
+ })
286
+ ])
287
+ ])
288
+ ]),
289
+ default: d(() => [
290
+ l("div", oe, [
291
+ l("div", se, [
292
+ l("img", {
293
+ src: e.cropperImg,
294
+ class: "cropper-warp-left-img"
295
+ }, null, 8, ne)
296
+ ]),
297
+ l("div", le, [
298
+ a[3] || (a[3] = l("div", { class: "cropper-warp-right-title" }, "预览", -1)),
299
+ l("div", ie, [
300
+ l("div", ce, [
301
+ l("img", {
302
+ src: e.cropperImgBase64,
303
+ class: "cropper-warp-right-value-img"
304
+ }, null, 8, pe)
305
+ ]),
306
+ a[1] || (a[1] = l("div", { class: "cropper-warp-right-label" }, "100 x 100", -1))
307
+ ]),
308
+ l("div", de, [
309
+ l("div", ue, [
310
+ l("img", {
311
+ src: e.cropperImgBase64,
312
+ class: "cropper-warp-right-value-img cropper-size"
313
+ }, null, 8, fe)
314
+ ]),
315
+ a[2] || (a[2] = l("div", { class: "cropper-warp-right-label" }, "50 x 50", -1))
316
+ ])
317
+ ])
318
+ ])
319
+ ]),
320
+ _: 1
321
+ }, 8, ["modelValue"])
322
+ ]);
323
+ };
324
+ }
325
+ }), ve = /* @__PURE__ */ L(me, [["__scopeId", "data-v-4a19ffcf"]]), ye = /* @__PURE__ */ x({
326
+ __name: "index",
327
+ props: {
328
+ avatarUrl: {
329
+ type: String,
330
+ default: ""
331
+ },
332
+ avatarBlob: {
333
+ type: Blob,
334
+ default: ""
335
+ },
336
+ size: {
337
+ type: [String, Number],
338
+ default: "large"
339
+ },
340
+ showCropper: {
341
+ type: Boolean,
342
+ default: !0
343
+ },
344
+ banClick: {
345
+ type: Boolean,
346
+ default: !1
347
+ },
348
+ clickStop: {
349
+ type: Boolean,
350
+ default: !0
351
+ }
352
+ },
353
+ emits: ["submitImage", "deleteImage", "clickAvatar"],
354
+ setup(t, { emit: r }) {
355
+ const o = t, n = I(), p = I(null), e = r, i = () => !0, y = async () => {
356
+ var f;
357
+ o != null && o.banClick || (e("clickAvatar", o.avatarUrl), (f = n.value) == null || f.openDialog(o.avatarBlob));
358
+ }, w = async (f) => {
359
+ e("submitImage", f);
360
+ }, b = async () => {
361
+ e("deleteImage");
362
+ };
363
+ return (f, k) => {
364
+ const S = v("el-avatar");
365
+ return E(), U(q, null, [
366
+ u(S, {
367
+ src: t.avatarUrl,
368
+ onClick: y,
369
+ fit: "cover",
370
+ size: t.size,
371
+ ref_key: "avatarRef",
372
+ ref: p,
373
+ style: { background: "var(--user-avatar-bg)" },
374
+ alt: "头像查找失败",
375
+ onError: i
376
+ }, {
377
+ default: d(() => [
378
+ H(f.$slots, "avatarDefault", {}, void 0, !0)
379
+ ]),
380
+ _: 3
381
+ }, 8, ["src", "size"]),
382
+ $(u(ve, {
383
+ ref_key: "cropperDialogRef",
384
+ ref: n,
385
+ title: "更改头像",
386
+ avatarUrl: t.avatarUrl,
387
+ onSubmitImage: w,
388
+ onDeleteImage: b
389
+ }, null, 8, ["avatarUrl"]), [
390
+ [M, t.showCropper && (o == null ? void 0 : o.clickStop)]
391
+ ])
392
+ ], 64);
393
+ };
394
+ }
395
+ }), we = /* @__PURE__ */ L(ye, [["__scopeId", "data-v-82946fb9"]]), Ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
396
+ __proto__: null,
397
+ default: we
398
+ }, Symbol.toStringTag, { value: "Module" }));
399
+ export {
400
+ we as A,
401
+ ve as C,
402
+ re as a,
403
+ Ce as b,
404
+ te as g,
405
+ Ie as i,
406
+ Z as u
407
+ };
@@ -587,10 +587,10 @@ export {
587
587
  e as a,
588
588
  u as b,
589
589
  o as c,
590
- t as d,
591
- n as e,
592
- l as f,
593
- m as g,
594
- a as h,
590
+ a as d,
591
+ t as e,
592
+ n as f,
593
+ l as g,
594
+ m as h,
595
595
  i as t
596
596
  };