ss-component-new 1.1.932 → 1.1.934
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/{animationData-CJoi8EHj.cjs → animationData-C-Vhh6kd.cjs} +1 -1
- package/dist/{animationData-Bl5U0f11.js → animationData-CZnLKYGi.js} +1 -1
- package/dist/{index-CSHB1ghB.js → index-AhWGxkoe.js} +1 -1
- package/dist/{index-bxlve8n3.cjs → index-B04Kq9cp.cjs} +1 -1
- package/dist/{index-B_KEYjr2.js → index-B1FOJFho.js} +1 -1
- package/dist/{index-BLGduMtm.js → index-B490RPkE.js} +1 -1
- package/dist/{index-hQ7jm9E0.cjs → index-BMm9w4wJ.cjs} +1 -1
- package/dist/{index-BFQrU6yB.js → index-Bcb7MT0h.js} +1 -1
- package/dist/{index-DbhntwqN.js → index-BesDlODm.js} +1 -1
- package/dist/{index-DEOk0YTW.js → index-BgUPnFxl.js} +5 -5
- package/dist/{index-CA0VAwaZ.cjs → index-BlR8BgYU.cjs} +1 -1
- package/dist/{index-CXsh2951.js → index-Bpb27hOf.js} +4 -4
- package/dist/{index-BdvAodtW.js → index-Br3ycljl.js} +2 -2
- package/dist/{index-TLW-ZW6I.js → index-CCaVK0Fv.js} +1 -1
- package/dist/{index-CPnu7Sdm.cjs → index-CKkjzOd7.cjs} +1 -1
- package/dist/{index-D8yzRKqB.cjs → index-CLYAU4Bv.cjs} +1 -1
- package/dist/{index-DFW6i6ze.js → index-CXKJeulv.js} +1 -1
- package/dist/{index-RMGbEqzy.cjs → index-CZGnlJGT.cjs} +1 -1
- package/dist/{index-MIyrvkau.cjs → index-D-3fF6TB.cjs} +1 -1
- package/dist/{index-2OZqMWi2.cjs → index-D7MOua7k.cjs} +1 -1
- package/dist/{index-DVMiwxEt.cjs → index-D8GoeWY0.cjs} +1 -1
- package/dist/{index-Jevx-4ON.cjs → index-DCezW4Zq.cjs} +1 -1
- package/dist/{index-DGCgtxs-.js → index-DEiiJ6II.js} +3 -3
- package/dist/{index-dhbEPWB6.js → index-DK5TKq7J.js} +2 -2
- package/dist/{index-BGovDDzN.js → index-DLgYSR8v.js} +12 -12
- package/dist/{index-B5nzRDqh.js → index-DOB3ant_.js} +1 -1
- package/dist/{index-CNU7d7BP.cjs → index-DWiFsJaj.cjs} +1 -1
- package/dist/{index-klF_U9uq.cjs → index-DcmI1Ezf.cjs} +1 -1
- package/dist/{index-B5Ze3Up0.js → index-DkD9TLDG.js} +2 -2
- package/dist/{index-BA30l-Rf.cjs → index-DmJwUekD.cjs} +1 -1
- package/dist/{index-BXc-yYrr.cjs → index-Dnsf-lNO.cjs} +1 -1
- package/dist/{index-DhqPuiAP.cjs → index-DotFCz_6.cjs} +1 -1
- package/dist/{index-BcfIz5jd.js → index-DrlR8RyW.js} +2 -2
- package/dist/{index-DRRxQ44_.js → index-DtP4o6Oq.js} +3 -3
- package/dist/{index-CP9rVLM_.cjs → index-T0o1wRlZ.cjs} +1 -1
- package/dist/{index-TzM9Zz3h.js → index-VvoVCyKQ.js} +1 -1
- package/dist/{index-DzWpT7EL.cjs → index-bYKPPnko.cjs} +1 -1
- package/dist/{index-BrEpH8zy.cjs → index-dYWZHgcH.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_6ecb5a6a_lang-DJurQIhg.cjs → index.vue_vue_type_style_index_0_scoped_6ecb5a6a_lang-C_1fMFih.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_6ecb5a6a_lang-BhqNf0OZ.js → index.vue_vue_type_style_index_0_scoped_6ecb5a6a_lang-CsSj_Nen.js} +4 -4
- package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-CDnDH35I.js → index.vue_vue_type_style_index_0_scoped_92477073_lang-d_p0G8dv.js} +3 -3
- package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-PO8hN1S9.cjs → index.vue_vue_type_style_index_0_scoped_92477073_lang-hVMC2VtX.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_1_lang-CEX7hUSh.js → index.vue_vue_type_style_index_1_lang-CN086SwB.js} +1 -1
- package/dist/{index.vue_vue_type_style_index_1_lang-S2jiZTM0.cjs → index.vue_vue_type_style_index_1_lang-cRjC1RKB.cjs} +1 -1
- package/dist/{main-zgytmFAE.cjs → main-0mngwKbd.cjs} +1 -1
- package/dist/{main-f6RtANdY.js → main-Mlo21tdK.js} +2 -2
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +6 -6
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +10 -10
- package/dist/{threeLatheView-BBvsSjV2.js → threeLatheView-C7wL-aDx.js} +1 -1
- package/dist/{threeLatheView-JVT-bZCz.cjs → threeLatheView-CNYiK5MG.cjs} +1 -1
- package/dist/{threeModel-BzWPiRPd.cjs → threeModel-DWlM-G1m.cjs} +1 -1
- package/dist/{threeModel-6YPwlQgU.js → threeModel-DzU1OXcT.js} +2 -2
- package/dist/{threeSceneView-C717odPU.cjs → threeSceneView-CCO--sou.cjs} +1 -1
- package/dist/{threeSceneView-DPh7VAvm.js → threeSceneView-je2ezT6E.js} +3 -3
- package/dist/{threeSceneViewForCPMPIP-D8vYAb-1.cjs → threeSceneViewForCPMPIP-Bvn_p0iN.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-DPXJadii.js → threeSceneViewForCPMPIP-J9Qg5llK.js} +1 -1
- package/dist/{threeViewerHost-Kg3DQfFE.cjs → threeViewerHost-CTzBt7Ov.cjs} +1 -1
- package/dist/{threeViewerHost-DWnDyQSE.js → threeViewerHost-DPBcQYLD.js} +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const y=require("./index.vue_vue_type_style_index_1_lang-CllbOzlH.cjs"),T=require("./xlsx-BPHygxEf.cjs"),_=require("./threeViewerHost-
|
|
1
|
+
"use strict";const y=require("./index.vue_vue_type_style_index_1_lang-CllbOzlH.cjs"),T=require("./xlsx-BPHygxEf.cjs"),_=require("./threeViewerHost-CTzBt7Ov.cjs"),U=require("./index-1z9RrjZc.cjs");function P(r){try{const c=new URL(r).pathname,i=c.substring(c.lastIndexOf("/")+1);return decodeURIComponent(i)}catch(c){return console.error("无法解析URL以提取文件名:",r,c),"未知文件名"}}function S(r){if(!r)return;const c=r.match(/filename\*\s*=\s*([^;]+)/i);if(c){let n=c[1].trim();n=n.replace(/^"(.*)"$/,"$1");const h=n.split("''");if(h.length===2){const m=h[0].toUpperCase(),f=h[1];try{if(m==="UTF-8")return decodeURIComponent(f)}catch{}return f}try{return decodeURIComponent(n)}catch{return n}}const i=r.match(/filename\s*=\s*("?)([^";]+)\1/i);if(i)return i[2].trim()}async function K(r){let c,i;if(/^https?:\/\//.test(r))try{const n=await fetch(r,{method:"GET",cache:"no-store"});if(!n.ok)throw new Error(`下载文件失败: ${n.statusText} (URL: ${r})`);c=await n.blob(),i=P(r)}catch(n){throw console.error("使用 fetch 下载文件时出错:",n),n}else try{const n=await _.downloadAvatarApi({url:r});if(n.status!==200)throw new Error(`下载失败: ${n.status}`);const h=n.headers["content-disposition"];i=S(h)||"无文件名",c=n.data}catch(n){throw console.error("通过 API 下载文件时出错:",n),n}return new File([c],i,{type:c.type})}function N(r){return new Promise((c,i)=>{const n=new FileReader;n.onload=h=>{var m;try{const f=(m=h.target)==null?void 0:m.result,u=T.readSync(f,{type:"array"}),F=u.Sheets[u.SheetNames[0]],E=T.utils.sheet_to_json(F);c(E)}catch(f){i(f)}},n.readAsArrayBuffer(r)})}const V=async()=>{const r="弯管仿真加工分析";let c={};const i=sessionStorage.getItem("systemKey"),n=await y.getItemData(`${r}/管件解析`,i,"");let h=["管长","外径"],m={};n==null||n.forEach(e=>{var s;(e==null?void 0:e.comp)==="Form"&&((s=e==null?void 0:e.compData)==null||s.forEach(o=>{var l;(o==null?void 0:o.key)==="formContent"&&((l=o==null?void 0:o.contents)==null||l.forEach(a=>{h.includes(a==null?void 0:a.key)&&(m[a.key]=a.value)}))}))});const f=m.管长,u=m.外径;console.log("管长",f,"外径",u,m);const F=f,E=u/2,d=await y.getItemData(`${r}/加工位姿生成`,i,"");let A=["夹持长度"],g={};d==null||d.forEach(e=>{var s;(e==null?void 0:e.comp)==="Form"&&((s=e==null?void 0:e.compData)==null||s.forEach(o=>{var l;(o==null?void 0:o.key)==="formContent"&&((l=o==null?void 0:o.contents)==null||l.forEach(a=>{A.includes(a==null?void 0:a.key)&&(g[a.key]=a.value)}))}))});const k=g.夹持长度;console.log("夹持长度",k,g);const $=Number(k),w={},b=await y.getItemData(`${r}/仿真动画生成`,i,"");b==null||b.forEach(e=>{var s,o,l,a,R,L;if((e==null?void 0:e.comp)==="Table"){let x=[],D=(l=(o=(s=e==null?void 0:e.compData)==null?void 0:s.find(t=>(t==null?void 0:t.key)==="header"))==null?void 0:o.contents)==null?void 0:l.map(t=>t==null?void 0:t.label),C=(L=(R=(a=e==null?void 0:e.compData)==null?void 0:a.find(t=>(t==null?void 0:t.key)==="tableContents"))==null?void 0:R.contents)==null?void 0:L.map(t=>(t=t==null?void 0:t.filter(p=>!(p!=null&&p.id)),t));C==null||C.forEach(t=>{x.push(y.getValueToObjectValue(t,D==null?void 0:D.filter(p=>p!=="操作")))}),w[e.name]=x,w[e.name+"Content"]=e}});const I=U.cloneDeep(w);return c={initialPipeLength:F,pipeRadius:E,clampLength:$,animationData:I},c},q=async()=>{const r="双弯管仿真加工分析";let c={};const i=sessionStorage.getItem("systemKey"),n=await y.getItemData(`${r}/管件解析`,i,"");let h=["管长","外径"],m={};n==null||n.forEach(e=>{var s;(e==null?void 0:e.comp)==="Form"&&((s=e==null?void 0:e.compData)==null||s.forEach(o=>{var l;(o==null?void 0:o.key)==="formContent"&&((l=o==null?void 0:o.contents)==null||l.forEach(a=>{h.includes(a==null?void 0:a.key)&&(m[a.key]=a.value)}))}))});const f=m.管长,u=m.外径;console.log("管长",f,"外径",u,m);const F=f,E=u/2,d=await y.getItemData(`${r}/加工工艺生成`,i,"");let A=["夹持位置"],g={};d==null||d.forEach(e=>{var s;(e==null?void 0:e.comp)==="Form"&&((s=e==null?void 0:e.compData)==null||s.forEach(o=>{var l;(o==null?void 0:o.key)==="formContent"&&((l=o==null?void 0:o.contents)==null||l.forEach(a=>{A.includes(a==null?void 0:a.key)&&(g[a.key]=a.value)}))}))});const k=g.夹持位置;console.log("夹持长度",k,g);const $=Number(k),w={},b=await y.getItemData(`${r}/仿真动画生成`,i,"");b==null||b.forEach(e=>{var s,o,l,a,R,L;if((e==null?void 0:e.comp)==="Table"){let x=[],D=(l=(o=(s=e==null?void 0:e.compData)==null?void 0:s.find(t=>(t==null?void 0:t.key)==="header"))==null?void 0:o.contents)==null?void 0:l.map(t=>t==null?void 0:t.label),C=(L=(R=(a=e==null?void 0:e.compData)==null?void 0:a.find(t=>(t==null?void 0:t.key)==="tableContents"))==null?void 0:R.contents)==null?void 0:L.map(t=>(t=t==null?void 0:t.filter(p=>!(p!=null&&p.id)),t));C==null||C.forEach(t=>{x.push(y.getValueToObjectValue(t,D==null?void 0:D.filter(p=>p!=="操作")))}),w[e.name]=x,w[e.name+"Content"]=e}});const I=U.cloneDeep(w);return c={initialPipeLength:F,pipeRadius:E,clampLength:$,animationData:I},c},B=async r=>await K(r),j=async r=>await N(r),X=async r=>{const c=await B(r);return await j(c)};exports.fetchDoubleRobotAnimationData=q;exports.fetchSingleRobotAnimationData=V;exports.initXYZBCList=X;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as C, j as x } from "./index.vue_vue_type_style_index_1_lang-CKG-47Pf.js";
|
|
2
2
|
import { r as K, u as S } from "./xlsx-ByPOQ6N_.js";
|
|
3
|
-
import { d as I } from "./threeViewerHost-
|
|
3
|
+
import { d as I } from "./threeViewerHost-DPBcQYLD.js";
|
|
4
4
|
import { c as P } from "./index-BQYjK74w.js";
|
|
5
5
|
function N(r) {
|
|
6
6
|
try {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as b } from "./index.vue_vue_type_style_index_0_scoped_92477073_lang-
|
|
1
|
+
import { _ as b } from "./index.vue_vue_type_style_index_0_scoped_92477073_lang-d_p0G8dv.js";
|
|
2
2
|
import { resolveComponent as r, createElementBlock as i, openBlock as n, Fragment as p, createVNode as l, createCommentVNode as k, withCtx as s, createElementVNode as d, normalizeStyle as w, toDisplayString as c, renderList as v, createTextVNode as _, createBlock as B, resolveDynamicComponent as I } from "vue";
|
|
3
3
|
import { _ as L } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
const V = ["title"], $ = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),N=require("./index-
|
|
1
|
+
"use strict";const e=require("vue"),N=require("./index-bYKPPnko.cjs"),s=require("./index-1z9RrjZc.cjs"),B=require("./index.vue_vue_type_style_index_1_lang-CllbOzlH.cjs");require("./array-7dwJEV9V.cjs");const I=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),A=require("./index-DEEZPcpU.cjs"),O=require("./index-BMm9w4wJ.cjs"),L={class:"type-select"},j=["onClick"],z={class:"list-icon"},H={__name:"index",setup(S){const p=B.useModelComp(s.pinia),{itemData:r,activeItemIndex:D}=s.storeToRefs(p),C=u=>{var k;let i=null;const h=s.cloneDeep(r.value);if(D.value>=0&&(i=h==null?void 0:h[D.value]),i&&i.comp==="Layout"){const{compData:g=[]}=i;((k=g==null?void 0:g.find(E=>{const{key:w}=E;return w==="children"}))==null?void 0:k.contents).push({comp:u.comp,name:u.name,compData:[]}),p.setItemData(h);return}const d=s.cloneDeep(r.value);d.push({comp:u.comp,name:u.name,compData:[]}),p.setItemData(d)};return(u,i)=>{const h=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",L,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(N.slotContent),(d,k)=>(e.openBlock(),e.createElementBlock("div",{class:"type-list",key:k},[e.createElementVNode("div",{class:"list-content",onClick:g=>C(d)},[e.createElementVNode("div",z,[e.createVNode(h,{name:d.icon},null,8,["name"])]),e.createElementVNode("div",null,e.toDisplayString(d.name),1)],8,j)]))),128))])}}},G=I._export_sfc(H,[["__scopeId","data-v-2cd8410b"]]),J={class:"fill-content"},K={class:"operate-content"},Q=["onClick"],W={class:"collapse-title-item"},X={key:1},Y=["onClick"],Z={class:"icon-content"},P={key:0,class:"edit-content"},ee=["onClick"],te=["onClick"],ne={class:"parent-main"},oe={style:{display:"flex","justify-content":"space-between"}},le={__name:"index",setup(S){const p=B.useModelComp(s.pinia),{itemData:r,originalData:D}=s.storeToRefs(p),C=e.ref([]);e.ref([]);const u=e.ref([]),i=e.ref([]),h=e.ref([]),d=l=>{var a;let o=(a=s.cloneDeep(i.value))==null?void 0:a.map((n,t)=>(l===t&&(n.content=!0),n));i.value=o},k=l=>{var a;let o=(a=s.cloneDeep(i.value))==null?void 0:a.map((n,t)=>(l===t&&(n.content=!1),n));i.value=o,C.value=s.cloneDeep(r.value)},g=(l,o)=>{var v;let a=(v=s.cloneDeep(i.value))==null?void 0:v.map((_,c)=>(l===c&&(_.content=!1),_));i.value=a;const n=s.cloneDeep(r.value),t=n==null?void 0:n.filter((_,c)=>(c===l&&(_.name=o),_));p.setOriginalData(t),p.setItemData(t)},x=l=>{const o=s.cloneDeep(r.value),a=o==null?void 0:o.map((n,t)=>((n==null?void 0:n.name)===(l==null?void 0:l.name)?n.isShow=!(l!=null&&l.isShow):n.isShow=n.isShow,n));r.value=a};e.watch(()=>r.value,()=>{var l,o,a,n;!r.value||((l=r.value)==null?void 0:l.length)===0?C.value=[]:C.value=(o=s.cloneDeep(r.value))==null?void 0:o.filter(t=>(t==null?void 0:t.comp)!=="methodButton"),u.value=C.value,i.value=(a=s.cloneDeep(u.value))==null?void 0:a.map((t,v)=>({id:v,content:!1})),h.value=(n=s.cloneDeep(u.value))==null?void 0:n.map((t,v)=>({id:v,isShow:t==null?void 0:t.isShow}))},{deep:!0,immediate:!0});const E=l=>N.getComponent(l),w=(l,o,a,n)=>{var v,_;if(!l)return;let t=s.cloneDeep(r.value);t=(v=t==null?void 0:t.map((c,f)=>{if(n&&f===a){const{compData:y,itemChildData:V}=l;return c.compData=y,c.itemChildData=V,c}return f===a&&(c.compData=l),c}))==null?void 0:v.filter(c=>(c==null?void 0:c.comp)!=="methodButton"),i.value=(_=s.cloneDeep(t))==null?void 0:_.map((c,f)=>({id:f,content:!1})),p.setOriginalData(t),p.setItemData(t)},U=e.ref(null),$=(l,o)=>{if(!o){p.setActiveItemIndex(l);return}p.setActiveItemIndex(-1)},b=l=>{B.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{const o=s.cloneDeep(r.value),a=o==null?void 0:o.filter((n,t)=>t!==l);p.setOriginalData(a),p.setItemData(a),p.setActiveItemIndex(-1),s.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(l,o)=>{const a=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",J,[o[3]||(o[3]=e.createElementVNode("div",{class:"fill-operate"},e.toDisplayString("操作栏"),-1)),e.createElementVNode("div",K,[e.createVNode(A.default,{class:"collapse-content",collapseContents:C.value,ref_key:"ssCollapseRef",ref:U},{title:e.withCtx(({item:n,index:t,isActive:v})=>{var _,c,f,y,V,M,q,R,F,T;return[e.createElementVNode("div",{class:"collapse-title-content",onClick:m=>$(t,v)},[e.createElementVNode("div",W,[(c=(_=i.value)==null?void 0:_.find(m=>m.id===t))!=null&&c.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"collapse-title",style:e.normalizeStyle({marginRight:n.name&&n.name!==""?"8px":"0px"})},e.toDisplayString(n.name),5)),(y=(f=i.value)==null?void 0:f.find(m=>m.id===t))!=null&&y.content?(e.openBlock(),e.createElementBlock("div",X,[e.createVNode(O._sfc_main$2,{modelValue:n.name,"onUpdate:modelValue":m=>n.name=m,onClick:o[0]||(o[0]=e.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue"])])):e.createCommentVNode("",!0),(M=(V=i.value)==null?void 0:V.find(m=>m.id===t))!=null&&M.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:2,onClick:e.withModifiers(m=>d(t),["stop"]),class:"icon-content"},[e.createVNode(a,{name:"Edit",style:{width:"16px",height:"16px"}})],8,Y))]),e.createElementVNode("div",Z,[(R=(q=i.value)==null?void 0:q.find(m=>m.id===t))!=null&&R.content?(e.openBlock(),e.createElementBlock("div",P,[e.createVNode(a,{name:"Cancel",style:{width:"16px",height:"16px"},class:"icon-content",onClick:e.withModifiers(m=>k(t),["stop"])},null,8,["onClick"]),e.createVNode(a,{name:"Save",onClick:e.withModifiers(m=>g(t,n.name),["stop"]),style:{width:"16px",height:"16px",fill:"var(--ssComponent-primary-color)"},class:"icon-content"},null,8,["onClick"])])):e.createCommentVNode("",!0),(T=(F=i.value)==null?void 0:F.find(m=>m.id===t))!=null&&T.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,onClick:e.withModifiers(m=>b(t),["stop"]),class:"icon-content"},[e.createVNode(a,{name:"Delete",style:{width:"16px",height:"16px"}})],8,ee))])],8,Q)]}),content:e.withCtx(({item:n,index:t})=>{var v,_;return[e.createElementVNode("div",{class:"comp-child",onClick:c=>$(t)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(E(n.comp+"Operate")),{itemContents:n==null?void 0:n.compData,originalItemContents:(_=(v=u.value)==null?void 0:v.find((c,f)=>f===t))==null?void 0:_.compData,itemChildData:n==null?void 0:n.itemChildData,onChange:(c,f)=>w(c,n,t,f)},null,40,["itemContents","originalItemContents","itemChildData","onChange"]))],8,te),e.createElementVNode("div",ne,[o[2]||(o[2]=e.createElementVNode("div",{class:"operate-title"},[e.createElementVNode("div",null,e.toDisplayString("显隐控制"))],-1)),e.createElementVNode("div",oe,[o[1]||(o[1]=e.createElementVNode("div",{class:"operate-center-content"},e.toDisplayString("是否显示"),-1)),e.createVNode(O._sfc_main$1,{value:h.value.find(c=>c.id===t).isShow,"onUpdate:value":c=>h.value.find(f=>f.id===t).isShow=c,onClick:c=>x(n)},null,8,["value","onUpdate:value","onClick"])])])]}),_:1},8,["collapseContents"])])])}}},ce=I._export_sfc(le,[["__scopeId","data-v-1f5fca05"]]),ae={key:0,class:"show-content"},se={style:{display:"flex"}},ie={__name:"index",setup(S){const p=B.useModelComp(s.pinia),{itemData:r}=s.storeToRefs(p),D=e.ref([]);e.watch(()=>r.value,()=>{var u;!r.value||((u=r.value)==null?void 0:u.length)===0?D.value=[]:D.value=s.cloneDeep(r.value)},{deep:!0,immediate:!0});const C=u=>N.getComponent(u);return(u,i)=>{var h;return((h=D.value)==null?void 0:h.length)>0?(e.openBlock(),e.createElementBlock("div",ae,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(D.value,(d,k)=>(e.openBlock(),e.createElementBlock("div",{class:"item-content",key:k},[e.createElementVNode("div",se,e.toDisplayString(d.name),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(C(d.comp)),{itemData:d==null?void 0:d.compData,childItemData:d==null?void 0:d.itemChildData,key:k},null,8,["itemData","childItemData"]))]))),128))])):e.createCommentVNode("",!0)}}},re=I._export_sfc(ie,[["__scopeId","data-v-bfa22d29"]]);exports.modelFill=ce;exports.modelSelect=G;exports.modelShow=re;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref as i, computed as j, reactive as ie, nextTick as B, watch as ye } from "vue";
|
|
2
2
|
import { u as be, a as he, aG as Ce } from "./index.vue_vue_type_style_index_1_lang-CKG-47Pf.js";
|
|
3
3
|
import { c as q, s as Ie, g as G, by as ke, E as S, p as J, e as ae, f as oe, bq as Te, d as Me } from "./index-BQYjK74w.js";
|
|
4
|
-
import { u as Se } from "./index-
|
|
4
|
+
import { u as Se } from "./index-DtP4o6Oq.js";
|
|
5
5
|
const F = he(J), ne = Se(J), C = be(J), { menus: ue, configMenu: R, activeMenuPath: U, cacheStructures: K } = Ie(C), $ = i(!1), se = j(() => {
|
|
6
6
|
var e, t;
|
|
7
7
|
return [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as n, reactive as o, onMounted as r, createElementBlock as s, openBlock as c, createVNode as m } from "vue";
|
|
2
|
-
import { s as u } from "./index-
|
|
2
|
+
import { s as u } from "./index-DtP4o6Oq.js";
|
|
3
3
|
import { S as i } from "./index-DvuTELjt.js";
|
|
4
4
|
import { u as p, aH as l } from "./index.vue_vue_type_style_index_1_lang-CKG-47Pf.js";
|
|
5
5
|
import { s as d } from "./index-BQYjK74w.js";
|