@guoyg578/k-ui 0.1.0
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/LICENSE +21 -0
- package/README.md +59 -0
- package/dist/_virtual/_plugin-vue_export-helper.js +8 -0
- package/dist/components/KAlert.js +7 -0
- package/dist/components/KAlert.vue.d.ts +40 -0
- package/dist/components/KAlert.vue_vue_type_script_setup_true_lang.js +76 -0
- package/dist/components/KAvatar.js +7 -0
- package/dist/components/KAvatar.vue.d.ts +15 -0
- package/dist/components/KAvatar.vue_vue_type_script_setup_true_lang.js +53 -0
- package/dist/components/KAvatarGroup.js +7 -0
- package/dist/components/KAvatarGroup.vue.d.ts +18 -0
- package/dist/components/KAvatarGroup.vue_vue_type_script_setup_true_lang.js +11 -0
- package/dist/components/KBreadcrumb.js +7 -0
- package/dist/components/KBreadcrumb.vue.d.ts +12 -0
- package/dist/components/KBreadcrumb.vue_vue_type_script_setup_true_lang.js +38 -0
- package/dist/components/KButton.js +7 -0
- package/dist/components/KButton.vue.d.ts +36 -0
- package/dist/components/KButton.vue_vue_type_script_setup_true_lang.js +50 -0
- package/dist/components/KCard.js +7 -0
- package/dist/components/KCard.vue.d.ts +33 -0
- package/dist/components/KCard.vue_vue_type_script_setup_true_lang.js +50 -0
- package/dist/components/KCarousel.js +7 -0
- package/dist/components/KCarousel.vue.d.ts +59 -0
- package/dist/components/KCarousel.vue_vue_type_script_setup_true_lang.js +141 -0
- package/dist/components/KCheckbox.js +7 -0
- package/dist/components/KCheckbox.vue.d.ts +26 -0
- package/dist/components/KCheckbox.vue_vue_type_script_setup_true_lang.js +48 -0
- package/dist/components/KCheckboxGroup.js +7 -0
- package/dist/components/KCheckboxGroup.vue.d.ts +27 -0
- package/dist/components/KCheckboxGroup.vue_vue_type_script_setup_true_lang.js +36 -0
- package/dist/components/KCombobox.js +8 -0
- package/dist/components/KCombobox.vue.d.ts +28 -0
- package/dist/components/KCombobox.vue_vue_type_script_setup_true_lang.js +120 -0
- package/dist/components/KCommandPalette.js +7 -0
- package/dist/components/KCommandPalette.vue.d.ts +31 -0
- package/dist/components/KCommandPalette.vue_vue_type_script_setup_true_lang.js +169 -0
- package/dist/components/KConfirmDialog.js +6 -0
- package/dist/components/KConfirmDialog.vue.d.ts +3 -0
- package/dist/components/KConfirmDialog.vue_vue_type_script_setup_true_lang.js +48 -0
- package/dist/components/KDataTable.js +7 -0
- package/dist/components/KDataTable.vue.d.ts +47 -0
- package/dist/components/KDataTable.vue_vue_type_script_setup_true_lang.js +62 -0
- package/dist/components/KDatePicker.js +6 -0
- package/dist/components/KDatePicker.vue.d.ts +19 -0
- package/dist/components/KDatePicker.vue_vue_type_script_setup_true_lang.js +57 -0
- package/dist/components/KDialog.js +7 -0
- package/dist/components/KDialog.vue.d.ts +52 -0
- package/dist/components/KDialog.vue_vue_type_script_setup_true_lang.js +117 -0
- package/dist/components/KDiff.js +7 -0
- package/dist/components/KDiff.vue.d.ts +13 -0
- package/dist/components/KDiff.vue_vue_type_script_setup_true_lang.js +116 -0
- package/dist/components/KDrawer.js +7 -0
- package/dist/components/KDrawer.vue.d.ts +37 -0
- package/dist/components/KDrawer.vue_vue_type_script_setup_true_lang.js +81 -0
- package/dist/components/KDropdown.js +7 -0
- package/dist/components/KDropdown.vue.d.ts +56 -0
- package/dist/components/KDropdown.vue_vue_type_script_setup_true_lang.js +93 -0
- package/dist/components/KEmpty.js +5 -0
- package/dist/components/KEmpty.vue.d.ts +22 -0
- package/dist/components/KEmpty.vue_vue_type_script_setup_true_lang.js +30 -0
- package/dist/components/KForm.js +7 -0
- package/dist/components/KForm.vue.d.ts +38 -0
- package/dist/components/KForm.vue_vue_type_script_setup_true_lang.js +69 -0
- package/dist/components/KFormField.js +7 -0
- package/dist/components/KFormField.vue.d.ts +32 -0
- package/dist/components/KFormField.vue_vue_type_script_setup_true_lang.js +84 -0
- package/dist/components/KGridSkeleton.js +5 -0
- package/dist/components/KGridSkeleton.vue.d.ts +10 -0
- package/dist/components/KGridSkeleton.vue_vue_type_script_setup_true_lang.js +21 -0
- package/dist/components/KImage.js +7 -0
- package/dist/components/KImage.vue.d.ts +25 -0
- package/dist/components/KImage.vue_vue_type_script_setup_true_lang.js +97 -0
- package/dist/components/KImageViewer.js +7 -0
- package/dist/components/KImageViewer.vue.d.ts +14 -0
- package/dist/components/KImageViewer.vue_vue_type_script_setup_true_lang.js +108 -0
- package/dist/components/KInput.js +7 -0
- package/dist/components/KInput.vue.d.ts +43 -0
- package/dist/components/KInput.vue_vue_type_script_setup_true_lang.js +89 -0
- package/dist/components/KInputNumber.js +7 -0
- package/dist/components/KInputNumber.vue.d.ts +28 -0
- package/dist/components/KInputNumber.vue_vue_type_script_setup_true_lang.js +109 -0
- package/dist/components/KListSkeleton.js +5 -0
- package/dist/components/KListSkeleton.vue.d.ts +8 -0
- package/dist/components/KListSkeleton.vue_vue_type_script_setup_true_lang.js +14 -0
- package/dist/components/KLoadingOverlay.js +7 -0
- package/dist/components/KLoadingOverlay.vue.d.ts +11 -0
- package/dist/components/KLoadingOverlay.vue_vue_type_script_setup_true_lang.js +34 -0
- package/dist/components/KMessage.d.ts +20 -0
- package/dist/components/KMessage.js +55 -0
- package/dist/components/KMessageContainer.js +7 -0
- package/dist/components/KMessageContainer.vue.d.ts +15 -0
- package/dist/components/KMessageContainer.vue_vue_type_script_setup_true_lang.js +41 -0
- package/dist/components/KPagination.js +7 -0
- package/dist/components/KPagination.vue.d.ts +14 -0
- package/dist/components/KPagination.vue_vue_type_script_setup_true_lang.js +104 -0
- package/dist/components/KPopover.js +6 -0
- package/dist/components/KPopover.vue.d.ts +40 -0
- package/dist/components/KPopover.vue_vue_type_script_setup_true_lang.js +63 -0
- package/dist/components/KProgress.js +7 -0
- package/dist/components/KProgress.vue.d.ts +21 -0
- package/dist/components/KProgress.vue_vue_type_script_setup_true_lang.js +108 -0
- package/dist/components/KRadio.js +7 -0
- package/dist/components/KRadio.vue.d.ts +18 -0
- package/dist/components/KRadio.vue_vue_type_script_setup_true_lang.js +26 -0
- package/dist/components/KRadioGroup.js +7 -0
- package/dist/components/KRadioGroup.vue.d.ts +26 -0
- package/dist/components/KRadioGroup.vue_vue_type_script_setup_true_lang.js +32 -0
- package/dist/components/KRefetchOverlay.js +5 -0
- package/dist/components/KRefetchOverlay.vue.d.ts +8 -0
- package/dist/components/KRefetchOverlay.vue_vue_type_script_setup_true_lang.js +26 -0
- package/dist/components/KResizablePanel.js +7 -0
- package/dist/components/KResizablePanel.vue.d.ts +30 -0
- package/dist/components/KResizablePanel.vue_vue_type_script_setup_true_lang.js +57 -0
- package/dist/components/KResult.js +7 -0
- package/dist/components/KResult.vue.d.ts +29 -0
- package/dist/components/KResult.vue_vue_type_script_setup_true_lang.js +82 -0
- package/dist/components/KSearchBar.js +5 -0
- package/dist/components/KSearchBar.vue.d.ts +11 -0
- package/dist/components/KSearchBar.vue_vue_type_script_setup_true_lang.js +38 -0
- package/dist/components/KSelect.js +9 -0
- package/dist/components/KSelect.vue.d.ts +22 -0
- package/dist/components/KSelect.vue_vue_type_script_setup_true_lang.js +96 -0
- package/dist/components/KSkeleton.js +7 -0
- package/dist/components/KSkeleton.vue.d.ts +14 -0
- package/dist/components/KSkeleton.vue_vue_type_script_setup_true_lang.js +27 -0
- package/dist/components/KSteps.js +7 -0
- package/dist/components/KSteps.vue.d.ts +20 -0
- package/dist/components/KSteps.vue_vue_type_script_setup_true_lang.js +39 -0
- package/dist/components/KSwitch.js +7 -0
- package/dist/components/KSwitch.vue.d.ts +16 -0
- package/dist/components/KSwitch.vue_vue_type_script_setup_true_lang.js +35 -0
- package/dist/components/KTabs.js +7 -0
- package/dist/components/KTabs.vue.d.ts +35 -0
- package/dist/components/KTabs.vue_vue_type_script_setup_true_lang.js +47 -0
- package/dist/components/KTag.js +7 -0
- package/dist/components/KTag.vue.d.ts +32 -0
- package/dist/components/KTag.vue_vue_type_script_setup_true_lang.js +40 -0
- package/dist/components/KTextarea.js +7 -0
- package/dist/components/KTextarea.vue.d.ts +23 -0
- package/dist/components/KTextarea.vue_vue_type_script_setup_true_lang.js +51 -0
- package/dist/components/KThemeToggleButton.js +7 -0
- package/dist/components/KThemeToggleButton.vue.d.ts +14 -0
- package/dist/components/KThemeToggleButton.vue_vue_type_script_setup_true_lang.js +48 -0
- package/dist/components/KTooltip.js +6 -0
- package/dist/components/KTooltip.vue.d.ts +23 -0
- package/dist/components/KTooltip.vue_vue_type_script_setup_true_lang.js +49 -0
- package/dist/components/KTreeNode.js +7 -0
- package/dist/components/KTreeNode.vue.d.ts +8 -0
- package/dist/components/KTreeNode.vue_vue_type_script_setup_true_lang.js +47 -0
- package/dist/components/KTreeView.js +7 -0
- package/dist/components/KTreeView.vue.d.ts +22 -0
- package/dist/components/KTreeView.vue_vue_type_script_setup_true_lang.js +45 -0
- package/dist/components/KUpload.js +7 -0
- package/dist/components/KUpload.vue.d.ts +81 -0
- package/dist/components/KUpload.vue_vue_type_script_setup_true_lang.js +181 -0
- package/dist/components/KVirtualList.js +7 -0
- package/dist/components/KVirtualList.vue.d.ts +31 -0
- package/dist/components/KVirtualList.vue_vue_type_script_setup_true_lang.js +41 -0
- package/dist/components/form-context.d.ts +25 -0
- package/dist/components/form-context.js +4 -0
- package/dist/components/tree-context.d.ts +16 -0
- package/dist/components/tree-context.js +4 -0
- package/dist/composables/useConfirm.d.ts +17 -0
- package/dist/composables/useConfirm.js +31 -0
- package/dist/directives/index.d.ts +6 -0
- package/dist/directives/index.js +8 -0
- package/dist/directives/reveal.d.ts +20 -0
- package/dist/directives/reveal.js +18 -0
- package/dist/directives/spotlight.d.ts +22 -0
- package/dist/directives/spotlight.js +25 -0
- package/dist/index.d.ts +62 -0
- package/dist/index.js +55 -0
- package/dist/k-ui.css +2 -0
- package/dist/styles/components.css +92 -0
- package/dist/styles/index.css +2 -0
- package/dist/styles/menu.css +59 -0
- package/dist/styles/tokens.css +229 -0
- package/dist/types.d.ts +1 -0
- package/package.json +79 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import e from "../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
+
import t from "./KMessageContainer.vue_vue_type_script_setup_true_lang.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
//#region components/KMessageContainer.vue
|
|
5
|
+
var n = /* @__PURE__ */ e(t, [["__scopeId", "data-v-44613943"]]);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { n as default };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
messages: Array<{
|
|
3
|
+
id: number;
|
|
4
|
+
type?: 'success' | 'error' | 'warning' | 'info';
|
|
5
|
+
content: string;
|
|
6
|
+
closable?: boolean;
|
|
7
|
+
}>;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
10
|
+
remove: (id: number) => any;
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
|
+
onRemove?: ((id: number) => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Fragment as e, TransitionGroup as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createVNode as o, defineComponent as s, normalizeClass as c, openBlock as l, renderList as u, resolveDynamicComponent as d, toDisplayString as f, unref as p, withCtx as m } from "vue";
|
|
2
|
+
import { AlertCircle as h, AlertTriangle as g, Check as _, Info as v, X as y } from "lucide-vue-next";
|
|
3
|
+
//#region components/KMessageContainer.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var b = { class: "k-msg__content" }, x = ["onClick"], S = /* @__PURE__ */ s({
|
|
5
|
+
__name: "KMessageContainer",
|
|
6
|
+
props: { messages: {} },
|
|
7
|
+
emits: ["remove"],
|
|
8
|
+
setup(s) {
|
|
9
|
+
let S = {
|
|
10
|
+
success: _,
|
|
11
|
+
error: h,
|
|
12
|
+
warning: g,
|
|
13
|
+
info: v
|
|
14
|
+
};
|
|
15
|
+
return (h, g) => (l(), n(t, {
|
|
16
|
+
name: "k-msg",
|
|
17
|
+
tag: "div",
|
|
18
|
+
class: "k-msg-container"
|
|
19
|
+
}, {
|
|
20
|
+
default: m(() => [(l(!0), i(e, null, u(s.messages, (e) => (l(), i("div", {
|
|
21
|
+
key: e.id,
|
|
22
|
+
class: c(["k-msg", `k-msg--${e.type || "info"}`])
|
|
23
|
+
}, [
|
|
24
|
+
(l(), n(d(S[e.type || "info"]), {
|
|
25
|
+
size: 14,
|
|
26
|
+
class: "k-msg__icon"
|
|
27
|
+
})),
|
|
28
|
+
a("span", b, f(e.content), 1),
|
|
29
|
+
e.closable ? (l(), i("button", {
|
|
30
|
+
key: 0,
|
|
31
|
+
type: "button",
|
|
32
|
+
class: "k-msg__close",
|
|
33
|
+
onClick: (t) => h.$emit("remove", e.id)
|
|
34
|
+
}, [o(p(y), { size: 12 })], 8, x)) : r("", !0)
|
|
35
|
+
], 2))), 128))]),
|
|
36
|
+
_: 1
|
|
37
|
+
}));
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
//#endregion
|
|
41
|
+
export { S as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import e from "../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
+
import t from "./KPagination.vue_vue_type_script_setup_true_lang.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
//#region components/KPagination.vue
|
|
5
|
+
var n = /* @__PURE__ */ e(t, [["__scopeId", "data-v-40bca1a3"]]);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { n as default };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
page: number;
|
|
3
|
+
pageSize: number;
|
|
4
|
+
total: number;
|
|
5
|
+
/** 左侧显示 "start–end / total" 摘要 */
|
|
6
|
+
showSummary?: boolean;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
9
|
+
"update:page": (value: number) => any;
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
|
+
"onUpdate:page"?: ((value: number) => any) | undefined;
|
|
12
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createTextVNode as o, createVNode as s, defineComponent as c, normalizeClass as l, openBlock as u, renderList as d, toDisplayString as f, unref as p, withCtx as m } from "vue";
|
|
2
|
+
import { ChevronLeft as h, ChevronRight as g, ChevronsLeft as _, ChevronsRight as v } from "lucide-vue-next";
|
|
3
|
+
import { PaginationEllipsis as y, PaginationFirst as b, PaginationLast as x, PaginationList as S, PaginationListItem as C, PaginationNext as w, PaginationPrev as T, PaginationRoot as E } from "reka-ui";
|
|
4
|
+
//#region components/KPagination.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var D = {
|
|
6
|
+
key: 0,
|
|
7
|
+
class: "k-pg-bar"
|
|
8
|
+
}, O = {
|
|
9
|
+
key: 0,
|
|
10
|
+
class: "k-pg-side"
|
|
11
|
+
}, k = {
|
|
12
|
+
key: 1,
|
|
13
|
+
class: "k-pg-side"
|
|
14
|
+
}, A = /* @__PURE__ */ c({
|
|
15
|
+
__name: "KPagination",
|
|
16
|
+
props: {
|
|
17
|
+
page: {},
|
|
18
|
+
pageSize: {},
|
|
19
|
+
total: {},
|
|
20
|
+
showSummary: { type: Boolean }
|
|
21
|
+
},
|
|
22
|
+
emits: ["update:page"],
|
|
23
|
+
setup(c, { emit: A }) {
|
|
24
|
+
let j = c, M = A, N = t(() => j.total === 0 ? 0 : (j.page - 1) * j.pageSize + 1), P = t(() => Math.min(j.total, j.page * j.pageSize)), F = t(() => j.pageSize > 0 ? Math.ceil(j.total / j.pageSize) : 0);
|
|
25
|
+
function I(e) {
|
|
26
|
+
e !== j.page && M("update:page", e);
|
|
27
|
+
}
|
|
28
|
+
return (t, A) => F.value > 1 ? (u(), i("div", D, [
|
|
29
|
+
c.showSummary ? (u(), i("div", O, [
|
|
30
|
+
a("span", null, f(N.value), 1),
|
|
31
|
+
A[0] ||= o("–", -1),
|
|
32
|
+
a("span", null, f(P.value), 1),
|
|
33
|
+
A[1] ||= o(" / ", -1),
|
|
34
|
+
a("span", null, f(c.total), 1)
|
|
35
|
+
])) : (u(), i("div", k)),
|
|
36
|
+
s(p(E), {
|
|
37
|
+
page: c.page,
|
|
38
|
+
"items-per-page": c.pageSize,
|
|
39
|
+
total: c.total,
|
|
40
|
+
"sibling-count": 1,
|
|
41
|
+
"show-edges": "",
|
|
42
|
+
class: "k-pg-center",
|
|
43
|
+
"onUpdate:page": I
|
|
44
|
+
}, {
|
|
45
|
+
default: m(() => [s(p(S), { class: "k-pg-list" }, {
|
|
46
|
+
default: m(({ items: t }) => [
|
|
47
|
+
s(p(b), {
|
|
48
|
+
class: "k-pg-btn k-pg-arrow",
|
|
49
|
+
title: "首页"
|
|
50
|
+
}, {
|
|
51
|
+
default: m(() => [s(p(_), { size: 14 })]),
|
|
52
|
+
_: 1
|
|
53
|
+
}),
|
|
54
|
+
s(p(T), {
|
|
55
|
+
class: "k-pg-btn k-pg-arrow",
|
|
56
|
+
title: "上一页"
|
|
57
|
+
}, {
|
|
58
|
+
default: m(() => [s(p(h), { size: 14 })]),
|
|
59
|
+
_: 1
|
|
60
|
+
}),
|
|
61
|
+
(u(!0), i(e, null, d(t, (t, r) => (u(), i(e, null, [t.type === "page" ? (u(), n(p(C), {
|
|
62
|
+
key: `p-${t.value}`,
|
|
63
|
+
value: t.value,
|
|
64
|
+
class: l(["k-pg-btn k-pg-page", { active: t.value === c.page }])
|
|
65
|
+
}, {
|
|
66
|
+
default: m(() => [o(f(t.value), 1)]),
|
|
67
|
+
_: 2
|
|
68
|
+
}, 1032, ["value", "class"])) : (u(), n(p(y), {
|
|
69
|
+
key: `e-${r}`,
|
|
70
|
+
index: r,
|
|
71
|
+
class: "k-pg-ellipsis"
|
|
72
|
+
}, {
|
|
73
|
+
default: m(() => [...A[2] ||= [o("…", -1)]]),
|
|
74
|
+
_: 1
|
|
75
|
+
}, 8, ["index"]))], 64))), 256)),
|
|
76
|
+
s(p(w), {
|
|
77
|
+
class: "k-pg-btn k-pg-arrow",
|
|
78
|
+
title: "下一页"
|
|
79
|
+
}, {
|
|
80
|
+
default: m(() => [s(p(g), { size: 14 })]),
|
|
81
|
+
_: 1
|
|
82
|
+
}),
|
|
83
|
+
s(p(x), {
|
|
84
|
+
class: "k-pg-btn k-pg-arrow",
|
|
85
|
+
title: "末页"
|
|
86
|
+
}, {
|
|
87
|
+
default: m(() => [s(p(v), { size: 14 })]),
|
|
88
|
+
_: 1
|
|
89
|
+
})
|
|
90
|
+
]),
|
|
91
|
+
_: 1
|
|
92
|
+
})]),
|
|
93
|
+
_: 1
|
|
94
|
+
}, 8, [
|
|
95
|
+
"page",
|
|
96
|
+
"items-per-page",
|
|
97
|
+
"total"
|
|
98
|
+
]),
|
|
99
|
+
A[3] ||= a("div", { class: "k-pg-side" }, null, -1)
|
|
100
|
+
])) : r("", !0);
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
//#endregion
|
|
104
|
+
export { A as default };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
side?: 'top' | 'right' | 'bottom' | 'left';
|
|
3
|
+
align?: 'start' | 'center' | 'end';
|
|
4
|
+
sideOffset?: number;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
showArrow?: boolean;
|
|
7
|
+
/** 追加到浮层 content 上的 class(用于覆写宽度 / 配色等) */
|
|
8
|
+
contentClass?: string;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_ModelProps = {
|
|
11
|
+
'open'?: boolean;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
14
|
+
declare var __VLS_14: {}, __VLS_28: {
|
|
15
|
+
close: () => boolean;
|
|
16
|
+
};
|
|
17
|
+
type __VLS_Slots = {} & {
|
|
18
|
+
default?: (props: typeof __VLS_14) => any;
|
|
19
|
+
} & {
|
|
20
|
+
content?: (props: typeof __VLS_28) => any;
|
|
21
|
+
};
|
|
22
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
23
|
+
"update:open": (value: boolean | undefined) => any;
|
|
24
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
25
|
+
"onUpdate:open"?: ((value: boolean | undefined) => any) | undefined;
|
|
26
|
+
}>, {
|
|
27
|
+
disabled: boolean;
|
|
28
|
+
side: "top" | "right" | "bottom" | "left";
|
|
29
|
+
sideOffset: number;
|
|
30
|
+
align: "start" | "center" | "end";
|
|
31
|
+
showArrow: boolean;
|
|
32
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
33
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
34
|
+
declare const _default: typeof __VLS_export;
|
|
35
|
+
export default _default;
|
|
36
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
37
|
+
new (): {
|
|
38
|
+
$slots: S;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { createBlock as e, createCommentVNode as t, createVNode as n, defineComponent as r, mergeModels as i, normalizeClass as a, openBlock as o, renderSlot as s, unref as c, useModel as l, withCtx as u } from "vue";
|
|
2
|
+
import { PopoverArrow as d, PopoverContent as f, PopoverPortal as p, PopoverRoot as m, PopoverTrigger as h } from "reka-ui";
|
|
3
|
+
//#region components/KPopover.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var g = /* @__PURE__ */ r({
|
|
5
|
+
__name: "KPopover",
|
|
6
|
+
props: /* @__PURE__ */ i({
|
|
7
|
+
side: { default: "bottom" },
|
|
8
|
+
align: { default: "center" },
|
|
9
|
+
sideOffset: { default: 8 },
|
|
10
|
+
disabled: {
|
|
11
|
+
type: Boolean,
|
|
12
|
+
default: !1
|
|
13
|
+
},
|
|
14
|
+
showArrow: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
default: !1
|
|
17
|
+
},
|
|
18
|
+
contentClass: {}
|
|
19
|
+
}, {
|
|
20
|
+
open: { type: Boolean },
|
|
21
|
+
openModifiers: {}
|
|
22
|
+
}),
|
|
23
|
+
emits: ["update:open"],
|
|
24
|
+
setup(r) {
|
|
25
|
+
let i = l(r, "open");
|
|
26
|
+
return (l, g) => (o(), e(c(m), {
|
|
27
|
+
open: i.value,
|
|
28
|
+
"onUpdate:open": g[0] ||= (e) => i.value = e
|
|
29
|
+
}, {
|
|
30
|
+
default: u(() => [n(c(h), {
|
|
31
|
+
"as-child": "",
|
|
32
|
+
disabled: r.disabled
|
|
33
|
+
}, {
|
|
34
|
+
default: u(() => [s(l.$slots, "default")]),
|
|
35
|
+
_: 3
|
|
36
|
+
}, 8, ["disabled"]), n(c(p), null, {
|
|
37
|
+
default: u(() => [n(c(f), {
|
|
38
|
+
class: a(["k-popover-content", r.contentClass]),
|
|
39
|
+
side: r.side,
|
|
40
|
+
align: r.align,
|
|
41
|
+
"side-offset": r.sideOffset
|
|
42
|
+
}, {
|
|
43
|
+
default: u(() => [s(l.$slots, "content", { close: () => i.value = !1 }), r.showArrow ? (o(), e(c(d), {
|
|
44
|
+
key: 0,
|
|
45
|
+
class: "k-popover-arrow",
|
|
46
|
+
width: 11,
|
|
47
|
+
height: 5
|
|
48
|
+
})) : t("", !0)]),
|
|
49
|
+
_: 3
|
|
50
|
+
}, 8, [
|
|
51
|
+
"class",
|
|
52
|
+
"side",
|
|
53
|
+
"align",
|
|
54
|
+
"side-offset"
|
|
55
|
+
])]),
|
|
56
|
+
_: 3
|
|
57
|
+
})]),
|
|
58
|
+
_: 3
|
|
59
|
+
}, 8, ["open"]));
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
//#endregion
|
|
63
|
+
export { g as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import e from "../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
+
import t from "./KProgress.vue_vue_type_script_setup_true_lang.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
//#region components/KProgress.vue
|
|
5
|
+
var n = /* @__PURE__ */ e(t, [["__scopeId", "data-v-4d5522c1"]]);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { n as default };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
value?: number;
|
|
3
|
+
max?: number;
|
|
4
|
+
type?: 'line' | 'circle';
|
|
5
|
+
size?: 'sm' | 'md' | 'lg';
|
|
6
|
+
color?: 'brand' | 'success' | 'warning' | 'error';
|
|
7
|
+
indeterminate?: boolean;
|
|
8
|
+
showText?: boolean;
|
|
9
|
+
strokeWidth?: number;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
12
|
+
type: "line" | "circle";
|
|
13
|
+
size: "sm" | "md" | "lg";
|
|
14
|
+
color: "brand" | "success" | "warning" | "error";
|
|
15
|
+
max: number;
|
|
16
|
+
value: number;
|
|
17
|
+
indeterminate: boolean;
|
|
18
|
+
showText: boolean;
|
|
19
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { computed as e, createBlock as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, createVNode as a, defineComponent as o, normalizeClass as s, normalizeStyle as c, openBlock as l, toDisplayString as u, unref as d, withCtx as f } from "vue";
|
|
2
|
+
import { ProgressIndicator as p, ProgressRoot as m } from "reka-ui";
|
|
3
|
+
//#region components/KProgress.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var h = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "k-prog__text"
|
|
7
|
+
}, g = ["width", "height"], _ = [
|
|
8
|
+
"cx",
|
|
9
|
+
"cy",
|
|
10
|
+
"r",
|
|
11
|
+
"stroke-width"
|
|
12
|
+
], v = [
|
|
13
|
+
"cx",
|
|
14
|
+
"cy",
|
|
15
|
+
"r",
|
|
16
|
+
"stroke-width",
|
|
17
|
+
"stroke",
|
|
18
|
+
"stroke-dasharray",
|
|
19
|
+
"stroke-dashoffset",
|
|
20
|
+
"transform"
|
|
21
|
+
], y = {
|
|
22
|
+
key: 0,
|
|
23
|
+
class: "k-prog-circle__text"
|
|
24
|
+
}, b = /* @__PURE__ */ o({
|
|
25
|
+
__name: "KProgress",
|
|
26
|
+
props: {
|
|
27
|
+
value: { default: 0 },
|
|
28
|
+
max: { default: 100 },
|
|
29
|
+
type: { default: "line" },
|
|
30
|
+
size: { default: "md" },
|
|
31
|
+
color: { default: "brand" },
|
|
32
|
+
indeterminate: {
|
|
33
|
+
type: Boolean,
|
|
34
|
+
default: !1
|
|
35
|
+
},
|
|
36
|
+
showText: {
|
|
37
|
+
type: Boolean,
|
|
38
|
+
default: !1
|
|
39
|
+
},
|
|
40
|
+
strokeWidth: {}
|
|
41
|
+
},
|
|
42
|
+
setup(o) {
|
|
43
|
+
let b = o, x = e(() => b.indeterminate ? 0 : Math.min(100, Math.max(0, b.value / b.max * 100))), S = {
|
|
44
|
+
brand: "var(--color-brand-500)",
|
|
45
|
+
success: "#10b981",
|
|
46
|
+
warning: "#d97706",
|
|
47
|
+
error: "#dc2626"
|
|
48
|
+
}, C = e(() => S[b.color]), w = e(() => {
|
|
49
|
+
let e = b.size === "sm" ? 36 : b.size === "lg" ? 72 : 56, t = b.strokeWidth ?? (b.size === "sm" ? 4 : b.size === "lg" ? 7 : 5);
|
|
50
|
+
return {
|
|
51
|
+
size: e,
|
|
52
|
+
sw: t,
|
|
53
|
+
r: (e - t) / 2
|
|
54
|
+
};
|
|
55
|
+
}), T = e(() => 2 * Math.PI * w.value.r), E = e(() => T.value * (1 - x.value / 100));
|
|
56
|
+
return (e, b) => o.type === "line" ? (l(), t(d(m), {
|
|
57
|
+
key: 0,
|
|
58
|
+
"model-value": o.indeterminate ? null : o.value,
|
|
59
|
+
max: o.max,
|
|
60
|
+
class: s(["k-prog", [`k-prog--${o.size}`, { "k-prog--indeterminate": o.indeterminate }]])
|
|
61
|
+
}, {
|
|
62
|
+
default: f(() => [a(d(p), {
|
|
63
|
+
class: "k-prog__bar",
|
|
64
|
+
style: c({
|
|
65
|
+
width: o.indeterminate ? "40%" : `${x.value}%`,
|
|
66
|
+
backgroundColor: C.value
|
|
67
|
+
})
|
|
68
|
+
}, null, 8, ["style"]), o.showText && !o.indeterminate ? (l(), r("span", h, u(Math.round(x.value)) + "% ", 1)) : n("", !0)]),
|
|
69
|
+
_: 1
|
|
70
|
+
}, 8, [
|
|
71
|
+
"model-value",
|
|
72
|
+
"max",
|
|
73
|
+
"class"
|
|
74
|
+
])) : (l(), r("div", {
|
|
75
|
+
key: 1,
|
|
76
|
+
class: "k-prog-circle",
|
|
77
|
+
style: c({
|
|
78
|
+
width: w.value.size + "px",
|
|
79
|
+
height: w.value.size + "px"
|
|
80
|
+
})
|
|
81
|
+
}, [(l(), r("svg", {
|
|
82
|
+
width: w.value.size,
|
|
83
|
+
height: w.value.size,
|
|
84
|
+
class: s({ "k-prog-circle--spin": o.indeterminate })
|
|
85
|
+
}, [i("circle", {
|
|
86
|
+
cx: w.value.size / 2,
|
|
87
|
+
cy: w.value.size / 2,
|
|
88
|
+
r: w.value.r,
|
|
89
|
+
"stroke-width": w.value.sw,
|
|
90
|
+
stroke: "var(--color-ink-100)",
|
|
91
|
+
fill: "none"
|
|
92
|
+
}, null, 8, _), i("circle", {
|
|
93
|
+
cx: w.value.size / 2,
|
|
94
|
+
cy: w.value.size / 2,
|
|
95
|
+
r: w.value.r,
|
|
96
|
+
"stroke-width": w.value.sw,
|
|
97
|
+
stroke: C.value,
|
|
98
|
+
"stroke-dasharray": o.indeterminate ? `${T.value * .3} ${T.value}` : T.value,
|
|
99
|
+
"stroke-dashoffset": o.indeterminate ? 0 : E.value,
|
|
100
|
+
fill: "none",
|
|
101
|
+
"stroke-linecap": "round",
|
|
102
|
+
transform: `rotate(-90 ${w.value.size / 2} ${w.value.size / 2})`,
|
|
103
|
+
class: "k-prog-circle__indicator"
|
|
104
|
+
}, null, 8, v)], 10, g)), o.showText && !o.indeterminate ? (l(), r("span", y, u(Math.round(x.value)) + "% ", 1)) : n("", !0)], 4));
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
//#endregion
|
|
108
|
+
export { b as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import e from "../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
+
import t from "./KRadio.vue_vue_type_script_setup_true_lang.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
//#region components/KRadio.vue
|
|
5
|
+
var n = /* @__PURE__ */ e(t, [["__scopeId", "data-v-47a8aaeb"]]);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { n as default };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
value: string | number;
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
label?: string;
|
|
5
|
+
};
|
|
6
|
+
declare var __VLS_12: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
default?: (props: typeof __VLS_12) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { createCommentVNode as e, createElementBlock as t, createTextVNode as n, createVNode as r, defineComponent as i, normalizeClass as a, openBlock as o, renderSlot as s, toDisplayString as c, unref as l, withCtx as u } from "vue";
|
|
2
|
+
import { RadioGroupIndicator as d, RadioGroupItem as f } from "reka-ui";
|
|
3
|
+
//#region components/KRadio.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var p = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "k-radio__label"
|
|
7
|
+
}, m = /* @__PURE__ */ i({
|
|
8
|
+
__name: "KRadio",
|
|
9
|
+
props: {
|
|
10
|
+
value: {},
|
|
11
|
+
disabled: { type: Boolean },
|
|
12
|
+
label: {}
|
|
13
|
+
},
|
|
14
|
+
setup(i) {
|
|
15
|
+
return (m, h) => (o(), t("label", { class: a(["k-radio-wrap", { "k-radio-wrap--disabled": i.disabled }]) }, [r(l(f), {
|
|
16
|
+
value: String(i.value),
|
|
17
|
+
disabled: i.disabled,
|
|
18
|
+
class: "k-radio"
|
|
19
|
+
}, {
|
|
20
|
+
default: u(() => [r(l(d), { class: "k-radio__indicator" })]),
|
|
21
|
+
_: 1
|
|
22
|
+
}, 8, ["value", "disabled"]), i.label || m.$slots.default ? (o(), t("span", p, [s(m.$slots, "default", {}, () => [n(c(i.label), 1)], !0)])) : e("", !0)], 2));
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
//#endregion
|
|
26
|
+
export { m as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import e from "../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
+
import t from "./KRadioGroup.vue_vue_type_script_setup_true_lang.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
//#region components/KRadioGroup.vue
|
|
5
|
+
var n = /* @__PURE__ */ e(t, [["__scopeId", "data-v-f6d3b657"]]);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { n as default };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
modelValue?: string | number;
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
direction?: 'horizontal' | 'vertical';
|
|
5
|
+
};
|
|
6
|
+
declare var __VLS_10: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
default?: (props: typeof __VLS_10) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
11
|
+
"update:modelValue": (v: string) => any;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
|
+
"onUpdate:modelValue"?: ((v: string) => any) | undefined;
|
|
14
|
+
}>, {
|
|
15
|
+
disabled: boolean;
|
|
16
|
+
direction: "horizontal" | "vertical";
|
|
17
|
+
modelValue: string | number;
|
|
18
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { createBlock as e, defineComponent as t, normalizeClass as n, openBlock as r, renderSlot as i, unref as a, withCtx as o } from "vue";
|
|
2
|
+
import { RadioGroupRoot as s } from "reka-ui";
|
|
3
|
+
//#region components/KRadioGroup.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var c = /* @__PURE__ */ t({
|
|
5
|
+
__name: "KRadioGroup",
|
|
6
|
+
props: {
|
|
7
|
+
modelValue: { default: "" },
|
|
8
|
+
disabled: {
|
|
9
|
+
type: Boolean,
|
|
10
|
+
default: !1
|
|
11
|
+
},
|
|
12
|
+
direction: { default: "horizontal" }
|
|
13
|
+
},
|
|
14
|
+
emits: ["update:modelValue"],
|
|
15
|
+
setup(t) {
|
|
16
|
+
return (c, l) => (r(), e(a(s), {
|
|
17
|
+
"model-value": String(t.modelValue),
|
|
18
|
+
disabled: t.disabled,
|
|
19
|
+
class: n(["k-radio-group", `k-radio-group--${t.direction}`]),
|
|
20
|
+
"onUpdate:modelValue": l[0] ||= (e) => c.$emit("update:modelValue", String(e))
|
|
21
|
+
}, {
|
|
22
|
+
default: o(() => [i(c.$slots, "default", {}, void 0, !0)]),
|
|
23
|
+
_: 3
|
|
24
|
+
}, 8, [
|
|
25
|
+
"model-value",
|
|
26
|
+
"disabled",
|
|
27
|
+
"class"
|
|
28
|
+
]));
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
//#endregion
|
|
32
|
+
export { c as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
loading: boolean;
|
|
3
|
+
/** Fallback copy for non-search refetches (filter change, etc). */
|
|
4
|
+
label?: string;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Transition as e, createBlock as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, createVNode as a, defineComponent as o, openBlock as s, toDisplayString as c, unref as l, withCtx as u } from "vue";
|
|
2
|
+
import { Loader2 as d } from "lucide-vue-next";
|
|
3
|
+
//#region components/KRefetchOverlay.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var f = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "pointer-events-none absolute left-1/2 top-4 z-10 -translate-x-1/2"
|
|
7
|
+
}, p = { class: "flex items-center gap-2 rounded-full bg-white/95 px-4 py-2 shadow-lg ring-1 ring-ink-200 backdrop-blur" }, m = { class: "text-xs font-medium text-ink-700" }, h = /* @__PURE__ */ o({
|
|
8
|
+
__name: "KRefetchOverlay",
|
|
9
|
+
props: {
|
|
10
|
+
loading: { type: Boolean },
|
|
11
|
+
label: {}
|
|
12
|
+
},
|
|
13
|
+
setup(o) {
|
|
14
|
+
return (h, g) => (s(), t(e, {
|
|
15
|
+
"enter-active-class": "transition duration-150 ease-out",
|
|
16
|
+
"enter-from-class": "opacity-0 -translate-y-1",
|
|
17
|
+
"leave-active-class": "transition duration-150 ease-in",
|
|
18
|
+
"leave-to-class": "opacity-0 -translate-y-1"
|
|
19
|
+
}, {
|
|
20
|
+
default: u(() => [o.loading ? (s(), r("div", f, [i("div", p, [a(l(d), { class: "size-4 animate-spin text-brand-500" }), i("span", m, c(o.label ?? "搜索中..."), 1)])])) : n("", !0)]),
|
|
21
|
+
_: 1
|
|
22
|
+
}));
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
//#endregion
|
|
26
|
+
export { h as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import e from "../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
+
import t from "./KResizablePanel.vue_vue_type_script_setup_true_lang.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
//#region components/KResizablePanel.vue
|
|
5
|
+
var n = /* @__PURE__ */ e(t, [["__scopeId", "data-v-d820b958"]]);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { n as default };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
direction?: 'horizontal' | 'vertical';
|
|
3
|
+
/** 第一个面板的初始尺寸 */
|
|
4
|
+
defaultSize?: number;
|
|
5
|
+
/** true 用百分比 (0-100), false 用 px */
|
|
6
|
+
asPercent?: boolean;
|
|
7
|
+
min?: number;
|
|
8
|
+
max?: number;
|
|
9
|
+
};
|
|
10
|
+
declare var __VLS_1: {}, __VLS_3: {};
|
|
11
|
+
type __VLS_Slots = {} & {
|
|
12
|
+
a?: (props: typeof __VLS_1) => any;
|
|
13
|
+
} & {
|
|
14
|
+
b?: (props: typeof __VLS_3) => any;
|
|
15
|
+
};
|
|
16
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
17
|
+
max: number;
|
|
18
|
+
min: number;
|
|
19
|
+
direction: "horizontal" | "vertical";
|
|
20
|
+
defaultSize: number;
|
|
21
|
+
asPercent: boolean;
|
|
22
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
24
|
+
declare const _default: typeof __VLS_export;
|
|
25
|
+
export default _default;
|
|
26
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
27
|
+
new (): {
|
|
28
|
+
$slots: S;
|
|
29
|
+
};
|
|
30
|
+
};
|