ss-component-new 1.1.712 → 1.1.714
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/{index-X3Ab4EdT.cjs → index-B6eLhxMJ.cjs} +1 -1
- package/dist/{index-Vali66zM.cjs → index-B7xlKvbO.cjs} +1 -1
- package/dist/{index-1o2R2Z9B.js → index-BEHcZREm.js} +4 -4
- package/dist/{index-C3qQaNn-.js → index-BFZBbjlZ.js} +1 -1
- package/dist/{index-CUbaAP0Y.cjs → index-BLZNIRkY.cjs} +1 -1
- package/dist/{index-5362e8Af.cjs → index-BYA9VCDi.cjs} +1 -1
- package/dist/{index-CkinNZN-.js → index-BhN_xaKB.js} +1 -1
- package/dist/{index-CEI86Io9.js → index-BvgxZw84.js} +3 -3
- package/dist/{index-CPKooe8C.js → index-Bvnvuwkn.js} +2 -2
- package/dist/{index-BuiUf7OY.js → index-Byy_Xtef.js} +2 -2
- package/dist/{index-BGUUgVoN.cjs → index-C-VUvax5.cjs} +1 -1
- package/dist/{index-DpmM0rvE.js → index-C3bhZmjl.js} +2 -2
- package/dist/{index-a3Noy2cx.js → index-C9_p4Vm6.js} +88 -87
- package/dist/{index-Dwq55Y2b.cjs → index-CGebARL6.cjs} +1 -1
- package/dist/{index-DLfeatM3.cjs → index-CHcDZKUi.cjs} +1 -1
- package/dist/{index-DWLPk8fT.cjs → index-COoh2ijF.cjs} +1 -1
- package/dist/{index-NtnUv7Ux.cjs → index-CPj1rc3m.cjs} +1 -1
- package/dist/{index-GMkNbnDL.js → index-CU5qn5hA.js} +2 -2
- package/dist/{index-BdJhDOhM.cjs → index-Cdz4ZgAR.cjs} +1 -1
- package/dist/{index-QSLVX0IB.cjs → index-Cj-k4kxo.cjs} +1 -1
- package/dist/{index-Dr_HCZO2.js → index-Cpx_u9T6.js} +1 -1
- package/dist/{index-DIX3KBtS.cjs → index-DSC06oXb.cjs} +1 -1
- package/dist/{index-CmojKCe6.cjs → index-DTLKy7rp.cjs} +1 -1
- package/dist/{index-B66jcDTt.cjs → index-Decs_B4B.cjs} +1 -1
- package/dist/{index-DIpaEqLJ.cjs → index-DldssUmp.cjs} +1 -1
- package/dist/{index-Ce2HGUxh.cjs → index-Dp1mAXQ2.cjs} +1 -1
- package/dist/{index-Bh_c8iE4.cjs → index-Dq3Gb645.cjs} +1 -1
- package/dist/{index-DXm62cGk.js → index-DwW2YuMT.js} +1 -1
- package/dist/{index-DKp2vqXS.js → index-DxQ-WNaQ.js} +2 -2
- package/dist/{index-iWeUJSkR.js → index-FC3u5SDQ.js} +2 -2
- package/dist/{index-BBGIDd8L.js → index-H-bGpaNs.js} +1 -1
- package/dist/{index-C9uKiH6n.js → index-JNw-0LM6.js} +1 -1
- package/dist/{index-CzgEt2z3.js → index-S15gAcDT.js} +5 -5
- package/dist/{index-BFdTklH0.cjs → index-Yr549Xbj.cjs} +1 -1
- package/dist/{index-qiplzDQJ.js → index-cplChbGm.js} +2 -2
- package/dist/{index-KeAEdWD3.js → index-k3Bxo8CN.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-B_TvKM30.cjs → index.vue_vue_type_script_setup_true_lang-BcMm1KLj.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-CVpmLBmF.js → index.vue_vue_type_script_setup_true_lang-DN-3ZDhB.js} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DX5NKTKb.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BHHPVcqx.cjs} +79 -79
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CR_xcUHw.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DCPQmJ8P.js} +3226 -3209
- package/dist/{index.vue_vue_type_style_index_0_scoped_c81d0427_lang-JTjtdr6q.js → index.vue_vue_type_style_index_0_scoped_c81d0427_lang-Bem94E3F.js} +4 -4
- package/dist/{index.vue_vue_type_style_index_0_scoped_c81d0427_lang-BPocOsdT.cjs → index.vue_vue_type_style_index_0_scoped_c81d0427_lang-CiYmZBSD.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_8606206c_lang-kaJIjeom.js → index.vue_vue_type_style_index_0_scoped_ffb37532_lang-DB4kiFum.js} +7 -7
- package/dist/{index.vue_vue_type_style_index_0_scoped_8606206c_lang-Dl9KbdLS.cjs → index.vue_vue_type_style_index_0_scoped_ffb37532_lang-bjlUC_Ux.cjs} +1 -1
- package/dist/{main-BL2mLpw3.cjs → main-DUyxM_WP.cjs} +1 -1
- package/dist/{main-Cml2nHMa.js → main-slCUa76N.js} +2 -2
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +8 -8
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +8 -8
- package/dist/{threeModel-KY3nNYPp.js → threeModel-BY_tDAcc.js} +1 -1
- package/dist/{threeModel-BKDg8c0N.cjs → threeModel-W5f1wios.cjs} +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),g=require("./index-
|
|
1
|
+
"use strict";const e=require("vue"),g=require("./index-Cj-k4kxo.cjs"),n=require("./menu-vml_xHJD.cjs");require("./array-DiC30wYM.cjs");const B=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),q=require("./index-C31XRLFj.cjs"),T=require("./index-BLZNIRkY.cjs"),F=require("./index-DOs-6Cx7.cjs"),O=require("./index-2p69g4HY.cjs"),R={class:"type-select"},b=["onClick"],L={class:"list-icon"},U={__name:"index",setup(y){const u=n.useModelComp(n.pinia),{itemData:r}=n.storeToRefs(u),C=_=>{const p=n.cloneDeep(r.value);p.push({comp:_.comp,name:_.name,compData:[]}),u.setItemData(p)};return(_,p)=>{const i=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",R,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(g.slotContent),(f,v)=>(e.openBlock(),e.createElementBlock("div",{class:"type-list",key:v},[e.createElementVNode("div",{class:"list-content",onClick:k=>C(f)},[e.createElementVNode("div",L,[e.createVNode(i,{name:f.icon},null,8,["name"])]),e.createElementVNode("div",null,e.toDisplayString(f.name),1)],8,b)]))),128))])}}},z=B._export_sfc(U,[["__scopeId","data-v-1f87163f"]]),H={class:"fill-content"},j={class:"operate-content"},A={class:"collapse-title-content"},G={class:"collapse-title-item"},J={key:1},K=["onClick"],P={class:"icon-content"},Q={key:0,class:"edit-content"},W=["onClick"],X={class:"comp-child"},Y={__name:"index",setup(y){const u=n.useModelComp(n.pinia),{itemData:r,originalData:C}=n.storeToRefs(u),_=e.ref([]);e.ref([]);const p=e.ref([]),i=e.ref([]),f=s=>{var l;let a=(l=n.cloneDeep(i.value))==null?void 0:l.map((t,o)=>(s===o&&(t.content=!0),t));i.value=a},v=s=>{var l;let a=(l=n.cloneDeep(i.value))==null?void 0:l.map((t,o)=>(s===o&&(t.content=!1),t));i.value=a,_.value=n.cloneDeep(r.value)},k=(s,a)=>{var h;let l=(h=n.cloneDeep(i.value))==null?void 0:h.map((c,m)=>(s===m&&(c.content=!1),c));i.value=l;const t=n.cloneDeep(r.value),o=t==null?void 0:t.filter((c,m)=>(m===s&&(c.name=a),c));u.setOriginalData(o),u.setItemData(o)};e.watch(()=>r.value,()=>{var s,a,l;!r.value||((s=r.value)==null?void 0:s.length)===0?_.value=[]:_.value=(a=n.cloneDeep(r.value))==null?void 0:a.filter(t=>(t==null?void 0:t.comp)!=="methodButton"),p.value=_.value,i.value=(l=n.cloneDeep(p.value))==null?void 0:l.map((t,o)=>({id:o,content:!1}))},{deep:!0,immediate:!0});const I=s=>g.getComponent(s),S=(s,a,l)=>{var o,h;if(!s)return;let t=n.cloneDeep(r.value);t=(o=t==null?void 0:t.map((c,m)=>(m===l&&(c.compData=s),c)))==null?void 0:o.filter(c=>(c==null?void 0:c.comp)!=="methodButton"),i.value=(h=n.cloneDeep(t))==null?void 0:h.map((c,m)=>({id:m,content:!1})),u.setOriginalData(t),u.setItemData(t)},M=s=>{F.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{const a=n.cloneDeep(r.value),l=a==null?void 0:a.filter((t,o)=>o!==s);u.setOriginalData(l),u.setItemData(l),O.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(s,a)=>{const l=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",H,[a[1]||(a[1]=e.createElementVNode("div",{class:"fill-operate"},e.toDisplayString("操作栏"),-1)),e.createElementVNode("div",j,[e.createVNode(q.default,{class:"collapse-content",collapseContents:_.value},{title:e.withCtx(({item:t,index:o})=>{var h,c,m,D,V,E,N,w,x,$;return[e.createElementVNode("div",A,[e.createElementVNode("div",G,[(c=(h=i.value)==null?void 0:h.find(d=>d.id===o))!=null&&c.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"collapse-title",style:e.normalizeStyle({marginRight:t.name&&t.name!==""?"8px":"0px"})},e.toDisplayString(t.name),5)),(D=(m=i.value)==null?void 0:m.find(d=>d.id===o))!=null&&D.content?(e.openBlock(),e.createElementBlock("div",J,[e.createVNode(T._sfc_main$2,{modelValue:t.name,"onUpdate:modelValue":d=>t.name=d,onClick:a[0]||(a[0]=e.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue"])])):e.createCommentVNode("",!0),(E=(V=i.value)==null?void 0:V.find(d=>d.id===o))!=null&&E.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:2,onClick:e.withModifiers(d=>f(o),["stop"]),class:"icon-content"},[e.createVNode(l,{name:"Edit",style:{width:"16px",height:"16px"}})],8,K))]),e.createElementVNode("div",P,[(w=(N=i.value)==null?void 0:N.find(d=>d.id===o))!=null&&w.content?(e.openBlock(),e.createElementBlock("div",Q,[e.createVNode(l,{name:"Cancel",style:{width:"16px",height:"16px"},class:"icon-content",onClick:e.withModifiers(d=>v(o),["stop"])},null,8,["onClick"]),e.createVNode(l,{name:"Save",onClick:e.withModifiers(d=>k(o,t.name),["stop"]),style:{width:"16px",height:"16px",fill:"var(--ssComponent-primary-color)"},class:"icon-content"},null,8,["onClick"])])):e.createCommentVNode("",!0),($=(x=i.value)==null?void 0:x.find(d=>d.id===o))!=null&&$.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,onClick:e.withModifiers(d=>M(o),["stop"]),class:"icon-content"},[e.createVNode(l,{name:"Delete",style:{width:"16px",height:"16px"}})],8,W))])])]}),content:e.withCtx(({item:t,index:o})=>{var h,c;return[e.createElementVNode("div",X,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(I(t.comp+"Operate")),{itemContents:t==null?void 0:t.compData,originalItemContents:(c=(h=p.value)==null?void 0:h.find((m,D)=>D===o))==null?void 0:c.compData,onChange:m=>S(m,t,o)},null,40,["itemContents","originalItemContents","onChange"]))])]}),_:1},8,["collapseContents"])])])}}},Z=B._export_sfc(Y,[["__scopeId","data-v-27bd1564"]]),ee={key:0,class:"show-content"},te={style:{display:"flex"}},oe={__name:"index",setup(y){const u=n.useModelComp(n.pinia),{itemData:r}=n.storeToRefs(u),C=e.ref([]);e.watch(()=>r.value,()=>{var p;!r.value||((p=r.value)==null?void 0:p.length)===0?C.value=[]:C.value=n.cloneDeep(r.value)},{deep:!0,immediate:!0});const _=p=>g.getComponent(p);return(p,i)=>{var f;return((f=C.value)==null?void 0:f.length)>0?(e.openBlock(),e.createElementBlock("div",ee,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,(v,k)=>(e.openBlock(),e.createElementBlock("div",{class:"item-content",key:k},[e.createElementVNode("div",te,e.toDisplayString(v.name),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(_(v.comp)),{itemData:v==null?void 0:v.compData,childItemData:v==null?void 0:v.itemChildData,key:k},null,8,["itemData","childItemData"]))]))),128))])):e.createCommentVNode("",!0)}}},ne=B._export_sfc(oe,[["__scopeId","data-v-bfa22d29"]]);exports.modelFill=Z;exports.modelSelect=z;exports.modelShow=ne;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as f, onMounted as v, watch as g, onUnmounted as b, createElementBlock as x, openBlock as y, createVNode as z } from "vue";
|
|
2
|
-
import { i as w } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
2
|
+
import { i as w } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DCPQmJ8P.js";
|
|
3
3
|
import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
import { c as l } from "./menu-BRpPhHno.js";
|
|
5
5
|
const k = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as C, reactive as k, ref as v, onMounted as D, nextTick as b, resolveComponent as i, resolveDirective as T, createElementBlock as u, openBlock as m, createVNode as t, withCtx as n, withDirectives as w, createElementVNode as p, createTextVNode as _ } from "vue";
|
|
2
|
-
import { S as x } from "./index-
|
|
3
|
-
import { s as B } from "./index-
|
|
4
|
-
import { s as F, e as y } from "./index-
|
|
2
|
+
import { S as x } from "./index-JNw-0LM6.js";
|
|
3
|
+
import { s as B } from "./index-DxQ-WNaQ.js";
|
|
4
|
+
import { s as F, e as y } from "./index-Bvnvuwkn.js";
|
|
5
5
|
import { a as S, p as I, s as N } from "./menu-BRpPhHno.js";
|
|
6
6
|
import { _ as R } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
7
|
const E = { class: "menu-module" }, M = {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ref as W, resolveComponent as j, createBlock as F, openBlock as _, createCommentVNode as Z, defineComponent as _t, onMounted as Yt, withCtx as R, createVNode as Y, createElementVNode as Q, createElementBlock as B, Fragment as me, renderList as be, createTextVNode as Vt, toDisplayString as He, watch as at, normalizeStyle as Ve, unref as G0, createSlots as Ft, resolveDynamicComponent as v2, normalizeClass as Ua, nextTick as o0, renderSlot as oe, normalizeProps as qa, guardReactiveProps as Ya, mergeProps as B2, reactive as Fs, computed as ne, withDirectives as Po, withModifiers as Ka, vShow as zo, watchEffect as S0, onUnmounted as en, h as Vo, onBeforeUnmount as Xa, toRefs as Qa } from "vue";
|
|
2
2
|
import { S as Eo } from "./index-BHtNKL1L.js";
|
|
3
|
-
import { j as Bo, T as Lo, M as Ja, U as Za, V as ec, W as tc, X as Ro, Y as Io } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
3
|
+
import { j as Bo, T as Lo, M as Ja, U as Za, V as ec, W as tc, X as Ro, Y as Io } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DCPQmJ8P.js";
|
|
4
4
|
import { _ as _e } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
import { c as bt, u as ic, p as nc, a as sc, s as oc } from "./menu-BRpPhHno.js";
|
|
6
6
|
import { bp as rc, bq as lc, s as tn, E as Wl, aB as ac, ad as cc, bt as hc } from "./index-BCZ59Y4K.js";
|
|
7
|
-
import { _ as uc } from "./index.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { _ as uc } from "./index.vue_vue_type_script_setup_true_lang-DN-3ZDhB.js";
|
|
8
8
|
var dc = "[object Number]";
|
|
9
9
|
function Ho(n) {
|
|
10
10
|
return typeof n == "number" || rc(n) && lc(n) == dc;
|
|
@@ -3,8 +3,8 @@ import { br as ee, bs as te, bt as ae, g as P, bk as se, E as B } from "./index-
|
|
|
3
3
|
import { u as V } from "./login-h0Hl0hFq.js";
|
|
4
4
|
import { s as E, a as re, p as L } from "./menu-BRpPhHno.js";
|
|
5
5
|
import { e as ne, d as oe } from "./crypto-BRyGpjGR.js";
|
|
6
|
-
import { a as le, s as ie } from "./index-
|
|
7
|
-
import { e as ue, j as de } from "./index-
|
|
6
|
+
import { a as le, s as ie } from "./index-CU5qn5hA.js";
|
|
7
|
+
import { e as ue, j as de } from "./index-Bvnvuwkn.js";
|
|
8
8
|
import { _ as pe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
9
|
const $ = V(L), { loginUserInfo: i, cryptoInfo: m } = E($), ge = re(L), { activeMenuPath: h } = E(ge), I = c(0);
|
|
10
10
|
var R, N, x, K;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BHHPVcqx.cjs");const n=require("./menu-vml_xHJD.cjs");require("./index-2p69g4HY.cjs");const u=require("./index-Cdz4ZgAR.cjs"),o=require("./index-Nn47GzGZ.cjs"),c=require("./index-B1XyxOHh.cjs"),i=e.defineComponent({__name:"index",setup(s){const t=e.reactive({...o.State}),a=n.useMenuState(),{activeMenuPath:r}=n.storeToRefs(a);return e.onMounted(async()=>{t.structureId=await c.getActivePageStructureId(r.value)}),(d,l)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(u.ssTable,{itemData:t.pageData,onChange:t.handleItemDataChange},null,8,["itemData","onChange"])]))}});exports.default=i;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as o, reactive as n, onMounted as r, createElementBlock as s, openBlock as m, createVNode as i } from "vue";
|
|
2
2
|
import "./index-BHtNKL1L.js";
|
|
3
|
-
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
3
|
+
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DCPQmJ8P.js";
|
|
4
4
|
import { a as c, s as u } from "./menu-BRpPhHno.js";
|
|
5
5
|
import "./index-BCZ59Y4K.js";
|
|
6
|
-
import { s as p } from "./index-
|
|
6
|
+
import { s as p } from "./index-DxQ-WNaQ.js";
|
|
7
7
|
import { S as l } from "./index-DqIn00H8.js";
|
|
8
8
|
import { i as d } from "./index-CCxinvIS.js";
|
|
9
9
|
const k = /* @__PURE__ */ o({
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { resolveComponent as V, createBlock as _, openBlock as I, withCtx as B, createVNode as c, createElementVNode as C, toDisplayString as q, ref as S, onMounted as qe, watch as $, createElementBlock as
|
|
2
|
-
import { m as _e, a as $e, b as et } from "./index-
|
|
3
|
-
import { c as At, b as ct } from "./index.vue_vue_type_style_index_0_scoped_c81d0427_lang-
|
|
1
|
+
import { resolveComponent as V, createBlock as _, openBlock as I, withCtx as B, createVNode as c, createElementVNode as C, toDisplayString as q, ref as S, onMounted as qe, watch as $, createElementBlock as G, Fragment as Ge, renderList as Xe, createCommentVNode as M, normalizeStyle as Ze, defineComponent as it, computed as ze, resolveDirective as st, withDirectives as De, unref as i, createTextVNode as le, renderSlot as Fe, vShow as Le, resolveDynamicComponent as rt } from "vue";
|
|
2
|
+
import { m as _e, a as $e, b as et } from "./index-FC3u5SDQ.js";
|
|
3
|
+
import { c as At, b as ct } from "./index.vue_vue_type_style_index_0_scoped_c81d0427_lang-Bem94E3F.js";
|
|
4
4
|
import { _ as fe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
-
import { _ as ut, s as Se, o as gt, c as dt, a as Ct, b as ht, d as mt, g as pt, e as Bt, f as It, h as yt, i as ft, j as wt } from "./index.
|
|
5
|
+
import { _ as ut, s as Se, o as gt, c as dt, a as Ct, b as ht, d as mt, g as pt, e as Bt, f as It, h as yt, i as ft, j as wt } from "./index.vue_vue_type_style_index_0_scoped_ffb37532_lang-DB4kiFum.js";
|
|
6
6
|
import { u as Et } from "./login-h0Hl0hFq.js";
|
|
7
7
|
import { p as ie, s as de, u as Pe, a as Te, c as ye } from "./menu-BRpPhHno.js";
|
|
8
8
|
import { S as ue } from "./index-BHtNKL1L.js";
|
|
9
|
-
import { o as Qt } from "./index-
|
|
9
|
+
import { o as Qt } from "./index-BEHcZREm.js";
|
|
10
10
|
import { a as kt } from "./array-D1rENrtC.js";
|
|
11
|
-
import { u as tt, a as St } from "./index-
|
|
12
|
-
import { g as Re, a as at, l as ot } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
11
|
+
import { u as tt, a as St } from "./index-DxQ-WNaQ.js";
|
|
12
|
+
import { g as Re, a as at, l as ot } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DCPQmJ8P.js";
|
|
13
13
|
import { a as ge, g as Ut, b as Rt } from "./index-BCZ59Y4K.js";
|
|
14
14
|
import "vue-router";
|
|
15
|
-
import vt from "./index-
|
|
16
|
-
import Ve from "./threeModel-
|
|
17
|
-
import { d as xe, _ as bt, a as Ue, s as jt } from "./index-
|
|
18
|
-
import { _ as Oe } from "./index.vue_vue_type_script_setup_true_lang-
|
|
15
|
+
import vt from "./index-DwW2YuMT.js";
|
|
16
|
+
import Ve from "./threeModel-BY_tDAcc.js";
|
|
17
|
+
import { d as xe, _ as bt, a as Ue, s as jt } from "./index-Bvnvuwkn.js";
|
|
18
|
+
import { _ as Oe } from "./index.vue_vue_type_script_setup_true_lang-DN-3ZDhB.js";
|
|
19
19
|
const Dt = { class: "menu-title" };
|
|
20
|
-
function Yt(R, ae, t, U,
|
|
20
|
+
function Yt(R, ae, t, U, T, X) {
|
|
21
21
|
const n = V("svg-icon"), N = V("ssMenu");
|
|
22
22
|
return I(), _(N, {
|
|
23
23
|
mode: R.mode,
|
|
@@ -26,13 +26,13 @@ function Yt(R, ae, t, U, P, X) {
|
|
|
26
26
|
onOpenMenu: R.openMenu,
|
|
27
27
|
onCloseMenu: R.closeMenu
|
|
28
28
|
}, {
|
|
29
|
-
title: B(({ menu:
|
|
29
|
+
title: B(({ menu: K }) => [
|
|
30
30
|
c(n, {
|
|
31
31
|
class: "menu-icon",
|
|
32
|
-
name:
|
|
32
|
+
name: K.icon ?? "default",
|
|
33
33
|
style: { "margin-right": "8px" }
|
|
34
34
|
}, null, 8, ["name"]),
|
|
35
|
-
C("span", Dt, q(
|
|
35
|
+
C("span", Dt, q(K.title ?? ""), 1)
|
|
36
36
|
]),
|
|
37
37
|
_: 1
|
|
38
38
|
}, 8, ["mode", "menuList", "onClickMenu", "onOpenMenu", "onCloseMenu"]);
|
|
@@ -50,7 +50,7 @@ const Gt = /* @__PURE__ */ fe(ut, [["render", Yt], ["__scopeId", "data-v-3f5e9b4
|
|
|
50
50
|
},
|
|
51
51
|
emits: ["click"],
|
|
52
52
|
setup(R, { emit: ae }) {
|
|
53
|
-
const t = R, U = S([]),
|
|
53
|
+
const t = R, U = S([]), T = ae;
|
|
54
54
|
qe(() => {
|
|
55
55
|
U.value = t == null ? void 0 : t.breadArray;
|
|
56
56
|
}), $(
|
|
@@ -61,21 +61,21 @@ const Gt = /* @__PURE__ */ fe(ut, [["render", Yt], ["__scopeId", "data-v-3f5e9b4
|
|
|
61
61
|
{ deep: !0, immediate: !0 }
|
|
62
62
|
);
|
|
63
63
|
const X = (n) => {
|
|
64
|
-
|
|
64
|
+
T("click", n);
|
|
65
65
|
};
|
|
66
|
-
return (n, N) => (I(),
|
|
67
|
-
(I(!0),
|
|
66
|
+
return (n, N) => (I(), G("div", Ft, [
|
|
67
|
+
(I(!0), G(Ge, null, Xe(U.value, (K, W) => {
|
|
68
68
|
var k;
|
|
69
|
-
return I(),
|
|
69
|
+
return I(), G("div", {
|
|
70
70
|
key: W,
|
|
71
71
|
class: "bread-item"
|
|
72
72
|
}, [
|
|
73
73
|
C("div", {
|
|
74
74
|
class: "bread-title",
|
|
75
|
-
onClick: (se) => X(
|
|
75
|
+
onClick: (se) => X(K),
|
|
76
76
|
style: Ze({ opacity: ((k = U.value) == null ? void 0 : k.length) - 1 === W ? "0.7" : "1" })
|
|
77
|
-
}, q(
|
|
78
|
-
W !== U.value.length - 1 && Array.isArray(U.value) ? (I(),
|
|
77
|
+
}, q(K.value), 13, Pt),
|
|
78
|
+
W !== U.value.length - 1 && Array.isArray(U.value) ? (I(), G("div", Tt, q("/"))) : M("", !0)
|
|
79
79
|
]);
|
|
80
80
|
}), 128))
|
|
81
81
|
]));
|
|
@@ -144,7 +144,7 @@ const Gt = /* @__PURE__ */ fe(ut, [["render", Yt], ["__scopeId", "data-v-3f5e9b4
|
|
|
144
144
|
},
|
|
145
145
|
emits: ["showChild", "buildContent", "setLoginInfo"],
|
|
146
146
|
setup(R, { emit: ae }) {
|
|
147
|
-
const t = tt(ie), { selectTitle: U } = de(t),
|
|
147
|
+
const t = tt(ie), { selectTitle: U } = de(t), T = S(!1), X = S(), n = S(null), N = S(), K = S(!1), W = St(ie), { blobUrls: k } = de(W), se = S(!1), b = S(!1), H = S(!1), Z = S(!1), ee = Et(), { loginUserInfo: E } = de(ee), oe = Pe(ie), { isEdit: x, routeToChildPath: we } = de(oe), me = ae, Ce = Te(ie), { importLoading: ve, activeAsideMenu: be, contentLoading: je, platName: h, activeMenuPath: j } = de(Ce), P = R, D = ze(() => be.value.isRouter), L = () => {
|
|
148
148
|
sessionStorage.clear(), window.location.reload();
|
|
149
149
|
}, u = () => {
|
|
150
150
|
me("buildContent");
|
|
@@ -187,7 +187,7 @@ const Gt = /* @__PURE__ */ fe(ut, [["render", Yt], ["__scopeId", "data-v-3f5e9b4
|
|
|
187
187
|
}), o;
|
|
188
188
|
}, z = async () => {
|
|
189
189
|
var a, r;
|
|
190
|
-
if ((
|
|
190
|
+
if ((P == null ? void 0 : P.platform) !== "browser" && (T.value = !0, N.value)) {
|
|
191
191
|
const o = N.value;
|
|
192
192
|
let d = [];
|
|
193
193
|
if (typeof (o == null ? void 0 : o.url) == "string") {
|
|
@@ -249,9 +249,9 @@ const Gt = /* @__PURE__ */ fe(ut, [["render", Yt], ["__scopeId", "data-v-3f5e9b4
|
|
|
249
249
|
n.value.loadModelByDefaultPath(d);
|
|
250
250
|
}
|
|
251
251
|
}, Ee = () => {
|
|
252
|
-
|
|
252
|
+
K.value = !1, n.value = null;
|
|
253
253
|
};
|
|
254
|
-
$(() =>
|
|
254
|
+
$(() => j.value, async (a) => {
|
|
255
255
|
a && (b.value = !0), a === "弯管仿真加工分析/仿真动画生成" ? H.value = !0 : H.value = !1, a === "弯管仿真加工分析/程序输出" ? Z.value = !0 : Z.value = !1, Ye != null && Ye.find((r) => {
|
|
256
256
|
var o;
|
|
257
257
|
return (r == null ? void 0 : r.key) === ((o = a == null ? void 0 : a.split("/")) == null ? void 0 : o[(a == null ? void 0 : a.split("/").length) - 1]);
|
|
@@ -261,7 +261,7 @@ const Gt = /* @__PURE__ */ fe(ut, [["render", Yt], ["__scopeId", "data-v-3f5e9b4
|
|
|
261
261
|
async () => {
|
|
262
262
|
var a, r, o, d, F;
|
|
263
263
|
if (k != null && k.value && ((a = k == null ? void 0 : k.value) == null ? void 0 : a.length) > 0 && !se.value && !((r = Se.value) != null && r.find((l) => (l == null ? void 0 : l.name) === "输入") && ((o = Se.value) != null && o.find((l) => (l == null ? void 0 : l.name) === "输出")))) {
|
|
264
|
-
|
|
264
|
+
K.value = !0;
|
|
265
265
|
let l = [];
|
|
266
266
|
const g = await ((d = ye(k == null ? void 0 : k.value)) == null ? void 0 : d.map(async (s) => {
|
|
267
267
|
var y, f, Q, e, w, O, Ae, pe, Be, Ie;
|
|
@@ -269,9 +269,9 @@ const Gt = /* @__PURE__ */ fe(ut, [["render", Yt], ["__scopeId", "data-v-3f5e9b4
|
|
|
269
269
|
s != null && s.blob.includes("undefined") ? A = (f = (y = s == null ? void 0 : s.blob) == null ? void 0 : y.split("undefined,")) == null ? void 0 : f[1] : A = s == null ? void 0 : s.blob;
|
|
270
270
|
let p = A == null ? void 0 : A.split(",");
|
|
271
271
|
if ((p == null ? void 0 : p.length) > 1) {
|
|
272
|
-
let ce = await (p == null ? void 0 : p.map(async (
|
|
272
|
+
let ce = await (p == null ? void 0 : p.map(async (Y) => {
|
|
273
273
|
var ne, Ke, Je, Me, Ne, We;
|
|
274
|
-
v = await ge.get(
|
|
274
|
+
v = await ge.get(Y, {
|
|
275
275
|
responseType: "blob",
|
|
276
276
|
headers: {
|
|
277
277
|
"Content-Type": "application/json"
|
|
@@ -292,8 +292,8 @@ const Gt = /* @__PURE__ */ fe(ut, [["render", Yt], ["__scopeId", "data-v-3f5e9b4
|
|
|
292
292
|
}));
|
|
293
293
|
await Promise.all(nt);
|
|
294
294
|
}
|
|
295
|
-
return ((Me =
|
|
296
|
-
suffix: "." + ((We =
|
|
295
|
+
return ((Me = Y == null ? void 0 : Y.split(".")) == null ? void 0 : Me[((Je = Y == null ? void 0 : Y.split(".")) == null ? void 0 : Je.length) - 1]) !== "undefined" && l.push({
|
|
296
|
+
suffix: "." + ((We = Y == null ? void 0 : Y.split(".")) == null ? void 0 : We[((Ne = Y == null ? void 0 : Y.split(".")) == null ? void 0 : Ne.length) - 1]),
|
|
297
297
|
blob: new Blob([v.data], {
|
|
298
298
|
type: "application/octet-stream;charset=UTF-8"
|
|
299
299
|
}),
|
|
@@ -307,7 +307,7 @@ const Gt = /* @__PURE__ */ fe(ut, [["render", Yt], ["__scopeId", "data-v-3f5e9b4
|
|
|
307
307
|
});
|
|
308
308
|
let ce = [];
|
|
309
309
|
if (((Q = s == null ? void 0 : s.mtlBlobs) == null ? void 0 : Q.length) > 0) {
|
|
310
|
-
let
|
|
310
|
+
let Y = await ((e = s == null ? void 0 : s.mtlBlobs) == null ? void 0 : e.map(async (he) => {
|
|
311
311
|
let ne = await xe({
|
|
312
312
|
url: he
|
|
313
313
|
});
|
|
@@ -315,7 +315,7 @@ const Gt = /* @__PURE__ */ fe(ut, [["render", Yt], ["__scopeId", "data-v-3f5e9b4
|
|
|
315
315
|
type: "application/octet-stream;charset=UTF-8"
|
|
316
316
|
})), ne;
|
|
317
317
|
}));
|
|
318
|
-
await Promise.all(
|
|
318
|
+
await Promise.all(Y);
|
|
319
319
|
}
|
|
320
320
|
m = {
|
|
321
321
|
suffix: "." + ((O = A == null ? void 0 : A.split(".")) == null ? void 0 : O[((w = A == null ? void 0 : A.split(".")) == null ? void 0 : w.length) - 1]),
|
|
@@ -333,7 +333,7 @@ const Gt = /* @__PURE__ */ fe(ut, [["render", Yt], ["__scopeId", "data-v-3f5e9b4
|
|
|
333
333
|
});
|
|
334
334
|
let ce = [];
|
|
335
335
|
if (((Ae = s == null ? void 0 : s.mtlBlobs) == null ? void 0 : Ae.length) > 0) {
|
|
336
|
-
let
|
|
336
|
+
let Y = await ((pe = s == null ? void 0 : s.mtlBlobs) == null ? void 0 : pe.map(async (he) => {
|
|
337
337
|
let ne = await ge.get(he, {
|
|
338
338
|
responseType: "blob",
|
|
339
339
|
headers: {
|
|
@@ -344,7 +344,7 @@ const Gt = /* @__PURE__ */ fe(ut, [["render", Yt], ["__scopeId", "data-v-3f5e9b4
|
|
|
344
344
|
type: "application/octet-stream;charset=UTF-8"
|
|
345
345
|
})), ne;
|
|
346
346
|
}));
|
|
347
|
-
await Promise.all(
|
|
347
|
+
await Promise.all(Y);
|
|
348
348
|
}
|
|
349
349
|
m = {
|
|
350
350
|
suffix: "." + ((Ie = A == null ? void 0 : A.split(".")) == null ? void 0 : Ie[((Be = A == null ? void 0 : A.split(".")) == null ? void 0 : Be.length) - 1]),
|
|
@@ -387,10 +387,10 @@ const Gt = /* @__PURE__ */ fe(ut, [["render", Yt], ["__scopeId", "data-v-3f5e9b4
|
|
|
387
387
|
me("setLoginInfo", E.value);
|
|
388
388
|
}), (a, r) => {
|
|
389
389
|
const o = V("el-dialog"), d = V("el-button"), F = V("el-avatar"), l = V("el-header"), g = V("el-container"), s = V("el-aside"), v = V("router-view"), m = V("el-main"), A = st("loading");
|
|
390
|
-
return I(),
|
|
390
|
+
return I(), G(Ge, null, [
|
|
391
391
|
c(o, {
|
|
392
|
-
modelValue:
|
|
393
|
-
"onUpdate:modelValue": r[0] || (r[0] = (p) =>
|
|
392
|
+
modelValue: T.value,
|
|
393
|
+
"onUpdate:modelValue": r[0] || (r[0] = (p) => T.value = p),
|
|
394
394
|
style: { height: "700px", width: "1800px" }
|
|
395
395
|
}, {
|
|
396
396
|
default: B(() => [
|
|
@@ -644,8 +644,8 @@ const Gt = /* @__PURE__ */ fe(ut, [["render", Yt], ["__scopeId", "data-v-3f5e9b4
|
|
|
644
644
|
]),
|
|
645
645
|
_: 1
|
|
646
646
|
}, 8, ["style"]),
|
|
647
|
-
De((I(),
|
|
648
|
-
i(we) !== "" ? (I(),
|
|
647
|
+
De((I(), G("div", ta, [
|
|
648
|
+
i(we) !== "" ? (I(), G("div", aa, [
|
|
649
649
|
c(Ue, {
|
|
650
650
|
class: "calculator-content back-content",
|
|
651
651
|
onClickTrigger: r[2] || (r[2] = (e) => i(mt)()),
|
|
@@ -653,14 +653,14 @@ const Gt = /* @__PURE__ */ fe(ut, [["render", Yt], ["__scopeId", "data-v-3f5e9b4
|
|
|
653
653
|
})
|
|
654
654
|
])) : M("", !0),
|
|
655
655
|
C("div", oa, [
|
|
656
|
-
|
|
657
|
-
|
|
656
|
+
D.value ? (I(), _(v, { key: 0 })) : M("", !0),
|
|
657
|
+
D.value ? M("", !0) : (I(!0), G(Ge, { key: 1 }, Xe((p = i(ye)(i(Se))) == null ? void 0 : p.filter((e) => e.comp !== "FormTop"), (e, w) => {
|
|
658
658
|
var O;
|
|
659
|
-
return I(),
|
|
659
|
+
return I(), G("div", {
|
|
660
660
|
class: "item-view-content",
|
|
661
661
|
key: w
|
|
662
662
|
}, [
|
|
663
|
-
((O = e == null ? void 0 : e.comp) == null ? void 0 : O.toUpperCase()) !== "TABLE" && e.name ? (I(),
|
|
663
|
+
((O = e == null ? void 0 : e.comp) == null ? void 0 : O.toUpperCase()) !== "TABLE" && e.name ? (I(), G("div", na, q(e.name), 1)) : M("", !0),
|
|
664
664
|
(I(), _(rt(i(pt)(e.comp)), {
|
|
665
665
|
compName: e.name,
|
|
666
666
|
itemData: e == null ? void 0 : e.compData,
|
|
@@ -674,8 +674,8 @@ const Gt = /* @__PURE__ */ fe(ut, [["render", Yt], ["__scopeId", "data-v-3f5e9b4
|
|
|
674
674
|
}, null, 40, ["compName", "itemData", "childItemData", "onChange", "index", "onContentChange", "onPageChange"]))
|
|
675
675
|
]);
|
|
676
676
|
}), 128)),
|
|
677
|
-
!
|
|
678
|
-
i(we) !== "" && ((Q = i(
|
|
677
|
+
!D.value && !((y = i(ye)(i(Se))) != null && y.find((e) => e.comp === "methodButton")) ? (I(), G("div", la, [
|
|
678
|
+
i(we) !== "" && ((Q = i(j)) == null ? void 0 : Q[((f = i(j)) == null ? void 0 : f.length) - 1]) !== "/" ? (I(), _(Ue, {
|
|
679
679
|
key: 0,
|
|
680
680
|
class: "calculator-content",
|
|
681
681
|
onClickTrigger: ke,
|
|
@@ -695,7 +695,7 @@ const Gt = /* @__PURE__ */ fe(ut, [["render", Yt], ["__scopeId", "data-v-3f5e9b4
|
|
|
695
695
|
}),
|
|
696
696
|
C("div", null, [
|
|
697
697
|
c(jt, {
|
|
698
|
-
visible:
|
|
698
|
+
visible: K.value,
|
|
699
699
|
onBeforeDestroy: Ee,
|
|
700
700
|
style: { height: "700px", width: "1000px" }
|
|
701
701
|
}, {
|
|
@@ -738,9 +738,9 @@ const Gt = /* @__PURE__ */ fe(ut, [["render", Yt], ["__scopeId", "data-v-3f5e9b4
|
|
|
738
738
|
},
|
|
739
739
|
emits: ["buildContent", "showChild"],
|
|
740
740
|
setup(R, { emit: ae }) {
|
|
741
|
-
const t = Pe(ie), U = tt(ie),
|
|
741
|
+
const t = Pe(ie), U = tt(ie), T = Te();
|
|
742
742
|
S(!1);
|
|
743
|
-
const X = S(!0), n = R, N = ae,
|
|
743
|
+
const X = S(!0), n = R, N = ae, K = (b) => {
|
|
744
744
|
N("showChild", b);
|
|
745
745
|
}, W = ze(() => {
|
|
746
746
|
switch (n == null ? void 0 : n.platform) {
|
|
@@ -770,19 +770,19 @@ const Gt = /* @__PURE__ */ fe(ut, [["render", Yt], ["__scopeId", "data-v-3f5e9b4
|
|
|
770
770
|
return;
|
|
771
771
|
}
|
|
772
772
|
if (!(n != null && n.content) || ((ee = n == null ? void 0 : n.content) == null ? void 0 : ee.length) === 0) return;
|
|
773
|
-
X.value = !0,
|
|
773
|
+
X.value = !0, T.setImportLoading(!0);
|
|
774
774
|
let b = [], H = [];
|
|
775
775
|
U.setSelectTitle([]), U.setSelectIndex(""), U.setSelectMenu(""), (oe = (E = n == null ? void 0 : n.content) == null ? void 0 : E.filter((x) => x !== "")) == null || oe.forEach((x) => {
|
|
776
776
|
H.push(ft(x));
|
|
777
|
-
}), b = H == null ? void 0 : H[0], await wt(b), await ot(), t.setOriginalData(b),
|
|
777
|
+
}), b = H == null ? void 0 : H[0], await wt(b), await ot(), t.setOriginalData(b), T.setImportLoading(!1);
|
|
778
778
|
},
|
|
779
779
|
{ deep: !0, immediate: !0 }
|
|
780
|
-
), (b, H) => (I(),
|
|
780
|
+
), (b, H) => (I(), G("div", ra, [
|
|
781
781
|
c(sa, {
|
|
782
782
|
windowConfig: R.windowConfig,
|
|
783
783
|
showButton: R.showButton,
|
|
784
784
|
onBuildContent: se,
|
|
785
|
-
onShowChild:
|
|
785
|
+
onShowChild: K,
|
|
786
786
|
platform: n == null ? void 0 : n.platform
|
|
787
787
|
}, {
|
|
788
788
|
default: B(() => [
|
|
@@ -828,7 +828,7 @@ const Gt = /* @__PURE__ */ fe(ut, [["render", Yt], ["__scopeId", "data-v-3f5e9b4
|
|
|
828
828
|
},
|
|
829
829
|
emits: ["change", "contentChange", "buildContent", "openThreeBuild", "threeData"],
|
|
830
830
|
setup(R, { emit: ae }) {
|
|
831
|
-
const t = R, U = ae,
|
|
831
|
+
const t = R, U = ae, T = S([]), X = S(0), n = S([]), N = S([]), K = S(0), W = Pe(ie), k = Te(ie), { itemData: se, originalData: b } = de(W), { activeMenuPath: H, platform: Z } = de(k), ee = S(null), E = S(0), oe = S([]);
|
|
832
832
|
S("");
|
|
833
833
|
const x = S(0), we = () => {
|
|
834
834
|
U("buildContent");
|
|
@@ -838,17 +838,18 @@ const Gt = /* @__PURE__ */ fe(ut, [["render", Yt], ["__scopeId", "data-v-3f5e9b4
|
|
|
838
838
|
async () => {
|
|
839
839
|
let h = {};
|
|
840
840
|
if ((t == null ? void 0 : t.pageKey) !== "") {
|
|
841
|
-
const
|
|
842
|
-
|
|
843
|
-
|
|
841
|
+
const j = await Re(t == null ? void 0 : t.pageKey, sessionStorage.getItem("systemKey"), ""), P = await Re("弯管仿真加工分析/管件解析", sessionStorage.getItem("systemKey"), "");
|
|
842
|
+
console.log(232, j, P);
|
|
843
|
+
let D = ["管长", "外径"], L = {};
|
|
844
|
+
P == null || P.forEach((u) => {
|
|
844
845
|
var te;
|
|
845
846
|
(u == null ? void 0 : u.comp) === "Form" && ((te = u == null ? void 0 : u.compData) == null || te.forEach((J) => {
|
|
846
847
|
var re;
|
|
847
848
|
(J == null ? void 0 : J.key) === "formContent" && ((re = J == null ? void 0 : J.contents) == null || re.forEach((z) => {
|
|
848
|
-
|
|
849
|
+
D.includes(z == null ? void 0 : z.key) && (L[z.key] = z.value);
|
|
849
850
|
}));
|
|
850
851
|
}));
|
|
851
|
-
}),
|
|
852
|
+
}), j == null || j.forEach((u) => {
|
|
852
853
|
var te, J, re, z, Ee, Qe;
|
|
853
854
|
if ((u == null ? void 0 : u.comp) === "Table") {
|
|
854
855
|
let ke = [], a = (re = (J = (te = u == null ? void 0 : u.compData) == null ? void 0 : te.find((o) => (o == null ? void 0 : o.key) === "header")) == null ? void 0 : J.contents) == null ? void 0 : re.map((o) => o == null ? void 0 : o.label), r = (Qe = (Ee = (z = u == null ? void 0 : u.compData) == null ? void 0 : z.find((o) => (o == null ? void 0 : o.key) === "tableContents")) == null ? void 0 : Ee.contents) == null ? void 0 : Qe.map((o) => (o = o == null ? void 0 : o.filter((d) => !(d != null && d.id)), o));
|
|
@@ -856,7 +857,7 @@ const Gt = /* @__PURE__ */ fe(ut, [["render", Yt], ["__scopeId", "data-v-3f5e9b4
|
|
|
856
857
|
ke.push(at(o, a == null ? void 0 : a.filter((d) => d !== "操作")));
|
|
857
858
|
}), h[u.name] = ke, h[u.name + "Content"] = u;
|
|
858
859
|
}
|
|
859
|
-
}), h.extra = L, U("threeData", h);
|
|
860
|
+
}), h.extra = L, console.log(2321, h), U("threeData", h);
|
|
860
861
|
}
|
|
861
862
|
},
|
|
862
863
|
{ deep: !0, immediate: !0 }
|
|
@@ -877,22 +878,22 @@ const Gt = /* @__PURE__ */ fe(ut, [["render", Yt], ["__scopeId", "data-v-3f5e9b4
|
|
|
877
878
|
const Ce = (h) => {
|
|
878
879
|
U("contentChange", h);
|
|
879
880
|
}, ve = (h) => {
|
|
880
|
-
var
|
|
881
|
-
const
|
|
881
|
+
var P;
|
|
882
|
+
const j = (P = ye(h == null ? void 0 : h.wholeValue)) == null ? void 0 : P.map((D) => {
|
|
882
883
|
var L;
|
|
883
|
-
return (
|
|
884
|
+
return (D == null ? void 0 : D.comp) === "Form" && (D.compData = (L = D.compData) == null ? void 0 : L.map((u) => ((u == null ? void 0 : u.key) === "formContent" && (u.contents = kt(u == null ? void 0 : u.contents)), u))), D;
|
|
884
885
|
});
|
|
885
886
|
U("change", {
|
|
886
887
|
originalContents: b.value,
|
|
887
888
|
currentContents: h == null ? void 0 : h.wholeValue,
|
|
888
889
|
editContent: h == null ? void 0 : h.editValue,
|
|
889
|
-
arrayToContents:
|
|
890
|
+
arrayToContents: j
|
|
890
891
|
});
|
|
891
892
|
};
|
|
892
893
|
$(
|
|
893
894
|
() => n.value,
|
|
894
895
|
() => {
|
|
895
|
-
x.value === n.value.length && n.value.length !== 0 && (
|
|
896
|
+
x.value === n.value.length && n.value.length !== 0 && (T.value = n.value);
|
|
896
897
|
},
|
|
897
898
|
{ deep: !0, immediate: !0 }
|
|
898
899
|
);
|
|
@@ -900,10 +901,10 @@ const Gt = /* @__PURE__ */ fe(ut, [["render", Yt], ["__scopeId", "data-v-3f5e9b4
|
|
|
900
901
|
ee.value !== null && ee.value.click();
|
|
901
902
|
}, je = async (h) => {
|
|
902
903
|
k.setActiveMenuPath(""), k.setActiveTopMenuPath(""), k.setAsideMenus([]);
|
|
903
|
-
const
|
|
904
|
-
if (!
|
|
905
|
-
new FileReader(),
|
|
906
|
-
const
|
|
904
|
+
const j = h.target.files;
|
|
905
|
+
if (!j) return;
|
|
906
|
+
new FileReader(), T.value = [], n.value = [], x.value = j.length;
|
|
907
|
+
const P = Array.from(j).map(async (D) => await new Promise((L) => {
|
|
907
908
|
const u = new FileReader();
|
|
908
909
|
u.onload = (te) => {
|
|
909
910
|
try {
|
|
@@ -912,14 +913,14 @@ const Gt = /* @__PURE__ */ fe(ut, [["render", Yt], ["__scopeId", "data-v-3f5e9b4
|
|
|
912
913
|
console.error("解析失败:", J);
|
|
913
914
|
return;
|
|
914
915
|
}
|
|
915
|
-
}, u.onerror = () => L(`读取 ${
|
|
916
|
+
}, u.onerror = () => L(`读取 ${D.name} 失败`), u.readAsText(D), h.target.value = "", ee.value = null, X.value++;
|
|
916
917
|
}));
|
|
917
|
-
await Promise.all(
|
|
918
|
+
await Promise.all(P);
|
|
918
919
|
};
|
|
919
920
|
return $(
|
|
920
921
|
() => [t == null ? void 0 : t.content, t == null ? void 0 : t.jsonContents],
|
|
921
922
|
async () => {
|
|
922
|
-
await ot(),
|
|
923
|
+
await ot(), T.value = t.content, N.value = t == null ? void 0 : t.jsonContents;
|
|
923
924
|
},
|
|
924
925
|
{ deep: !0, immediate: !0 }
|
|
925
926
|
), $(
|
|
@@ -929,16 +930,16 @@ const Gt = /* @__PURE__ */ fe(ut, [["render", Yt], ["__scopeId", "data-v-3f5e9b4
|
|
|
929
930
|
((h = oe.value) == null ? void 0 : h.length) !== 0 && (W.setOriginalData(oe.value), W.setItemData(oe.value));
|
|
930
931
|
},
|
|
931
932
|
{ deep: !0, immediate: !0 }
|
|
932
|
-
), (h,
|
|
933
|
-
const
|
|
934
|
-
return I(),
|
|
935
|
-
(t == null ? void 0 : t.mode) === "edit" ? (I(),
|
|
933
|
+
), (h, j) => {
|
|
934
|
+
const P = V("svg-icon"), D = V("el-button");
|
|
935
|
+
return I(), G("div", ua, [
|
|
936
|
+
(t == null ? void 0 : t.mode) === "edit" ? (I(), G("div", ga, [
|
|
936
937
|
C("div", da, [
|
|
937
938
|
c(_e)
|
|
938
939
|
]),
|
|
939
|
-
(I(),
|
|
940
|
+
(I(), G("div", {
|
|
940
941
|
class: "model-show",
|
|
941
|
-
key:
|
|
942
|
+
key: K.value
|
|
942
943
|
}, [
|
|
943
944
|
c($e)
|
|
944
945
|
])),
|
|
@@ -946,31 +947,31 @@ const Gt = /* @__PURE__ */ fe(ut, [["render", Yt], ["__scopeId", "data-v-3f5e9b4
|
|
|
946
947
|
c(et)
|
|
947
948
|
])
|
|
948
949
|
])) : M("", !0),
|
|
949
|
-
(t == null ? void 0 : t.mode) === "view" ? (I(),
|
|
950
|
+
(t == null ? void 0 : t.mode) === "view" ? (I(), G("div", ha, [
|
|
950
951
|
(I(), _(ca, {
|
|
951
952
|
showButton: R.showButton,
|
|
952
953
|
platform: i(Z),
|
|
953
|
-
content:
|
|
954
|
+
content: T.value,
|
|
954
955
|
onChange: ve,
|
|
955
956
|
jsonContents: N.value,
|
|
956
957
|
onContentChange: Ce,
|
|
957
958
|
onBuildContent: we,
|
|
958
|
-
key:
|
|
959
|
+
key: K.value,
|
|
959
960
|
onShowChild: me
|
|
960
961
|
}, {
|
|
961
962
|
default: B(() => {
|
|
962
963
|
var L;
|
|
963
964
|
return [
|
|
964
|
-
((L = t == null ? void 0 : t.jsonContents) == null ? void 0 : L.length) === 0 && (t != null && t.showButton) ? (I(), _(
|
|
965
|
+
((L = t == null ? void 0 : t.jsonContents) == null ? void 0 : L.length) === 0 && (t != null && t.showButton) ? (I(), _(D, {
|
|
965
966
|
key: 0,
|
|
966
967
|
class: "system-default-button",
|
|
967
968
|
onClick: be
|
|
968
969
|
}, {
|
|
969
970
|
icon: B(() => [
|
|
970
|
-
c(
|
|
971
|
+
c(P, { name: "import" })
|
|
971
972
|
]),
|
|
972
973
|
default: B(() => [
|
|
973
|
-
(I(),
|
|
974
|
+
(I(), G("input", {
|
|
974
975
|
type: "file",
|
|
975
976
|
key: X.value,
|
|
976
977
|
ref_key: "fileInput",
|
|
@@ -980,7 +981,7 @@ const Gt = /* @__PURE__ */ fe(ut, [["render", Yt], ["__scopeId", "data-v-3f5e9b4
|
|
|
980
981
|
style: { display: "none" },
|
|
981
982
|
multiple: ""
|
|
982
983
|
}, null, 32)),
|
|
983
|
-
|
|
984
|
+
j[0] || (j[0] = le(" 导入模型 "))
|
|
984
985
|
]),
|
|
985
986
|
_: 1,
|
|
986
987
|
__: [0]
|
|
@@ -993,7 +994,7 @@ const Gt = /* @__PURE__ */ fe(ut, [["render", Yt], ["__scopeId", "data-v-3f5e9b4
|
|
|
993
994
|
]);
|
|
994
995
|
};
|
|
995
996
|
}
|
|
996
|
-
}, Fa = /* @__PURE__ */ fe(ma, [["__scopeId", "data-v-
|
|
997
|
+
}, Fa = /* @__PURE__ */ fe(ma, [["__scopeId", "data-v-ffb37532"]]);
|
|
997
998
|
export {
|
|
998
999
|
Fa as default
|
|
999
1000
|
};
|