ss-component-new 1.2.3 → 1.2.4
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/{OrbitControls-C0QRmW6_.js → OrbitControls-DA4VpOM_.js} +1 -1
- package/dist/{STLLoader-CiUjaQtA.js → STLLoader-DmGTF0Nv.js} +1 -1
- package/dist/{animationData-8FTxP8vs.js → animationData-9n1X4UvO.js} +14 -14
- package/dist/animationData-CfT99nMO.cjs +1 -0
- package/dist/array-BPHS7JFA.cjs +11 -0
- package/dist/array-pg68Qbs1.js +1207 -0
- package/dist/config.js +1 -1
- package/dist/{iconfont-pt17sMx3.js → iconfont-ljBfzBSE.js} +2 -2
- package/dist/{index-DnDcbPOW.js → index---6UATT0.js} +5 -5
- package/dist/{index-D4F0CrLQ.cjs → index-1DtctdYW.cjs} +1 -1
- package/dist/index-5hLZZ6t-.cjs +1 -0
- package/dist/{index-CEdmOpLw.js → index-8CcD03tl.js} +6 -6
- package/dist/{index-BkoHg0EZ.js → index-B5gNufYw.js} +5 -5
- package/dist/{index-CwFSFQX2.js → index-B5srJr0o.js} +6 -6
- package/dist/{index-Kn3M4A0O.cjs → index-B5vIeQUq.cjs} +1 -1
- package/dist/{index-CSeo-uxt.cjs → index-B8J_v2Ky.cjs} +1 -1
- package/dist/{index-CgqgVzlH.cjs → index-B9nZeing.cjs} +1 -1
- package/dist/{index-CH7Xo-Sp.js → index-BAj0dyBF.js} +3 -3
- package/dist/{index-BileCy93.js → index-BEJOd_29.js} +4 -4
- package/dist/{index-kGrlXtNc.cjs → index-BKhDFqMM.cjs} +1 -1
- package/dist/{index-CfduEaC5.js → index-BNNxPuEV.js} +1 -1
- package/dist/{index-CoR64Xpr.cjs → index-BOVdAFDH.cjs} +1 -1
- package/dist/{index-BS8EpPTs.cjs → index-Bi7yv8jC.cjs} +1 -1
- package/dist/{index-Be9Zt5tl.js → index-BjXcyVvp.js} +2 -2
- package/dist/{index-CxnH4vfV.cjs → index-BrsIZVyD.cjs} +1 -1
- package/dist/index-Bsdjuxq1.cjs +1 -0
- package/dist/{index-CvrTrN91.js → index-BuKHInQb.js} +1 -1
- package/dist/{index-DeuO5bnv.cjs → index-Bx4qIiIa.cjs} +1 -1
- package/dist/{index-CpaF7pM_.cjs → index-C-AOuDkl.cjs} +1 -1
- package/dist/{index-DJ40Hyyr.cjs → index-C0HHmjrg.cjs} +1 -1
- package/dist/{index-sB_mbukA.js → index-C1lB8apW.js} +4 -4
- package/dist/{index-C_AbUtWk.cjs → index-CAHYTZ1Q.cjs} +1 -1
- package/dist/{index-Ct9LJbIa.cjs → index-CCIJ-P3X.cjs} +1 -1
- package/dist/{index-hOfuCmcV.js → index-CCsSOTaB.js} +2 -2
- package/dist/{index-CjqqJUqa.js → index-CDXq3gs4.js} +1013 -1010
- package/dist/{index-BAkiJ74E.cjs → index-CK_O7QdV.cjs} +1 -1
- package/dist/{index-D6k9CkOL.js → index-CLtFz5gE.js} +13 -13
- package/dist/{index-DyLtJwnU.cjs → index-CMlYJD5U.cjs} +1 -1
- package/dist/index-CdPbJekh.js +7294 -0
- package/dist/{index-CjI5pDiU.cjs → index-CmlXlH2b.cjs} +1 -1
- package/dist/{index-BcyUCzHm.js → index-CpE8hbs0.js} +6 -6
- package/dist/{index-7XENlCpz.cjs → index-CxNBcsll.cjs} +1 -1
- package/dist/{index-ClODZ600.js → index-CyP2hcVu.js} +6 -6
- package/dist/{index-flJIivzF.cjs → index-D-r_YKrq.cjs} +13 -13
- package/dist/{index-CElxXJY-.js → index-D0_4keB8.js} +7 -7
- package/dist/index-DBScQH7L.js +2643 -0
- package/dist/{index-BNO8srTI.cjs → index-DCf7Tz40.cjs} +1 -1
- package/dist/{index-Da8foj5C.js → index-DEwcUkb-.js} +5 -5
- package/dist/{index-Bfs3oOac.js → index-DFg-bhPI.js} +1 -1
- package/dist/{index-BqB108UB.cjs → index-DJ1PTHpx.cjs} +1 -1
- package/dist/{index-BGr_ESuH.cjs → index-DOlPMLvf.cjs} +1 -1
- package/dist/{index-BnGZhWPa.cjs → index-DPaTtF3h.cjs} +1 -1
- package/dist/{index-Bzf_z3RK.cjs → index-DPyzaxnq.cjs} +1 -1
- package/dist/{index-DkcEb3i0.js → index-DS5z17Mc.js} +2123 -2130
- package/dist/{index-D7Z7_kkD.js → index-DSsZtYMz.js} +2 -2
- package/dist/{index-hm9E8BQd.js → index-Dk8D9SRm.js} +1 -1
- package/dist/{index-CDcMFEYg.js → index-DsHRVZ0E.js} +2 -2
- package/dist/{index-ZP8xxEio.cjs → index-DszzdQnM.cjs} +1 -1
- package/dist/{index-CKHNyMzP.js → index-FxX6NP0J.js} +1 -1
- package/dist/{index-BhmbDqk0.cjs → index-LXb5DfDE.cjs} +1 -1
- package/dist/{index-BFjyLFP1.cjs → index-NFCeQcv4.cjs} +1 -1
- package/dist/{index-BCqSX1fo.js → index-PIEkAjRf.js} +12 -12
- package/dist/{index-DbzvXPKu.js → index-UN4JU0ly.js} +176 -176
- package/dist/{index-Bry_sSrG.js → index-Y7MUJdPv.js} +4 -4
- package/dist/{index-CISjtweI.js → index-bj8hK6Pe.js} +24 -24
- package/dist/{index-1z9RrjZc.cjs → index-d6tSWKtY.cjs} +1 -1
- package/dist/{index-CiktIOnl.cjs → index-nUEWiqy9.cjs} +1 -1
- package/dist/{index-Bmv3M7uZ.js → index-pLeOyTaj.js} +6 -6
- package/dist/{index-D0FR_AhB.js → index-xHEf6hcO.js} +2 -2
- package/dist/index-zQVJFawn.cjs +1 -0
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BnK7zR_5.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BTu7I4mn.js} +10362 -10383
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-C5Xqazal.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Cmc1oALS.cjs} +123 -123
- package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-Bu0MMp-F.js → index.vue_vue_type_style_index_0_scoped_92477073_lang-Bg_c-oAL.js} +6 -6
- package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-D-u_Cg-8.cjs → index.vue_vue_type_style_index_0_scoped_92477073_lang-C795GAHK.cjs} +1 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-9kDr7Iek.js +37436 -0
- package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-Bn5qXF4J.cjs +56 -0
- package/dist/{index.vue_vue_type_style_index_1_lang-Ca71BDvm.cjs → index.vue_vue_type_style_index_1_lang-Bn7P4fYM.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_1_lang-DMTvCBLP.js → index.vue_vue_type_style_index_1_lang-D1n_3_F6.js} +5 -5
- package/dist/index.vue_vue_type_style_index_1_lang-Exyt6qTf.js +7798 -0
- package/dist/index.vue_vue_type_style_index_1_lang-zN5mc8b0.cjs +32 -0
- package/dist/{isString-CZMLuMzD.js → isString-BAN9KLwf.js} +1 -1
- package/dist/{isString-BmAegMGI.cjs → isString-ChvWbctO.cjs} +1 -1
- package/dist/{main-gNJqytEB.cjs → main-BUEuCNq-.cjs} +1 -1
- package/dist/{main-Dji-qcpb.js → main-Dk3BZDsa.js} +5 -5
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +11 -11
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +12 -12
- package/dist/{three-viewport-gizmo-CkQ98n-T.js → three-viewport-gizmo-BHznJ6W3.js} +2 -2
- package/dist/{threeLatheView-BmVBnC8n.js → threeLatheView-DcuDjVv0.js} +4 -4
- package/dist/{threeLatheView-CZdorls1.cjs → threeLatheView-DfSxRY8B.cjs} +1 -1
- package/dist/{threeModel-AI7JwNc8.cjs → threeModel-DjjtL0-a.cjs} +1 -1
- package/dist/{threeModel-ejibS2N7.js → threeModel-YRFvkgXU.js} +5 -5
- package/dist/{threePreview-C_mY_TBC.cjs → threePreview-ByUYJkts.cjs} +1 -1
- package/dist/{threePreview-CYX5wKoL.js → threePreview-CyYfnbB6.js} +4 -4
- package/dist/threeSceneView-mhrcH0WG.cjs +5 -0
- package/dist/threeSceneView-zvyCHrp1.js +1469 -0
- package/dist/{threeSceneViewForCPMPIP-OOuWUtK1.cjs → threeSceneViewForCPMPIP-DA-twBdG.cjs} +3 -3
- package/dist/{threeSceneViewForCPMPIP-CDxxtlbo.js → threeSceneViewForCPMPIP-axjwKt9X.js} +85 -86
- package/dist/threeViewerHost-B02OtfCk.cjs +1 -0
- package/dist/{threeViewerHost-DTgKwwlG.js → threeViewerHost-D7L1FW__.js} +65 -78
- package/dist/{useRayCaster-5KTcOfSB.js → useRayCaster-CAqupK7D.js} +5 -5
- package/dist/useRayCaster-ClcofJkf.cjs +1 -0
- package/package.json +1 -1
- package/public/config.js +1 -1
- package/dist/animationData-C3K2hxaU.cjs +0 -1
- package/dist/array-B-rkzr_a.js +0 -1142
- package/dist/array-DRbhAcfX.cjs +0 -11
- package/dist/index-0Pm0ddJB.cjs +0 -1
- package/dist/index-8qtn1JAM.cjs +0 -1
- package/dist/index-BTh-u_yw.js +0 -3370
- package/dist/index-CYNps_oO.js +0 -7210
- package/dist/index-DlDK9CYq.cjs +0 -1
- package/dist/index-HrI-8Xdy.cjs +0 -1
- package/dist/index-hol6Hhnu.js +0 -2567
- package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-BDNNr7wB.cjs +0 -56
- package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-BqbQkXoK.js +0 -34117
- package/dist/index.vue_vue_type_style_index_1_lang-BayGiM6k.cjs +0 -32
- package/dist/index.vue_vue_type_style_index_1_lang-bErlZPyW.js +0 -8085
- package/dist/isUndefined-ClRzgwTy.cjs +0 -1
- package/dist/isUndefined-chfCDxUU.js +0 -84
- package/dist/obj/model.mtl +0 -42
- package/dist/obj/model.obj +0 -26110
- package/dist/threeSceneView-BO8STZl6.js +0 -1472
- package/dist/threeSceneView-CXqoIpeL.cjs +0 -5
- package/dist/threeViewerHost-ChVCHaag.cjs +0 -1
- package/dist/useRayCaster-C428LZl9.cjs +0 -1
- package/public/obj/model.mtl +0 -42
- package/public/obj/model.obj +0 -26110
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineAsyncComponent as ne, computed as D, onMounted as z, resolveComponent as le, createBlock as U, openBlock as V, withCtx as ae, resolveDynamicComponent as oe, defineComponent as ue, defineProps as ce, ref as g, watch as ie, reactive as pe } from "vue";
|
|
2
2
|
import { S as ge } from "./index-BHtNKL1L.js";
|
|
3
|
-
import {
|
|
4
|
-
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
5
|
-
import { u as Ce, a as ye, E as de } from "./index.vue_vue_type_style_index_1_lang-
|
|
6
|
-
import { s as Ae } from "./index-
|
|
3
|
+
import { bx as ve, p as he, s as fe, by as Me, g as me } from "./index-UN4JU0ly.js";
|
|
4
|
+
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BTu7I4mn.js";
|
|
5
|
+
import { u as Ce, a as ye, E as de } from "./index.vue_vue_type_style_index_1_lang-Exyt6qTf.js";
|
|
6
|
+
import { s as Ae } from "./index-Dk8D9SRm.js";
|
|
7
7
|
import { useRouter as we } from "vue-router";
|
|
8
8
|
import { e as Te, g as ke, h as Se, a as De, d as Pe } from "./index-C2usxP_Q.js";
|
|
9
|
-
import { g as _e } from "./index-
|
|
10
|
-
const b = ne(() => import("./index-
|
|
9
|
+
import { g as _e } from "./index-CdPbJekh.js";
|
|
10
|
+
const b = ne(() => import("./index-DS5z17Mc.js").then((p) => p.j));
|
|
11
11
|
b.install = (p) => {
|
|
12
12
|
p.component("ssMenu", b);
|
|
13
13
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const s=require("vue"),ne=require("./index-BpPyaNFa.cjs"),w=require("./index-
|
|
1
|
+
"use strict";const s=require("vue"),ne=require("./index-BpPyaNFa.cjs"),w=require("./index-d6tSWKtY.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Cmc1oALS.cjs");const R=require("./index.vue_vue_type_style_index_1_lang-zN5mc8b0.cjs"),le=require("./index-CK_O7QdV.cjs"),oe=require("vue-router"),k=require("./index-9hspBVrQ.cjs"),ue=require("./index-5hLZZ6t-.cjs"),P=s.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-D-r_YKrq.cjs")).then(v=>v.index));P.install=v=>{v.component("ssMenu",P)};const U={__name:"index",props:{name:String},setup(v){const a=v,x=s.computed(()=>w.ElIcons[a.name]);return s.onMounted(()=>{}),(T,g)=>{const S=s.resolveComponent("el-icon");return s.openBlock(),s.createBlock(S,null,{default:s.withCtx(()=>[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(x.value)))]),_:1})}}},ce=s.defineComponent({name:"menu",components:{SvgIcon:ne.SvgIcon,ssMenu:P,DynamicIcon:U,ssDialog:le.ssDialog},setup(){const v=s.defineProps({mode:{type:String,default:"vertical"}}),a=R.useMenuState(),x=R.useModelComp(w.pinia),T=s.ref(0),g=oe.useRouter(),{asideMenus:S,menuTriggerType:V,platform:z}=w.storeToRefs(a),H=s.computed(()=>v==null?void 0:v.mode),B=s.computed(()=>{let e=[...S.value];if((e==null?void 0:e.length)===0)return g.push("/"),[];const t=G(e,L.value);return t.isFlag||(e=t==null?void 0:t.data),e}),W=async e=>{x.setRouteToChildPath(""),a.setMenuTriggerType("click"),a.setActiveMenuPath(e==null?void 0:e.path),a.setActiveAsideMenu(e),e.isRouter?g.push(e.path):g.push("/")},J=async e=>{const t=w.findNodeByPropInTree(B.value,"path",e);a.setActiveAsideMenu(t),x.setRouteToChildPath(""),V.value==="click"?T.value===1?a.setActiveMenuPath(sessionStorage.getItem("pageKey")):a.setActiveMenuPath(e):(a.setMenuTriggerType("click"),a.setActiveMenuPath(e)),e!=null&&e.startsWith("/")?g.push(e):g.push("/"),T.value++},K=e=>{a.setActiveMenuPath(e)},h=e=>{const t=document.documentElement;e==null||e.forEach(o=>{t.style.setProperty(o.name,o.value)})};s.onMounted(()=>{T.value=1});const L=s.computed(()=>{const e=sessionStorage.getItem("authority");return e?JSON.parse(e):[]});s.watch(()=>z.value,e=>{e==="browser"?h(k.browserVerticalMenuClasses):e==="client"?(h(k.clientHorizontalMenuClasses),h(k.clientVerticalMenuClasses)):e==="three"&&(h(k.threeHorizontalMenuClasses),h(k.threeVerticalMenuClasses))},{immediate:!0});const j=(e,t)=>{function o(u){u==null||u.forEach(r=>{var f,C;const c=(f=r==null?void 0:r.path)!=null&&f.startsWith("/")?(C=r==null?void 0:r.path)==null?void 0:C.substring(1):r==null?void 0:r.path;r.show=t==null?void 0:t.some(d=>d==null?void 0:d.includes(c)),r.children&&o(r.children)})}return o(e),e},G=(e,t)=>{if(Array.isArray(t)){const o=Array.from(new Set(t==null?void 0:t.map(u=>u.substring(0,u.lastIndexOf("/")))));return{data:j(e,o),isFlag:!1}}else return{isFlag:(t==null?void 0:t.toUpperCase())==="SUPERADMIN"}},p=s.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),I=e=>ue.getComponent(e),Q=s.ref({}),F=s.ref([]),X=async(e,t,o)=>{var C,d,E;if(!(e!=null&&e.structureIds)||((C=e==null?void 0:e.structureIds)==null?void 0:C.length)===0)return;const u=(E=(d=e==null?void 0:e.structureIds)==null?void 0:d.filter(n=>(n==null?void 0:n.key)==="dialogConfig"))==null?void 0:E.map(n=>n==null?void 0:n.id);let r=u==null?void 0:u.map(n=>w.getInsofDataApi({id:n}));const c=await Promise.all(r);if(c==null?void 0:c.every(n=>{var l;return((l=n==null?void 0:n.data)==null?void 0:l.code)===200})){const n=c==null?void 0:c.map(l=>{var _,m,i,A,D,O,N;return{id:(i=(m=(_=l==null?void 0:l.data)==null?void 0:_.result)==null?void 0:m[0])==null?void 0:i.id,...(N=(O=(D=(A=l==null?void 0:l.data)==null?void 0:A.result)==null?void 0:D[0])==null?void 0:O.value)==null?void 0:N.pageData}});t==="create"&&(F.value=n),t==="update"&&(F.value=n==null?void 0:n.map(l=>{var _,m;return((_=l==null?void 0:l.comp)==null?void 0:_.toUpperCase())==="FORM"?{...l,compData:(m=l==null?void 0:l.compData)==null?void 0:m.map(i=>{var A;return(i==null?void 0:i.key)==="formContent"?{...i,contents:(A=i==null?void 0:i.contents)==null?void 0:A.map(D=>({...D,value:o==null?void 0:o.title}))}:i})}:l}))}},y=s.ref({}),M=s.ref({}),Y=e=>{switch(e){case"新增":return"create";case"编辑":return"update";case"删除":return"delete"}},b=s.ref({}),$=e=>{a.setCacheInputMenu({type:p.type,data:e}),a.setIsRefreshMenus(!0)},Z=async(e,t)=>{p.type=Y(t==null?void 0:t.operateType),await X(t,p.type,e),M.value=e,b.value=t,(t==null?void 0:t.operateType)!=="删除"?(p.show=(t==null?void 0:t.trigger)==="openDialog",p.title=(t==null?void 0:t.operateType)+"菜单"):R.ElMessageBox.confirm(`是否确认要删除【${e==null?void 0:e.title}】`,"",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{$(e)})},ee=()=>{p.show=!1},te=e=>e==null?void 0:e.filter(t=>t.allowInherit),se=()=>{var o,u,r,c,f;let e;p.type==="create"&&(e=((o=M.value)==null?void 0:o.path)+"/"+y.value[(u=y.value)==null?void 0:u.prop]),p.type==="update"&&(e=(r=M.value)==null?void 0:r.path);const t={...M.value,config:te((c=M.value)==null?void 0:c.config),children:[],childMenus:[],title:y.value[(f=y.value)==null?void 0:f.prop],path:e};console.log("clickSubmitForm",b.value,M.value,t),$(t),p.show=!1},re=e=>{var o,u;const t=(o=e==null?void 0:e.contents)==null?void 0:o.find(r=>r.key==="formContent");t&&(y.value=(u=t==null?void 0:t.contents)==null?void 0:u.reduce((r,c)=>(r[c.key]=c.value,r.prop=c.key,r),{}))},q=s.ref(!1);return{isCollapse:q,handleMenuCollapse:()=>{q.value=!q.value},handleCompChange:re,dialogForm:Q,dialogRenderComps:F,getComponents:I,clickSubmitForm:se,dialogInfo:p,beforeDialogDestroy:ee,clickMenuIcon:Z,mode:H,renderMenuList:B,clickMenu:W,openMenu:J,closeMenu:K,changeMenuStyle:h}}});exports._sfc_main=ce;exports._sfc_main$1=U;exports.ssMenu=P;
|