@guoyg578/k-ui 0.1.0 → 0.1.2
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 +75 -29
- package/dist/components/KAffix.vue.d.ts +17 -0
- package/dist/components/KAffix.vue.js +7 -0
- package/dist/components/KAffix.vue_vue_type_script_setup_true_lang.js +18 -0
- package/dist/components/KAlert.vue.d.ts +1 -1
- package/dist/components/{KAlert.js → KAlert.vue.js} +2 -2
- package/dist/components/KAlert.vue_vue_type_script_setup_true_lang.js +35 -32
- package/dist/components/KAnchor.vue.d.ts +14 -0
- package/dist/components/KAnchor.vue.js +7 -0
- package/dist/components/KAnchor.vue_vue_type_script_setup_true_lang.js +40 -0
- package/dist/components/KAutoComplete.vue.d.ts +26 -0
- package/dist/components/KAutoComplete.vue.js +8 -0
- package/dist/components/KAutoComplete.vue_vue_type_script_setup_true_lang.js +58 -0
- package/dist/components/{KAvatar.js → KAvatar.vue.js} +1 -1
- package/dist/components/{KAvatarGroup.js → KAvatarGroup.vue.js} +1 -1
- package/dist/components/KBackTop.vue.d.ts +24 -0
- package/dist/components/KBackTop.vue.js +7 -0
- package/dist/components/KBackTop.vue_vue_type_script_setup_true_lang.js +56 -0
- package/dist/components/KBadge.vue.d.ts +31 -0
- package/dist/components/KBadge.vue.js +7 -0
- package/dist/components/KBadge.vue_vue_type_script_setup_true_lang.js +48 -0
- package/dist/components/KBreadcrumb.vue.d.ts +30 -1
- package/dist/components/{KBreadcrumb.js → KBreadcrumb.vue.js} +2 -2
- package/dist/components/KBreadcrumb.vue_vue_type_script_setup_true_lang.js +36 -21
- package/dist/components/KButton.vue.d.ts +17 -2
- package/dist/components/{KButton.js → KButton.vue.js} +2 -2
- package/dist/components/KButton.vue_vue_type_script_setup_true_lang.js +51 -17
- package/dist/components/KButtonGroup.vue.d.ts +18 -0
- package/dist/components/KButtonGroup.vue.js +6 -0
- package/dist/components/KButtonGroup.vue_vue_type_script_setup_true_lang.js +14 -0
- package/dist/components/KCalendar.vue.d.ts +33 -0
- package/dist/components/KCalendar.vue.js +7 -0
- package/dist/components/KCalendar.vue_vue_type_script_setup_true_lang.js +78 -0
- package/dist/components/KCard.vue.d.ts +5 -3
- package/dist/components/{KCard.js → KCard.vue.js} +2 -2
- package/dist/components/KCard.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/{KCarousel.js → KCarousel.vue.js} +1 -1
- package/dist/components/KCascader.vue.d.ts +29 -0
- package/dist/components/KCascader.vue.js +8 -0
- package/dist/components/KCascader.vue_vue_type_script_setup_true_lang.js +114 -0
- package/dist/components/{KCheckbox.js → KCheckbox.vue.js} +1 -1
- package/dist/components/{KCheckboxGroup.js → KCheckboxGroup.vue.js} +1 -1
- package/dist/components/KCode.vue.d.ts +27 -0
- package/dist/components/KCode.vue.js +7 -0
- package/dist/components/KCode.vue_vue_type_script_setup_true_lang.js +42 -0
- package/dist/components/KCollapse.vue.d.ts +25 -0
- package/dist/components/KCollapse.vue.js +7 -0
- package/dist/components/KCollapse.vue_vue_type_script_setup_true_lang.js +35 -0
- package/dist/components/KCollapseItem.vue.d.ts +22 -0
- package/dist/components/KCollapseItem.vue.js +7 -0
- package/dist/components/KCollapseItem.vue_vue_type_script_setup_true_lang.js +46 -0
- package/dist/components/KColorPicker.vue.d.ts +40 -0
- package/dist/components/KColorPicker.vue.js +7 -0
- package/dist/components/KColorPicker.vue_vue_type_script_setup_true_lang.js +96 -0
- package/dist/components/{KCombobox.js → KCombobox.vue.js} +2 -2
- package/dist/components/{KCommandPalette.js → KCommandPalette.vue.js} +1 -1
- package/dist/components/KConfigProvider.vue.d.ts +26 -0
- package/dist/components/KConfigProvider.vue.js +5 -0
- package/dist/components/KConfigProvider.vue_vue_type_script_setup_true_lang.js +17 -0
- package/dist/components/{KConfirmDialog.js → KConfirmDialog.vue.js} +1 -1
- package/dist/components/KCountdown.vue.d.ts +15 -0
- package/dist/components/KCountdown.vue.js +7 -0
- package/dist/components/KCountdown.vue_vue_type_script_setup_true_lang.js +36 -0
- package/dist/components/KDataTable.vue.d.ts +33 -10
- package/dist/components/{KDataTable.js → KDataTable.vue.js} +2 -2
- package/dist/components/KDataTable.vue_vue_type_script_setup_true_lang.js +128 -30
- package/dist/components/{KDatePicker.js → KDatePicker.vue.js} +1 -1
- package/dist/components/KDatePicker.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/KDescriptions.vue.d.ts +30 -0
- package/dist/components/KDescriptions.vue.js +6 -0
- package/dist/components/KDescriptions.vue_vue_type_script_setup_true_lang.js +30 -0
- package/dist/components/KDescriptionsItem.vue.d.ts +17 -0
- package/dist/components/KDescriptionsItem.vue.js +5 -0
- package/dist/components/KDescriptionsItem.vue_vue_type_script_setup_true_lang.js +17 -0
- package/dist/components/KDialog.vue.d.ts +1 -0
- package/dist/components/{KDialog.js → KDialog.vue.js} +2 -2
- package/dist/components/KDialog.vue_vue_type_script_setup_true_lang.js +45 -38
- package/dist/components/{KDiff.js → KDiff.vue.js} +1 -1
- package/dist/components/KDivider.vue.d.ts +21 -0
- package/dist/components/KDivider.vue.js +7 -0
- package/dist/components/KDivider.vue_vue_type_script_setup_true_lang.js +33 -0
- package/dist/components/KDrawer.vue.d.ts +7 -3
- package/dist/components/{KDrawer.js → KDrawer.vue.js} +2 -2
- package/dist/components/KDrawer.vue_vue_type_script_setup_true_lang.js +41 -29
- package/dist/components/KDropdown.vue.d.ts +8 -5
- package/dist/components/{KDropdown.js → KDropdown.vue.js} +2 -2
- package/dist/components/KDropdown.vue_vue_type_script_setup_true_lang.js +40 -38
- package/dist/components/KDynamicInput.vue.d.ts +33 -0
- package/dist/components/KDynamicInput.vue.js +7 -0
- package/dist/components/KDynamicInput.vue_vue_type_script_setup_true_lang.js +81 -0
- package/dist/components/KDynamicTags.vue.d.ts +20 -0
- package/dist/components/KDynamicTags.vue.js +7 -0
- package/dist/components/KDynamicTags.vue_vue_type_script_setup_true_lang.js +60 -0
- package/dist/components/KEmpty.vue.d.ts +8 -4
- package/dist/components/KEmpty.vue_vue_type_script_setup_true_lang.js +17 -14
- package/dist/components/KForm.vue.d.ts +12 -6
- package/dist/components/{KForm.js → KForm.vue.js} +2 -2
- package/dist/components/KForm.vue_vue_type_script_setup_true_lang.js +31 -15
- package/dist/components/KFormField.vue.d.ts +3 -2
- package/dist/components/{KFormField.js → KFormField.vue.js} +2 -2
- package/dist/components/KFormField.vue_vue_type_script_setup_true_lang.js +41 -28
- package/dist/components/KGrid.vue.d.ts +29 -0
- package/dist/components/KGrid.vue.js +7 -0
- package/dist/components/KGrid.vue_vue_type_script_setup_true_lang.js +33 -0
- package/dist/components/KGridItem.vue.d.ts +20 -0
- package/dist/components/KGridItem.vue.js +7 -0
- package/dist/components/KGridItem.vue_vue_type_script_setup_true_lang.js +18 -0
- package/dist/components/KIcon.vue.d.ts +22 -0
- package/dist/components/KIcon.vue.js +7 -0
- package/dist/components/KIcon.vue_vue_type_script_setup_true_lang.js +31 -0
- package/dist/components/KImage.vue.d.ts +3 -3
- package/dist/components/{KImage.js → KImage.vue.js} +1 -1
- package/dist/components/KImage.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/{KImageViewer.js → KImageViewer.vue.js} +1 -1
- package/dist/components/KInput.vue.d.ts +11 -5
- package/dist/components/{KInput.js → KInput.vue.js} +2 -2
- package/dist/components/KInput.vue_vue_type_script_setup_true_lang.js +62 -38
- package/dist/components/KInputNumber.vue.d.ts +18 -4
- package/dist/components/{KInputNumber.js → KInputNumber.vue.js} +2 -2
- package/dist/components/KInputNumber.vue_vue_type_script_setup_true_lang.js +80 -62
- package/dist/components/KLayout.vue.d.ts +19 -0
- package/dist/components/KLayout.vue.js +7 -0
- package/dist/components/KLayout.vue_vue_type_script_setup_true_lang.js +14 -0
- package/dist/components/KLayoutContent.vue.d.ts +17 -0
- package/dist/components/KLayoutContent.vue.js +7 -0
- package/dist/components/KLayoutContent.vue_vue_type_script_setup_true_lang.js +11 -0
- package/dist/components/KLayoutHeader.vue.d.ts +19 -0
- package/dist/components/KLayoutHeader.vue.js +7 -0
- package/dist/components/KLayoutHeader.vue_vue_type_script_setup_true_lang.js +14 -0
- package/dist/components/KLayoutSider.vue.d.ts +28 -0
- package/dist/components/KLayoutSider.vue.js +7 -0
- package/dist/components/KLayoutSider.vue_vue_type_script_setup_true_lang.js +34 -0
- package/dist/components/KList.vue.d.ts +24 -0
- package/dist/components/KList.vue.js +7 -0
- package/dist/components/KList.vue_vue_type_script_setup_true_lang.js +39 -0
- package/dist/components/KListItem.vue.d.ts +17 -0
- package/dist/components/KListItem.vue.js +7 -0
- package/dist/components/KListItem.vue_vue_type_script_setup_true_lang.js +22 -0
- package/dist/components/{KLoadingOverlay.js → KLoadingOverlay.vue.js} +1 -1
- package/dist/components/KMention.vue.d.ts +27 -0
- package/dist/components/KMention.vue.js +8 -0
- package/dist/components/KMention.vue_vue_type_script_setup_true_lang.js +73 -0
- package/dist/components/KMenu.vue.d.ts +30 -0
- package/dist/components/KMenu.vue.js +9 -0
- package/dist/components/KMenu.vue_vue_type_script_setup_true_lang.js +134 -0
- package/dist/components/KMenuItem.vue.d.ts +10 -0
- package/dist/components/KMenuItem.vue.js +7 -0
- package/dist/components/KMenuItem.vue_vue_type_script_setup_true_lang.js +58 -0
- package/dist/components/KMessage.js +1 -1
- package/dist/components/{KMessageContainer.js → KMessageContainer.vue.js} +1 -1
- package/dist/components/KNotification.d.ts +36 -0
- package/dist/components/KNotification.js +55 -0
- package/dist/components/KNotificationContainer.vue.d.ts +20 -0
- package/dist/components/KNotificationContainer.vue.js +7 -0
- package/dist/components/KNotificationContainer.vue_vue_type_script_setup_true_lang.js +63 -0
- package/dist/components/KNotificationProvider.vue.d.ts +13 -0
- package/dist/components/KNotificationProvider.vue.js +10 -0
- package/dist/components/KNumberAnimation.vue.d.ts +33 -0
- package/dist/components/KNumberAnimation.vue.js +7 -0
- package/dist/components/KNumberAnimation.vue_vue_type_script_setup_true_lang.js +45 -0
- package/dist/components/{KPagination.js → KPagination.vue.js} +1 -1
- package/dist/components/KPopconfirm.vue.d.ts +46 -0
- package/dist/components/KPopconfirm.vue.js +6 -0
- package/dist/components/KPopconfirm.vue_vue_type_script_setup_true_lang.js +81 -0
- package/dist/components/KPopover.vue.d.ts +1 -1
- package/dist/components/{KPopover.js → KPopover.vue.js} +1 -1
- package/dist/components/KProgress.vue.d.ts +3 -2
- package/dist/components/{KProgress.js → KProgress.vue.js} +2 -2
- package/dist/components/KProgress.vue_vue_type_script_setup_true_lang.js +23 -20
- package/dist/components/KRadio.vue.d.ts +4 -2
- package/dist/components/{KRadio.js → KRadio.vue.js} +2 -2
- package/dist/components/KRadio.vue_vue_type_script_setup_true_lang.js +24 -11
- package/dist/components/KRadioGroup.vue.d.ts +3 -0
- package/dist/components/{KRadioGroup.js → KRadioGroup.vue.js} +2 -2
- package/dist/components/KRadioGroup.vue_vue_type_script_setup_true_lang.js +17 -12
- package/dist/components/KRate.vue.d.ts +25 -0
- package/dist/components/KRate.vue.js +7 -0
- package/dist/components/KRate.vue_vue_type_script_setup_true_lang.js +77 -0
- package/dist/components/{KResizablePanel.js → KResizablePanel.vue.js} +1 -1
- package/dist/components/{KResult.js → KResult.vue.js} +1 -1
- package/dist/components/KSelect.vue.d.ts +10 -3
- package/dist/components/{KSelect.js → KSelect.vue.js} +4 -4
- package/dist/components/KSelect.vue_vue_type_script_setup_true_lang.js +89 -48
- package/dist/components/{KSkeleton.js → KSkeleton.vue.js} +1 -1
- package/dist/components/KSlider.vue.d.ts +24 -0
- package/dist/components/KSlider.vue.js +7 -0
- package/dist/components/KSlider.vue_vue_type_script_setup_true_lang.js +82 -0
- package/dist/components/KSpace.vue.d.ts +32 -0
- package/dist/components/KSpace.vue.js +7 -0
- package/dist/components/KSpace.vue_vue_type_script_setup_true_lang.js +52 -0
- package/dist/components/KSpin.vue.d.ts +23 -0
- package/dist/components/KSpin.vue.js +7 -0
- package/dist/components/KSpin.vue_vue_type_script_setup_true_lang.js +35 -0
- package/dist/components/KStatistic.vue.d.ts +23 -0
- package/dist/components/KStatistic.vue.js +7 -0
- package/dist/components/KStatistic.vue_vue_type_script_setup_true_lang.js +27 -0
- package/dist/components/KSteps.vue.d.ts +1 -1
- package/dist/components/{KSteps.js → KSteps.vue.js} +1 -1
- package/dist/components/KSwitch.vue.d.ts +2 -2
- package/dist/components/{KSwitch.js → KSwitch.vue.js} +2 -2
- package/dist/components/KSwitch.vue_vue_type_script_setup_true_lang.js +12 -11
- package/dist/components/KTabs.vue.d.ts +10 -5
- package/dist/components/{KTabs.js → KTabs.vue.js} +2 -2
- package/dist/components/KTabs.vue_vue_type_script_setup_true_lang.js +31 -21
- package/dist/components/KTag.vue.d.ts +3 -3
- package/dist/components/{KTag.js → KTag.vue.js} +2 -2
- package/dist/components/KTag.vue_vue_type_script_setup_true_lang.js +14 -13
- package/dist/components/KText.vue.d.ts +26 -0
- package/dist/components/KText.vue.js +7 -0
- package/dist/components/KText.vue_vue_type_script_setup_true_lang.js +31 -0
- package/dist/components/KTextarea.vue.d.ts +17 -2
- package/dist/components/{KTextarea.js → KTextarea.vue.js} +2 -2
- package/dist/components/KTextarea.vue_vue_type_script_setup_true_lang.js +51 -22
- package/dist/components/{KThemeToggleButton.js → KThemeToggleButton.vue.js} +1 -1
- package/dist/components/KTime.vue.d.ts +14 -0
- package/dist/components/KTime.vue.js +7 -0
- package/dist/components/KTime.vue_vue_type_script_setup_true_lang.js +56 -0
- package/dist/components/KTimePicker.vue.d.ts +19 -0
- package/dist/components/KTimePicker.vue.js +8 -0
- package/dist/components/KTimePicker.vue_vue_type_script_setup_true_lang.js +116 -0
- package/dist/components/KTimeline.vue.d.ts +13 -0
- package/dist/components/KTimeline.vue.js +7 -0
- package/dist/components/KTimeline.vue_vue_type_script_setup_true_lang.js +10 -0
- package/dist/components/KTimelineItem.vue.d.ts +29 -0
- package/dist/components/KTimelineItem.vue.js +7 -0
- package/dist/components/KTimelineItem.vue_vue_type_script_setup_true_lang.js +37 -0
- package/dist/components/{KTooltip.js → KTooltip.vue.js} +1 -1
- package/dist/components/KTransfer.vue.d.ts +24 -0
- package/dist/components/KTransfer.vue.js +7 -0
- package/dist/components/KTransfer.vue_vue_type_script_setup_true_lang.js +114 -0
- package/dist/components/{KTreeNode.js → KTreeNode.vue.js} +1 -1
- package/dist/components/KTreeSelect.vue.d.ts +22 -0
- package/dist/components/KTreeSelect.vue.js +8 -0
- package/dist/components/KTreeSelect.vue_vue_type_script_setup_true_lang.js +100 -0
- package/dist/components/{KTreeView.js → KTreeView.vue.js} +1 -1
- package/dist/components/KTreeView.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/KTypography.vue.d.ts +13 -0
- package/dist/components/KTypography.vue.js +7 -0
- package/dist/components/KTypography.vue_vue_type_script_setup_true_lang.js +10 -0
- package/dist/components/KUpload.vue.d.ts +100 -4
- package/dist/components/{KUpload.js → KUpload.vue.js} +2 -2
- package/dist/components/KUpload.vue_vue_type_script_setup_true_lang.js +189 -94
- package/dist/components/KUploadDragger.vue.d.ts +13 -0
- package/dist/components/KUploadDragger.vue.js +7 -0
- package/dist/components/KUploadDragger.vue_vue_type_script_setup_true_lang.js +12 -0
- package/dist/components/{KVirtualList.js → KVirtualList.vue.js} +1 -1
- package/dist/components/KWatermark.vue.d.ts +27 -0
- package/dist/components/KWatermark.vue.js +7 -0
- package/dist/components/KWatermark.vue_vue_type_script_setup_true_lang.js +28 -0
- package/dist/components/form-context.d.ts +7 -3
- package/dist/components/list-context.d.ts +6 -0
- package/dist/components/list-context.js +4 -0
- package/dist/components/menu-context.d.ts +26 -0
- package/dist/components/menu-context.js +4 -0
- package/dist/components/radio-context.d.ts +6 -0
- package/dist/components/radio-context.js +4 -0
- package/dist/components/upload-context.d.ts +6 -0
- package/dist/components/upload-context.js +4 -0
- package/dist/index.d.ts +60 -3
- package/dist/index.js +104 -55
- package/dist/k-ui.css +1 -1
- package/package.json +6 -12
- /package/dist/components/{KEmpty.js → KEmpty.vue.js} +0 -0
- /package/dist/components/{KGridSkeleton.js → KGridSkeleton.vue.js} +0 -0
- /package/dist/components/{KListSkeleton.js → KListSkeleton.vue.js} +0 -0
- /package/dist/components/{KRefetchOverlay.js → KRefetchOverlay.vue.js} +0 -0
- /package/dist/components/{KSearchBar.js → KSearchBar.vue.js} +0 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { Fragment as e, computed as t, createCommentVNode as n, createElementBlock as r, createTextVNode as i, defineComponent as a, normalizeClass as o, normalizeStyle as s, openBlock as c, renderSlot as l, toDisplayString as u, unref as d, useSlots as f } from "vue";
|
|
2
|
+
//#region components/KBadge.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
var p = /* @__PURE__ */ a({
|
|
4
|
+
__name: "KBadge",
|
|
5
|
+
props: {
|
|
6
|
+
value: {},
|
|
7
|
+
max: {},
|
|
8
|
+
dot: {
|
|
9
|
+
type: Boolean,
|
|
10
|
+
default: !1
|
|
11
|
+
},
|
|
12
|
+
type: { default: "error" },
|
|
13
|
+
showZero: {
|
|
14
|
+
type: Boolean,
|
|
15
|
+
default: !1
|
|
16
|
+
},
|
|
17
|
+
color: {},
|
|
18
|
+
processing: {
|
|
19
|
+
type: Boolean,
|
|
20
|
+
default: !1
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
setup(a) {
|
|
24
|
+
let p = a, m = f(), h = t(() => {
|
|
25
|
+
if (p.dot) return "";
|
|
26
|
+
let e = p.value;
|
|
27
|
+
return typeof e == "number" ? p.max != null && e > p.max ? `${p.max}+` : String(e) : e ?? "";
|
|
28
|
+
}), g = t(() => {
|
|
29
|
+
if (p.dot) return !1;
|
|
30
|
+
let e = p.value;
|
|
31
|
+
return e == null || e === "" || typeof e == "number" && e === 0 && !p.showZero;
|
|
32
|
+
});
|
|
33
|
+
return (t, f) => (c(), r("span", { class: o(["k-badge", { "k-badge--standalone": !d(m).default }]) }, [l(t.$slots, "default", {}, void 0, !0), g.value ? n("", !0) : (c(), r("sup", {
|
|
34
|
+
key: 0,
|
|
35
|
+
class: o(["k-badge__sup", [`k-badge--${a.type}`, {
|
|
36
|
+
"k-badge--dot": a.dot,
|
|
37
|
+
"k-badge--attached": !!d(m).default,
|
|
38
|
+
"k-badge--processing": a.processing
|
|
39
|
+
}]]),
|
|
40
|
+
style: s(a.color ? {
|
|
41
|
+
backgroundColor: a.color,
|
|
42
|
+
borderColor: a.color
|
|
43
|
+
} : void 0)
|
|
44
|
+
}, [a.dot ? n("", !0) : (c(), r(e, { key: 0 }, [i(u(h.value), 1)], 64))], 6))], 2));
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
//#endregion
|
|
48
|
+
export { p as default };
|
|
@@ -1,12 +1,41 @@
|
|
|
1
1
|
import type { Component } from 'vue';
|
|
2
2
|
interface BreadcrumbItem {
|
|
3
3
|
label: string;
|
|
4
|
+
/** 链接目标(路由路径或 URL)。带 to 且非最后一项时渲染为 <a href>;
|
|
5
|
+
* 普通左键点击会被拦截并派发 item-click, 交给宿主导航(如 router.push)。 */
|
|
4
6
|
to?: string;
|
|
5
7
|
icon?: Component;
|
|
6
8
|
}
|
|
7
9
|
type __VLS_Props = {
|
|
8
10
|
items: BreadcrumbItem[];
|
|
9
11
|
};
|
|
10
|
-
declare
|
|
12
|
+
declare var __VLS_1: {
|
|
13
|
+
item: BreadcrumbItem;
|
|
14
|
+
index: number;
|
|
15
|
+
isLink: boolean;
|
|
16
|
+
isLast: boolean;
|
|
17
|
+
};
|
|
18
|
+
type __VLS_Slots = {} & {
|
|
19
|
+
item?: (props: typeof __VLS_1) => any;
|
|
20
|
+
};
|
|
21
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
22
|
+
"item-click": (payload: {
|
|
23
|
+
item: BreadcrumbItem;
|
|
24
|
+
index: number;
|
|
25
|
+
event: MouseEvent;
|
|
26
|
+
}) => any;
|
|
27
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
28
|
+
"onItem-click"?: ((payload: {
|
|
29
|
+
item: BreadcrumbItem;
|
|
30
|
+
index: number;
|
|
31
|
+
event: MouseEvent;
|
|
32
|
+
}) => any) | undefined;
|
|
33
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
34
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
35
|
declare const _default: typeof __VLS_export;
|
|
12
36
|
export default _default;
|
|
37
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
38
|
+
new (): {
|
|
39
|
+
$slots: S;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "../_virtual/_plugin-vue_export-helper.js";
|
|
2
2
|
import t from "./KBreadcrumb.vue_vue_type_script_setup_true_lang.js";
|
|
3
|
-
/* empty css
|
|
3
|
+
/* empty css */
|
|
4
4
|
//#region components/KBreadcrumb.vue
|
|
5
|
-
var n = /* @__PURE__ */ e(t, [["__scopeId", "data-v-
|
|
5
|
+
var n = /* @__PURE__ */ e(t, [["__scopeId", "data-v-b6e9004a"]]);
|
|
6
6
|
//#endregion
|
|
7
7
|
export { n as default };
|
|
@@ -1,38 +1,53 @@
|
|
|
1
|
-
import { Fragment as e, createBlock as t, createCommentVNode as n, createElementBlock as r, createTextVNode as i, defineComponent as a, normalizeClass as o, openBlock as s, renderList as c,
|
|
1
|
+
import { Fragment as e, createBlock as t, createCommentVNode as n, createElementBlock as r, createTextVNode as i, defineComponent as a, normalizeClass as o, openBlock as s, renderList as c, renderSlot as l, resolveDynamicComponent as u, toDisplayString as d, unref as f } from "vue";
|
|
2
2
|
import { ChevronRight as p } from "lucide-vue-next";
|
|
3
|
-
import { RouterLink as m } from "vue-router";
|
|
4
3
|
//#region components/KBreadcrumb.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
var
|
|
4
|
+
var m = {
|
|
6
5
|
class: "k-bread",
|
|
7
6
|
"aria-label": "面包屑"
|
|
8
|
-
}, g = /* @__PURE__ */ a({
|
|
7
|
+
}, h = ["href", "onClick"], g = ["aria-current"], _ = /* @__PURE__ */ a({
|
|
9
8
|
__name: "KBreadcrumb",
|
|
10
9
|
props: { items: {} },
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
emits: ["item-click"],
|
|
11
|
+
setup(a, { emit: _ }) {
|
|
12
|
+
let v = a, y = _;
|
|
13
|
+
function b(e, t) {
|
|
14
|
+
return !!e.to && t < v.items.length - 1;
|
|
15
|
+
}
|
|
16
|
+
function x(e, t, n) {
|
|
17
|
+
n.defaultPrevented || n.button !== 0 || n.metaKey || n.ctrlKey || n.shiftKey || n.altKey || (n.preventDefault(), y("item-click", {
|
|
18
|
+
item: e,
|
|
19
|
+
index: t,
|
|
20
|
+
event: n
|
|
21
|
+
}));
|
|
22
|
+
}
|
|
23
|
+
return (_, v) => (s(), r("nav", m, [(s(!0), r(e, null, c(a.items, (c, m) => (s(), r(e, { key: m }, [l(_.$slots, "item", {
|
|
24
|
+
item: c,
|
|
25
|
+
index: m,
|
|
26
|
+
isLink: b(c, m),
|
|
27
|
+
isLast: m === a.items.length - 1
|
|
28
|
+
}, () => [b(c, m) ? (s(), r("a", {
|
|
13
29
|
key: 0,
|
|
14
|
-
|
|
15
|
-
class: "k-bread__item k-bread__item--link"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
_: 2
|
|
23
|
-
}, 1032, ["to"])) : (s(), r("span", {
|
|
30
|
+
href: c.to,
|
|
31
|
+
class: "k-bread__item k-bread__item--link",
|
|
32
|
+
onClick: (e) => x(c, m, e)
|
|
33
|
+
}, [c.icon ? (s(), t(u(c.icon), {
|
|
34
|
+
key: 0,
|
|
35
|
+
size: 13,
|
|
36
|
+
class: "k-bread__icon"
|
|
37
|
+
})) : n("", !0), i(" " + d(c.label), 1)], 8, h)) : (s(), r("span", {
|
|
24
38
|
key: 1,
|
|
25
|
-
class: o(["k-bread__item", { "k-bread__item--last":
|
|
26
|
-
|
|
39
|
+
class: o(["k-bread__item", { "k-bread__item--last": m === a.items.length - 1 }]),
|
|
40
|
+
"aria-current": m === a.items.length - 1 ? "page" : void 0
|
|
41
|
+
}, [c.icon ? (s(), t(u(c.icon), {
|
|
27
42
|
key: 0,
|
|
28
43
|
size: 13,
|
|
29
44
|
class: "k-bread__icon"
|
|
30
|
-
})) : n("", !0), i(" " +
|
|
31
|
-
key:
|
|
45
|
+
})) : n("", !0), i(" " + d(c.label), 1)], 10, g))], !0), m < a.items.length - 1 ? (s(), t(f(p), {
|
|
46
|
+
key: 0,
|
|
32
47
|
size: 14,
|
|
33
48
|
class: "k-bread__sep"
|
|
34
49
|
})) : n("", !0)], 64))), 128))]));
|
|
35
50
|
}
|
|
36
51
|
});
|
|
37
52
|
//#endregion
|
|
38
|
-
export {
|
|
53
|
+
export { _ as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
type KButtonType = 'primary' | '
|
|
2
|
-
type KButtonSize = 'sm' | 'md' | 'lg';
|
|
1
|
+
type KButtonType = 'default' | 'primary' | 'info' | 'success' | 'warning' | 'error' | 'danger' | 'secondary' | 'ghost';
|
|
2
|
+
type KButtonSize = 'tiny' | 'xs' | 'small' | 'sm' | 'medium' | 'md' | 'large' | 'lg';
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
type?: KButtonType;
|
|
5
5
|
size?: KButtonSize;
|
|
@@ -7,6 +7,14 @@ type __VLS_Props = {
|
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
block?: boolean;
|
|
9
9
|
nativeType?: 'button' | 'submit' | 'reset';
|
|
10
|
+
quaternary?: boolean;
|
|
11
|
+
tertiary?: boolean;
|
|
12
|
+
text?: boolean;
|
|
13
|
+
secondary?: boolean;
|
|
14
|
+
ghost?: boolean;
|
|
15
|
+
circle?: boolean;
|
|
16
|
+
round?: boolean;
|
|
17
|
+
color?: string;
|
|
10
18
|
};
|
|
11
19
|
declare var __VLS_6: {}, __VLS_8: {};
|
|
12
20
|
type __VLS_Slots = {} & {
|
|
@@ -19,12 +27,19 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
19
27
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
20
28
|
onClick?: ((ev: MouseEvent) => any) | undefined;
|
|
21
29
|
}>, {
|
|
30
|
+
secondary: boolean;
|
|
31
|
+
ghost: boolean;
|
|
22
32
|
type: KButtonType;
|
|
23
33
|
size: KButtonSize;
|
|
24
34
|
loading: boolean;
|
|
25
35
|
disabled: boolean;
|
|
26
36
|
block: boolean;
|
|
27
37
|
nativeType: "button" | "submit" | "reset";
|
|
38
|
+
quaternary: boolean;
|
|
39
|
+
tertiary: boolean;
|
|
40
|
+
text: boolean;
|
|
41
|
+
circle: boolean;
|
|
42
|
+
round: boolean;
|
|
28
43
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
29
44
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
30
45
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./KButton.vue_vue_type_script_setup_true_lang.js";
|
|
2
|
-
/* empty css
|
|
2
|
+
/* empty css */
|
|
3
3
|
import t from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
//#region components/KButton.vue
|
|
5
|
-
var n = /* @__PURE__ */ t(e, [["__scopeId", "data-v-
|
|
5
|
+
var n = /* @__PURE__ */ t(e, [["__scopeId", "data-v-e72ea9f3"]]);
|
|
6
6
|
//#endregion
|
|
7
7
|
export { n as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { computed as e, createBlock as t, createCommentVNode as n, createElementBlock as r, defineComponent as i, normalizeClass as a,
|
|
2
|
-
import { Loader2 as
|
|
1
|
+
import { computed as e, createBlock as t, createCommentVNode as n, createElementBlock as r, defineComponent as i, normalizeClass as a, normalizeStyle as o, openBlock as s, renderSlot as c, unref as l } from "vue";
|
|
2
|
+
import { Loader2 as u } from "lucide-vue-next";
|
|
3
3
|
//#region components/KButton.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
-
var
|
|
4
|
+
var d = ["type", "disabled"], f = /* @__PURE__ */ i({
|
|
5
5
|
__name: "KButton",
|
|
6
6
|
props: {
|
|
7
|
-
type: { default: "
|
|
7
|
+
type: { default: "default" },
|
|
8
8
|
size: { default: "md" },
|
|
9
9
|
loading: {
|
|
10
10
|
type: Boolean,
|
|
@@ -18,33 +18,67 @@ var u = ["type", "disabled"], d = /* @__PURE__ */ i({
|
|
|
18
18
|
type: Boolean,
|
|
19
19
|
default: !1
|
|
20
20
|
},
|
|
21
|
-
nativeType: { default: "button" }
|
|
21
|
+
nativeType: { default: "button" },
|
|
22
|
+
quaternary: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: !1
|
|
25
|
+
},
|
|
26
|
+
tertiary: {
|
|
27
|
+
type: Boolean,
|
|
28
|
+
default: !1
|
|
29
|
+
},
|
|
30
|
+
text: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
default: !1
|
|
33
|
+
},
|
|
34
|
+
secondary: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
default: !1
|
|
37
|
+
},
|
|
38
|
+
ghost: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: !1
|
|
41
|
+
},
|
|
42
|
+
circle: {
|
|
43
|
+
type: Boolean,
|
|
44
|
+
default: !1
|
|
45
|
+
},
|
|
46
|
+
round: {
|
|
47
|
+
type: Boolean,
|
|
48
|
+
default: !1
|
|
49
|
+
},
|
|
50
|
+
color: {}
|
|
22
51
|
},
|
|
23
52
|
emits: ["click"],
|
|
24
53
|
setup(i) {
|
|
25
|
-
let
|
|
26
|
-
return (e,
|
|
54
|
+
let f = i, p = e(() => f.size === "tiny" || f.size === "xs" ? "xs" : f.size === "small" || f.size === "sm" ? "sm" : f.size === "large" || f.size === "lg" ? "lg" : "md"), m = e(() => f.type === "danger" || f.type === "error" ? "error" : f.type === "secondary" || f.type === "ghost" ? "default" : f.type), h = e(() => f.text ? "text" : f.quaternary || f.ghost || f.type === "ghost" ? "ghost" : f.tertiary || f.secondary ? "soft" : f.type === "secondary" ? "outline" : "solid"), g = e(() => p.value === "xs" || p.value === "sm" ? 12 : p.value === "lg" ? 16 : 14), _ = e(() => f.color ? { "--k-btn-custom": f.color } : void 0);
|
|
55
|
+
return (e, f) => (s(), r("button", {
|
|
27
56
|
type: i.nativeType,
|
|
28
57
|
disabled: i.disabled || i.loading,
|
|
29
58
|
class: a(["k-btn", [
|
|
30
|
-
`k-btn--${
|
|
31
|
-
`k-btn--${
|
|
59
|
+
`k-btn--${m.value}`,
|
|
60
|
+
`k-btn--${h.value}`,
|
|
61
|
+
`k-btn--${p.value}`,
|
|
32
62
|
{
|
|
33
63
|
"k-btn--block": i.block,
|
|
34
|
-
"k-btn--loading": i.loading
|
|
64
|
+
"k-btn--loading": i.loading,
|
|
65
|
+
"k-btn--circle": i.circle,
|
|
66
|
+
"k-btn--round": i.round,
|
|
67
|
+
"k-btn--custom": i.color
|
|
35
68
|
}
|
|
36
69
|
]]),
|
|
37
|
-
|
|
70
|
+
style: o(_.value),
|
|
71
|
+
onClick: f[0] ||= (t) => e.$emit("click", t)
|
|
38
72
|
}, [
|
|
39
|
-
i.loading ? (
|
|
73
|
+
i.loading ? (s(), t(l(u), {
|
|
40
74
|
key: 0,
|
|
41
|
-
size:
|
|
75
|
+
size: g.value,
|
|
42
76
|
class: "k-btn__spinner"
|
|
43
77
|
}, null, 8, ["size"])) : n("", !0),
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
],
|
|
78
|
+
c(e.$slots, "icon", {}, void 0, !0),
|
|
79
|
+
c(e.$slots, "default", {}, void 0, !0)
|
|
80
|
+
], 14, d));
|
|
47
81
|
}
|
|
48
82
|
});
|
|
49
83
|
//#endregion
|
|
50
|
-
export {
|
|
84
|
+
export { f as default };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
vertical?: boolean;
|
|
3
|
+
};
|
|
4
|
+
declare var __VLS_1: {};
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
6
|
+
default?: (props: typeof __VLS_1) => any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
9
|
+
vertical: boolean;
|
|
10
|
+
}, {}, {}, {}, 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,14 @@
|
|
|
1
|
+
import { createElementBlock as e, defineComponent as t, normalizeClass as n, openBlock as r, renderSlot as i } from "vue";
|
|
2
|
+
//#region components/KButtonGroup.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
var a = /* @__PURE__ */ t({
|
|
4
|
+
__name: "KButtonGroup",
|
|
5
|
+
props: { vertical: {
|
|
6
|
+
type: Boolean,
|
|
7
|
+
default: !1
|
|
8
|
+
} },
|
|
9
|
+
setup(t) {
|
|
10
|
+
return (a, o) => (r(), e("div", { class: n(["k-btn-group", { "k-btn-group--vertical": t.vertical }]) }, [i(a.$slots, "default")], 2));
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
export { a as default };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
modelValue?: number | Date | null;
|
|
3
|
+
};
|
|
4
|
+
declare var __VLS_11: {
|
|
5
|
+
date: Date;
|
|
6
|
+
isCurrentMonth: boolean;
|
|
7
|
+
};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
default?: (props: typeof __VLS_11) => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
12
|
+
"update:modelValue": (v: number) => any;
|
|
13
|
+
panelChange: (p: {
|
|
14
|
+
year: number;
|
|
15
|
+
month: number;
|
|
16
|
+
}) => any;
|
|
17
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
18
|
+
"onUpdate:modelValue"?: ((v: number) => any) | undefined;
|
|
19
|
+
onPanelChange?: ((p: {
|
|
20
|
+
year: number;
|
|
21
|
+
month: number;
|
|
22
|
+
}) => any) | undefined;
|
|
23
|
+
}>, {
|
|
24
|
+
modelValue: number | Date | null;
|
|
25
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
27
|
+
declare const _default: typeof __VLS_export;
|
|
28
|
+
export default _default;
|
|
29
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
30
|
+
new (): {
|
|
31
|
+
$slots: S;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import e from "../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
+
import t from "./KCalendar.vue_vue_type_script_setup_true_lang.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
//#region components/KCalendar.vue
|
|
5
|
+
var n = /* @__PURE__ */ e(t, [["__scopeId", "data-v-67422762"]]);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { n as default };
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { Fragment as e, computed as t, createElementBlock as n, createElementVNode as r, createTextVNode as i, createVNode as a, defineComponent as o, normalizeClass as s, openBlock as c, ref as l, renderList as u, renderSlot as d, toDisplayString as f, unref as p } from "vue";
|
|
2
|
+
import { ChevronLeft as m, ChevronRight as h } from "lucide-vue-next";
|
|
3
|
+
//#region components/KCalendar.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var g = { class: "k-cal" }, _ = { class: "k-cal__head" }, v = { class: "k-cal__title" }, y = { class: "k-cal__nav" }, b = { class: "k-cal__grid k-cal__weekdays" }, x = { class: "k-cal__grid" }, S = ["onClick"], C = /* @__PURE__ */ o({
|
|
5
|
+
__name: "KCalendar",
|
|
6
|
+
props: { modelValue: { default: null } },
|
|
7
|
+
emits: ["update:modelValue", "panelChange"],
|
|
8
|
+
setup(o, { emit: C }) {
|
|
9
|
+
let w = o, T = C;
|
|
10
|
+
function E(e) {
|
|
11
|
+
return e == null ? null : e instanceof Date ? e : new Date(e);
|
|
12
|
+
}
|
|
13
|
+
let D = t(() => E(w.modelValue)), O = /* @__PURE__ */ new Date(), k = D.value ?? O, A = l({
|
|
14
|
+
y: k.getFullYear(),
|
|
15
|
+
m: k.getMonth()
|
|
16
|
+
}), j = [
|
|
17
|
+
"一",
|
|
18
|
+
"二",
|
|
19
|
+
"三",
|
|
20
|
+
"四",
|
|
21
|
+
"五",
|
|
22
|
+
"六",
|
|
23
|
+
"日"
|
|
24
|
+
], M = t(() => `${A.value.y} 年 ${A.value.m + 1} 月`), N = t(() => {
|
|
25
|
+
let { y: e, m: t } = A.value, n = (new Date(e, t, 1).getDay() + 6) % 7, r = new Date(e, t, 1 - n);
|
|
26
|
+
return Array.from({ length: 42 }, (e, t) => {
|
|
27
|
+
let n = new Date(r);
|
|
28
|
+
return n.setDate(r.getDate() + t), n;
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
function P(e, t) {
|
|
32
|
+
return !!t && e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
|
|
33
|
+
}
|
|
34
|
+
function F(e) {
|
|
35
|
+
let { y: t, m: n } = A.value;
|
|
36
|
+
n += e, n < 0 ? (--t, n = 11) : n > 11 && (t += 1, n = 0), A.value = {
|
|
37
|
+
y: t,
|
|
38
|
+
m: n
|
|
39
|
+
}, T("panelChange", {
|
|
40
|
+
year: t,
|
|
41
|
+
month: n + 1
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
function I(e) {
|
|
45
|
+
T("update:modelValue", e.getTime());
|
|
46
|
+
}
|
|
47
|
+
return (t, o) => (c(), n("div", g, [
|
|
48
|
+
r("div", _, [r("span", v, f(M.value), 1), r("div", y, [r("button", {
|
|
49
|
+
type: "button",
|
|
50
|
+
onClick: o[0] ||= (e) => F(-1),
|
|
51
|
+
"aria-label": "上个月"
|
|
52
|
+
}, [a(p(m), { size: 16 })]), r("button", {
|
|
53
|
+
type: "button",
|
|
54
|
+
onClick: o[1] ||= (e) => F(1),
|
|
55
|
+
"aria-label": "下个月"
|
|
56
|
+
}, [a(p(h), { size: 16 })])])]),
|
|
57
|
+
r("div", b, [(c(), n(e, null, u(j, (e) => r("span", {
|
|
58
|
+
key: e,
|
|
59
|
+
class: "k-cal__weekday"
|
|
60
|
+
}, f(e), 1)), 64))]),
|
|
61
|
+
r("div", x, [(c(!0), n(e, null, u(N.value, (e, r) => (c(), n("button", {
|
|
62
|
+
key: r,
|
|
63
|
+
type: "button",
|
|
64
|
+
class: s(["k-cal__cell", {
|
|
65
|
+
"k-cal__cell--muted": e.getMonth() !== A.value.m,
|
|
66
|
+
"k-cal__cell--today": P(e, p(O)),
|
|
67
|
+
"k-cal__cell--selected": P(e, D.value)
|
|
68
|
+
}]),
|
|
69
|
+
onClick: (t) => I(e)
|
|
70
|
+
}, [d(t.$slots, "default", {
|
|
71
|
+
date: e,
|
|
72
|
+
isCurrentMonth: e.getMonth() === A.value.m
|
|
73
|
+
}, () => [i(f(e.getDate()), 1)], !0)], 10, S))), 128))])
|
|
74
|
+
]));
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
//#endregion
|
|
78
|
+
export { C as default };
|
|
@@ -6,7 +6,7 @@ type __VLS_Props = {
|
|
|
6
6
|
hoverable?: boolean;
|
|
7
7
|
bodyClass?: string;
|
|
8
8
|
};
|
|
9
|
-
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {}, __VLS_7: {}, __VLS_9: {};
|
|
9
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {}, __VLS_7: {}, __VLS_9: {}, __VLS_11: {};
|
|
10
10
|
type __VLS_Slots = {} & {
|
|
11
11
|
title?: (props: typeof __VLS_1) => any;
|
|
12
12
|
} & {
|
|
@@ -14,9 +14,11 @@ type __VLS_Slots = {} & {
|
|
|
14
14
|
} & {
|
|
15
15
|
actions?: (props: typeof __VLS_5) => any;
|
|
16
16
|
} & {
|
|
17
|
-
|
|
17
|
+
'header-extra'?: (props: typeof __VLS_7) => any;
|
|
18
18
|
} & {
|
|
19
|
-
|
|
19
|
+
default?: (props: typeof __VLS_9) => any;
|
|
20
|
+
} & {
|
|
21
|
+
footer?: (props: typeof __VLS_11) => any;
|
|
20
22
|
};
|
|
21
23
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
22
24
|
bordered: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "../_virtual/_plugin-vue_export-helper.js";
|
|
2
2
|
import t from "./KCard.vue_vue_type_script_setup_true_lang.js";
|
|
3
|
-
/* empty css
|
|
3
|
+
/* empty css */
|
|
4
4
|
//#region components/KCard.vue
|
|
5
|
-
var n = /* @__PURE__ */ e(t, [["__scopeId", "data-v-
|
|
5
|
+
var n = /* @__PURE__ */ e(t, [["__scopeId", "data-v-31c11daf"]]);
|
|
6
6
|
//#endregion
|
|
7
7
|
export { n as default };
|
|
@@ -36,11 +36,11 @@ var l = {
|
|
|
36
36
|
"k-card--bordered": i.bordered,
|
|
37
37
|
"k-card--hoverable": i.hoverable
|
|
38
38
|
}]]) }, [
|
|
39
|
-
i.title || h.$slots.title || h.$slots.header || h.$slots.actions ? (o(), t("header", l, [n("div", u, [
|
|
39
|
+
i.title || h.$slots.title || h.$slots.header || h.$slots.actions || h.$slots["header-extra"] ? (o(), t("header", l, [n("div", u, [
|
|
40
40
|
i.title || h.$slots.title ? (o(), t("h3", d, [s(h.$slots, "title", {}, () => [r(c(i.title), 1)], !0)])) : e("", !0),
|
|
41
41
|
i.subtitle ? (o(), t("p", f, c(i.subtitle), 1)) : e("", !0),
|
|
42
42
|
s(h.$slots, "header", {}, void 0, !0)
|
|
43
|
-
]), h.$slots.actions ? (o(), t("div", p, [s(h.$slots, "actions", {}, void 0, !0)])) : e("", !0)])) : e("", !0),
|
|
43
|
+
]), h.$slots.actions || h.$slots["header-extra"] ? (o(), t("div", p, [s(h.$slots, "actions", {}, () => [s(h.$slots, "header-extra", {}, void 0, !0)], !0)])) : e("", !0)])) : e("", !0),
|
|
44
44
|
n("div", { class: a(["k-card__body", i.bodyClass]) }, [s(h.$slots, "default", {}, void 0, !0)], 2),
|
|
45
45
|
h.$slots.footer ? (o(), t("footer", m, [s(h.$slots, "footer", {}, void 0, !0)])) : e("", !0)
|
|
46
46
|
], 2));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import e from "../_virtual/_plugin-vue_export-helper.js";
|
|
2
2
|
import t from "./KCarousel.vue_vue_type_script_setup_true_lang.js";
|
|
3
|
-
/* empty css
|
|
3
|
+
/* empty css */
|
|
4
4
|
//#region components/KCarousel.vue
|
|
5
5
|
var n = /* @__PURE__ */ e(t, [["__scopeId", "data-v-173fae98"]]);
|
|
6
6
|
//#endregion
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export interface CascaderOption {
|
|
2
|
+
label: string;
|
|
3
|
+
value: string | number;
|
|
4
|
+
children?: CascaderOption[];
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
}
|
|
7
|
+
type __VLS_Props = {
|
|
8
|
+
modelValue?: string | number | null;
|
|
9
|
+
options: CascaderOption[];
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
clearable?: boolean;
|
|
13
|
+
separator?: string;
|
|
14
|
+
/** 允许选中非叶子节点 */
|
|
15
|
+
changeOnSelect?: boolean;
|
|
16
|
+
};
|
|
17
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
18
|
+
"update:modelValue": (v: string | number | null) => any;
|
|
19
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
20
|
+
"onUpdate:modelValue"?: ((v: string | number | null) => any) | undefined;
|
|
21
|
+
}>, {
|
|
22
|
+
disabled: boolean;
|
|
23
|
+
placeholder: string;
|
|
24
|
+
clearable: boolean;
|
|
25
|
+
separator: string;
|
|
26
|
+
changeOnSelect: boolean;
|
|
27
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
28
|
+
declare const _default: typeof __VLS_export;
|
|
29
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import e from "../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
+
import t from "./KCascader.vue_vue_type_script_setup_true_lang.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
/* empty css */
|
|
5
|
+
//#region components/KCascader.vue
|
|
6
|
+
var n = /* @__PURE__ */ e(t, [["__scopeId", "data-v-1578d394"]]);
|
|
7
|
+
//#endregion
|
|
8
|
+
export { n as default };
|