@maxtropy/v-components 0.1.11-beta.9 → 0.1.12-beta.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/dist/mx-vcomponents.es.js +4650 -4561
- package/dist/style.css +1 -1
- package/dist/types/components/alert/MxAlert.vue.d.ts +15 -0
- package/dist/types/components/button/MxButton.vue.d.ts +66 -10
- package/dist/types/components/checkbox/MxCheckbox.vue.d.ts +98 -1
- package/dist/types/components/checkbox/MxCheckboxGroup.vue.d.ts +37 -1
- package/dist/types/components/checkbox/index.d.ts +68 -3
- package/dist/types/components/dialog/MxDialog.vue.d.ts +146 -34
- package/dist/types/components/dropdown/MxDropdown.vue.d.ts +3 -3
- package/dist/types/components/form/MxForm.vue.d.ts +71 -0
- package/dist/types/components/form/MxFormItem.vue.d.ts +64 -0
- package/dist/types/components/form/index.d.ts +108 -0
- package/dist/types/components/index.d.ts +4 -2
- package/dist/types/components/popconfirm/MxPopconfirm.vue.d.ts +6 -6
- package/dist/types/components/radio/MxRadio.vue.d.ts +30 -1
- package/dist/types/components/radio/MxRadioButton.vue.d.ts +25 -1
- package/dist/types/components/radio/MxRadioGroup.vue.d.ts +39 -1
- package/dist/types/components/radio/index.d.ts +117 -6
- package/dist/types/components/tag/MxTag.vue.d.ts +3 -3
- package/dist/types/components/upload/MxUpload.vue.d.ts +1 -1
- package/package.json +1 -1
|
@@ -14,6 +14,13 @@ export declare const MxRadioGroup: {
|
|
|
14
14
|
$: import("vue").ComponentInternalInstance;
|
|
15
15
|
$data: {};
|
|
16
16
|
$props: {
|
|
17
|
+
readonly fill?: string | undefined;
|
|
18
|
+
readonly label?: string | undefined;
|
|
19
|
+
readonly id?: string | undefined;
|
|
20
|
+
readonly name?: string | undefined;
|
|
21
|
+
readonly disabled?: boolean | undefined;
|
|
22
|
+
readonly validateEvent?: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
23
|
+
readonly textColor?: string | undefined;
|
|
17
24
|
key?: string | number | symbol | undefined;
|
|
18
25
|
ref?: import("vue").VNodeRef | undefined;
|
|
19
26
|
ref_for?: boolean | undefined;
|
|
@@ -58,6 +65,7 @@ export declare const MxRadioGroup: {
|
|
|
58
65
|
}>) => void)[] | undefined;
|
|
59
66
|
class?: unknown;
|
|
60
67
|
style?: unknown;
|
|
68
|
+
readonly size?: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never> | undefined;
|
|
61
69
|
};
|
|
62
70
|
$attrs: {
|
|
63
71
|
[x: string]: unknown;
|
|
@@ -72,7 +80,30 @@ export declare const MxRadioGroup: {
|
|
|
72
80
|
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
|
|
73
81
|
$emit: (event: string, ...args: any[]) => void;
|
|
74
82
|
$el: any;
|
|
75
|
-
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<
|
|
83
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<import("lodash").Omit<{
|
|
84
|
+
readonly id: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
85
|
+
readonly size: {
|
|
86
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
87
|
+
readonly required: false;
|
|
88
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
89
|
+
__epPropKey: true;
|
|
90
|
+
};
|
|
91
|
+
readonly disabled: BooleanConstructor;
|
|
92
|
+
readonly modelValue: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor, BooleanConstructor], unknown, unknown, "", boolean>;
|
|
93
|
+
readonly fill: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
94
|
+
readonly label: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
95
|
+
readonly textColor: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
96
|
+
readonly name: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
97
|
+
readonly validateEvent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
98
|
+
}, "modelValue">>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
99
|
+
readonly fill: string;
|
|
100
|
+
readonly label: string;
|
|
101
|
+
readonly id: string;
|
|
102
|
+
readonly name: string;
|
|
103
|
+
readonly disabled: boolean;
|
|
104
|
+
readonly validateEvent: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
105
|
+
readonly textColor: string;
|
|
106
|
+
}, {}, string, {}> & {
|
|
76
107
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
77
108
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
78
109
|
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -92,11 +123,49 @@ export declare const MxRadioGroup: {
|
|
|
92
123
|
$forceUpdate: () => void;
|
|
93
124
|
$nextTick: typeof import("vue").nextTick;
|
|
94
125
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
95
|
-
} & Readonly<import("vue").ExtractPropTypes<
|
|
126
|
+
} & Readonly<import("vue").ExtractPropTypes<import("lodash").Omit<{
|
|
127
|
+
readonly id: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
128
|
+
readonly size: {
|
|
129
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
130
|
+
readonly required: false;
|
|
131
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
132
|
+
__epPropKey: true;
|
|
133
|
+
};
|
|
134
|
+
readonly disabled: BooleanConstructor;
|
|
135
|
+
readonly modelValue: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor, BooleanConstructor], unknown, unknown, "", boolean>;
|
|
136
|
+
readonly fill: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
137
|
+
readonly label: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
138
|
+
readonly textColor: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
139
|
+
readonly name: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
140
|
+
readonly validateEvent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
141
|
+
}, "modelValue">>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
|
|
96
142
|
__isFragment?: undefined;
|
|
97
143
|
__isTeleport?: undefined;
|
|
98
144
|
__isSuspense?: undefined;
|
|
99
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<
|
|
145
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<import("lodash").Omit<{
|
|
146
|
+
readonly id: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
147
|
+
readonly size: {
|
|
148
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
149
|
+
readonly required: false;
|
|
150
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
151
|
+
__epPropKey: true;
|
|
152
|
+
};
|
|
153
|
+
readonly disabled: BooleanConstructor;
|
|
154
|
+
readonly modelValue: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor, BooleanConstructor], unknown, unknown, "", boolean>;
|
|
155
|
+
readonly fill: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
156
|
+
readonly label: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
157
|
+
readonly textColor: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
158
|
+
readonly name: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
159
|
+
readonly validateEvent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
160
|
+
}, "modelValue">>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
161
|
+
readonly fill: string;
|
|
162
|
+
readonly label: string;
|
|
163
|
+
readonly id: string;
|
|
164
|
+
readonly name: string;
|
|
165
|
+
readonly disabled: boolean;
|
|
166
|
+
readonly validateEvent: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
167
|
+
readonly textColor: string;
|
|
168
|
+
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
100
169
|
$slots: Partial<Record<string | number, (_: {}) => any>>;
|
|
101
170
|
});
|
|
102
171
|
export declare const MxRadioButton: {
|
|
@@ -104,6 +173,9 @@ export declare const MxRadioButton: {
|
|
|
104
173
|
$: import("vue").ComponentInternalInstance;
|
|
105
174
|
$data: {};
|
|
106
175
|
$props: {
|
|
176
|
+
readonly label?: import("element-plus/es/utils").EpPropMergeType<(BooleanConstructor | StringConstructor | NumberConstructor)[], unknown, unknown> | undefined;
|
|
177
|
+
readonly name?: string | undefined;
|
|
178
|
+
readonly disabled?: boolean | undefined;
|
|
107
179
|
key?: string | number | symbol | undefined;
|
|
108
180
|
ref?: import("vue").VNodeRef | undefined;
|
|
109
181
|
ref_for?: boolean | undefined;
|
|
@@ -148,6 +220,7 @@ export declare const MxRadioButton: {
|
|
|
148
220
|
}>) => void)[] | undefined;
|
|
149
221
|
class?: unknown;
|
|
150
222
|
style?: unknown;
|
|
223
|
+
readonly size?: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never> | undefined;
|
|
151
224
|
};
|
|
152
225
|
$attrs: {
|
|
153
226
|
[x: string]: unknown;
|
|
@@ -162,7 +235,21 @@ export declare const MxRadioButton: {
|
|
|
162
235
|
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
|
|
163
236
|
$emit: (event: string, ...args: any[]) => void;
|
|
164
237
|
$el: any;
|
|
165
|
-
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
238
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
239
|
+
readonly name: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
240
|
+
readonly size: {
|
|
241
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
242
|
+
readonly required: false;
|
|
243
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
244
|
+
__epPropKey: true;
|
|
245
|
+
};
|
|
246
|
+
readonly disabled: BooleanConstructor;
|
|
247
|
+
readonly label: import("element-plus/es/utils").EpPropFinalized<(BooleanConstructor | StringConstructor | NumberConstructor)[], unknown, unknown, string, boolean>;
|
|
248
|
+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
249
|
+
readonly label: import("element-plus/es/utils").EpPropMergeType<(BooleanConstructor | StringConstructor | NumberConstructor)[], unknown, unknown>;
|
|
250
|
+
readonly name: string;
|
|
251
|
+
readonly disabled: boolean;
|
|
252
|
+
}, {}, string, {}> & {
|
|
166
253
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
167
254
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
168
255
|
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -182,10 +269,34 @@ export declare const MxRadioButton: {
|
|
|
182
269
|
$forceUpdate: () => void;
|
|
183
270
|
$nextTick: typeof import("vue").nextTick;
|
|
184
271
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
185
|
-
} & Readonly<import("vue").ExtractPropTypes<{
|
|
272
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
|
273
|
+
readonly name: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
274
|
+
readonly size: {
|
|
275
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
276
|
+
readonly required: false;
|
|
277
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
278
|
+
__epPropKey: true;
|
|
279
|
+
};
|
|
280
|
+
readonly disabled: BooleanConstructor;
|
|
281
|
+
readonly label: import("element-plus/es/utils").EpPropFinalized<(BooleanConstructor | StringConstructor | NumberConstructor)[], unknown, unknown, string, boolean>;
|
|
282
|
+
}>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
|
|
186
283
|
__isFragment?: undefined;
|
|
187
284
|
__isTeleport?: undefined;
|
|
188
285
|
__isSuspense?: undefined;
|
|
189
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
286
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
287
|
+
readonly name: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
288
|
+
readonly size: {
|
|
289
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
290
|
+
readonly required: false;
|
|
291
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
292
|
+
__epPropKey: true;
|
|
293
|
+
};
|
|
294
|
+
readonly disabled: BooleanConstructor;
|
|
295
|
+
readonly label: import("element-plus/es/utils").EpPropFinalized<(BooleanConstructor | StringConstructor | NumberConstructor)[], unknown, unknown, string, boolean>;
|
|
296
|
+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
297
|
+
readonly label: import("element-plus/es/utils").EpPropMergeType<(BooleanConstructor | StringConstructor | NumberConstructor)[], unknown, unknown>;
|
|
298
|
+
readonly name: string;
|
|
299
|
+
readonly disabled: boolean;
|
|
300
|
+
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
190
301
|
$slots: Partial<Record<string | number, (_: {}) => any>>;
|
|
191
302
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type PropType } from 'vue';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
3
3
|
type: {
|
|
4
|
-
type: PropType<"" | "
|
|
4
|
+
type: PropType<"" | "success" | "warning" | "info" | "invalid" | "primary" | "danger" | "dashed">;
|
|
5
5
|
validator: (value: string) => boolean;
|
|
6
6
|
default: string;
|
|
7
7
|
};
|
|
@@ -15,7 +15,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
15
15
|
};
|
|
16
16
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
17
|
type: {
|
|
18
|
-
type: PropType<"" | "
|
|
18
|
+
type: PropType<"" | "success" | "warning" | "info" | "invalid" | "primary" | "danger" | "dashed">;
|
|
19
19
|
validator: (value: string) => boolean;
|
|
20
20
|
default: string;
|
|
21
21
|
};
|
|
@@ -29,7 +29,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
29
29
|
};
|
|
30
30
|
}>>, {
|
|
31
31
|
color: string;
|
|
32
|
-
type: "" | "
|
|
32
|
+
type: "" | "success" | "warning" | "info" | "invalid" | "primary" | "danger" | "dashed";
|
|
33
33
|
disabled: boolean;
|
|
34
34
|
}, {}>, Partial<Record<string | number, (_: {}) => any>>>;
|
|
35
35
|
export default _default;
|
|
@@ -87,11 +87,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
87
87
|
};
|
|
88
88
|
}>>, {
|
|
89
89
|
onChange: (uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
|
|
90
|
+
drag: boolean;
|
|
90
91
|
disabled: boolean;
|
|
91
92
|
beforeUpload: (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript").Awaitable<boolean | void | Blob | File | null | undefined>;
|
|
92
93
|
beforeRemove: (uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => import("element-plus/es/utils/typescript").Awaitable<boolean>;
|
|
93
94
|
onPreview: (uploadFile: import("element-plus").UploadFile) => void;
|
|
94
|
-
drag: boolean;
|
|
95
95
|
accept: unknown[];
|
|
96
96
|
fileList: UploadFiles;
|
|
97
97
|
limit: number;
|