@zc-ui/components 0.0.1
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/dist/index.cjs +1 -0
- package/dist/index.css +1 -0
- package/dist/index.mjs +9299 -0
- package/dist/index.umd.js +2 -0
- package/dist/types/affix/affix.d.ts +37 -0
- package/dist/types/affix/affix.d.ts.map +1 -0
- package/dist/types/alert/alert.d.ts +47 -0
- package/dist/types/alert/alert.d.ts.map +1 -0
- package/dist/types/alert/types.d.ts +31 -0
- package/dist/types/alert/types.d.ts.map +1 -0
- package/dist/types/anchor/anchor-link.d.ts +27 -0
- package/dist/types/anchor/anchor-link.d.ts.map +1 -0
- package/dist/types/anchor/anchor.d.ts +45 -0
- package/dist/types/anchor/anchor.d.ts.map +1 -0
- package/dist/types/auto-complete/auto-complete.d.ts +66 -0
- package/dist/types/auto-complete/auto-complete.d.ts.map +1 -0
- package/dist/types/auto-complete/types.d.ts +10 -0
- package/dist/types/auto-complete/types.d.ts.map +1 -0
- package/dist/types/avatar/avatar.d.ts +34 -0
- package/dist/types/avatar/avatar.d.ts.map +1 -0
- package/dist/types/backtop/backtop.d.ts +48 -0
- package/dist/types/backtop/backtop.d.ts.map +1 -0
- package/dist/types/badge/badge.d.ts +32 -0
- package/dist/types/badge/badge.d.ts.map +1 -0
- package/dist/types/breadcrumb/breadcrumb-item.d.ts +26 -0
- package/dist/types/breadcrumb/breadcrumb-item.d.ts.map +1 -0
- package/dist/types/breadcrumb/breadcrumb.d.ts +25 -0
- package/dist/types/breadcrumb/breadcrumb.d.ts.map +1 -0
- package/dist/types/button/button.d.ts +40 -0
- package/dist/types/button/button.d.ts.map +1 -0
- package/dist/types/card/card.d.ts +37 -0
- package/dist/types/card/card.d.ts.map +1 -0
- package/dist/types/carousel/carousel-item.d.ts +18 -0
- package/dist/types/carousel/carousel-item.d.ts.map +1 -0
- package/dist/types/carousel/carousel.d.ts +44 -0
- package/dist/types/carousel/carousel.d.ts.map +1 -0
- package/dist/types/carousel/types.d.ts +13 -0
- package/dist/types/carousel/types.d.ts.map +1 -0
- package/dist/types/cascader/cascader.d.ts +41 -0
- package/dist/types/cascader/cascader.d.ts.map +1 -0
- package/dist/types/cascader/types.d.ts +28 -0
- package/dist/types/cascader/types.d.ts.map +1 -0
- package/dist/types/checkbox/checkbox-group.d.ts +34 -0
- package/dist/types/checkbox/checkbox-group.d.ts.map +1 -0
- package/dist/types/checkbox/checkbox.d.ts +32 -0
- package/dist/types/checkbox/checkbox.d.ts.map +1 -0
- package/dist/types/col/col.d.ts +51 -0
- package/dist/types/col/col.d.ts.map +1 -0
- package/dist/types/collapse/collapse-item.d.ts +33 -0
- package/dist/types/collapse/collapse-item.d.ts.map +1 -0
- package/dist/types/collapse/collapse.d.ts +32 -0
- package/dist/types/collapse/collapse.d.ts.map +1 -0
- package/dist/types/color-picker/color-picker.d.ts +29 -0
- package/dist/types/color-picker/color-picker.d.ts.map +1 -0
- package/dist/types/color-picker/types.d.ts +23 -0
- package/dist/types/color-picker/types.d.ts.map +1 -0
- package/dist/types/container/aside.d.ts +24 -0
- package/dist/types/container/aside.d.ts.map +1 -0
- package/dist/types/container/container.d.ts +29 -0
- package/dist/types/container/container.d.ts.map +1 -0
- package/dist/types/container/footer.d.ts +24 -0
- package/dist/types/container/footer.d.ts.map +1 -0
- package/dist/types/container/header.d.ts +24 -0
- package/dist/types/container/header.d.ts.map +1 -0
- package/dist/types/container/main.d.ts +21 -0
- package/dist/types/container/main.d.ts.map +1 -0
- package/dist/types/date-picker/date-picker.d.ts +45 -0
- package/dist/types/date-picker/date-picker.d.ts.map +1 -0
- package/dist/types/descriptions/descriptions-item.d.ts +18 -0
- package/dist/types/descriptions/descriptions-item.d.ts.map +1 -0
- package/dist/types/descriptions/descriptions.d.ts +41 -0
- package/dist/types/descriptions/descriptions.d.ts.map +1 -0
- package/dist/types/descriptions/types.d.ts +25 -0
- package/dist/types/descriptions/types.d.ts.map +1 -0
- package/dist/types/dialog/dialog.d.ts +71 -0
- package/dist/types/dialog/dialog.d.ts.map +1 -0
- package/dist/types/dialog/types.d.ts +42 -0
- package/dist/types/dialog/types.d.ts.map +1 -0
- package/dist/types/divider/divider.d.ts +33 -0
- package/dist/types/divider/divider.d.ts.map +1 -0
- package/dist/types/drawer/drawer.d.ts +66 -0
- package/dist/types/drawer/drawer.d.ts.map +1 -0
- package/dist/types/drawer/types.d.ts +41 -0
- package/dist/types/drawer/types.d.ts.map +1 -0
- package/dist/types/dropdown/dropdown-item.d.ts +32 -0
- package/dist/types/dropdown/dropdown-item.d.ts.map +1 -0
- package/dist/types/dropdown/dropdown-menu.d.ts +15 -0
- package/dist/types/dropdown/dropdown-menu.d.ts.map +1 -0
- package/dist/types/dropdown/dropdown.d.ts +59 -0
- package/dist/types/dropdown/dropdown.d.ts.map +1 -0
- package/dist/types/dropdown/types.d.ts +9 -0
- package/dist/types/dropdown/types.d.ts.map +1 -0
- package/dist/types/empty/empty.d.ts +28 -0
- package/dist/types/empty/empty.d.ts.map +1 -0
- package/dist/types/form/form-item.d.ts +44 -0
- package/dist/types/form/form-item.d.ts.map +1 -0
- package/dist/types/form/form.d.ts +47 -0
- package/dist/types/form/form.d.ts.map +1 -0
- package/dist/types/form/types.d.ts +63 -0
- package/dist/types/form/types.d.ts.map +1 -0
- package/dist/types/form/validate.d.ts +14 -0
- package/dist/types/form/validate.d.ts.map +1 -0
- package/dist/types/grid/grid-item.d.ts +35 -0
- package/dist/types/grid/grid-item.d.ts.map +1 -0
- package/dist/types/grid/grid.d.ts +65 -0
- package/dist/types/grid/grid.d.ts.map +1 -0
- package/dist/types/icon/icon.d.ts +37 -0
- package/dist/types/icon/icon.d.ts.map +1 -0
- package/dist/types/image/image-preview.d.ts +22 -0
- package/dist/types/image/image-preview.d.ts.map +1 -0
- package/dist/types/image/image.d.ts +55 -0
- package/dist/types/image/image.d.ts.map +1 -0
- package/dist/types/index.d.ts +6464 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/input/input.d.ts +75 -0
- package/dist/types/input/input.d.ts.map +1 -0
- package/dist/types/input-number/input-number.d.ts +54 -0
- package/dist/types/input-number/input-number.d.ts.map +1 -0
- package/dist/types/input-number/types.d.ts +20 -0
- package/dist/types/input-number/types.d.ts.map +1 -0
- package/dist/types/list/list-item.d.ts +40 -0
- package/dist/types/list/list-item.d.ts.map +1 -0
- package/dist/types/list/list.d.ts +44 -0
- package/dist/types/list/list.d.ts.map +1 -0
- package/dist/types/list/types.d.ts +10 -0
- package/dist/types/list/types.d.ts.map +1 -0
- package/dist/types/loading/loading.d.ts +26 -0
- package/dist/types/loading/loading.d.ts.map +1 -0
- package/dist/types/mention/mention.d.ts +37 -0
- package/dist/types/mention/mention.d.ts.map +1 -0
- package/dist/types/mention/types.d.ts +18 -0
- package/dist/types/mention/types.d.ts.map +1 -0
- package/dist/types/menu/menu-item.d.ts +24 -0
- package/dist/types/menu/menu-item.d.ts.map +1 -0
- package/dist/types/menu/menu.d.ts +48 -0
- package/dist/types/menu/menu.d.ts.map +1 -0
- package/dist/types/menu/submenu.d.ts +36 -0
- package/dist/types/menu/submenu.d.ts.map +1 -0
- package/dist/types/menu/types.d.ts +18 -0
- package/dist/types/menu/types.d.ts.map +1 -0
- package/dist/types/message/message.d.ts +34 -0
- package/dist/types/message/message.d.ts.map +1 -0
- package/dist/types/notification/notification.d.ts +26 -0
- package/dist/types/notification/notification.d.ts.map +1 -0
- package/dist/types/pagination/pagination.d.ts +38 -0
- package/dist/types/pagination/pagination.d.ts.map +1 -0
- package/dist/types/pagination/types.d.ts +29 -0
- package/dist/types/pagination/types.d.ts.map +1 -0
- package/dist/types/popconfirm/popconfirm.d.ts +76 -0
- package/dist/types/popconfirm/popconfirm.d.ts.map +1 -0
- package/dist/types/progress/progress.d.ts +54 -0
- package/dist/types/progress/progress.d.ts.map +1 -0
- package/dist/types/progress/types.d.ts +33 -0
- package/dist/types/progress/types.d.ts.map +1 -0
- package/dist/types/radio/radio-group.d.ts +39 -0
- package/dist/types/radio/radio-group.d.ts.map +1 -0
- package/dist/types/radio/radio.d.ts +30 -0
- package/dist/types/radio/radio.d.ts.map +1 -0
- package/dist/types/rate/rate.d.ts +48 -0
- package/dist/types/rate/rate.d.ts.map +1 -0
- package/dist/types/rate/types.d.ts +18 -0
- package/dist/types/rate/types.d.ts.map +1 -0
- package/dist/types/result/result.d.ts +39 -0
- package/dist/types/result/result.d.ts.map +1 -0
- package/dist/types/row/row.d.ts +55 -0
- package/dist/types/row/row.d.ts.map +1 -0
- package/dist/types/scrollbar/scrollbar.d.ts +34 -0
- package/dist/types/scrollbar/scrollbar.d.ts.map +1 -0
- package/dist/types/select/select.d.ts +63 -0
- package/dist/types/select/select.d.ts.map +1 -0
- package/dist/types/select/types.d.ts +9 -0
- package/dist/types/select/types.d.ts.map +1 -0
- package/dist/types/skeleton/skeleton.d.ts +42 -0
- package/dist/types/skeleton/skeleton.d.ts.map +1 -0
- package/dist/types/slider/slider.d.ts +41 -0
- package/dist/types/slider/slider.d.ts.map +1 -0
- package/dist/types/slider/types.d.ts +10 -0
- package/dist/types/slider/types.d.ts.map +1 -0
- package/dist/types/space/space.d.ts +52 -0
- package/dist/types/space/space.d.ts.map +1 -0
- package/dist/types/statistic/statistic.d.ts +52 -0
- package/dist/types/statistic/statistic.d.ts.map +1 -0
- package/dist/types/steps/step.d.ts +31 -0
- package/dist/types/steps/step.d.ts.map +1 -0
- package/dist/types/steps/steps.d.ts +30 -0
- package/dist/types/steps/steps.d.ts.map +1 -0
- package/dist/types/steps/types.d.ts +22 -0
- package/dist/types/steps/types.d.ts.map +1 -0
- package/dist/types/switch/switch.d.ts +55 -0
- package/dist/types/switch/switch.d.ts.map +1 -0
- package/dist/types/table/table.d.ts +71 -0
- package/dist/types/table/table.d.ts.map +1 -0
- package/dist/types/table/types.d.ts +52 -0
- package/dist/types/table/types.d.ts.map +1 -0
- package/dist/types/tabs/tab-pane.d.ts +33 -0
- package/dist/types/tabs/tab-pane.d.ts.map +1 -0
- package/dist/types/tabs/tabs.d.ts +51 -0
- package/dist/types/tabs/tabs.d.ts.map +1 -0
- package/dist/types/tabs/types.d.ts +44 -0
- package/dist/types/tabs/types.d.ts.map +1 -0
- package/dist/types/tag/tag.d.ts +38 -0
- package/dist/types/tag/tag.d.ts.map +1 -0
- package/dist/types/time-picker/time-picker.d.ts +38 -0
- package/dist/types/time-picker/time-picker.d.ts.map +1 -0
- package/dist/types/timeline/timeline-item.d.ts +37 -0
- package/dist/types/timeline/timeline-item.d.ts.map +1 -0
- package/dist/types/timeline/timeline.d.ts +20 -0
- package/dist/types/timeline/timeline.d.ts.map +1 -0
- package/dist/types/tooltip/tooltip.d.ts +57 -0
- package/dist/types/tooltip/tooltip.d.ts.map +1 -0
- package/dist/types/transfer/transfer.d.ts +31 -0
- package/dist/types/transfer/transfer.d.ts.map +1 -0
- package/dist/types/transfer/types.d.ts +21 -0
- package/dist/types/transfer/types.d.ts.map +1 -0
- package/dist/types/tree/tree-node.d.ts +20 -0
- package/dist/types/tree/tree-node.d.ts.map +1 -0
- package/dist/types/tree/tree.d.ts +101 -0
- package/dist/types/tree/tree.d.ts.map +1 -0
- package/dist/types/tree/types.d.ts +72 -0
- package/dist/types/tree/types.d.ts.map +1 -0
- package/dist/types/tree-select/tree-node.d.ts +65 -0
- package/dist/types/tree-select/tree-node.d.ts.map +1 -0
- package/dist/types/tree-select/tree-select.d.ts +37 -0
- package/dist/types/tree-select/tree-select.d.ts.map +1 -0
- package/dist/types/tree-select/types.d.ts +27 -0
- package/dist/types/tree-select/types.d.ts.map +1 -0
- package/dist/types/types.d.ts +24 -0
- package/dist/types/types.d.ts.map +1 -0
- package/dist/types/upload/types.d.ts +25 -0
- package/dist/types/upload/types.d.ts.map +1 -0
- package/dist/types/upload/upload.d.ts +81 -0
- package/dist/types/upload/upload.d.ts.map +1 -0
- package/dist/types/watermark/watermark.d.ts +57 -0
- package/dist/types/watermark/watermark.d.ts.map +1 -0
- package/package.json +60 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ZcTabs type definitions
|
|
3
|
+
*/
|
|
4
|
+
/** Tab visual style */
|
|
5
|
+
export type TabsType = '' | 'card' | 'border-card';
|
|
6
|
+
/** Tab header position */
|
|
7
|
+
export type TabsPosition = 'top' | 'right' | 'bottom' | 'left';
|
|
8
|
+
/** Tab pane data */
|
|
9
|
+
export interface PaneData {
|
|
10
|
+
uid: number;
|
|
11
|
+
name: string | number;
|
|
12
|
+
title?: string;
|
|
13
|
+
lazy?: boolean;
|
|
14
|
+
closable?: boolean;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
}
|
|
17
|
+
/** Before-leave hook */
|
|
18
|
+
export type TabsBeforeLeave = (activeName: string | number, oldActiveName: string | number) => boolean | Promise<boolean>;
|
|
19
|
+
/** Tabs props */
|
|
20
|
+
export interface TabsProps {
|
|
21
|
+
/** Currently active tab (v-model) */
|
|
22
|
+
modelValue?: string | number;
|
|
23
|
+
/** Tab style */
|
|
24
|
+
type?: TabsType;
|
|
25
|
+
/** Tab header position */
|
|
26
|
+
position?: TabsPosition;
|
|
27
|
+
/** Whether tabs are closable */
|
|
28
|
+
closable?: boolean;
|
|
29
|
+
/** Whether tabs can be added */
|
|
30
|
+
addable?: boolean;
|
|
31
|
+
/** Whether tabs are editable (add + close) */
|
|
32
|
+
editable?: boolean;
|
|
33
|
+
/** Guard function before leaving a tab */
|
|
34
|
+
beforeLeave?: TabsBeforeLeave;
|
|
35
|
+
}
|
|
36
|
+
/** Tabs emit events */
|
|
37
|
+
export interface TabsEmits {
|
|
38
|
+
(e: 'update:modelValue', name: string | number): void;
|
|
39
|
+
(e: 'tab-click', name: string | number, event: MouseEvent): void;
|
|
40
|
+
(e: 'tab-remove', name: string | number): void;
|
|
41
|
+
(e: 'tab-add'): void;
|
|
42
|
+
(e: 'edit', name: string | number | undefined, action: 'remove' | 'add'): void;
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=types.d.ts.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E,MAAM,GAAG,MAAM,GAAG,IAAI,CAAA;IACrD,CAAC,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,EAAE,UAAU,GAAG,IAAI,CAAA;IAChE,CAAC,CAAC,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAA;IAC9C,CAAC,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;IACpB,CAAC,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,EAAE,MAAM,EAAE,QAAQ,GAAG,KAAK,GAAG,IAAI,CAAA;CAC/E"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
export type TagType = 'primary' | 'success' | 'warning' | 'danger' | 'info';
|
|
3
|
+
export type TagEffect = 'dark' | 'light' | 'plain';
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
type?: TagType;
|
|
6
|
+
effect?: TagEffect;
|
|
7
|
+
closable?: boolean;
|
|
8
|
+
round?: boolean;
|
|
9
|
+
hit?: boolean;
|
|
10
|
+
disableTransitions?: boolean;
|
|
11
|
+
};
|
|
12
|
+
declare var __VLS_1: {};
|
|
13
|
+
type __VLS_Slots = {} & {
|
|
14
|
+
default?: (props: typeof __VLS_1) => any;
|
|
15
|
+
};
|
|
16
|
+
declare const __VLS_base: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
17
|
+
click: (event: MouseEvent) => any;
|
|
18
|
+
close: (event: MouseEvent | KeyboardEvent) => any;
|
|
19
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
20
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
21
|
+
onClose?: ((event: MouseEvent | KeyboardEvent) => any) | undefined;
|
|
22
|
+
}>, {
|
|
23
|
+
type: TagType;
|
|
24
|
+
round: boolean;
|
|
25
|
+
effect: TagEffect;
|
|
26
|
+
closable: boolean;
|
|
27
|
+
hit: boolean;
|
|
28
|
+
disableTransitions: boolean;
|
|
29
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
30
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
31
|
+
declare const _default: typeof __VLS_export;
|
|
32
|
+
export default _default;
|
|
33
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
34
|
+
new (): {
|
|
35
|
+
$slots: S;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=tag.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tag.vue.d.ts","sourceRoot":"","sources":["../../../src/tag/tag.vue"],"names":[],"mappings":";AAuOA,MAAM,MAAM,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAA;AAC3E,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,CAAA;AAElD,KAAK,WAAW,GAAG;IACf,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,GAAG,CAAC,EAAE,OAAO,CAAA;IACb,kBAAkB,CAAC,EAAE,OAAO,CAAA;CAC7B,CAAC;AAoJJ,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAK/C,QAAA,MAAM,UAAU;;;;;;;UAjKL,OAAO;WAGN,OAAO;YAFN,SAAS;cACP,OAAO;SAEZ,OAAO;wBACQ,OAAO;6EAgK9B,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
modelValue?: string;
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
readonly?: boolean;
|
|
7
|
+
clearable?: boolean;
|
|
8
|
+
format?: string;
|
|
9
|
+
size?: 'large' | 'medium' | 'small';
|
|
10
|
+
disabledHours?: () => number[];
|
|
11
|
+
disabledMinutes?: (hour: number) => number[];
|
|
12
|
+
disabledSeconds?: (hour: number, minute: number) => number[];
|
|
13
|
+
};
|
|
14
|
+
declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
15
|
+
"update:modelValue": (value: string) => any;
|
|
16
|
+
change: (value: string) => any;
|
|
17
|
+
focus: (event: FocusEvent) => any;
|
|
18
|
+
blur: (event: FocusEvent) => any;
|
|
19
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
20
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
21
|
+
onChange?: ((value: string) => any) | undefined;
|
|
22
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
23
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
24
|
+
}>, {
|
|
25
|
+
size: "large" | "medium" | "small";
|
|
26
|
+
disabled: boolean;
|
|
27
|
+
modelValue: string;
|
|
28
|
+
placeholder: string;
|
|
29
|
+
readonly: boolean;
|
|
30
|
+
clearable: boolean;
|
|
31
|
+
format: string;
|
|
32
|
+
disabledHours: () => number[];
|
|
33
|
+
disabledMinutes: (hour: number) => number[];
|
|
34
|
+
disabledSeconds: (hour: number, minute: number) => number[];
|
|
35
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
36
|
+
declare const _default: typeof __VLS_export;
|
|
37
|
+
export default _default;
|
|
38
|
+
//# sourceMappingURL=time-picker.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time-picker.vue.d.ts","sourceRoot":"","sources":["../../../src/time-picker/time-picker.vue"],"names":[],"mappings":";AA2eA,KAAK,WAAW,GAAG;IACf,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;IACnC,aAAa,CAAC,EAAE,MAAM,MAAM,EAAE,CAAA;IAC9B,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,EAAE,CAAA;IAC5C,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,MAAM,EAAE,CAAA;CAC7D,CAAC;AAqaJ,QAAA,MAAM,YAAY;;;;;;;;;;;UAzaP,OAAO,GAAG,QAAQ,GAAG,OAAO;cAJxB,OAAO;gBAFL,MAAM;iBACL,MAAM;cAET,OAAO;eACN,OAAO;YACV,MAAM;mBAEC,MAAM,MAAM,EAAE;qBACZ,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,EAAE;qBAC1B,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,MAAM,EAAE;6EA0a9D,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
export type TimelineItemType = 'primary' | 'success' | 'warning' | 'danger' | 'info';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
timestamp?: string;
|
|
5
|
+
hideTimestamp?: boolean;
|
|
6
|
+
placement?: 'top' | 'bottom';
|
|
7
|
+
type?: TimelineItemType;
|
|
8
|
+
color?: string;
|
|
9
|
+
size?: 'normal' | 'large';
|
|
10
|
+
icon?: string;
|
|
11
|
+
hollow?: boolean;
|
|
12
|
+
};
|
|
13
|
+
declare var __VLS_1: {}, __VLS_3: {};
|
|
14
|
+
type __VLS_Slots = {} & {
|
|
15
|
+
dot?: (props: typeof __VLS_1) => any;
|
|
16
|
+
} & {
|
|
17
|
+
default?: (props: typeof __VLS_3) => any;
|
|
18
|
+
};
|
|
19
|
+
declare const __VLS_base: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
20
|
+
type: TimelineItemType;
|
|
21
|
+
size: "normal" | "large";
|
|
22
|
+
icon: string;
|
|
23
|
+
color: string;
|
|
24
|
+
timestamp: string;
|
|
25
|
+
hideTimestamp: boolean;
|
|
26
|
+
placement: "top" | "bottom";
|
|
27
|
+
hollow: boolean;
|
|
28
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
29
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
30
|
+
declare const _default: typeof __VLS_export;
|
|
31
|
+
export default _default;
|
|
32
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
33
|
+
new (): {
|
|
34
|
+
$slots: S;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
//# sourceM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C;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
reverse?: boolean;
|
|
4
|
+
};
|
|
5
|
+
declare var __VLS_1: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_1) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
10
|
+
reverse: boolean;
|
|
11
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=timeline.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeline.vue.d.ts","sourceRoot":"","sources":["../../../src/timeline/timeline.vue"],"names":[],"mappings":";AAyLA,KAAK,WAAW,GAAG;IACf,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;AA8EJ,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAK/C,QAAA,MAAM,UAAU;aAtFF,OAAO;6EAyFnB,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
export type TooltipPlacement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end';
|
|
3
|
+
export type TooltipTrigger = 'hover' | 'click' | 'focus';
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
/** Tooltip content */
|
|
6
|
+
content?: string;
|
|
7
|
+
/** Visibility (v-model) */
|
|
8
|
+
visible?: boolean;
|
|
9
|
+
/** Placement relative to reference element */
|
|
10
|
+
placement?: TooltipPlacement;
|
|
11
|
+
/** Trigger events */
|
|
12
|
+
triggers?: TooltipTrigger[];
|
|
13
|
+
/** Show delay in ms */
|
|
14
|
+
showDelay?: number;
|
|
15
|
+
/** Hide delay in ms */
|
|
16
|
+
hideDelay?: number;
|
|
17
|
+
/** Disabled */
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
/** Show arrow */
|
|
20
|
+
showArrow?: boolean;
|
|
21
|
+
/** Custom class */
|
|
22
|
+
popperClass?: string;
|
|
23
|
+
};
|
|
24
|
+
declare var __VLS_1: {}, __VLS_15: {};
|
|
25
|
+
type __VLS_Slots = {} & {
|
|
26
|
+
default?: (props: typeof __VLS_1) => any;
|
|
27
|
+
} & {
|
|
28
|
+
content?: (props: typeof __VLS_15) => any;
|
|
29
|
+
};
|
|
30
|
+
declare const __VLS_base: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
31
|
+
"update:visible": (val: boolean) => any;
|
|
32
|
+
show: () => any;
|
|
33
|
+
hide: () => any;
|
|
34
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
35
|
+
"onUpdate:visible"?: ((val: boolean) => any) | undefined;
|
|
36
|
+
onShow?: (() => any) | undefined;
|
|
37
|
+
onHide?: (() => any) | undefined;
|
|
38
|
+
}>, {
|
|
39
|
+
disabled: boolean;
|
|
40
|
+
visible: boolean;
|
|
41
|
+
content: string;
|
|
42
|
+
placement: TooltipPlacement;
|
|
43
|
+
triggers: TooltipTrigger[];
|
|
44
|
+
showDelay: number;
|
|
45
|
+
hideDelay: number;
|
|
46
|
+
showArrow: boolean;
|
|
47
|
+
popperClass: string;
|
|
48
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
49
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
50
|
+
declare const _default: typeof __VLS_export;
|
|
51
|
+
export default _default;
|
|
52
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
53
|
+
new (): {
|
|
54
|
+
$slots: S;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
//# sourceMappingURL=tooltip.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tooltip.vue.d.ts","sourceRoot":"","sources":["../../../src/tooltip/tooltip.vue"],"names":[],"mappings":";AAkYA,MAAM,MAAM,gBAAgB,GACxB,KAAK,GACL,WAAW,GACX,SAAS,GACT,QAAQ,GACR,cAAc,GACd,YAAY,GACZ,MAAM,GACN,YAAY,GACZ,UAAU,GACV,OAAO,GACP,aAAa,GACb,WAAW,CAAA;AAEf,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,CAAA;AAExD,KAAK,WAAW,GAAG;IACf,sBAAsB;IACtB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,2BAA2B;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,8CAA8C;IAC9C,SAAS,CAAC,EAAE,gBAAgB,CAAA;IAC5B,qBAAqB;IACrB,QAAQ,CAAC,EAAE,cAAc,EAAE,CAAA;IAC3B,uBAAuB;IACvB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,uBAAuB;IACvB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,eAAe;IACf,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,iBAAiB;IACjB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,mBAAmB;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAC;AAyUJ,QAAA,IAAI,OAAO,IAAU,EAAE,QAAQ,IAAY,CAAE;AAC7C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAQhD,QAAA,MAAM,UAAU;;;;;;;;;cAzVD,OAAO;aAVR,OAAO;aAFP,MAAM;eAIJ,gBAAgB;cAEjB,cAAc,EAAE;eAEf,MAAM;eAEN,MAAM;eAIN,OAAO;iBAEL,MAAM;6EAyVtB,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { TransferOption } from './types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
modelValue?: (string | number)[];
|
|
5
|
+
data?: TransferOption[];
|
|
6
|
+
titles?: string[];
|
|
7
|
+
filterable?: boolean;
|
|
8
|
+
filterPlaceholder?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
12
|
+
"update:modelValue": (value: (string | number)[]) => any;
|
|
13
|
+
change: (value: (string | number)[]) => any;
|
|
14
|
+
"left-check-change": (checked: (string | number)[]) => any;
|
|
15
|
+
"right-check-change": (checked: (string | number)[]) => any;
|
|
16
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
17
|
+
"onUpdate:modelValue"?: ((value: (string | number)[]) => any) | undefined;
|
|
18
|
+
onChange?: ((value: (string | number)[]) => any) | undefined;
|
|
19
|
+
"onLeft-check-change"?: ((checked: (string | number)[]) => any) | undefined;
|
|
20
|
+
"onRight-check-change"?: ((checked: (string | number)[]) => any) | undefined;
|
|
21
|
+
}>, {
|
|
22
|
+
disabled: boolean;
|
|
23
|
+
data: TransferOption[];
|
|
24
|
+
modelValue: (string | number)[];
|
|
25
|
+
filterable: boolean;
|
|
26
|
+
titles: string[];
|
|
27
|
+
filterPlaceholder: string;
|
|
28
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
29
|
+
declare const _default: typeof __VLS_export;
|
|
30
|
+
export default _default;
|
|
31
|
+
//# sourceMappingURL=transfer.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transfer.vue.d.ts","sourceRoot":"","sources":["../../../src/transfer/transfer.vue"],"names":[],"mappings":";AA8jBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAI7C,KAAK,WAAW,GAAG;IACf,UAAU,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAA;IAChC,IAAI,CAAC,EAAE,cAAc,EAAE,CAAA;IACvB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;IACjB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC;AAihBJ,QAAA,MAAM,YAAY;;;;;;;;;;;cAlhBH,OAAO;UAJX,cAAc,EAAE;gBADV,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE;gBAGnB,OAAO;YADX,MAAM,EAAE;uBAEG,MAAM;6EAuhB5B,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface TransferOption {
|
|
2
|
+
key: string | number;
|
|
3
|
+
label: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
[key: string]: unknown;
|
|
6
|
+
}
|
|
7
|
+
export type TransferDataItem = TransferOption;
|
|
8
|
+
export interface TransferProps {
|
|
9
|
+
modelValue?: (string | number)[];
|
|
10
|
+
data?: TransferOption[];
|
|
11
|
+
titles?: string[];
|
|
12
|
+
filterable?: boolean;
|
|
13
|
+
filterPlaceholder?: string;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
props?: {
|
|
16
|
+
key?: string;
|
|
17
|
+
label?: string;
|
|
18
|
+
disabled?: string;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/transfer/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CACvB;AAED,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAA;AAE7C,MAAM,WAAW,aAAa;IAC5B,UAAU,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAA;IAChC,IAAI,CAAC,EAAE,cAAc,EAAE,CAAA;IACvB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;IACjB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE;QACN,GAAG,CAAC,EAAE,MAAM,CAAA;QACZ,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,QAAQ,CAAC,EAAE,MAAM,CAAA;KAClB,CAAA;CACF"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { TreeNodeData } from './types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
nodeData: TreeNodeData;
|
|
5
|
+
level: number;
|
|
6
|
+
};
|
|
7
|
+
declare var __VLS_1: {};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
default?: (props: typeof __VLS_1) => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_base: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=tree-node.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tree-node.vue.d.ts","sourceRoot":"","sources":["../../../src/tree/tree-node.vue"],"names":[],"mappings":";AA0MA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAK3C,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,YAAY,CAAA;IACtB,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;AAyNF,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAK/C,QAAA,MAAM,UAAU,kSAEd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { TreeNodeData, TreePropsConfig } from './types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
/** Tree data */
|
|
5
|
+
data?: TreeNodeData[];
|
|
6
|
+
/** Currently checked keys (v-model:checkedKeys) */
|
|
7
|
+
checkedKeys?: (string | number)[];
|
|
8
|
+
/** Currently expanded keys (v-model:expandedKeys) */
|
|
9
|
+
expandedKeys?: (string | number)[];
|
|
10
|
+
/** Currently selected node key (v-model) */
|
|
11
|
+
modelValue?: string | number;
|
|
12
|
+
/** Show checkbox */
|
|
13
|
+
showCheckbox?: boolean;
|
|
14
|
+
/** Whether to strictly check nodes (no parent-child relation) */
|
|
15
|
+
checkStrictly?: boolean;
|
|
16
|
+
/** Default expand all nodes */
|
|
17
|
+
defaultExpandAll?: boolean;
|
|
18
|
+
/** Default expanded keys */
|
|
19
|
+
defaultExpandedKeys?: (string | number)[];
|
|
20
|
+
/** Enable accordion mode */
|
|
21
|
+
accordion?: boolean;
|
|
22
|
+
/** Node click expands */
|
|
23
|
+
expandOnClickNode?: boolean;
|
|
24
|
+
/** Lazy load */
|
|
25
|
+
lazy?: boolean;
|
|
26
|
+
/** Load function for lazy mode */
|
|
27
|
+
load?: (node: TreeNodeData, callback: (data: TreeNodeData[]) => void) => void;
|
|
28
|
+
/** Filter keyword */
|
|
29
|
+
filterValue?: string;
|
|
30
|
+
/** Highlight current node */
|
|
31
|
+
highlightCurrent?: boolean;
|
|
32
|
+
/** Show connecting lines */
|
|
33
|
+
showLine?: boolean;
|
|
34
|
+
/** Indent per level (px) */
|
|
35
|
+
indent?: number;
|
|
36
|
+
/** Node key field mapping */
|
|
37
|
+
props?: TreePropsConfig;
|
|
38
|
+
/** Empty text */
|
|
39
|
+
emptyText?: string;
|
|
40
|
+
/** Whether node is draggable */
|
|
41
|
+
draggable?: boolean;
|
|
42
|
+
/** Custom node class */
|
|
43
|
+
nodeClass?: string | ((data: TreeNodeData) => string);
|
|
44
|
+
};
|
|
45
|
+
declare var __VLS_1: {};
|
|
46
|
+
type __VLS_Slots = {} & {
|
|
47
|
+
empty?: (props: typeof __VLS_1) => any;
|
|
48
|
+
};
|
|
49
|
+
declare const __VLS_base: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
50
|
+
"update:modelValue": (key: string | number | undefined) => any;
|
|
51
|
+
"current-change": (data: TreeNodeData | undefined, node: TreeNodeData | undefined) => any;
|
|
52
|
+
"update:checkedKeys": (keys: (string | number)[]) => any;
|
|
53
|
+
"update:expandedKeys": (keys: (string | number)[]) => any;
|
|
54
|
+
"node-click": (data: TreeNodeData, node: TreeNodeData, event: Event) => any;
|
|
55
|
+
"check-change": (data: TreeNodeData, checked: boolean) => any;
|
|
56
|
+
"node-expand": (data: TreeNodeData, node: TreeNodeData) => any;
|
|
57
|
+
"node-collapse": (data: TreeNodeData, node: TreeNodeData) => any;
|
|
58
|
+
"node-drag-end": (dragNode: TreeNodeData, dropNode: TreeNodeData | null, position: string, event: DragEvent) => any;
|
|
59
|
+
"node-drop": (dragNode: TreeNodeData, dropNode: TreeNodeData | null, position: string, event: DragEvent) => any;
|
|
60
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
61
|
+
"onUpdate:modelValue"?: ((key: string | number | undefined) => any) | undefined;
|
|
62
|
+
"onCurrent-change"?: ((data: TreeNodeData | undefined, node: TreeNodeData | undefined) => any) | undefined;
|
|
63
|
+
"onUpdate:checkedKeys"?: ((keys: (string | number)[]) => any) | undefined;
|
|
64
|
+
"onUpdate:expandedKeys"?: ((keys: (string | number)[]) => any) | undefined;
|
|
65
|
+
"onNode-click"?: ((data: TreeNodeData, node: TreeNodeData, event: Event) => any) | undefined;
|
|
66
|
+
"onCheck-change"?: ((data: TreeNodeData, checked: boolean) => any) | undefined;
|
|
67
|
+
"onNode-expand"?: ((data: TreeNodeData, node: TreeNodeData) => any) | undefined;
|
|
68
|
+
"onNode-collapse"?: ((data: TreeNodeData, node: TreeNodeData) => any) | undefined;
|
|
69
|
+
"onNode-drag-end"?: ((dragNode: TreeNodeData, dropNode: TreeNodeData | null, position: string, event: DragEvent) => any) | undefined;
|
|
70
|
+
"onNode-drop"?: ((dragNode: TreeNodeData, dropNode: TreeNodeData | null, position: string, event: DragEvent) => any) | undefined;
|
|
71
|
+
}>, {
|
|
72
|
+
data: TreeNodeData[];
|
|
73
|
+
props: TreePropsConfig;
|
|
74
|
+
modelValue: string | number;
|
|
75
|
+
emptyText: string;
|
|
76
|
+
load: (node: TreeNodeData, callback: (data: TreeNodeData[]) => void) => void;
|
|
77
|
+
lazy: boolean;
|
|
78
|
+
draggable: boolean;
|
|
79
|
+
checkedKeys: (string | number)[];
|
|
80
|
+
expandedKeys: (string | number)[];
|
|
81
|
+
showCheckbox: boolean;
|
|
82
|
+
checkStrictly: boolean;
|
|
83
|
+
defaultExpandAll: boolean;
|
|
84
|
+
defaultExpandedKeys: (string | number)[];
|
|
85
|
+
accordion: boolean;
|
|
86
|
+
expandOnClickNode: boolean;
|
|
87
|
+
filterValue: string;
|
|
88
|
+
highlightCurrent: boolean;
|
|
89
|
+
showLine: boolean;
|
|
90
|
+
indent: number;
|
|
91
|
+
nodeClass: string | ((data: TreeNodeData) => string);
|
|
92
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
93
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
94
|
+
declare const _default: typeof __VLS_export;
|
|
95
|
+
export default _default;
|
|
96
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
97
|
+
new (): {
|
|
98
|
+
$slots: S;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
//# sourceMappingURL=tree.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tree.vue.d.ts","sourceRoot":"","sources":["../../../src/tree/tree.vue"],"names":[],"mappings":";AAmqBA,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAK5D,KAAK,WAAW,GAAG;IACf,gBAAgB;IAChB,IAAI,CAAC,EAAE,YAAY,EAAE,CAAA;IACrB,mDAAmD;IACnD,WAAW,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAA;IACjC,qDAAqD;IACrD,YAAY,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAA;IAClC,4CAA4C;IAC5C,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC5B,oBAAoB;IACpB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,iEAAiE;IACjE,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,+BAA+B;IAC/B,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,4BAA4B;IAC5B,mBAAmB,CAAC,EAAE,CAAC,MA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CL,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE;kBAElB,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE;kBAInB,OAAO;mBAEN,OAAO;sBAEJ,OAAO;yBAEJ,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE;eAE7B,OAAO;uBAEC,OAAO;iBAMb,MAAM;sBAED,OAAO;cAEf,OAAO;YAET,MAAM;eAQH,MAAM,GAAG,CAAC,CAAC,IAAI,EAAE,YAAY,KAAK,MAAM,CAAC;6EAwiBvD,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { InjectionKey } from 'vue';
|
|
2
|
+
export interface TreeNodeData {
|
|
3
|
+
/** Unique identifier for the node */
|
|
4
|
+
id: string | number;
|
|
5
|
+
/** Display label */
|
|
6
|
+
label: string;
|
|
7
|
+
/** Child nodes */
|
|
8
|
+
children?: TreeNodeData[];
|
|
9
|
+
/** Whether the node is disabled */
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
/** Whether the node is a leaf (no children or no more to load) */
|
|
12
|
+
isLeaf?: boolean;
|
|
13
|
+
/** Extra data attached to the node */
|
|
14
|
+
data?: Record<string, unknown>;
|
|
15
|
+
/** Icon class or name */
|
|
16
|
+
icon?: string;
|
|
17
|
+
/** Internal loading state */
|
|
18
|
+
_loading?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export type TreePropsConfig = {
|
|
21
|
+
/** Key for node id (default: 'id') */
|
|
22
|
+
id?: string;
|
|
23
|
+
/** Key for node label (default: 'label') */
|
|
24
|
+
label?: string;
|
|
25
|
+
/** Key for node children (default: 'children') */
|
|
26
|
+
children?: string;
|
|
27
|
+
/** Key for node disabled (default: 'disabled') */
|
|
28
|
+
disabled?: string;
|
|
29
|
+
/** Key for node isLeaf (default: 'isLeaf') */
|
|
30
|
+
isLeaf?: string;
|
|
31
|
+
};
|
|
32
|
+
/** Context provided by ZcTree to child nodes */
|
|
33
|
+
export interface TreeContext {
|
|
34
|
+
isExpanded: (node: TreeNodeData) => boolean;
|
|
35
|
+
toggleExpand: (node: TreeNodeData) => void;
|
|
36
|
+
isChecked: (node: TreeNodeData) => boolean;
|
|
37
|
+
isHalfChecked: (node: TreeNodeData) => boolean;
|
|
38
|
+
handleCheck: (node: TreeNodeData) => void;
|
|
39
|
+
handleSelect: (node: TreeNodeData, event: Event) => void;
|
|
40
|
+
currentKey: string | number | undefined;
|
|
41
|
+
showCheckbox: boolean;
|
|
42
|
+
checkStrictly: boolean;
|
|
43
|
+
draggable: boolean;
|
|
44
|
+
showLine: boolean;
|
|
45
|
+
indent: number;
|
|
46
|
+
expandOnClickNode: boolean;
|
|
47
|
+
nodeClass?: string | ((data: TreeNodeData) => string);
|
|
48
|
+
lazy: boolean;
|
|
49
|
+
highlightCurrent: boolean;
|
|
50
|
+
getNodeKey: (node: TreeNodeData) => string | number;
|
|
51
|
+
getNodeLabel: (node: TreeNodeData) => string;
|
|
52
|
+
getNodeChildren: (node: TreeNodeData) => TreeNodeData[] | undefined;
|
|
53
|
+
isNodeDisabled: (node: TreeNodeData) => boolean;
|
|
54
|
+
isNodeLeaf: (node: TreeNodeData) => boolean;
|
|
55
|
+
highlightText: (text: string) => string;
|
|
56
|
+
getHighlightParts: (text: string) => Array<{
|
|
57
|
+
text: string;
|
|
58
|
+
highlight: boolean;
|
|
59
|
+
}>;
|
|
60
|
+
matchesFilter: (node: TreeNodeData) => boolean;
|
|
61
|
+
handleDragStart: (e: DragEvent, node: TreeNodeData) => void;
|
|
62
|
+
handleDragOver: (e: DragEvent, node: TreeNodeData) => void;
|
|
63
|
+
handleDragEnd: (e: DragEvent, node: TreeNodeData) => void;
|
|
64
|
+
dragState: {
|
|
65
|
+
dragging: boolean;
|
|
66
|
+
dragNode: TreeNodeData | null;
|
|
67
|
+
dropNode: TreeNodeData | null;
|
|
68
|
+
dropType: 'before' | 'inner' | 'after' | '';
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
export declare const TREE_KEY: InjectionKey<TreeContext>;
|
|
72
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/tree/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,KAAK,CAAA;AAEvC,MAAM,WAAW,YAAY;IAC3B,qCAAqC;IACrC,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;IACnB,oBAAoB;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,kBAAkB;IAClB,QAAQ,CAAC,EAAE,YAAY,EAAE,CAAA;IACzB,mCAAmC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,kEAAkE;IAClE,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,sCAAsC;IACtC,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC9B,yBAAyB;IACzB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,6BAA6B;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,sCAAsC;IACtC,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,4CAA4C;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,kDAAkD;IAClD,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,kDAAkD;IAClD,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,8CAA8C;IAC9C,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,gDAAgD;AAChD,MAAM,WAAW,W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AAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,OAAO,CAAA;KAAE,CAAC,CAAA;IAChF,aAAa,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,OAAO,CAAA;IAC9C,eAAe,EAAE,CAAC,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,YAAY,KAAK,IAAI,CAAA;IAC3D,cAAc,EAAE,CAAC,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,YAAY,KAAK,IAAI,CAAA;IAC1D,aAAa,EAAE,CAAC,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,YAAY,KAAK,IAAI,CAAA;IACzD,SAAS,EAAE;QACT,QAAQ,EAAE,OAAO,CAAA;QACjB,QAAQ,EAAE,YAAY,GAAG,IAAI,CAAA;QAC7B,QAAQ,EAAE,YAAY,GAAG,IAAI,CAAA;QAC7B,QAAQ,EAAE,QAAQ,GAAG,OAAO,GAAG,OAAO,GAAG,EAAE,CAAA;KAC5C,CAAA;CACF;AAED,eAAO,MAAM,QAAQ,EAAE,YAAY,CAAC,WAAW,CAAoB,CAAA"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { VNode, PropType, DefineComponent, ExtractPropTypes, RendererNode, RendererElement, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { TreeSelectOption } from './types';
|
|
3
|
+
declare const _default: typeof __VLS_export;
|
|
4
|
+
export default _default;
|
|
5
|
+
declare const __VLS_export: DefineComponent<ExtractPropTypes<{
|
|
6
|
+
node: {
|
|
7
|
+
type: PropType<TreeSelectOption>;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
level: {
|
|
11
|
+
type: NumberConstructor;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
expandedKeys: {
|
|
15
|
+
type: PropType<Set<string | number>>;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
selectedValue: {
|
|
19
|
+
type: PropType<string | number | undefined>;
|
|
20
|
+
default: undefined;
|
|
21
|
+
};
|
|
22
|
+
checkedValues: {
|
|
23
|
+
type: PropType<(string | number)[]>;
|
|
24
|
+
default: () => never[];
|
|
25
|
+
};
|
|
26
|
+
multiple: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
}>, () => VNode< RendererNode, RendererElement, {
|
|
31
|
+
[key: string]: any;
|
|
32
|
+
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("select" | "toggle-expand")[], "select" | "toggle-expand", PublicProps, Readonly< ExtractPropTypes<{
|
|
33
|
+
node: {
|
|
34
|
+
type: PropType<TreeSelectOption>;
|
|
35
|
+
required: true;
|
|
36
|
+
};
|
|
37
|
+
level: {
|
|
38
|
+
type: NumberConstructor;
|
|
39
|
+
required: true;
|
|
40
|
+
};
|
|
41
|
+
expandedKeys: {
|
|
42
|
+
type: PropType<Set<string | number>>;
|
|
43
|
+
required: true;
|
|
44
|
+
};
|
|
45
|
+
selectedValue: {
|
|
46
|
+
type: PropType<string | number | undefined>;
|
|
47
|
+
default: undefined;
|
|
48
|
+
};
|
|
49
|
+
checkedValues: {
|
|
50
|
+
type: PropType<(string | number)[]>;
|
|
51
|
+
default: () => never[];
|
|
52
|
+
};
|
|
53
|
+
multiple: {
|
|
54
|
+
type: BooleanConstructor;
|
|
55
|
+
default: boolean;
|
|
56
|
+
};
|
|
57
|
+
}>> & Readonly<{
|
|
58
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
59
|
+
"onToggle-expand"?: ((...args: any[]) => any) | undefined;
|
|
60
|
+
}>, {
|
|
61
|
+
multiple: boolean;
|
|
62
|
+
selectedValue: string | number | undefined;
|
|
63
|
+
checkedValues: (string | number)[];
|
|
64
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
65
|
+
//# sourceMappingURL=tree-node.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tree-node.vue.d.ts","sourceRoot":"","sources":["../../../src/tree-select/tree-node.vue"],"names":[],"mappings":"AA8JA,OAAO,EAAsB,KAAK,KAAK,EAAE,KAAK,QAAQ,EAAE,MAAM,KAAK,CAAA;AAEnE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;wBAsJ1B,OAAO,YAAY;AAAxC,wBAAyC;AAQzC,QAAA,MAAM,YAAY;;cAzJU,QAAQ,CAAC,gBAAgB,CAAC;;;;;;;;cAElB,QAAQ,CAAC,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;;;;cAElC,QAAQ,CAAC,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;;;;cAGjC,QAAQ,CAAC,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;;;;;;;;;;;cAPrC,QAAQ,CAAC,gBAAgB,CAAC;;;;;;;;cAElB,QAAQ,CAAC,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;;;;cAElC,QAAQ,CAAC,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;;;;cAGjC,QAAQ,CAAC,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;;;;;;;;;;;;;;4EAkJ5B,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { TreeSelectOption } from './types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
modelValue?: string | number | (string | number)[];
|
|
5
|
+
data?: TreeSelectOption[];
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
clearable?: boolean;
|
|
9
|
+
multiple?: boolean;
|
|
10
|
+
filterable?: boolean;
|
|
11
|
+
checkStrictly?: boolean;
|
|
12
|
+
size?: 'large' | 'medium' | 'small';
|
|
13
|
+
};
|
|
14
|
+
declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
15
|
+
"update:modelValue": (value: string | number | (string | number)[] | undefined) => any;
|
|
16
|
+
change: (value: string | number | (string | number)[] | undefined) => any;
|
|
17
|
+
"node-click": (option: TreeSelectOption) => any;
|
|
18
|
+
expand: () => any;
|
|
19
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
20
|
+
"onUpdate:modelValue"?: ((value: string | number | (string | number)[] | undefined) => any) | undefined;
|
|
21
|
+
onChange?: ((value: string | number | (string | number)[] | undefined) => any) | undefined;
|
|
22
|
+
"onNode-click"?: ((option: TreeSelectOption) => any) | undefined;
|
|
23
|
+
onExpand?: (() => any) | undefined;
|
|
24
|
+
}>, {
|
|
25
|
+
size: "large" | "medium" | "small";
|
|
26
|
+
disabled: boolean;
|
|
27
|
+
data: TreeSelectOption[];
|
|
28
|
+
modelValue: string | number | (string | number)[];
|
|
29
|
+
placeholder: string;
|
|
30
|
+
clearable: boolean;
|
|
31
|
+
multiple: boolean;
|
|
32
|
+
filterable: boolean;
|
|
33
|
+
checkStrictly: boolean;
|
|
34
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
35
|
+
declare const _default: typeof __VLS_export;
|
|
36
|
+
export default _default;
|
|
37
|
+
//# sourceMappingURL=tree-select.vue.d.ts.map
|