kui-vue 5.0.1 → 5.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -12
- package/README.zh-CN.md +117 -0
- package/dist/index.js +2 -2
- package/es/index.js +465 -281
- package/es/locale/de.js +1 -1
- package/es/locale/el.js +1 -1
- package/es/locale/en.js +1 -1
- package/es/locale/fr.js +1 -1
- package/es/locale/it.js +1 -1
- package/es/locale/ja.js +1 -1
- package/es/locale/ko.js +1 -1
- package/es/locale/ru.js +1 -1
- package/es/locale/th.js +1 -1
- package/es/locale/uk.js +1 -1
- package/es/locale/vi.js +1 -1
- package/es/locale/zh-CN.js +1 -1
- package/es/locale/zh-TW.js +1 -1
- 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 +6 -6
- package/style/index.css +2 -2
- package/types/anchor/{Anchor.d.ts → anchor.d.ts} +9 -0
- package/types/button/{Button.d.ts → button.d.ts} +3 -2
- package/types/carousel/{Carousel.d.ts → carousel.d.ts} +0 -13
- package/types/checkbox/checkbox-group.d.ts +9 -7
- package/types/checkbox/{Checkbox.d.ts → checkbox.d.ts} +14 -5
- package/types/checkbox/index.d.ts +1 -1
- package/types/collapse/{Collapse.d.ts → collapse.d.ts} +3 -0
- package/types/color-picker/index.d.ts +9 -7
- package/types/components.d.ts +4 -2
- package/types/const/types.d.ts +7 -5
- package/types/const/var.d.ts +1 -6
- package/types/date-picker/index.d.ts +37 -9
- package/types/descriptions/{Descriptions.d.ts → descriptions.d.ts} +0 -4
- package/types/drawer/index.d.ts +4 -1
- package/types/dropdown/{Dropdown.d.ts → dropdown.d.ts} +9 -0
- package/types/form/{Form.d.ts → form.d.ts} +9 -4
- package/types/form/types.d.ts +0 -1
- package/types/global.d.ts +4 -0
- package/types/input/input-group.d.ts +5 -5
- package/types/input/{Input.d.ts → input.d.ts} +7 -4
- package/types/input/{TextArea.d.ts → textarea.d.ts} +4 -2
- package/types/input-number/index.d.ts +0 -3
- package/types/menu/{Menu.d.ts → menu.d.ts} +3 -3
- package/types/message/index.d.ts +2 -1
- package/types/modal/{Modal.d.ts → modal.d.ts} +22 -0
- package/types/notice/instance.d.ts +7 -1
- package/types/page/index.d.ts +0 -4
- package/types/progress/index.d.ts +0 -4
- package/types/radio/radio-button.d.ts +4 -4
- package/types/radio/radio-group.d.ts +5 -4
- package/types/radio/{Radio.d.ts → radio.d.ts} +0 -4
- package/types/select/{Select.d.ts → select.d.ts} +3 -7
- package/types/spin/index.d.ts +0 -4
- package/types/splitter/index.d.ts +4 -0
- package/types/splitter/splitter-panel.d.ts +35 -0
- package/types/splitter/splitter.d.ts +32 -0
- package/types/switch/index.d.ts +39 -14
- package/types/table/index.d.ts +0 -4
- package/types/tag/index.d.ts +4 -4
- package/types/tree-select/index.d.ts +9 -7
- package/types/upload/index.d.ts +3 -0
- package/types/utils/checked.d.ts +2 -0
- package/vetur/attributes.json +1497 -1381
- package/vetur/tags.json +212 -182
- package/vetur/web-types.json +1643 -1461
- package/types/affix/Affix.d.ts +0 -15
- package/types/alert/Alert.d.ts +0 -19
- package/types/anchor/AnchorLink.d.ts +0 -12
- package/types/avatar/AvatarGroup.d.ts +0 -13
- package/types/backtop/BackTop.d.ts +0 -16
- package/types/badge/Badge.d.ts +0 -18
- package/types/breadcrumb/BreadcrumbItem.d.ts +0 -12
- package/types/button/ButtonGroup.d.ts +0 -12
- package/types/card/Card.d.ts +0 -14
- package/types/carousel/CarouselItem.d.ts +0 -9
- package/types/checkbox/CheckboxGroup.d.ts +0 -19
- package/types/collapse/CollapsePanel.d.ts +0 -12
- package/types/color-picker/ColorPicker.d.ts +0 -28
- package/types/date-picker/DatePicker.d.ts +0 -46
- package/types/descriptions/DescriptionsItem.d.ts +0 -16
- package/types/divider/Divider.d.ts +0 -16
- package/types/drawer/Drawer.d.ts +0 -35
- package/types/dropdown/DropdownButton.d.ts +0 -19
- package/types/empty/Empty.d.ts +0 -13
- package/types/flex/Flex.d.ts +0 -15
- package/types/form/FormItem.d.ts +0 -15
- package/types/grid/GridItem.d.ts +0 -18
- package/types/icon/Icon.d.ts +0 -15
- package/types/image/ImageGroup.d.ts +0 -11
- package/types/image/KImage.d.ts +0 -20
- package/types/input/InputGroup.d.ts +0 -16
- package/types/input-number/InputNumber.d.ts +0 -32
- package/types/layout/sider.d.ts +0 -11
- package/types/loading/loading.d.ts +0 -9
- package/types/menu/MenuDivider.d.ts +0 -9
- package/types/menu/MenuGroup.d.ts +0 -11
- package/types/menu/MenuItem.d.ts +0 -15
- package/types/menu/SubMenu.d.ts +0 -14
- package/types/page/Page.d.ts +0 -27
- package/types/popconfirm/Popconfirm.d.ts +0 -19
- package/types/poptip/Poptip.d.ts +0 -19
- package/types/progress/Progress.d.ts +0 -31
- package/types/radio/RadioButton.d.ts +0 -19
- package/types/radio/RadioGroup.d.ts +0 -20
- package/types/rate/Rate.d.ts +0 -24
- package/types/skeleton/SkeletonAvatar.d.ts +0 -17
- package/types/skeleton/SkeletonButton.d.ts +0 -18
- package/types/skeleton/SkeletonImage.d.ts +0 -16
- package/types/skeleton/SkeletonText.d.ts +0 -16
- package/types/slider/Slider.d.ts +0 -29
- package/types/space/Space.d.ts +0 -17
- package/types/spin/Spin.d.ts +0 -18
- package/types/stat-card/StatCard.d.ts +0 -20
- package/types/stat-card/StatNumber.d.ts +0 -20
- package/types/switch/Switch.d.ts +0 -19
- package/types/table/Table.d.ts +0 -29
- package/types/tabs/TabPanel.d.ts +0 -15
- package/types/tag/Tag.d.ts +0 -18
- package/types/timeline/TimeLine.d.ts +0 -12
- package/types/timeline/TimeLineItem.d.ts +0 -14
- package/types/tooltip/Tooltip.d.ts +0 -20
- package/types/tree/Tree.d.ts +0 -28
- package/types/tree-select/TreeSelect.d.ts +0 -46
- package/types/upload/Upload.d.ts +0 -37
- /package/types/avatar/{Avatar.d.ts → avatar.d.ts} +0 -0
- /package/types/breadcrumb/{Breadcrumb.d.ts → breadcrumb.d.ts} +0 -0
- /package/types/grid/{Grid.d.ts → grid.d.ts} +0 -0
- /package/types/row-col/{Col.d.ts → col.d.ts} +0 -0
- /package/types/row-col/{Row.d.ts → row.d.ts} +0 -0
- /package/types/select/{Option.d.ts → option.d.ts} +0 -0
- /package/types/skeleton/{Skeleton.d.ts → skeleton.d.ts} +0 -0
- /package/types/tabs/{Tabs.d.ts → tabs.d.ts} +0 -0
|
@@ -20,6 +20,9 @@ declare const anchorProps: {
|
|
|
20
20
|
default: number;
|
|
21
21
|
};
|
|
22
22
|
container: PropType<string | HTMLElement | Window>;
|
|
23
|
+
onChange: {
|
|
24
|
+
type: PropType<(activeLink: string) => void>;
|
|
25
|
+
};
|
|
23
26
|
};
|
|
24
27
|
export type AnchorProps = ExtractPropTypes<typeof anchorProps>;
|
|
25
28
|
declare const Anchor: import('vue').DefineComponent<ExtractPropTypes<{
|
|
@@ -36,6 +39,9 @@ declare const Anchor: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
36
39
|
default: number;
|
|
37
40
|
};
|
|
38
41
|
container: PropType<string | HTMLElement | Window>;
|
|
42
|
+
onChange: {
|
|
43
|
+
type: PropType<(activeLink: string) => void>;
|
|
44
|
+
};
|
|
39
45
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
40
46
|
affix: {
|
|
41
47
|
type: BooleanType;
|
|
@@ -50,6 +56,9 @@ declare const Anchor: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
50
56
|
default: number;
|
|
51
57
|
};
|
|
52
58
|
container: PropType<string | HTMLElement | Window>;
|
|
59
|
+
onChange: {
|
|
60
|
+
type: PropType<(activeLink: string) => void>;
|
|
61
|
+
};
|
|
53
62
|
}>> & Readonly<{}>, {
|
|
54
63
|
offsetTop: number;
|
|
55
64
|
affix: boolean | undefined;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ButtonHTMLAttributes, DefineComponent, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
import { BooleanType, ButtonType,
|
|
2
|
+
import { BooleanType, ButtonType, ShapeType, SizeType, ThemeType } from '../const/types';
|
|
3
|
+
import { colors } from '../const/var';
|
|
3
4
|
import { IconType } from '../icon';
|
|
4
5
|
declare const buttonProps: {
|
|
5
6
|
htmlType: {
|
|
@@ -15,7 +16,7 @@ declare const buttonProps: {
|
|
|
15
16
|
type: PropType<SizeType>;
|
|
16
17
|
};
|
|
17
18
|
color: {
|
|
18
|
-
type:
|
|
19
|
+
type: PropType<(typeof colors)[number]>;
|
|
19
20
|
};
|
|
20
21
|
loading: {
|
|
21
22
|
type: BooleanType;
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { ExtractPropTypes } from 'vue';
|
|
2
2
|
import { BooleanType } from '../const/types';
|
|
3
3
|
declare const carouselProps: {
|
|
4
|
-
value: {
|
|
5
|
-
type: NumberConstructor;
|
|
6
|
-
default: number;
|
|
7
|
-
};
|
|
8
4
|
modelValue: {
|
|
9
5
|
type: NumberConstructor;
|
|
10
6
|
default: number;
|
|
@@ -30,10 +26,6 @@ declare const carouselProps: {
|
|
|
30
26
|
};
|
|
31
27
|
export type CarouselProps = ExtractPropTypes<typeof carouselProps>;
|
|
32
28
|
declare const Carousel: import('vue').DefineComponent<ExtractPropTypes<{
|
|
33
|
-
value: {
|
|
34
|
-
type: NumberConstructor;
|
|
35
|
-
default: number;
|
|
36
|
-
};
|
|
37
29
|
modelValue: {
|
|
38
30
|
type: NumberConstructor;
|
|
39
31
|
default: number;
|
|
@@ -57,10 +49,6 @@ declare const Carousel: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
57
49
|
default: boolean;
|
|
58
50
|
};
|
|
59
51
|
}>, () => import("vue/jsx-runtime").JSX.Element | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
60
|
-
value: {
|
|
61
|
-
type: NumberConstructor;
|
|
62
|
-
default: number;
|
|
63
|
-
};
|
|
64
52
|
modelValue: {
|
|
65
53
|
type: NumberConstructor;
|
|
66
54
|
default: number;
|
|
@@ -84,7 +72,6 @@ declare const Carousel: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
84
72
|
default: boolean;
|
|
85
73
|
};
|
|
86
74
|
}>> & Readonly<{}>, {
|
|
87
|
-
value: number;
|
|
88
75
|
height: number;
|
|
89
76
|
vertical: boolean;
|
|
90
77
|
modelValue: number;
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
2
|
import { BooleanType, DirectionType, SizeType, ThemeType } from '../const/types';
|
|
3
|
+
export interface CheckboxOption {
|
|
4
|
+
label?: string;
|
|
5
|
+
value?: string | number;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
}
|
|
3
9
|
declare const checkboxGroupProps: {
|
|
4
10
|
modelValue: {
|
|
5
11
|
type: PropType<any[]>;
|
|
@@ -10,14 +16,13 @@ declare const checkboxGroupProps: {
|
|
|
10
16
|
default: string;
|
|
11
17
|
};
|
|
12
18
|
disabled: BooleanType;
|
|
13
|
-
options: PropType<
|
|
19
|
+
options: PropType<CheckboxOption[]>;
|
|
14
20
|
direction: {
|
|
15
21
|
type: PropType<DirectionType>;
|
|
16
22
|
default: string;
|
|
17
23
|
};
|
|
18
24
|
size: {
|
|
19
25
|
type: PropType<SizeType>;
|
|
20
|
-
default: string;
|
|
21
26
|
};
|
|
22
27
|
onChange: {
|
|
23
28
|
type: PropType<(value: any[]) => void>;
|
|
@@ -34,14 +39,13 @@ declare const CheckboxGroup: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
34
39
|
default: string;
|
|
35
40
|
};
|
|
36
41
|
disabled: BooleanType;
|
|
37
|
-
options: PropType<
|
|
42
|
+
options: PropType<CheckboxOption[]>;
|
|
38
43
|
direction: {
|
|
39
44
|
type: PropType<DirectionType>;
|
|
40
45
|
default: string;
|
|
41
46
|
};
|
|
42
47
|
size: {
|
|
43
48
|
type: PropType<SizeType>;
|
|
44
|
-
default: string;
|
|
45
49
|
};
|
|
46
50
|
onChange: {
|
|
47
51
|
type: PropType<(value: any[]) => void>;
|
|
@@ -56,21 +60,19 @@ declare const CheckboxGroup: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
56
60
|
default: string;
|
|
57
61
|
};
|
|
58
62
|
disabled: BooleanType;
|
|
59
|
-
options: PropType<
|
|
63
|
+
options: PropType<CheckboxOption[]>;
|
|
60
64
|
direction: {
|
|
61
65
|
type: PropType<DirectionType>;
|
|
62
66
|
default: string;
|
|
63
67
|
};
|
|
64
68
|
size: {
|
|
65
69
|
type: PropType<SizeType>;
|
|
66
|
-
default: string;
|
|
67
70
|
};
|
|
68
71
|
onChange: {
|
|
69
72
|
type: PropType<(value: any[]) => void>;
|
|
70
73
|
};
|
|
71
74
|
}>> & Readonly<{}>, {
|
|
72
75
|
direction: DirectionType;
|
|
73
|
-
size: SizeType;
|
|
74
76
|
theme: ThemeType;
|
|
75
77
|
modelValue: any[];
|
|
76
78
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
import { BooleanType, SizeType, ThemeType } from '../const/types';
|
|
2
|
+
import { BooleanType, SizeType, ThemeType, ValueType } from '../const/types';
|
|
3
3
|
declare const checkboxProps: {
|
|
4
4
|
checked: {
|
|
5
5
|
type: BooleanType;
|
|
6
6
|
default: boolean;
|
|
7
7
|
};
|
|
8
|
+
valueType: {
|
|
9
|
+
type: PropType<ValueType>;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
8
12
|
modelValue: {
|
|
9
13
|
type: PropType<string | number | boolean>;
|
|
10
14
|
};
|
|
@@ -22,7 +26,6 @@ declare const checkboxProps: {
|
|
|
22
26
|
indeterminate: BooleanType;
|
|
23
27
|
size: {
|
|
24
28
|
type: PropType<SizeType>;
|
|
25
|
-
default: string;
|
|
26
29
|
};
|
|
27
30
|
onChange: {
|
|
28
31
|
type: PropType<(e: ChangeEvent) => void>;
|
|
@@ -39,6 +42,10 @@ declare const Checkbox: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
39
42
|
type: BooleanType;
|
|
40
43
|
default: boolean;
|
|
41
44
|
};
|
|
45
|
+
valueType: {
|
|
46
|
+
type: PropType<ValueType>;
|
|
47
|
+
default: string;
|
|
48
|
+
};
|
|
42
49
|
modelValue: {
|
|
43
50
|
type: PropType<string | number | boolean>;
|
|
44
51
|
};
|
|
@@ -56,7 +63,6 @@ declare const Checkbox: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
56
63
|
indeterminate: BooleanType;
|
|
57
64
|
size: {
|
|
58
65
|
type: PropType<SizeType>;
|
|
59
|
-
default: string;
|
|
60
66
|
};
|
|
61
67
|
onChange: {
|
|
62
68
|
type: PropType<(e: ChangeEvent) => void>;
|
|
@@ -66,6 +72,10 @@ declare const Checkbox: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
66
72
|
type: BooleanType;
|
|
67
73
|
default: boolean;
|
|
68
74
|
};
|
|
75
|
+
valueType: {
|
|
76
|
+
type: PropType<ValueType>;
|
|
77
|
+
default: string;
|
|
78
|
+
};
|
|
69
79
|
modelValue: {
|
|
70
80
|
type: PropType<string | number | boolean>;
|
|
71
81
|
};
|
|
@@ -83,14 +93,13 @@ declare const Checkbox: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
83
93
|
indeterminate: BooleanType;
|
|
84
94
|
size: {
|
|
85
95
|
type: PropType<SizeType>;
|
|
86
|
-
default: string;
|
|
87
96
|
};
|
|
88
97
|
onChange: {
|
|
89
98
|
type: PropType<(e: ChangeEvent) => void>;
|
|
90
99
|
};
|
|
91
100
|
}>> & Readonly<{}>, {
|
|
92
|
-
size: SizeType;
|
|
93
101
|
theme: ThemeType;
|
|
94
102
|
checked: boolean | undefined;
|
|
103
|
+
valueType: ValueType;
|
|
95
104
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
96
105
|
export default Checkbox;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as Checkbox } from './checkbox';
|
|
2
2
|
import { default as CheckboxGroup } from './checkbox-group';
|
|
3
3
|
export type { ChangeEvent, CheckboxProps } from './checkbox';
|
|
4
|
-
export type { CheckboxGroupProps } from './checkbox-group';
|
|
4
|
+
export type { CheckboxGroupProps, CheckboxOption } from './checkbox-group';
|
|
5
5
|
export { Checkbox, CheckboxGroup };
|
|
6
6
|
export default Checkbox;
|
|
@@ -7,6 +7,7 @@ declare const collapseProps: {
|
|
|
7
7
|
};
|
|
8
8
|
accordion: BooleanType;
|
|
9
9
|
sample: BooleanType;
|
|
10
|
+
onChange: PropType<(key: string | number) => void>;
|
|
10
11
|
};
|
|
11
12
|
export type CollapseProps = ExtractPropTypes<typeof collapseProps>;
|
|
12
13
|
declare const Collapse: import('vue').DefineComponent<ExtractPropTypes<{
|
|
@@ -16,6 +17,7 @@ declare const Collapse: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
16
17
|
};
|
|
17
18
|
accordion: BooleanType;
|
|
18
19
|
sample: BooleanType;
|
|
20
|
+
onChange: PropType<(key: string | number) => void>;
|
|
19
21
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
20
22
|
openKeys: {
|
|
21
23
|
type: PropType<(string | number)[]>;
|
|
@@ -23,6 +25,7 @@ declare const Collapse: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
23
25
|
};
|
|
24
26
|
accordion: BooleanType;
|
|
25
27
|
sample: BooleanType;
|
|
28
|
+
onChange: PropType<(key: string | number) => void>;
|
|
26
29
|
}>> & Readonly<{}>, {
|
|
27
30
|
openKeys: (string | number)[];
|
|
28
31
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -3,7 +3,6 @@ import { BooleanType, DropPlacementsType, SizeType } from '../const/types';
|
|
|
3
3
|
type ColorMode = "hex" | "rgb" | "hsl";
|
|
4
4
|
export declare const colorPickerProps: {
|
|
5
5
|
modelValue: StringConstructor;
|
|
6
|
-
value: StringConstructor;
|
|
7
6
|
disabled: BooleanType;
|
|
8
7
|
disabledAlpha: BooleanType;
|
|
9
8
|
showText: BooleanType;
|
|
@@ -17,7 +16,6 @@ export declare const colorPickerProps: {
|
|
|
17
16
|
};
|
|
18
17
|
size: {
|
|
19
18
|
type: PropType<SizeType>;
|
|
20
|
-
default: string;
|
|
21
19
|
};
|
|
22
20
|
mode: {
|
|
23
21
|
type: PropType<ColorMode>;
|
|
@@ -32,11 +30,13 @@ export declare const colorPickerProps: {
|
|
|
32
30
|
onUpdateMode: {
|
|
33
31
|
type: PropType<(mode: ColorMode) => void>;
|
|
34
32
|
};
|
|
33
|
+
onOpenChange: {
|
|
34
|
+
type: PropType<(open: boolean) => void>;
|
|
35
|
+
};
|
|
35
36
|
};
|
|
36
37
|
export type ColorPickerProps = ExtractPropTypes<typeof colorPickerProps>;
|
|
37
38
|
declare const ColorPicker: import('vue').DefineComponent<ExtractPropTypes<{
|
|
38
39
|
modelValue: StringConstructor;
|
|
39
|
-
value: StringConstructor;
|
|
40
40
|
disabled: BooleanType;
|
|
41
41
|
disabledAlpha: BooleanType;
|
|
42
42
|
showText: BooleanType;
|
|
@@ -50,7 +50,6 @@ declare const ColorPicker: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
50
50
|
};
|
|
51
51
|
size: {
|
|
52
52
|
type: PropType<SizeType>;
|
|
53
|
-
default: string;
|
|
54
53
|
};
|
|
55
54
|
mode: {
|
|
56
55
|
type: PropType<ColorMode>;
|
|
@@ -65,9 +64,11 @@ declare const ColorPicker: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
65
64
|
onUpdateMode: {
|
|
66
65
|
type: PropType<(mode: ColorMode) => void>;
|
|
67
66
|
};
|
|
67
|
+
onOpenChange: {
|
|
68
|
+
type: PropType<(open: boolean) => void>;
|
|
69
|
+
};
|
|
68
70
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
69
71
|
modelValue: StringConstructor;
|
|
70
|
-
value: StringConstructor;
|
|
71
72
|
disabled: BooleanType;
|
|
72
73
|
disabledAlpha: BooleanType;
|
|
73
74
|
showText: BooleanType;
|
|
@@ -81,7 +82,6 @@ declare const ColorPicker: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
81
82
|
};
|
|
82
83
|
size: {
|
|
83
84
|
type: PropType<SizeType>;
|
|
84
|
-
default: string;
|
|
85
85
|
};
|
|
86
86
|
mode: {
|
|
87
87
|
type: PropType<ColorMode>;
|
|
@@ -96,8 +96,10 @@ declare const ColorPicker: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
96
96
|
onUpdateMode: {
|
|
97
97
|
type: PropType<(mode: ColorMode) => void>;
|
|
98
98
|
};
|
|
99
|
+
onOpenChange: {
|
|
100
|
+
type: PropType<(open: boolean) => void>;
|
|
101
|
+
};
|
|
99
102
|
}>> & Readonly<{}>, {
|
|
100
|
-
size: SizeType;
|
|
101
103
|
mode: ColorMode;
|
|
102
104
|
placement: DropPlacementsType;
|
|
103
105
|
trigger: "click" | "hover";
|
package/types/components.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export type { CardProps } from './card';
|
|
|
19
19
|
export { Carousel, CarouselItem } from './carousel';
|
|
20
20
|
export type { CarouselProps } from './carousel';
|
|
21
21
|
export { Checkbox, CheckboxGroup } from './checkbox';
|
|
22
|
-
export type { ChangeEvent, CheckboxGroupProps, CheckboxProps } from './checkbox';
|
|
22
|
+
export type { ChangeEvent, CheckboxGroupProps, CheckboxOption, CheckboxProps } from './checkbox';
|
|
23
23
|
export { Collapse, CollapsePanel } from './collapse';
|
|
24
24
|
export type { CollapsePanelProps, CollapseProps } from './collapse';
|
|
25
25
|
export { default as ColorPicker } from './color-picker';
|
|
@@ -107,5 +107,7 @@ export { Col, Row } from './row-col';
|
|
|
107
107
|
export type { ColProps, RowProps } from './row-col';
|
|
108
108
|
export { default as Upload } from './upload';
|
|
109
109
|
export type { UploadChangeEvent, UploadContext, UploadFile, UploadProps } from './upload';
|
|
110
|
+
export { Splitter, SplitterPanel } from './splitter';
|
|
111
|
+
export type { SplitterPanelProps, SplitterProps } from './splitter';
|
|
110
112
|
export { default as theme } from './utils/theme';
|
|
111
|
-
export type { AlignType, BooleanType, ButtonType, ColorType, DirectionType, DrawerPlacementsType, DropPlacementsType, PlacementsType, ShapeType, SizeType, SpinModeType, ThemeType, UploadStatusType, } from './const/types';
|
|
113
|
+
export type { AlignType, BooleanType, ButtonType, ColorType, DirectionType, DrawerPlacementsType, DropPlacementsType, PlacementsType, RadioType, ShapeType, SizeType, SpinModeType, ThemeType, UploadStatusType, } from './const/types';
|
package/types/const/types.d.ts
CHANGED
|
@@ -3,15 +3,17 @@ import { colors } from './var';
|
|
|
3
3
|
export type PlacementsType = "top" | "top-left" | "top-right" | "bottom" | "bottom-left" | "bottom-right" | "left" | "left-bottom" | "left-top" | "right" | "right-top" | "right-bottom";
|
|
4
4
|
export type DrawerPlacementsType = "left" | "right" | "top" | "bottom";
|
|
5
5
|
export type DropPlacementsType = "top" | "top-left" | "top-right" | "bottom" | "bottom-left" | "bottom-right";
|
|
6
|
-
export type
|
|
7
|
-
export type
|
|
6
|
+
export type ValueType = "string" | "number" | "boolean";
|
|
7
|
+
export type SizeType = "small" | "medium" | "large";
|
|
8
|
+
export type ShapeType = "circle" | "square" | "round";
|
|
8
9
|
export type BooleanType = PropType<boolean | undefined>;
|
|
9
10
|
export type ButtonType = "primary" | "danger" | "warning" | "default" | "text" | "link";
|
|
10
|
-
export type ThemeType = "outline" | "
|
|
11
|
+
export type ThemeType = "outline" | "fill" | "default" | "solid" | "dashed" | "card";
|
|
12
|
+
export type RadioType = "radio" | "button";
|
|
11
13
|
export type DirectionType = "horizontal" | "vertical" | "inline";
|
|
12
14
|
export type AlignType = "start" | "center" | "end";
|
|
13
|
-
export type ColorType = PropType<(typeof colors)[number]>;
|
|
15
|
+
export type ColorType = PropType<(typeof colors)[number] | string>;
|
|
14
16
|
export type UploadStatusType = "success" | "error" | "uploading" | "waiting";
|
|
15
17
|
export type SpinModeType = "bounce" | "flip" | "rotate" | "zoom";
|
|
16
18
|
export type TriggerType = "hover" | "click" | "contextmenu";
|
|
17
|
-
export type NoticeType = "info" | "success" | "warning" | "error";
|
|
19
|
+
export type NoticeType = "info" | "success" | "warning" | "error" | "loading";
|
package/types/const/var.d.ts
CHANGED
|
@@ -1,6 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const colors: string[];
|
|
3
|
-
export declare function functionType<T = () => {}>(defaultVal?: T): {
|
|
4
|
-
type: PropType<T>;
|
|
5
|
-
default: T;
|
|
6
|
-
};
|
|
1
|
+
export declare const colors: readonly ["default", "red", "orange", "yellow", "olive", "green", "teal", "blue", "volcano", "violet", "cyan", "gold", "lime", "magenta", "purple", "pink", "brown", "gray"];
|
|
@@ -32,6 +32,9 @@ export declare const datePickerProps: {
|
|
|
32
32
|
disabled: {
|
|
33
33
|
type: BooleanType;
|
|
34
34
|
};
|
|
35
|
+
opened: {
|
|
36
|
+
type: BooleanType;
|
|
37
|
+
};
|
|
35
38
|
clearable: {
|
|
36
39
|
type: BooleanType;
|
|
37
40
|
default: boolean;
|
|
@@ -58,7 +61,6 @@ export declare const datePickerProps: {
|
|
|
58
61
|
};
|
|
59
62
|
size: {
|
|
60
63
|
type: PropType<SizeType>;
|
|
61
|
-
default: string;
|
|
62
64
|
};
|
|
63
65
|
dateIcon: {
|
|
64
66
|
type: PropType<IconType[]>;
|
|
@@ -69,7 +71,6 @@ export declare const datePickerProps: {
|
|
|
69
71
|
};
|
|
70
72
|
shape: {
|
|
71
73
|
type: PropType<ShapeType>;
|
|
72
|
-
default: string;
|
|
73
74
|
};
|
|
74
75
|
bordered: {
|
|
75
76
|
type: BooleanType;
|
|
@@ -79,6 +80,15 @@ export declare const datePickerProps: {
|
|
|
79
80
|
type: PropType<DropPlacementsType>;
|
|
80
81
|
default: string;
|
|
81
82
|
};
|
|
83
|
+
onChange: {
|
|
84
|
+
type: PropType<(date: Date | Date[], dateStr: string | string[]) => void>;
|
|
85
|
+
};
|
|
86
|
+
onOpenChange: {
|
|
87
|
+
type: PropType<(open: boolean) => void>;
|
|
88
|
+
};
|
|
89
|
+
onClear: {
|
|
90
|
+
type: PropType<() => void>;
|
|
91
|
+
};
|
|
82
92
|
};
|
|
83
93
|
export type DatePickerProps = ExtractPropTypes<typeof datePickerProps>;
|
|
84
94
|
declare const DatePicker: import('vue').DefineComponent<ExtractPropTypes<{
|
|
@@ -106,6 +116,9 @@ declare const DatePicker: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
106
116
|
disabled: {
|
|
107
117
|
type: BooleanType;
|
|
108
118
|
};
|
|
119
|
+
opened: {
|
|
120
|
+
type: BooleanType;
|
|
121
|
+
};
|
|
109
122
|
clearable: {
|
|
110
123
|
type: BooleanType;
|
|
111
124
|
default: boolean;
|
|
@@ -132,7 +145,6 @@ declare const DatePicker: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
132
145
|
};
|
|
133
146
|
size: {
|
|
134
147
|
type: PropType<SizeType>;
|
|
135
|
-
default: string;
|
|
136
148
|
};
|
|
137
149
|
dateIcon: {
|
|
138
150
|
type: PropType<IconType[]>;
|
|
@@ -143,7 +155,6 @@ declare const DatePicker: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
143
155
|
};
|
|
144
156
|
shape: {
|
|
145
157
|
type: PropType<ShapeType>;
|
|
146
|
-
default: string;
|
|
147
158
|
};
|
|
148
159
|
bordered: {
|
|
149
160
|
type: BooleanType;
|
|
@@ -153,6 +164,15 @@ declare const DatePicker: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
153
164
|
type: PropType<DropPlacementsType>;
|
|
154
165
|
default: string;
|
|
155
166
|
};
|
|
167
|
+
onChange: {
|
|
168
|
+
type: PropType<(date: Date | Date[], dateStr: string | string[]) => void>;
|
|
169
|
+
};
|
|
170
|
+
onOpenChange: {
|
|
171
|
+
type: PropType<(open: boolean) => void>;
|
|
172
|
+
};
|
|
173
|
+
onClear: {
|
|
174
|
+
type: PropType<() => void>;
|
|
175
|
+
};
|
|
156
176
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
157
177
|
modelValue: {
|
|
158
178
|
type: (NumberConstructor | ObjectConstructor | StringConstructor | DateConstructor | ArrayConstructor)[];
|
|
@@ -178,6 +198,9 @@ declare const DatePicker: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
178
198
|
disabled: {
|
|
179
199
|
type: BooleanType;
|
|
180
200
|
};
|
|
201
|
+
opened: {
|
|
202
|
+
type: BooleanType;
|
|
203
|
+
};
|
|
181
204
|
clearable: {
|
|
182
205
|
type: BooleanType;
|
|
183
206
|
default: boolean;
|
|
@@ -204,7 +227,6 @@ declare const DatePicker: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
204
227
|
};
|
|
205
228
|
size: {
|
|
206
229
|
type: PropType<SizeType>;
|
|
207
|
-
default: string;
|
|
208
230
|
};
|
|
209
231
|
dateIcon: {
|
|
210
232
|
type: PropType<IconType[]>;
|
|
@@ -215,7 +237,6 @@ declare const DatePicker: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
215
237
|
};
|
|
216
238
|
shape: {
|
|
217
239
|
type: PropType<ShapeType>;
|
|
218
|
-
default: string;
|
|
219
240
|
};
|
|
220
241
|
bordered: {
|
|
221
242
|
type: BooleanType;
|
|
@@ -225,19 +246,26 @@ declare const DatePicker: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
225
246
|
type: PropType<DropPlacementsType>;
|
|
226
247
|
default: string;
|
|
227
248
|
};
|
|
249
|
+
onChange: {
|
|
250
|
+
type: PropType<(date: Date | Date[], dateStr: string | string[]) => void>;
|
|
251
|
+
};
|
|
252
|
+
onOpenChange: {
|
|
253
|
+
type: PropType<(open: boolean) => void>;
|
|
254
|
+
};
|
|
255
|
+
onClear: {
|
|
256
|
+
type: PropType<() => void>;
|
|
257
|
+
};
|
|
228
258
|
}>> & Readonly<{}>, {
|
|
229
|
-
size: SizeType;
|
|
230
259
|
bordered: boolean | undefined;
|
|
231
|
-
shape: ShapeType;
|
|
232
260
|
mode: DatePickerModeType;
|
|
233
261
|
theme: ThemeType;
|
|
234
262
|
placeholder: string | string[];
|
|
235
263
|
modelValue: string | number | Record<string, any> | Date | unknown[];
|
|
264
|
+
valueType: DatePickerValueType;
|
|
236
265
|
placement: DropPlacementsType;
|
|
237
266
|
clearable: boolean | undefined;
|
|
238
267
|
startDate: string | number | Record<string, any> | Date;
|
|
239
268
|
endDate: string | number | Record<string, any> | Date;
|
|
240
|
-
valueType: DatePickerValueType;
|
|
241
269
|
editable: boolean | undefined;
|
|
242
270
|
format: string;
|
|
243
271
|
disabledDate: (date: Date) => boolean;
|
|
@@ -14,7 +14,6 @@ export declare const descriptionsProps: {
|
|
|
14
14
|
extra: StringConstructor;
|
|
15
15
|
size: {
|
|
16
16
|
type: PropType<SizeType>;
|
|
17
|
-
default: string;
|
|
18
17
|
};
|
|
19
18
|
};
|
|
20
19
|
export type DescriptionsProps = ExtractPropTypes<typeof descriptionsProps>;
|
|
@@ -32,7 +31,6 @@ declare const Descriptions: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
32
31
|
extra: StringConstructor;
|
|
33
32
|
size: {
|
|
34
33
|
type: PropType<SizeType>;
|
|
35
|
-
default: string;
|
|
36
34
|
};
|
|
37
35
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
38
36
|
bordered: BooleanType;
|
|
@@ -48,11 +46,9 @@ declare const Descriptions: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
48
46
|
extra: StringConstructor;
|
|
49
47
|
size: {
|
|
50
48
|
type: PropType<SizeType>;
|
|
51
|
-
default: string;
|
|
52
49
|
};
|
|
53
50
|
}>> & Readonly<{}>, {
|
|
54
51
|
column: number;
|
|
55
52
|
layout: DirectionType;
|
|
56
|
-
size: SizeType;
|
|
57
53
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
58
54
|
export default Descriptions;
|
package/types/drawer/index.d.ts
CHANGED
|
@@ -51,6 +51,7 @@ export declare const drawerProps: {
|
|
|
51
51
|
onOk: PropType<() => void>;
|
|
52
52
|
onCancel: PropType<() => void>;
|
|
53
53
|
onClose: PropType<() => void>;
|
|
54
|
+
onOpenChange: PropType<(opened: boolean) => void>;
|
|
54
55
|
};
|
|
55
56
|
export type DrawerProps = ExtractPropTypes<typeof drawerProps>;
|
|
56
57
|
declare const Drawer: import('vue').DefineComponent<ExtractPropTypes<{
|
|
@@ -104,6 +105,7 @@ declare const Drawer: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
104
105
|
onOk: PropType<() => void>;
|
|
105
106
|
onCancel: PropType<() => void>;
|
|
106
107
|
onClose: PropType<() => void>;
|
|
108
|
+
onOpenChange: PropType<(opened: boolean) => void>;
|
|
107
109
|
}>, () => import("vue/jsx-runtime").JSX.Element | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
108
110
|
modelValue: BooleanConstructor;
|
|
109
111
|
title: {
|
|
@@ -155,6 +157,7 @@ declare const Drawer: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
155
157
|
onOk: PropType<() => void>;
|
|
156
158
|
onCancel: PropType<() => void>;
|
|
157
159
|
onClose: PropType<() => void>;
|
|
160
|
+
onOpenChange: PropType<(opened: boolean) => void>;
|
|
158
161
|
}>> & Readonly<{}>, {
|
|
159
162
|
target: () => HTMLElement;
|
|
160
163
|
height: string | number;
|
|
@@ -162,8 +165,8 @@ declare const Drawer: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
162
165
|
mask: boolean;
|
|
163
166
|
footer: boolean;
|
|
164
167
|
title: string;
|
|
165
|
-
closable: boolean;
|
|
166
168
|
loading: boolean;
|
|
169
|
+
closable: boolean;
|
|
167
170
|
modelValue: boolean;
|
|
168
171
|
placement: DrawerPlacementsType;
|
|
169
172
|
maskClosable: boolean;
|
|
@@ -16,6 +16,9 @@ export declare const dropdownProps: {
|
|
|
16
16
|
default: string;
|
|
17
17
|
};
|
|
18
18
|
target: ObjectConstructor;
|
|
19
|
+
onOpenChange: {
|
|
20
|
+
type: PropType<(opened: boolean) => void>;
|
|
21
|
+
};
|
|
19
22
|
};
|
|
20
23
|
export type DropdownProps = ExtractPropTypes<typeof dropdownProps>;
|
|
21
24
|
declare const Dropdown: import('vue').DefineComponent<ExtractPropTypes<{
|
|
@@ -34,6 +37,9 @@ declare const Dropdown: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
34
37
|
default: string;
|
|
35
38
|
};
|
|
36
39
|
target: ObjectConstructor;
|
|
40
|
+
onOpenChange: {
|
|
41
|
+
type: PropType<(opened: boolean) => void>;
|
|
42
|
+
};
|
|
37
43
|
}>, () => (import('vue').VNode<unknown, unknown, {
|
|
38
44
|
[key: string]: any;
|
|
39
45
|
}> | null)[], {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
@@ -52,6 +58,9 @@ declare const Dropdown: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
52
58
|
default: string;
|
|
53
59
|
};
|
|
54
60
|
target: ObjectConstructor;
|
|
61
|
+
onOpenChange: {
|
|
62
|
+
type: PropType<(opened: boolean) => void>;
|
|
63
|
+
};
|
|
55
64
|
}>> & Readonly<{}>, {
|
|
56
65
|
placement: DropPlacementsType;
|
|
57
66
|
trigger: TriggerType;
|
|
@@ -18,7 +18,6 @@ declare const formProps: {
|
|
|
18
18
|
};
|
|
19
19
|
size: {
|
|
20
20
|
type: PropType<SizeType>;
|
|
21
|
-
default: string;
|
|
22
21
|
};
|
|
23
22
|
theme: PropType<ThemeType>;
|
|
24
23
|
shape: PropType<ShapeType>;
|
|
@@ -26,6 +25,9 @@ declare const formProps: {
|
|
|
26
25
|
onSubmit: {
|
|
27
26
|
type: PropType<(e: FormSubmitEvent) => void>;
|
|
28
27
|
};
|
|
28
|
+
onReset: {
|
|
29
|
+
type: PropType<() => void>;
|
|
30
|
+
};
|
|
29
31
|
};
|
|
30
32
|
export interface FormExpose {
|
|
31
33
|
validate: (callback?: (result: {
|
|
@@ -50,7 +52,6 @@ declare const Form: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
50
52
|
};
|
|
51
53
|
size: {
|
|
52
54
|
type: PropType<SizeType>;
|
|
53
|
-
default: string;
|
|
54
55
|
};
|
|
55
56
|
theme: PropType<ThemeType>;
|
|
56
57
|
shape: PropType<ShapeType>;
|
|
@@ -58,6 +59,9 @@ declare const Form: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
58
59
|
onSubmit: {
|
|
59
60
|
type: PropType<(e: FormSubmitEvent) => void>;
|
|
60
61
|
};
|
|
62
|
+
onReset: {
|
|
63
|
+
type: PropType<() => void>;
|
|
64
|
+
};
|
|
61
65
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
62
66
|
layout: {
|
|
63
67
|
type: PropType<DirectionType>;
|
|
@@ -72,7 +76,6 @@ declare const Form: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
72
76
|
};
|
|
73
77
|
size: {
|
|
74
78
|
type: PropType<SizeType>;
|
|
75
|
-
default: string;
|
|
76
79
|
};
|
|
77
80
|
theme: PropType<ThemeType>;
|
|
78
81
|
shape: PropType<ShapeType>;
|
|
@@ -80,8 +83,10 @@ declare const Form: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
80
83
|
onSubmit: {
|
|
81
84
|
type: PropType<(e: FormSubmitEvent) => void>;
|
|
82
85
|
};
|
|
86
|
+
onReset: {
|
|
87
|
+
type: PropType<() => void>;
|
|
88
|
+
};
|
|
83
89
|
}>> & Readonly<{}>, {
|
|
84
90
|
layout: DirectionType;
|
|
85
|
-
size: SizeType;
|
|
86
91
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
87
92
|
export default Form;
|
package/types/form/types.d.ts
CHANGED