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
package/types/global.d.ts
CHANGED
|
@@ -171,6 +171,10 @@ KCol: typeof import('kui-vue')['Col']
|
|
|
171
171
|
KRow: typeof import('kui-vue')['Row']
|
|
172
172
|
Upload: typeof import('kui-vue')['Upload']
|
|
173
173
|
KUpload: typeof import('kui-vue')['Upload']
|
|
174
|
+
Splitter: typeof import('kui-vue')['Splitter']
|
|
175
|
+
KSplitter: typeof import('kui-vue')['Splitter']
|
|
176
|
+
SplitterPanel: typeof import('kui-vue')['SplitterPanel']
|
|
177
|
+
KSplitterPanel: typeof import('kui-vue')['SplitterPanel']
|
|
174
178
|
}
|
|
175
179
|
}
|
|
176
180
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
import { BooleanType, SizeType } from '../const/types';
|
|
2
|
+
import { BooleanType, SizeType, ThemeType } from '../const/types';
|
|
3
3
|
export declare const inputGroupProps: {
|
|
4
4
|
block: {
|
|
5
5
|
type: PropType<boolean | undefined>;
|
|
@@ -10,7 +10,7 @@ export declare const inputGroupProps: {
|
|
|
10
10
|
default: boolean;
|
|
11
11
|
};
|
|
12
12
|
theme: {
|
|
13
|
-
type:
|
|
13
|
+
type: PropType<ThemeType>;
|
|
14
14
|
default: string;
|
|
15
15
|
};
|
|
16
16
|
size: {
|
|
@@ -28,7 +28,7 @@ declare const InputGroup: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
28
28
|
default: boolean;
|
|
29
29
|
};
|
|
30
30
|
theme: {
|
|
31
|
-
type:
|
|
31
|
+
type: PropType<ThemeType>;
|
|
32
32
|
default: string;
|
|
33
33
|
};
|
|
34
34
|
size: {
|
|
@@ -44,7 +44,7 @@ declare const InputGroup: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
44
44
|
default: boolean;
|
|
45
45
|
};
|
|
46
46
|
theme: {
|
|
47
|
-
type:
|
|
47
|
+
type: PropType<ThemeType>;
|
|
48
48
|
default: string;
|
|
49
49
|
};
|
|
50
50
|
size: {
|
|
@@ -53,6 +53,6 @@ declare const InputGroup: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
53
53
|
}>> & Readonly<{}>, {
|
|
54
54
|
block: boolean | undefined;
|
|
55
55
|
compact: boolean | undefined;
|
|
56
|
-
theme:
|
|
56
|
+
theme: ThemeType;
|
|
57
57
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
58
58
|
export default InputGroup;
|
|
@@ -16,9 +16,6 @@ declare const inputProps: {
|
|
|
16
16
|
modelValue: {
|
|
17
17
|
type: PropType<any>;
|
|
18
18
|
};
|
|
19
|
-
value: {
|
|
20
|
-
type: PropType<any>;
|
|
21
|
-
};
|
|
22
19
|
disabled: BooleanType;
|
|
23
20
|
type: {
|
|
24
21
|
type: PropType<"text" | "password" | "hidden">;
|
|
@@ -49,7 +46,13 @@ declare const inputProps: {
|
|
|
49
46
|
onIconClick: {
|
|
50
47
|
type: PropType<(e: PointerEvent) => void>;
|
|
51
48
|
};
|
|
49
|
+
onClear: {
|
|
50
|
+
type: PropType<() => void>;
|
|
51
|
+
};
|
|
52
|
+
onChange: {
|
|
53
|
+
type: PropType<(value: string) => void>;
|
|
54
|
+
};
|
|
52
55
|
};
|
|
53
|
-
export type InputProps = Partial<ExtractPropTypes<typeof inputProps>> & InputHTMLAttributes
|
|
56
|
+
export type InputProps = Partial<ExtractPropTypes<typeof inputProps>> & Omit<InputHTMLAttributes, "onChange">;
|
|
54
57
|
declare const _default: DefineComponent<InputProps>;
|
|
55
58
|
export default _default;
|
|
@@ -2,7 +2,6 @@ import { DefineComponent, ExtractPropTypes, PropType, TextareaHTMLAttributes } f
|
|
|
2
2
|
import { BooleanType, ShapeType, SizeType, ThemeType } from '../const/types';
|
|
3
3
|
export declare const textAreaProps: {
|
|
4
4
|
modelValue: PropType<any>;
|
|
5
|
-
value: PropType<any>;
|
|
6
5
|
theme: {
|
|
7
6
|
type: PropType<ThemeType>;
|
|
8
7
|
default: string;
|
|
@@ -18,7 +17,10 @@ export declare const textAreaProps: {
|
|
|
18
17
|
};
|
|
19
18
|
disabled: BooleanType;
|
|
20
19
|
readonly: BooleanType;
|
|
20
|
+
onChange: {
|
|
21
|
+
type: PropType<(value: string) => void>;
|
|
22
|
+
};
|
|
21
23
|
};
|
|
22
|
-
export type TextAreaProps = Partial<ExtractPropTypes<typeof textAreaProps>> & TextareaHTMLAttributes
|
|
24
|
+
export type TextAreaProps = Partial<ExtractPropTypes<typeof textAreaProps>> & Omit<TextareaHTMLAttributes, "onChange">;
|
|
23
25
|
declare const _default: DefineComponent<TextAreaProps>;
|
|
24
26
|
export default _default;
|
|
@@ -3,7 +3,6 @@ import { BooleanType, ShapeType, SizeType, ThemeType } from '../const/types';
|
|
|
3
3
|
import { IconType } from '../icon';
|
|
4
4
|
export declare const inputNumberProps: {
|
|
5
5
|
modelValue: PropType<number | string>;
|
|
6
|
-
value: PropType<number | string>;
|
|
7
6
|
min: {
|
|
8
7
|
type: NumberConstructor;
|
|
9
8
|
default: number;
|
|
@@ -44,7 +43,6 @@ export declare const inputNumberProps: {
|
|
|
44
43
|
export type InputNumberProps = ExtractPropTypes<typeof inputNumberProps>;
|
|
45
44
|
declare const InputNumber: import('vue').DefineComponent<ExtractPropTypes<{
|
|
46
45
|
modelValue: PropType<number | string>;
|
|
47
|
-
value: PropType<number | string>;
|
|
48
46
|
min: {
|
|
49
47
|
type: NumberConstructor;
|
|
50
48
|
default: number;
|
|
@@ -83,7 +81,6 @@ declare const InputNumber: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
83
81
|
onChange: PropType<(value: number) => void>;
|
|
84
82
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
85
83
|
modelValue: PropType<number | string>;
|
|
86
|
-
value: PropType<number | string>;
|
|
87
84
|
min: {
|
|
88
85
|
type: NumberConstructor;
|
|
89
86
|
default: number;
|
|
@@ -26,7 +26,7 @@ export declare const menuProps: {
|
|
|
26
26
|
type: PropType<(data: MenuSelectEvent) => void>;
|
|
27
27
|
};
|
|
28
28
|
onOpenChange: {
|
|
29
|
-
type: PropType<(
|
|
29
|
+
type: PropType<(openKeys: string[]) => void>;
|
|
30
30
|
};
|
|
31
31
|
};
|
|
32
32
|
export interface MenuOptionsProps {
|
|
@@ -59,7 +59,7 @@ declare const Menu: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
59
59
|
type: PropType<(data: MenuSelectEvent) => void>;
|
|
60
60
|
};
|
|
61
61
|
onOpenChange: {
|
|
62
|
-
type: PropType<(
|
|
62
|
+
type: PropType<(openKeys: string[]) => void>;
|
|
63
63
|
};
|
|
64
64
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
65
65
|
theme: StringConstructor;
|
|
@@ -82,7 +82,7 @@ declare const Menu: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
82
82
|
type: PropType<(data: MenuSelectEvent) => void>;
|
|
83
83
|
};
|
|
84
84
|
onOpenChange: {
|
|
85
|
-
type: PropType<(
|
|
85
|
+
type: PropType<(openKeys: string[]) => void>;
|
|
86
86
|
};
|
|
87
87
|
}>> & Readonly<{}>, {
|
|
88
88
|
mode: DirectionType;
|
package/types/message/index.d.ts
CHANGED
|
@@ -15,7 +15,8 @@ export interface MessageApi {
|
|
|
15
15
|
success(content: string, duration?: number, onClose?: () => void): void;
|
|
16
16
|
warning(content: string, duration?: number, onClose?: () => void): void;
|
|
17
17
|
error(content: string, duration?: number, onClose?: () => void): void;
|
|
18
|
-
|
|
18
|
+
loading(content: string, duration?: number): () => void;
|
|
19
|
+
show(options: MessageOptions): () => void;
|
|
19
20
|
destroy(): void;
|
|
20
21
|
}
|
|
21
22
|
declare const message: MessageApi;
|
|
@@ -7,6 +7,10 @@ export declare const modalProps: {
|
|
|
7
7
|
cancelText: StringConstructor;
|
|
8
8
|
top: NumberConstructor;
|
|
9
9
|
width: NumberConstructor;
|
|
10
|
+
transfer: {
|
|
11
|
+
type: BooleanType;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
10
14
|
mask: {
|
|
11
15
|
type: BooleanType;
|
|
12
16
|
default: boolean;
|
|
@@ -40,6 +44,9 @@ export declare const modalProps: {
|
|
|
40
44
|
onCancel: {
|
|
41
45
|
type: PropType<() => void>;
|
|
42
46
|
};
|
|
47
|
+
onOpenChange: {
|
|
48
|
+
type: PropType<(opened: boolean) => void>;
|
|
49
|
+
};
|
|
43
50
|
};
|
|
44
51
|
export type ModalProps = ExtractPropTypes<typeof modalProps>;
|
|
45
52
|
declare const Modal: import('vue').DefineComponent<ExtractPropTypes<{
|
|
@@ -49,6 +56,10 @@ declare const Modal: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
49
56
|
cancelText: StringConstructor;
|
|
50
57
|
top: NumberConstructor;
|
|
51
58
|
width: NumberConstructor;
|
|
59
|
+
transfer: {
|
|
60
|
+
type: BooleanType;
|
|
61
|
+
default: boolean;
|
|
62
|
+
};
|
|
52
63
|
mask: {
|
|
53
64
|
type: BooleanType;
|
|
54
65
|
default: boolean;
|
|
@@ -82,6 +93,9 @@ declare const Modal: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
82
93
|
onCancel: {
|
|
83
94
|
type: PropType<() => void>;
|
|
84
95
|
};
|
|
96
|
+
onOpenChange: {
|
|
97
|
+
type: PropType<(opened: boolean) => void>;
|
|
98
|
+
};
|
|
85
99
|
}>, () => import("vue/jsx-runtime").JSX.Element | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
86
100
|
modelValue: BooleanType;
|
|
87
101
|
title: StringConstructor;
|
|
@@ -89,6 +103,10 @@ declare const Modal: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
89
103
|
cancelText: StringConstructor;
|
|
90
104
|
top: NumberConstructor;
|
|
91
105
|
width: NumberConstructor;
|
|
106
|
+
transfer: {
|
|
107
|
+
type: BooleanType;
|
|
108
|
+
default: boolean;
|
|
109
|
+
};
|
|
92
110
|
mask: {
|
|
93
111
|
type: BooleanType;
|
|
94
112
|
default: boolean;
|
|
@@ -122,9 +140,13 @@ declare const Modal: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
122
140
|
onCancel: {
|
|
123
141
|
type: PropType<() => void>;
|
|
124
142
|
};
|
|
143
|
+
onOpenChange: {
|
|
144
|
+
type: PropType<(opened: boolean) => void>;
|
|
145
|
+
};
|
|
125
146
|
}>> & Readonly<{}>, {
|
|
126
147
|
mask: boolean | undefined;
|
|
127
148
|
footer: boolean | undefined;
|
|
149
|
+
transfer: boolean | undefined;
|
|
128
150
|
maskClosable: boolean | undefined;
|
|
129
151
|
escKey: boolean | undefined;
|
|
130
152
|
showClose: boolean | undefined;
|
|
@@ -1,2 +1,8 @@
|
|
|
1
1
|
import { VNode } from 'vue';
|
|
2
|
-
|
|
2
|
+
import { ContentProps } from './content';
|
|
3
|
+
export interface NoticeInstance {
|
|
4
|
+
show: (options: ContentProps) => () => void;
|
|
5
|
+
clean: () => void;
|
|
6
|
+
destroy: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const createInstance: (type: string, context?: VNode) => NoticeInstance;
|
package/types/page/index.d.ts
CHANGED
|
@@ -17,7 +17,6 @@ export declare const pageProps: {
|
|
|
17
17
|
default: () => number[];
|
|
18
18
|
};
|
|
19
19
|
size: {
|
|
20
|
-
default: string;
|
|
21
20
|
type: PropType<SizeType>;
|
|
22
21
|
};
|
|
23
22
|
total: {
|
|
@@ -54,7 +53,6 @@ declare const Page: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
54
53
|
default: () => number[];
|
|
55
54
|
};
|
|
56
55
|
size: {
|
|
57
|
-
default: string;
|
|
58
56
|
type: PropType<SizeType>;
|
|
59
57
|
};
|
|
60
58
|
total: {
|
|
@@ -89,7 +87,6 @@ declare const Page: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
89
87
|
default: () => number[];
|
|
90
88
|
};
|
|
91
89
|
size: {
|
|
92
|
-
default: string;
|
|
93
90
|
type: PropType<SizeType>;
|
|
94
91
|
};
|
|
95
92
|
total: {
|
|
@@ -109,7 +106,6 @@ declare const Page: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
109
106
|
};
|
|
110
107
|
}>> & Readonly<{}>, {
|
|
111
108
|
page: number;
|
|
112
|
-
size: SizeType;
|
|
113
109
|
theme: ThemeType;
|
|
114
110
|
showTotal: boolean | undefined;
|
|
115
111
|
sizeData: number[];
|
|
@@ -26,7 +26,6 @@ export declare const progressProps: {
|
|
|
26
26
|
};
|
|
27
27
|
size: {
|
|
28
28
|
type: PropType<SizeType>;
|
|
29
|
-
default: string;
|
|
30
29
|
};
|
|
31
30
|
status: {
|
|
32
31
|
type: PropType<ProgressStatus>;
|
|
@@ -65,7 +64,6 @@ declare const Progress: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
65
64
|
};
|
|
66
65
|
size: {
|
|
67
66
|
type: PropType<SizeType>;
|
|
68
|
-
default: string;
|
|
69
67
|
};
|
|
70
68
|
status: {
|
|
71
69
|
type: PropType<ProgressStatus>;
|
|
@@ -102,7 +100,6 @@ declare const Progress: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
102
100
|
};
|
|
103
101
|
size: {
|
|
104
102
|
type: PropType<SizeType>;
|
|
105
|
-
default: string;
|
|
106
103
|
};
|
|
107
104
|
status: {
|
|
108
105
|
type: PropType<ProgressStatus>;
|
|
@@ -120,7 +117,6 @@ declare const Progress: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
120
117
|
type: ProgressType;
|
|
121
118
|
strokeLinecap: ProgressStroke;
|
|
122
119
|
strokeWidth: number;
|
|
123
|
-
size: SizeType;
|
|
124
120
|
status: ProgressStatus;
|
|
125
121
|
percent: number;
|
|
126
122
|
gapDegree: number;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
2
|
import { BooleanType, ShapeType, SizeType } from '../const/types';
|
|
3
3
|
import { IconType } from '../icon';
|
|
4
|
+
import { ChangeEvent } from './types';
|
|
4
5
|
export declare const radioButtonProps: {
|
|
5
6
|
modelValue: {
|
|
6
7
|
type: BooleanConstructor[];
|
|
@@ -18,11 +19,11 @@ export declare const radioButtonProps: {
|
|
|
18
19
|
icon: PropType<IconType[]>;
|
|
19
20
|
size: {
|
|
20
21
|
type: PropType<SizeType>;
|
|
21
|
-
default: string;
|
|
22
22
|
};
|
|
23
23
|
shape: {
|
|
24
24
|
type: PropType<ShapeType>;
|
|
25
25
|
};
|
|
26
|
+
onChange: PropType<(event: ChangeEvent) => void>;
|
|
26
27
|
};
|
|
27
28
|
export type RadioButtonProps = ExtractPropTypes<typeof radioButtonProps>;
|
|
28
29
|
declare const RadioButton: import('vue').DefineComponent<ExtractPropTypes<{
|
|
@@ -42,11 +43,11 @@ declare const RadioButton: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
42
43
|
icon: PropType<IconType[]>;
|
|
43
44
|
size: {
|
|
44
45
|
type: PropType<SizeType>;
|
|
45
|
-
default: string;
|
|
46
46
|
};
|
|
47
47
|
shape: {
|
|
48
48
|
type: PropType<ShapeType>;
|
|
49
49
|
};
|
|
50
|
+
onChange: PropType<(event: ChangeEvent) => void>;
|
|
50
51
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
51
52
|
modelValue: {
|
|
52
53
|
type: BooleanConstructor[];
|
|
@@ -64,13 +65,12 @@ declare const RadioButton: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
64
65
|
icon: PropType<IconType[]>;
|
|
65
66
|
size: {
|
|
66
67
|
type: PropType<SizeType>;
|
|
67
|
-
default: string;
|
|
68
68
|
};
|
|
69
69
|
shape: {
|
|
70
70
|
type: PropType<ShapeType>;
|
|
71
71
|
};
|
|
72
|
+
onChange: PropType<(event: ChangeEvent) => void>;
|
|
72
73
|
}>> & Readonly<{}>, {
|
|
73
|
-
size: SizeType;
|
|
74
74
|
modelValue: boolean;
|
|
75
75
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
76
76
|
export default RadioButton;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
import { BooleanType, DirectionType, ShapeType, SizeType, ThemeType } from '../const/types';
|
|
2
|
+
import { BooleanType, DirectionType, RadioType, ShapeType, SizeType, ThemeType } from '../const/types';
|
|
3
3
|
import { IconType } from '../icon';
|
|
4
4
|
export interface RadioOption {
|
|
5
5
|
label?: string;
|
|
6
6
|
value?: string | number;
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
icon?: IconType[];
|
|
9
|
+
[key: string]: any;
|
|
9
10
|
}
|
|
10
11
|
export declare const radioGroupProps: {
|
|
11
12
|
modelValue: {
|
|
@@ -25,7 +26,7 @@ export declare const radioGroupProps: {
|
|
|
25
26
|
};
|
|
26
27
|
shape: PropType<ShapeType>;
|
|
27
28
|
options: PropType<RadioOption[]>;
|
|
28
|
-
type: PropType<
|
|
29
|
+
type: PropType<RadioType>;
|
|
29
30
|
onChange: PropType<(value: string | number) => void>;
|
|
30
31
|
};
|
|
31
32
|
export type RadioGroupProps = ExtractPropTypes<typeof radioGroupProps>;
|
|
@@ -47,7 +48,7 @@ declare const RadioGroup: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
47
48
|
};
|
|
48
49
|
shape: PropType<ShapeType>;
|
|
49
50
|
options: PropType<RadioOption[]>;
|
|
50
|
-
type: PropType<
|
|
51
|
+
type: PropType<RadioType>;
|
|
51
52
|
onChange: PropType<(value: string | number) => void>;
|
|
52
53
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
53
54
|
modelValue: {
|
|
@@ -67,7 +68,7 @@ declare const RadioGroup: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
67
68
|
};
|
|
68
69
|
shape: PropType<ShapeType>;
|
|
69
70
|
options: PropType<RadioOption[]>;
|
|
70
|
-
type: PropType<
|
|
71
|
+
type: PropType<RadioType>;
|
|
71
72
|
onChange: PropType<(value: string | number) => void>;
|
|
72
73
|
}>> & Readonly<{}>, {
|
|
73
74
|
direction: DirectionType;
|
|
@@ -20,7 +20,6 @@ export declare const radioProps: {
|
|
|
20
20
|
};
|
|
21
21
|
size: {
|
|
22
22
|
type: PropType<SizeType>;
|
|
23
|
-
default: string;
|
|
24
23
|
};
|
|
25
24
|
onChange: PropType<(e: ChangeEvent) => void>;
|
|
26
25
|
};
|
|
@@ -44,7 +43,6 @@ declare const Radio: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
44
43
|
};
|
|
45
44
|
size: {
|
|
46
45
|
type: PropType<SizeType>;
|
|
47
|
-
default: string;
|
|
48
46
|
};
|
|
49
47
|
onChange: PropType<(e: ChangeEvent) => void>;
|
|
50
48
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
@@ -66,11 +64,9 @@ declare const Radio: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
66
64
|
};
|
|
67
65
|
size: {
|
|
68
66
|
type: PropType<SizeType>;
|
|
69
|
-
default: string;
|
|
70
67
|
};
|
|
71
68
|
onChange: PropType<(e: ChangeEvent) => void>;
|
|
72
69
|
}>> & Readonly<{}>, {
|
|
73
|
-
size: SizeType;
|
|
74
70
|
theme: ThemeType;
|
|
75
71
|
modelValue: string | number | boolean;
|
|
76
72
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -10,7 +10,6 @@ export declare const selectProps: {
|
|
|
10
10
|
placeholder: StringConstructor;
|
|
11
11
|
size: {
|
|
12
12
|
type: PropType<SizeType>;
|
|
13
|
-
default: string;
|
|
14
13
|
};
|
|
15
14
|
placement: {
|
|
16
15
|
type: PropType<DropPlacementsType>;
|
|
@@ -19,7 +18,6 @@ export declare const selectProps: {
|
|
|
19
18
|
width: NumberConstructor;
|
|
20
19
|
maxTagCount: NumberConstructor;
|
|
21
20
|
modelValue: PropType<string | number | any[]>;
|
|
22
|
-
value: PropType<string | number | any[]>;
|
|
23
21
|
clearable: {
|
|
24
22
|
type: BooleanType;
|
|
25
23
|
default: boolean;
|
|
@@ -50,13 +48,13 @@ export declare const selectProps: {
|
|
|
50
48
|
onSearch: PropType<(e: InputEvent) => void>;
|
|
51
49
|
onChange: PropType<(value: string | number | any[]) => void>;
|
|
52
50
|
onSelect: PropType<(option: SelectOption) => void>;
|
|
51
|
+
onOpenChange: PropType<(opened: boolean) => void>;
|
|
53
52
|
};
|
|
54
53
|
export type SelectProps = ExtractPropTypes<typeof selectProps>;
|
|
55
54
|
declare const Select: import('vue').DefineComponent<ExtractPropTypes<{
|
|
56
55
|
placeholder: StringConstructor;
|
|
57
56
|
size: {
|
|
58
57
|
type: PropType<SizeType>;
|
|
59
|
-
default: string;
|
|
60
58
|
};
|
|
61
59
|
placement: {
|
|
62
60
|
type: PropType<DropPlacementsType>;
|
|
@@ -65,7 +63,6 @@ declare const Select: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
65
63
|
width: NumberConstructor;
|
|
66
64
|
maxTagCount: NumberConstructor;
|
|
67
65
|
modelValue: PropType<string | number | any[]>;
|
|
68
|
-
value: PropType<string | number | any[]>;
|
|
69
66
|
clearable: {
|
|
70
67
|
type: BooleanType;
|
|
71
68
|
default: boolean;
|
|
@@ -96,11 +93,11 @@ declare const Select: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
96
93
|
onSearch: PropType<(e: InputEvent) => void>;
|
|
97
94
|
onChange: PropType<(value: string | number | any[]) => void>;
|
|
98
95
|
onSelect: PropType<(option: SelectOption) => void>;
|
|
96
|
+
onOpenChange: PropType<(opened: boolean) => void>;
|
|
99
97
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
100
98
|
placeholder: StringConstructor;
|
|
101
99
|
size: {
|
|
102
100
|
type: PropType<SizeType>;
|
|
103
|
-
default: string;
|
|
104
101
|
};
|
|
105
102
|
placement: {
|
|
106
103
|
type: PropType<DropPlacementsType>;
|
|
@@ -109,7 +106,6 @@ declare const Select: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
109
106
|
width: NumberConstructor;
|
|
110
107
|
maxTagCount: NumberConstructor;
|
|
111
108
|
modelValue: PropType<string | number | any[]>;
|
|
112
|
-
value: PropType<string | number | any[]>;
|
|
113
109
|
clearable: {
|
|
114
110
|
type: BooleanType;
|
|
115
111
|
default: boolean;
|
|
@@ -140,8 +136,8 @@ declare const Select: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
140
136
|
onSearch: PropType<(e: InputEvent) => void>;
|
|
141
137
|
onChange: PropType<(value: string | number | any[]) => void>;
|
|
142
138
|
onSelect: PropType<(option: SelectOption) => void>;
|
|
139
|
+
onOpenChange: PropType<(opened: boolean) => void>;
|
|
143
140
|
}>> & Readonly<{}>, {
|
|
144
|
-
size: SizeType;
|
|
145
141
|
bordered: boolean | undefined;
|
|
146
142
|
theme: ThemeType;
|
|
147
143
|
placement: DropPlacementsType;
|
package/types/spin/index.d.ts
CHANGED
|
@@ -11,7 +11,6 @@ export declare const spinProps: {
|
|
|
11
11
|
};
|
|
12
12
|
size: {
|
|
13
13
|
type: PropType<SizeType>;
|
|
14
|
-
default: string;
|
|
15
14
|
};
|
|
16
15
|
mode: {
|
|
17
16
|
type: PropType<SpinModeType>;
|
|
@@ -30,7 +29,6 @@ declare const Spin: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
30
29
|
};
|
|
31
30
|
size: {
|
|
32
31
|
type: PropType<SizeType>;
|
|
33
|
-
default: string;
|
|
34
32
|
};
|
|
35
33
|
mode: {
|
|
36
34
|
type: PropType<SpinModeType>;
|
|
@@ -47,14 +45,12 @@ declare const Spin: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
47
45
|
};
|
|
48
46
|
size: {
|
|
49
47
|
type: PropType<SizeType>;
|
|
50
|
-
default: string;
|
|
51
48
|
};
|
|
52
49
|
mode: {
|
|
53
50
|
type: PropType<SpinModeType>;
|
|
54
51
|
default: string;
|
|
55
52
|
};
|
|
56
53
|
}>> & Readonly<{}>, {
|
|
57
|
-
size: SizeType;
|
|
58
54
|
mode: SpinModeType;
|
|
59
55
|
modelValue: boolean;
|
|
60
56
|
delay: number;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
|
2
|
+
declare const splitterPanelProps: {
|
|
3
|
+
size: {
|
|
4
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
5
|
+
};
|
|
6
|
+
min: {
|
|
7
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
8
|
+
};
|
|
9
|
+
max: {
|
|
10
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export type SplitterPanelProps = ExtractPropTypes<typeof splitterPanelProps>;
|
|
14
|
+
export declare const SplitterPanel: import('vue').DefineComponent<ExtractPropTypes<{
|
|
15
|
+
size: {
|
|
16
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
17
|
+
};
|
|
18
|
+
min: {
|
|
19
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
20
|
+
};
|
|
21
|
+
max: {
|
|
22
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
23
|
+
};
|
|
24
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
25
|
+
size: {
|
|
26
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
27
|
+
};
|
|
28
|
+
min: {
|
|
29
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
30
|
+
};
|
|
31
|
+
max: {
|
|
32
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
33
|
+
};
|
|
34
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
35
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { DirectionType } from '../const/types';
|
|
3
|
+
declare const splitterProps: {
|
|
4
|
+
direction: {
|
|
5
|
+
type: PropType<DirectionType>;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
onResize: PropType<(sizes: number[]) => void>;
|
|
9
|
+
onResizeEnd: PropType<(sizes: number[]) => void>;
|
|
10
|
+
onResizeStart: PropType<(sizes: number[]) => void>;
|
|
11
|
+
};
|
|
12
|
+
export type SplitterProps = ExtractPropTypes<typeof splitterProps>;
|
|
13
|
+
export declare const Splitter: import('vue').DefineComponent<ExtractPropTypes<{
|
|
14
|
+
direction: {
|
|
15
|
+
type: PropType<DirectionType>;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
onResize: PropType<(sizes: number[]) => void>;
|
|
19
|
+
onResizeEnd: PropType<(sizes: number[]) => void>;
|
|
20
|
+
onResizeStart: PropType<(sizes: number[]) => void>;
|
|
21
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
22
|
+
direction: {
|
|
23
|
+
type: PropType<DirectionType>;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
onResize: PropType<(sizes: number[]) => void>;
|
|
27
|
+
onResizeEnd: PropType<(sizes: number[]) => void>;
|
|
28
|
+
onResizeStart: PropType<(sizes: number[]) => void>;
|
|
29
|
+
}>> & Readonly<{}>, {
|
|
30
|
+
direction: DirectionType;
|
|
31
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
32
|
+
export {};
|