ss-component-new 1.2.9 → 1.2.11
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-1jRSDcwE.js → animationData-C_gV7XAN.js} +16 -16
- package/dist/animationData-CyP8-u7i.cjs +1 -0
- package/dist/array-A59WrroX.js +1207 -0
- package/dist/array-BtZq8qON.cjs +11 -0
- package/dist/index-2nEz-J89.js +24 -0
- package/dist/{index-CQAvn30B.cjs → index-7eyGTvr0.cjs} +1 -1
- package/dist/{index-DNm5s2Lm.cjs → index-Adqs5vHH.cjs} +1 -1
- package/dist/{index-fMxLuU_H.js → index-B7g38Yte.js} +2 -2
- package/dist/{index-Cyk0Tzhx.cjs → index-B9OZcnHm.cjs} +13 -13
- package/dist/index-BAOnUk_J.cjs +1 -0
- package/dist/{index-B1NmIRwn.js → index-BDaeo6qO.js} +2 -2
- package/dist/{index-L3WHrdzB.cjs → index-BJBNtx2b.cjs} +1 -1
- package/dist/{index-cA_EynOM.js → index-BMYtLkw8.js} +4 -4
- package/dist/{index-Dfhvay-Y.js → index-BQ4Rjf8F.js} +6 -6
- package/dist/{index-BQdJqnJf.cjs → index-BUUEqGRN.cjs} +1 -1
- package/dist/{index-CgtkRkQ3.js → index-B_ZGJtId.js} +1 -1
- package/dist/{index-C2aGGJxk.cjs → index-B_mFQujY.cjs} +1 -1
- package/dist/{index-lyUWApVE.js → index-BbI9_JbX.js} +32 -48
- package/dist/index-BeYNgEHV.js +144 -0
- package/dist/{index-CKHNyMzP.js → index-BwjuTBrR.js} +1 -1
- package/dist/{index-Ci_C9h8v.js → index-C-c1pt-2.js} +1 -1
- package/dist/{index-DbisH6iI.cjs → index-C40ofXP7.cjs} +1 -1
- package/dist/{index-CvrTrN91.js → index-C461j30b.js} +1 -1
- package/dist/{index-1vs_3Pz3.cjs → index-C5gPrwPs.cjs} +1 -1
- package/dist/{index-Duqrg0DV.cjs → index-C68Hri2v.cjs} +1 -1
- package/dist/{index-Djagy2ww.cjs → index-CAewC69j.cjs} +1 -1
- package/dist/index-CApZYDIm.cjs +1 -0
- package/dist/{index-BWECkG4C.js → index-CKLBlQoK.js} +2122 -2129
- package/dist/{index-BaOQV1JK.cjs → index-CKt6cj9f.cjs} +1 -1
- package/dist/index-CN29uy_G.js +7293 -0
- package/dist/{index-B--6DX0M.js → index-CRiovRyR.js} +2 -2
- package/dist/index-CTRmgnKQ.js +2643 -0
- package/dist/{index-DWfuOOVD.js → index-CVDv-Zz-.js} +1012 -1009
- package/dist/index-CVadHkfS.cjs +1 -0
- package/dist/{index-DbzvXPKu.js → index-CYp77kPp.js} +175 -175
- package/dist/{index-DGE2awa5.js → index-CjB5ZP_P.js} +2 -2
- package/dist/{index-D9wa1LMS.js → index-CkA2IZJB.js} +5 -5
- package/dist/{index-fzCcjoGJ.js → index-CoVAbxHN.js} +1 -1
- package/dist/index-CwhX2vaq.cjs +1 -0
- package/dist/{index-BkrJ0cBf.js → index-D4CVC2Sk.js} +4 -4
- package/dist/{index-BzOBvH4x.cjs → index-D55zzS4D.cjs} +1 -1
- package/dist/{index-C_MIoNOd.cjs → index-D5ShC3zu.cjs} +1 -1
- package/dist/{index-BxftyAcm.cjs → index-D9l1Z4TO.cjs} +1 -1
- package/dist/index-DDhAMgrO.js +22 -0
- package/dist/{index-CXbvmuYZ.cjs → index-DGBDGLOK.cjs} +1 -1
- package/dist/{index-D732VV-0.js → index-DHQH1rlQ.js} +2 -2
- package/dist/{index-LjRfbvxs.js → index-DJMHw-xb.js} +11 -11
- package/dist/index-DP7rcz4I.cjs +1 -0
- package/dist/{index-y1YK6w8c.js → index-DQZ_oAyj.js} +6 -6
- package/dist/{index-CVfC3cyK.js → index-DTkAIcvV.js} +13 -13
- package/dist/{index-pkxiNiXI.js → index-DfKkN76b.js} +3 -3
- package/dist/{index-BFl4mw2K.cjs → index-DkG4A3iE.cjs} +1 -1
- package/dist/{index-pleSKUL2.cjs → index-DnU2slQv.cjs} +1 -1
- package/dist/{index-sS7-HQlI.cjs → index-DsQ-qtQ9.cjs} +1 -1
- package/dist/index-Dwr4RHei.cjs +1 -0
- package/dist/{index-BDVOKqI5.js → index-ESNVepXU.js} +6 -6
- package/dist/{index-CxbH4zmS.js → index-H_3u1NA_.js} +24 -24
- package/dist/{index-wpD5_HUA.cjs → index-QkDZ18PI.cjs} +1 -1
- package/dist/index-RVDLy1iy.cjs +1 -0
- package/dist/{index-Dcd9HZXq.js → index-ecVCII_e.js} +5 -5
- package/dist/{index-BsPQl6nI.cjs → index-i50hp6po.cjs} +1 -1
- package/dist/{index-BlZXanJX.js → index-qu3KI1yZ.js} +5 -5
- package/dist/{index-BxL4p0ej.cjs → index-t6--MDLB.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DkSoLqEi.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BRxOMo6y.js} +8749 -8765
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-hGi9c2Ju.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Dwdjsitu.cjs} +108 -108
- package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-B5nxyyO7.cjs → index.vue_vue_type_style_index_0_scoped_92477073_lang-DfqsvuRy.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-BfcynI3w.js → index.vue_vue_type_style_index_0_scoped_92477073_lang-e_PTrAf6.js} +6 -6
- package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-7HSISF9c.cjs +56 -0
- package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-BqmMCEyN.js +37436 -0
- package/dist/{index.vue_vue_type_style_index_1_lang-Bmq_QiXo.js → index.vue_vue_type_style_index_1_lang-CsY5rIO4.js} +3 -3
- package/dist/{index.vue_vue_type_style_index_1_lang-B_ESWhzz.cjs → index.vue_vue_type_style_index_1_lang-DOjFqzi3.cjs} +1 -1
- package/dist/index.vue_vue_type_style_index_1_lang-DQUFi_Vi.cjs +32 -0
- package/dist/index.vue_vue_type_style_index_1_lang-Ds1cd7yg.js +7806 -0
- package/dist/{isString-CZMLuMzD.js → isString-BNK38WbE.js} +1 -1
- package/dist/{main-YbBj49yf.cjs → main-CVaemyhm.cjs} +1 -1
- package/dist/{main-CSTH0D6W.js → main-DIbH2rlN.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/{threeLatheView-BmVBnC8n.js → threeLatheView-Bp0kjo_V.js} +2 -2
- package/dist/{threeModel-Xb9BSJ_k.js → threeModel-27sl0tTS.js} +3 -3
- package/dist/{threeModel-nbfSsMNt.cjs → threeModel-C0Jdw2O3.cjs} +1 -1
- package/dist/{threePreview-CYX5wKoL.js → threePreview-DFFjm93P.js} +1 -1
- package/dist/threeSceneView-CEpBvJSV.cjs +5 -0
- package/dist/threeSceneView-ZDXqO8ZA.js +1413 -0
- package/dist/{threeSceneViewForCPMPIP-CT63Js8f.cjs → threeSceneViewForCPMPIP-B0VPmBWd.cjs} +3 -3
- package/dist/{threeSceneViewForCPMPIP-skA3ZWC-.js → threeSceneViewForCPMPIP-BPPWM68P.js} +83 -84
- package/dist/{threeViewerHost-Enxz60zh.js → threeViewerHost-CKE2a4PV.js} +65 -78
- package/dist/threeViewerHost-yHvsk7TK.cjs +1 -0
- package/dist/useRayCaster-1DNcSYPR.cjs +1 -0
- package/dist/{useRayCaster-CQ61IQT5.js → useRayCaster-BM9XKGKx.js} +3 -3
- package/package.json +1 -1
- package/dist/animationData-BQdcO65E.cjs +0 -1
- package/dist/array-BI6c3lN7.cjs +0 -11
- package/dist/array-BivICFct.js +0 -1142
- package/dist/index-BBVbSXk-.cjs +0 -1
- package/dist/index-BM6YLczV.js +0 -2567
- package/dist/index-BSa3xW1H.js +0 -158
- package/dist/index-C9gh-jny.js +0 -7211
- package/dist/index-CA-edgmV.js +0 -3370
- package/dist/index-CIv0zRrQ.cjs +0 -1
- package/dist/index-DW7I4GY6.cjs +0 -1
- package/dist/index-DdFUblTC.cjs +0 -1
- package/dist/index-Dy3FE211.cjs +0 -1
- package/dist/index-YMD55UlA.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-86_u8ovk.js +0 -34129
- package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-dAkBFPF0.cjs +0 -56
- package/dist/index.vue_vue_type_style_index_1_lang-Bl5IzVKi.js +0 -8126
- package/dist/index.vue_vue_type_style_index_1_lang-Cb3WPLY1.cjs +0 -32
- package/dist/isUndefined-ClRzgwTy.cjs +0 -1
- package/dist/isUndefined-chfCDxUU.js +0 -84
- package/dist/threeSceneView-BLWTfaec.js +0 -1472
- package/dist/threeSceneView-JPxH8xcz.cjs +0 -5
- package/dist/threeViewerHost-UHWY3q2v.cjs +0 -1
- package/dist/useRayCaster-CvOiIyjA.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const s=require("vue"),ne=require("./index-BpPyaNFa.cjs"),w=require("./index-1z9RrjZc.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
1
|
+
"use strict";const s=require("vue"),ne=require("./index-BpPyaNFa.cjs"),w=require("./index-1z9RrjZc.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Dwdjsitu.cjs");const R=require("./index.vue_vue_type_style_index_1_lang-DQUFi_Vi.cjs"),le=require("./index-D55zzS4D.cjs"),oe=require("vue-router"),k=require("./index-9hspBVrQ.cjs"),ue=require("./index-CVadHkfS.cjs"),P=s.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-B9OZcnHm.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;
|
|
@@ -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-CYp77kPp.js";
|
|
4
|
+
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BRxOMo6y.js";
|
|
5
|
+
import { u as Ce, a as ye, E as de } from "./index.vue_vue_type_style_index_1_lang-Ds1cd7yg.js";
|
|
6
|
+
import { s as Ae } from "./index-C-c1pt-2.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-CN29uy_G.js";
|
|
10
|
+
const b = ne(() => import("./index-CKLBlQoK.js").then((p) => p.j));
|
|
11
11
|
b.install = (p) => {
|
|
12
12
|
p.component("ssMenu", b);
|
|
13
13
|
};
|