lkt-menu 2.0.9 → 2.0.10
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.css +1 -1
- package/dist/build.d.ts +4 -4
- package/dist/build.js +129 -123
- package/dist/components/MenuItem.vue.d.ts +690 -138
- package/dist/lib-components/LktMenu.vue.d.ts +462 -92
- package/package.json +1 -1
- package/theme/default.css +9 -1
package/dist/build.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.lkt-menu{width:var(--lkt-menu--container--width);overflow:auto;max-height:var(--lkt-menu--container--max-height);display:flex}.lkt-menu-main{background:var(--lkt-menu--background);padding:var(--lkt-menu--padding);max-width:var(--lkt-menu--max-width);width:var(--lkt-menu--width);height:100%;display:var(--lkt-menu--display);flex-direction:var(--lkt-menu--flex-direction);align-items:var(--lkt-menu--align-items);gap:var(--lkt-menu--entry--gap);position:relative}.lkt-menu-entry-toggle-inner{transition:all linear .2s}.lkt-menu-entry-toggle-inner.is-opened{transform:rotate(180deg)}.lkt-entry-content{display:inline-flex;flex-direction:row;gap:var(--lkt-menu--gap)}.lkt-menu-entry-toggle{display:inline-flex;flex-direction:row;align-items:center;justify-content:center}.lkt-menu-entry{padding:var(--lkt-menu--entry--padding)}.lkt-menu-entry .lkt-anchor{width:100%}.lkt-menu-entry-main{display:flex;justify-content:space-between;position:relative}.lkt-entry-content{font-size:var(--lkt-menu--font-size);width:100%}.lkt-menu-outside{position:absolute;top:0;right:0;left:0;bottom:0;background:var(--lkt-menu--outside--background);z-index:-1}.lkt-menu-entry-children{padding:var(--lkt-menu--children--padding)}.lkt-menu-entry-text{padding:var(--lkt-menu--text-without-icon--padding)}.lkt-menu.has-icon .lkt-menu-entry-text{padding:var(--lkt-menu--text--padding)}.lkt-menu.has-icon .lkt-menu-entry-icon+.lkt-menu-entry-text{padding:var(--lkt-menu--text-with-icon--padding)}.lkt-menu.type-hidden{position:fixed;top:var(--lkt-menu--container--top);bottom:var(--lkt-menu--container--bottom);width:100%;background:var(--lkt-menu--container--background);transition:var(--lkt-menu--container--transition);z-index:400}.lkt-menu.type-hidden .lkt-menu-main{z-index:402}.lkt-menu.type-hidden .lkt-menu-outside{z-index:401}.lkt-menu.type-hidden .lkt-menu-outside{opacity:0;transition:all linear .4s .1s}.lkt-menu.type-hidden.is-visible .lkt-menu-outside{opacity:1}.lkt-menu.type-hidden.left-hidden{left:-100%}.lkt-menu.type-hidden.left-hidden.is-visible{left:0}.lkt-menu.type-hidden.right-hidden{justify-content:flex-end;right:-100%}.lkt-menu.type-hidden.right-hidden.is-visible{right:0}
|
|
1
|
+
.lkt-menu{width:var(--lkt-menu--container--width);overflow:auto;max-height:var(--lkt-menu--container--max-height);display:flex;flex-direction:var(--lkt-menu--container--flex-direction);align-items:var(--lkt-menu--container--align-items)}.lkt-menu-main{background:var(--lkt-menu--background);padding:var(--lkt-menu--padding);max-width:var(--lkt-menu--max-width);width:var(--lkt-menu--width);height:100%;display:var(--lkt-menu--display);flex-direction:var(--lkt-menu--flex-direction);align-items:var(--lkt-menu--align-items);gap:var(--lkt-menu--entry--gap);position:relative}.lkt-menu-entry-toggle-inner{transition:all linear .2s}.lkt-menu-entry-toggle-inner.is-opened{transform:rotate(180deg)}.lkt-entry-content{display:inline-flex;flex-direction:row;gap:var(--lkt-menu--gap)}.lkt-menu-entry-toggle{display:inline-flex;flex-direction:row;align-items:center;justify-content:center}.lkt-menu-entries{align-items:var(--lkt-menu--entries--align-items);background:var(--lkt-menu--entries--background);display:flex;flex-direction:var(--lkt-menu--entries--flex-direction);width:var(--lkt-menu--entries--width)}.lkt-menu-entry{padding:var(--lkt-menu--entry--padding)}.lkt-menu-entry .lkt-anchor{width:100%}.lkt-menu-entry-main{display:flex;justify-content:space-between;position:relative}.lkt-entry-content{font-size:var(--lkt-menu--font-size);width:100%}.lkt-menu-outside{position:absolute;top:0;right:0;left:0;bottom:0;background:var(--lkt-menu--outside--background);z-index:-1}.lkt-menu-entry-children{padding:var(--lkt-menu--children--padding)}.lkt-menu-entry-text{padding:var(--lkt-menu--text-without-icon--padding)}.lkt-menu.has-icon .lkt-menu-entry-text{padding:var(--lkt-menu--text--padding)}.lkt-menu.has-icon .lkt-menu-entry-icon+.lkt-menu-entry-text{padding:var(--lkt-menu--text-with-icon--padding)}.lkt-menu.type-hidden{position:fixed;top:var(--lkt-menu--container--top);bottom:var(--lkt-menu--container--bottom);width:100%;background:var(--lkt-menu--container--background);transition:var(--lkt-menu--container--transition);z-index:400}.lkt-menu.type-hidden .lkt-menu-main{z-index:402}.lkt-menu.type-hidden .lkt-menu-outside{z-index:401}.lkt-menu.type-hidden .lkt-menu-outside{opacity:0;transition:all linear .4s .1s}.lkt-menu.type-hidden.is-visible .lkt-menu-outside{opacity:1}.lkt-menu.type-hidden.left-hidden{left:-100%}.lkt-menu.type-hidden.left-hidden.is-visible{left:0}.lkt-menu.type-hidden.right-hidden{justify-content:flex-end;right:-100%}.lkt-menu.type-hidden.right-hidden.is-visible{right:0}
|
package/dist/build.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
declare namespace
|
|
2
|
-
function install(
|
|
1
|
+
declare namespace $e {
|
|
2
|
+
function install(s: any): void;
|
|
3
3
|
}
|
|
4
|
-
declare function Oe(
|
|
5
|
-
export {
|
|
4
|
+
declare function Oe(s: any): boolean;
|
|
5
|
+
export { $e as default, Oe as setMenuToggleSlot };
|
package/dist/build.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { MenuEntryType as R, MenuController as W, MenuType as
|
|
1
|
+
import { defineComponent as X, ref as T, useSlots as Y, computed as r, watch as S, onMounted as Z, resolveComponent as E, createElementBlock as d, openBlock as u, normalizeClass as g, createElementVNode as _, createCommentVNode as f, createBlock as y, unref as p, normalizeProps as H, mergeProps as I, createSlots as q, withCtx as h, renderSlot as k, toDisplayString as ee, resolveDynamicComponent as te, Fragment as x, renderList as j, mergeDefaults as le } from "vue";
|
|
2
|
+
import { MenuEntryType as R, MenuController as W, MenuType as Q, getDefaultValues as ne, Menu as oe } from "lkt-vue-kernel";
|
|
3
3
|
import { useRouter as ue } from "vue-router";
|
|
4
4
|
import { DataState as se } from "lkt-data-state";
|
|
5
|
-
import { httpCall as
|
|
6
|
-
const G = (
|
|
7
|
-
o.key && !
|
|
8
|
-
}),
|
|
5
|
+
import { httpCall as ie } from "lkt-http-client";
|
|
6
|
+
const G = (s, V) => (V.forEach((o) => {
|
|
7
|
+
o.key && !s.includes(o.key) && s.push(o.key), o.children && o.children.length > 0 && G(s, o.children);
|
|
8
|
+
}), s), L = class L {
|
|
9
9
|
};
|
|
10
|
-
|
|
11
|
-
let M =
|
|
12
|
-
const
|
|
10
|
+
L.toggleSlot = "", L.debugEnabled = !1;
|
|
11
|
+
let M = L;
|
|
12
|
+
const ae = ["id"], re = { class: "lkt-menu-entry-main" }, ce = { class: "lkt-entry-content" }, de = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "lkt-menu-entry-icon"
|
|
15
|
-
},
|
|
15
|
+
}, pe = {
|
|
16
16
|
key: 1,
|
|
17
17
|
class: "lkt-menu-entry-text"
|
|
18
|
-
},
|
|
18
|
+
}, ve = {
|
|
19
19
|
key: 0,
|
|
20
20
|
class: "lkt-menu-entry-children"
|
|
21
|
-
},
|
|
21
|
+
}, me = /* @__PURE__ */ X({
|
|
22
22
|
__name: "MenuItem",
|
|
23
23
|
props: {
|
|
24
24
|
modelValue: { default: () => ({}) }
|
|
@@ -26,125 +26,126 @@ const ie = { class: "lkt-menu-entry-main" }, re = { class: "lkt-entry-content" }
|
|
|
26
26
|
emits: [
|
|
27
27
|
"update:modelValue"
|
|
28
28
|
],
|
|
29
|
-
setup(
|
|
30
|
-
const o = V, v =
|
|
29
|
+
setup(s, { emit: V }) {
|
|
30
|
+
const o = V, v = s, e = T(v.modelValue), c = Y(), a = ue(), A = T(!1), K = () => {
|
|
31
31
|
e.value.isOpened = !e.value.isOpened;
|
|
32
|
-
},
|
|
33
|
-
var t,
|
|
34
|
-
return typeof e.value.children < "u" && ((t = e.value.children) == null ? void 0 : t.length) > 0 && !e.value.keepOpenOnChildClick && K(), typeof ((
|
|
32
|
+
}, b = () => {
|
|
33
|
+
var t, l;
|
|
34
|
+
return typeof e.value.children < "u" && ((t = e.value.children) == null ? void 0 : t.length) > 0 && !e.value.keepOpenOnChildClick && K(), typeof ((l = e.value.events) == null ? void 0 : l.click) == "function" && e.value.events.click({
|
|
35
35
|
entry: e.value
|
|
36
36
|
}), 1;
|
|
37
|
-
}, D =
|
|
37
|
+
}, D = r(() => c["icon-" + e.value.key] || e.value.icon !== ""), P = r(() => {
|
|
38
38
|
let t = [];
|
|
39
39
|
return D.value && t.push("has-icon"), A.value && t.push("is-active"), e.value.type && t.push(`is-${e.value.type}`), t.join(" ");
|
|
40
|
-
}),
|
|
41
|
-
var
|
|
42
|
-
return G([], ((
|
|
43
|
-
}),
|
|
40
|
+
}), U = r(() => {
|
|
41
|
+
var l;
|
|
42
|
+
return G([], ((l = e.value) == null ? void 0 : l.children) ?? []);
|
|
43
|
+
}), w = r(() => {
|
|
44
44
|
let t = [];
|
|
45
|
-
for (let
|
|
46
|
-
|
|
45
|
+
for (let l in c)
|
|
46
|
+
l.startsWith("icon-") && U.value.includes(l.substring(5)) && t.push(l);
|
|
47
47
|
return t;
|
|
48
|
-
}),
|
|
48
|
+
}), F = r(() => e.value.isActive ? !0 : typeof e.value.isActiveChecker == "function" ? !!e.value.isActiveChecker({
|
|
49
49
|
entry: e.value
|
|
50
|
-
}) : !1),
|
|
50
|
+
}) : !1), N = r(() => !!M.toggleSlot), n = r(() => M.toggleSlot);
|
|
51
51
|
return S(() => v.modelValue, (t) => {
|
|
52
52
|
e.value = t;
|
|
53
53
|
}, { deep: !0 }), S(e, (t) => {
|
|
54
54
|
o("update:modelValue", t);
|
|
55
|
-
}, { deep: !0 }),
|
|
56
|
-
var
|
|
57
|
-
let t =
|
|
55
|
+
}, { deep: !0 }), Z(() => {
|
|
56
|
+
var l, i, m;
|
|
57
|
+
let t = a == null ? void 0 : a.currentRoute;
|
|
58
58
|
if (t) {
|
|
59
|
-
if (t.value.path === ((
|
|
59
|
+
if (t.value.path === ((l = e.value.anchor) == null ? void 0 : l.to))
|
|
60
60
|
e.value.isOpened = !0;
|
|
61
|
-
else if (typeof e.value.children < "u" && ((
|
|
62
|
-
let
|
|
63
|
-
(
|
|
64
|
-
var
|
|
65
|
-
t.value.path === ((
|
|
66
|
-
}),
|
|
61
|
+
else if (typeof e.value.children < "u" && ((i = e.value.children) == null ? void 0 : i.length) > 0) {
|
|
62
|
+
let C = !1;
|
|
63
|
+
(m = e.value.children) == null || m.forEach((J) => {
|
|
64
|
+
var $;
|
|
65
|
+
t.value.path === (($ = J.anchor) == null ? void 0 : $.to) && (C = !0);
|
|
66
|
+
}), C && (e.value.isOpened = !0);
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
-
}), (t,
|
|
70
|
-
var
|
|
71
|
-
const
|
|
72
|
-
return
|
|
73
|
-
class: g(["lkt-menu-entry",
|
|
69
|
+
}), (t, l) => {
|
|
70
|
+
var $;
|
|
71
|
+
const i = E("lkt-button"), m = E("lkt-header"), C = E("lkt-anchor"), J = E("menu-item", !0);
|
|
72
|
+
return u(), d("div", {
|
|
73
|
+
class: g(["lkt-menu-entry", P.value]),
|
|
74
|
+
id: `entry-${e.value.key}`
|
|
74
75
|
}, [
|
|
75
|
-
_("div",
|
|
76
|
-
e.value.type === p(R).Button ? (
|
|
77
|
-
p(
|
|
76
|
+
_("div", re, [
|
|
77
|
+
e.value.type === p(R).Button ? (u(), y(i, H(I({ key: 0 }, e.value.button)), q({ _: 2 }, [
|
|
78
|
+
p(c).tooltip ? {
|
|
78
79
|
name: "tooltip",
|
|
79
80
|
fn: h(() => [
|
|
80
81
|
k(t.$slots, "tooltip")
|
|
81
82
|
]),
|
|
82
83
|
key: "0"
|
|
83
84
|
} : void 0,
|
|
84
|
-
p(
|
|
85
|
+
p(c).split ? {
|
|
85
86
|
name: "split",
|
|
86
87
|
fn: h(() => [
|
|
87
88
|
k(t.$slots, "split")
|
|
88
89
|
]),
|
|
89
90
|
key: "1"
|
|
90
91
|
} : void 0
|
|
91
|
-
]), 1040)) : e.value.type === p(R).Header ? (
|
|
92
|
-
"on-click":
|
|
93
|
-
"is-active":
|
|
94
|
-
onActive:
|
|
92
|
+
]), 1040)) : e.value.type === p(R).Header ? (u(), y(m, H(I({ key: 1 }, e.value.header)), null, 16)) : e.value.type === p(R).Anchor ? (u(), y(C, H(I({ key: 2 }, e.value.anchor)), null, 16)) : (u(), y(C, I({ key: 3 }, e.value.anchor, {
|
|
93
|
+
"on-click": b,
|
|
94
|
+
"is-active": F.value,
|
|
95
|
+
onActive: l[0] || (l[0] = (O) => A.value = O)
|
|
95
96
|
}), {
|
|
96
|
-
text: h(({ text:
|
|
97
|
-
_("div",
|
|
98
|
-
D.value ? (
|
|
99
|
-
p(
|
|
97
|
+
text: h(({ text: O }) => [
|
|
98
|
+
_("div", ce, [
|
|
99
|
+
D.value ? (u(), d("div", de, [
|
|
100
|
+
p(c)["icon-" + e.value.key] ? k(t.$slots, "icon-" + e.value.key, {
|
|
100
101
|
key: e.value.key,
|
|
101
102
|
entry: e.value
|
|
102
|
-
}) : e.value.icon !== "" ? (
|
|
103
|
+
}) : e.value.icon !== "" ? (u(), d("i", {
|
|
103
104
|
key: 1,
|
|
104
105
|
class: g(e.value.icon)
|
|
105
106
|
}, null, 2)) : f("", !0)
|
|
106
107
|
])) : f("", !0),
|
|
107
|
-
|
|
108
|
+
O !== "" ? (u(), d("div", pe, ee(O), 1)) : f("", !0)
|
|
108
109
|
])
|
|
109
110
|
]),
|
|
110
111
|
_: 3
|
|
111
112
|
}, 16, ["is-active"])),
|
|
112
|
-
e.value.type !== p(R).Button && e.value.children && ((
|
|
113
|
+
e.value.type !== p(R).Button && e.value.children && (($ = e.value.children) == null ? void 0 : $.length) > 0 ? (u(), d("div", {
|
|
113
114
|
key: 4,
|
|
114
115
|
class: "lkt-menu-entry-toggle",
|
|
115
116
|
onClick: K
|
|
116
117
|
}, [
|
|
117
|
-
|
|
118
|
+
N.value ? (u(), y(te(n.value), {
|
|
118
119
|
key: 0,
|
|
119
120
|
class: g(["lkt-menu-entry-toggle-inner", e.value.isOpened ? "is-opened" : ""])
|
|
120
|
-
}, null, 8, ["class"])) : (
|
|
121
|
+
}, null, 8, ["class"])) : (u(), d("div", {
|
|
121
122
|
key: 1,
|
|
122
123
|
class: g(["lkt-menu-entry-toggle-inner", e.value.isOpened ? "is-opened" : ""])
|
|
123
|
-
},
|
|
124
|
+
}, l[1] || (l[1] = [
|
|
124
125
|
_("i", { class: "lkt-icn-angle-bottom" }, null, -1)
|
|
125
126
|
]), 2))
|
|
126
127
|
])) : f("", !0)
|
|
127
128
|
]),
|
|
128
|
-
e.value.isOpened ? (
|
|
129
|
-
(
|
|
129
|
+
e.value.isOpened ? (u(), d("div", ve, [
|
|
130
|
+
(u(!0), d(x, null, j(e.value.children, (O, z) => (u(), y(J, {
|
|
130
131
|
modelValue: e.value.children[z],
|
|
131
|
-
"onUpdate:modelValue": (
|
|
132
|
+
"onUpdate:modelValue": (B) => e.value.children[z] = B,
|
|
132
133
|
key: e.value.children[z].key
|
|
133
134
|
}, q({ _: 2 }, [
|
|
134
|
-
|
|
135
|
-
name:
|
|
135
|
+
j(w.value, (B) => ({
|
|
136
|
+
name: B,
|
|
136
137
|
fn: h(() => [
|
|
137
|
-
k(t.$slots,
|
|
138
|
+
k(t.$slots, B)
|
|
138
139
|
])
|
|
139
140
|
}))
|
|
140
141
|
]), 1032, ["modelValue", "onUpdate:modelValue"]))), 128))
|
|
141
142
|
])) : f("", !0)
|
|
142
|
-
],
|
|
143
|
+
], 10, ae);
|
|
143
144
|
};
|
|
144
145
|
}
|
|
145
|
-
}),
|
|
146
|
+
}), ke = ["role"], ye = { class: "lkt-menu-main" }, he = { class: "lkt-menu-entries" }, fe = /* @__PURE__ */ X({
|
|
146
147
|
__name: "LktMenu",
|
|
147
|
-
props: /* @__PURE__ */
|
|
148
|
+
props: /* @__PURE__ */ le({
|
|
148
149
|
modelValue: {},
|
|
149
150
|
type: {},
|
|
150
151
|
menuKey: { type: [String, Number, Function] },
|
|
@@ -160,76 +161,81 @@ const ie = { class: "lkt-menu-entry-main" }, re = { class: "lkt-entry-content" }
|
|
|
160
161
|
"response",
|
|
161
162
|
"error"
|
|
162
163
|
],
|
|
163
|
-
setup(
|
|
164
|
+
setup(s, { emit: V }) {
|
|
164
165
|
var N;
|
|
165
|
-
const o =
|
|
166
|
-
let
|
|
167
|
-
typeof
|
|
168
|
-
for (let
|
|
169
|
-
(Array.isArray(
|
|
170
|
-
return
|
|
166
|
+
const o = s, v = V, e = T(!1), c = Y(), a = T(o.modelValue), A = (n) => {
|
|
167
|
+
let t = {};
|
|
168
|
+
typeof n == "object" && Object.keys(n).length > 0 && (t = JSON.parse(JSON.stringify(n)));
|
|
169
|
+
for (let l in t)
|
|
170
|
+
(Array.isArray(t[l]) || typeof t[l] == "object") && (t[l] = JSON.stringify(t[l]));
|
|
171
|
+
return t;
|
|
171
172
|
};
|
|
172
|
-
S(() => W.config.value, (
|
|
173
|
+
S(() => W.config.value, (n) => {
|
|
173
174
|
}, { deep: !0 });
|
|
174
|
-
const K =
|
|
175
|
-
let
|
|
175
|
+
const K = r(() => {
|
|
176
|
+
let n = [
|
|
176
177
|
`type-${o.type}`
|
|
177
178
|
];
|
|
178
|
-
return o.menuKey &&
|
|
179
|
+
return o.menuKey && n.push(o.menuKey), e.value && n.push("is-visible"), o.type === Q.Hidden && n.push(`${o.hiddenPosition}-hidden`), n.join(" ");
|
|
179
180
|
});
|
|
180
|
-
let
|
|
181
|
-
|
|
182
|
-
const D =
|
|
183
|
-
let
|
|
184
|
-
for (let
|
|
185
|
-
|
|
186
|
-
return
|
|
187
|
-
}),
|
|
188
|
-
var
|
|
189
|
-
if (!((
|
|
190
|
-
let
|
|
191
|
-
v("loading"),
|
|
192
|
-
|
|
193
|
-
}).catch((
|
|
194
|
-
v("error",
|
|
181
|
+
let b = new se({});
|
|
182
|
+
b.increment(A(((N = o.http) == null ? void 0 : N.data) ?? {}));
|
|
183
|
+
const D = r(() => G([], a.value)), P = r(() => {
|
|
184
|
+
let n = [];
|
|
185
|
+
for (let t in c)
|
|
186
|
+
t.startsWith("icon-") && D.value.includes(t.substring(5)) && n.push(t);
|
|
187
|
+
return n;
|
|
188
|
+
}), U = () => {
|
|
189
|
+
var t, l;
|
|
190
|
+
if (!((t = o.http) != null && t.resource)) return;
|
|
191
|
+
let n = b.getData();
|
|
192
|
+
v("loading"), ie((l = o.http) == null ? void 0 : l.resource, n).then((i) => {
|
|
193
|
+
b.turnStoredIntoOriginal(), a.value = i.data, v("results", i.data), v("response", i);
|
|
194
|
+
}).catch((i) => {
|
|
195
|
+
v("error", i);
|
|
195
196
|
});
|
|
196
|
-
},
|
|
197
|
+
}, w = () => {
|
|
197
198
|
o.closeOnClickOutside && W.closeMenu(o.menuKey), v("click-outside");
|
|
198
199
|
};
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
}, { deep: !0 }), S(
|
|
202
|
-
v("update:modelValue",
|
|
203
|
-
}, { deep: !0 }),
|
|
204
|
-
W.addMenu(o.menuKey, e),
|
|
205
|
-
})
|
|
206
|
-
|
|
200
|
+
S(() => o.modelValue, (n) => {
|
|
201
|
+
a.value = n;
|
|
202
|
+
}, { deep: !0 }), S(a, (n) => {
|
|
203
|
+
v("update:modelValue", n);
|
|
204
|
+
}, { deep: !0 }), Z(() => {
|
|
205
|
+
W.addMenu(o.menuKey, e), U();
|
|
206
|
+
});
|
|
207
|
+
const F = r(() => {
|
|
208
|
+
if (o.type === Q.TabList) return "tablist";
|
|
209
|
+
});
|
|
210
|
+
return (n, t) => (u(), d("div", {
|
|
211
|
+
class: g(["lkt-menu", K.value]),
|
|
212
|
+
role: F.value
|
|
207
213
|
}, [
|
|
208
|
-
_("div",
|
|
209
|
-
p(
|
|
210
|
-
_("div",
|
|
211
|
-
(
|
|
212
|
-
modelValue:
|
|
213
|
-
"onUpdate:modelValue": (m) =>
|
|
214
|
-
class: g(
|
|
214
|
+
_("div", ye, [
|
|
215
|
+
p(c).before ? k(n.$slots, "before", { key: 0 }) : f("", !0),
|
|
216
|
+
_("div", he, [
|
|
217
|
+
(u(!0), d(x, null, j(a.value, (l, i) => (u(), y(me, {
|
|
218
|
+
modelValue: a.value[i],
|
|
219
|
+
"onUpdate:modelValue": (m) => a.value[i] = m,
|
|
220
|
+
class: g(l.class)
|
|
215
221
|
}, q({ _: 2 }, [
|
|
216
|
-
P
|
|
222
|
+
j(P.value, (m) => ({
|
|
217
223
|
name: m,
|
|
218
224
|
fn: h(() => [
|
|
219
|
-
k(
|
|
225
|
+
k(n.$slots, m)
|
|
220
226
|
])
|
|
221
227
|
})),
|
|
222
|
-
p(
|
|
228
|
+
p(c)[`tooltip-${l.key}`] ? {
|
|
223
229
|
name: "tooltip",
|
|
224
230
|
fn: h(() => [
|
|
225
|
-
k(
|
|
231
|
+
k(n.$slots, `tooltip-${l.key}`)
|
|
226
232
|
]),
|
|
227
233
|
key: "0"
|
|
228
234
|
} : void 0,
|
|
229
|
-
p(
|
|
235
|
+
p(c)[`split-${l.key}`] ? {
|
|
230
236
|
name: "split",
|
|
231
237
|
fn: h(() => [
|
|
232
|
-
k(
|
|
238
|
+
k(n.$slots, `split-${l.key}`)
|
|
233
239
|
]),
|
|
234
240
|
key: "1"
|
|
235
241
|
} : void 0
|
|
@@ -238,16 +244,16 @@ const ie = { class: "lkt-menu-entry-main" }, re = { class: "lkt-entry-content" }
|
|
|
238
244
|
]),
|
|
239
245
|
_("div", {
|
|
240
246
|
class: "lkt-menu-outside",
|
|
241
|
-
onClick:
|
|
247
|
+
onClick: w
|
|
242
248
|
})
|
|
243
|
-
],
|
|
249
|
+
], 10, ke));
|
|
244
250
|
}
|
|
245
|
-
}),
|
|
246
|
-
install: (
|
|
247
|
-
|
|
251
|
+
}), $e = {
|
|
252
|
+
install: (s) => {
|
|
253
|
+
s.component("lkt-menu") === void 0 && s.component("lkt-menu", fe);
|
|
248
254
|
}
|
|
249
|
-
}, Oe = (
|
|
255
|
+
}, Oe = (s) => (M.toggleSlot = s, !0);
|
|
250
256
|
export {
|
|
251
|
-
|
|
257
|
+
$e as default,
|
|
252
258
|
Oe as setMenuToggleSlot
|
|
253
259
|
};
|