ss-component-new 1.2.12 → 1.2.14
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-CyP8-u7i.cjs → animationData-Bk1470H5.cjs} +1 -1
- package/dist/{animationData-C_gV7XAN.js → animationData-DGFKjCYk.js} +3 -3
- package/dist/array-B35bAMlG.js +1142 -0
- package/dist/array-aAE_wKnd.cjs +11 -0
- package/dist/{index-DQZ_oAyj.js → index-0F2eUVxy.js} +5 -5
- package/dist/{index-B9OZcnHm.cjs → index-AaBAxV_V.cjs} +13 -13
- package/dist/{index-ESNVepXU.js → index-B5XUqnF_.js} +5 -5
- package/dist/{index-qu3KI1yZ.js → index-B5u0jviA.js} +5 -5
- package/dist/{index-C40ofXP7.cjs → index-B67hAD7m.cjs} +1 -1
- package/dist/{index-Adqs5vHH.cjs → index-B9sRVMVL.cjs} +1 -1
- package/dist/{index-CoVAbxHN.js → index-BFKsm0Yx.js} +1 -1
- package/dist/index-BIfQaEzZ.cjs +1 -0
- package/dist/{index-DGBDGLOK.cjs → index-BQqFFNAa.cjs} +1 -1
- package/dist/{index-BUUEqGRN.cjs → index-BaIFwPts.cjs} +1 -1
- package/dist/{index-C68Hri2v.cjs → index-BlK2PVMx.cjs} +1 -1
- package/dist/index-Bma_mFLH.js +158 -0
- package/dist/{index-CRiovRyR.js → index-Bn5MBUdF.js} +1 -1
- package/dist/{index-DHQH1rlQ.js → index-ByAR0Idl.js} +2 -2
- package/dist/{index-B7g38Yte.js → index-C2ubyp3H.js} +1 -1
- package/dist/{index-BDaeo6qO.js → index-C5WwpGNi.js} +2 -2
- package/dist/{index-QkDZ18PI.cjs → index-C9aN-VrN.cjs} +1 -1
- package/dist/{index-CjB5ZP_P.js → index-CC9pH_f2.js} +1 -1
- package/dist/{index-D4CVC2Sk.js → index-CCF9d9aS.js} +2 -2
- package/dist/{index-DfKkN76b.js → index-CF--cUKb.js} +2 -2
- package/dist/{index-CAewC69j.cjs → index-CKqCzMnZ.cjs} +1 -1
- package/dist/index-COqXf8zH.cjs +1 -0
- package/dist/{index-7eyGTvr0.cjs → index-COuendLk.cjs} +1 -1
- package/dist/index-CSLbHDxo.js +2567 -0
- package/dist/{index-D9l1Z4TO.cjs → index-CSbITu5d.cjs} +1 -1
- package/dist/{index-Dwr4RHei.cjs → index-Cjbn2UBR.cjs} +1 -1
- package/dist/{index-DTkAIcvV.js → index-Cq6fzImq.js} +13 -13
- package/dist/{index-i50hp6po.cjs → index-CstB7vYe.cjs} +1 -1
- package/dist/{index-C5gPrwPs.cjs → index-CuQDWf5p.cjs} +1 -1
- package/dist/{index-D55zzS4D.cjs → index-CyZ2cmp8.cjs} +1 -1
- package/dist/{index-DnU2slQv.cjs → index-Cyt7LP0u.cjs} +1 -1
- package/dist/{index-C-c1pt-2.js → index-D5fAObhh.js} +1 -1
- package/dist/{index-ecVCII_e.js → index-DD9OzBSS.js} +4 -4
- package/dist/{index-CkA2IZJB.js → index-DLHscTIu.js} +5 -5
- package/dist/{index-B_ZGJtId.js → index-DNdAK9Jn.js} +1 -1
- package/dist/{index-DJMHw-xb.js → index-DS9Dbxhr.js} +10 -10
- package/dist/{index-BMYtLkw8.js → index-DfPRUqS4.js} +3 -3
- package/dist/{index-CKt6cj9f.cjs → index-DleM0Iie.cjs} +1 -1
- package/dist/{index-t6--MDLB.cjs → index-Dlfn0JHU.cjs} +1 -1
- package/dist/{index-DsQ-qtQ9.cjs → index-Dqvc_EHA.cjs} +1 -1
- package/dist/{index-DkG4A3iE.cjs → index-Dr40ZJEX.cjs} +1 -1
- package/dist/{index-BbI9_JbX.js → index-Drb6aHQr.js} +48 -32
- package/dist/index-DzUvkDw2.cjs +1 -0
- package/dist/{index-CVDv-Zz-.js → index-EHmVdU_u.js} +18 -18
- package/dist/{index-B_mFQujY.cjs → index-JiTvtugz.cjs} +1 -1
- package/dist/{index-BQ4Rjf8F.js → index-VfaCGVFD.js} +5 -5
- package/dist/index-a1HKV1_g.cjs +1 -0
- package/dist/index-a9bB4rFY.js +7290 -0
- package/dist/{index-BJBNtx2b.cjs → index-gzUDXR5p.cjs} +1 -1
- package/dist/{index-D5ShC3zu.cjs → index-hbliXkku.cjs} +1 -1
- package/dist/{index-H_3u1NA_.js → index-kOyJPwsW.js} +1 -1
- package/dist/{index-CKLBlQoK.js → index-kn9Z3Spm.js} +2129 -2122
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BRxOMo6y.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DfPAhslf.js} +8765 -8749
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Dwdjsitu.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-_G53poH8.cjs} +108 -108
- package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-e_PTrAf6.js → index.vue_vue_type_style_index_0_scoped_92477073_lang-Brscnsyu.js} +5 -5
- package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-DfqsvuRy.cjs → index.vue_vue_type_style_index_0_scoped_92477073_lang-CmDr-Cyv.cjs} +1 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-CGmzewC_.cjs +56 -0
- package/dist/{index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-BqmMCEyN.js → index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-D9q4Jzwb.js} +12692 -12647
- package/dist/{index.vue_vue_type_style_index_1_lang-CsY5rIO4.js → index.vue_vue_type_style_index_1_lang-BcKOWs1s.js} +2 -2
- package/dist/{index.vue_vue_type_style_index_1_lang-DOjFqzi3.cjs → index.vue_vue_type_style_index_1_lang-CbS7EB3k.cjs} +1 -1
- package/dist/index.vue_vue_type_style_index_1_lang-Iut1fhDN.js +8161 -0
- package/dist/index.vue_vue_type_style_index_1_lang-sTxwz1W3.cjs +32 -0
- package/dist/{main-DIbH2rlN.js → main-D90k9E9J.js} +4 -4
- package/dist/{main-CVaemyhm.cjs → main-DXm7KzRN.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +10 -10
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +11 -11
- package/dist/{threeModel-C0Jdw2O3.cjs → threeModel-C-6_vaGX.cjs} +1 -1
- package/dist/{threeModel-27sl0tTS.js → threeModel-V3QSg295.js} +2 -2
- package/dist/{threeSceneView-ZDXqO8ZA.js → threeSceneView-Bklnz7S8.js} +7 -7
- package/dist/{threeSceneView-CEpBvJSV.cjs → threeSceneView-FVcVEW7a.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-BPPWM68P.js → threeSceneViewForCPMPIP-B3G_-YBW.js} +6 -6
- package/dist/{threeSceneViewForCPMPIP-B0VPmBWd.cjs → threeSceneViewForCPMPIP-BoeTb3Fi.cjs} +1 -1
- package/dist/{threeViewerHost-CKE2a4PV.js → threeViewerHost-Bc0cuY8h.js} +78 -65
- package/dist/threeViewerHost-fPCTBYzC.cjs +1 -0
- package/dist/{useRayCaster-BM9XKGKx.js → useRayCaster-CcQBZs7h.js} +1 -1
- package/dist/{useRayCaster-1DNcSYPR.cjs → useRayCaster-ClCyvaxW.cjs} +1 -1
- package/package.json +1 -1
- package/dist/array-A59WrroX.js +0 -1207
- package/dist/array-BtZq8qON.cjs +0 -11
- package/dist/index-2nEz-J89.js +0 -24
- package/dist/index-BAOnUk_J.cjs +0 -1
- package/dist/index-BeYNgEHV.js +0 -144
- package/dist/index-CApZYDIm.cjs +0 -1
- package/dist/index-CN29uy_G.js +0 -7293
- package/dist/index-CTRmgnKQ.js +0 -2643
- package/dist/index-CVadHkfS.cjs +0 -1
- package/dist/index-CwhX2vaq.cjs +0 -1
- package/dist/index-DDhAMgrO.js +0 -22
- package/dist/index-DP7rcz4I.cjs +0 -1
- package/dist/index-RVDLy1iy.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-7HSISF9c.cjs +0 -56
- package/dist/index.vue_vue_type_style_index_1_lang-DQUFi_Vi.cjs +0 -32
- package/dist/index.vue_vue_type_style_index_1_lang-Ds1cd7yg.js +0 -7806
- package/dist/threeViewerHost-yHvsk7TK.cjs +0 -1
|
@@ -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
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-
|
|
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-
|
|
4
|
+
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DfPAhslf.js";
|
|
5
|
+
import { u as Ce, a as ye, E as de } from "./index.vue_vue_type_style_index_1_lang-Iut1fhDN.js";
|
|
6
|
+
import { s as Ae } from "./index-D5fAObhh.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-a9bB4rFY.js";
|
|
10
|
+
const b = ne(() => import("./index-kn9Z3Spm.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-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-_G53poH8.cjs");const R=require("./index.vue_vue_type_style_index_1_lang-sTxwz1W3.cjs"),le=require("./index-CyZ2cmp8.cjs"),oe=require("vue-router"),k=require("./index-9hspBVrQ.cjs"),ue=require("./index-BIfQaEzZ.cjs"),P=s.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-AaBAxV_V.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;
|