kui-vue 5.2.0 → 5.2.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/dist/index.js +2 -2
- package/es/affix/index.d.ts +49 -0
- package/es/alert/index.d.ts +61 -0
- package/es/anchor/anchor-link.d.ts +23 -0
- package/es/anchor/anchor.d.ts +67 -0
- package/es/anchor/index.d.ts +5 -0
- package/es/avatar/avatar-group.d.ts +39 -0
- package/es/avatar/avatar.d.ts +43 -0
- package/es/avatar/index.d.ts +5 -0
- package/es/back-top/index.d.ts +46 -0
- package/es/badge/index.d.ts +49 -0
- package/es/base/transition.d.ts +3 -0
- package/es/breadcrumb/breadcrumb-item.d.ts +15 -0
- package/es/breadcrumb/breadcrumb.d.ts +22 -0
- package/es/breadcrumb/index.d.ts +5 -0
- package/es/button/button-group.d.ts +21 -0
- package/es/button/button.d.ts +39 -0
- package/es/button/index.d.ts +5 -0
- package/es/card/index.d.ts +30 -0
- package/es/carousel/carousel-item.d.ts +2 -0
- package/es/carousel/carousel.d.ts +84 -0
- package/es/carousel/index.d.ts +4 -0
- package/es/checkbox/checkbox-group.d.ts +79 -0
- package/es/checkbox/checkbox.d.ts +105 -0
- package/es/checkbox/index.d.ts +6 -0
- package/es/collapse/collapse-panel.d.ts +15 -0
- package/es/collapse/collapse.d.ts +32 -0
- package/es/collapse/index.d.ts +6 -0
- package/es/color-picker/alpha.d.ts +15 -0
- package/es/color-picker/hue.d.ts +17 -0
- package/es/color-picker/index.d.ts +110 -0
- package/es/color-picker/mode.d.ts +25 -0
- package/es/color-picker/paint.d.ts +26 -0
- package/es/color-picker/presets.d.ts +20 -0
- package/es/components.d.ts +113 -0
- package/es/config/context.d.ts +10 -0
- package/es/config/index.d.ts +16 -0
- package/es/const/types.d.ts +19 -0
- package/es/const/var.d.ts +1 -0
- package/es/date-picker/index.d.ts +277 -0
- package/es/descriptions/descriptions-item.d.ts +35 -0
- package/es/descriptions/descriptions.d.ts +54 -0
- package/es/descriptions/index.d.ts +4 -0
- package/es/directives/outsiteclick.d.ts +2 -0
- package/es/directives/resize.d.ts +3 -0
- package/es/directives/scroll.d.ts +2 -0
- package/es/directives/transfer.d.ts +2 -0
- package/es/divider/index.d.ts +42 -0
- package/es/drawer/index.d.ts +177 -0
- package/es/dropdown/dropdown-button.d.ts +45 -0
- package/es/dropdown/dropdown.d.ts +72 -0
- package/es/dropdown/index.d.ts +4 -0
- package/es/dropdown/trigger.d.ts +11 -0
- package/es/empty/index.d.ts +9 -0
- package/es/flex/index.d.ts +45 -0
- package/es/form/form-item.d.ts +24 -0
- package/es/form/form.d.ts +92 -0
- package/es/form/index.d.ts +6 -0
- package/es/form/types.d.ts +14 -0
- package/es/grid/grid-item.d.ts +22 -0
- package/es/grid/grid.d.ts +39 -0
- package/es/grid/index.d.ts +5 -0
- package/es/grid/useBreakpoint.d.ts +3 -0
- package/es/icon/demo/search.d.ts +2 -0
- package/es/icon/demo/tags.d.ts +4 -0
- package/es/icon/index.d.ts +45 -0
- package/es/image/group.d.ts +11 -0
- package/es/image/image.d.ts +45 -0
- package/es/image/index.d.ts +5 -0
- package/es/image/instance.d.ts +2 -0
- package/es/image/preview.d.ts +36 -0
- package/es/image/utils.d.ts +6 -0
- package/es/index.d.ts +10 -0
- package/es/index.js +26 -22
- package/es/input/index.d.ts +8 -0
- package/es/input/input-box.d.ts +39 -0
- package/es/input/input-group.d.ts +58 -0
- package/es/input/input.d.ts +56 -0
- package/es/input/textarea.d.ts +25 -0
- package/es/input-number/index.d.ts +127 -0
- package/es/layout/index.d.ts +136 -0
- package/es/loading/index.d.ts +16 -0
- package/es/locale/de.d.ts +59 -0
- package/es/locale/de.js +1 -1
- package/es/locale/el.d.ts +59 -0
- package/es/locale/el.js +1 -1
- package/es/locale/en.d.ts +59 -0
- package/es/locale/en.js +1 -1
- package/es/locale/fr.d.ts +59 -0
- package/es/locale/fr.js +1 -1
- package/es/locale/it.d.ts +59 -0
- package/es/locale/it.js +1 -1
- package/es/locale/ja.d.ts +59 -0
- package/es/locale/ja.js +1 -1
- package/es/locale/ko.d.ts +59 -0
- package/es/locale/ko.js +1 -1
- package/es/locale/ru.d.ts +59 -0
- package/es/locale/ru.js +1 -1
- package/es/locale/th.d.ts +59 -0
- package/es/locale/th.js +1 -1
- package/es/locale/uk.d.ts +59 -0
- package/es/locale/uk.js +1 -1
- package/es/locale/vi.d.ts +59 -0
- package/es/locale/vi.js +1 -1
- package/es/locale/zh-CN.d.ts +59 -0
- package/es/locale/zh-CN.js +1 -1
- package/es/locale/zh-TW.d.ts +59 -0
- package/es/locale/zh-TW.js +1 -1
- package/es/menu/index.d.ts +7 -0
- package/es/menu/menu-divider.d.ts +2 -0
- package/es/menu/menu-group.d.ts +20 -0
- package/es/menu/menu-item.d.ts +22 -0
- package/es/menu/menu.d.ts +92 -0
- package/es/menu/recursive-menu.d.ts +17 -0
- package/es/menu/sub-menu.d.ts +24 -0
- package/es/message/index.d.ts +23 -0
- package/es/modal/index.d.ts +26 -0
- package/es/modal/modal.d.ts +176 -0
- package/es/modal/toast.d.ts +32 -0
- package/es/notice/container.d.ts +6 -0
- package/es/notice/content.d.ts +54 -0
- package/es/notice/index.d.ts +23 -0
- package/es/notice/instance.d.ts +8 -0
- package/es/page/index.d.ts +115 -0
- package/es/popconfirm/index.d.ts +75 -0
- package/es/poptip/index.d.ts +66 -0
- package/es/progress/index.d.ts +125 -0
- package/es/radio/index.d.ts +7 -0
- package/es/radio/radio-button.d.ts +76 -0
- package/es/radio/radio-group.d.ts +77 -0
- package/es/radio/radio.d.ts +73 -0
- package/es/radio/types.d.ts +5 -0
- package/es/rate/index.d.ts +99 -0
- package/es/rate/star.d.ts +65 -0
- package/es/row-col/col.d.ts +17 -0
- package/es/row-col/index.d.ts +5 -0
- package/es/row-col/row.d.ts +43 -0
- package/es/select/index.d.ts +5 -0
- package/es/select/option.d.ts +23 -0
- package/es/select/select.d.ts +150 -0
- package/es/skeleton/index.d.ts +7 -0
- package/es/skeleton/skeleton-avatar.d.ts +58 -0
- package/es/skeleton/skeleton-button.d.ts +58 -0
- package/es/skeleton/skeleton-image.d.ts +58 -0
- package/es/skeleton/skeleton-text.d.ts +58 -0
- package/es/skeleton/skeleton.d.ts +61 -0
- package/es/skeleton/types.d.ts +29 -0
- package/es/slider/index.d.ts +112 -0
- package/es/slider/thumb.d.ts +58 -0
- package/es/space/index.d.ts +50 -0
- package/es/spin/index.d.ts +58 -0
- package/es/splitter/index.d.ts +4 -0
- package/es/splitter/splitter-panel.d.ts +35 -0
- package/es/splitter/splitter.d.ts +32 -0
- package/es/stat-card/countup.d.ts +56 -0
- package/es/stat-card/index.d.ts +5 -0
- package/es/stat-card/rollup.d.ts +32 -0
- package/es/stat-card/stat-card.d.ts +72 -0
- package/es/stat-card/stat-number.d.ts +100 -0
- package/es/stat-card/utils/countup.d.ts +127 -0
- package/es/stat-card/utils/odometer.d.ts +13 -0
- package/es/switch/index.d.ts +72 -0
- package/es/table/index.d.ts +185 -0
- package/es/tabs/index.d.ts +5 -0
- package/es/tabs/tab-panel.d.ts +22 -0
- package/es/tabs/tabs.d.ts +44 -0
- package/es/tabs/types.d.ts +16 -0
- package/es/tag/index.d.ts +57 -0
- package/es/time-line/index.d.ts +5 -0
- package/es/time-line/timeline-item.d.ts +20 -0
- package/es/time-line/timeline.d.ts +26 -0
- package/es/tooltip/index.d.ts +42 -0
- package/es/tree/index.d.ts +179 -0
- package/es/tree/utils.d.ts +32 -0
- package/es/tree-select/index.d.ts +224 -0
- package/es/upload/file-list.d.ts +59 -0
- package/es/upload/index.d.ts +190 -0
- package/es/upload/selector.d.ts +73 -0
- package/es/utils/checked.d.ts +2 -0
- package/es/utils/color.d.ts +1 -0
- package/es/utils/element.d.ts +4 -0
- package/es/utils/mouse.d.ts +1 -0
- package/es/utils/number.d.ts +6 -0
- package/es/utils/placement.d.ts +16 -0
- package/es/utils/theme.d.ts +5 -0
- package/es/utils/vnode.d.ts +5 -0
- package/es/utils/vue.d.ts +5 -0
- package/lib/index.js +2 -2
- package/lib/locale/de.js +1 -1
- package/lib/locale/el.js +1 -1
- package/lib/locale/en.js +1 -1
- package/lib/locale/fr.js +1 -1
- package/lib/locale/it.js +1 -1
- package/lib/locale/ja.js +1 -1
- package/lib/locale/ko.js +1 -1
- package/lib/locale/ru.js +1 -1
- package/lib/locale/th.js +1 -1
- package/lib/locale/uk.js +1 -1
- package/lib/locale/vi.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/package.json +3 -2
- package/style/index.css +1 -1
- package/vetur/attributes.json +17 -33
- package/vetur/tags.json +5 -7
- package/vetur/web-types.json +34 -50
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
export type TimelineMode = "left" | "right" | "center" | "alternate";
|
|
3
|
+
export declare const timelineProps: {
|
|
4
|
+
mode: {
|
|
5
|
+
type: PropType<TimelineMode>;
|
|
6
|
+
default: string;
|
|
7
|
+
validator: (val: string) => boolean;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export type TimelineProps = ExtractPropTypes<typeof timelineProps>;
|
|
11
|
+
declare const TimeLine: import('vue').DefineComponent<ExtractPropTypes<{
|
|
12
|
+
mode: {
|
|
13
|
+
type: PropType<TimelineMode>;
|
|
14
|
+
default: string;
|
|
15
|
+
validator: (val: string) => boolean;
|
|
16
|
+
};
|
|
17
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
18
|
+
mode: {
|
|
19
|
+
type: PropType<TimelineMode>;
|
|
20
|
+
default: string;
|
|
21
|
+
validator: (val: string) => boolean;
|
|
22
|
+
};
|
|
23
|
+
}>> & Readonly<{}>, {
|
|
24
|
+
mode: TimelineMode;
|
|
25
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
26
|
+
export default TimeLine;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType, VNode } from 'vue';
|
|
2
|
+
import { BooleanType, PlacementsType } from '../const/types';
|
|
3
|
+
export declare const tooltipProps: {
|
|
4
|
+
show: BooleanType;
|
|
5
|
+
title: PropType<any>;
|
|
6
|
+
color: StringConstructor;
|
|
7
|
+
disabled: BooleanType;
|
|
8
|
+
width: PropType<number | string>;
|
|
9
|
+
placement: {
|
|
10
|
+
type: PropType<PlacementsType>;
|
|
11
|
+
default: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export type TooltipProps = ExtractPropTypes<typeof tooltipProps>;
|
|
15
|
+
declare const Tooltip: import('vue').DefineComponent<ExtractPropTypes<{
|
|
16
|
+
show: BooleanType;
|
|
17
|
+
title: PropType<any>;
|
|
18
|
+
color: StringConstructor;
|
|
19
|
+
disabled: BooleanType;
|
|
20
|
+
width: PropType<number | string>;
|
|
21
|
+
placement: {
|
|
22
|
+
type: PropType<PlacementsType>;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
}>, () => (VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
26
|
+
[key: string]: any;
|
|
27
|
+
}> | null)[], {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
28
|
+
show: BooleanType;
|
|
29
|
+
title: PropType<any>;
|
|
30
|
+
color: StringConstructor;
|
|
31
|
+
disabled: BooleanType;
|
|
32
|
+
width: PropType<number | string>;
|
|
33
|
+
placement: {
|
|
34
|
+
type: PropType<PlacementsType>;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
}>> & Readonly<{}>, {
|
|
38
|
+
placement: PlacementsType;
|
|
39
|
+
}, {}, {}, {
|
|
40
|
+
transfer: import('vue').ObjectDirective<any, any, string, any>;
|
|
41
|
+
}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
42
|
+
export default Tooltip;
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { BooleanType } from '../const/types';
|
|
3
|
+
import { TreeNode } from './utils';
|
|
4
|
+
export interface TreeExpandEvent {
|
|
5
|
+
key: string;
|
|
6
|
+
expanded: boolean;
|
|
7
|
+
node: TreeNode;
|
|
8
|
+
}
|
|
9
|
+
export declare const treeProps: {
|
|
10
|
+
data: PropType<TreeNode[]>;
|
|
11
|
+
selectedKeys: PropType<string[]>;
|
|
12
|
+
expandedKeys: PropType<string[]>;
|
|
13
|
+
checkedKeys: PropType<string[]>;
|
|
14
|
+
directory: BooleanType;
|
|
15
|
+
checkable: BooleanType;
|
|
16
|
+
draggable: BooleanType;
|
|
17
|
+
showLine: BooleanType;
|
|
18
|
+
showIcon: {
|
|
19
|
+
type: BooleanType;
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
22
|
+
showExtra: {
|
|
23
|
+
type: BooleanType;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
26
|
+
multiple: {
|
|
27
|
+
type: BooleanType;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
checkStrictly: BooleanType;
|
|
31
|
+
selectAsCheck: BooleanType;
|
|
32
|
+
queryKey: StringConstructor;
|
|
33
|
+
onExpand: {
|
|
34
|
+
type: PropType<(result: TreeExpandEvent) => void>;
|
|
35
|
+
};
|
|
36
|
+
onCheck: {
|
|
37
|
+
type: PropType<(node: TreeNode, checked: boolean, checkedKeys: string[]) => void>;
|
|
38
|
+
};
|
|
39
|
+
onSelect: {
|
|
40
|
+
type: PropType<(node: TreeNode) => void>;
|
|
41
|
+
};
|
|
42
|
+
onDragStart: {
|
|
43
|
+
type: PropType<(node: TreeNode, event: DragEvent) => void>;
|
|
44
|
+
};
|
|
45
|
+
onDragEnter: {
|
|
46
|
+
type: PropType<(node: TreeNode, event: DragEvent) => void>;
|
|
47
|
+
};
|
|
48
|
+
onDragLeave: {
|
|
49
|
+
type: PropType<(node: TreeNode, event: DragEvent) => void>;
|
|
50
|
+
};
|
|
51
|
+
onDrop: {
|
|
52
|
+
type: PropType<(node: {
|
|
53
|
+
dragNode: TreeNode;
|
|
54
|
+
dropNode: TreeNode;
|
|
55
|
+
}, event: DragEvent) => void>;
|
|
56
|
+
};
|
|
57
|
+
onDragEnd: {
|
|
58
|
+
type: PropType<(node: TreeNode, event: DragEvent) => void>;
|
|
59
|
+
};
|
|
60
|
+
loadData: {
|
|
61
|
+
type: PropType<(node: TreeNode) => Promise<any>>;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
export type TreeProps = ExtractPropTypes<typeof treeProps>;
|
|
65
|
+
export type { BuildTreeOptions, TreeNode } from './utils';
|
|
66
|
+
declare const Tree: import('vue').DefineComponent<ExtractPropTypes<{
|
|
67
|
+
data: PropType<TreeNode[]>;
|
|
68
|
+
selectedKeys: PropType<string[]>;
|
|
69
|
+
expandedKeys: PropType<string[]>;
|
|
70
|
+
checkedKeys: PropType<string[]>;
|
|
71
|
+
directory: BooleanType;
|
|
72
|
+
checkable: BooleanType;
|
|
73
|
+
draggable: BooleanType;
|
|
74
|
+
showLine: BooleanType;
|
|
75
|
+
showIcon: {
|
|
76
|
+
type: BooleanType;
|
|
77
|
+
default: boolean;
|
|
78
|
+
};
|
|
79
|
+
showExtra: {
|
|
80
|
+
type: BooleanType;
|
|
81
|
+
default: boolean;
|
|
82
|
+
};
|
|
83
|
+
multiple: {
|
|
84
|
+
type: BooleanType;
|
|
85
|
+
default: boolean;
|
|
86
|
+
};
|
|
87
|
+
checkStrictly: BooleanType;
|
|
88
|
+
selectAsCheck: BooleanType;
|
|
89
|
+
queryKey: StringConstructor;
|
|
90
|
+
onExpand: {
|
|
91
|
+
type: PropType<(result: TreeExpandEvent) => void>;
|
|
92
|
+
};
|
|
93
|
+
onCheck: {
|
|
94
|
+
type: PropType<(node: TreeNode, checked: boolean, checkedKeys: string[]) => void>;
|
|
95
|
+
};
|
|
96
|
+
onSelect: {
|
|
97
|
+
type: PropType<(node: TreeNode) => void>;
|
|
98
|
+
};
|
|
99
|
+
onDragStart: {
|
|
100
|
+
type: PropType<(node: TreeNode, event: DragEvent) => void>;
|
|
101
|
+
};
|
|
102
|
+
onDragEnter: {
|
|
103
|
+
type: PropType<(node: TreeNode, event: DragEvent) => void>;
|
|
104
|
+
};
|
|
105
|
+
onDragLeave: {
|
|
106
|
+
type: PropType<(node: TreeNode, event: DragEvent) => void>;
|
|
107
|
+
};
|
|
108
|
+
onDrop: {
|
|
109
|
+
type: PropType<(node: {
|
|
110
|
+
dragNode: TreeNode;
|
|
111
|
+
dropNode: TreeNode;
|
|
112
|
+
}, event: DragEvent) => void>;
|
|
113
|
+
};
|
|
114
|
+
onDragEnd: {
|
|
115
|
+
type: PropType<(node: TreeNode, event: DragEvent) => void>;
|
|
116
|
+
};
|
|
117
|
+
loadData: {
|
|
118
|
+
type: PropType<(node: TreeNode) => Promise<any>>;
|
|
119
|
+
};
|
|
120
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
121
|
+
data: PropType<TreeNode[]>;
|
|
122
|
+
selectedKeys: PropType<string[]>;
|
|
123
|
+
expandedKeys: PropType<string[]>;
|
|
124
|
+
checkedKeys: PropType<string[]>;
|
|
125
|
+
directory: BooleanType;
|
|
126
|
+
checkable: BooleanType;
|
|
127
|
+
draggable: BooleanType;
|
|
128
|
+
showLine: BooleanType;
|
|
129
|
+
showIcon: {
|
|
130
|
+
type: BooleanType;
|
|
131
|
+
default: boolean;
|
|
132
|
+
};
|
|
133
|
+
showExtra: {
|
|
134
|
+
type: BooleanType;
|
|
135
|
+
default: boolean;
|
|
136
|
+
};
|
|
137
|
+
multiple: {
|
|
138
|
+
type: BooleanType;
|
|
139
|
+
default: boolean;
|
|
140
|
+
};
|
|
141
|
+
checkStrictly: BooleanType;
|
|
142
|
+
selectAsCheck: BooleanType;
|
|
143
|
+
queryKey: StringConstructor;
|
|
144
|
+
onExpand: {
|
|
145
|
+
type: PropType<(result: TreeExpandEvent) => void>;
|
|
146
|
+
};
|
|
147
|
+
onCheck: {
|
|
148
|
+
type: PropType<(node: TreeNode, checked: boolean, checkedKeys: string[]) => void>;
|
|
149
|
+
};
|
|
150
|
+
onSelect: {
|
|
151
|
+
type: PropType<(node: TreeNode) => void>;
|
|
152
|
+
};
|
|
153
|
+
onDragStart: {
|
|
154
|
+
type: PropType<(node: TreeNode, event: DragEvent) => void>;
|
|
155
|
+
};
|
|
156
|
+
onDragEnter: {
|
|
157
|
+
type: PropType<(node: TreeNode, event: DragEvent) => void>;
|
|
158
|
+
};
|
|
159
|
+
onDragLeave: {
|
|
160
|
+
type: PropType<(node: TreeNode, event: DragEvent) => void>;
|
|
161
|
+
};
|
|
162
|
+
onDrop: {
|
|
163
|
+
type: PropType<(node: {
|
|
164
|
+
dragNode: TreeNode;
|
|
165
|
+
dropNode: TreeNode;
|
|
166
|
+
}, event: DragEvent) => void>;
|
|
167
|
+
};
|
|
168
|
+
onDragEnd: {
|
|
169
|
+
type: PropType<(node: TreeNode, event: DragEvent) => void>;
|
|
170
|
+
};
|
|
171
|
+
loadData: {
|
|
172
|
+
type: PropType<(node: TreeNode) => Promise<any>>;
|
|
173
|
+
};
|
|
174
|
+
}>> & Readonly<{}>, {
|
|
175
|
+
multiple: boolean | undefined;
|
|
176
|
+
showIcon: boolean | undefined;
|
|
177
|
+
showExtra: boolean | undefined;
|
|
178
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
179
|
+
export default Tree;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { IconType } from '../icon';
|
|
2
|
+
export interface TreeNode {
|
|
3
|
+
key: string;
|
|
4
|
+
title?: string;
|
|
5
|
+
parentKey?: string | null;
|
|
6
|
+
children?: TreeNode[];
|
|
7
|
+
isLeaf?: boolean;
|
|
8
|
+
expanded?: boolean;
|
|
9
|
+
selected?: boolean;
|
|
10
|
+
checked?: boolean;
|
|
11
|
+
indeterminate?: boolean;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
loading?: boolean;
|
|
14
|
+
icon?: IconType[];
|
|
15
|
+
visiblePrefixes?: boolean[];
|
|
16
|
+
dropping?: boolean;
|
|
17
|
+
level?: number;
|
|
18
|
+
isLastChild?: boolean;
|
|
19
|
+
[key: string]: any;
|
|
20
|
+
}
|
|
21
|
+
export interface BuildTreeOptions {
|
|
22
|
+
data: TreeNode[];
|
|
23
|
+
expandedKeys?: string[];
|
|
24
|
+
selectedKeys?: string[];
|
|
25
|
+
checkedKeys?: string[];
|
|
26
|
+
parentKey?: string | null;
|
|
27
|
+
hasLoad?: boolean;
|
|
28
|
+
checkStrictly?: boolean;
|
|
29
|
+
checkable?: boolean;
|
|
30
|
+
}
|
|
31
|
+
export declare const updateParentIndeterminate: (nodes: TreeNode[], parentKey: string) => void;
|
|
32
|
+
export declare const buildTree: ({ data, expandedKeys, selectedKeys, checkedKeys, parentKey, hasLoad, checkStrictly, checkable, }: BuildTreeOptions) => TreeNode[];
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { BooleanType, DropPlacementsType, ShapeType, SizeType, ThemeType } from '../const/types';
|
|
3
|
+
import { IconType } from '../icon';
|
|
4
|
+
import { TreeExpandEvent } from '../tree';
|
|
5
|
+
import { TreeNode } from '../tree/utils';
|
|
6
|
+
type TreeSelectValue = string | string[] | null | undefined;
|
|
7
|
+
export declare const treeSelectProps: {
|
|
8
|
+
placeholder: StringConstructor;
|
|
9
|
+
size: {
|
|
10
|
+
type: PropType<SizeType>;
|
|
11
|
+
};
|
|
12
|
+
placement: {
|
|
13
|
+
type: PropType<DropPlacementsType>;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
width: NumberConstructor;
|
|
17
|
+
maxTagCount: NumberConstructor;
|
|
18
|
+
modelValue: PropType<TreeSelectValue>;
|
|
19
|
+
clearable: {
|
|
20
|
+
type: BooleanType;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
filterable: BooleanType;
|
|
24
|
+
block: BooleanType;
|
|
25
|
+
disabled: BooleanType;
|
|
26
|
+
multiple: BooleanType;
|
|
27
|
+
loading: BooleanType;
|
|
28
|
+
bordered: {
|
|
29
|
+
type: BooleanType;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
showArrow: {
|
|
33
|
+
type: BooleanType;
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
36
|
+
options: ArrayConstructor;
|
|
37
|
+
theme: {
|
|
38
|
+
type: PropType<ThemeType>;
|
|
39
|
+
default: string;
|
|
40
|
+
};
|
|
41
|
+
emptyText: StringConstructor;
|
|
42
|
+
icon: PropType<IconType[]>;
|
|
43
|
+
shape: PropType<ShapeType>;
|
|
44
|
+
arrowIcon: PropType<IconType[]>;
|
|
45
|
+
treeData: PropType<TreeNode[]>;
|
|
46
|
+
treeCheckable: BooleanType;
|
|
47
|
+
treeShowLine: BooleanType;
|
|
48
|
+
treeShowIcon: {
|
|
49
|
+
type: BooleanType;
|
|
50
|
+
default: boolean;
|
|
51
|
+
};
|
|
52
|
+
treeCheckStrictly: BooleanType;
|
|
53
|
+
treeExpandedKeys: PropType<string[]>;
|
|
54
|
+
treeCheckedKeys: PropType<string[]>;
|
|
55
|
+
treeSelectedKeys: PropType<string[]>;
|
|
56
|
+
treeExpandedAll: BooleanType;
|
|
57
|
+
treeLoadData: {
|
|
58
|
+
type: PropType<(node: TreeNode) => Promise<any>>;
|
|
59
|
+
};
|
|
60
|
+
onChange: {
|
|
61
|
+
type: PropType<(value: TreeSelectValue) => void>;
|
|
62
|
+
};
|
|
63
|
+
onTreeSelect: {
|
|
64
|
+
type: PropType<(value: string, label: string, selected: boolean) => void>;
|
|
65
|
+
};
|
|
66
|
+
onSearch: {
|
|
67
|
+
type: PropType<(e: InputEvent) => void>;
|
|
68
|
+
};
|
|
69
|
+
onTreeExpand: {
|
|
70
|
+
type: PropType<(value: TreeExpandEvent) => void>;
|
|
71
|
+
};
|
|
72
|
+
onOpenChange: {
|
|
73
|
+
type: PropType<(open: boolean) => void>;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
export type TreeSelectProps = ExtractPropTypes<typeof treeSelectProps>;
|
|
77
|
+
declare const TreeSelect: import('vue').DefineComponent<ExtractPropTypes<{
|
|
78
|
+
placeholder: StringConstructor;
|
|
79
|
+
size: {
|
|
80
|
+
type: PropType<SizeType>;
|
|
81
|
+
};
|
|
82
|
+
placement: {
|
|
83
|
+
type: PropType<DropPlacementsType>;
|
|
84
|
+
default: string;
|
|
85
|
+
};
|
|
86
|
+
width: NumberConstructor;
|
|
87
|
+
maxTagCount: NumberConstructor;
|
|
88
|
+
modelValue: PropType<TreeSelectValue>;
|
|
89
|
+
clearable: {
|
|
90
|
+
type: BooleanType;
|
|
91
|
+
default: boolean;
|
|
92
|
+
};
|
|
93
|
+
filterable: BooleanType;
|
|
94
|
+
block: BooleanType;
|
|
95
|
+
disabled: BooleanType;
|
|
96
|
+
multiple: BooleanType;
|
|
97
|
+
loading: BooleanType;
|
|
98
|
+
bordered: {
|
|
99
|
+
type: BooleanType;
|
|
100
|
+
default: boolean;
|
|
101
|
+
};
|
|
102
|
+
showArrow: {
|
|
103
|
+
type: BooleanType;
|
|
104
|
+
default: boolean;
|
|
105
|
+
};
|
|
106
|
+
options: ArrayConstructor;
|
|
107
|
+
theme: {
|
|
108
|
+
type: PropType<ThemeType>;
|
|
109
|
+
default: string;
|
|
110
|
+
};
|
|
111
|
+
emptyText: StringConstructor;
|
|
112
|
+
icon: PropType<IconType[]>;
|
|
113
|
+
shape: PropType<ShapeType>;
|
|
114
|
+
arrowIcon: PropType<IconType[]>;
|
|
115
|
+
treeData: PropType<TreeNode[]>;
|
|
116
|
+
treeCheckable: BooleanType;
|
|
117
|
+
treeShowLine: BooleanType;
|
|
118
|
+
treeShowIcon: {
|
|
119
|
+
type: BooleanType;
|
|
120
|
+
default: boolean;
|
|
121
|
+
};
|
|
122
|
+
treeCheckStrictly: BooleanType;
|
|
123
|
+
treeExpandedKeys: PropType<string[]>;
|
|
124
|
+
treeCheckedKeys: PropType<string[]>;
|
|
125
|
+
treeSelectedKeys: PropType<string[]>;
|
|
126
|
+
treeExpandedAll: BooleanType;
|
|
127
|
+
treeLoadData: {
|
|
128
|
+
type: PropType<(node: TreeNode) => Promise<any>>;
|
|
129
|
+
};
|
|
130
|
+
onChange: {
|
|
131
|
+
type: PropType<(value: TreeSelectValue) => void>;
|
|
132
|
+
};
|
|
133
|
+
onTreeSelect: {
|
|
134
|
+
type: PropType<(value: string, label: string, selected: boolean) => void>;
|
|
135
|
+
};
|
|
136
|
+
onSearch: {
|
|
137
|
+
type: PropType<(e: InputEvent) => void>;
|
|
138
|
+
};
|
|
139
|
+
onTreeExpand: {
|
|
140
|
+
type: PropType<(value: TreeExpandEvent) => void>;
|
|
141
|
+
};
|
|
142
|
+
onOpenChange: {
|
|
143
|
+
type: PropType<(open: boolean) => void>;
|
|
144
|
+
};
|
|
145
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
146
|
+
placeholder: StringConstructor;
|
|
147
|
+
size: {
|
|
148
|
+
type: PropType<SizeType>;
|
|
149
|
+
};
|
|
150
|
+
placement: {
|
|
151
|
+
type: PropType<DropPlacementsType>;
|
|
152
|
+
default: string;
|
|
153
|
+
};
|
|
154
|
+
width: NumberConstructor;
|
|
155
|
+
maxTagCount: NumberConstructor;
|
|
156
|
+
modelValue: PropType<TreeSelectValue>;
|
|
157
|
+
clearable: {
|
|
158
|
+
type: BooleanType;
|
|
159
|
+
default: boolean;
|
|
160
|
+
};
|
|
161
|
+
filterable: BooleanType;
|
|
162
|
+
block: BooleanType;
|
|
163
|
+
disabled: BooleanType;
|
|
164
|
+
multiple: BooleanType;
|
|
165
|
+
loading: BooleanType;
|
|
166
|
+
bordered: {
|
|
167
|
+
type: BooleanType;
|
|
168
|
+
default: boolean;
|
|
169
|
+
};
|
|
170
|
+
showArrow: {
|
|
171
|
+
type: BooleanType;
|
|
172
|
+
default: boolean;
|
|
173
|
+
};
|
|
174
|
+
options: ArrayConstructor;
|
|
175
|
+
theme: {
|
|
176
|
+
type: PropType<ThemeType>;
|
|
177
|
+
default: string;
|
|
178
|
+
};
|
|
179
|
+
emptyText: StringConstructor;
|
|
180
|
+
icon: PropType<IconType[]>;
|
|
181
|
+
shape: PropType<ShapeType>;
|
|
182
|
+
arrowIcon: PropType<IconType[]>;
|
|
183
|
+
treeData: PropType<TreeNode[]>;
|
|
184
|
+
treeCheckable: BooleanType;
|
|
185
|
+
treeShowLine: BooleanType;
|
|
186
|
+
treeShowIcon: {
|
|
187
|
+
type: BooleanType;
|
|
188
|
+
default: boolean;
|
|
189
|
+
};
|
|
190
|
+
treeCheckStrictly: BooleanType;
|
|
191
|
+
treeExpandedKeys: PropType<string[]>;
|
|
192
|
+
treeCheckedKeys: PropType<string[]>;
|
|
193
|
+
treeSelectedKeys: PropType<string[]>;
|
|
194
|
+
treeExpandedAll: BooleanType;
|
|
195
|
+
treeLoadData: {
|
|
196
|
+
type: PropType<(node: TreeNode) => Promise<any>>;
|
|
197
|
+
};
|
|
198
|
+
onChange: {
|
|
199
|
+
type: PropType<(value: TreeSelectValue) => void>;
|
|
200
|
+
};
|
|
201
|
+
onTreeSelect: {
|
|
202
|
+
type: PropType<(value: string, label: string, selected: boolean) => void>;
|
|
203
|
+
};
|
|
204
|
+
onSearch: {
|
|
205
|
+
type: PropType<(e: InputEvent) => void>;
|
|
206
|
+
};
|
|
207
|
+
onTreeExpand: {
|
|
208
|
+
type: PropType<(value: TreeExpandEvent) => void>;
|
|
209
|
+
};
|
|
210
|
+
onOpenChange: {
|
|
211
|
+
type: PropType<(open: boolean) => void>;
|
|
212
|
+
};
|
|
213
|
+
}>> & Readonly<{}>, {
|
|
214
|
+
bordered: boolean | undefined;
|
|
215
|
+
theme: ThemeType;
|
|
216
|
+
placement: DropPlacementsType;
|
|
217
|
+
clearable: boolean | undefined;
|
|
218
|
+
showArrow: boolean | undefined;
|
|
219
|
+
treeShowIcon: boolean | undefined;
|
|
220
|
+
}, {}, {}, {
|
|
221
|
+
transfer: import('vue').ObjectDirective<any, any, string, any>;
|
|
222
|
+
resize: import('vue').ObjectDirective<any, any, string, any>;
|
|
223
|
+
}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
224
|
+
export default TreeSelect;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { BooleanType } from '../const/types';
|
|
3
|
+
import { UploadFile } from './index';
|
|
4
|
+
export declare const uploadFileListProps: {
|
|
5
|
+
showUploadList: {
|
|
6
|
+
type: BooleanType;
|
|
7
|
+
default: boolean;
|
|
8
|
+
};
|
|
9
|
+
locale: PropType<any>;
|
|
10
|
+
type: {
|
|
11
|
+
type: PropType<"list" | "picture">;
|
|
12
|
+
default: string;
|
|
13
|
+
validator: (val: string) => boolean;
|
|
14
|
+
};
|
|
15
|
+
fileList: {
|
|
16
|
+
type: PropType<UploadFile[]>;
|
|
17
|
+
default: () => never[];
|
|
18
|
+
};
|
|
19
|
+
disabled: BooleanType;
|
|
20
|
+
};
|
|
21
|
+
export type UploadFileListProps = ExtractPropTypes<typeof uploadFileListProps>;
|
|
22
|
+
declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
23
|
+
showUploadList: {
|
|
24
|
+
type: BooleanType;
|
|
25
|
+
default: boolean;
|
|
26
|
+
};
|
|
27
|
+
locale: PropType<any>;
|
|
28
|
+
type: {
|
|
29
|
+
type: PropType<"list" | "picture">;
|
|
30
|
+
default: string;
|
|
31
|
+
validator: (val: string) => boolean;
|
|
32
|
+
};
|
|
33
|
+
fileList: {
|
|
34
|
+
type: PropType<UploadFile[]>;
|
|
35
|
+
default: () => never[];
|
|
36
|
+
};
|
|
37
|
+
disabled: BooleanType;
|
|
38
|
+
}>, () => import("vue/jsx-runtime").JSX.Element | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
39
|
+
showUploadList: {
|
|
40
|
+
type: BooleanType;
|
|
41
|
+
default: boolean;
|
|
42
|
+
};
|
|
43
|
+
locale: PropType<any>;
|
|
44
|
+
type: {
|
|
45
|
+
type: PropType<"list" | "picture">;
|
|
46
|
+
default: string;
|
|
47
|
+
validator: (val: string) => boolean;
|
|
48
|
+
};
|
|
49
|
+
fileList: {
|
|
50
|
+
type: PropType<UploadFile[]>;
|
|
51
|
+
default: () => never[];
|
|
52
|
+
};
|
|
53
|
+
disabled: BooleanType;
|
|
54
|
+
}>> & Readonly<{}>, {
|
|
55
|
+
type: "picture" | "list";
|
|
56
|
+
showUploadList: boolean | undefined;
|
|
57
|
+
fileList: UploadFile[];
|
|
58
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
59
|
+
export default _default;
|