@a2simcode/ui 0.0.318 → 0.0.319

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.
@@ -28,8 +28,8 @@ declare const JMenu: {
28
28
  }, import('vue').PublicProps, {
29
29
  mode: "inline" | "vertical" | "horizontal";
30
30
  theme: "dark" | "light";
31
- collapsed: boolean;
32
31
  showChildIcon: boolean;
32
+ collapsed: boolean;
33
33
  menus: Record<string, any>[];
34
34
  activeId: string;
35
35
  }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
@@ -66,8 +66,8 @@ declare const JMenu: {
66
66
  }>, {}, {}, {}, {}, {
67
67
  mode: "inline" | "vertical" | "horizontal";
68
68
  theme: "dark" | "light";
69
- collapsed: boolean;
70
69
  showChildIcon: boolean;
70
+ collapsed: boolean;
71
71
  menus: Record<string, any>[];
72
72
  activeId: string;
73
73
  }>;
@@ -103,8 +103,8 @@ declare const JMenu: {
103
103
  }, string, {
104
104
  mode: "inline" | "vertical" | "horizontal";
105
105
  theme: "dark" | "light";
106
- collapsed: boolean;
107
106
  showChildIcon: boolean;
107
+ collapsed: boolean;
108
108
  menus: Record<string, any>[];
109
109
  activeId: string;
110
110
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
@@ -42,8 +42,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
42
42
  }>> & Readonly<{
43
43
  onClick?: ((...args: any[]) => any) | undefined;
44
44
  }>, {
45
- collapsed: boolean;
46
45
  showChildIcon: boolean;
46
+ collapsed: boolean;
47
47
  menuList: Record<string, any>[];
48
48
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
49
49
  export default _default;
@@ -40,7 +40,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
40
40
  */
41
41
  isVertical: BooleanConstructor;
42
42
  /**
43
- * @zh 是否显示次级菜单图标。关闭后子项(indent > 0)的 icon 隐藏,父项不受影响。
43
+ * @zh 是否显示次级菜单图标。
44
44
  */
45
45
  showChildIcon: {
46
46
  type: BooleanConstructor;
@@ -89,7 +89,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
89
89
  */
90
90
  isVertical: BooleanConstructor;
91
91
  /**
92
- * @zh 是否显示次级菜单图标。关闭后子项(indent > 0)的 icon 隐藏,父项不受影响。
92
+ * @zh 是否显示次级菜单图标。
93
93
  */
94
94
  showChildIcon: {
95
95
  type: BooleanConstructor;
@@ -108,11 +108,11 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
108
108
  active: boolean;
109
109
  color?: string;
110
110
  };
111
+ showChildIcon: boolean;
111
112
  collapsed: boolean;
112
113
  isSub: boolean;
113
114
  isHorizontal: boolean;
114
115
  isVertical: boolean;
115
116
  parentActives: string[];
116
- showChildIcon: boolean;
117
117
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
118
118
  export default _default;
@@ -80,8 +80,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
80
80
  }>, {
81
81
  mode: "inline" | "vertical" | "horizontal";
82
82
  theme: "dark" | "light";
83
- collapsed: boolean;
84
83
  showChildIcon: boolean;
84
+ collapsed: boolean;
85
85
  menus: Record<string, any>[];
86
86
  activeId: string;
87
87
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -5,6 +5,13 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
5
5
  pId: {
6
6
  type: StringConstructor;
7
7
  };
8
+ /**
9
+ * @zh 是否显示次级菜单图标
10
+ */
11
+ showChildIcon: {
12
+ type: BooleanConstructor;
13
+ default: boolean;
14
+ };
8
15
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
16
  click: (...args: any[]) => void;
10
17
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
@@ -14,7 +21,16 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
14
21
  pId: {
15
22
  type: StringConstructor;
16
23
  };
24
+ /**
25
+ * @zh 是否显示次级菜单图标
26
+ */
27
+ showChildIcon: {
28
+ type: BooleanConstructor;
29
+ default: boolean;
30
+ };
17
31
  }>> & Readonly<{
18
32
  onClick?: ((...args: any[]) => any) | undefined;
19
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
33
+ }>, {
34
+ showChildIcon: boolean;
35
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
20
36
  export default _default;
@@ -11532,7 +11532,13 @@ var og = /* @__PURE__ */ xe({
11532
11532
  }), gm = pm, vm = Be(gm), ym = /* @__PURE__ */ xe({
11533
11533
  name: "JSubMenu",
11534
11534
  __name: "index",
11535
- props: { pId: { type: String } },
11535
+ props: {
11536
+ pId: { type: String },
11537
+ showChildIcon: {
11538
+ type: Boolean,
11539
+ default: !0
11540
+ }
11541
+ },
11536
11542
  emits: ["click"],
11537
11543
  setup(e, { emit: t }) {
11538
11544
  const n = e, a = t, { getMenuMap: o, toArray: i, activeMenu: l, theme: r } = li(), { getHMoreMenus: c } = Dh(), s = D([]);
@@ -11551,9 +11557,14 @@ var og = /* @__PURE__ */ xe({
11551
11557
  key: y.data.value,
11552
11558
  "parent-actives": q(l)?.pid?.split(".") || [],
11553
11559
  item: y.data,
11560
+ "show-child-icon": e.showChildIcon,
11554
11561
  "is-sub": "",
11555
11562
  onClick: d
11556
- }, null, 8, ["parent-actives", "item"]))), 128))], 16)], 16));
11563
+ }, null, 8, [
11564
+ "parent-actives",
11565
+ "item",
11566
+ "show-child-icon"
11567
+ ]))), 128))], 16)], 16));
11557
11568
  }
11558
11569
  }), mm = ym, bm = { class: "j-menu-item-label" }, wm = { class: "j-menu-item-label" }, xm = {
11559
11570
  key: 1,
@@ -11601,7 +11612,7 @@ var og = /* @__PURE__ */ xe({
11601
11612
  }]),
11602
11613
  style: ce({ "padding-left": `${e.item.indent * 24 + 16}px` })
11603
11614
  }, [
11604
- e.item.icon && (e.item.indent === 0 || e.showChildIcon) ? (k(), K(c, {
11615
+ e.item.icon && (e.showChildIcon || !e.isSub && e.item.indent === 0) ? (k(), K(c, {
11605
11616
  key: 0,
11606
11617
  icon: e.item.icon,
11607
11618
  class: "j-menu-item-icon",
@@ -11628,7 +11639,7 @@ var og = /* @__PURE__ */ xe({
11628
11639
  }]),
11629
11640
  style: ce({ "padding-left": `${e.item.indent * 34 + 16}px` })
11630
11641
  }, [
11631
- e.item.icon && (e.item.indent === 0 || e.showChildIcon) ? (k(), K(c, {
11642
+ e.item.icon && (e.showChildIcon || !e.isSub && e.item.indent === 0) ? (k(), K(c, {
11632
11643
  key: 0,
11633
11644
  icon: e.item.icon,
11634
11645
  style: ce({
@@ -11643,8 +11654,9 @@ var og = /* @__PURE__ */ xe({
11643
11654
  ], 6)], 2)]),
11644
11655
  default: X(() => [Q(mm, {
11645
11656
  "p-id": e.item.value,
11657
+ "show-child-icon": e.showChildIcon,
11646
11658
  onClick: i
11647
- }, null, 8, ["p-id"])]),
11659
+ }, null, 8, ["p-id", "show-child-icon"])]),
11648
11660
  _: 1
11649
11661
  }, 8, ["placement"])) : (k(), L("div", {
11650
11662
  key: 2,
@@ -11660,7 +11672,7 @@ var og = /* @__PURE__ */ xe({
11660
11672
  }]),
11661
11673
  style: ce({ "padding-left": `${e.item.indent * 24 + 16}px` })
11662
11674
  }, [
11663
- e.item.icon && (e.item.indent === 0 || e.showChildIcon) ? (k(), K(c, {
11675
+ e.item.icon && (e.showChildIcon || !e.isSub && e.item.indent === 0) ? (k(), K(c, {
11664
11676
  key: 0,
11665
11677
  icon: e.item.icon,
11666
11678
  class: "j-menu-item-icon",