ss-component-new 1.1.91 → 1.1.92
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/{array-kT49S5YY.js → array-BgIIYMp8.js} +3 -3
- package/dist/{array-BwRdGRzc.cjs → array-Dfo6Mzo6.cjs} +1 -1
- package/dist/{cloneDeep-AHvR5ani.js → cloneDeep-DfNjQDv0.js} +1 -1
- package/dist/{cloneDeep-BSjYw4rp.cjs → cloneDeep-RSgcd0lM.cjs} +1 -1
- package/dist/{index-BYAKG_hE.cjs → index-BML45nF_.cjs} +2 -2
- package/dist/{index-BoI4Lv7B.js → index-BiV4-BNP.js} +2 -2
- package/dist/{index-UlB7yRs3.cjs → index-BlnGSqoB.cjs} +1 -1
- package/dist/{index-B_ByBr_L.js → index-BobCh3oE.js} +1 -1
- package/dist/{index-DN9fO_z9.js → index-C6xpS6g4.js} +7 -7
- package/dist/{index-CD0UIMZE.js → index-Cn12atnJ.js} +2 -2
- package/dist/{index-Ahp5YbTz.cjs → index-Cz_dGbw6.cjs} +1 -1
- package/dist/{index-S7oCNwTd.js → index-D-G9JpXS.js} +1 -1
- package/dist/{index-CWJ1pWax.js → index-DWtHxZ1z.js} +2 -2
- package/dist/{index-D7LOG6yf.cjs → index-DXTt6kxh.cjs} +1 -1
- package/dist/{index-Cf4l02x7.cjs → index-fQBAvPdI.cjs} +1 -1
- package/dist/{index-BoggMYJV.cjs → index-ymVHKvnN.cjs} +1 -1
- package/dist/{main-BSvcgVUS.js → main-CB3bjzi7.js} +2 -2
- package/dist/{main-Di2iouyz.cjs → main-CSW5bv2M.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +5 -5
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as Sp, onMounted as Ab, watch as vL, onUnmounted as cL, createElementBlock as Mb, openBlock as Ib, createVNode as pL } from "vue";
|
|
2
2
|
import { _ as Lb } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
-
import { c as Ki } from "./cloneDeep-
|
|
3
|
+
import { c as Ki } from "./cloneDeep-DfNjQDv0.js";
|
|
4
4
|
/*! *****************************************************************************
|
|
5
5
|
Copyright (c) Microsoft Corporation.
|
|
6
6
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ref as S, onMounted as be, createElementBlock as L, openBlock as w, Fragment as me, renderList as fe, createElementVNode as X, createCommentVNode as z, toDisplayString as re, watch as v, createVNode as se, unref as Q, createBlock as oe, resolveDynamicComponent as Ae } from "vue";
|
|
2
|
-
import { v as q, d as Y, p as ee, u as De, f as je, i as Oe, e as _e, g as Ue, m as Ee, a as Me, b as Te, c as xe } from "./array-
|
|
2
|
+
import { v as q, d as Y, p as ee, u as De, f as je, i as Oe, e as _e, g as Ue, m as Ee, a as Me, b as Te, c as xe } from "./array-BgIIYMp8.js";
|
|
3
3
|
import { u as de } from "./modelComp-B3sxj_Kp.js";
|
|
4
4
|
import { u as ye, s as te } from "./menu-BIINB-0Y.js";
|
|
5
|
-
import Ie from "./index-
|
|
5
|
+
import Ie from "./index-DWtHxZ1z.js";
|
|
6
6
|
import { _ as ie } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
|
-
import { c as a } from "./cloneDeep-
|
|
7
|
+
import { c as a } from "./cloneDeep-DfNjQDv0.js";
|
|
8
8
|
const Ne = { class: "bread-content" }, Je = ["onClick"], Pe = { key: 0 }, we = {
|
|
9
9
|
__name: "index",
|
|
10
10
|
props: {
|
|
@@ -748,7 +748,7 @@ const Z = S(0), Se = (t) => {
|
|
|
748
748
|
l.setOriginalData(s == null ? void 0 : s.jsonContents), l.setItemData(s == null ? void 0 : s.jsonContents);
|
|
749
749
|
return;
|
|
750
750
|
}
|
|
751
|
-
if (!(s != null && s.content) || ((b = s == null ? void 0 : s.content) == null ? void 0 : b.length) === 0) return;
|
|
751
|
+
if (console.log(232, s == null ? void 0 : s.content), !(s != null && s.content) || ((b = s == null ? void 0 : s.content) == null ? void 0 : b.length) === 0) return;
|
|
752
752
|
p.value = !0;
|
|
753
753
|
let h, u = [];
|
|
754
754
|
(O = s == null ? void 0 : s.content) == null || O.forEach((U) => {
|
|
@@ -798,7 +798,7 @@ const Z = S(0), Se = (t) => {
|
|
|
798
798
|
]);
|
|
799
799
|
};
|
|
800
800
|
}
|
|
801
|
-
}, $t = /* @__PURE__ */ ie(kt, [["__scopeId", "data-v-
|
|
801
|
+
}, $t = /* @__PURE__ */ ie(kt, [["__scopeId", "data-v-4dcd8eed"]]), Ct = { class: "add-model-content" }, bt = {
|
|
802
802
|
key: 0,
|
|
803
803
|
class: "model-import-data"
|
|
804
804
|
}, At = { class: "import-button" }, Dt = { key: 0 }, jt = {
|
|
@@ -873,7 +873,7 @@ const Z = S(0), Se = (t) => {
|
|
|
873
873
|
v(
|
|
874
874
|
() => [s == null ? void 0 : s.content, s == null ? void 0 : s.jsonContents],
|
|
875
875
|
() => {
|
|
876
|
-
l.value.push(s == null ? void 0 : s.content),
|
|
876
|
+
l.value.push(s == null ? void 0 : s.content), m.value = s == null ? void 0 : s.jsonContents;
|
|
877
877
|
},
|
|
878
878
|
{ deep: !0, immediate: !0 }
|
|
879
879
|
), v(
|
|
@@ -947,7 +947,7 @@ const Z = S(0), Se = (t) => {
|
|
|
947
947
|
]);
|
|
948
948
|
};
|
|
949
949
|
}
|
|
950
|
-
}, wt = /* @__PURE__ */ ie(Et, [["__scopeId", "data-v-
|
|
950
|
+
}, wt = /* @__PURE__ */ ie(Et, [["__scopeId", "data-v-245fc653"]]);
|
|
951
951
|
export {
|
|
952
952
|
wt as default
|
|
953
953
|
};
|
|
@@ -5943,12 +5943,12 @@ const z9 = z4(F, "$notify"), M9 = [
|
|
|
5943
5943
|
{
|
|
5944
5944
|
path: "/login",
|
|
5945
5945
|
name: "Login",
|
|
5946
|
-
component: async () => import("./index-
|
|
5946
|
+
component: async () => import("./index-D-G9JpXS.js")
|
|
5947
5947
|
},
|
|
5948
5948
|
{
|
|
5949
5949
|
path: "/model",
|
|
5950
5950
|
name: "Model",
|
|
5951
|
-
component: async () => import("./index-
|
|
5951
|
+
component: async () => import("./index-C6xpS6g4.js")
|
|
5952
5952
|
// component: async ()=>import('@/components/views/model/component/main.vue'),
|
|
5953
5953
|
// component: async ()=>import('@/components/views/canvas/index.vue'),
|
|
5954
5954
|
// component: async ()=>import('@/components/views/test/index.vue'),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),_=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),_=require("./index-DXTt6kxh.cjs"),C=require("./menu-B_Az9K_F.cjs"),B=require("./modelComp-DAsVXKA0.cjs"),A=require("./cloneDeep-RSgcd0lM.cjs"),I=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),b=s.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-sjmLPf8w.cjs")));b.install=t=>{t.component("ssMenu",b)};const P={__name:"index",props:{name:String},setup(t){const p=t,m=s.computed(()=>_.ElIcons[p.name]);return s.onMounted(()=>{const d=Object.keys(_.ElIcons);console.log("iconComponent",m.value,p.name,_.ElIcons,d)}),(d,f)=>{const M=s.resolveComponent("el-icon");return s.openBlock(),s.createBlock(M,null,{default:s.withCtx(()=>[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(m.value)))]),_:1})}}},w=s.defineComponent({name:"menu",components:{ssMenu:b,DynamicIcon:P},setup(){const t=C.useMenuState(),p=B.useModelComp(),{rawMenu:m,menuTriggerType:d}=C.storeToRefs(t),{itemData:f}=C.storeToRefs(p),M=s.ref([]);let h;(e=>{e[e.Menu=0]="Menu",e[e.FolderOpened=1]="FolderOpened"})(h||(h={}));const y=e=>{let r=[],n=[];return e==null||e.forEach(o=>{r=g(o,n)}),console.log("splitMenu",r),r},g=(e,r)=>{const n=r,o=[];e==null||e.forEach(l=>{Array.isArray(l)?o.push({children:g(l,[])}):o.push({title:l})});let c=o.reduce((l,a)=>(Object.entries(a).forEach(([u,i])=>{l[u]===void 0?i!=null&&i.title?l[u]=[i]:l[u]=i:(Array.isArray(l[u])||(l[u]=[{title:l[u]}]),i!=null&&i.title||Array.isArray(i)?l[u].push(i):l[u].push({title:i}))}),l),{});return c=S(A.cloneDeep(c)),n.push(c),Array.isArray(n)&&(n==null?void 0:n.length)>1?n:n==null?void 0:n[0]},S=e=>{var r,n,o;return Array.isArray(e==null?void 0:e.title)&&((r=e==null?void 0:e.title)==null?void 0:r.length)===((o=(n=e==null?void 0:e.title)==null?void 0:n.filter(c=>c.title))==null?void 0:o.length)?e==null?void 0:e.title:Array.isArray(e==null?void 0:e.children)?T(e):e},T=e=>{var n;const r=e;return r.children=(n=r.children)==null?void 0:n.map(o=>{var c;return(c=o==null?void 0:o.title)!=null&&c.children?o==null?void 0:o.title:o}),r},v=(e,r="",n=0)=>{var l;const o=A.cloneDeep(f.value),c=(l=o==null?void 0:o.filter(a=>{var u;return((u=a.comp)==null?void 0:u.toUpperCase())==="GROUP"}))==null?void 0:l.map(a=>a.name);return e==null?void 0:e.map(a=>{const u=r?`${r}/${a.title}`:a.title,i={...a,path:u,level:n,icon:h[`${n}`],carryData:c==null?void 0:c.includes(u)};return a.children&&a.children.length>0&&(i.children=v(a.children,u,n+1)),i})},D=s.computed(()=>{const e=v(M.value);return console.log("temps",e),t.setMenus(e),e}),E=e=>{console.log("clickMenu",e),t.setMenuTriggerType("click"),t.setActiveMenuPath(e==null?void 0:e.path)},$=e=>{d.value==="click"?t.setActiveMenuPath(e):t.setMenuTriggerType("click")},O=e=>{t.setActiveMenuPath(e)},k=s.ref([{name:"--ssComponent-menu-bg",value:"#426ec4"},{name:"--ssComponent-submenu-hover-bg",value:"#00000033"},{name:"--ssComponent-submenu-open-bg",value:"#2DA0FF"},{name:"--ssComponent-submenu-open-inline-bg",value:"#1C4275"},{name:"--ssComponent-menuitem-hover-bg",value:"#1d7bef"},{name:"--ssComponent-menuitem-active-bg",value:"#1d7bef"}]),q=()=>{var r;const e=document.documentElement;(r=k.value)==null||r.forEach(n=>{e.style.setProperty(n.name,n.value)})};return s.onMounted(()=>{}),s.watch(()=>m.value,e=>{var r,n,o;if(e){const c=(o=(n=(r=A.cloneDeep(e))==null?void 0:r.compData)==null?void 0:n[0])==null?void 0:o.contents;M.value=y(c),console.log("rawMenu",D.value)}else t.setActiveMenuPath("")},{immediate:!0}),{renderMenuList:D,clickMenu:E,openMenu:$,closeMenu:O,changeMenuStyle:q}}});function F(t,p,m,d,f,M){const h=s.resolveComponent("DynamicIcon"),y=s.resolveComponent("ssMenu");return s.openBlock(),s.createBlock(y,{menuList:t.renderMenuList,onClickMenu:t.clickMenu,onOpenMenu:t.openMenu,onCloseMenu:t.closeMenu,onChangeMenuStyle:t.changeMenuStyle,class:"menuList-wrap"},{title:s.withCtx(({menu:g})=>[s.createVNode(h,{name:g.icon??""},null,8,["name"]),s.createElementVNode("span",null,s.toDisplayString(g.title??""),1)]),_:1},8,["menuList","onClickMenu","onOpenMenu","onCloseMenu","onChangeMenuStyle"])}const R=I._export_sfc(w,[["render",F],["__scopeId","data-v-dc84a8f7"]]);exports.default=R;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createElementBlock as d, openBlock as D, createElementVNode as E, renderSlot as R, defineComponent as Y, ref as t, resolveComponent as e, createVNode as C, withCtx as I, reactive as K, watch as M, unref as U, toDisplayString as S, createTextVNode as l } from "vue";
|
|
2
2
|
import { _ as a } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
-
import { u as L, l as m } from "./index-
|
|
3
|
+
import { u as L, l as m } from "./index-Cn12atnJ.js";
|
|
4
4
|
import { useRouter as O } from "vue-router";
|
|
5
5
|
const H = {}, P = { class: "header-wrapper" }, v = { class: "header-horizontal" }, j = { class: "header-logo" }, h = { class: "header-cTitle" }, r = { class: "header-horizontal" }, G = { class: "header-eTitle" };
|
|
6
6
|
function b(Q, s) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineAsyncComponent as j, computed as E, onMounted as O, resolveComponent as A, createBlock as C, openBlock as b, withCtx as F, resolveDynamicComponent as B, defineComponent as U, ref as T, watch as G, createVNode as V, createElementVNode as q, toDisplayString as z } from "vue";
|
|
2
|
-
import { E as y } from "./index-
|
|
2
|
+
import { E as y } from "./index-Cn12atnJ.js";
|
|
3
3
|
import { u as H, s as $ } from "./menu-BIINB-0Y.js";
|
|
4
4
|
import { u as J } from "./modelComp-B3sxj_Kp.js";
|
|
5
|
-
import { c as _ } from "./cloneDeep-
|
|
5
|
+
import { c as _ } from "./cloneDeep-DfNjQDv0.js";
|
|
6
6
|
import { _ as K } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
7
|
const v = j(() => import("./index-DBKxwOZZ.js"));
|
|
8
8
|
v.install = (r) => {
|