ss-component-new 1.1.76 → 1.1.78
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/_plugin-vue_export-helper-BHFhmbuH.cjs +1 -0
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/array-DQ6meJk7.cjs +9 -0
- package/dist/{array-BejyPB_1.js → array-Dsurpc08.js} +247 -241
- package/dist/cloneDeep-BH_aXSAH.cjs +1 -0
- package/dist/cloneDeep-MKlVykeI.js +318 -0
- package/dist/{index-ChCXzsYf.js → index-54P6MUQ5.js} +2 -2
- package/dist/index-BCHKDSAB.cjs +1 -0
- package/dist/index-Bc2TP6E4.cjs +1 -0
- package/dist/index-C8abtcPh.cjs +87 -0
- package/dist/index-CBzgTVRc.cjs +1 -0
- package/dist/index-CRm-Cd9v.cjs +1 -0
- package/dist/index-CTc_dwbb.js +3133 -0
- package/dist/index-ChZ6L8qy.js +371 -0
- package/dist/index-ClguzCrn.js +131 -0
- package/dist/{menu-oGClEGzK.js → index-D0v2_dMz.js} +1945 -1834
- package/dist/{index-BT8Pkr84.js → index-D9tWUDyO.js} +8 -6
- package/dist/index-DB-XsCH7.cjs +1 -0
- package/dist/{index-BvoThyOF.js → index-DBKxwOZZ.js} +2 -2
- package/dist/index-DtmWzVIG.cjs +6 -0
- package/dist/{index-10n3uNlg.js → index-HDBRQNLs.js} +4 -3
- package/dist/index-YSJ2XYuj.cjs +1 -0
- package/dist/index-qogZoGJJ.js +351 -0
- package/dist/index-sjmLPf8w.cjs +1 -0
- package/dist/index-zIb6b0kg.cjs +6 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-D0K1veK2.cjs +1 -0
- package/dist/index.vue_vue_type_style_index_0_scoped_876d48c6_lang-BWOIM9wH.js +254 -0
- package/dist/index.vue_vue_type_style_index_0_scoped_876d48c6_lang-Csg3VsXp.cjs +4 -0
- package/dist/{index.vue_vue_type_style_index_0_scoped_dc84a8f7_lang-DG5vph3h.js → index.vue_vue_type_style_index_0_scoped_dc84a8f7_lang-DHffsUIJ.js} +39 -38
- package/dist/index.vue_vue_type_style_index_0_scoped_dc84a8f7_lang-DzfJEE_l.cjs +1 -0
- package/dist/main-RfdttOpi.js +288 -0
- package/dist/main-u6M32FUn.cjs +1 -0
- package/dist/menu-BIINB-0Y.js +1013 -0
- package/dist/menu-B_Az9K_F.cjs +11 -0
- package/dist/{modelComp-CqA1NVfH.js → modelComp-B3sxj_Kp.js} +1 -1
- package/dist/modelComp-DAsVXKA0.cjs +1 -0
- package/dist/router.d.ts +1 -0
- package/dist/ss-component.cjs +1 -0
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +26 -24
- package/dist/ss-component2.cjs +1 -0
- package/dist/ss-component2.js +5 -0
- package/package.json +11 -5
- package/dist/_plugin-vue_export-helper-B7R8Jogt.js +0 -524
- package/dist/index-CCr_UQBn.js +0 -3749
- package/dist/main-BUjoLIJC.js +0 -404
- package/dist/ss-component.umd.cjs +0 -115
- /package/dist/{ss-component.d.ts → main.d.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),f=require("./menu-B_Az9K_F.cjs"),x=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),S=e.defineComponent({__name:"menuItem",props:{menuList:{type:Array,default:()=>[]}},emits:["clickMenu","openMenu","closeMenu"],setup(u,{emit:i}){const l=i,c=n=>{l("clickMenu",n)},p=n=>{l("openMenu",n)},r=n=>{l("closeMenu",n)};return e.onMounted(()=>{}),(n,k)=>{const a=e.resolveComponent("MenuItem",!0),d=e.resolveComponent("el-sub-menu"),m=e.resolveComponent("el-menu-item");return e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.menuList,t=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.children&&t.children.length>0?(e.openBlock(),e.createBlock(d,{index:t.path,key:t.path},{title:e.withCtx(()=>[e.renderSlot(n.$slots,"title",{menu:t})]),default:e.withCtx(()=>[e.createVNode(a,{menuList:t.children,onClickMenu:c,onOpenMenu:p,onCloseMenu:r},e.createSlots({_:2},[e.renderList(n.$slots,(M,s)=>({name:s,fn:e.withCtx(_=>[e.renderSlot(n.$slots,s,e.mergeProps({ref_for:!0},_))])}))]),1032,["menuList"])]),_:2},1032,["index"])):(e.openBlock(),e.createBlock(m,{index:t.path,key:t.path,onClick:M=>c(t)},{title:e.withCtx(()=>[e.renderSlot(n.$slots,"title",{menu:t})]),_:2},1032,["index","onClick"]))],64))),256)}}}),g=e.defineComponent({__name:"index",props:{menuList:{type:Array,default:()=>[]}},emits:["clickMenu","openMenu","closeMenu","changeMenuStyle"],setup(u,{emit:i}){const l=f.useMenuState(),{activeMenuPath:c,activeMenuOpenPaths:p}=f.storeToRefs(l),r=i,n=t=>{r("clickMenu",t)},k=t=>{r("openMenu",t),console.log("openMenu2",t)},a=t=>{r("closeMenu",t)},d=e.computed(()=>c.value),m=e.computed(()=>p.value);return(t,M)=>{const s=e.resolveComponent("el-sub-menu"),_=e.resolveComponent("el-menu-item"),C=e.resolveComponent("el-menu");return e.openBlock(),e.createBlock(C,{class:"menu-wrap",router:"","default-active":d.value,"default-openeds":m.value,"unique-opened":!0,"collapse-transition":!1,"popper-offset":12,onOpen:k,onClose:a},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.menuList,o=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[o.children&&o.children.length>0?(e.openBlock(),e.createBlock(s,{index:o.path,key:o.path},{title:e.withCtx(()=>[e.renderSlot(t.$slots,"title",{menu:o},void 0,!0)]),default:e.withCtx(()=>[e.createVNode(S,{menuList:o.children,onClickMenu:n},e.createSlots({_:2},[e.renderList(t.$slots,(v,h)=>({name:h,fn:e.withCtx(B=>[e.renderSlot(t.$slots,h,e.mergeProps({ref_for:!0},B),void 0,!0)])}))]),1032,["menuList"])]),_:2},1032,["index"])):(e.openBlock(),e.createBlock(_,{index:o.path,key:o.path,onClick:v=>n(o)},{title:e.withCtx(()=>[e.renderSlot(t.$slots,"title",{menu:o},void 0,!0)]),_:2},1032,["index","onClick"]))],64))),256))]),_:3},8,["default-active","default-openeds"])}}}),L=x._export_sfc(g,[["__scopeId","data-v-2cbe7506"]]);exports.default=L;
|