@kernel4632/kima 0.7.1 → 0.8.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/README.md +31 -0
- package/dist/components/core/code-block.ce.vue_vue_type_style_index_0_scoped_7e6342e8_lang.css +1 -0
- package/dist/components/core/drawer.ce.vue_vue_type_style_index_0_scoped_a36af28b_lang.css +1 -0
- package/dist/components/core/menu.ce.vue_vue_type_style_index_0_scoped_597751c9_lang.css +1 -0
- package/dist/components/core/select.ce.vue_vue_type_style_index_0_scoped_f1632b10_lang.css +1 -0
- package/dist/components/display/list.ce.vue_vue_type_style_index_0_scoped_1c170b37_lang.css +1 -0
- package/dist/components/input/radio-group.ce.vue_vue_type_style_index_0_scoped_fe3edf34_lang.css +1 -0
- package/dist/components/utility/listbox.ce.vue_vue_type_style_index_0_scoped_8eab8b73_lang.css +1 -0
- package/dist/kima-elements-core.js +5560 -5488
- package/dist/kima-elements.js +14002 -13831
- package/dist/kima.js +95 -95
- package/dist/style.css +7 -7
- package/dist/styles/app-shell.css +1 -1
- package/dist/styles/code-block.css +4 -2
- package/dist/styles/core.css +4 -4
- package/dist/styles/drawer.css +1 -1
- package/dist/styles/list.css +1 -1
- package/dist/styles/listbox.css +2 -1
- package/dist/styles/menu.css +1 -1
- package/dist/styles/radio-group.css +2 -1
- package/dist/styles/select.css +1 -1
- package/dist/styles/sidebar.css +1 -1
- package/dist/vue/components/core/code-block.ce.js +72 -49
- package/dist/vue/components/core/drawer.ce.js +6 -7
- package/dist/vue/components/core/menu.ce.js +61 -32
- package/dist/vue/components/core/select.ce.js +142 -123
- package/dist/vue/components/display/list.ce.js +16 -3
- package/dist/vue/components/input/radio-group.ce.js +56 -36
- package/dist/vue/components/utility/listbox.ce.js +48 -27
- package/package.json +1 -1
- package/dist/components/core/code-block.ce.vue_vue_type_style_index_0_scoped_6ddc49c8_lang.css +0 -1
- package/dist/components/core/drawer.ce.vue_vue_type_style_index_0_scoped_f4c35e3a_lang.css +0 -1
- package/dist/components/core/menu.ce.vue_vue_type_style_index_0_scoped_754442d3_lang.css +0 -1
- package/dist/components/core/select.ce.vue_vue_type_style_index_0_scoped_5f151e50_lang.css +0 -1
- package/dist/components/display/list.ce.vue_vue_type_style_index_0_scoped_db362eec_lang.css +0 -1
- package/dist/components/input/radio-group.ce.vue_vue_type_style_index_0_scoped_30add112_lang.css +0 -1
- package/dist/components/utility/listbox.ce.vue_vue_type_style_index_0_scoped_0523583b_lang.css +0 -1
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
@import "_tokens.css";
|
|
2
|
-
@import "../components/
|
|
2
|
+
@import "../components/core/icon.ce.vue_vue_type_style_index_0_scoped_5c94f2ca_lang.css";
|
|
3
|
+
@import "../components/input/radio-group.ce.vue_vue_type_style_index_0_scoped_fe3edf34_lang.css";
|
package/dist/styles/select.css
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
@import "_tokens.css";
|
|
2
2
|
@import "../components/core/icon.ce.vue_vue_type_style_index_0_scoped_5c94f2ca_lang.css";
|
|
3
|
-
@import "../components/core/select.ce.
|
|
3
|
+
@import "../components/core/select.ce.vue_vue_type_style_index_0_scoped_f1632b10_lang.css";
|
package/dist/styles/sidebar.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@import "_tokens.css";
|
|
2
2
|
@import "../components/core/button.ce.vue_vue_type_style_index_0_scoped_ba403858_lang.css";
|
|
3
3
|
@import "../components/core/icon.ce.vue_vue_type_style_index_0_scoped_5c94f2ca_lang.css";
|
|
4
|
-
@import "../components/core/drawer.ce.
|
|
4
|
+
@import "../components/core/drawer.ce.vue_vue_type_style_index_0_scoped_a36af28b_lang.css";
|
|
5
5
|
@import "../components/navigation/link.ce.vue_vue_type_style_index_0_scoped_24e2c032_lang.css";
|
|
6
6
|
@import "../components/navigation/navigation-menu.ce.vue_vue_type_style_index_0_scoped_5a0a5b21_lang.css";
|
|
7
7
|
@import "../components/shell/sidebar.ce.vue_vue_type_style_index_0_scoped_0fd95ccf_lang.css";
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
-
import t from "./
|
|
3
|
-
import
|
|
2
|
+
import t from "./icon.ce.js";
|
|
3
|
+
import n from "./icon-button.ce.js";
|
|
4
|
+
import { highlightCodeLines as r } from "../../utils/code-highlight.js";
|
|
5
|
+
import i from "./tooltip.ce.js";
|
|
4
6
|
/* empty css */
|
|
5
|
-
import { Fragment as
|
|
7
|
+
import { Fragment as a, Transition as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createVNode as f, getCurrentInstance as p, mergeProps as m, normalizeClass as h, normalizeStyle as g, openBlock as _, ref as v, renderList as y, toDisplayString as b, unref as x, useAttrs as S, watch as C, withCtx as w } from "vue";
|
|
8
|
+
import { Copy01Icon as T, TextWrapIcon as E, Tick01Icon as D } from "@hugeicons/core-free-icons";
|
|
6
9
|
// src/components/core/code-block.ce.vue
|
|
7
|
-
var
|
|
10
|
+
var O = { class: "kima-code-block__toolbar" }, k = { class: "kima-code-block__meta" }, A = {
|
|
8
11
|
key: 0,
|
|
9
12
|
class: "kima-code-block__filename"
|
|
10
|
-
},
|
|
13
|
+
}, j = { class: "kima-code-block__language" }, M = { class: "kima-code-block__actions" }, N = ["aria-label"], P = { class: "kima-code-block__code" }, F = ["innerHTML"], I = /*#__PURE__*/ e(/* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
11
14
|
__name: "code-block.ce",
|
|
12
15
|
props: {
|
|
13
16
|
code: {
|
|
@@ -34,75 +37,95 @@ var C = { class: "kima-code-block__toolbar" }, w = { class: "kima-code-block__me
|
|
|
34
37
|
}
|
|
35
38
|
},
|
|
36
39
|
emits: ["copy", "copy-error"],
|
|
37
|
-
setup(e, { emit:
|
|
38
|
-
let
|
|
39
|
-
...
|
|
40
|
+
setup(e, { emit: I }) {
|
|
41
|
+
let L = e, R = I, z = S(), B = !!p()?.ce, V = s(() => B ? {
|
|
42
|
+
...z,
|
|
40
43
|
id: void 0
|
|
41
|
-
} :
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}),
|
|
45
|
-
|
|
44
|
+
} : z), H = v(L.wrap), U = v(!1), W = v("");
|
|
45
|
+
C(() => L.wrap, (e) => {
|
|
46
|
+
H.value = e;
|
|
47
|
+
}), C(() => L.code, () => {
|
|
48
|
+
W.value = "";
|
|
46
49
|
});
|
|
47
|
-
let
|
|
48
|
-
async function
|
|
49
|
-
if (
|
|
50
|
-
let e =
|
|
51
|
-
|
|
50
|
+
let G = s(() => r(L.code, L.language));
|
|
51
|
+
async function K() {
|
|
52
|
+
if (U.value) return;
|
|
53
|
+
let e = L.code;
|
|
54
|
+
U.value = !0, W.value = "";
|
|
52
55
|
try {
|
|
53
|
-
await navigator.clipboard.writeText(e), e ===
|
|
56
|
+
await navigator.clipboard.writeText(e), e === L.code && (W.value = "已复制"), R("copy", e);
|
|
54
57
|
} catch {
|
|
55
|
-
|
|
58
|
+
W.value = "复制失败,请选择代码手动复制", R("copy-error");
|
|
56
59
|
} finally {
|
|
57
|
-
|
|
60
|
+
U.value = !1;
|
|
58
61
|
}
|
|
59
62
|
}
|
|
60
|
-
return (
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
"
|
|
64
|
-
onClick: a[0] ||= (e) => L.value = !L.value
|
|
63
|
+
return (r, s) => (_(), u("figure", m(V.value, { class: ["kima-code-block", { "kima-code-block--wrap": H.value }] }), [
|
|
64
|
+
d("figcaption", O, [d("div", k, [e.filename ? (_(), u("span", A, b(e.filename), 1)) : l("", !0), d("span", j, b(e.language), 1)]), d("div", M, [f(i, {
|
|
65
|
+
text: H.value ? "关闭自动换行" : "开启自动换行",
|
|
66
|
+
position: "left"
|
|
65
67
|
}, {
|
|
66
|
-
default:
|
|
68
|
+
default: w(() => [f(n, {
|
|
69
|
+
icon: x(E),
|
|
70
|
+
label: "自动换行",
|
|
71
|
+
title: H.value ? "关闭自动换行" : "开启自动换行",
|
|
72
|
+
variant: H.value ? "tonal" : "standard",
|
|
73
|
+
"aria-pressed": H.value,
|
|
74
|
+
onClick: s[0] ||= (e) => H.value = !H.value
|
|
75
|
+
}, null, 8, [
|
|
76
|
+
"icon",
|
|
77
|
+
"title",
|
|
78
|
+
"variant",
|
|
79
|
+
"aria-pressed"
|
|
80
|
+
])]),
|
|
67
81
|
_: 1
|
|
68
|
-
}, 8, ["
|
|
82
|
+
}, 8, ["text"]), e.copyable ? (_(), c(i, {
|
|
69
83
|
key: 0,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
"aria-label": "复制代码",
|
|
73
|
-
onClick: V
|
|
84
|
+
text: W.value === "已复制" ? "已复制" : "复制代码",
|
|
85
|
+
position: "left"
|
|
74
86
|
}, {
|
|
75
|
-
default:
|
|
76
|
-
|
|
77
|
-
|
|
87
|
+
default: w(() => [f(n, {
|
|
88
|
+
loading: U.value,
|
|
89
|
+
label: "复制代码",
|
|
90
|
+
title: W.value === "已复制" ? "已复制" : "复制代码",
|
|
91
|
+
onClick: K
|
|
78
92
|
}, {
|
|
79
|
-
default:
|
|
93
|
+
default: w(() => [f(o, {
|
|
94
|
+
name: "kima-fade",
|
|
95
|
+
mode: "out-in"
|
|
96
|
+
}, {
|
|
97
|
+
default: w(() => [(_(), c(t, {
|
|
98
|
+
key: W.value === "已复制",
|
|
99
|
+
icon: W.value === "已复制" ? x(D) : x(T)
|
|
100
|
+
}, null, 8, ["icon"]))]),
|
|
101
|
+
_: 1
|
|
102
|
+
})]),
|
|
80
103
|
_: 1
|
|
81
|
-
})]),
|
|
104
|
+
}, 8, ["loading", "title"])]),
|
|
82
105
|
_: 1
|
|
83
|
-
}, 8, ["
|
|
84
|
-
|
|
106
|
+
}, 8, ["text"])) : l("", !0)])]),
|
|
107
|
+
d("pre", {
|
|
85
108
|
class: "kima-code-block__viewport",
|
|
86
109
|
tabindex: "0",
|
|
87
110
|
role: "region",
|
|
88
111
|
"aria-label": e.filename || e.label
|
|
89
|
-
}, [
|
|
112
|
+
}, [d("code", P, [(_(!0), u(a, null, y(G.value, (t, n) => (_(), u("span", {
|
|
90
113
|
key: n,
|
|
91
114
|
class: "kima-code-block__line"
|
|
92
|
-
}, [e.lineNumbers ? (
|
|
115
|
+
}, [e.lineNumbers ? (_(), u("span", {
|
|
93
116
|
key: 0,
|
|
94
117
|
class: "kima-code-block__number",
|
|
95
118
|
"aria-hidden": "true",
|
|
96
|
-
style:
|
|
97
|
-
},
|
|
119
|
+
style: g({ width: `${String(G.value.length).length}ch` })
|
|
120
|
+
}, b(n + 1), 5)) : l("", !0), d("span", {
|
|
98
121
|
class: "kima-code-block__text",
|
|
99
122
|
innerHTML: t || ""
|
|
100
|
-
}, null, 8,
|
|
101
|
-
|
|
102
|
-
class:
|
|
123
|
+
}, null, 8, F)]))), 128))])], 8, N),
|
|
124
|
+
d("span", {
|
|
125
|
+
class: h(["kima-code-block__status", { "kima-code-block__status--error": W.value && W.value !== "已复制" }]),
|
|
103
126
|
role: "status"
|
|
104
|
-
},
|
|
127
|
+
}, b(W.value), 3)
|
|
105
128
|
], 16));
|
|
106
129
|
}
|
|
107
|
-
}), [["__scopeId", "data-v-
|
|
108
|
-
export {
|
|
130
|
+
}), [["__scopeId", "data-v-7e6342e8"]]);
|
|
131
|
+
export { I as default };
|
|
@@ -12,10 +12,10 @@ var se = ["aria-labelledby", "aria-describedby"], ce = {
|
|
|
12
12
|
key: 1,
|
|
13
13
|
class: "kima-drawer__header-slot"
|
|
14
14
|
}, ue = {
|
|
15
|
-
key:
|
|
15
|
+
key: 2,
|
|
16
16
|
class: "kima-drawer__body"
|
|
17
17
|
}, de = {
|
|
18
|
-
key:
|
|
18
|
+
key: 3,
|
|
19
19
|
class: "kima-drawer__footer"
|
|
20
20
|
}, _ = /*#__PURE__*/ t(/* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
21
21
|
__name: "drawer.ce",
|
|
@@ -222,14 +222,13 @@ var se = ["aria-labelledby", "aria-describedby"], ce = {
|
|
|
222
222
|
size: 20,
|
|
223
223
|
color: "currentColor"
|
|
224
224
|
}, null, 8, ["icon"])])])) : i("", !0),
|
|
225
|
-
t.description ? (c(), a("p", {
|
|
226
|
-
key:
|
|
225
|
+
t.description || e.$slots.default || f(C)("default") ? (c(), a("div", ue, [t.description ? (c(), a("p", {
|
|
226
|
+
key: 0,
|
|
227
227
|
id: k,
|
|
228
228
|
class: "kima-drawer__description"
|
|
229
|
-
}, d(t.description), 1)) : i("", !0),
|
|
230
|
-
e.$slots.default || f(C)("default") ? (c(), a("div", ue, [u(e.$slots, "default", {}, void 0, !0)])) : i("", !0),
|
|
229
|
+
}, d(t.description), 1)) : i("", !0), u(e.$slots, "default", {}, void 0, !0)])) : i("", !0),
|
|
231
230
|
e.$slots.footer || f(C)("footer") ? (c(), a("footer", de, [u(e.$slots, "footer", {}, void 0, !0)])) : i("", !0)
|
|
232
231
|
], 4)], 16, se));
|
|
233
232
|
}
|
|
234
|
-
}), [["__scopeId", "data-v-
|
|
233
|
+
}), [["__scopeId", "data-v-a36af28b"]]);
|
|
235
234
|
export { _ as default };
|
|
@@ -2,15 +2,19 @@ import { useRipple as e } from "../../utils/ripple.js";
|
|
|
2
2
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
3
|
import n from "./icon.ce.js";
|
|
4
4
|
import { presenceTransition as r } from "../../utils/motion.js";
|
|
5
|
-
import { dismissInteraction as
|
|
6
|
-
import { useMenuChecks as
|
|
7
|
-
import
|
|
5
|
+
import { dismissInteraction as i, flattenChoices as a, useInteractionRoot as o, usePlacement as s } from "../../utils/interaction.js";
|
|
6
|
+
import { useMenuChecks as c, useShellModel as l } from "../../utils/shell.js";
|
|
7
|
+
import ee from "../../internal/menu-items.js";
|
|
8
8
|
/* empty css */
|
|
9
|
-
import { Transition as
|
|
10
|
-
import { DropdownMenuContent as re, DropdownMenuRoot as
|
|
11
|
-
import { ArrowDown01Icon as
|
|
9
|
+
import { Transition as te, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createVNode as h, mergeProps as g, nextTick as _, openBlock as v, ref as y, renderSlot as b, toDisplayString as x, unref as S, useId as C, vModelText as w, watch as T, withCtx as E, withDirectives as ne, withModifiers as D } from "vue";
|
|
10
|
+
import { DropdownMenuContent as re, DropdownMenuRoot as ie, DropdownMenuTrigger as ae } from "reka-ui";
|
|
11
|
+
import { ArrowDown01Icon as O, MoreHorizontalIcon as k, Search01Icon as A } from "@hugeicons/core-free-icons";
|
|
12
12
|
// src/components/core/menu.ce.vue
|
|
13
|
-
var
|
|
13
|
+
var j = [
|
|
14
|
+
"disabled",
|
|
15
|
+
"aria-label",
|
|
16
|
+
"title"
|
|
17
|
+
], M = { key: 1 }, N = {
|
|
14
18
|
key: 0,
|
|
15
19
|
class: "kima-menu__search-wrap"
|
|
16
20
|
}, P = {
|
|
@@ -47,6 +51,19 @@ var M = ["disabled"], N = {
|
|
|
47
51
|
checked: {
|
|
48
52
|
type: Object,
|
|
49
53
|
default: () => ({})
|
|
54
|
+
},
|
|
55
|
+
variant: {
|
|
56
|
+
type: String,
|
|
57
|
+
default: "default"
|
|
58
|
+
},
|
|
59
|
+
iconOnly: Boolean,
|
|
60
|
+
icon: {
|
|
61
|
+
type: Object,
|
|
62
|
+
default: void 0
|
|
63
|
+
},
|
|
64
|
+
size: {
|
|
65
|
+
type: String,
|
|
66
|
+
default: "default"
|
|
50
67
|
}
|
|
51
68
|
},
|
|
52
69
|
emits: [
|
|
@@ -58,9 +75,9 @@ var M = ["disabled"], N = {
|
|
|
58
75
|
"check"
|
|
59
76
|
],
|
|
60
77
|
setup(t, { emit: F }) {
|
|
61
|
-
let I = t, L = F, { root: R, forwardedAttrs: z } =
|
|
78
|
+
let I = t, L = F, { root: R, forwardedAttrs: z } = o(), [B, V] = l(I, "open", L), [H, U] = l(I, "modelValue", L), { checked: W, check: G } = c(I, L), K = y(null), q = y(null), J = y("");
|
|
62
79
|
e(K);
|
|
63
|
-
let
|
|
80
|
+
let oe = `kima-menu-${C()}`, se = s(I), Y = u(() => a(I.items).find((e) => Object.is(e.value, H.value)) || null), X = u(() => I.iconOnly || I.variant === "icon"), ce = u(() => I.icon || k), le = u(() => ["small", "default"].includes(I.size) ? I.size : "default");
|
|
64
81
|
function Z(e, t) {
|
|
65
82
|
return e.flatMap((e) => {
|
|
66
83
|
let n = e.children ? Z(e.children, t) : [];
|
|
@@ -74,10 +91,10 @@ var M = ["disabled"], N = {
|
|
|
74
91
|
function $(e) {
|
|
75
92
|
e && I.disabled || (e && (J.value = ""), V(e));
|
|
76
93
|
}
|
|
77
|
-
function
|
|
94
|
+
function ue(e) {
|
|
78
95
|
I.disabled || e.disabled || (Object.is(H.value, e.value) || (U(e.value), L("change", e.value)), L("select", e.value, e), $(!1));
|
|
79
96
|
}
|
|
80
|
-
function
|
|
97
|
+
function de(e) {
|
|
81
98
|
if (e.key === "Escape") e.preventDefault(), $(!1), K.value?.focus();
|
|
82
99
|
else if (e.key === "Tab") $(!1);
|
|
83
100
|
else if ([
|
|
@@ -94,69 +111,81 @@ var M = ["disabled"], N = {
|
|
|
94
111
|
e && $(!1);
|
|
95
112
|
}), T(B, (e) => {
|
|
96
113
|
e && I.searchable && _(() => q.value?.focus());
|
|
97
|
-
}), (e,
|
|
114
|
+
}), (e, a) => (v(), p("div", g({
|
|
98
115
|
ref_key: "root",
|
|
99
116
|
ref: R
|
|
100
|
-
}, S(z), { class: ["kima-menu", {
|
|
117
|
+
}, S(z), { class: ["kima-menu", {
|
|
118
|
+
"kima-menu--open": S(B),
|
|
119
|
+
"kima-menu--icon": X.value,
|
|
120
|
+
[`kima-menu--${le.value}`]: !0
|
|
121
|
+
}] }), [h(S(ie), {
|
|
101
122
|
open: S(B) && !t.disabled,
|
|
102
123
|
modal: !1,
|
|
103
124
|
"onUpdate:open": $
|
|
104
125
|
}, {
|
|
105
|
-
default: E(() => [h(S(
|
|
126
|
+
default: E(() => [h(S(ae), { "as-child": "" }, {
|
|
106
127
|
default: E(() => [m("button", {
|
|
107
128
|
ref_key: "trigger",
|
|
108
129
|
ref: K,
|
|
109
130
|
type: "button",
|
|
110
131
|
class: "kima-menu__trigger",
|
|
111
|
-
disabled: t.disabled
|
|
132
|
+
disabled: t.disabled,
|
|
133
|
+
"aria-label": X.value ? t.label : void 0,
|
|
134
|
+
title: X.value ? t.label : void 0
|
|
112
135
|
}, [b(e.$slots, "trigger", {
|
|
113
136
|
open: S(B),
|
|
114
|
-
selectedItem:
|
|
137
|
+
selectedItem: Y.value,
|
|
115
138
|
value: S(H)
|
|
116
|
-
}, () => [
|
|
117
|
-
|
|
139
|
+
}, () => [X.value ? (v(), d(n, {
|
|
140
|
+
key: 0,
|
|
141
|
+
icon: ce.value,
|
|
142
|
+
size: 20,
|
|
143
|
+
"aria-hidden": "true"
|
|
144
|
+
}, null, 8, ["icon"])) : (v(), p("span", M, x(Y.value?.label || t.label), 1))], !0), X.value ? f("", !0) : (v(), d(n, {
|
|
145
|
+
key: 0,
|
|
146
|
+
icon: S(O),
|
|
118
147
|
size: 20,
|
|
119
148
|
"aria-hidden": "true"
|
|
120
|
-
}, null, 8, ["icon"])], 8,
|
|
149
|
+
}, null, 8, ["icon"]))], 8, j)]),
|
|
121
150
|
_: 3
|
|
122
|
-
}), h(
|
|
151
|
+
}), h(te, g({ name: "kima-popup" }, S(r)), {
|
|
123
152
|
default: E(() => [S(B) && !t.disabled ? (v(), d(S(re), g({
|
|
124
153
|
key: 0,
|
|
125
|
-
id:
|
|
154
|
+
id: oe,
|
|
126
155
|
"force-mount": ""
|
|
127
|
-
}, S(
|
|
156
|
+
}, S(se), {
|
|
128
157
|
class: "kima-menu__popup",
|
|
129
158
|
"aria-label": t.label,
|
|
130
159
|
loop: "",
|
|
131
|
-
onEscapeKeyDown:
|
|
132
|
-
onOpenAutoFocus:
|
|
160
|
+
onEscapeKeyDown: a[3] ||= (e) => S(i)(e, () => $(!1)),
|
|
161
|
+
onOpenAutoFocus: a[4] ||= (e) => {
|
|
133
162
|
t.searchable && (e.preventDefault(), _(() => q.value?.focus()));
|
|
134
163
|
}
|
|
135
164
|
}), {
|
|
136
165
|
default: E(() => [
|
|
137
166
|
t.searchable ? (v(), p("div", N, [h(n, {
|
|
138
|
-
icon: S(
|
|
167
|
+
icon: S(A),
|
|
139
168
|
size: 18,
|
|
140
169
|
"aria-hidden": "true"
|
|
141
170
|
}, null, 8, ["icon"]), ne(m("input", {
|
|
142
171
|
ref_key: "searchInput",
|
|
143
172
|
ref: q,
|
|
144
|
-
"onUpdate:modelValue":
|
|
173
|
+
"onUpdate:modelValue": a[0] ||= (e) => J.value = e,
|
|
145
174
|
type: "search",
|
|
146
175
|
class: "kima-menu__search",
|
|
147
176
|
role: "searchbox",
|
|
148
177
|
"aria-label": "搜索菜单项",
|
|
149
|
-
onInput:
|
|
150
|
-
onChange:
|
|
151
|
-
onKeydown: D(
|
|
178
|
+
onInput: a[1] ||= D(() => {}, ["stop"]),
|
|
179
|
+
onChange: a[2] ||= D(() => {}, ["stop"]),
|
|
180
|
+
onKeydown: D(de, ["stop"])
|
|
152
181
|
}, null, 544), [[w, J.value]])])) : f("", !0),
|
|
153
|
-
h(
|
|
182
|
+
h(ee, {
|
|
154
183
|
items: Q.value,
|
|
155
184
|
checked: S(W),
|
|
156
185
|
"model-value": S(H),
|
|
157
186
|
selection: "",
|
|
158
187
|
disabled: t.disabled,
|
|
159
|
-
onSelect:
|
|
188
|
+
onSelect: ue,
|
|
160
189
|
onCheck: S(G)
|
|
161
190
|
}, null, 8, [
|
|
162
191
|
"items",
|
|
@@ -174,5 +203,5 @@ var M = ["disabled"], N = {
|
|
|
174
203
|
_: 3
|
|
175
204
|
}, 8, ["open"])], 16));
|
|
176
205
|
}
|
|
177
|
-
}), [["__scopeId", "data-v-
|
|
206
|
+
}), [["__scopeId", "data-v-597751c9"]]);
|
|
178
207
|
export { F as default };
|