ss-component-new 1.3.404 → 1.3.405
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/ss-component.js
CHANGED
|
@@ -19,7 +19,7 @@ const r = o(() => import("./index-CNNN2Kly.js").then((t) => t.i));
|
|
|
19
19
|
r.install = (t) => {
|
|
20
20
|
t.component("ssMenu", r);
|
|
21
21
|
};
|
|
22
|
-
const m = o(() => import("./index-
|
|
22
|
+
const m = o(() => import("./index-Cf4pin-r.js"));
|
|
23
23
|
m.install = (t) => {
|
|
24
24
|
t.component("ssMenuComponent", m);
|
|
25
25
|
};
|
package/package.json
CHANGED
package/dist/index-p6CpwQMN.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),i=require("./index-Pve69buQ.cjs"),b=require("./index-CasVp7yH.cjs"),K=require("vue-router"),U=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),O={key:0},P=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","executeWorkspcae"],setup(f,{emit:v}){const I=K.useRouter(),r=i.useLoginState(i.pinia),{loginUserInfo:y}=i.storeToRefs(r),{initSystemInfo:S}=i.useModelManagement(),k=i.useModelComp(i.pinia),{refreshLogin:L}=i.storeToRefs(k),m=i.useMenuState(i.pinia),g=o.ref(!0),{activeMenuPath:w}=i.storeToRefs(m),e=f,a=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=>{a("systemContent",t)},B=()=>{a("clearFileContent")};o.watch(()=>e==null?void 0:e.menuFiles,()=>{var t;((t=e==null?void 0:e.menuFiles)==null?void 0:t.length)>0&&m.setLocalFiles(e==null?void 0:e.menuFiles)},{deep:!0,immediate:!0}),o.watch(()=>w.value,()=>{a("getMenuPathValue",w.value)},{deep:!0,immediate:!0}),o.watch(()=>e==null?void 0:e.loginContent,async()=>{var n,s,u,l;g.value=!0;let t=e==null?void 0:e.loginContent;if(t!=null&&t.account&&(t!=null&&t.password)&&!L.value&&(await b.loginUp(t),status)){let c=await i.verifyStructureDataToStore();a("systemContent",c==null?void 0:c.allMenuContents),I.push("/"),r.setLogRecordAsync({type:"登录",data:{account:((n=y.value)==null?void 0:n.account)??((s=y.value)==null?void 0:s.账号),userName:((u=y.value)==null?void 0:u.姓名)||((l=y.value)==null?void 0:l.userName)||"未知"}},"/login","login"),m.setHasClickEditComp(!1)}g.value=!1,await o.nextTick()},{deep:!0,immediate:!0});const E=t=>{a("projectLogin",t)},D=()=>{a("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,u,l,c,h;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=(u=e==null?void 0:e.interfaceContent)==null?void 0:u.find(d=>d==null?void 0:d.includes("VITE_API_NEW_URL")),n=(l=e==null?void 0:e.interfaceContent)==null?void 0:l.find(d=>d==null?void 0:d.includes("VITE_FACE_RECOGNITION_API_URL"));n=(c=n==null?void 0:n.split("="))==null?void 0:c[1],n=n==null?void 0:n.trim(),t=(h=t==null?void 0:t.split("="))==null?void 0:h[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 S()});const j=()=>{a("buildContent")},F=()=>{a("setLoginInfo")},M=t=>{a("openThreeBuild",t)},T=t=>{a("threeData",t)},x=t=>{a("updateApiUrl",t)},R=t=>{a("executeWorkspcae",t)},C=()=>{var c;const t=e!=null&&e.windowConfig?(c=e==null?void 0:e.windowConfig)==null?void 0:c.width:window.innerWidth,n=1920,s=16,u=t/n,l=s*u;document.documentElement.style.fontSize=`${l}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,[g.value?(o.openBlock(),o.createElementBlock("div",O)):(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,onExecuteWorkspcae: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"]))])}}}),W=U._export_sfc(P,[["__scopeId","data-v-f3c541be"]]);exports.default=W;
|