kui-vue 5.3.1 → 5.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -18
- package/README.zh-CN.md +40 -35
- package/dist/index.js +2 -2
- package/es/index.js +2273 -1111
- 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 +20 -18
- package/style/index.css +2 -2
- package/types/affix/index.d.ts +7 -5
- package/types/anchor/anchor.d.ts +17 -2
- package/types/avatar/avatar-group.d.ts +9 -9
- package/types/avatar/avatar.d.ts +15 -9
- package/types/avatar/context.d.ts +8 -0
- package/types/badge/index.d.ts +3 -0
- package/types/card/card-meta.d.ts +17 -0
- package/types/card/index.d.ts +7 -1
- package/types/cascader/index.d.ts +122 -0
- package/types/cascader/types.d.ts +63 -0
- package/types/collapse/collapse-panel.d.ts +0 -4
- package/types/collapse/context.d.ts +7 -0
- package/types/color-picker/index.d.ts +0 -1
- package/types/components.d.ts +13 -3
- package/types/const/types.d.ts +1 -1
- package/types/date-picker/index.d.ts +2 -3
- package/types/drawer/index.d.ts +6 -8
- package/types/dropdown/dropdown.d.ts +0 -1
- package/types/empty/index.d.ts +4 -1
- package/types/feature-card/index.d.ts +33 -0
- package/types/feedback-panel/feedback-panel.d.ts +37 -0
- package/types/feedback-panel/index.d.ts +3 -0
- package/types/form/form.d.ts +3 -5
- package/types/form/types.d.ts +1 -1
- package/types/global.d.ts +12 -0
- package/types/image/context.d.ts +9 -0
- package/types/image/utils.d.ts +1 -1
- package/types/input-otp/index.d.ts +3 -0
- package/types/input-otp/input-otp.d.ts +38 -0
- package/types/menu/index.d.ts +1 -1
- package/types/menu/menu-group.d.ts +4 -13
- package/types/menu/menu-item.d.ts +3 -6
- package/types/menu/recursive-menu.d.ts +0 -3
- package/types/menu/sub-menu.d.ts +4 -9
- package/types/modal/modal.d.ts +1 -16
- package/types/notice/index.d.ts +1 -0
- package/types/popconfirm/index.d.ts +1 -3
- package/types/poptip/index.d.ts +1 -3
- package/types/result/index.d.ts +3 -0
- package/types/result/result.d.ts +33 -0
- package/types/select/select.d.ts +2 -3
- package/types/skeleton/skeleton-avatar.d.ts +6 -6
- package/types/skeleton/skeleton-button.d.ts +6 -6
- package/types/skeleton/skeleton-image.d.ts +6 -6
- package/types/skeleton/skeleton-text.d.ts +6 -6
- package/types/skeleton/skeleton.d.ts +6 -6
- package/types/skeleton/types.d.ts +3 -3
- package/types/skeleton/use-skeleton-loading.d.ts +2 -0
- package/types/slider/thumb.d.ts +2 -2
- package/types/stat-card/stat-card.d.ts +3 -1
- package/types/table/index.d.ts +19 -18
- package/types/tooltip/index.d.ts +1 -3
- package/types/tree/context.d.ts +6 -0
- package/types/tree/index.d.ts +0 -6
- package/types/tree-select/index.d.ts +2 -15
- package/types/upload/index.d.ts +3 -3
- package/types/utils/theme.d.ts +1 -1
- package/vetur/attributes.json +396 -188
- package/vetur/tags.json +118 -43
- package/vetur/web-types.json +672 -246
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType, VNodeChild } from 'vue';
|
|
2
|
+
import { IconType } from '../icon';
|
|
3
|
+
export type FeedbackPanelKind = "positive" | "negative" | "caution" | "neutral";
|
|
4
|
+
declare const feedbackPanelProps: {
|
|
5
|
+
kind: {
|
|
6
|
+
type: PropType<FeedbackPanelKind>;
|
|
7
|
+
default: string;
|
|
8
|
+
};
|
|
9
|
+
heading: PropType<VNodeChild>;
|
|
10
|
+
description: PropType<VNodeChild>;
|
|
11
|
+
symbol: PropType<IconType[]>;
|
|
12
|
+
compact: BooleanConstructor;
|
|
13
|
+
};
|
|
14
|
+
export type FeedbackPanelProps = ExtractPropTypes<typeof feedbackPanelProps>;
|
|
15
|
+
declare const FeedbackPanel: import('vue').DefineComponent<ExtractPropTypes<{
|
|
16
|
+
kind: {
|
|
17
|
+
type: PropType<FeedbackPanelKind>;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
heading: PropType<VNodeChild>;
|
|
21
|
+
description: PropType<VNodeChild>;
|
|
22
|
+
symbol: PropType<IconType[]>;
|
|
23
|
+
compact: BooleanConstructor;
|
|
24
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
25
|
+
kind: {
|
|
26
|
+
type: PropType<FeedbackPanelKind>;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
heading: PropType<VNodeChild>;
|
|
30
|
+
description: PropType<VNodeChild>;
|
|
31
|
+
symbol: PropType<IconType[]>;
|
|
32
|
+
compact: BooleanConstructor;
|
|
33
|
+
}>> & Readonly<{}>, {
|
|
34
|
+
compact: boolean;
|
|
35
|
+
kind: FeedbackPanelKind;
|
|
36
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
37
|
+
export default FeedbackPanel;
|
package/types/form/form.d.ts
CHANGED
|
@@ -30,12 +30,10 @@ declare const formProps: {
|
|
|
30
30
|
};
|
|
31
31
|
};
|
|
32
32
|
export interface FormExpose {
|
|
33
|
-
validate: (callback?: (result:
|
|
34
|
-
valid: boolean;
|
|
35
|
-
}) => void) => void;
|
|
33
|
+
validate: (callback?: (result: FormSubmitEvent) => void) => Promise<FormSubmitEvent>;
|
|
36
34
|
reset: () => void;
|
|
37
|
-
test: (key: string) =>
|
|
38
|
-
submit: (
|
|
35
|
+
test: (key: string) => Promise<boolean> | undefined;
|
|
36
|
+
submit: () => Promise<void>;
|
|
39
37
|
}
|
|
40
38
|
export type FormProps = ExtractPropTypes<typeof formProps>;
|
|
41
39
|
declare const Form: import('vue').DefineComponent<ExtractPropTypes<{
|
package/types/form/types.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export interface ColProps {
|
|
|
5
5
|
export interface FormRule {
|
|
6
6
|
required?: boolean;
|
|
7
7
|
message?: string;
|
|
8
|
-
validator?: (rule: FormRule, value: any, callback: (error?: Error) => void) => void
|
|
8
|
+
validator?: (rule: FormRule, value: any, callback: (error?: Error) => void) => void | Promise<void>;
|
|
9
9
|
pattern?: RegExp;
|
|
10
10
|
type?: "mobile" | "mail" | "number";
|
|
11
11
|
min?: number;
|
package/types/global.d.ts
CHANGED
|
@@ -27,8 +27,14 @@ KBadge: typeof import('kui-vue')['Badge']
|
|
|
27
27
|
KButton: typeof import('kui-vue')['Button']
|
|
28
28
|
ButtonGroup: typeof import('kui-vue')['ButtonGroup']
|
|
29
29
|
KButtonGroup: typeof import('kui-vue')['ButtonGroup']
|
|
30
|
+
Cascader: typeof import('kui-vue')['Cascader']
|
|
31
|
+
KCascader: typeof import('kui-vue')['Cascader']
|
|
30
32
|
Card: typeof import('kui-vue')['Card']
|
|
31
33
|
KCard: typeof import('kui-vue')['Card']
|
|
34
|
+
CardMeta: typeof import('kui-vue')['CardMeta']
|
|
35
|
+
KCardMeta: typeof import('kui-vue')['CardMeta']
|
|
36
|
+
FeatureCard: typeof import('kui-vue')['FeatureCard']
|
|
37
|
+
KFeatureCard: typeof import('kui-vue')['FeatureCard']
|
|
32
38
|
Carousel: typeof import('kui-vue')['Carousel']
|
|
33
39
|
KCarousel: typeof import('kui-vue')['Carousel']
|
|
34
40
|
CarouselItem: typeof import('kui-vue')['CarouselItem']
|
|
@@ -80,6 +86,8 @@ KInput: typeof import('kui-vue')['Input']
|
|
|
80
86
|
KInputGroup: typeof import('kui-vue')['InputGroup']
|
|
81
87
|
TextArea: typeof import('kui-vue')['TextArea']
|
|
82
88
|
KTextArea: typeof import('kui-vue')['TextArea']
|
|
89
|
+
InputOTP: typeof import('kui-vue')['InputOTP']
|
|
90
|
+
KInputOTP: typeof import('kui-vue')['InputOTP']
|
|
83
91
|
InputNumber: typeof import('kui-vue')['InputNumber']
|
|
84
92
|
KInputNumber: typeof import('kui-vue')['InputNumber']
|
|
85
93
|
Content: typeof import('kui-vue')['Content']
|
|
@@ -122,6 +130,10 @@ KRadioButton: typeof import('kui-vue')['RadioButton']
|
|
|
122
130
|
KRadioGroup: typeof import('kui-vue')['RadioGroup']
|
|
123
131
|
Rate: typeof import('kui-vue')['Rate']
|
|
124
132
|
KRate: typeof import('kui-vue')['Rate']
|
|
133
|
+
Result: typeof import('kui-vue')['Result']
|
|
134
|
+
KResult: typeof import('kui-vue')['Result']
|
|
135
|
+
FeedbackPanel: typeof import('kui-vue')['FeedbackPanel']
|
|
136
|
+
KFeedbackPanel: typeof import('kui-vue')['FeedbackPanel']
|
|
125
137
|
Option: typeof import('kui-vue')['Option']
|
|
126
138
|
KOption: typeof import('kui-vue')['Option']
|
|
127
139
|
Select: typeof import('kui-vue')['Select']
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { InjectionKey, Slots } from 'vue';
|
|
2
|
+
import { ImagePreviewProps } from './preview';
|
|
3
|
+
export interface ImageGroupContext {
|
|
4
|
+
show: (props: ImagePreviewProps, slots: Slots) => void;
|
|
5
|
+
togglePanel: () => void;
|
|
6
|
+
register: (src?: string) => void;
|
|
7
|
+
unregister: (src?: string) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const imageGroupKey: InjectionKey<ImageGroupContext>;
|
package/types/image/utils.d.ts
CHANGED
|
@@ -2,5 +2,5 @@ interface ImageInfo {
|
|
|
2
2
|
width: number;
|
|
3
3
|
height: number;
|
|
4
4
|
}
|
|
5
|
-
export declare const loadImage: (src: string, callback?: (info: ImageInfo) => void, err?: () => void) => void;
|
|
5
|
+
export declare const loadImage: (src: string, callback?: (info: ImageInfo) => void, err?: () => void) => () => void;
|
|
6
6
|
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { DefineComponent, ExtractPropTypes, PropType, VNodeChild } from 'vue';
|
|
2
|
+
import { BooleanType, ShapeType, SizeType, ThemeType } from '../const/types';
|
|
3
|
+
export type InputOTPValidator = (value: string) => boolean;
|
|
4
|
+
declare const inputOTPProps: {
|
|
5
|
+
modelValue: {
|
|
6
|
+
type: PropType<string | number>;
|
|
7
|
+
default: string;
|
|
8
|
+
};
|
|
9
|
+
length: {
|
|
10
|
+
type: NumberConstructor;
|
|
11
|
+
default: number;
|
|
12
|
+
};
|
|
13
|
+
type: {
|
|
14
|
+
type: PropType<"number" | "text">;
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
17
|
+
size: PropType<SizeType>;
|
|
18
|
+
disabled: BooleanType;
|
|
19
|
+
readonly: BooleanType;
|
|
20
|
+
mask: BooleanType;
|
|
21
|
+
autofocus: BooleanType;
|
|
22
|
+
separator: PropType<VNodeChild>;
|
|
23
|
+
validator: PropType<InputOTPValidator>;
|
|
24
|
+
theme: {
|
|
25
|
+
type: PropType<ThemeType>;
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
28
|
+
shape: PropType<ShapeType>;
|
|
29
|
+
};
|
|
30
|
+
export type InputOTPProps = Partial<ExtractPropTypes<typeof inputOTPProps>> & {
|
|
31
|
+
"onUpdate:modelValue"?: (value: string) => void;
|
|
32
|
+
onChange?: (value: string) => void;
|
|
33
|
+
onComplete?: (value: string) => void;
|
|
34
|
+
onFocus?: (event: FocusEvent) => void;
|
|
35
|
+
onBlur?: (event: FocusEvent) => void;
|
|
36
|
+
};
|
|
37
|
+
declare const _default: DefineComponent<InputOTPProps>;
|
|
38
|
+
export default _default;
|
package/types/menu/index.d.ts
CHANGED
|
@@ -4,4 +4,4 @@ import { default as MenuGroup, MenuGroupProps } from './menu-group';
|
|
|
4
4
|
import { default as MenuItem, MenuItemProps } from './menu-item';
|
|
5
5
|
import { default as SubMenu, SubMenuProps } from './sub-menu';
|
|
6
6
|
export { Menu, MenuDivider, MenuGroup, MenuItem, SubMenu };
|
|
7
|
-
export type { MenuGroupProps, MenuItemProps, MenuOptionsProps, MenuProps, MenuSelectEvent, SubMenuProps };
|
|
7
|
+
export type { MenuGroupProps, MenuItemProps, MenuOptionsProps, MenuProps, MenuSelectEvent, SubMenuProps, };
|
|
@@ -1,20 +1,11 @@
|
|
|
1
|
-
import { ExtractPropTypes } from 'vue';
|
|
1
|
+
import { ExtractPropTypes, PropType, VNodeChild } from 'vue';
|
|
2
2
|
declare const menuGroupProps: {
|
|
3
|
-
title:
|
|
4
|
-
type: StringConstructor;
|
|
5
|
-
required: boolean;
|
|
6
|
-
};
|
|
3
|
+
title: PropType<VNodeChild>;
|
|
7
4
|
};
|
|
8
5
|
export type MenuGroupProps = ExtractPropTypes<typeof menuGroupProps>;
|
|
9
6
|
declare const MenuGroup: import('vue').DefineComponent<ExtractPropTypes<{
|
|
10
|
-
title:
|
|
11
|
-
type: StringConstructor;
|
|
12
|
-
required: boolean;
|
|
13
|
-
};
|
|
7
|
+
title: PropType<VNodeChild>;
|
|
14
8
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
15
|
-
title:
|
|
16
|
-
type: StringConstructor;
|
|
17
|
-
required: boolean;
|
|
18
|
-
};
|
|
9
|
+
title: PropType<VNodeChild>;
|
|
19
10
|
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
20
11
|
export default MenuGroup;
|
|
@@ -3,20 +3,17 @@ import { BooleanType } from '../const/types';
|
|
|
3
3
|
import { IconType } from '../icon';
|
|
4
4
|
declare const menuItemProps: {
|
|
5
5
|
icon: PropType<IconType[]>;
|
|
6
|
-
title: PropType<
|
|
6
|
+
title: PropType<VNodeChild>;
|
|
7
7
|
disabled: BooleanType;
|
|
8
|
-
isPopup: BooleanType;
|
|
9
8
|
};
|
|
10
9
|
export type MenuItemProps = ExtractPropTypes<typeof menuItemProps>;
|
|
11
10
|
declare const MenuItem: import('vue').DefineComponent<ExtractPropTypes<{
|
|
12
11
|
icon: PropType<IconType[]>;
|
|
13
|
-
title: PropType<
|
|
12
|
+
title: PropType<VNodeChild>;
|
|
14
13
|
disabled: BooleanType;
|
|
15
|
-
isPopup: BooleanType;
|
|
16
14
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
17
15
|
icon: PropType<IconType[]>;
|
|
18
|
-
title: PropType<
|
|
16
|
+
title: PropType<VNodeChild>;
|
|
19
17
|
disabled: BooleanType;
|
|
20
|
-
isPopup: BooleanType;
|
|
21
18
|
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
22
19
|
export default MenuItem;
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import { BooleanType } from '../const/types';
|
|
3
2
|
import { MenuOptionsProps } from './menu';
|
|
4
3
|
declare const RecursiveMenu: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
5
4
|
item: {
|
|
6
5
|
type: PropType<MenuOptionsProps>;
|
|
7
6
|
required: true;
|
|
8
7
|
};
|
|
9
|
-
isPopup: BooleanType;
|
|
10
8
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
11
9
|
item: {
|
|
12
10
|
type: PropType<MenuOptionsProps>;
|
|
13
11
|
required: true;
|
|
14
12
|
};
|
|
15
|
-
isPopup: BooleanType;
|
|
16
13
|
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
17
14
|
export default RecursiveMenu;
|
package/types/menu/sub-menu.d.ts
CHANGED
|
@@ -3,22 +3,17 @@ import { BooleanType } from '../const/types';
|
|
|
3
3
|
import { IconType } from '../icon';
|
|
4
4
|
declare const submenuProps: {
|
|
5
5
|
disabled: BooleanType;
|
|
6
|
-
title: PropType<
|
|
7
|
-
isPopup: BooleanType;
|
|
6
|
+
title: PropType<VNodeChild>;
|
|
8
7
|
icon: PropType<IconType[]>;
|
|
9
8
|
};
|
|
10
9
|
export type SubMenuProps = ExtractPropTypes<typeof submenuProps>;
|
|
11
10
|
declare const SubMenu: import('vue').DefineComponent<ExtractPropTypes<{
|
|
12
11
|
disabled: BooleanType;
|
|
13
|
-
title: PropType<
|
|
14
|
-
isPopup: BooleanType;
|
|
12
|
+
title: PropType<VNodeChild>;
|
|
15
13
|
icon: PropType<IconType[]>;
|
|
16
14
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
17
15
|
disabled: BooleanType;
|
|
18
|
-
title: PropType<
|
|
19
|
-
isPopup: BooleanType;
|
|
16
|
+
title: PropType<VNodeChild>;
|
|
20
17
|
icon: PropType<IconType[]>;
|
|
21
|
-
}>> & Readonly<{}>, {}, {}, {}, {
|
|
22
|
-
transfer: import('vue').ObjectDirective<any, any, string, any>;
|
|
23
|
-
}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
18
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
24
19
|
export default SubMenu;
|
package/types/modal/modal.d.ts
CHANGED
|
@@ -13,10 +13,6 @@ declare const modalProps: {
|
|
|
13
13
|
type: PropType<number>;
|
|
14
14
|
default: number;
|
|
15
15
|
};
|
|
16
|
-
transfer: {
|
|
17
|
-
type: BooleanType;
|
|
18
|
-
default: boolean;
|
|
19
|
-
};
|
|
20
16
|
mask: {
|
|
21
17
|
type: BooleanType;
|
|
22
18
|
default: boolean;
|
|
@@ -68,10 +64,6 @@ declare const Modal: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
68
64
|
type: PropType<number>;
|
|
69
65
|
default: number;
|
|
70
66
|
};
|
|
71
|
-
transfer: {
|
|
72
|
-
type: BooleanType;
|
|
73
|
-
default: boolean;
|
|
74
|
-
};
|
|
75
67
|
mask: {
|
|
76
68
|
type: BooleanType;
|
|
77
69
|
default: boolean;
|
|
@@ -121,10 +113,6 @@ declare const Modal: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
121
113
|
type: PropType<number>;
|
|
122
114
|
default: number;
|
|
123
115
|
};
|
|
124
|
-
transfer: {
|
|
125
|
-
type: BooleanType;
|
|
126
|
-
default: boolean;
|
|
127
|
-
};
|
|
128
116
|
mask: {
|
|
129
117
|
type: BooleanType;
|
|
130
118
|
default: boolean;
|
|
@@ -166,11 +154,8 @@ declare const Modal: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
166
154
|
width: string | number;
|
|
167
155
|
mask: boolean | undefined;
|
|
168
156
|
footer: boolean | undefined;
|
|
169
|
-
transfer: boolean | undefined;
|
|
170
157
|
maskClosable: boolean | undefined;
|
|
171
158
|
escKey: boolean | undefined;
|
|
172
159
|
showClose: boolean | undefined;
|
|
173
|
-
}, {}, {}, {
|
|
174
|
-
transfer: import('vue').ObjectDirective<any, any, string, any>;
|
|
175
|
-
}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
160
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
176
161
|
export default Modal;
|
package/types/notice/index.d.ts
CHANGED
|
@@ -69,7 +69,5 @@ declare const Popconfirm: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
69
69
|
};
|
|
70
70
|
}>> & Readonly<{}>, {
|
|
71
71
|
placement: PlacementsType;
|
|
72
|
-
}, {}, {}, {
|
|
73
|
-
transfer: import('vue').ObjectDirective<any, any, string, any>;
|
|
74
|
-
}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
72
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
75
73
|
export default Popconfirm;
|
package/types/poptip/index.d.ts
CHANGED
|
@@ -60,7 +60,5 @@ declare const Poptip: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
60
60
|
show: boolean;
|
|
61
61
|
placement: PlacementsType;
|
|
62
62
|
trigger: "click" | "focus" | "hover";
|
|
63
|
-
}, {}, {}, {
|
|
64
|
-
transfer: import('vue').ObjectDirective<any, any, string, any>;
|
|
65
|
-
}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
63
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
66
64
|
export default Poptip;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType, VNodeChild } from 'vue';
|
|
2
|
+
import { IconType } from '../icon';
|
|
3
|
+
export type ResultStatus = "success" | "error" | "info" | "warning" | "403" | "404" | "500";
|
|
4
|
+
declare const resultProps: {
|
|
5
|
+
status: {
|
|
6
|
+
type: PropType<ResultStatus>;
|
|
7
|
+
default: string;
|
|
8
|
+
};
|
|
9
|
+
title: PropType<VNodeChild>;
|
|
10
|
+
subTitle: PropType<VNodeChild>;
|
|
11
|
+
icon: PropType<IconType[]>;
|
|
12
|
+
};
|
|
13
|
+
export type ResultProps = ExtractPropTypes<typeof resultProps>;
|
|
14
|
+
declare const Result: import('vue').DefineComponent<ExtractPropTypes<{
|
|
15
|
+
status: {
|
|
16
|
+
type: PropType<ResultStatus>;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
title: PropType<VNodeChild>;
|
|
20
|
+
subTitle: PropType<VNodeChild>;
|
|
21
|
+
icon: PropType<IconType[]>;
|
|
22
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
23
|
+
status: {
|
|
24
|
+
type: PropType<ResultStatus>;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
title: PropType<VNodeChild>;
|
|
28
|
+
subTitle: PropType<VNodeChild>;
|
|
29
|
+
icon: PropType<IconType[]>;
|
|
30
|
+
}>> & Readonly<{}>, {
|
|
31
|
+
status: ResultStatus;
|
|
32
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
33
|
+
export default Result;
|
package/types/select/select.d.ts
CHANGED
|
@@ -140,11 +140,10 @@ declare const Select: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
140
140
|
}>> & Readonly<{}>, {
|
|
141
141
|
bordered: boolean | undefined;
|
|
142
142
|
theme: ThemeType;
|
|
143
|
-
placement: DropPlacementsType;
|
|
144
|
-
clearable: boolean | undefined;
|
|
145
143
|
showArrow: boolean | undefined;
|
|
144
|
+
clearable: boolean | undefined;
|
|
145
|
+
placement: DropPlacementsType;
|
|
146
146
|
}, {}, {}, {
|
|
147
|
-
transfer: import('vue').ObjectDirective<any, any, string, any>;
|
|
148
147
|
resize: import('vue').ObjectDirective<any, any, string, any>;
|
|
149
148
|
}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
150
149
|
export default Select;
|
|
@@ -8,7 +8,7 @@ declare const SkeletonAvatar: import('vue').DefineComponent<import('vue').Extrac
|
|
|
8
8
|
type: NumberConstructor;
|
|
9
9
|
default: number;
|
|
10
10
|
};
|
|
11
|
-
shape: import('vue').PropType<import('..').ShapeType>;
|
|
11
|
+
shape: import('vue').PropType<import('..').ShapeType | "default">;
|
|
12
12
|
size: import('vue').PropType<number | import('..').SizeType | number[]>;
|
|
13
13
|
title: {
|
|
14
14
|
type: NumberConstructor;
|
|
@@ -20,8 +20,8 @@ declare const SkeletonAvatar: import('vue').DefineComponent<import('vue').Extrac
|
|
|
20
20
|
};
|
|
21
21
|
avatar: {
|
|
22
22
|
type: import('vue').PropType<boolean | {
|
|
23
|
-
size
|
|
24
|
-
shape
|
|
23
|
+
size?: import('..').SizeType;
|
|
24
|
+
shape?: import('..').ShapeType;
|
|
25
25
|
}>;
|
|
26
26
|
};
|
|
27
27
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -34,7 +34,7 @@ declare const SkeletonAvatar: import('vue').DefineComponent<import('vue').Extrac
|
|
|
34
34
|
type: NumberConstructor;
|
|
35
35
|
default: number;
|
|
36
36
|
};
|
|
37
|
-
shape: import('vue').PropType<import('..').ShapeType>;
|
|
37
|
+
shape: import('vue').PropType<import('..').ShapeType | "default">;
|
|
38
38
|
size: import('vue').PropType<number | import('..').SizeType | number[]>;
|
|
39
39
|
title: {
|
|
40
40
|
type: NumberConstructor;
|
|
@@ -46,8 +46,8 @@ declare const SkeletonAvatar: import('vue').DefineComponent<import('vue').Extrac
|
|
|
46
46
|
};
|
|
47
47
|
avatar: {
|
|
48
48
|
type: import('vue').PropType<boolean | {
|
|
49
|
-
size
|
|
50
|
-
shape
|
|
49
|
+
size?: import('..').SizeType;
|
|
50
|
+
shape?: import('..').ShapeType;
|
|
51
51
|
}>;
|
|
52
52
|
};
|
|
53
53
|
}>> & Readonly<{}>, {
|
|
@@ -8,7 +8,7 @@ declare const SkeletonButton: import('vue').DefineComponent<import('vue').Extrac
|
|
|
8
8
|
type: NumberConstructor;
|
|
9
9
|
default: number;
|
|
10
10
|
};
|
|
11
|
-
shape: import('vue').PropType<import('..').ShapeType>;
|
|
11
|
+
shape: import('vue').PropType<import('..').ShapeType | "default">;
|
|
12
12
|
size: import('vue').PropType<number | import('..').SizeType | number[]>;
|
|
13
13
|
title: {
|
|
14
14
|
type: NumberConstructor;
|
|
@@ -20,8 +20,8 @@ declare const SkeletonButton: import('vue').DefineComponent<import('vue').Extrac
|
|
|
20
20
|
};
|
|
21
21
|
avatar: {
|
|
22
22
|
type: import('vue').PropType<boolean | {
|
|
23
|
-
size
|
|
24
|
-
shape
|
|
23
|
+
size?: import('..').SizeType;
|
|
24
|
+
shape?: import('..').ShapeType;
|
|
25
25
|
}>;
|
|
26
26
|
};
|
|
27
27
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -34,7 +34,7 @@ declare const SkeletonButton: import('vue').DefineComponent<import('vue').Extrac
|
|
|
34
34
|
type: NumberConstructor;
|
|
35
35
|
default: number;
|
|
36
36
|
};
|
|
37
|
-
shape: import('vue').PropType<import('..').ShapeType>;
|
|
37
|
+
shape: import('vue').PropType<import('..').ShapeType | "default">;
|
|
38
38
|
size: import('vue').PropType<number | import('..').SizeType | number[]>;
|
|
39
39
|
title: {
|
|
40
40
|
type: NumberConstructor;
|
|
@@ -46,8 +46,8 @@ declare const SkeletonButton: import('vue').DefineComponent<import('vue').Extrac
|
|
|
46
46
|
};
|
|
47
47
|
avatar: {
|
|
48
48
|
type: import('vue').PropType<boolean | {
|
|
49
|
-
size
|
|
50
|
-
shape
|
|
49
|
+
size?: import('..').SizeType;
|
|
50
|
+
shape?: import('..').ShapeType;
|
|
51
51
|
}>;
|
|
52
52
|
};
|
|
53
53
|
}>> & Readonly<{}>, {
|
|
@@ -8,7 +8,7 @@ declare const SkeletonImage: import('vue').DefineComponent<import('vue').Extract
|
|
|
8
8
|
type: NumberConstructor;
|
|
9
9
|
default: number;
|
|
10
10
|
};
|
|
11
|
-
shape: import('vue').PropType<import('..').ShapeType>;
|
|
11
|
+
shape: import('vue').PropType<import('..').ShapeType | "default">;
|
|
12
12
|
size: import('vue').PropType<number | import('..').SizeType | number[]>;
|
|
13
13
|
title: {
|
|
14
14
|
type: NumberConstructor;
|
|
@@ -20,8 +20,8 @@ declare const SkeletonImage: import('vue').DefineComponent<import('vue').Extract
|
|
|
20
20
|
};
|
|
21
21
|
avatar: {
|
|
22
22
|
type: import('vue').PropType<boolean | {
|
|
23
|
-
size
|
|
24
|
-
shape
|
|
23
|
+
size?: import('..').SizeType;
|
|
24
|
+
shape?: import('..').ShapeType;
|
|
25
25
|
}>;
|
|
26
26
|
};
|
|
27
27
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -34,7 +34,7 @@ declare const SkeletonImage: import('vue').DefineComponent<import('vue').Extract
|
|
|
34
34
|
type: NumberConstructor;
|
|
35
35
|
default: number;
|
|
36
36
|
};
|
|
37
|
-
shape: import('vue').PropType<import('..').ShapeType>;
|
|
37
|
+
shape: import('vue').PropType<import('..').ShapeType | "default">;
|
|
38
38
|
size: import('vue').PropType<number | import('..').SizeType | number[]>;
|
|
39
39
|
title: {
|
|
40
40
|
type: NumberConstructor;
|
|
@@ -46,8 +46,8 @@ declare const SkeletonImage: import('vue').DefineComponent<import('vue').Extract
|
|
|
46
46
|
};
|
|
47
47
|
avatar: {
|
|
48
48
|
type: import('vue').PropType<boolean | {
|
|
49
|
-
size
|
|
50
|
-
shape
|
|
49
|
+
size?: import('..').SizeType;
|
|
50
|
+
shape?: import('..').ShapeType;
|
|
51
51
|
}>;
|
|
52
52
|
};
|
|
53
53
|
}>> & Readonly<{}>, {
|
|
@@ -8,7 +8,7 @@ declare const SkeletonText: import('vue').DefineComponent<import('vue').ExtractP
|
|
|
8
8
|
type: NumberConstructor;
|
|
9
9
|
default: number;
|
|
10
10
|
};
|
|
11
|
-
shape: import('vue').PropType<import('..').ShapeType>;
|
|
11
|
+
shape: import('vue').PropType<import('..').ShapeType | "default">;
|
|
12
12
|
size: import('vue').PropType<number | import('..').SizeType | number[]>;
|
|
13
13
|
title: {
|
|
14
14
|
type: NumberConstructor;
|
|
@@ -20,8 +20,8 @@ declare const SkeletonText: import('vue').DefineComponent<import('vue').ExtractP
|
|
|
20
20
|
};
|
|
21
21
|
avatar: {
|
|
22
22
|
type: import('vue').PropType<boolean | {
|
|
23
|
-
size
|
|
24
|
-
shape
|
|
23
|
+
size?: import('..').SizeType;
|
|
24
|
+
shape?: import('..').ShapeType;
|
|
25
25
|
}>;
|
|
26
26
|
};
|
|
27
27
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -34,7 +34,7 @@ declare const SkeletonText: import('vue').DefineComponent<import('vue').ExtractP
|
|
|
34
34
|
type: NumberConstructor;
|
|
35
35
|
default: number;
|
|
36
36
|
};
|
|
37
|
-
shape: import('vue').PropType<import('..').ShapeType>;
|
|
37
|
+
shape: import('vue').PropType<import('..').ShapeType | "default">;
|
|
38
38
|
size: import('vue').PropType<number | import('..').SizeType | number[]>;
|
|
39
39
|
title: {
|
|
40
40
|
type: NumberConstructor;
|
|
@@ -46,8 +46,8 @@ declare const SkeletonText: import('vue').DefineComponent<import('vue').ExtractP
|
|
|
46
46
|
};
|
|
47
47
|
avatar: {
|
|
48
48
|
type: import('vue').PropType<boolean | {
|
|
49
|
-
size
|
|
50
|
-
shape
|
|
49
|
+
size?: import('..').SizeType;
|
|
50
|
+
shape?: import('..').ShapeType;
|
|
51
51
|
}>;
|
|
52
52
|
};
|
|
53
53
|
}>> & Readonly<{}>, {
|
|
@@ -11,7 +11,7 @@ declare const Skeleton: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
11
11
|
type: NumberConstructor;
|
|
12
12
|
default: number;
|
|
13
13
|
};
|
|
14
|
-
shape: import('vue').PropType<import('..').ShapeType>;
|
|
14
|
+
shape: import('vue').PropType<import('..').ShapeType | "default">;
|
|
15
15
|
size: import('vue').PropType<number | import('..').SizeType | number[]>;
|
|
16
16
|
title: {
|
|
17
17
|
type: NumberConstructor;
|
|
@@ -23,8 +23,8 @@ declare const Skeleton: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
23
23
|
};
|
|
24
24
|
avatar: {
|
|
25
25
|
type: import('vue').PropType<boolean | {
|
|
26
|
-
size
|
|
27
|
-
shape
|
|
26
|
+
size?: import('..').SizeType;
|
|
27
|
+
shape?: import('..').ShapeType;
|
|
28
28
|
}>;
|
|
29
29
|
};
|
|
30
30
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
@@ -37,7 +37,7 @@ declare const Skeleton: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
37
37
|
type: NumberConstructor;
|
|
38
38
|
default: number;
|
|
39
39
|
};
|
|
40
|
-
shape: import('vue').PropType<import('..').ShapeType>;
|
|
40
|
+
shape: import('vue').PropType<import('..').ShapeType | "default">;
|
|
41
41
|
size: import('vue').PropType<number | import('..').SizeType | number[]>;
|
|
42
42
|
title: {
|
|
43
43
|
type: NumberConstructor;
|
|
@@ -49,8 +49,8 @@ declare const Skeleton: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
49
49
|
};
|
|
50
50
|
avatar: {
|
|
51
51
|
type: import('vue').PropType<boolean | {
|
|
52
|
-
size
|
|
53
|
-
shape
|
|
52
|
+
size?: import('..').SizeType;
|
|
53
|
+
shape?: import('..').ShapeType;
|
|
54
54
|
}>;
|
|
55
55
|
};
|
|
56
56
|
}>> & Readonly<{}>, {
|
|
@@ -10,7 +10,7 @@ export declare const skeletonProps: {
|
|
|
10
10
|
type: NumberConstructor;
|
|
11
11
|
default: number;
|
|
12
12
|
};
|
|
13
|
-
shape: PropType<ShapeType>;
|
|
13
|
+
shape: PropType<ShapeType | "default">;
|
|
14
14
|
size: PropType<number | SizeType | number[]>;
|
|
15
15
|
title: {
|
|
16
16
|
type: NumberConstructor;
|
|
@@ -22,8 +22,8 @@ export declare const skeletonProps: {
|
|
|
22
22
|
};
|
|
23
23
|
avatar: {
|
|
24
24
|
type: PropType<boolean | {
|
|
25
|
-
size
|
|
26
|
-
shape
|
|
25
|
+
size?: SizeType;
|
|
26
|
+
shape?: ShapeType;
|
|
27
27
|
}>;
|
|
28
28
|
};
|
|
29
29
|
};
|
package/types/slider/thumb.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
23
23
|
};
|
|
24
24
|
tipFormatter: PropType<(value: number) => string | number>;
|
|
25
25
|
dragging: BooleanType;
|
|
26
|
-
onDragStart: PropType<(e: MouseEvent) => void>;
|
|
26
|
+
onDragStart: PropType<(e: MouseEvent | TouchEvent) => void>;
|
|
27
27
|
onKeydownUpdate: PropType<(e: KeyboardEvent, idx: number) => void>;
|
|
28
28
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
29
29
|
value: {
|
|
@@ -48,7 +48,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
48
48
|
};
|
|
49
49
|
tipFormatter: PropType<(value: number) => string | number>;
|
|
50
50
|
dragging: BooleanType;
|
|
51
|
-
onDragStart: PropType<(e: MouseEvent) => void>;
|
|
51
|
+
onDragStart: PropType<(e: MouseEvent | TouchEvent) => void>;
|
|
52
52
|
onKeydownUpdate: PropType<(e: KeyboardEvent, idx: number) => void>;
|
|
53
53
|
}>> & Readonly<{}>, {
|
|
54
54
|
min: number;
|