@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
|
@@ -1,22 +1,44 @@
|
|
|
1
|
-
|
|
1
|
+
import type { VNodeChild } from 'vue';
|
|
2
|
+
export type RowClassValue = string | string[] | Record<string, boolean> | undefined;
|
|
3
|
+
export interface Column<T = Record<string, any>> {
|
|
2
4
|
key: string;
|
|
3
|
-
label
|
|
4
|
-
|
|
5
|
+
label?: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
width?: string | number;
|
|
5
8
|
align?: 'left' | 'right' | 'center';
|
|
6
9
|
cellClass?: string;
|
|
10
|
+
className?: string;
|
|
11
|
+
render?: (row: T, index: number) => VNodeChild;
|
|
7
12
|
}
|
|
13
|
+
export interface DataTablePagination {
|
|
14
|
+
page?: number;
|
|
15
|
+
pageSize?: number;
|
|
16
|
+
itemCount?: number;
|
|
17
|
+
showSizePicker?: boolean;
|
|
18
|
+
[key: string]: any;
|
|
19
|
+
}
|
|
20
|
+
export type DataTableColumn<T = Record<string, any>> = Column<T>;
|
|
21
|
+
export type DataTableColumns<T = Record<string, any>> = Column<T>[];
|
|
22
|
+
declare const _default: typeof __VLS_export;
|
|
23
|
+
export default _default;
|
|
8
24
|
declare const __VLS_export: <T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
9
25
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<{
|
|
10
|
-
columns: Column[];
|
|
11
|
-
rows
|
|
12
|
-
|
|
26
|
+
columns: Column<T>[];
|
|
27
|
+
rows?: T[];
|
|
28
|
+
/** naive-ui alias */
|
|
29
|
+
data?: T[];
|
|
30
|
+
rowKey?: string | ((row: T) => string | number);
|
|
31
|
+
rowClassName?: string | ((row: T, index: number) => RowClassValue);
|
|
13
32
|
hoverable?: boolean;
|
|
14
33
|
loading?: boolean;
|
|
15
34
|
empty?: string;
|
|
16
|
-
size?: "sm" | "md";
|
|
35
|
+
size?: "small" | "sm" | "medium" | "md";
|
|
17
36
|
striped?: boolean;
|
|
18
37
|
bordered?: boolean;
|
|
19
38
|
stickyHeader?: boolean;
|
|
39
|
+
pagination?: false | DataTablePagination;
|
|
40
|
+
singleLine?: boolean;
|
|
41
|
+
scrollX?: string | number;
|
|
20
42
|
} & {
|
|
21
43
|
onRowClick?: ((row: T) => any) | undefined;
|
|
22
44
|
}> & (typeof globalThis extends {
|
|
@@ -26,20 +48,21 @@ declare const __VLS_export: <T extends Record<string, any>>(__VLS_props: NonNull
|
|
|
26
48
|
attrs: any;
|
|
27
49
|
slots: {
|
|
28
50
|
[x: `header-${string}`]: ((props: {
|
|
29
|
-
col: Column
|
|
51
|
+
col: Column<T>;
|
|
30
52
|
}) => any) | undefined;
|
|
31
53
|
} & {
|
|
32
54
|
[x: `cell-${string}`]: ((props: {
|
|
33
55
|
row: T;
|
|
34
56
|
value: any;
|
|
57
|
+
index: number;
|
|
35
58
|
}) => any) | undefined;
|
|
59
|
+
} & {
|
|
60
|
+
empty?: (props: {}) => any;
|
|
36
61
|
};
|
|
37
62
|
emit: (e: "rowClick", row: T) => void;
|
|
38
63
|
}>) => import("vue").VNode & {
|
|
39
64
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
40
65
|
};
|
|
41
|
-
declare const _default: typeof __VLS_export;
|
|
42
|
-
export default _default;
|
|
43
66
|
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
44
67
|
[K in keyof T]: T[K];
|
|
45
68
|
} : {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "../_virtual/_plugin-vue_export-helper.js";
|
|
2
2
|
import t from "./KDataTable.vue_vue_type_script_setup_true_lang.js";
|
|
3
|
-
/* empty css
|
|
3
|
+
/* empty css */
|
|
4
4
|
//#region components/KDataTable.vue
|
|
5
|
-
var n = /* @__PURE__ */ e(t, [["__scopeId", "data-v-
|
|
5
|
+
var n = /* @__PURE__ */ e(t, [["__scopeId", "data-v-cc657cc6"]]);
|
|
6
6
|
//#endregion
|
|
7
7
|
export { n as default };
|
|
@@ -1,13 +1,19 @@
|
|
|
1
|
-
import e from "./KLoadingOverlay.js";
|
|
2
|
-
import t from "./KEmpty.js";
|
|
3
|
-
import
|
|
1
|
+
import e from "./KLoadingOverlay.vue.js";
|
|
2
|
+
import t from "./KEmpty.vue.js";
|
|
3
|
+
import n from "./KPagination.vue.js";
|
|
4
|
+
import { Fragment as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, normalizeClass as f, normalizeStyle as p, openBlock as m, ref as h, renderList as g, renderSlot as _, toDisplayString as v, unref as y, watch as b } from "vue";
|
|
4
5
|
//#region components/KDataTable.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
var
|
|
6
|
+
var x = ["onClick"], S = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "k-table-empty"
|
|
9
|
+
}, C = /* @__PURE__ */ d({
|
|
6
10
|
__name: "KDataTable",
|
|
7
11
|
props: {
|
|
8
12
|
columns: {},
|
|
9
13
|
rows: {},
|
|
14
|
+
data: {},
|
|
10
15
|
rowKey: {},
|
|
16
|
+
rowClassName: {},
|
|
11
17
|
hoverable: {
|
|
12
18
|
type: Boolean,
|
|
13
19
|
default: !0
|
|
@@ -29,34 +35,126 @@ var g = ["onClick"], _ = /* @__PURE__ */ l({
|
|
|
29
35
|
stickyHeader: {
|
|
30
36
|
type: Boolean,
|
|
31
37
|
default: !1
|
|
32
|
-
}
|
|
38
|
+
},
|
|
39
|
+
pagination: { type: [Boolean, Object] },
|
|
40
|
+
singleLine: {
|
|
41
|
+
type: Boolean,
|
|
42
|
+
default: !0
|
|
43
|
+
},
|
|
44
|
+
scrollX: {}
|
|
33
45
|
},
|
|
34
46
|
emits: ["rowClick"],
|
|
35
|
-
setup(
|
|
36
|
-
let
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}, [
|
|
49
|
-
|
|
50
|
-
value
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
47
|
+
setup(C, { emit: w }) {
|
|
48
|
+
let T = C, E = w, D = h(1), O = i(() => T.rows ?? T.data ?? []), k = i(() => T.pagination && typeof T.pagination == "object" ? T.pagination : void 0), A = i(() => {
|
|
49
|
+
let e = Number(k.value?.pageSize ?? 0);
|
|
50
|
+
return Number.isFinite(e) && e > 0 ? e : 0;
|
|
51
|
+
}), j = i(() => O.value.length), M = i(() => {
|
|
52
|
+
if (!A.value) return O.value;
|
|
53
|
+
let e = (D.value - 1) * A.value;
|
|
54
|
+
return O.value.slice(e, e + A.value);
|
|
55
|
+
}), N = i(() => T.size === "small" || T.size === "sm" ? "sm" : "md"), P = i(() => {
|
|
56
|
+
if (T.scrollX !== void 0) return { minWidth: typeof T.scrollX == "number" ? `${T.scrollX}px` : T.scrollX };
|
|
57
|
+
});
|
|
58
|
+
b(() => k.value?.page, (e) => {
|
|
59
|
+
typeof e == "number" && e > 0 && (D.value = e);
|
|
60
|
+
}, { immediate: !0 }), b([j, A], () => {
|
|
61
|
+
let e = A.value ? Math.max(1, Math.ceil(j.value / A.value)) : 1;
|
|
62
|
+
D.value > e && (D.value = e), D.value < 1 && (D.value = 1);
|
|
63
|
+
});
|
|
64
|
+
function F(e) {
|
|
65
|
+
return e.label ?? e.title ?? e.key;
|
|
66
|
+
}
|
|
67
|
+
function I(e) {
|
|
68
|
+
if (e.width !== void 0) return { width: typeof e.width == "number" ? `${e.width}px` : e.width };
|
|
69
|
+
}
|
|
70
|
+
function L(e, t) {
|
|
71
|
+
return e[t.key] ?? "-";
|
|
72
|
+
}
|
|
73
|
+
function R(e, t) {
|
|
74
|
+
return typeof T.rowKey == "function" ? T.rowKey(e) : typeof T.rowKey == "string" ? e[T.rowKey] ?? t : t;
|
|
75
|
+
}
|
|
76
|
+
function z(e, t) {
|
|
77
|
+
return [{ "k-table__row--hoverable": T.hoverable }, typeof T.rowClassName == "function" ? T.rowClassName(e, t) : T.rowClassName];
|
|
78
|
+
}
|
|
79
|
+
function B(e, t, n) {
|
|
80
|
+
return e.render ? e.render(t, n) : L(t, e);
|
|
81
|
+
}
|
|
82
|
+
let V = d({
|
|
83
|
+
props: {
|
|
84
|
+
col: {
|
|
85
|
+
type: Object,
|
|
86
|
+
required: !0
|
|
87
|
+
},
|
|
88
|
+
row: {
|
|
89
|
+
type: Object,
|
|
90
|
+
required: !0
|
|
91
|
+
},
|
|
92
|
+
index: {
|
|
93
|
+
type: Number,
|
|
94
|
+
required: !0
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
setup(e) {
|
|
98
|
+
return () => B(e.col, e.row, e.index);
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
return (i, d) => (m(), s("div", { class: f(["k-table-wrap", [`k-table-wrap--${N.value}`, { "k-table-wrap--bordered": C.bordered }]]) }, [
|
|
102
|
+
c("div", { class: f(["k-table-scroll", { "k-table-scroll--sticky": C.stickyHeader }]) }, [c("table", {
|
|
103
|
+
class: f(["k-table", {
|
|
104
|
+
"k-table--striped": C.striped,
|
|
105
|
+
"k-table--single-line": C.singleLine
|
|
106
|
+
}]),
|
|
107
|
+
style: p(P.value)
|
|
108
|
+
}, [c("thead", null, [c("tr", null, [(m(!0), s(r, null, g(C.columns, (e) => (m(), s("th", {
|
|
109
|
+
key: e.key,
|
|
110
|
+
style: p(I(e)),
|
|
111
|
+
class: f(e.align ? `k-table__th--${e.align}` : "")
|
|
112
|
+
}, [_(i.$slots, `header-${e.key}`, { col: e }, () => [l(v(F(e)), 1)], !0)], 6))), 128))])]), c("tbody", null, [(m(!0), s(r, null, g(M.value, (e, t) => (m(), s("tr", {
|
|
113
|
+
key: R(e, t),
|
|
114
|
+
class: f(z(e, t)),
|
|
115
|
+
onClick: (t) => C.hoverable && E("rowClick", e)
|
|
116
|
+
}, [(m(!0), s(r, null, g(C.columns, (n) => (m(), s("td", {
|
|
117
|
+
key: n.key,
|
|
118
|
+
class: f([
|
|
119
|
+
n.cellClass,
|
|
120
|
+
n.className,
|
|
121
|
+
n.align ? `k-table__td--${n.align}` : ""
|
|
122
|
+
])
|
|
123
|
+
}, [_(i.$slots, `cell-${n.key}`, {
|
|
124
|
+
row: e,
|
|
125
|
+
value: L(e, n),
|
|
126
|
+
index: t
|
|
127
|
+
}, () => [u(y(V), {
|
|
128
|
+
col: n,
|
|
129
|
+
row: e,
|
|
130
|
+
index: t
|
|
131
|
+
}, null, 8, [
|
|
132
|
+
"col",
|
|
133
|
+
"row",
|
|
134
|
+
"index"
|
|
135
|
+
])], !0)], 2))), 128))], 10, x))), 128))])], 6), !C.loading && O.value.length === 0 ? (m(), s("div", S, [_(i.$slots, "empty", {}, () => [u(t, {
|
|
136
|
+
title: C.empty || "暂无数据",
|
|
137
|
+
compact: ""
|
|
138
|
+
}, null, 8, ["title"])], !0)])) : o("", !0)], 2),
|
|
139
|
+
A.value > 0 ? (m(), a(n, {
|
|
140
|
+
key: 0,
|
|
141
|
+
page: D.value,
|
|
142
|
+
"onUpdate:page": d[0] ||= (e) => D.value = e,
|
|
143
|
+
class: "k-table-pagination",
|
|
144
|
+
"page-size": A.value,
|
|
145
|
+
total: j.value,
|
|
146
|
+
"show-summary": ""
|
|
147
|
+
}, null, 8, [
|
|
148
|
+
"page",
|
|
149
|
+
"page-size",
|
|
150
|
+
"total"
|
|
151
|
+
])) : o("", !0),
|
|
152
|
+
u(e, {
|
|
153
|
+
show: C.loading,
|
|
154
|
+
text: "加载中..."
|
|
155
|
+
}, null, 8, ["show"])
|
|
156
|
+
], 2));
|
|
59
157
|
}
|
|
60
158
|
});
|
|
61
159
|
//#endregion
|
|
62
|
-
export {
|
|
160
|
+
export { C as default };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export interface DescriptionItem {
|
|
2
|
+
label: string;
|
|
3
|
+
value?: string | number;
|
|
4
|
+
span?: number;
|
|
5
|
+
}
|
|
6
|
+
type __VLS_Props = {
|
|
7
|
+
items?: DescriptionItem[];
|
|
8
|
+
columns?: number;
|
|
9
|
+
bordered?: boolean;
|
|
10
|
+
labelWidth?: string;
|
|
11
|
+
size?: 'sm' | 'md' | 'lg';
|
|
12
|
+
};
|
|
13
|
+
declare var __VLS_1: {};
|
|
14
|
+
type __VLS_Slots = {} & {
|
|
15
|
+
default?: (props: typeof __VLS_1) => any;
|
|
16
|
+
};
|
|
17
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
18
|
+
size: "sm" | "md" | "lg";
|
|
19
|
+
bordered: boolean;
|
|
20
|
+
columns: number;
|
|
21
|
+
labelWidth: string;
|
|
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
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Fragment as e, createElementBlock as t, createElementVNode as n, defineComponent as r, normalizeClass as i, normalizeStyle as a, openBlock as o, renderList as s, renderSlot as c, toDisplayString as l } from "vue";
|
|
2
|
+
//#region components/KDescriptions.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
var u = { class: "k-desc-item__label" }, d = { class: "k-desc-item__value" }, f = /* @__PURE__ */ r({
|
|
4
|
+
__name: "KDescriptions",
|
|
5
|
+
props: {
|
|
6
|
+
items: {},
|
|
7
|
+
columns: { default: 3 },
|
|
8
|
+
bordered: {
|
|
9
|
+
type: Boolean,
|
|
10
|
+
default: !0
|
|
11
|
+
},
|
|
12
|
+
labelWidth: { default: "96px" },
|
|
13
|
+
size: { default: "md" }
|
|
14
|
+
},
|
|
15
|
+
setup(r) {
|
|
16
|
+
return (f, p) => (o(), t("div", {
|
|
17
|
+
class: i(["k-descriptions", [`k-descriptions--${r.size}`, { "k-descriptions--bordered": r.bordered }]]),
|
|
18
|
+
style: a({
|
|
19
|
+
"--k-desc-columns": r.columns,
|
|
20
|
+
"--k-desc-label-width": r.labelWidth
|
|
21
|
+
})
|
|
22
|
+
}, [r.items?.length ? (o(!0), t(e, { key: 0 }, s(r.items, (e) => (o(), t("div", {
|
|
23
|
+
key: e.label,
|
|
24
|
+
class: "k-desc-item",
|
|
25
|
+
style: a({ gridColumn: e.span ? `span ${e.span}` : void 0 })
|
|
26
|
+
}, [n("div", u, l(e.label), 1), n("div", d, l(e.value), 1)], 4))), 128)) : c(f.$slots, "default", { key: 1 })], 6));
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
//#endregion
|
|
30
|
+
export { f as default };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
label: string;
|
|
3
|
+
span?: number;
|
|
4
|
+
};
|
|
5
|
+
declare var __VLS_1: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_1) => any;
|
|
8
|
+
};
|
|
9
|
+
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>;
|
|
10
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { createElementBlock as e, createElementVNode as t, defineComponent as n, normalizeStyle as r, openBlock as i, renderSlot as a, toDisplayString as o } from "vue";
|
|
2
|
+
//#region components/KDescriptionsItem.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
var s = { class: "k-desc-item__label" }, c = { class: "k-desc-item__value" }, l = /* @__PURE__ */ n({
|
|
4
|
+
__name: "KDescriptionsItem",
|
|
5
|
+
props: {
|
|
6
|
+
label: {},
|
|
7
|
+
span: {}
|
|
8
|
+
},
|
|
9
|
+
setup(n) {
|
|
10
|
+
return (l, u) => (i(), e("div", {
|
|
11
|
+
class: "k-desc-item",
|
|
12
|
+
style: r({ gridColumn: n.span ? `span ${n.span}` : void 0 })
|
|
13
|
+
}, [t("div", s, o(n.label), 1), t("div", c, [a(l.$slots, "default")])], 4));
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
//#endregion
|
|
17
|
+
export { l as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "../_virtual/_plugin-vue_export-helper.js";
|
|
2
2
|
import t from "./KDialog.vue_vue_type_script_setup_true_lang.js";
|
|
3
|
-
/* empty css
|
|
3
|
+
/* empty css */
|
|
4
4
|
//#region components/KDialog.vue
|
|
5
|
-
var n = /* @__PURE__ */ e(t, [["__scopeId", "data-v-
|
|
5
|
+
var n = /* @__PURE__ */ e(t, [["__scopeId", "data-v-f650c062"]]);
|
|
6
6
|
//#endregion
|
|
7
7
|
export { n as default };
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import e from "./KButton.js";
|
|
2
|
-
import { Teleport as t, Transition as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, createVNode as c, defineComponent as l, normalizeClass as u,
|
|
3
|
-
import { X as
|
|
1
|
+
import e from "./KButton.vue.js";
|
|
2
|
+
import { Teleport as t, Transition as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, createVNode as c, defineComponent as l, normalizeClass as u, normalizeStyle as d, onMounted as f, onUnmounted as p, openBlock as m, renderSlot as h, toDisplayString as g, unref as _, watch as v, withCtx as y } from "vue";
|
|
3
|
+
import { X as b } from "lucide-vue-next";
|
|
4
4
|
//#region components/KDialog.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
var
|
|
5
|
+
var x = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "k-dialog-stack"
|
|
8
|
-
},
|
|
8
|
+
}, S = { class: "k-dialog__center" }, C = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "k-dialog__header"
|
|
11
|
-
},
|
|
11
|
+
}, w = { class: "k-dialog__title-wrap" }, T = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "k-dialog__title"
|
|
14
|
-
},
|
|
14
|
+
}, E = {
|
|
15
15
|
key: 1,
|
|
16
16
|
class: "k-dialog__subtitle"
|
|
17
|
-
},
|
|
17
|
+
}, D = { class: "k-dialog__body" }, O = {
|
|
18
18
|
key: 1,
|
|
19
19
|
class: "k-dialog__footer"
|
|
20
|
-
},
|
|
20
|
+
}, k = /* @__PURE__ */ l({
|
|
21
21
|
__name: "KDialog",
|
|
22
22
|
props: {
|
|
23
23
|
open: { type: Boolean },
|
|
@@ -46,7 +46,8 @@ var b = {
|
|
|
46
46
|
hideCancel: {
|
|
47
47
|
type: Boolean,
|
|
48
48
|
default: !1
|
|
49
|
-
}
|
|
49
|
+
},
|
|
50
|
+
width: {}
|
|
50
51
|
},
|
|
51
52
|
emits: [
|
|
52
53
|
"update:open",
|
|
@@ -54,64 +55,70 @@ var b = {
|
|
|
54
55
|
"confirm",
|
|
55
56
|
"cancel"
|
|
56
57
|
],
|
|
57
|
-
setup(l, { emit:
|
|
58
|
-
let
|
|
59
|
-
function j() {
|
|
60
|
-
A("update:open", !1), A("close");
|
|
61
|
-
}
|
|
58
|
+
setup(l, { emit: k }) {
|
|
59
|
+
let A = l, j = k;
|
|
62
60
|
function M() {
|
|
63
|
-
|
|
61
|
+
j("update:open", !1), j("close");
|
|
64
62
|
}
|
|
65
63
|
function N() {
|
|
66
|
-
A(
|
|
64
|
+
A.maskClosable && M();
|
|
67
65
|
}
|
|
68
66
|
function P() {
|
|
69
|
-
|
|
67
|
+
j("confirm");
|
|
68
|
+
}
|
|
69
|
+
function F() {
|
|
70
|
+
j("cancel"), M();
|
|
70
71
|
}
|
|
71
|
-
function
|
|
72
|
-
e.key === "Escape" &&
|
|
72
|
+
function I(e) {
|
|
73
|
+
e.key === "Escape" && A.open && A.closable && M();
|
|
73
74
|
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}
|
|
75
|
+
function L(e) {
|
|
76
|
+
if (!(e == null || e === "")) return typeof e == "number" ? `${e}px` : e;
|
|
77
|
+
}
|
|
78
|
+
return f(() => window.addEventListener("keydown", I)), p(() => {
|
|
79
|
+
window.removeEventListener("keydown", I), A.open && (document.body.style.overflow = "");
|
|
80
|
+
}), v(() => A.open, (e) => {
|
|
77
81
|
document.body.style.overflow = e ? "hidden" : "";
|
|
78
|
-
}), (
|
|
82
|
+
}), (f, p) => (m(), r(t, { to: "body" }, [c(n, {
|
|
79
83
|
name: "k-dialog",
|
|
80
84
|
duration: {
|
|
81
85
|
enter: 280,
|
|
82
86
|
leave: 200
|
|
83
87
|
}
|
|
84
88
|
}, {
|
|
85
|
-
default:
|
|
89
|
+
default: y(() => [l.open ? (m(), a("div", x, [o("div", {
|
|
86
90
|
class: "k-dialog__overlay",
|
|
87
|
-
onClick:
|
|
88
|
-
}), o("div",
|
|
89
|
-
|
|
91
|
+
onClick: N
|
|
92
|
+
}), o("div", S, [o("div", {
|
|
93
|
+
class: u(["k-dialog", `k-dialog--${l.size}`]),
|
|
94
|
+
style: d({ maxWidth: L(l.width) })
|
|
95
|
+
}, [
|
|
96
|
+
l.title || f.$slots.title || l.closable ? (m(), a("header", C, [o("div", w, [l.title || f.$slots.title ? (m(), a("h2", T, [h(f.$slots, "title", {}, () => [s(g(l.title), 1)], !0)])) : i("", !0), l.subtitle ? (m(), a("p", E, g(l.subtitle), 1)) : i("", !0)]), l.closable ? (m(), a("button", {
|
|
90
97
|
key: 0,
|
|
91
98
|
type: "button",
|
|
92
99
|
class: "k-dialog__close",
|
|
93
|
-
onClick:
|
|
94
|
-
}, [c(
|
|
95
|
-
o("div",
|
|
96
|
-
|
|
100
|
+
onClick: M
|
|
101
|
+
}, [c(_(b), { size: 18 })])) : i("", !0)])) : i("", !0),
|
|
102
|
+
o("div", D, [h(f.$slots, "default", {}, void 0, !0)]),
|
|
103
|
+
f.$slots.footer || l.footer ? (m(), a("footer", O, [h(f.$slots, "footer", {}, () => [l.hideCancel ? i("", !0) : (m(), r(e, {
|
|
97
104
|
key: 0,
|
|
98
105
|
type: "secondary",
|
|
99
|
-
onClick:
|
|
106
|
+
onClick: F
|
|
100
107
|
}, {
|
|
101
|
-
default:
|
|
108
|
+
default: y(() => [s(g(l.cancelText), 1)]),
|
|
102
109
|
_: 1
|
|
103
110
|
})), c(e, {
|
|
104
111
|
type: l.confirmType,
|
|
105
112
|
loading: l.confirmLoading,
|
|
106
|
-
onClick:
|
|
113
|
+
onClick: P
|
|
107
114
|
}, {
|
|
108
|
-
default:
|
|
115
|
+
default: y(() => [s(g(l.confirmText), 1)]),
|
|
109
116
|
_: 1
|
|
110
117
|
}, 8, ["type", "loading"])], !0)])) : i("", !0)
|
|
111
|
-
],
|
|
118
|
+
], 6)])])) : i("", !0)]),
|
|
112
119
|
_: 3
|
|
113
120
|
})]));
|
|
114
121
|
}
|
|
115
122
|
});
|
|
116
123
|
//#endregion
|
|
117
|
-
export {
|
|
124
|
+
export { k as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import e from "../_virtual/_plugin-vue_export-helper.js";
|
|
2
2
|
import t from "./KDiff.vue_vue_type_script_setup_true_lang.js";
|
|
3
|
-
/* empty css
|
|
3
|
+
/* empty css */
|
|
4
4
|
//#region components/KDiff.vue
|
|
5
5
|
var n = /* @__PURE__ */ e(t, [["__scopeId", "data-v-0e22db16"]]);
|
|
6
6
|
//#endregion
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
vertical?: boolean;
|
|
3
|
+
titlePlacement?: 'left' | 'center' | 'right';
|
|
4
|
+
dashed?: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare var __VLS_1: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
default?: (props: typeof __VLS_1) => 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<{}>, {
|
|
11
|
+
vertical: boolean;
|
|
12
|
+
titlePlacement: "left" | "center" | "right";
|
|
13
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import e from "../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
+
import t from "./KDivider.vue_vue_type_script_setup_true_lang.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
//#region components/KDivider.vue
|
|
5
|
+
var n = /* @__PURE__ */ e(t, [["__scopeId", "data-v-d851e413"]]);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { n as default };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { createCommentVNode as e, createElementBlock as t, defineComponent as n, normalizeClass as r, openBlock as i, renderSlot as a, unref as o, useSlots as s } from "vue";
|
|
2
|
+
//#region components/KDivider.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
var c = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "k-divider__title"
|
|
6
|
+
}, l = /* @__PURE__ */ n({
|
|
7
|
+
__name: "KDivider",
|
|
8
|
+
props: {
|
|
9
|
+
vertical: {
|
|
10
|
+
type: Boolean,
|
|
11
|
+
default: !1
|
|
12
|
+
},
|
|
13
|
+
titlePlacement: { default: "center" },
|
|
14
|
+
dashed: { type: Boolean }
|
|
15
|
+
},
|
|
16
|
+
setup(n) {
|
|
17
|
+
let l = s();
|
|
18
|
+
return (s, u) => n.vertical ? (i(), t("div", {
|
|
19
|
+
key: 0,
|
|
20
|
+
class: r(["k-divider k-divider--vertical", { "k-divider--dashed": n.dashed }]),
|
|
21
|
+
role: "separator"
|
|
22
|
+
}, null, 2)) : (i(), t("div", {
|
|
23
|
+
key: 1,
|
|
24
|
+
class: r(["k-divider k-divider--horizontal", [`k-divider--${n.titlePlacement}`, {
|
|
25
|
+
"k-divider--dashed": n.dashed,
|
|
26
|
+
"k-divider--with-text": !!o(l).default
|
|
27
|
+
}]]),
|
|
28
|
+
role: "separator"
|
|
29
|
+
}, [o(l).default ? (i(), t("span", c, [a(s.$slots, "default", {}, void 0, !0)])) : e("", !0)], 2));
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
//#endregion
|
|
33
|
+
export { l as default };
|