ss-component-new 1.3.384 → 1.3.385

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.
@@ -19,7 +19,7 @@ const r = o(() => import("./index-Bldno7Iy.js").then((t) => t.i));
19
19
  r.install = (t) => {
20
20
  t.component("ssMenu", r);
21
21
  };
22
- const m = o(() => import("./index-DPM6pfAI.js"));
22
+ const m = o(() => import("./index-CRtpPgUj.js"));
23
23
  m.install = (t) => {
24
24
  t.component("ssMenuComponent", m);
25
25
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ss-component-new",
3
3
  "private": false,
4
- "version": "1.3.384",
4
+ "version": "1.3.385",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist",
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),a=require("./index-BUD_iRcK.cjs"),K=require("./index-DEJ3o_Up.cjs"),U=require("vue-router"),b=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),F={key:0},x=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:()=>{}}},emits:["buildContent","openThreeBuild","threeData","setLoginInfo","projectLogin","updateApiUrl","clearFileContent","systemContent"],setup(f,{emit:w}){const h=U.useRouter(),r=a.useLoginState(a.pinia),{loginUserInfo:m}=a.storeToRefs(r),{initSystemInfo:S}=a.useModelManagement(),v=a.useModelComp(a.pinia),{refreshLogin:I}=a.storeToRefs(v),L=a.useMenuState(a.pinia),y=o.ref(!0),e=f,i=w,_=o.computed(()=>{var t,n;return(e==null?void 0:e.showButton)||((n=(t=m.value)==null?void 0:t.layer)==null?void 0:n.toUpperCase())==="SUPERADMIN"}),B=t=>{i("systemContent",t)},A=()=>{i("clearFileContent")};o.watch(()=>e==null?void 0:e.loginContent,async()=>{var n,s,l,u;y.value=!0;let t=e==null?void 0:e.loginContent;if(t!=null&&t.account&&(t!=null&&t.password)&&!I.value&&(await K.loginUp(t),status)){let c=await a.verifyStructureDataToStore();i("systemContent",c==null?void 0:c.allMenuContents),h.push("/"),r.setLogRecordAsync({type:"登录",data:{account:((n=m.value)==null?void 0:n.account)??((s=m.value)==null?void 0:s.账号),userName:((l=m.value)==null?void 0:l.姓名)||((u=m.value)==null?void 0:u.userName)||"未知"}},"/login","login"),L.setHasClickEditComp(!1)}y.value=!1,await o.nextTick()},{deep:!0,immediate:!0});const E=t=>{i("projectLogin",t)},j=()=>{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,u,c,g;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(d=>d==null?void 0:d.includes("VITE_API_NEW_URL")),n=(u=e==null?void 0:e.interfaceContent)==null?void 0:u.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=(g=t==null?void 0:t.split("="))==null?void 0:g[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 T=()=>{i("buildContent")},k=()=>{i("setLoginInfo")},D=t=>{i("openThreeBuild",t)},M=t=>{i("threeData",t)},R=t=>{i("updateApiUrl",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,l=t/n,u=s*l;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,[y.value?(o.openBlock(),o.createElementBlock("div",F)):(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:T,onProjectLogin:E,onClearLogin:j,onUpdateApiUrl:R,onOpenThreeBuild:D,pageKey:f.pageKey,onThreeData:M,onSetLoginInfo:k,loginContent:e==null?void 0:e.loginContent,onClearFileContent:A,onSystemContent:B},null,8,["mode","content","jsonContents","pathContent","showButton","nodeDev","windowConfig","systemInfo","old-systemKey","pageKey","loginContent"]))])}}}),O=b._export_sfc(x,[["__scopeId","data-v-90db92de"]]);exports.default=O;