ss-component-new 1.3.432 → 1.3.433

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.
@@ -148,7 +148,7 @@ const ee = { key: 0 }, te = /* @__PURE__ */ O({
148
148
  }, C = () => {
149
149
  var m, a;
150
150
  const t = e != null && e.windowConfig ? (m = e == null ? void 0 : e.windowConfig) == null ? void 0 : m.width : window.innerWidth, n = e != null && e.windowConfig ? (a = e == null ? void 0 : e.windowConfig) == null ? void 0 : a.height : window.innerHeight;
151
- console.log(232, n), y.setSystemHeight(n);
151
+ console.log(232, n, e == null ? void 0 : e.windowConfig), y.setSystemHeight(n);
152
152
  const i = 1920, c = 16, l = t / i, s = c * l;
153
153
  document.documentElement.style.fontSize = `${s}px`;
154
154
  };
@@ -188,7 +188,7 @@ const ee = { key: 0 }, te = /* @__PURE__ */ O({
188
188
  ]);
189
189
  };
190
190
  }
191
- }), ce = /* @__PURE__ */ p(te, [["__scopeId", "data-v-c2fe6ea3"]]);
191
+ }), ce = /* @__PURE__ */ p(te, [["__scopeId", "data-v-247ac03a"]]);
192
192
  export {
193
193
  ce as default
194
194
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),a=require("./index-xN3pvlzo.cjs"),K=require("./index-DoorIpTj.cjs"),U=require("vue-router"),b=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),H={key:0},O=o.defineComponent({__name:"index",props:{windowConfig:{type:Object,default:()=>{}},systemInfo:{type:Object,default:()=>{}},systemKey:{type:String,default:""},pathContent:{type:String,default:""},mode:{type:String,default:"view"},content:{type:String,default:""},jsonContents:{type:Array,default:()=>[]},showButton:{type:Boolean,default:!1},nodeDev:{type:String,default:""},pageKey:{type:String,default:""},interfaceContent:{type:Array,default:()=>[]},loginContent:{type:Object,default:()=>{}},menuFiles:{type:Array,default:()=>[]},workspaceHistoryData:{type:Array,default:()=>[]},workspaceInfo:{type:Object,default:()=>[]}},emits:["buildContent","openThreeBuild","threeData","setLoginInfo","projectLogin","updateApiUrl","clearFileContent","systemContent","getMenuPathValue","executeWorkspace"],setup(f,{emit:v}){const S=U.useRouter(),r=a.useLoginState(a.pinia),{loginUserInfo:y}=a.storeToRefs(r),{initSystemInfo:I}=a.useModelManagement(),k=a.useModelComp(a.pinia),{refreshLogin:L}=a.storeToRefs(k),g=a.useMenuState(a.pinia),w=o.ref(!0),{activeMenuPath:h}=a.storeToRefs(g),e=f,i=v,_=o.computed(()=>{var t,n;return(e==null?void 0:e.showButton)||((n=(t=y.value)==null?void 0:t.layer)==null?void 0:n.toUpperCase())==="SUPERADMIN"}),A=t=>{i("systemContent",t)},B=()=>{i("clearFileContent")};o.watch(()=>e==null?void 0:e.menuFiles,()=>{var t;((t=e==null?void 0:e.menuFiles)==null?void 0:t.length)>0&&g.setLocalFiles(e==null?void 0:e.menuFiles)},{deep:!0,immediate:!0}),o.watch(()=>h.value,()=>{i("getMenuPathValue",h.value)},{deep:!0,immediate:!0}),o.watch(()=>e==null?void 0:e.loginContent,async()=>{var n,s,l,d;w.value=!0;let t=e==null?void 0:e.loginContent;if(t!=null&&t.account&&(t!=null&&t.password)&&!L.value&&(await K.loginUp(t),status)){let u=await a.verifyStructureDataToStore();i("systemContent",u==null?void 0:u.allMenuContents),S.push("/"),r.setLogRecordAsync({type:"登录",data:{account:((n=y.value)==null?void 0:n.account)??((s=y.value)==null?void 0:s.账号),userName:((l=y.value)==null?void 0:l.姓名)||((d=y.value)==null?void 0:d.userName)||"未知"}},"/login","login"),g.setHasClickEditComp(!1)}w.value=!1,await o.nextTick()},{deep:!0,immediate:!0});const E=t=>{i("projectLogin",t)},D=()=>{i("projectLogin","")};o.watch(()=>[e==null?void 0:e.systemKey,e==null?void 0:e.systemInfo],async([t,n])=>{r.setSystemKey(t),t!==""&&sessionStorage.setItem("systemKey",t)},{immediate:!0}),o.watch(()=>e==null?void 0:e.interfaceContent,()=>{var s,l,d,u,m;if(!(e!=null&&e.interfaceContent)||Array.isArray(e==null?void 0:e.interfaceContent)&&((s=e==null?void 0:e.interfaceContent)==null?void 0:s.length)===0)return;let t=(l=e==null?void 0:e.interfaceContent)==null?void 0:l.find(c=>c==null?void 0:c.includes("VITE_API_NEW_URL")),n=(d=e==null?void 0:e.interfaceContent)==null?void 0:d.find(c=>c==null?void 0:c.includes("VITE_FACE_RECOGNITION_API_URL"));n=(u=n==null?void 0:n.split("="))==null?void 0:u[1],n=n==null?void 0:n.trim(),t=(m=t==null?void 0:t.split("="))==null?void 0:m[1],t=t==null?void 0:t.trim(),r.setExtraUrl(n??""),r.setSystemUrl(t??"")},{immediate:!0,deep:!0}),o.onMounted(async()=>{e.systemInfo?r.setSystemInfo(e.systemInfo):await I()});const j=()=>{i("buildContent")},F=()=>{i("setLoginInfo")},M=t=>{i("openThreeBuild",t)},T=t=>{i("threeData",t)},x=t=>{i("updateApiUrl",t)},R=t=>{i("executeWorkspace",t)},C=()=>{var m,c;const t=e!=null&&e.windowConfig?(m=e==null?void 0:e.windowConfig)==null?void 0:m.width:window.innerWidth,n=e!=null&&e.windowConfig?(c=e==null?void 0:e.windowConfig)==null?void 0:c.height:window.innerHeight;console.log(232,n),g.setSystemHeight(n);const s=1920,l=16,d=t/s,u=l*d;document.documentElement.style.fontSize=`${u}px`};return o.onMounted(()=>{C(),window.addEventListener("resize",C)}),o.onUnmounted(()=>{window.removeEventListener("resize",C)}),(t,n)=>{const s=o.resolveComponent("router-view");return o.openBlock(),o.createElementBlock("div",null,[w.value?(o.openBlock(),o.createElementBlock("div",H)):(o.openBlock(),o.createBlock(s,{key:1,mode:e==null?void 0:e.mode,content:e==null?void 0:e.content,jsonContents:e==null?void 0:e.jsonContents,pathContent:e==null?void 0:e.pathContent,showButton:_.value,nodeDev:e==null?void 0:e.nodeDev,windowConfig:f.windowConfig,systemInfo:f.systemInfo,"old-systemKey":f.systemKey,onBuildContent:j,onProjectLogin:E,onClearLogin:D,onUpdateApiUrl:x,onOpenThreeBuild:M,pageKey:f.pageKey,onThreeData:T,onSetLoginInfo:F,loginContent:e==null?void 0:e.loginContent,onClearFileContent:B,onSystemContent:A,onExecuteWorkspace:R,workspaceHistoryData:e==null?void 0:e.workspaceHistoryData,workspaceInfo:e==null?void 0:e.workspaceInfo},null,8,["mode","content","jsonContents","pathContent","showButton","nodeDev","windowConfig","systemInfo","old-systemKey","pageKey","loginContent","workspaceHistoryData","workspaceInfo"]))])}}}),P=b._export_sfc(O,[["__scopeId","data-v-c2fe6ea3"]]);exports.default=P;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),a=require("./index-xN3pvlzo.cjs"),K=require("./index-DoorIpTj.cjs"),U=require("vue-router"),b=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),H={key:0},O=o.defineComponent({__name:"index",props:{windowConfig:{type:Object,default:()=>{}},systemInfo:{type:Object,default:()=>{}},systemKey:{type:String,default:""},pathContent:{type:String,default:""},mode:{type:String,default:"view"},content:{type:String,default:""},jsonContents:{type:Array,default:()=>[]},showButton:{type:Boolean,default:!1},nodeDev:{type:String,default:""},pageKey:{type:String,default:""},interfaceContent:{type:Array,default:()=>[]},loginContent:{type:Object,default:()=>{}},menuFiles:{type:Array,default:()=>[]},workspaceHistoryData:{type:Array,default:()=>[]},workspaceInfo:{type:Object,default:()=>[]}},emits:["buildContent","openThreeBuild","threeData","setLoginInfo","projectLogin","updateApiUrl","clearFileContent","systemContent","getMenuPathValue","executeWorkspace"],setup(r,{emit:v}){const S=U.useRouter(),f=a.useLoginState(a.pinia),{loginUserInfo:y}=a.storeToRefs(f),{initSystemInfo:I}=a.useModelManagement(),k=a.useModelComp(a.pinia),{refreshLogin:L}=a.storeToRefs(k),g=a.useMenuState(a.pinia),w=o.ref(!0),{activeMenuPath:h}=a.storeToRefs(g),e=r,i=v,_=o.computed(()=>{var t,n;return(e==null?void 0:e.showButton)||((n=(t=y.value)==null?void 0:t.layer)==null?void 0:n.toUpperCase())==="SUPERADMIN"}),A=t=>{i("systemContent",t)},B=()=>{i("clearFileContent")};o.watch(()=>e==null?void 0:e.menuFiles,()=>{var t;((t=e==null?void 0:e.menuFiles)==null?void 0:t.length)>0&&g.setLocalFiles(e==null?void 0:e.menuFiles)},{deep:!0,immediate:!0}),o.watch(()=>h.value,()=>{i("getMenuPathValue",h.value)},{deep:!0,immediate:!0}),o.watch(()=>e==null?void 0:e.loginContent,async()=>{var n,s,l,d;w.value=!0;let t=e==null?void 0:e.loginContent;if(t!=null&&t.account&&(t!=null&&t.password)&&!L.value&&(await K.loginUp(t),status)){let u=await a.verifyStructureDataToStore();i("systemContent",u==null?void 0:u.allMenuContents),S.push("/"),f.setLogRecordAsync({type:"登录",data:{account:((n=y.value)==null?void 0:n.account)??((s=y.value)==null?void 0:s.账号),userName:((l=y.value)==null?void 0:l.姓名)||((d=y.value)==null?void 0:d.userName)||"未知"}},"/login","login"),g.setHasClickEditComp(!1)}w.value=!1,await o.nextTick()},{deep:!0,immediate:!0});const E=t=>{i("projectLogin",t)},D=()=>{i("projectLogin","")};o.watch(()=>[e==null?void 0:e.systemKey,e==null?void 0:e.systemInfo],async([t,n])=>{f.setSystemKey(t),t!==""&&sessionStorage.setItem("systemKey",t)},{immediate:!0}),o.watch(()=>e==null?void 0:e.interfaceContent,()=>{var s,l,d,u,m;if(!(e!=null&&e.interfaceContent)||Array.isArray(e==null?void 0:e.interfaceContent)&&((s=e==null?void 0:e.interfaceContent)==null?void 0:s.length)===0)return;let t=(l=e==null?void 0:e.interfaceContent)==null?void 0:l.find(c=>c==null?void 0:c.includes("VITE_API_NEW_URL")),n=(d=e==null?void 0:e.interfaceContent)==null?void 0:d.find(c=>c==null?void 0:c.includes("VITE_FACE_RECOGNITION_API_URL"));n=(u=n==null?void 0:n.split("="))==null?void 0:u[1],n=n==null?void 0:n.trim(),t=(m=t==null?void 0:t.split("="))==null?void 0:m[1],t=t==null?void 0:t.trim(),f.setExtraUrl(n??""),f.setSystemUrl(t??"")},{immediate:!0,deep:!0}),o.onMounted(async()=>{e.systemInfo?f.setSystemInfo(e.systemInfo):await I()});const j=()=>{i("buildContent")},F=()=>{i("setLoginInfo")},M=t=>{i("openThreeBuild",t)},T=t=>{i("threeData",t)},x=t=>{i("updateApiUrl",t)},R=t=>{i("executeWorkspace",t)},C=()=>{var m,c;const t=e!=null&&e.windowConfig?(m=e==null?void 0:e.windowConfig)==null?void 0:m.width:window.innerWidth,n=e!=null&&e.windowConfig?(c=e==null?void 0:e.windowConfig)==null?void 0:c.height:window.innerHeight;console.log(232,n,e==null?void 0:e.windowConfig),g.setSystemHeight(n);const s=1920,l=16,d=t/s,u=l*d;document.documentElement.style.fontSize=`${u}px`};return o.onMounted(()=>{C(),window.addEventListener("resize",C)}),o.onUnmounted(()=>{window.removeEventListener("resize",C)}),(t,n)=>{const s=o.resolveComponent("router-view");return o.openBlock(),o.createElementBlock("div",null,[w.value?(o.openBlock(),o.createElementBlock("div",H)):(o.openBlock(),o.createBlock(s,{key:1,mode:e==null?void 0:e.mode,content:e==null?void 0:e.content,jsonContents:e==null?void 0:e.jsonContents,pathContent:e==null?void 0:e.pathContent,showButton:_.value,nodeDev:e==null?void 0:e.nodeDev,windowConfig:r.windowConfig,systemInfo:r.systemInfo,"old-systemKey":r.systemKey,onBuildContent:j,onProjectLogin:E,onClearLogin:D,onUpdateApiUrl:x,onOpenThreeBuild:M,pageKey:r.pageKey,onThreeData:T,onSetLoginInfo:F,loginContent:e==null?void 0:e.loginContent,onClearFileContent:B,onSystemContent:A,onExecuteWorkspace:R,workspaceHistoryData:e==null?void 0:e.workspaceHistoryData,workspaceInfo:e==null?void 0:e.workspaceInfo},null,8,["mode","content","jsonContents","pathContent","showButton","nodeDev","windowConfig","systemInfo","old-systemKey","pageKey","loginContent","workspaceHistoryData","workspaceInfo"]))])}}}),P=b._export_sfc(O,[["__scopeId","data-v-247ac03a"]]);exports.default=P;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue");require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-BGyDDkYS.cjs");const C=require("./index-BpPyaNFa.cjs"),v=require("./index-xN3pvlzo.cjs");require("./index-B9MP9Z_h.cjs");require("./request-Dl8yi2iS.cjs");;/* empty css */const s=require("./ss-component2.cjs"),t=require("./index-DKh4EyHV.cjs"),r=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./main-G0V83rc_.cjs")));r.install=e=>{e.component("ssComponent",r)};const i=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-DnwoeTr-.cjs")).then(e=>e.index$1));i.install=e=>{e.component("ssTab",i)};const c=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-DQD6jg8m.cjs")).then(e=>e.index));c.install=e=>{e.component("ssMenu",c)};const l=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index--Q8dq5DS.cjs")));l.install=e=>{e.component("ssMenuComponent",l)};const m=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-CLLeUa5o.cjs")));m.install=e=>{e.component("ssCanvas",m)};const u=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-BVaHwt5f.cjs")));u.install=e=>{e.component("ssFold",u)};const a=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-C3JpBKyN.cjs")).then(e=>e.index));a.install=e=>{e.component("ssAvatar",a)};const h=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./threeModel-Df9F-OvR.cjs")));h.install=e=>{e.component("ssThree",h)};const f=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./threeViewerHost-D_4JNLXj.cjs")).then(e=>e.threeViewerHost));f.install=e=>{e.component("threeViewerHost",f)};const p=v.useMenuState(),q=[r,i,c,l,m,u,a,h,f],P=e=>{q.forEach(o=>{e.use(o)}),e.use(s),e.config.globalProperties.$router=s},g=e=>{switch(e){case"browser":return t.browserThemeConfig;case"client":return t.clientThemeConfig;case"three":return t.threeThemeConfig}},y=e=>{const o=document.documentElement;e==null||e.forEach(d=>{o.style.setProperty(d.name,d.value)})},A=e=>{p.setPlatform(e);const o=g(e);y(o)},T={getPlatform:p.getPlatform,setPlatform:p.setPlatform,initPlatform:A};exports.SvgIcon=C.SvgIcon;exports.router=s;exports.default=P;exports.platformApi=T;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue");require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-BGyDDkYS.cjs");const C=require("./index-BpPyaNFa.cjs"),v=require("./index-xN3pvlzo.cjs");require("./index-B9MP9Z_h.cjs");require("./request-Dl8yi2iS.cjs");;/* empty css */const s=require("./ss-component2.cjs"),t=require("./index-DKh4EyHV.cjs"),r=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./main-G0V83rc_.cjs")));r.install=e=>{e.component("ssComponent",r)};const i=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-DnwoeTr-.cjs")).then(e=>e.index$1));i.install=e=>{e.component("ssTab",i)};const c=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-DQD6jg8m.cjs")).then(e=>e.index));c.install=e=>{e.component("ssMenu",c)};const l=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-Zawfieio.cjs")));l.install=e=>{e.component("ssMenuComponent",l)};const m=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-CLLeUa5o.cjs")));m.install=e=>{e.component("ssCanvas",m)};const u=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-BVaHwt5f.cjs")));u.install=e=>{e.component("ssFold",u)};const a=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-C3JpBKyN.cjs")).then(e=>e.index));a.install=e=>{e.component("ssAvatar",a)};const h=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./threeModel-Df9F-OvR.cjs")));h.install=e=>{e.component("ssThree",h)};const f=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./threeViewerHost-D_4JNLXj.cjs")).then(e=>e.threeViewerHost));f.install=e=>{e.component("threeViewerHost",f)};const p=v.useMenuState(),q=[r,i,c,l,m,u,a,h,f],P=e=>{q.forEach(o=>{e.use(o)}),e.use(s),e.config.globalProperties.$router=s},g=e=>{switch(e){case"browser":return t.browserThemeConfig;case"client":return t.clientThemeConfig;case"three":return t.threeThemeConfig}},y=e=>{const o=document.documentElement;e==null||e.forEach(d=>{o.style.setProperty(d.name,d.value)})},A=e=>{p.setPlatform(e);const o=g(e);y(o)},T={getPlatform:p.getPlatform,setPlatform:p.setPlatform,initPlatform:A};exports.SvgIcon=C.SvgIcon;exports.router=s;exports.default=P;exports.platformApi=T;