ss-component-new 1.1.821 → 1.1.822
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.
- package/dist/{OrbitControls-D6pgin7s.js → OrbitControls-Cm4Xs_Bq.js} +1 -1
- package/dist/{OrbitControls-Ff5ikkUQ.cjs → OrbitControls-D-XDZGf-.cjs} +1 -1
- package/dist/{STLLoader-BNh7D2zV.cjs → STLLoader-BxpEhvEg.cjs} +161 -161
- package/dist/{STLLoader-LGKv5i3H.js → STLLoader-DofhZbOw.js} +522 -593
- package/dist/{array-D1hKYLwI.cjs → array-Bfmx0w6P.cjs} +2 -2
- package/dist/{array-C60T9pDZ.js → array-DbAuNWGt.js} +1 -1
- package/dist/{iconfont-v9CcCMwF.js → iconfont-DQodgJo8.js} +73 -75
- package/dist/iconfont-Di4uXnX1.cjs +1 -0
- package/dist/icons/svg/editTable.svg +1 -1
- package/dist/icons/svg/export.svg +1 -0
- package/dist/icons/svg/model.svg +1 -0
- package/dist/icons/svg/three.svg +1 -0
- package/dist/index-1i-XlS2m.js +101 -0
- package/dist/{index-BdsJiFeW.cjs → index-6jSC3unU.cjs} +1 -1
- package/dist/{index-2kzGjuzu.js → index-6zbHinQ6.js} +10 -9
- package/dist/index-B-oe2x1V.cjs +109 -0
- package/dist/index-B-qent3l.cjs +1 -0
- package/dist/{index-CukZ8eDZ.js → index-BBo52W9F.js} +4 -4
- package/dist/index-BOev8isw.cjs +21 -0
- package/dist/index-BQgnYD51.js +6492 -0
- package/dist/{index-owcnOlVq.js → index-BYW-ix_Q.js} +5 -5
- package/dist/{index-4_M1SpeV.js → index-Bi1gr72d.js} +14 -14
- package/dist/{index-DnVaHi8q.js → index-BmHmnXS9.js} +7 -7
- package/dist/index-BoS30LXH.cjs +1 -0
- package/dist/index-BuBMi9JA.cjs +1 -0
- package/dist/{index-Zi9xLtwj.js → index-BvE05H-i.js} +2 -2
- package/dist/index-BwpOMKef.cjs +1 -0
- package/dist/index-C18ZPRC7.cjs +1 -0
- package/dist/{index-HVJSfh2g.js → index-CJx2DcDb.js} +21 -19
- package/dist/{index-B3cUSGXB.js → index-CL59qQ_W.js} +9 -8
- package/dist/{index-DDsJpzfR.js → index-CLdN0W98.js} +47 -47
- package/dist/index-CPP7L10q.cjs +1 -0
- package/dist/index-CSWIBSmo.cjs +1 -0
- package/dist/{index-DEobyz7r.js → index-CTgZZ96L.js} +6 -5
- package/dist/{index-WXpPDsev.js → index-CZ1ui4mT.js} +1 -1
- package/dist/index-CfQvGqaX.cjs +1 -0
- package/dist/index-CgJYAzeA.cjs +1 -0
- package/dist/index-ChtmIuBu.js +29771 -0
- package/dist/index-CjFcaJcL.cjs +1 -0
- package/dist/index-CjTmkzBO.js +24 -0
- package/dist/{index-Dtw4WkUo.cjs → index-CngO0AUc.cjs} +1 -1
- package/dist/index-CqCPdyGu.js +1248 -0
- package/dist/index-Cr6pWv0l.cjs +1 -0
- package/dist/{index-Cw95lvvp.js → index-D8Msszln.js} +223 -223
- package/dist/index-DDvUG6fk.js +22 -0
- package/dist/{index-CdMrhxHS.js → index-DMlIMlyC.js} +10 -10
- package/dist/{index-3Cdyqd1B.cjs → index-DOBeGYzT.cjs} +1 -1
- package/dist/index-DP0k43fj.cjs +1 -0
- package/dist/index-DTxccgVM.cjs +1 -0
- package/dist/{index-JAJeIBYE.cjs → index-DVAGljX0.cjs} +1 -1
- package/dist/{index-B5Vi6RBj.cjs → index-DVCrYVKw.cjs} +1 -1
- package/dist/{index-Dxoxm0Cc.js → index-DZWNGFC0.js} +22 -22
- package/dist/{index-CY2iphpd.cjs → index-DbniLh9G.cjs} +1 -1
- package/dist/index-Dj_ofPeK.cjs +1 -0
- package/dist/{index-DtogzZej.js → index-DocnYz5P.js} +1 -1
- package/dist/index-DrL7vroa.js +319 -0
- package/dist/index-Dt2McMki.js +13668 -0
- package/dist/{index-Cphx1eY1.js → index-Gba1Qfcc.js} +7 -8
- package/dist/{index-DMb9Vu-7.js → index-IUkCD4R_.js} +1 -1
- package/dist/{index-DAyzDsjs.js → index-K6BRW_Bw.js} +1 -1
- package/dist/{index-DzM8zZqe.js → index-OH9t-y2p.js} +4 -4
- package/dist/index-PNDdZKYG.cjs +1 -0
- package/dist/{index-Dn04IPFM.js → index-QETLKFyV.js} +10 -10
- package/dist/{index-BWHtpT9o.cjs → index-RgTvyK54.cjs} +1 -1
- package/dist/{index-Cuj-fGNO.cjs → index-VAIU8vMN.cjs} +1 -1
- package/dist/{index-CF_0RdqV.cjs → index-dukFqRog.cjs} +1 -1
- package/dist/{index-C9Boo2Cw.cjs → index-dyoOdMKX.cjs} +1 -1
- package/dist/index-f9bwREQl.cjs +1 -0
- package/dist/index-rPc9VS0S.cjs +1 -0
- package/dist/index-tPamnhR2.js +236 -0
- package/dist/{index-H3kf9EQv.js → index-tX2Hs05F.js} +11 -10
- package/dist/{index-DEU-pXeW.js → index-uvns6W6E.js} +1838 -1812
- package/dist/index-weauvEnW.cjs +4 -0
- package/dist/{index-B8xEed7C.cjs → index-wlnPb2aB.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-iyZtrhDf.js → index.vue_vue_type_script_setup_true_lang-C4G6mB7R.js} +28 -28
- package/dist/{index.vue_vue_type_script_setup_true_lang-CaYQQb8M.cjs → index.vue_vue_type_script_setup_true_lang-CWi4UVPF.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-qefZ9E5G.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CtN9Ij0Y.js} +53 -23
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CTcahF4Z.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-mQIxU0SD.cjs} +90 -90
- package/dist/{index.vue_vue_type_style_index_0_scoped_6bfd62db_lang-Cxjh1E1z.js → index.vue_vue_type_style_index_0_scoped_1966237d_lang-D3xcEtDT.js} +6488 -6474
- package/dist/{index.vue_vue_type_style_index_0_scoped_6bfd62db_lang-0eNHRdYw.cjs → index.vue_vue_type_style_index_0_scoped_1966237d_lang-DwIFJsxs.cjs} +14 -14
- package/dist/{index.vue_vue_type_style_index_0_scoped_86d2b6b8_lang-kymzIBO8.js → index.vue_vue_type_style_index_0_scoped_86d2b6b8_lang-D5CTJUDi.js} +17 -17
- package/dist/{index.vue_vue_type_style_index_0_scoped_86d2b6b8_lang-GlR2V0TC.cjs → index.vue_vue_type_style_index_0_scoped_86d2b6b8_lang-VPQBXOPW.cjs} +1 -1
- package/dist/index.vue_vue_type_style_index_1_lang-DraQDAAw.cjs +32 -0
- package/dist/index.vue_vue_type_style_index_1_lang-hffXwR3x.js +7028 -0
- package/dist/isUndefined-4Qg9wncf.js +84 -0
- package/dist/isUndefined-BEt4O79g.cjs +1 -0
- package/dist/{main-C6I42yaU.js → main-CBCk94h5.js} +30 -29
- package/dist/main-DO_PN7jt.cjs +1 -0
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +11 -11
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +12 -12
- package/dist/threeModel-GKSAzHfe.cjs +1 -0
- package/dist/{threeModel-BEt5OVCP.js → threeModel-RJwJMtfW.js} +91 -92
- package/dist/{threePreview-BUZRvBRx.js → threePreview-BSqdALPK.js} +3 -3
- package/dist/{threePreview-Dyzqu5s7.cjs → threePreview-CKvbwCiX.cjs} +1 -1
- package/dist/threeSceneView-BVbVe_Et.js +1277 -0
- package/dist/threeSceneView-KvCERteS.cjs +5 -0
- package/dist/{threeViewerHost-IhSFkCeD.js → threeViewerHost-AuhfL2Cn.js} +55 -57
- package/dist/threeViewerHost-D0pu5wk5.cjs +1 -0
- package/package.json +1 -1
- package/public/icons/svg/editTable.svg +1 -1
- package/public/icons/svg/export.svg +1 -0
- package/public/icons/svg/model.svg +1 -0
- package/public/icons/svg/three.svg +1 -0
- package/dist/animationData-B2T3Oamw.js +0 -108
- package/dist/animationData-Db_9HBoM.cjs +0 -1
- package/dist/iconfont-CZj6ltAs.cjs +0 -1
- package/dist/index-2KKrCkl8.cjs +0 -1
- package/dist/index-2OWkrGDh.js +0 -24
- package/dist/index-B1iXzkUF.cjs +0 -1
- package/dist/index-BBB4VObc.cjs +0 -11
- package/dist/index-BIVWMqJQ.cjs +0 -1
- package/dist/index-BWpZSzL1.cjs +0 -1
- package/dist/index-BllULnvx.cjs +0 -1
- package/dist/index-BvO1uTn0.js +0 -21
- package/dist/index-C2bI4adc.js +0 -8628
- package/dist/index-C9pN8_un.js +0 -548
- package/dist/index-CPdKWCSo.cjs +0 -1
- package/dist/index-CQfFbeTJ.cjs +0 -1
- package/dist/index-CZJOPfp5.js +0 -1152
- package/dist/index-Cb0q1Y5b.cjs +0 -1
- package/dist/index-Cfomm0G1.cjs +0 -109
- package/dist/index-CvvFU_QA.cjs +0 -1
- package/dist/index-DYMLmifU.cjs +0 -1
- package/dist/index-DfPyuGyq.js +0 -101
- package/dist/index-Dm2qfeUm.cjs +0 -1
- package/dist/index-DtX1F0sz.cjs +0 -4
- package/dist/index-Du3VUDcF.cjs +0 -1
- package/dist/index-VWNqRYy9.js +0 -36270
- package/dist/index-kmj8K3JX.cjs +0 -1
- package/dist/index-ndZw4AQJ.cjs +0 -1
- package/dist/index-y5FEcncv.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_1_lang-Bmwy3cgo.cjs +0 -42
- package/dist/index.vue_vue_type_style_index_1_lang-Rs1M3B8e.js +0 -11984
- package/dist/main-2gDZp_zL.cjs +0 -1
- package/dist/threeModel-DgOcIXVI.cjs +0 -1
- package/dist/threeSceneView-BZx98QgN.js +0 -1450
- package/dist/threeSceneView-DSkGJN5d.cjs +0 -5
- package/dist/threeViewerHost-T_51aUg5.cjs +0 -1
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { c1 as L, r as v, c2 as M } from "./index-Dt2McMki.js";
|
|
2
|
+
var N = /\s/;
|
|
3
|
+
function B(n) {
|
|
4
|
+
for (var i = n.length; i-- && N.test(n.charAt(i)); )
|
|
5
|
+
;
|
|
6
|
+
return i;
|
|
7
|
+
}
|
|
8
|
+
var R = /^\s+/;
|
|
9
|
+
function $(n) {
|
|
10
|
+
return n && n.slice(0, B(n) + 1).replace(R, "");
|
|
11
|
+
}
|
|
12
|
+
var k = NaN, F = /^[-+]0x[0-9a-f]+$/i, U = /^0b[01]+$/i, _ = /^0o[0-7]+$/i, j = parseInt;
|
|
13
|
+
function S(n) {
|
|
14
|
+
if (typeof n == "number")
|
|
15
|
+
return n;
|
|
16
|
+
if (L(n))
|
|
17
|
+
return k;
|
|
18
|
+
if (v(n)) {
|
|
19
|
+
var i = typeof n.valueOf == "function" ? n.valueOf() : n;
|
|
20
|
+
n = v(i) ? i + "" : i;
|
|
21
|
+
}
|
|
22
|
+
if (typeof n != "string")
|
|
23
|
+
return n === 0 ? n : +n;
|
|
24
|
+
n = $(n);
|
|
25
|
+
var t = U.test(n);
|
|
26
|
+
return t || _.test(n) ? j(n.slice(2), t ? 2 : 8) : F.test(n) ? k : +n;
|
|
27
|
+
}
|
|
28
|
+
var h = function() {
|
|
29
|
+
return M.Date.now();
|
|
30
|
+
}, D = "Expected a function", H = Math.max, P = Math.min;
|
|
31
|
+
function q(n, i, t) {
|
|
32
|
+
var u, c, l, s, r, f, d = 0, p = !1, o = !1, T = !0;
|
|
33
|
+
if (typeof n != "function")
|
|
34
|
+
throw new TypeError(D);
|
|
35
|
+
i = S(i) || 0, v(t) && (p = !!t.leading, o = "maxWait" in t, l = o ? H(S(t.maxWait) || 0, i) : l, T = "trailing" in t ? !!t.trailing : T);
|
|
36
|
+
function x(e) {
|
|
37
|
+
var a = u, m = c;
|
|
38
|
+
return u = c = void 0, d = e, s = n.apply(m, a), s;
|
|
39
|
+
}
|
|
40
|
+
function W(e) {
|
|
41
|
+
return d = e, r = setTimeout(g, i), p ? x(e) : s;
|
|
42
|
+
}
|
|
43
|
+
function O(e) {
|
|
44
|
+
var a = e - f, m = e - d, E = i - a;
|
|
45
|
+
return o ? P(E, l - m) : E;
|
|
46
|
+
}
|
|
47
|
+
function y(e) {
|
|
48
|
+
var a = e - f, m = e - d;
|
|
49
|
+
return f === void 0 || a >= i || a < 0 || o && m >= l;
|
|
50
|
+
}
|
|
51
|
+
function g() {
|
|
52
|
+
var e = h();
|
|
53
|
+
if (y(e))
|
|
54
|
+
return b(e);
|
|
55
|
+
r = setTimeout(g, O(e));
|
|
56
|
+
}
|
|
57
|
+
function b(e) {
|
|
58
|
+
return r = void 0, T && u ? x(e) : (u = c = void 0, s);
|
|
59
|
+
}
|
|
60
|
+
function A() {
|
|
61
|
+
r !== void 0 && clearTimeout(r), d = 0, u = f = c = r = void 0;
|
|
62
|
+
}
|
|
63
|
+
function C() {
|
|
64
|
+
return r === void 0 ? s : b(h());
|
|
65
|
+
}
|
|
66
|
+
function I() {
|
|
67
|
+
var e = h(), a = y(e);
|
|
68
|
+
if (u = arguments, c = this, f = e, a) {
|
|
69
|
+
if (r === void 0)
|
|
70
|
+
return W(f);
|
|
71
|
+
if (o)
|
|
72
|
+
return clearTimeout(r), r = setTimeout(g, i), x(f);
|
|
73
|
+
}
|
|
74
|
+
return r === void 0 && (r = setTimeout(g, i)), s;
|
|
75
|
+
}
|
|
76
|
+
return I.cancel = A, I.flush = C, I;
|
|
77
|
+
}
|
|
78
|
+
function z(n) {
|
|
79
|
+
return n === void 0;
|
|
80
|
+
}
|
|
81
|
+
export {
|
|
82
|
+
q as d,
|
|
83
|
+
z as i
|
|
84
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const l=require("./index-BOev8isw.cjs");var L=/\s/;function M(e){for(var i=e.length;i--&&L.test(e.charAt(i)););return i}var N=/^\s+/;function j(e){return e&&e.slice(0,M(e)+1).replace(N,"")}var O=NaN,B=/^[-+]0x[0-9a-f]+$/i,R=/^0b[01]+$/i,U=/^0o[0-7]+$/i,$=parseInt;function k(e){if(typeof e=="number")return e;if(l.isSymbol(e))return O;if(l.isObject(e)){var i=typeof e.valueOf=="function"?e.valueOf():e;e=l.isObject(i)?i+"":i}if(typeof e!="string")return e===0?e:+e;e=j(e);var t=R.test(e);return t||U.test(e)?$(e.slice(2),t?2:8):B.test(e)?O:+e}var h=function(){return l.root.Date.now()},F="Expected a function",_=Math.max,q=Math.min;function D(e,i,t){var u,d,g,c,r,a,s=0,v=!1,o=!1,x=!0;if(typeof e!="function")throw new TypeError(F);i=k(i)||0,l.isObject(t)&&(v=!!t.leading,o="maxWait"in t,g=o?_(k(t.maxWait)||0,i):g,x="trailing"in t?!!t.trailing:x);function I(n){var f=u,m=d;return u=d=void 0,s=n,c=e.apply(m,f),c}function S(n){return s=n,r=setTimeout(T,i),v?I(n):c}function W(n){var f=n-a,m=n-s,p=i-f;return o?q(p,g-m):p}function y(n){var f=n-a,m=n-s;return a===void 0||f>=i||f<0||o&&m>=g}function T(){var n=h();if(y(n))return E(n);r=setTimeout(T,W(n))}function E(n){return r=void 0,x&&u?I(n):(u=d=void 0,c)}function A(){r!==void 0&&clearTimeout(r),s=0,u=a=d=r=void 0}function C(){return r===void 0?c:E(h())}function b(){var n=h(),f=y(n);if(u=arguments,d=this,a=n,f){if(r===void 0)return S(a);if(o)return clearTimeout(r),r=setTimeout(T,i),I(a)}return r===void 0&&(r=setTimeout(T,i)),c}return b.cancel=A,b.flush=C,b}function H(e){return e===void 0}exports.debounce=D;exports.isUndefined=H;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { ref as _, watch as V, createElementBlock as C, createCommentVNode as I, openBlock as f, Fragment as le, renderList as se, createElementVNode as O, createBlock as Z, toDisplayString as v, resolveDynamicComponent as ue, onMounted as ce, createVNode as A } from "vue";
|
|
2
|
-
import { m as ie, a as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { m as ie, a as me, b as de } from "./index-Bi1gr72d.js";
|
|
3
|
+
import { p as E, s as ee, c as k } from "./index-Dt2McMki.js";
|
|
4
|
+
import { a as te, u as ye } from "./index.vue_vue_type_style_index_1_lang-hffXwR3x.js";
|
|
5
|
+
import { g as fe } from "./index-BQgnYD51.js";
|
|
6
|
+
import { e as ge, a as he } from "./array-DbAuNWGt.js";
|
|
6
7
|
import { _ as ne } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
8
|
const x = [
|
|
8
9
|
{
|
|
@@ -57,7 +58,7 @@ const x = [
|
|
|
57
58
|
},
|
|
58
59
|
emits: ["change"],
|
|
59
60
|
setup(F, { emit: B }) {
|
|
60
|
-
const e = F, $ = B, h =
|
|
61
|
+
const e = F, $ = B, h = te(E), { itemData: p } = ee(h), b = _([]), w = _([]), L = (l) => {
|
|
61
62
|
$("change", {
|
|
62
63
|
wholeValue: b.value,
|
|
63
64
|
editValue: l
|
|
@@ -139,15 +140,15 @@ const x = [
|
|
|
139
140
|
},
|
|
140
141
|
emits: ["change"],
|
|
141
142
|
setup(F, { emit: B }) {
|
|
142
|
-
const e = F, $ = B, h = _(""), p = _([]), b = _(0), w =
|
|
143
|
+
const e = F, $ = B, h = _(""), p = _([]), b = _(0), w = te(E);
|
|
143
144
|
ye(E);
|
|
144
|
-
const { itemData: L, originalData: D } =
|
|
145
|
+
const { itemData: L, originalData: D } = ee(w), N = _(null), l = _(0), g = _(""), S = () => {
|
|
145
146
|
b.value = window.innerWidth;
|
|
146
147
|
}, c = async (o) => {
|
|
147
148
|
var u;
|
|
148
149
|
const a = (u = k(o == null ? void 0 : o.wholeValue)) == null ? void 0 : u.map((n) => {
|
|
149
|
-
var
|
|
150
|
-
return (n == null ? void 0 : n.comp) === "Form" && (n.compData = (
|
|
150
|
+
var d;
|
|
151
|
+
return (n == null ? void 0 : n.comp) === "Form" && (n.compData = (d = n.compData) == null ? void 0 : d.map((y) => ((y == null ? void 0 : y.key) === "formContent" && (y.contents = he(y == null ? void 0 : y.contents)), y))), n;
|
|
151
152
|
});
|
|
152
153
|
$("change", {
|
|
153
154
|
originalContents: D.value,
|
|
@@ -160,8 +161,8 @@ const x = [
|
|
|
160
161
|
var u;
|
|
161
162
|
let a = [];
|
|
162
163
|
return (u = k(o)) == null || u.forEach((n) => {
|
|
163
|
-
var
|
|
164
|
-
x != null && x.find((t) => (t == null ? void 0 : t.value) === (n == null ? void 0 : n.comp)) && a.push(((
|
|
164
|
+
var d, y;
|
|
165
|
+
x != null && x.find((t) => (t == null ? void 0 : t.value) === (n == null ? void 0 : n.comp)) && a.push(((d = x == null ? void 0 : x.find((t) => (t == null ? void 0 : t.value) === (n == null ? void 0 : n.comp))) == null ? void 0 : d.key) + "=" + n.name + "/r/n"), (y = n == null ? void 0 : n.compData) == null || y.forEach((t) => {
|
|
165
166
|
var M, R, z, W, q, G, H, K, P, Q, U, X;
|
|
166
167
|
if (s != null && s.find((i) => (i == null ? void 0 : i.value) === (t == null ? void 0 : t.key)))
|
|
167
168
|
if (!((M = t == null ? void 0 : t.contents) != null && M.length))
|
|
@@ -170,21 +171,21 @@ const x = [
|
|
|
170
171
|
let i = (z = t == null ? void 0 : t.contents) == null ? void 0 : z[0];
|
|
171
172
|
if (!i) return;
|
|
172
173
|
if (Object.keys(i).includes("label") && Object.keys(i).includes("key") && Object.keys(i).includes("width"))
|
|
173
|
-
if (((q = (W = t.contents) == null ? void 0 : W.filter((
|
|
174
|
-
const
|
|
175
|
-
a.push(((H = s == null ? void 0 : s.find((r) => (r == null ? void 0 : r.value) === (t == null ? void 0 : t.key))) == null ? void 0 : H.key) + "=" + JSON.stringify(
|
|
174
|
+
if (((q = (W = t.contents) == null ? void 0 : W.filter((m) => m.width !== 1)) == null ? void 0 : q.length) === 0) {
|
|
175
|
+
const m = (G = k(t == null ? void 0 : t.contents)) == null ? void 0 : G.map((r) => ({ [r.label]: r.value }));
|
|
176
|
+
a.push(((H = s == null ? void 0 : s.find((r) => (r == null ? void 0 : r.value) === (t == null ? void 0 : t.key))) == null ? void 0 : H.key) + "=" + JSON.stringify(m) + "/r/n");
|
|
176
177
|
} else {
|
|
177
|
-
let
|
|
178
|
+
let m = [];
|
|
178
179
|
(K = k(t == null ? void 0 : t.contents)) == null || K.reduce((r, J) => {
|
|
179
180
|
var Y;
|
|
180
|
-
return r[J.label] = J.key, ((Y = Object.keys(k(r))) == null ? void 0 : Y.length) >= J.width && (
|
|
181
|
-
}, {}), a.push(((P = s == null ? void 0 : s.find((r) => (r == null ? void 0 : r.value) === (t == null ? void 0 : t.key))) == null ? void 0 : P.key) + "=" + JSON.stringify(
|
|
181
|
+
return r[J.label] = J.key, ((Y = Object.keys(k(r))) == null ? void 0 : Y.length) >= J.width && (m.push(k(r)), r = {}), r;
|
|
182
|
+
}, {}), a.push(((P = s == null ? void 0 : s.find((r) => (r == null ? void 0 : r.value) === (t == null ? void 0 : t.key))) == null ? void 0 : P.key) + "=" + JSON.stringify(m) + "/r/n");
|
|
182
183
|
}
|
|
183
184
|
else if (Object.keys(i).includes("label")) {
|
|
184
|
-
const
|
|
185
|
-
a.push(((U = s == null ? void 0 : s.find((r) => (r == null ? void 0 : r.value) === (t == null ? void 0 : t.key))) == null ? void 0 : U.key) + "=" + JSON.stringify(
|
|
185
|
+
const m = (Q = k(t == null ? void 0 : t.contents)) == null ? void 0 : Q.map((r) => r.label);
|
|
186
|
+
a.push(((U = s == null ? void 0 : s.find((r) => (r == null ? void 0 : r.value) === (t == null ? void 0 : t.key))) == null ? void 0 : U.key) + "=" + JSON.stringify(m) + "/r/n");
|
|
186
187
|
} else
|
|
187
|
-
a.push(((X = s == null ? void 0 : s.find((
|
|
188
|
+
a.push(((X = s == null ? void 0 : s.find((m) => (m == null ? void 0 : m.value) === (t == null ? void 0 : t.key))) == null ? void 0 : X.key) + "=" + JSON.stringify(t == null ? void 0 : t.contents) + "/r/n");
|
|
188
189
|
}
|
|
189
190
|
});
|
|
190
191
|
}), JSON.stringify(a);
|
|
@@ -197,8 +198,8 @@ const x = [
|
|
|
197
198
|
u.onload = (n) => {
|
|
198
199
|
try {
|
|
199
200
|
h.value = n.target.result, T.value = re(n.target.result), l.value++;
|
|
200
|
-
} catch (
|
|
201
|
-
console.error("解析失败:",
|
|
201
|
+
} catch (d) {
|
|
202
|
+
console.error("解析失败:", d);
|
|
202
203
|
}
|
|
203
204
|
}, u.onerror = (n) => {
|
|
204
205
|
console.error("文件读取错误:", n);
|
|
@@ -227,9 +228,9 @@ const x = [
|
|
|
227
228
|
return JSON.parse(a);
|
|
228
229
|
} catch (u) {
|
|
229
230
|
try {
|
|
230
|
-
const
|
|
231
|
-
if (Array.isArray(
|
|
232
|
-
return
|
|
231
|
+
const d = new Function(`return ${a}`)();
|
|
232
|
+
if (Array.isArray(d) || typeof d == "object")
|
|
233
|
+
return d;
|
|
233
234
|
throw new Error(`解析结果不是有效的数组或对象: ${u}`);
|
|
234
235
|
} catch (n) {
|
|
235
236
|
throw new Error(`无法解析JSON: ${n.message}`);
|
|
@@ -264,10 +265,10 @@ const x = [
|
|
|
264
265
|
class: "model-show",
|
|
265
266
|
key: b.value
|
|
266
267
|
}, [
|
|
267
|
-
A(
|
|
268
|
+
A(me)
|
|
268
269
|
])),
|
|
269
270
|
O("div", Ie, [
|
|
270
|
-
A(
|
|
271
|
+
A(de)
|
|
271
272
|
])
|
|
272
273
|
])) : I("", !0),
|
|
273
274
|
(e == null ? void 0 : e.mode) === "view" ? (f(), C("div", Ne, [
|
|
@@ -281,7 +282,7 @@ const x = [
|
|
|
281
282
|
]);
|
|
282
283
|
};
|
|
283
284
|
}
|
|
284
|
-
},
|
|
285
|
+
}, Ee = /* @__PURE__ */ ne(Te, [["__scopeId", "data-v-1dbc7677"]]);
|
|
285
286
|
export {
|
|
286
|
-
|
|
287
|
+
Ee as default
|
|
287
288
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),O=require("./index-C18ZPRC7.cjs"),i=require("./index-BOev8isw.cjs"),T=require("./index.vue_vue_type_style_index_1_lang-DraQDAAw.cjs"),Z=require("./index-CSWIBSmo.cjs"),K=require("./array-Bfmx0w6P.cjs"),Q=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),V=[{key:"FormName",value:"Form"},{key:"TableName",value:"Table"}],s=[{key:"FormDirect",value:"formFlex"},{key:"Form",value:"formContent"},{key:"FormButton",value:"formButton"},{key:"TableColumns",value:"header"},{key:"TableButton",value:"extraButton"},{key:"LineButton",value:"rowButton"},{key:"Table",value:"tableContents"},{key:"TableIndex",value:"tableIndex"}],v={key:0,class:"show-content"},ee={class:"item-view-group"},te={__name:"index",props:{content:String,jsonContents:Array},emits:["change"],setup(x,{emit:j}){const t=x,E=j,h=T.useModelComp(i.pinia),{itemData:_}=i.storeToRefs(h),p=e.ref([]),C=e.ref([]),I=c=>{E("change",{wholeValue:p.value,editValue:c})},S=c=>{const g=i.cloneDeep(p.value),b=g==null?void 0:g.map((d,B)=>(B===(c==null?void 0:c.index)&&(d.compData=c==null?void 0:c.contents),d));p.value=b};e.watch(()=>_.value,()=>{var c;!_.value||((c=_.value)==null?void 0:c.length)===0||(C.value=_.value,p.value=_.value)},{deep:!0,immediate:!0}),e.watch(()=>[t==null?void 0:t.content,t==null?void 0:t.jsonContents],()=>{var g;if(((g=t==null?void 0:t.jsonContents)==null?void 0:g.length)>0){h.setOriginalData(t==null?void 0:t.jsonContents),h.setItemData(t==null?void 0:t.jsonContents);return}if(!(t!=null&&t.content)||(t==null?void 0:t.content)==="")return;const c=K.expandStringToJson(t==null?void 0:t.content);h.setOriginalData(c),h.setItemData(c)},{deep:!0,immediate:!0});const N=c=>Z.getComponent(c);return(c,g)=>{var b;return((b=C.value)==null?void 0:b.length)>0?(e.openBlock(),e.createElementBlock("div",v,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,(d,B)=>(e.openBlock(),e.createElementBlock("div",{class:"item-content",key:B},[e.createElementVNode("div",ee,e.toDisplayString(d.name),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(N(d.comp)),{itemData:d==null?void 0:d.compData,childItemData:d==null?void 0:d.itemChildData,key:B,onChange:I,index:B,onContentChange:S},null,40,["itemData","childItemData","index"]))]))),128))])):e.createCommentVNode("",!0)}}},ne=Q._export_sfc(te,[["__scopeId","data-v-1c04adc8"]]),oe={class:"add-model-content"},ae={key:0,class:"model-import-data"},le={class:"import-button"},re={key:0},ce={key:1,class:"model-operate"},se={class:"model-select"},ue={class:"model-fill"},ie={key:2,class:"model-view ssComponent"},de={__name:"main",props:{mode:{type:String,default:"view"},content:{type:String,default:""},jsonContents:{type:Array,default:()=>[]},showButton:{type:Boolean,default:!0}},emits:["change"],setup(x,{emit:j}){const t=x,E=j,h=e.ref(""),_=e.ref([]),p=e.ref(0),C=T.useModelComp(i.pinia);T.useMenuState(i.pinia);const{itemData:I,originalData:S}=i.storeToRefs(C),N=e.ref(null),c=e.ref(0),g=e.ref(""),b=()=>{p.value=window.innerWidth},d=async l=>{var u;const a=(u=i.cloneDeep(l==null?void 0:l.wholeValue))==null?void 0:u.map(o=>{var f;return(o==null?void 0:o.comp)==="Form"&&(o.compData=(f=o.compData)==null?void 0:f.map(k=>((k==null?void 0:k.key)==="formContent"&&(k.contents=K.arrayToNumberArray(k==null?void 0:k.contents)),k))),o});E("change",{originalContents:S.value,currentContents:l==null?void 0:l.wholeValue,editContent:l==null?void 0:l.editValue,stringContent:B(i.cloneDeep(l==null?void 0:l.wholeValue)),arrayToContents:a})},B=l=>{var u;let a=[];return(u=i.cloneDeep(l))==null||u.forEach(o=>{var f,k;V!=null&&V.find(n=>(n==null?void 0:n.value)===(o==null?void 0:o.comp))&&a.push(((f=V==null?void 0:V.find(n=>(n==null?void 0:n.value)===(o==null?void 0:o.comp)))==null?void 0:f.key)+"="+o.name+"/r/n"),(k=o==null?void 0:o.compData)==null||k.forEach(n=>{var F,$,J,A,q,M,R,L,z,W,H,P;if(s!=null&&s.find(m=>(m==null?void 0:m.value)===(n==null?void 0:n.key)))if(!((F=n==null?void 0:n.contents)!=null&&F.length))a.push((($=s==null?void 0:s.find(m=>(m==null?void 0:m.value)===(n==null?void 0:n.key)))==null?void 0:$.key)+"="+(n.contents===!0?'""':"Vertical")+"/r/n");else{let m=(J=n==null?void 0:n.contents)==null?void 0:J[0];if(!m)return;if(Object.keys(m).includes("label")&&Object.keys(m).includes("key")&&Object.keys(m).includes("width"))if(((q=(A=n.contents)==null?void 0:A.filter(y=>y.width!==1))==null?void 0:q.length)===0){const y=(M=i.cloneDeep(n==null?void 0:n.contents))==null?void 0:M.map(r=>({[r.label]:r.value}));a.push(((R=s==null?void 0:s.find(r=>(r==null?void 0:r.value)===(n==null?void 0:n.key)))==null?void 0:R.key)+"="+JSON.stringify(y)+"/r/n")}else{let y=[];(L=i.cloneDeep(n==null?void 0:n.contents))==null||L.reduce((r,D)=>{var G;return r[D.label]=D.key,((G=Object.keys(i.cloneDeep(r)))==null?void 0:G.length)>=D.width&&(y.push(i.cloneDeep(r)),r={}),r},{}),a.push(((z=s==null?void 0:s.find(r=>(r==null?void 0:r.value)===(n==null?void 0:n.key)))==null?void 0:z.key)+"="+JSON.stringify(y)+"/r/n")}else if(Object.keys(m).includes("label")){const y=(W=i.cloneDeep(n==null?void 0:n.contents))==null?void 0:W.map(r=>r.label);a.push(((H=s==null?void 0:s.find(r=>(r==null?void 0:r.value)===(n==null?void 0:n.key)))==null?void 0:H.key)+"="+JSON.stringify(y)+"/r/n")}else a.push(((P=s==null?void 0:s.find(y=>(y==null?void 0:y.value)===(n==null?void 0:n.key)))==null?void 0:P.key)+"="+JSON.stringify(n==null?void 0:n.contents)+"/r/n")}})}),JSON.stringify(a)},w=e.ref([]),U=()=>{N.value.click()},X=l=>{const a=l.target.files[0];if(!a)return;const u=new FileReader;u.onload=o=>{try{h.value=o.target.result,w.value=Y(o.target.result),c.value++}catch(f){console.error("解析失败:",f)}},u.onerror=o=>{console.error("文件读取错误:",o)},u.readAsText(a)};e.onMounted(()=>{window.addEventListener("resize",b)}),e.watch(()=>[t==null?void 0:t.content,t==null?void 0:t.jsonContents],()=>{h.value=t==null?void 0:t.content,_.value=t==null?void 0:t.jsonContents},{deep:!0,immediate:!0}),e.watch(()=>c.value,()=>{var l;((l=w.value)==null?void 0:l.length)!==0&&(C.setOriginalData(w.value),C.setItemData(w.value))},{deep:!0,immediate:!0});const Y=l=>{let a=l.replace(/,/g,",").replace(/;/g,";").replace(/:/g,":");a=a.replace(/(\w+)\s*:/g,"$1:"),a=a.replace(/\r\n/g,"").replace(/\n/g,"").replace(/\t/g,"").replace(/\s+/g," ").trim(),a=a.replace(/,\s*([}\]])/g,"$1"),a=a.replace(/:(\s*)([^"{}\[\],\s]+)(\s*)([,}])/g,": $2$4");try{return JSON.parse(a)}catch(u){try{const f=new Function(`return ${a}`)();if(Array.isArray(f)||typeof f=="object")return f;throw new Error(`解析结果不是有效的数组或对象: ${u}`)}catch(o){throw new Error(`无法解析JSON: ${o.message}`)}}};return(l,a)=>{var u;return e.openBlock(),e.createElementBlock("div",oe,[((u=t==null?void 0:t.jsonContents)==null?void 0:u.length)===0?(e.openBlock(),e.createElementBlock("div",ae,[e.createElementVNode("div",le,[e.createElementVNode("input",{type:"file",ref_key:"fileInput",ref:N,accept:".txt",onChange:X,style:{display:"none"}},null,544),e.createElementVNode("button",{onClick:U,class:"import-button-content"},"导入文件"),g.value?(e.openBlock(),e.createElementBlock("span",re,e.toDisplayString(g.value),1)):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),(t==null?void 0:t.mode)==="edit"?(e.openBlock(),e.createElementBlock("div",ce,[e.createElementVNode("div",se,[e.createVNode(O.modelSelect)]),(e.openBlock(),e.createElementBlock("div",{class:"model-show",key:p.value},[e.createVNode(O.modelShow)])),e.createElementVNode("div",ue,[e.createVNode(O.modelFill)])])):e.createCommentVNode("",!0),(t==null?void 0:t.mode)==="view"?(e.openBlock(),e.createElementBlock("div",ie,[(e.openBlock(),e.createBlock(ne,{content:h.value,onChange:d,jsonContents:_.value,key:p.value},null,8,["content","jsonContents"]))])):e.createCommentVNode("",!0)])}}},me=Q._export_sfc(de,[["__scopeId","data-v-1dbc7677"]]);exports.default=me;
|
package/dist/ss-component.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),v=require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),v=require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-mQIxU0SD.cjs");require("./index-BOev8isw.cjs");const C=require("./index.vue_vue_type_style_index_1_lang-DraQDAAw.cjs"),t=require("./ss-component2.cjs"),d=require("./index-9_UaEHGu.cjs"),s=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./main-DO_PN7jt.cjs")));s.install=e=>{e.component("ssComponent",s)};const r=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-weauvEnW.cjs")).then(e=>e.index$1));r.install=e=>{e.component("ssTab",r)};const i=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-DOBeGYzT.cjs")));i.install=e=>{e.component("ssMenu",i)};const c=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-BoS30LXH.cjs")));c.install=e=>{e.component("ssMenuComponent",c)};const l=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-Dj_ofPeK.cjs")));l.install=e=>{e.component("ssCanvas",l)};const m=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-DEEZPcpU.cjs")));m.install=e=>{e.component("ssFold",m)};const u=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-dukFqRog.cjs")));u.install=e=>{e.component("ssAvatar",u)};const a=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./threeModel-GKSAzHfe.cjs")));a.install=e=>{e.component("ssThree",a)};const p=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./threeViewerHost-D0pu5wk5.cjs")).then(e=>e.threeViewerHost$1));p.install=e=>{e.component("threeViewerHost",p)};const f=C.useMenuState(),P=[s,r,i,c,l,m,u,a,p],q=e=>{P.forEach(o=>{e.use(o)}),e.use(t),e.config.globalProperties.$router=t},y=e=>{switch(e){case"browser":return d.browserThemeConfig;case"client":return d.clientThemeConfig}},g=e=>{const o=document.documentElement;e==null||e.forEach(h=>{o.style.setProperty(h.name,h.value)})},A=e=>{f.setPlatform(e);const o=y(e);g(o)},T={getPlatform:f.getPlatform,setPlatform:f.setPlatform,initPlatform:A};exports.SvgIcon=v.SvgIcon;exports.router=t;exports.default=q;exports.platformApi=T;
|