ss-component-new 1.2.59 → 1.2.61

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.
Files changed (69) hide show
  1. package/dist/{animationData-FLuoH13j.cjs → animationData-BduUBmUR.cjs} +1 -1
  2. package/dist/{animationData-CEkMmPAJ.js → animationData-ksWjRBya.js} +1 -1
  3. package/dist/{index-DkNldOC0.cjs → index-01wgxMDL.cjs} +1 -1
  4. package/dist/{index-BTwRUubF.js → index-B0wbu4Yi.js} +2 -2
  5. package/dist/{index-DLU6Qv3w.cjs → index-B7Qvtv0u.cjs} +1 -1
  6. package/dist/{index-LVKvj2hU.cjs → index-B9v5hZgH.cjs} +1 -1
  7. package/dist/{index-DuamAhUi.cjs → index-BBuy5K5J.cjs} +1 -1
  8. package/dist/{index-DXGiAs1G.cjs → index-BGRk7yKa.cjs} +1 -1
  9. package/dist/{index-BgwYXT31.cjs → index-BZ_4uOOn.cjs} +1 -1
  10. package/dist/{index--qwZeW47.js → index-Bay7I9Bm.js} +1 -1
  11. package/dist/{index-FUWILZwY.js → index-Bmu2x9mX.js} +22 -19
  12. package/dist/{index-CWG2zhJZ.cjs → index-BpuhfaBg.cjs} +1 -1
  13. package/dist/{index-ChyicQIl.js → index-C2Eyvf5V.js} +1 -1
  14. package/dist/{index-BxEjroD6.cjs → index-C3gW2PyS.cjs} +1 -1
  15. package/dist/{index-rPWz6KHn.js → index-CBkHg1j7.js} +2 -2
  16. package/dist/index-CCWTxFmY.cjs +1 -0
  17. package/dist/{index-YoJfAd5X.js → index-CK30KLFM.js} +1 -1
  18. package/dist/index-CKeQA94a.cjs +1 -0
  19. package/dist/{index-CDW8XzWT.cjs → index-CVmhjMww.cjs} +1 -1
  20. package/dist/{index-C9C84gkB.cjs → index-CXn5smWf.cjs} +1 -1
  21. package/dist/{index-DN40xEbb.js → index-CkC7f2YA.js} +2 -2
  22. package/dist/{index-DNs7ujiq.js → index-CoQ-IzJk.js} +1 -1
  23. package/dist/{index-DIpWkFjh.cjs → index-Cs5rVLDE.cjs} +1 -1
  24. package/dist/{index-BiUFu7a_.js → index-D1NeHiNE.js} +334 -339
  25. package/dist/{index-BFHCLxvz.js → index-D2-lClm5.js} +1 -1
  26. package/dist/{index-DAJoy_Z5.js → index-D7QHwREN.js} +1 -1
  27. package/dist/{index-JXXdn01K.cjs → index-DIc7XjOi.cjs} +1 -1
  28. package/dist/{index-B1U77nyf.cjs → index-DLSVySRQ.cjs} +1 -1
  29. package/dist/{index-BNES2eKm.js → index-DQs8vKMu.js} +1 -1
  30. package/dist/{index-gcSJbApQ.cjs → index-DRlQXINk.cjs} +1 -1
  31. package/dist/{index-DvgAOa6m.js → index-DaJktADu.js} +3 -3
  32. package/dist/{index-bcbWOGXs.js → index-DhUpDiKd.js} +3 -3
  33. package/dist/{index-BooTgcW2.js → index-DlMveOaQ.js} +1 -1
  34. package/dist/{index-BN4opOSk.cjs → index-DlYhArOW.cjs} +1 -1
  35. package/dist/{index-OLQpbvuS.js → index-Dq1hvZtX.js} +5 -5
  36. package/dist/{index-DZQjq0ZR.js → index-DqZAVSNH.js} +1 -1
  37. package/dist/{index-BYIlecoJ.cjs → index-DyiVOF0A.cjs} +1 -1
  38. package/dist/{index-C8IFPtAJ.js → index-aBQ2sEfI.js} +5 -5
  39. package/dist/index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-BypjxmMI.cjs +37 -0
  40. package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-D6uh0ooh.js → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-GWvj-CP4.js} +10159 -10096
  41. package/dist/index.vue_vue_type_style_index_0_scoped_46e2f5ea_lang-C7FUrOoA.cjs +1 -0
  42. package/dist/index.vue_vue_type_style_index_0_scoped_46e2f5ea_lang-DvMhRFrq.js +256 -0
  43. package/dist/{index.vue_vue_type_style_index_1_lang-BUhvhTqt.js → index.vue_vue_type_style_index_1_lang-DqQPBn21.js} +1 -1
  44. package/dist/{index.vue_vue_type_style_index_1_lang-DDYxgdQk.cjs → index.vue_vue_type_style_index_1_lang-Qv4smhed.cjs} +1 -1
  45. package/dist/{main-D-bdppOV.cjs → main-DVHpLepU.cjs} +1 -1
  46. package/dist/{main-ChUyYPuq.js → main-DVImlHpP.js} +2 -2
  47. package/dist/ss-component.cjs +1 -1
  48. package/dist/ss-component.css +1 -1
  49. package/dist/ss-component.js +6 -6
  50. package/dist/ss-component2.cjs +1 -1
  51. package/dist/ss-component2.js +10 -10
  52. package/dist/{threeModel-DcuAlWjb.js → threeModel-C-_-1kt1.js} +2 -2
  53. package/dist/{threeModel-CDFo3As-.cjs → threeModel-D7w_6Pj0.cjs} +1 -1
  54. package/dist/{threeSceneView-CAsVH82L.cjs → threeSceneView-CgL4kV3p.cjs} +1 -1
  55. package/dist/{threeSceneView-Dav7AGkH.js → threeSceneView-DGTBY2Ny.js} +4 -4
  56. package/dist/{threeSceneViewForCPMPIP-9__8NGa5.cjs → threeSceneViewForCPMPIP-CJCwiWY-.cjs} +1 -1
  57. package/dist/{threeSceneViewForCPMPIP-DxFYivgN.js → threeSceneViewForCPMPIP-evlwiSv-.js} +4 -4
  58. package/dist/{threeTrackPathView-DXCMl3aZ.js → threeTrackPathView-BDOUYCiU.js} +1 -1
  59. package/dist/{threeTrackPathView-B7yrSLKq.cjs → threeTrackPathView-DopwJzcl.cjs} +1 -1
  60. package/dist/{threeViewerHost-D70yS3z2.cjs → threeViewerHost-CUT-oKqD.cjs} +1 -1
  61. package/dist/{threeViewerHost-BNnzz6WM.js → threeViewerHost-Cl30BkDb.js} +1 -1
  62. package/dist/{workpieceTreePanel-KdP9UaVe.cjs → workpieceTreePanel-CtfU-Ro2.cjs} +1 -1
  63. package/dist/{workpieceTreePanel-CCbVIIlm.js → workpieceTreePanel-yp3E4Dho.js} +2 -2
  64. package/package.json +1 -1
  65. package/dist/index-CHzlphv9.cjs +0 -1
  66. package/dist/index-lP-_9Gsb.cjs +0 -1
  67. package/dist/index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-Bff2sYnQ.cjs +0 -37
  68. package/dist/index.vue_vue_type_style_index_0_scoped_b00cbae2_lang-DlyCfLDJ.cjs +0 -1
  69. package/dist/index.vue_vue_type_style_index_0_scoped_b00cbae2_lang-Dt5lXvbN.js +0 -195
@@ -1 +0,0 @@
1
- "use strict";const r=require("vue"),ee=require("./index-BpPyaNFa.cjs"),g=require("./index-C8qRkCgn.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-fAuSnfOH.cjs");const F=require("./index-CX2C-kjD.cjs"),ne=require("./index-B2xsH_Wl.cjs"),se=require("vue-router"),M=require("./index-9hspBVrQ.cjs"),te=require("./index-lP-_9Gsb.cjs"),m=r.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-DLU6Qv3w.cjs")).then(u=>u.index));m.install=u=>{u.component("ssMenu",m)};const q={__name:"index",props:{name:String},setup(u){const T=u,C=r.computed(()=>g.ElIcons[T.name]);return r.onMounted(()=>{}),(v,y)=>{const l=r.resolveComponent("el-icon");return r.openBlock(),r.createBlock(l,null,{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(C.value)))]),_:1})}}};function b(u="menu"){return{name:u,components:{SvgIcon:ee.SvgIcon,ssMenu:m,DynamicIcon:q,ssDialog:ne.ssDialog},setup(T,{emit:C}){const v=r.defineProps({mode:{type:String,default:"vertical"}}),y=r.ref([{allowInherit:!1,operateType:"复制新增",operateIcon:"CopyAddMenu"},{allowInherit:!1,operateType:"删除",operateIcon:"DeleteMenu"},{allowInherit:!1,operateType:"修改菜单名",operateIcon:"FixedMenu"}]),l=F.useMenuState(),_=F.useModelComp(g.pinia),w=r.ref(0),h=se.useRouter(),{asideMenus:D,menuTriggerType:R,platform:$}=g.storeToRefs(l),B=r.computed(()=>v==null?void 0:v.mode),k=e=>e==null?void 0:e.map(n=>{var o,t;return!(n!=null&&n.children)||((o=n==null?void 0:n.children)==null?void 0:o.length)===0?n.config=y.value:n!=null&&n.children&&((t=n==null?void 0:n.children)==null?void 0:t.length)>0&&(n.children=k(n.children)),n}),x=r.computed(()=>{let e=[...D.value];if((e==null?void 0:e.length)===0)return h.push("/"),[];const s=H(e,N.value);return s.isFlag||(e=s==null?void 0:s.data),e=e==null?void 0:e.map(n=>{var o,t;return!(n!=null&&n.children)||((o=n==null?void 0:n.children)==null?void 0:o.length)===0?n.config=y.value:n!=null&&n.children&&((t=n==null?void 0:n.children)==null?void 0:t.length)>0&&(n.children=k(n.children)),n}),e}),E=async(e,s)=>{_.setRouteToChildPath(""),l.setMenuTriggerType("click"),l.setActiveMenuPath(e==null?void 0:e.path),l.setActiveAsideMenu(e),e.isRouter?h.push(e.path):h.push("/"),C("node-click",e,s)},V=async e=>{const s=g.findNodeByPropInTree(x.value,"path",e);l.setActiveAsideMenu(s),_.setRouteToChildPath(""),R.value==="click"?w.value===1?l.setActiveMenuPath(sessionStorage.getItem("pageKey")):l.setActiveMenuPath(e):(l.setMenuTriggerType("click"),l.setActiveMenuPath(e)),e!=null&&e.startsWith("/")?h.push(e):h.push("/"),w.value++},O=e=>{l.setActiveMenuPath(e)},a=e=>{const s=document.documentElement;e==null||e.forEach(n=>{s.style.setProperty(n.name,n.value)})};r.onMounted(()=>{w.value=1});const N=r.computed(()=>{const e=sessionStorage.getItem("authority");return e?JSON.parse(e):[]});r.watch(()=>$.value,e=>{e==="browser"?a(M.browserVerticalMenuClasses):e==="client"?(a(M.clientHorizontalMenuClasses),a(M.clientVerticalMenuClasses)):e==="three"&&(a(M.threeHorizontalMenuClasses),a(M.threeVerticalMenuClasses))},{immediate:!0});const z=(e,s)=>{function n(o){o==null||o.forEach(t=>{var d,P;const i=(d=t==null?void 0:t.path)!=null&&d.startsWith("/")?(P=t==null?void 0:t.path)==null?void 0:P.substring(1):t==null?void 0:t.path;t.show=s==null?void 0:s.some(A=>A==null?void 0:A.includes(i)),t.children&&n(t.children)})}return n(e),e},H=(e,s)=>{if(Array.isArray(s)){const n=Array.from(new Set(s==null?void 0:s.map(o=>o.substring(0,o.lastIndexOf("/")))));return{data:z(e,n),isFlag:!1}}else return{isFlag:(s==null?void 0:s.toUpperCase())==="SUPERADMIN"}},c=r.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),U=e=>te.getComponent(e),W=r.ref({}),J=r.ref([]),f=r.ref({}),p=r.ref({}),K=e=>{switch(e){case"复制新增":return"create";case"修改菜单名":return"update";case"删除":return"delete"}},S=r.ref({}),L=e=>{l.setCacheInputMenu({type:c.type,data:e}),l.setIsRefreshMenus(!0)},j=(e,s,n)=>{},G=async(e,s)=>{c.type=K(s==null?void 0:s.operateType),j(s,c.type),p.value=e,S.value=s},Q=()=>{c.show=!1},X=e=>e==null?void 0:e.filter(s=>s.allowInherit),Y=()=>{var n,o,t,i,d;let e;c.type==="create"&&(e=((n=p.value)==null?void 0:n.path)+"/"+f.value[(o=f.value)==null?void 0:o.prop]),c.type==="update"&&(e=(t=p.value)==null?void 0:t.path);const s={...p.value,config:X((i=p.value)==null?void 0:i.config),children:[],childMenus:[],title:f.value[(d=f.value)==null?void 0:d.prop],path:e};console.log("clickSubmitForm",S.value,p.value,s),L(s),c.show=!1},Z=e=>{var n,o;const s=(n=e==null?void 0:e.contents)==null?void 0:n.find(t=>t.key==="formContent");s&&(f.value=(o=s==null?void 0:s.contents)==null?void 0:o.reduce((t,i)=>(t[i.key]=i.value,t.prop=i.key,t),{}))},I=r.ref(!1);return{isCollapse:I,handleMenuCollapse:()=>{I.value=!I.value},handleCompChange:Z,dialogForm:W,dialogRenderComps:J,getComponents:U,clickSubmitForm:Y,dialogInfo:c,beforeDialogDestroy:Q,clickMenuIcon:G,mode:B,renderMenuList:x,clickMenu:E,openMenu:V,closeMenu:O,changeMenuStyle:a}}}}const re=r.defineComponent(b());exports._sfc_main=re;exports._sfc_main$1=q;exports.setComponent=b;exports.ssMenu=m;
@@ -1,195 +0,0 @@
1
- import { defineAsyncComponent as Z, computed as g, onMounted as x, resolveComponent as ee, createBlock as P, openBlock as F, withCtx as ne, resolveDynamicComponent as se, defineComponent as te, defineProps as re, ref as c, watch as oe, reactive as le } from "vue";
2
- import { S as ae } from "./index-BHtNKL1L.js";
3
- import { bO as ce, p as ie, s as ue, bN as pe } from "./index-DsSA-OiE.js";
4
- import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BZPnZF-N.js";
5
- import { u as he, a as fe } from "./index-Ce_gZ72y.js";
6
- import { s as me } from "./index-DlClEW8i.js";
7
- import { useRouter as de } from "vue-router";
8
- import { a as ge, e as Me, f as ve, g as Ce, h as ye } from "./index-CAPx0_D4.js";
9
- import { g as we } from "./index-C8IFPtAJ.js";
10
- const A = Z(() => import("./index-BooTgcW2.js").then((i) => i.j));
11
- A.install = (i) => {
12
- i.component("ssMenu", A);
13
- };
14
- const Ae = {
15
- __name: "index",
16
- props: {
17
- name: String
18
- },
19
- setup(i) {
20
- const I = i, M = g(() => ce[I.name]);
21
- return x(() => {
22
- }), (d, v) => {
23
- const o = ee("el-icon");
24
- return F(), P(o, null, {
25
- default: ne(() => [
26
- (F(), P(se(M.value)))
27
- ]),
28
- _: 1
29
- });
30
- };
31
- }
32
- };
33
- function Ie(i = "menu") {
34
- return {
35
- name: i,
36
- components: {
37
- SvgIcon: ae,
38
- ssMenu: A,
39
- DynamicIcon: Ae,
40
- ssDialog: me
41
- },
42
- setup(I, { emit: M }) {
43
- const d = re({
44
- mode: {
45
- type: String,
46
- default: "vertical"
47
- }
48
- }), v = c([
49
- {
50
- allowInherit: !1,
51
- operateType: "复制新增",
52
- operateIcon: "CopyAddMenu"
53
- },
54
- {
55
- allowInherit: !1,
56
- operateType: "删除",
57
- operateIcon: "DeleteMenu"
58
- },
59
- {
60
- allowInherit: !1,
61
- operateType: "修改菜单名",
62
- operateIcon: "FixedMenu"
63
- }
64
- ]), o = he(), T = fe(ie), C = c(0), h = de(), { asideMenus: D, menuTriggerType: R, platform: E } = ue(o), O = g(() => d == null ? void 0 : d.mode), k = (e) => e == null ? void 0 : e.map((n) => {
65
- var r, t;
66
- return !(n != null && n.children) || ((r = n == null ? void 0 : n.children) == null ? void 0 : r.length) === 0 ? n.config = v.value : n != null && n.children && ((t = n == null ? void 0 : n.children) == null ? void 0 : t.length) > 0 && (n.children = k(n.children)), n;
67
- }), S = g(() => {
68
- let e = [...D.value];
69
- if ((e == null ? void 0 : e.length) === 0)
70
- return h.push("/"), [];
71
- const s = U(e, z.value);
72
- return s.isFlag || (e = s == null ? void 0 : s.data), e = e == null ? void 0 : e.map((n) => {
73
- var r, t;
74
- return !(n != null && n.children) || ((r = n == null ? void 0 : n.children) == null ? void 0 : r.length) === 0 ? n.config = v.value : n != null && n.children && ((t = n == null ? void 0 : n.children) == null ? void 0 : t.length) > 0 && (n.children = k(n.children)), n;
75
- }), e;
76
- }), V = async (e, s) => {
77
- T.setRouteToChildPath(""), o.setMenuTriggerType("click"), o.setActiveMenuPath(e == null ? void 0 : e.path), o.setActiveAsideMenu(e), e.isRouter ? h.push(e.path) : h.push("/"), M("node-click", e, s);
78
- }, B = async (e) => {
79
- const s = pe(S.value, "path", e);
80
- o.setActiveAsideMenu(s), T.setRouteToChildPath(""), R.value === "click" ? C.value === 1 ? o.setActiveMenuPath(sessionStorage.getItem("pageKey")) : o.setActiveMenuPath(e) : (o.setMenuTriggerType("click"), o.setActiveMenuPath(e)), e != null && e.startsWith("/") ? h.push(e) : h.push("/"), C.value++;
81
- }, N = (e) => {
82
- o.setActiveMenuPath(e);
83
- }, u = (e) => {
84
- const s = document.documentElement;
85
- e == null || e.forEach((n) => {
86
- s.style.setProperty(n.name, n.value);
87
- });
88
- };
89
- x(() => {
90
- C.value = 1;
91
- });
92
- const z = g(() => {
93
- const e = sessionStorage.getItem("authority");
94
- return e ? JSON.parse(e) : [];
95
- });
96
- oe(
97
- () => E.value,
98
- (e) => {
99
- e === "browser" ? u(ge) : e === "client" ? (u(Me), u(ve)) : e === "three" && (u(Ce), u(ye));
100
- },
101
- { immediate: !0 }
102
- );
103
- const H = (e, s) => {
104
- function n(r) {
105
- r == null || r.forEach((t) => {
106
- var m, b;
107
- const a = (m = t == null ? void 0 : t.path) != null && m.startsWith("/") ? (b = t == null ? void 0 : t.path) == null ? void 0 : b.substring(1) : t == null ? void 0 : t.path;
108
- t.show = s == null ? void 0 : s.some((w) => w == null ? void 0 : w.includes(a)), t.children && n(t.children);
109
- });
110
- }
111
- return n(e), e;
112
- }, U = (e, s) => {
113
- if (Array.isArray(s)) {
114
- const n = Array.from(new Set(s == null ? void 0 : s.map((r) => r.substring(0, r.lastIndexOf("/")))));
115
- return {
116
- data: H(e, n),
117
- isFlag: !1
118
- };
119
- } else
120
- return {
121
- isFlag: (s == null ? void 0 : s.toUpperCase()) === "SUPERADMIN"
122
- };
123
- }, l = le({
124
- show: !1,
125
- title: "菜单配置",
126
- width: "30%",
127
- type: "create"
128
- }), W = (e) => we(e), j = c({}), J = c([]), f = c({}), p = c({}), K = (e) => {
129
- switch (e) {
130
- case "复制新增":
131
- return "create";
132
- case "修改菜单名":
133
- return "update";
134
- case "删除":
135
- return "delete";
136
- }
137
- }, _ = c({}), L = (e) => {
138
- o.setCacheInputMenu({
139
- type: l.type,
140
- data: e
141
- }), o.setIsRefreshMenus(!0);
142
- }, $ = (e, s, n) => {
143
- }, q = async (e, s) => {
144
- l.type = K(s == null ? void 0 : s.operateType), $(s, l.type), p.value = e, _.value = s;
145
- }, G = () => {
146
- l.show = !1;
147
- }, Q = (e) => e == null ? void 0 : e.filter((s) => s.allowInherit), X = () => {
148
- var n, r, t, a, m;
149
- let e;
150
- l.type === "create" && (e = ((n = p.value) == null ? void 0 : n.path) + "/" + f.value[(r = f.value) == null ? void 0 : r.prop]), l.type === "update" && (e = (t = p.value) == null ? void 0 : t.path);
151
- const s = {
152
- ...p.value,
153
- //是否继承父菜单的配置
154
- config: Q((a = p.value) == null ? void 0 : a.config),
155
- children: [],
156
- childMenus: [],
157
- title: f.value[(m = f.value) == null ? void 0 : m.prop],
158
- path: e
159
- };
160
- console.log("clickSubmitForm", _.value, p.value, s), L(s), l.show = !1;
161
- }, Y = (e) => {
162
- var n, r;
163
- const s = (n = e == null ? void 0 : e.contents) == null ? void 0 : n.find((t) => t.key === "formContent");
164
- s && (f.value = (r = s == null ? void 0 : s.contents) == null ? void 0 : r.reduce((t, a) => (t[a.key] = a.value, t.prop = a.key, t), {}));
165
- }, y = c(!1);
166
- return {
167
- isCollapse: y,
168
- handleMenuCollapse: () => {
169
- y.value = !y.value;
170
- },
171
- handleCompChange: Y,
172
- dialogForm: j,
173
- dialogRenderComps: J,
174
- getComponents: W,
175
- clickSubmitForm: X,
176
- dialogInfo: l,
177
- beforeDialogDestroy: G,
178
- clickMenuIcon: q,
179
- mode: O,
180
- renderMenuList: S,
181
- clickMenu: V,
182
- openMenu: B,
183
- closeMenu: N,
184
- changeMenuStyle: u
185
- };
186
- }
187
- };
188
- }
189
- const Ee = te(Ie());
190
- export {
191
- Ee as _,
192
- Ae as a,
193
- A as b,
194
- Ie as s
195
- };