ss-component-new 1.2.6 → 1.2.7
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-DA4VpOM_.js → OrbitControls-C0QRmW6_.js} +1 -1
- package/dist/{STLLoader-DmGTF0Nv.js → STLLoader-CiUjaQtA.js} +1 -1
- package/dist/{animationData-GqECkAbz.js → animationData-CMKGpOzN.js} +14 -14
- package/dist/animationData-CjOlng3t.cjs +1 -0
- package/dist/array-BI6c3lN7.cjs +11 -0
- package/dist/array-zuPH84bL.js +1142 -0
- package/dist/{iconfont-ljBfzBSE.js → iconfont-pt17sMx3.js} +2 -2
- package/dist/{index-C5CKSB0e.cjs → index-1aEh3d97.cjs} +1 -1
- package/dist/{index-BOJUyAaV.cjs → index-1z9RrjZc.cjs} +1 -1
- package/dist/{index-DJGsDpDp.js → index-Ah-8x9yf.js} +13 -13
- package/dist/{index-DPBmAgEA.cjs → index-B3bZrnX5.cjs} +1 -1
- package/dist/{index-HvKjB6_P.js → index-B5Qn4jv8.js} +5 -5
- package/dist/{index-67QO-qDa.cjs → index-B7PZ70Ke.cjs} +1 -1
- package/dist/{index-CRrAiL5l.js → index-BPOERPtt.js} +4 -4
- package/dist/{index-DcUUpSE1.cjs → index-BQ7is--r.cjs} +1 -1
- package/dist/{index-BpR7F1Fp.cjs → index-BQdJqnJf.cjs} +1 -1
- package/dist/{index-CBuqdsPh.js → index-BX3CpqTk.js} +4 -4
- package/dist/{index-DPWc4No_.js → index-B_HoaLPL.js} +2 -2
- package/dist/{index-B7hLDNQ6.cjs → index-BaOQV1JK.cjs} +1 -1
- package/dist/{index-BNvpuVyw.cjs → index-Bc20prdj.cjs} +1 -1
- package/dist/index-BhLnI2fF.cjs +1 -0
- package/dist/{index-Bs2K1FVH.js → index-BnNuMzEv.js} +2 -2
- package/dist/{index-CArSUfnV.js → index-BniAk5Lo.js} +1010 -1013
- package/dist/{index-_66uQhcl.js → index-BoHTgzWr.js} +2129 -2122
- package/dist/{index--rLSLEk3.js → index-Br5wm1ow.js} +24 -24
- package/dist/{index-mtuIEfrj.cjs → index-BxL4p0ej.cjs} +1 -1
- package/dist/{index-8yRiF_z8.cjs → index-BzOBvH4x.cjs} +1 -1
- package/dist/{index-D9oqICYV.cjs → index-C2WJz0OJ.cjs} +1 -1
- package/dist/{index-DVmoPvzr.cjs → index-C2aGGJxk.cjs} +1 -1
- package/dist/{index-DGepdvRW.js → index-CHksmnYA.js} +2 -2
- package/dist/{index-CMCrQ36H.js → index-CJW7oNUN.js} +5 -5
- package/dist/index-CJXXl1EN.cjs +1 -0
- package/dist/{index-CTkF2kl_.js → index-CKHNyMzP.js} +1 -1
- package/dist/{index-DZ8a7BZ1.cjs → index-CQAvn30B.cjs} +1 -1
- package/dist/{index-C8UOMPgt.js → index-CQzgMbjC.js} +2 -2
- package/dist/{index-LADv0t0E.js → index-CUUjf1P3.js} +12 -12
- package/dist/{index-CedgKpsz.cjs → index-CW99kzgY.cjs} +1 -1
- package/dist/{index-BHJ-tVLT.cjs → index-CXbvmuYZ.cjs} +1 -1
- package/dist/{index-BsfJJu0R.js → index-CXchqN8w.js} +6 -6
- package/dist/{index-BaRkv5oc.cjs → index-Cia5yg2S.cjs} +1 -1
- package/dist/{index-tttYIzsn.cjs → index-CjI5pDiU.cjs} +1 -1
- package/dist/{index-D-WcrLQv.js → index-CkCmJLPU.js} +4 -4
- package/dist/{index-C1FOuBuy.js → index-CvrTrN91.js} +1 -1
- package/dist/{index-DSchKIyh.cjs → index-CxnH4vfV.cjs} +1 -1
- package/dist/{index-D6mwkqWY.cjs → index-Czw_p2Ax.cjs} +13 -13
- package/dist/index-D46pfmEc.js +2567 -0
- package/dist/{index-g4qw0jRy.js → index-DDNAWKqD.js} +6 -6
- package/dist/{index-CA-FC_OL.cjs → index-DKHaw4wr.cjs} +1 -1
- package/dist/{index-CbA74tCL.js → index-DLN_fbq6.js} +4 -4
- package/dist/{index-DWs7-g1h.cjs → index-DauH8AzR.cjs} +1 -1
- package/dist/{index-DV_ZZQBO.js → index-DbzvXPKu.js} +176 -176
- package/dist/{index-9zEdW6xv.js → index-DsnxblRp.js} +6 -6
- package/dist/{index-_uyv24Pt.cjs → index-Duqrg0DV.cjs} +1 -1
- package/dist/{index-FK1YYpjN.cjs → index-Dv_9EftF.cjs} +1 -1
- package/dist/{index-B14iwpkN.cjs → index-Dx63Z3PG.cjs} +1 -1
- package/dist/index-DxukQK2k.cjs +1 -0
- package/dist/index-Dy3FE211.cjs +1 -0
- package/dist/{index-CRj9VM12.js → index-HZr3I0-O.js} +6 -6
- package/dist/{index-CbDu4gfZ.js → index-IknA4u4L.js} +5 -5
- package/dist/{index-DGi-ANHr.js → index-Kbl8xHWJ.js} +7 -7
- package/dist/{index-BMMYAqF1.js → index-MqvNXMd6.js} +1 -1
- package/dist/{index-Cm3z0Vmi.cjs → index-PBT5kNaR.cjs} +1 -1
- package/dist/{index-CShBWCYm.js → index-UDddsXT4.js} +1 -1
- package/dist/{index-Bw_JtuzR.js → index-UuJKyKlu.js} +3 -3
- package/dist/index-W6FccWpW.js +7210 -0
- package/dist/index-d3F4mRMM.js +3370 -0
- package/dist/{index-BNOx3XL5.js → index-fnqbVNnP.js} +1 -1
- package/dist/{index-CZaBF851.cjs → index-hseXzBbE.cjs} +1 -1
- package/dist/{index-87kRWJv8.cjs → index-k3lVcyGc.cjs} +1 -1
- package/dist/{index-DvpVQvAe.js → index-sBAb1SLC.js} +2 -2
- package/dist/{index-BYUPvuvs.cjs → index-tEinx-qZ.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DIMJusrg.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DULpc85o.js} +10383 -10362
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BSOYWm_U.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-hGi9c2Ju.cjs} +123 -123
- package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-D2VLEzGB.cjs → index.vue_vue_type_style_index_0_scoped_92477073_lang-CtqR5lQb.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-D58IzjOR.js → index.vue_vue_type_style_index_0_scoped_92477073_lang-DuybmJnl.js} +6 -6
- package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang--PcXwjiH.cjs +56 -0
- package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-C-NVC3BN.js +34117 -0
- package/dist/index.vue_vue_type_style_index_1_lang-Cb3WPLY1.cjs +32 -0
- package/dist/{index.vue_vue_type_style_index_1_lang-H_pReDxj.cjs → index.vue_vue_type_style_index_1_lang-Ck3aGjUr.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_1_lang-hBa3nAgx.js → index.vue_vue_type_style_index_1_lang-D909xoIu.js} +5 -5
- package/dist/index.vue_vue_type_style_index_1_lang-Dy1Zc_t-.js +8126 -0
- package/dist/{isString-CELwppr9.cjs → isString-BmAegMGI.cjs} +1 -1
- package/dist/{isString--ZVOCy4V.js → isString-CZMLuMzD.js} +1 -1
- package/dist/isUndefined-ClRzgwTy.cjs +1 -0
- package/dist/isUndefined-chfCDxUU.js +84 -0
- package/dist/{main-C6Iw-pcH.cjs → main-CSuKoOz4.cjs} +1 -1
- package/dist/{main-CygliYyN.js → main-D6-NZoCw.js} +5 -5
- package/dist/obj/model.mtl +42 -0
- package/dist/obj/model.obj +26110 -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/{three-viewport-gizmo-BHznJ6W3.js → three-viewport-gizmo-CkQ98n-T.js} +2 -2
- package/dist/{threeLatheView-DzpPpdDr.js → threeLatheView-BmVBnC8n.js} +4 -4
- package/dist/{threeLatheView-CdUoB0Te.cjs → threeLatheView-CZdorls1.cjs} +1 -1
- package/dist/{threeModel-BUCLJlE5.cjs → threeModel-CIXJ7OQA.cjs} +1 -1
- package/dist/{threeModel-BfMMeZCc.js → threeModel-CPolYsAh.js} +5 -5
- package/dist/{threePreview-BEqzg370.js → threePreview-CYX5wKoL.js} +4 -4
- package/dist/{threePreview-C-JW_pcY.cjs → threePreview-C_mY_TBC.cjs} +1 -1
- package/dist/threeSceneView-CUBwHIv3.js +1472 -0
- package/dist/threeSceneView-C_0lI1AI.cjs +5 -0
- package/dist/{threeSceneViewForCPMPIP-Bexwqkry.js → threeSceneViewForCPMPIP-BHhBMxdP.js} +86 -85
- package/dist/{threeSceneViewForCPMPIP-DwLWGNUd.cjs → threeSceneViewForCPMPIP-D4KdOIxO.cjs} +3 -3
- package/dist/{threeViewerHost-CTjd2V1D.js → threeViewerHost-Cbz8Cw7s.js} +78 -65
- package/dist/threeViewerHost-DOwyFQG3.cjs +1 -0
- package/dist/{useRayCaster-D0_7oJan.js → useRayCaster-CF6KDZ1R.js} +5 -5
- package/dist/useRayCaster-CqS7g8Ix.cjs +1 -0
- package/package.json +1 -1
- package/public/obj/model.mtl +42 -0
- package/public/obj/model.obj +26110 -0
- package/dist/animationData-B0K2ghu6.cjs +0 -1
- package/dist/array-D65aMM6H.js +0 -1207
- package/dist/array-DMPAgNcb.cjs +0 -11
- package/dist/index-8Dyi4QCI.js +0 -7293
- package/dist/index-BEoEUXZe.js +0 -2643
- package/dist/index-BsM9qdbC.cjs +0 -1
- package/dist/index-CePZE-QA.cjs +0 -1
- package/dist/index-D8510-YQ.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-BnNwKutS.cjs +0 -56
- package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-CJCvJvBM.js +0 -37436
- package/dist/index.vue_vue_type_style_index_1_lang-D5Hjs-g0.js +0 -7804
- package/dist/index.vue_vue_type_style_index_1_lang-N-_9ZJEf.cjs +0 -32
- package/dist/threeSceneView-BTsG2QJg.cjs +0 -5
- package/dist/threeSceneView-DV5dsTZZ.js +0 -1471
- package/dist/threeViewerHost-CRqcYbJE.cjs +0 -1
- package/dist/useRayCaster-DN56HpNP.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("./index-
|
|
1
|
+
"use strict";const t=require("./index-1z9RrjZc.cjs");var r="[object String]";function n(i){return typeof i=="string"||!t.isArray(i)&&t.isObjectLike(i)&&t.baseGetTag(i)==r}exports.isString=n;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const l=require("./index-1z9RrjZc.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;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { c7 as L, i as v, c8 as M } from "./index-DbzvXPKu.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
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),O=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),O=require("./index-Dv_9EftF.cjs"),i=require("./index-1z9RrjZc.cjs"),T=require("./index.vue_vue_type_style_index_1_lang-Cb3WPLY1.cjs"),Z=require("./index-CJXXl1EN.cjs"),G=require("./array-BI6c3lN7.cjs"),K=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:E}){const t=x,j=E,h=T.useModelComp(i.pinia),{itemData:_}=i.storeToRefs(h),p=e.ref([]),C=e.ref([]),I=c=>{j("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=G.expandStringToJson(t==null?void 0:t.content);h.setOriginalData(c),h.setItemData(c)},{deep:!0,immediate:!0});const w=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(w(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=K._export_sfc(te,[["__scopeId","data-v-1c04adc8"]]),oe={class:"add-model-content"},ae={key:0,class:"model-import-data"},re={class:"import-button"},le={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:E}){const t=x,j=E,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),w=e.ref(null),c=e.ref(0),g=e.ref(""),B=()=>{p.value=window.innerWidth},d=async r=>{var u;const a=(u=i.cloneDeep(r==null?void 0:r.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=G.arrayToNumberArray(k==null?void 0:k.contents)),k))),o});j("change",{originalContents:S.value,currentContents:r==null?void 0:r.wholeValue,editContent:r==null?void 0:r.editValue,stringContent:b(i.cloneDeep(r==null?void 0:r.wholeValue)),arrayToContents:a})},b=r=>{var u;let a=[];return(u=i.cloneDeep(r))==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,L,R,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(l=>({[l.label]:l.value}));a.push(((L=s==null?void 0:s.find(l=>(l==null?void 0:l.value)===(n==null?void 0:n.key)))==null?void 0:L.key)+"="+JSON.stringify(y)+"/r/n")}else{let y=[];(R=i.cloneDeep(n==null?void 0:n.contents))==null||R.reduce((l,D)=>{var U;return l[D.label]=D.key,((U=Object.keys(i.cloneDeep(l)))==null?void 0:U.length)>=D.width&&(y.push(i.cloneDeep(l)),l={}),l},{}),a.push(((z=s==null?void 0:s.find(l=>(l==null?void 0:l.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(l=>l.label);a.push(((H=s==null?void 0:s.find(l=>(l==null?void 0:l.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)},N=e.ref([]),Q=()=>{w.value.click()},X=r=>{const a=r.target.files[0];if(!a)return;const u=new FileReader;u.onload=o=>{try{h.value=o.target.result,N.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.onUnmounted(()=>{window.removeEventListener("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 r;((r=N.value)==null?void 0:r.length)!==0&&(C.setOriginalData(N.value),C.setItemData(N.value))},{deep:!0,immediate:!0});const Y=r=>{let a=r.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(r,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",re,[e.createElementVNode("input",{type:"file",ref_key:"fileInput",ref:w,accept:".txt",onChange:X,style:{display:"none"}},null,544),e.createElementVNode("button",{onClick:Q,class:"import-button-content"},"导入文件"),g.value?(e.openBlock(),e.createElementBlock("span",le,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=K._export_sfc(de,[["__scopeId","data-v-91ce80be"]]);exports.default=me;
|
|
@@ -1,9 +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, onUnmounted as ie, createVNode as A } from "vue";
|
|
2
|
-
import { m as me, a as de, b as ye } from "./index-
|
|
3
|
-
import { p as E, s as ee, c as k } from "./index-
|
|
4
|
-
import { a as te, u as fe } from "./index.vue_vue_type_style_index_1_lang-
|
|
5
|
-
import { g as ge } from "./index-
|
|
6
|
-
import { e as he, a as ke } from "./array-
|
|
2
|
+
import { m as me, a as de, b as ye } from "./index-HZr3I0-O.js";
|
|
3
|
+
import { p as E, s as ee, c as k } from "./index-DbzvXPKu.js";
|
|
4
|
+
import { a as te, u as fe } from "./index.vue_vue_type_style_index_1_lang-Dy1Zc_t-.js";
|
|
5
|
+
import { g as ge } from "./index-W6FccWpW.js";
|
|
6
|
+
import { e as he, a as ke } from "./array-zuPH84bL.js";
|
|
7
7
|
import { _ as ne } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
8
|
const x = [
|
|
9
9
|
{
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# CAD Exchanger 3.24.0 (cadexchanger.com)
|
|
2
|
+
# Material Count: 5
|
|
3
|
+
|
|
4
|
+
newmtl Material_1
|
|
5
|
+
Ns 0.000000
|
|
6
|
+
Ka 0.200000 0.200000 0.200000
|
|
7
|
+
Kd 0.666667 0.666667 0.666667
|
|
8
|
+
Ks 0.000000 0.000000 0.000000
|
|
9
|
+
Ke 0.000000 0.000000 0.000000
|
|
10
|
+
d 1.000000
|
|
11
|
+
|
|
12
|
+
newmtl Material_2
|
|
13
|
+
Ns 0.000000
|
|
14
|
+
Ka 0.200000 0.200000 0.200000
|
|
15
|
+
Kd 0.133333 0.133333 0.133333
|
|
16
|
+
Ks 0.000000 0.000000 0.000000
|
|
17
|
+
Ke 0.000000 0.000000 0.000000
|
|
18
|
+
d 1.000000
|
|
19
|
+
|
|
20
|
+
newmtl Material_3
|
|
21
|
+
Ns 0.000000
|
|
22
|
+
Ka 0.200000 0.200000 0.200000
|
|
23
|
+
Kd 0.733333 0.733333 0.733333
|
|
24
|
+
Ks 0.000000 0.000000 0.000000
|
|
25
|
+
Ke 0.000000 0.000000 0.000000
|
|
26
|
+
d 1.000000
|
|
27
|
+
|
|
28
|
+
newmtl Material_5
|
|
29
|
+
Ns 0.000000
|
|
30
|
+
Ka 0.200000 0.200000 0.200000
|
|
31
|
+
Kd 0.396078 0.941176 0.450980
|
|
32
|
+
Ks 0.000000 0.000000 0.000000
|
|
33
|
+
Ke 0.000000 0.000000 0.000000
|
|
34
|
+
d 1.000000
|
|
35
|
+
|
|
36
|
+
newmtl Material_4
|
|
37
|
+
Ns 0.000000
|
|
38
|
+
Ka 0.200000 0.200000 0.200000
|
|
39
|
+
Kd 1.000000 1.000000 0.000000
|
|
40
|
+
Ks 0.000000 0.000000 0.000000
|
|
41
|
+
Ke 0.000000 0.000000 0.000000
|
|
42
|
+
d 1.000000
|