lkt-menu 1.0.1 → 1.0.3

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/build.d.ts CHANGED
@@ -13,6 +13,7 @@ declare function se(n: any, t: any, l: any): {
13
13
  isActiveChecker: any;
14
14
  setIsActive: (t?: boolean) => K;
15
15
  setLabel: (t: any) => K;
16
+ setIcon: (t: any) => K;
16
17
  doClose: () => void;
17
18
  };
18
19
  declare namespace ne {
@@ -34,6 +35,7 @@ declare class K {
34
35
  isActiveChecker: any;
35
36
  setIsActive(t?: boolean): this;
36
37
  setLabel(t: any): this;
38
+ setIcon(t: any): this;
37
39
  doClose(): void;
38
40
  }
39
41
  export { se as createMenuEntry, ne as default };
package/dist/build.js CHANGED
@@ -19,6 +19,9 @@ class K {
19
19
  setLabel(t) {
20
20
  return this.label = t, this;
21
21
  }
22
+ setIcon(t) {
23
+ return this.icon = t, this;
24
+ }
22
25
  doClose() {
23
26
  this.isOpened = !1;
24
27
  }
@@ -80,7 +83,7 @@ const O = (n, t) => (t.forEach((l) => {
80
83
  }) : e.value.icon !== "" ? (u(), o("i", {
81
84
  key: 1,
82
85
  class: b(e.value.icon)
83
- }, "icon", 2)) : h("", !0)
86
+ }, null, 2)) : h("", !0)
84
87
  ])) : h("", !0),
85
88
  e.value.label !== "" ? (u(), o("div", J, F(v.value), 1)) : h("", !0)
86
89
  ])
@@ -15,5 +15,6 @@ export declare class MenuEntry {
15
15
  setIsActiveChecker(fn: Function): this;
16
16
  setIsActive(enabled?: boolean): this;
17
17
  setLabel(str: string): this;
18
+ setIcon(str: string): this;
18
19
  doClose(): void;
19
20
  }
@@ -31,6 +31,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
31
31
  setIsActiveChecker: (fn: Function) => MenuEntry;
32
32
  setIsActive: (enabled?: boolean) => MenuEntry;
33
33
  setLabel: (str: string) => MenuEntry;
34
+ setIcon: (str: string) => MenuEntry;
34
35
  doClose: () => void;
35
36
  };
36
37
  }) => any>> & Partial<Record<any, (_: {}) => any>>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lkt-menu",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "lkt",
@@ -98,7 +98,7 @@ watch(entry, (v) => {
98
98
  :entry="entry"/>
99
99
  </template>
100
100
  <template v-else-if="entry.icon !== ''">
101
- <i :class="entry.icon">icon</i>
101
+ <i :class="entry.icon"/>
102
102
  </template>
103
103
  </div>
104
104
  <div class="lkt-menu-entry-text" v-if="entry.label !== ''">
@@ -1,7 +1,7 @@
1
1
  <script setup lang="ts">
2
2
  import {MenuEntry} from "../classes/MenuEntry";
3
3
  import MenuItem from "../components/MenuItem.vue";
4
- import {computed, nextTick, ref, useSlots, watch} from "vue";
4
+ import {computed, ref, useSlots, watch} from "vue";
5
5
  import {LktObject} from "lkt-ts-interfaces";
6
6
  import {fetchKeys} from "../functions/helpers";
7
7