kui-vue 5.6.0 → 5.7.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/AI.en-US.md +53 -0
- package/AI.md +59 -0
- package/README.md +51 -17
- package/README.zh-CN.md +52 -18
- package/ai/cli.mjs +27 -0
- package/ai/evals/cases.json +122 -0
- package/ai/kui-components.json +13690 -0
- package/ai/kui-components.schema.json +139 -0
- package/ai/mcp.mjs +196 -0
- package/ai/skills/kui-vue/SKILL.md +24 -0
- package/ai/skills/kui-vue/references/components.md +10 -0
- package/ai/skills/kui-vue/references/mcp.md +14 -0
- package/dist/index.js +2 -2
- package/es/index.js +8979 -7053
- 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.cjs +2 -2
- package/lib/locale/de.cjs +1 -1
- package/lib/locale/el.cjs +1 -1
- package/lib/locale/en.cjs +1 -1
- package/lib/locale/fr.cjs +1 -1
- package/lib/locale/it.cjs +1 -1
- package/lib/locale/ja.cjs +1 -1
- package/lib/locale/ko.cjs +1 -1
- package/lib/locale/ru.cjs +1 -1
- package/lib/locale/th.cjs +1 -1
- package/lib/locale/uk.cjs +1 -1
- package/lib/locale/vi.cjs +1 -1
- package/lib/locale/zh-CN.cjs +1 -1
- package/lib/locale/zh-TW.cjs +1 -1
- package/package.json +31 -17
- package/style/base.css +2 -2
- package/style/components.css +2 -2
- package/style/index.css +2 -2
- package/style/motion.css +9 -0
- package/style/theme.css +2 -2
- package/types/auto-complete/index.d.ts +130 -0
- package/types/card/index.d.ts +14 -1
- package/types/cascader/index.d.ts +4 -4
- package/types/check-card/check-card-group.d.ts +78 -0
- package/types/check-card/check-card.d.ts +101 -0
- package/types/check-card/context.d.ts +19 -0
- package/types/check-card/index.d.ts +7 -0
- package/types/check-card/types.d.ts +22 -0
- package/types/color-picker/index.d.ts +1 -1
- package/types/color-picker/paint.d.ts +9 -0
- package/types/components.d.ts +18 -0
- package/types/date-picker/index.d.ts +4 -4
- package/types/drawer/index.d.ts +1 -1
- package/types/dropdown/dropdown.d.ts +6 -6
- package/types/global.d.ts +28 -0
- package/types/input-number/index.d.ts +1 -1
- package/types/input-tag/index.d.ts +114 -0
- package/types/mentions/index.d.ts +147 -0
- package/types/message/index.d.ts +7 -6
- package/types/notice/content.d.ts +10 -10
- package/types/page/index.d.ts +3 -0
- package/types/popconfirm/index.d.ts +6 -6
- package/types/poptip/index.d.ts +6 -6
- package/types/rate/index.d.ts +1 -1
- package/types/select/select.d.ts +34 -2
- package/types/skeleton/skeleton-avatar.d.ts +1 -1
- package/types/skeleton/skeleton-button.d.ts +1 -1
- package/types/skeleton/skeleton-image.d.ts +1 -1
- package/types/skeleton/skeleton-text.d.ts +1 -1
- package/types/skeleton/skeleton.d.ts +1 -1
- package/types/slider/index.d.ts +2 -2
- package/types/steps/index.d.ts +85 -0
- package/types/table/index.d.ts +29 -0
- package/types/tag/index.d.ts +3 -0
- package/types/tour/index.d.ts +97 -0
- package/types/transfer/index.d.ts +109 -0
- package/types/tree/index.d.ts +42 -0
- package/types/tree-select/index.d.ts +44 -2
- package/types/typography/index.d.ts +309 -0
- package/types/virtual-list/index.d.ts +74 -0
- package/types/virtual-list/range.d.ts +14 -0
- package/vetur/attributes.json +2239 -759
- package/vetur/tags.json +604 -176
- package/vetur/web-types.json +5966 -3486
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ExtractPropTypes, PropType } from 'vue';
|
|
1
|
+
import { ExtractPropTypes, ComponentPublicInstance, PropType, Ref } from 'vue';
|
|
2
2
|
import { BooleanType, DropPlacementsType, TriggerType } from '../const/types';
|
|
3
3
|
declare const dropdownProps: {
|
|
4
4
|
trigger: {
|
|
@@ -15,7 +15,7 @@ declare const dropdownProps: {
|
|
|
15
15
|
type: PropType<DropPlacementsType>;
|
|
16
16
|
default: string;
|
|
17
17
|
};
|
|
18
|
-
target:
|
|
18
|
+
target: PropType<Ref<HTMLElement | ComponentPublicInstance | null>>;
|
|
19
19
|
onOpenChange: {
|
|
20
20
|
type: PropType<(opened: boolean) => void>;
|
|
21
21
|
};
|
|
@@ -36,13 +36,13 @@ declare const Dropdown: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
36
36
|
type: PropType<DropPlacementsType>;
|
|
37
37
|
default: string;
|
|
38
38
|
};
|
|
39
|
-
target:
|
|
39
|
+
target: PropType<Ref<HTMLElement | ComponentPublicInstance | null>>;
|
|
40
40
|
onOpenChange: {
|
|
41
41
|
type: PropType<(opened: boolean) => void>;
|
|
42
42
|
};
|
|
43
|
-
}>, () =>
|
|
43
|
+
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
44
44
|
[key: string]: any;
|
|
45
|
-
}>
|
|
45
|
+
}>[], {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
46
46
|
trigger: {
|
|
47
47
|
type: PropType<TriggerType>;
|
|
48
48
|
default: string;
|
|
@@ -57,7 +57,7 @@ declare const Dropdown: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
57
57
|
type: PropType<DropPlacementsType>;
|
|
58
58
|
default: string;
|
|
59
59
|
};
|
|
60
|
-
target:
|
|
60
|
+
target: PropType<Ref<HTMLElement | ComponentPublicInstance | null>>;
|
|
61
61
|
onOpenChange: {
|
|
62
62
|
type: PropType<(opened: boolean) => void>;
|
|
63
63
|
};
|
package/types/global.d.ts
CHANGED
|
@@ -7,6 +7,8 @@ declare module '@vue/runtime-core' {
|
|
|
7
7
|
KAffix: typeof import('kui-vue')['Affix']
|
|
8
8
|
Alert: typeof import('kui-vue')['Alert']
|
|
9
9
|
KAlert: typeof import('kui-vue')['Alert']
|
|
10
|
+
AutoComplete: typeof import('kui-vue')['AutoComplete']
|
|
11
|
+
KAutoComplete: typeof import('kui-vue')['AutoComplete']
|
|
10
12
|
Anchor: typeof import('kui-vue')['Anchor']
|
|
11
13
|
KAnchor: typeof import('kui-vue')['Anchor']
|
|
12
14
|
AnchorLink: typeof import('kui-vue')['AnchorLink']
|
|
@@ -45,6 +47,10 @@ KCarouselItem: typeof import('kui-vue')['CarouselItem']
|
|
|
45
47
|
KCheckbox: typeof import('kui-vue')['Checkbox']
|
|
46
48
|
CheckboxGroup: typeof import('kui-vue')['CheckboxGroup']
|
|
47
49
|
KCheckboxGroup: typeof import('kui-vue')['CheckboxGroup']
|
|
50
|
+
CheckCard: typeof import('kui-vue')['CheckCard']
|
|
51
|
+
KCheckCard: typeof import('kui-vue')['CheckCard']
|
|
52
|
+
CheckCardGroup: typeof import('kui-vue')['CheckCardGroup']
|
|
53
|
+
KCheckCardGroup: typeof import('kui-vue')['CheckCardGroup']
|
|
48
54
|
Collapse: typeof import('kui-vue')['Collapse']
|
|
49
55
|
KCollapse: typeof import('kui-vue')['Collapse']
|
|
50
56
|
CollapsePanel: typeof import('kui-vue')['CollapsePanel']
|
|
@@ -93,6 +99,8 @@ KInput: typeof import('kui-vue')['Input']
|
|
|
93
99
|
KInputGroup: typeof import('kui-vue')['InputGroup']
|
|
94
100
|
TextArea: typeof import('kui-vue')['TextArea']
|
|
95
101
|
KTextArea: typeof import('kui-vue')['TextArea']
|
|
102
|
+
InputTag: typeof import('kui-vue')['InputTag']
|
|
103
|
+
KInputTag: typeof import('kui-vue')['InputTag']
|
|
96
104
|
InputOTP: typeof import('kui-vue')['InputOTP']
|
|
97
105
|
KInputOTP: typeof import('kui-vue')['InputOTP']
|
|
98
106
|
InputNumber: typeof import('kui-vue')['InputNumber']
|
|
@@ -117,6 +125,8 @@ KMenuGroup: typeof import('kui-vue')['MenuGroup']
|
|
|
117
125
|
KMenuItem: typeof import('kui-vue')['MenuItem']
|
|
118
126
|
SubMenu: typeof import('kui-vue')['SubMenu']
|
|
119
127
|
KSubMenu: typeof import('kui-vue')['SubMenu']
|
|
128
|
+
Mentions: typeof import('kui-vue')['Mentions']
|
|
129
|
+
KMentions: typeof import('kui-vue')['Mentions']
|
|
120
130
|
MessagePanel: typeof import('kui-vue')['MessagePanel']
|
|
121
131
|
KMessagePanel: typeof import('kui-vue')['MessagePanel']
|
|
122
132
|
NoticePanel: typeof import('kui-vue')['NoticePanel']
|
|
@@ -179,6 +189,10 @@ KSlider: typeof import('kui-vue')['Slider']
|
|
|
179
189
|
KSpace: typeof import('kui-vue')['Space']
|
|
180
190
|
Spin: typeof import('kui-vue')['Spin']
|
|
181
191
|
KSpin: typeof import('kui-vue')['Spin']
|
|
192
|
+
Step: typeof import('kui-vue')['Step']
|
|
193
|
+
KStep: typeof import('kui-vue')['Step']
|
|
194
|
+
Steps: typeof import('kui-vue')['Steps']
|
|
195
|
+
KSteps: typeof import('kui-vue')['Steps']
|
|
182
196
|
Switch: typeof import('kui-vue')['Switch']
|
|
183
197
|
KSwitch: typeof import('kui-vue')['Switch']
|
|
184
198
|
Splitter: typeof import('kui-vue')['Splitter']
|
|
@@ -191,6 +205,18 @@ KTable: typeof import('kui-vue')['Table']
|
|
|
191
205
|
KTooltipPanel: typeof import('kui-vue')['TooltipPanel']
|
|
192
206
|
Tooltip: typeof import('kui-vue')['Tooltip']
|
|
193
207
|
KTooltip: typeof import('kui-vue')['Tooltip']
|
|
208
|
+
Tour: typeof import('kui-vue')['Tour']
|
|
209
|
+
KTour: typeof import('kui-vue')['Tour']
|
|
210
|
+
Transfer: typeof import('kui-vue')['Transfer']
|
|
211
|
+
KTransfer: typeof import('kui-vue')['Transfer']
|
|
212
|
+
Typography: typeof import('kui-vue')['Typography']
|
|
213
|
+
KTypography: typeof import('kui-vue')['Typography']
|
|
214
|
+
TypographyParagraph: typeof import('kui-vue')['TypographyParagraph']
|
|
215
|
+
KTypographyParagraph: typeof import('kui-vue')['TypographyParagraph']
|
|
216
|
+
TypographyText: typeof import('kui-vue')['TypographyText']
|
|
217
|
+
KTypographyText: typeof import('kui-vue')['TypographyText']
|
|
218
|
+
TypographyTitle: typeof import('kui-vue')['TypographyTitle']
|
|
219
|
+
KTypographyTitle: typeof import('kui-vue')['TypographyTitle']
|
|
194
220
|
TabPanel: typeof import('kui-vue')['TabPanel']
|
|
195
221
|
KTabPanel: typeof import('kui-vue')['TabPanel']
|
|
196
222
|
Tabs: typeof import('kui-vue')['Tabs']
|
|
@@ -213,6 +239,8 @@ KRow: typeof import('kui-vue')['Row']
|
|
|
213
239
|
KUpload: typeof import('kui-vue')['Upload']
|
|
214
240
|
Watermark: typeof import('kui-vue')['Watermark']
|
|
215
241
|
KWatermark: typeof import('kui-vue')['Watermark']
|
|
242
|
+
VirtualList: typeof import('kui-vue')['VirtualList']
|
|
243
|
+
KVirtualList: typeof import('kui-vue')['VirtualList']
|
|
216
244
|
}
|
|
217
245
|
}
|
|
218
246
|
|
|
@@ -119,9 +119,9 @@ declare const InputNumber: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
119
119
|
onChange: PropType<(value: number) => void>;
|
|
120
120
|
}>> & Readonly<{}>, {
|
|
121
121
|
theme: ThemeType;
|
|
122
|
-
step: number;
|
|
123
122
|
min: number;
|
|
124
123
|
max: number;
|
|
124
|
+
step: number;
|
|
125
125
|
controls: boolean | undefined;
|
|
126
126
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
127
127
|
export default InputNumber;
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { ShapeType, SizeType, ThemeType } from '../const/types';
|
|
3
|
+
declare const propsDef: {
|
|
4
|
+
size: {
|
|
5
|
+
type: PropType<SizeType>;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
shape: PropType<ShapeType>;
|
|
9
|
+
theme: {
|
|
10
|
+
type: PropType<ThemeType>;
|
|
11
|
+
default: string;
|
|
12
|
+
};
|
|
13
|
+
modelValue: PropType<string[]>;
|
|
14
|
+
value: {
|
|
15
|
+
type: PropType<string[]>;
|
|
16
|
+
default: () => never[];
|
|
17
|
+
};
|
|
18
|
+
placeholder: StringConstructor;
|
|
19
|
+
disabled: BooleanConstructor;
|
|
20
|
+
clearable: {
|
|
21
|
+
type: BooleanConstructor;
|
|
22
|
+
default: boolean;
|
|
23
|
+
};
|
|
24
|
+
block: BooleanConstructor;
|
|
25
|
+
allowDuplicates: BooleanConstructor;
|
|
26
|
+
max: NumberConstructor;
|
|
27
|
+
maxTagCount: NumberConstructor;
|
|
28
|
+
separators: {
|
|
29
|
+
type: PropType<string[]>;
|
|
30
|
+
default: () => string[];
|
|
31
|
+
};
|
|
32
|
+
onChange: PropType<(value: string[]) => void>;
|
|
33
|
+
onAdd: PropType<(value: string) => void>;
|
|
34
|
+
onRemove: PropType<(value: string, index: number) => void>;
|
|
35
|
+
onClear: PropType<() => void>;
|
|
36
|
+
};
|
|
37
|
+
export type InputTagProps = ExtractPropTypes<typeof propsDef>;
|
|
38
|
+
declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
39
|
+
size: {
|
|
40
|
+
type: PropType<SizeType>;
|
|
41
|
+
default: string;
|
|
42
|
+
};
|
|
43
|
+
shape: PropType<ShapeType>;
|
|
44
|
+
theme: {
|
|
45
|
+
type: PropType<ThemeType>;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
modelValue: PropType<string[]>;
|
|
49
|
+
value: {
|
|
50
|
+
type: PropType<string[]>;
|
|
51
|
+
default: () => never[];
|
|
52
|
+
};
|
|
53
|
+
placeholder: StringConstructor;
|
|
54
|
+
disabled: BooleanConstructor;
|
|
55
|
+
clearable: {
|
|
56
|
+
type: BooleanConstructor;
|
|
57
|
+
default: boolean;
|
|
58
|
+
};
|
|
59
|
+
block: BooleanConstructor;
|
|
60
|
+
allowDuplicates: BooleanConstructor;
|
|
61
|
+
max: NumberConstructor;
|
|
62
|
+
maxTagCount: NumberConstructor;
|
|
63
|
+
separators: {
|
|
64
|
+
type: PropType<string[]>;
|
|
65
|
+
default: () => string[];
|
|
66
|
+
};
|
|
67
|
+
onChange: PropType<(value: string[]) => void>;
|
|
68
|
+
onAdd: PropType<(value: string) => void>;
|
|
69
|
+
onRemove: PropType<(value: string, index: number) => void>;
|
|
70
|
+
onClear: PropType<() => void>;
|
|
71
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
72
|
+
size: {
|
|
73
|
+
type: PropType<SizeType>;
|
|
74
|
+
default: string;
|
|
75
|
+
};
|
|
76
|
+
shape: PropType<ShapeType>;
|
|
77
|
+
theme: {
|
|
78
|
+
type: PropType<ThemeType>;
|
|
79
|
+
default: string;
|
|
80
|
+
};
|
|
81
|
+
modelValue: PropType<string[]>;
|
|
82
|
+
value: {
|
|
83
|
+
type: PropType<string[]>;
|
|
84
|
+
default: () => never[];
|
|
85
|
+
};
|
|
86
|
+
placeholder: StringConstructor;
|
|
87
|
+
disabled: BooleanConstructor;
|
|
88
|
+
clearable: {
|
|
89
|
+
type: BooleanConstructor;
|
|
90
|
+
default: boolean;
|
|
91
|
+
};
|
|
92
|
+
block: BooleanConstructor;
|
|
93
|
+
allowDuplicates: BooleanConstructor;
|
|
94
|
+
max: NumberConstructor;
|
|
95
|
+
maxTagCount: NumberConstructor;
|
|
96
|
+
separators: {
|
|
97
|
+
type: PropType<string[]>;
|
|
98
|
+
default: () => string[];
|
|
99
|
+
};
|
|
100
|
+
onChange: PropType<(value: string[]) => void>;
|
|
101
|
+
onAdd: PropType<(value: string) => void>;
|
|
102
|
+
onRemove: PropType<(value: string, index: number) => void>;
|
|
103
|
+
onClear: PropType<() => void>;
|
|
104
|
+
}>> & Readonly<{}>, {
|
|
105
|
+
block: boolean;
|
|
106
|
+
size: SizeType;
|
|
107
|
+
disabled: boolean;
|
|
108
|
+
value: string[];
|
|
109
|
+
theme: ThemeType;
|
|
110
|
+
clearable: boolean;
|
|
111
|
+
allowDuplicates: boolean;
|
|
112
|
+
separators: string[];
|
|
113
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
114
|
+
export default _default;
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType, VNodeChild } from 'vue';
|
|
2
|
+
import { DropPlacementsType, ShapeType, SizeType, ThemeType } from '../const/types';
|
|
3
|
+
export interface MentionOption {
|
|
4
|
+
value: string;
|
|
5
|
+
label?: VNodeChild;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare const propsDef: {
|
|
9
|
+
modelValue: StringConstructor;
|
|
10
|
+
value: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
options: {
|
|
15
|
+
type: PropType<Array<string | MentionOption>>;
|
|
16
|
+
default: () => never[];
|
|
17
|
+
};
|
|
18
|
+
triggers: {
|
|
19
|
+
type: PropType<string[]>;
|
|
20
|
+
default: () => string[];
|
|
21
|
+
};
|
|
22
|
+
placeholder: StringConstructor;
|
|
23
|
+
disabled: BooleanConstructor;
|
|
24
|
+
clearable: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
loading: BooleanConstructor;
|
|
29
|
+
loadingText: StringConstructor;
|
|
30
|
+
rows: {
|
|
31
|
+
type: NumberConstructor;
|
|
32
|
+
default: number;
|
|
33
|
+
};
|
|
34
|
+
placement: {
|
|
35
|
+
type: PropType<DropPlacementsType>;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
size: PropType<SizeType>;
|
|
39
|
+
shape: PropType<ShapeType>;
|
|
40
|
+
theme: {
|
|
41
|
+
type: PropType<ThemeType>;
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
44
|
+
emptyText: StringConstructor;
|
|
45
|
+
filterOption: PropType<(query: string, option: MentionOption) => boolean>;
|
|
46
|
+
onChange: PropType<(value: string) => void>;
|
|
47
|
+
onSelect: PropType<(option: MentionOption, trigger: string) => void>;
|
|
48
|
+
onSearch: PropType<(query: string, trigger: string) => void>;
|
|
49
|
+
onClear: PropType<() => void>;
|
|
50
|
+
};
|
|
51
|
+
export type MentionsProps = ExtractPropTypes<typeof propsDef>;
|
|
52
|
+
declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
53
|
+
modelValue: StringConstructor;
|
|
54
|
+
value: {
|
|
55
|
+
type: StringConstructor;
|
|
56
|
+
default: string;
|
|
57
|
+
};
|
|
58
|
+
options: {
|
|
59
|
+
type: PropType<Array<string | MentionOption>>;
|
|
60
|
+
default: () => never[];
|
|
61
|
+
};
|
|
62
|
+
triggers: {
|
|
63
|
+
type: PropType<string[]>;
|
|
64
|
+
default: () => string[];
|
|
65
|
+
};
|
|
66
|
+
placeholder: StringConstructor;
|
|
67
|
+
disabled: BooleanConstructor;
|
|
68
|
+
clearable: {
|
|
69
|
+
type: BooleanConstructor;
|
|
70
|
+
default: boolean;
|
|
71
|
+
};
|
|
72
|
+
loading: BooleanConstructor;
|
|
73
|
+
loadingText: StringConstructor;
|
|
74
|
+
rows: {
|
|
75
|
+
type: NumberConstructor;
|
|
76
|
+
default: number;
|
|
77
|
+
};
|
|
78
|
+
placement: {
|
|
79
|
+
type: PropType<DropPlacementsType>;
|
|
80
|
+
default: string;
|
|
81
|
+
};
|
|
82
|
+
size: PropType<SizeType>;
|
|
83
|
+
shape: PropType<ShapeType>;
|
|
84
|
+
theme: {
|
|
85
|
+
type: PropType<ThemeType>;
|
|
86
|
+
default: string;
|
|
87
|
+
};
|
|
88
|
+
emptyText: StringConstructor;
|
|
89
|
+
filterOption: PropType<(query: string, option: MentionOption) => boolean>;
|
|
90
|
+
onChange: PropType<(value: string) => void>;
|
|
91
|
+
onSelect: PropType<(option: MentionOption, trigger: string) => void>;
|
|
92
|
+
onSearch: PropType<(query: string, trigger: string) => void>;
|
|
93
|
+
onClear: PropType<() => void>;
|
|
94
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
95
|
+
modelValue: StringConstructor;
|
|
96
|
+
value: {
|
|
97
|
+
type: StringConstructor;
|
|
98
|
+
default: string;
|
|
99
|
+
};
|
|
100
|
+
options: {
|
|
101
|
+
type: PropType<Array<string | MentionOption>>;
|
|
102
|
+
default: () => never[];
|
|
103
|
+
};
|
|
104
|
+
triggers: {
|
|
105
|
+
type: PropType<string[]>;
|
|
106
|
+
default: () => string[];
|
|
107
|
+
};
|
|
108
|
+
placeholder: StringConstructor;
|
|
109
|
+
disabled: BooleanConstructor;
|
|
110
|
+
clearable: {
|
|
111
|
+
type: BooleanConstructor;
|
|
112
|
+
default: boolean;
|
|
113
|
+
};
|
|
114
|
+
loading: BooleanConstructor;
|
|
115
|
+
loadingText: StringConstructor;
|
|
116
|
+
rows: {
|
|
117
|
+
type: NumberConstructor;
|
|
118
|
+
default: number;
|
|
119
|
+
};
|
|
120
|
+
placement: {
|
|
121
|
+
type: PropType<DropPlacementsType>;
|
|
122
|
+
default: string;
|
|
123
|
+
};
|
|
124
|
+
size: PropType<SizeType>;
|
|
125
|
+
shape: PropType<ShapeType>;
|
|
126
|
+
theme: {
|
|
127
|
+
type: PropType<ThemeType>;
|
|
128
|
+
default: string;
|
|
129
|
+
};
|
|
130
|
+
emptyText: StringConstructor;
|
|
131
|
+
filterOption: PropType<(query: string, option: MentionOption) => boolean>;
|
|
132
|
+
onChange: PropType<(value: string) => void>;
|
|
133
|
+
onSelect: PropType<(option: MentionOption, trigger: string) => void>;
|
|
134
|
+
onSearch: PropType<(query: string, trigger: string) => void>;
|
|
135
|
+
onClear: PropType<() => void>;
|
|
136
|
+
}>> & Readonly<{}>, {
|
|
137
|
+
disabled: boolean;
|
|
138
|
+
loading: boolean;
|
|
139
|
+
value: string;
|
|
140
|
+
theme: ThemeType;
|
|
141
|
+
placement: DropPlacementsType;
|
|
142
|
+
clearable: boolean;
|
|
143
|
+
rows: number;
|
|
144
|
+
options: (string | MentionOption)[];
|
|
145
|
+
triggers: string[];
|
|
146
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
147
|
+
export default _default;
|
package/types/message/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { VNode } from 'vue';
|
|
1
2
|
import { NoticeType } from '../const/types';
|
|
2
3
|
import { IconType } from '../icon';
|
|
3
4
|
export interface MessageOptions {
|
|
4
5
|
type?: NoticeType;
|
|
5
|
-
content?: string;
|
|
6
|
+
content?: string | VNode;
|
|
6
7
|
duration?: number;
|
|
7
8
|
closable?: boolean;
|
|
8
9
|
icon?: IconType[];
|
|
@@ -13,11 +14,11 @@ export interface MessageOptions {
|
|
|
13
14
|
}
|
|
14
15
|
export interface MessageApi {
|
|
15
16
|
name: "message";
|
|
16
|
-
info(content: string, duration?: number, onClose?: () => void): void;
|
|
17
|
-
success(content: string, duration?: number, onClose?: () => void): void;
|
|
18
|
-
warning(content: string, duration?: number, onClose?: () => void): void;
|
|
19
|
-
error(content: string, duration?: number, onClose?: () => void): void;
|
|
20
|
-
loading(content: string, duration?: number): () => void;
|
|
17
|
+
info(content: string | VNode, duration?: number, onClose?: () => void): void;
|
|
18
|
+
success(content: string | VNode, duration?: number, onClose?: () => void): void;
|
|
19
|
+
warning(content: string | VNode, duration?: number, onClose?: () => void): void;
|
|
20
|
+
error(content: string | VNode, duration?: number, onClose?: () => void): void;
|
|
21
|
+
loading(content: string | VNode, duration?: number): () => void;
|
|
21
22
|
show(options: MessageOptions): () => void;
|
|
22
23
|
destroy(): void;
|
|
23
24
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ExtractPropTypes, PropType } from 'vue';
|
|
1
|
+
import { ExtractPropTypes, PropType, VNode } from 'vue';
|
|
2
2
|
import { BooleanType, NoticeType } from '../const/types';
|
|
3
3
|
import { IconType } from '../icon';
|
|
4
4
|
export declare const contentProps: {
|
|
@@ -6,7 +6,7 @@ export declare const contentProps: {
|
|
|
6
6
|
type: PropType<NoticeType>;
|
|
7
7
|
};
|
|
8
8
|
title: StringConstructor;
|
|
9
|
-
content:
|
|
9
|
+
content: PropType<string | VNode>;
|
|
10
10
|
icon: PropType<IconType[]>;
|
|
11
11
|
color: StringConstructor;
|
|
12
12
|
duration: NumberConstructor;
|
|
@@ -24,7 +24,7 @@ declare const NoticeContent: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
24
24
|
type: PropType<NoticeType>;
|
|
25
25
|
};
|
|
26
26
|
title: StringConstructor;
|
|
27
|
-
content:
|
|
27
|
+
content: PropType<string | VNode>;
|
|
28
28
|
icon: PropType<IconType[]>;
|
|
29
29
|
color: StringConstructor;
|
|
30
30
|
duration: NumberConstructor;
|
|
@@ -40,7 +40,7 @@ declare const NoticeContent: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
40
40
|
type: PropType<NoticeType>;
|
|
41
41
|
};
|
|
42
42
|
title: StringConstructor;
|
|
43
|
-
content:
|
|
43
|
+
content: PropType<string | VNode>;
|
|
44
44
|
icon: PropType<IconType[]>;
|
|
45
45
|
color: StringConstructor;
|
|
46
46
|
duration: NumberConstructor;
|
|
@@ -59,7 +59,7 @@ export declare const MessagePanel: import('vue').DefineComponent<ExtractPropType
|
|
|
59
59
|
type: PropType<NoticeType>;
|
|
60
60
|
};
|
|
61
61
|
title: StringConstructor;
|
|
62
|
-
content:
|
|
62
|
+
content: PropType<string | VNode>;
|
|
63
63
|
icon: PropType<IconType[]>;
|
|
64
64
|
color: StringConstructor;
|
|
65
65
|
duration: NumberConstructor;
|
|
@@ -70,14 +70,14 @@ export declare const MessagePanel: import('vue').DefineComponent<ExtractPropType
|
|
|
70
70
|
default: string;
|
|
71
71
|
};
|
|
72
72
|
grouping: StringConstructor;
|
|
73
|
-
}>, () =>
|
|
73
|
+
}>, () => VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
74
74
|
[key: string]: any;
|
|
75
75
|
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
76
76
|
type: {
|
|
77
77
|
type: PropType<NoticeType>;
|
|
78
78
|
};
|
|
79
79
|
title: StringConstructor;
|
|
80
|
-
content:
|
|
80
|
+
content: PropType<string | VNode>;
|
|
81
81
|
icon: PropType<IconType[]>;
|
|
82
82
|
color: StringConstructor;
|
|
83
83
|
duration: NumberConstructor;
|
|
@@ -96,7 +96,7 @@ export declare const NoticePanel: import('vue').DefineComponent<ExtractPropTypes
|
|
|
96
96
|
type: PropType<NoticeType>;
|
|
97
97
|
};
|
|
98
98
|
title: StringConstructor;
|
|
99
|
-
content:
|
|
99
|
+
content: PropType<string | VNode>;
|
|
100
100
|
icon: PropType<IconType[]>;
|
|
101
101
|
color: StringConstructor;
|
|
102
102
|
duration: NumberConstructor;
|
|
@@ -107,14 +107,14 @@ export declare const NoticePanel: import('vue').DefineComponent<ExtractPropTypes
|
|
|
107
107
|
default: string;
|
|
108
108
|
};
|
|
109
109
|
grouping: StringConstructor;
|
|
110
|
-
}>, () =>
|
|
110
|
+
}>, () => VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
111
111
|
[key: string]: any;
|
|
112
112
|
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
113
113
|
type: {
|
|
114
114
|
type: PropType<NoticeType>;
|
|
115
115
|
};
|
|
116
116
|
title: StringConstructor;
|
|
117
|
-
content:
|
|
117
|
+
content: PropType<string | VNode>;
|
|
118
118
|
icon: PropType<IconType[]>;
|
|
119
119
|
color: StringConstructor;
|
|
120
120
|
duration: NumberConstructor;
|
package/types/page/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ declare const pageProps: {
|
|
|
8
8
|
default: boolean;
|
|
9
9
|
};
|
|
10
10
|
showElevator: BooleanType;
|
|
11
|
+
simple: BooleanType;
|
|
11
12
|
theme: {
|
|
12
13
|
type: PropType<ThemeType>;
|
|
13
14
|
default: string;
|
|
@@ -48,6 +49,7 @@ declare const Page: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
48
49
|
default: boolean;
|
|
49
50
|
};
|
|
50
51
|
showElevator: BooleanType;
|
|
52
|
+
simple: BooleanType;
|
|
51
53
|
theme: {
|
|
52
54
|
type: PropType<ThemeType>;
|
|
53
55
|
default: string;
|
|
@@ -86,6 +88,7 @@ declare const Page: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
86
88
|
default: boolean;
|
|
87
89
|
};
|
|
88
90
|
showElevator: BooleanType;
|
|
91
|
+
simple: BooleanType;
|
|
89
92
|
theme: {
|
|
90
93
|
type: PropType<ThemeType>;
|
|
91
94
|
default: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ExtractPropTypes, PropType } from 'vue';
|
|
1
|
+
import { ExtractPropTypes, PropType, VNodeChild } from 'vue';
|
|
2
2
|
import { BooleanType, PlacementsType } from '../const/types';
|
|
3
3
|
declare const popconfirmProps: {
|
|
4
4
|
dark: BooleanType;
|
|
5
5
|
show: BooleanType;
|
|
6
|
-
title:
|
|
6
|
+
title: PropType<VNodeChild>;
|
|
7
7
|
width: (NumberConstructor | StringConstructor)[];
|
|
8
8
|
okText: {
|
|
9
9
|
type: StringConstructor;
|
|
@@ -27,7 +27,7 @@ export type PopconfirmProps = ExtractPropTypes<typeof popconfirmProps>;
|
|
|
27
27
|
declare const Popconfirm: import('vue').DefineComponent<ExtractPropTypes<{
|
|
28
28
|
dark: BooleanType;
|
|
29
29
|
show: BooleanType;
|
|
30
|
-
title:
|
|
30
|
+
title: PropType<VNodeChild>;
|
|
31
31
|
width: (NumberConstructor | StringConstructor)[];
|
|
32
32
|
okText: {
|
|
33
33
|
type: StringConstructor;
|
|
@@ -51,7 +51,7 @@ declare const Popconfirm: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
51
51
|
}>[], {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
52
52
|
dark: BooleanType;
|
|
53
53
|
show: BooleanType;
|
|
54
|
-
title:
|
|
54
|
+
title: PropType<VNodeChild>;
|
|
55
55
|
width: (NumberConstructor | StringConstructor)[];
|
|
56
56
|
okText: {
|
|
57
57
|
type: StringConstructor;
|
|
@@ -76,7 +76,7 @@ declare const Popconfirm: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
76
76
|
export declare const PopconfirmPanel: import('vue').DefineComponent<ExtractPropTypes<{
|
|
77
77
|
dark: BooleanType;
|
|
78
78
|
show: BooleanType;
|
|
79
|
-
title:
|
|
79
|
+
title: PropType<VNodeChild>;
|
|
80
80
|
width: (NumberConstructor | StringConstructor)[];
|
|
81
81
|
okText: {
|
|
82
82
|
type: StringConstructor;
|
|
@@ -100,7 +100,7 @@ export declare const PopconfirmPanel: import('vue').DefineComponent<ExtractPropT
|
|
|
100
100
|
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
101
101
|
dark: BooleanType;
|
|
102
102
|
show: BooleanType;
|
|
103
|
-
title:
|
|
103
|
+
title: PropType<VNodeChild>;
|
|
104
104
|
width: (NumberConstructor | StringConstructor)[];
|
|
105
105
|
okText: {
|
|
106
106
|
type: StringConstructor;
|
package/types/poptip/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ExtractPropTypes, PropType } from 'vue';
|
|
1
|
+
import { ExtractPropTypes, PropType, VNodeChild } from 'vue';
|
|
2
2
|
import { BooleanType, PlacementsType } from '../const/types';
|
|
3
3
|
export type PoptipProps = ExtractPropTypes<typeof poptipProps>;
|
|
4
4
|
declare const poptipProps: {
|
|
5
5
|
dark: BooleanConstructor;
|
|
6
6
|
show: BooleanConstructor;
|
|
7
|
-
title:
|
|
7
|
+
title: PropType<VNodeChild>;
|
|
8
8
|
content: StringConstructor;
|
|
9
9
|
width: (NumberConstructor | StringConstructor)[];
|
|
10
10
|
trigger: {
|
|
@@ -23,7 +23,7 @@ declare const poptipProps: {
|
|
|
23
23
|
declare const Poptip: import('vue').DefineComponent<ExtractPropTypes<{
|
|
24
24
|
dark: BooleanConstructor;
|
|
25
25
|
show: BooleanConstructor;
|
|
26
|
-
title:
|
|
26
|
+
title: PropType<VNodeChild>;
|
|
27
27
|
content: StringConstructor;
|
|
28
28
|
width: (NumberConstructor | StringConstructor)[];
|
|
29
29
|
trigger: {
|
|
@@ -43,7 +43,7 @@ declare const Poptip: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
43
43
|
}>[], {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
44
44
|
dark: BooleanConstructor;
|
|
45
45
|
show: BooleanConstructor;
|
|
46
|
-
title:
|
|
46
|
+
title: PropType<VNodeChild>;
|
|
47
47
|
content: StringConstructor;
|
|
48
48
|
width: (NumberConstructor | StringConstructor)[];
|
|
49
49
|
trigger: {
|
|
@@ -67,7 +67,7 @@ declare const Poptip: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
67
67
|
export declare const PoptipPanel: import('vue').DefineComponent<ExtractPropTypes<{
|
|
68
68
|
dark: BooleanConstructor;
|
|
69
69
|
show: BooleanConstructor;
|
|
70
|
-
title:
|
|
70
|
+
title: PropType<VNodeChild>;
|
|
71
71
|
content: StringConstructor;
|
|
72
72
|
width: (NumberConstructor | StringConstructor)[];
|
|
73
73
|
trigger: {
|
|
@@ -87,7 +87,7 @@ export declare const PoptipPanel: import('vue').DefineComponent<ExtractPropTypes
|
|
|
87
87
|
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
88
88
|
dark: BooleanConstructor;
|
|
89
89
|
show: BooleanConstructor;
|
|
90
|
-
title:
|
|
90
|
+
title: PropType<VNodeChild>;
|
|
91
91
|
content: StringConstructor;
|
|
92
92
|
width: (NumberConstructor | StringConstructor)[];
|
|
93
93
|
trigger: {
|
package/types/rate/index.d.ts
CHANGED
|
@@ -92,8 +92,8 @@ declare const Rate: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
92
92
|
};
|
|
93
93
|
}>> & Readonly<{}>, {
|
|
94
94
|
strokeWidth: number;
|
|
95
|
-
count: number;
|
|
96
95
|
modelValue: number;
|
|
96
|
+
count: number;
|
|
97
97
|
allowClear: boolean | undefined;
|
|
98
98
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
99
99
|
export default Rate;
|