@keyblade/pro-components 1.3.1 → 1.4.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/es/pro-breadcrumb/index.d.ts +1 -1
- package/es/pro-breadcrumb/pro-breadcrumb.vue.d.ts +3 -3
- package/es/pro-drawer-form/index.d.ts +130 -122
- package/es/pro-drawer-form/pro-drawer-form.vue.d.ts +55 -41
- package/es/pro-keep-alive-router-view/index.d.ts +1 -1
- package/es/pro-keep-alive-router-view/pro-keep-alive-router-view.vue.d.ts +3 -3
- package/es/pro-layout/index.d.ts +20 -12
- package/es/pro-layout/pro-layout.vue.d.ts +19 -8
- package/es/pro-menu/index.d.ts +3 -3
- package/es/pro-menu/pro-menu-item.vue.d.ts +5 -5
- package/es/pro-menu/pro-menu.vue.d.ts +3 -3
- package/es/pro-modal-form/index.d.ts +130 -122
- package/es/pro-modal-form/pro-modal-form.vue.d.ts +55 -41
- package/es/pro-page-container/index.d.ts +9 -5
- package/es/pro-page-container/pro-page-container.vue.d.ts +12 -5
- package/es/pro-reuse-tabs/index.d.ts +2 -2
- package/es/pro-reuse-tabs/pro-reuse-tabs.vue.d.ts +3 -3
- package/package.json +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
declare const
|
|
1
|
+
import { FieldData } from '@arco-design/web-vue/es/form/interface';
|
|
2
|
+
import { DefineComponent, ComponentInternalInstance, VNodeRef, VNode, RendererNode, RendererElement, Slot, ComponentPublicInstance, ComponentOptionsBase, ComputedRef, ComponentOptionsMixin, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, type PropType } from 'vue';
|
|
3
|
+
import { FieldRule, ValidatedError } from '@arco-design/web-vue';
|
|
4
|
+
declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
|
|
5
5
|
form: {
|
|
6
6
|
type: PropType<{
|
|
7
7
|
$: ComponentInternalInstance;
|
|
@@ -13,20 +13,6 @@ declare const _sfc_main: DefineComponent<{
|
|
|
13
13
|
wrapperColProps?: Record<string, any> | undefined;
|
|
14
14
|
labelAlign?: "left" | "right" | undefined;
|
|
15
15
|
autoLabelWidth?: boolean | undefined;
|
|
16
|
-
readonly model: Record<string, any>;
|
|
17
|
-
readonly size?: "mini" | "medium" | "large" | "small" | undefined;
|
|
18
|
-
readonly labelColStyle?: Record<string, any> | undefined;
|
|
19
|
-
readonly wrapperColStyle?: Record<string, any> | undefined;
|
|
20
|
-
readonly rules?: Record<string, FieldRule<any> | FieldRule<any>[]> | undefined;
|
|
21
|
-
onSubmit?: ((data: {
|
|
22
|
-
values: Record<string, any>;
|
|
23
|
-
errors: Record<string, ValidatedError> | undefined;
|
|
24
|
-
}, ev: Event) => any) | undefined;
|
|
25
|
-
onSubmitSuccess?: ((values: Record<string, any>, ev: Event) => any) | undefined;
|
|
26
|
-
onSubmitFailed?: ((data: {
|
|
27
|
-
values: Record<string, any>;
|
|
28
|
-
errors: Record<string, ValidatedError>;
|
|
29
|
-
}, ev: Event) => any) | undefined;
|
|
30
16
|
key?: string | number | symbol | undefined;
|
|
31
17
|
ref?: VNodeRef | undefined;
|
|
32
18
|
ref_for?: boolean | undefined;
|
|
@@ -71,6 +57,21 @@ declare const _sfc_main: DefineComponent<{
|
|
|
71
57
|
}>) => void)[] | undefined;
|
|
72
58
|
class?: unknown;
|
|
73
59
|
style?: unknown;
|
|
60
|
+
readonly model: Record<string, any>;
|
|
61
|
+
readonly size?: "mini" | "small" | "medium" | "large" | undefined;
|
|
62
|
+
readonly labelColStyle?: Record<string, any> | undefined;
|
|
63
|
+
readonly wrapperColStyle?: Record<string, any> | undefined;
|
|
64
|
+
readonly rules?: Record<string, FieldRule<any> | FieldRule<any>[]> | undefined;
|
|
65
|
+
onSubmit?: ((data: {
|
|
66
|
+
values: Record<string, any>;
|
|
67
|
+
/** 校验成功 */
|
|
68
|
+
errors: Record<string, ValidatedError> | undefined;
|
|
69
|
+
}, ev: Event) => any) | undefined;
|
|
70
|
+
onSubmitSuccess?: ((values: Record<string, any>, ev: Event) => any) | undefined;
|
|
71
|
+
onSubmitFailed?: ((data: {
|
|
72
|
+
values: Record<string, any>;
|
|
73
|
+
errors: Record<string, ValidatedError>;
|
|
74
|
+
}, ev: Event) => any) | undefined;
|
|
74
75
|
};
|
|
75
76
|
$attrs: {
|
|
76
77
|
[x: string]: unknown;
|
|
@@ -111,14 +112,15 @@ declare const _sfc_main: DefineComponent<{
|
|
|
111
112
|
labelAlign: "left" | "right";
|
|
112
113
|
autoLabelWidth: boolean;
|
|
113
114
|
} & {
|
|
115
|
+
size?: "mini" | "small" | "medium" | "large" | undefined;
|
|
114
116
|
disabled?: boolean | undefined;
|
|
115
|
-
size?: "mini" | "medium" | "large" | "small" | undefined;
|
|
116
117
|
labelColStyle?: Record<string, any> | undefined;
|
|
117
118
|
wrapperColStyle?: Record<string, any> | undefined;
|
|
118
119
|
rules?: Record<string, FieldRule<any> | FieldRule<any>[]> | undefined;
|
|
119
120
|
}> & {
|
|
120
121
|
onSubmit?: ((data: {
|
|
121
122
|
values: Record<string, any>;
|
|
123
|
+
/** 校验成功 */
|
|
122
124
|
errors: Record<string, ValidatedError> | undefined;
|
|
123
125
|
}, ev: Event) => any) | undefined;
|
|
124
126
|
onSubmitSuccess?: ((values: Record<string, any>, ev: Event) => any) | undefined;
|
|
@@ -199,14 +201,15 @@ declare const _sfc_main: DefineComponent<{
|
|
|
199
201
|
labelAlign: "left" | "right";
|
|
200
202
|
autoLabelWidth: boolean;
|
|
201
203
|
} & {
|
|
204
|
+
size?: "mini" | "small" | "medium" | "large" | undefined;
|
|
202
205
|
disabled?: boolean | undefined;
|
|
203
|
-
size?: "mini" | "medium" | "large" | "small" | undefined;
|
|
204
206
|
labelColStyle?: Record<string, any> | undefined;
|
|
205
207
|
wrapperColStyle?: Record<string, any> | undefined;
|
|
206
208
|
rules?: Record<string, FieldRule<any> | FieldRule<any>[]> | undefined;
|
|
207
209
|
}> & {
|
|
208
210
|
onSubmit?: ((data: {
|
|
209
211
|
values: Record<string, any>;
|
|
212
|
+
/** 校验成功 */
|
|
210
213
|
errors: Record<string, ValidatedError> | undefined;
|
|
211
214
|
}, ev: Event) => any) | undefined;
|
|
212
215
|
onSubmitSuccess?: ((values: Record<string, any>, ev: Event) => any) | undefined;
|
|
@@ -233,7 +236,10 @@ declare const _sfc_main: DefineComponent<{
|
|
|
233
236
|
} & ComponentCustomProperties & {}>;
|
|
234
237
|
required: false;
|
|
235
238
|
};
|
|
236
|
-
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin,
|
|
239
|
+
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
240
|
+
finish: (callback: (success: boolean) => void) => void;
|
|
241
|
+
failed: (errors: Record<string, ValidatedError>) => void;
|
|
242
|
+
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
237
243
|
form: {
|
|
238
244
|
type: PropType<{
|
|
239
245
|
$: ComponentInternalInstance;
|
|
@@ -245,20 +251,6 @@ declare const _sfc_main: DefineComponent<{
|
|
|
245
251
|
wrapperColProps?: Record<string, any> | undefined;
|
|
246
252
|
labelAlign?: "left" | "right" | undefined;
|
|
247
253
|
autoLabelWidth?: boolean | undefined;
|
|
248
|
-
readonly model: Record<string, any>;
|
|
249
|
-
readonly size?: "mini" | "medium" | "large" | "small" | undefined;
|
|
250
|
-
readonly labelColStyle?: Record<string, any> | undefined;
|
|
251
|
-
readonly wrapperColStyle?: Record<string, any> | undefined;
|
|
252
|
-
readonly rules?: Record<string, FieldRule<any> | FieldRule<any>[]> | undefined;
|
|
253
|
-
onSubmit?: ((data: {
|
|
254
|
-
values: Record<string, any>;
|
|
255
|
-
errors: Record<string, ValidatedError> | undefined;
|
|
256
|
-
}, ev: Event) => any) | undefined;
|
|
257
|
-
onSubmitSuccess?: ((values: Record<string, any>, ev: Event) => any) | undefined;
|
|
258
|
-
onSubmitFailed?: ((data: {
|
|
259
|
-
values: Record<string, any>;
|
|
260
|
-
errors: Record<string, ValidatedError>;
|
|
261
|
-
}, ev: Event) => any) | undefined;
|
|
262
254
|
key?: string | number | symbol | undefined;
|
|
263
255
|
ref?: VNodeRef | undefined;
|
|
264
256
|
ref_for?: boolean | undefined;
|
|
@@ -303,6 +295,21 @@ declare const _sfc_main: DefineComponent<{
|
|
|
303
295
|
}>) => void)[] | undefined;
|
|
304
296
|
class?: unknown;
|
|
305
297
|
style?: unknown;
|
|
298
|
+
readonly model: Record<string, any>;
|
|
299
|
+
readonly size?: "mini" | "small" | "medium" | "large" | undefined;
|
|
300
|
+
readonly labelColStyle?: Record<string, any> | undefined;
|
|
301
|
+
readonly wrapperColStyle?: Record<string, any> | undefined;
|
|
302
|
+
readonly rules?: Record<string, FieldRule<any> | FieldRule<any>[]> | undefined;
|
|
303
|
+
onSubmit?: ((data: {
|
|
304
|
+
values: Record<string, any>;
|
|
305
|
+
/** 校验成功 */
|
|
306
|
+
errors: Record<string, ValidatedError> | undefined;
|
|
307
|
+
}, ev: Event) => any) | undefined;
|
|
308
|
+
onSubmitSuccess?: ((values: Record<string, any>, ev: Event) => any) | undefined;
|
|
309
|
+
onSubmitFailed?: ((data: {
|
|
310
|
+
values: Record<string, any>;
|
|
311
|
+
errors: Record<string, ValidatedError>;
|
|
312
|
+
}, ev: Event) => any) | undefined;
|
|
306
313
|
};
|
|
307
314
|
$attrs: {
|
|
308
315
|
[x: string]: unknown;
|
|
@@ -343,14 +350,15 @@ declare const _sfc_main: DefineComponent<{
|
|
|
343
350
|
labelAlign: "left" | "right";
|
|
344
351
|
autoLabelWidth: boolean;
|
|
345
352
|
} & {
|
|
353
|
+
size?: "mini" | "small" | "medium" | "large" | undefined;
|
|
346
354
|
disabled?: boolean | undefined;
|
|
347
|
-
size?: "mini" | "medium" | "large" | "small" | undefined;
|
|
348
355
|
labelColStyle?: Record<string, any> | undefined;
|
|
349
356
|
wrapperColStyle?: Record<string, any> | undefined;
|
|
350
357
|
rules?: Record<string, FieldRule<any> | FieldRule<any>[]> | undefined;
|
|
351
358
|
}> & {
|
|
352
359
|
onSubmit?: ((data: {
|
|
353
360
|
values: Record<string, any>;
|
|
361
|
+
/** 校验成功 */
|
|
354
362
|
errors: Record<string, ValidatedError> | undefined;
|
|
355
363
|
}, ev: Event) => any) | undefined;
|
|
356
364
|
onSubmitSuccess?: ((values: Record<string, any>, ev: Event) => any) | undefined;
|
|
@@ -431,14 +439,15 @@ declare const _sfc_main: DefineComponent<{
|
|
|
431
439
|
labelAlign: "left" | "right";
|
|
432
440
|
autoLabelWidth: boolean;
|
|
433
441
|
} & {
|
|
442
|
+
size?: "mini" | "small" | "medium" | "large" | undefined;
|
|
434
443
|
disabled?: boolean | undefined;
|
|
435
|
-
size?: "mini" | "medium" | "large" | "small" | undefined;
|
|
436
444
|
labelColStyle?: Record<string, any> | undefined;
|
|
437
445
|
wrapperColStyle?: Record<string, any> | undefined;
|
|
438
446
|
rules?: Record<string, FieldRule<any> | FieldRule<any>[]> | undefined;
|
|
439
447
|
}> & {
|
|
440
448
|
onSubmit?: ((data: {
|
|
441
449
|
values: Record<string, any>;
|
|
450
|
+
/** 校验成功 */
|
|
442
451
|
errors: Record<string, ValidatedError> | undefined;
|
|
443
452
|
}, ev: Event) => any) | undefined;
|
|
444
453
|
onSubmitSuccess?: ((values: Record<string, any>, ev: Event) => any) | undefined;
|
|
@@ -466,7 +475,12 @@ declare const _sfc_main: DefineComponent<{
|
|
|
466
475
|
required: false;
|
|
467
476
|
};
|
|
468
477
|
}>> & {
|
|
469
|
-
onFinish?: ((
|
|
470
|
-
onFailed?: ((
|
|
471
|
-
}, {}, {}
|
|
472
|
-
export default
|
|
478
|
+
onFinish?: ((callback: (success: boolean) => void) => any) | undefined;
|
|
479
|
+
onFailed?: ((errors: Record<string, ValidatedError>) => any) | undefined;
|
|
480
|
+
}, {}, {}>, Partial<Record<string, (_: {}) => any>>>;
|
|
481
|
+
export default _default;
|
|
482
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
483
|
+
new (): {
|
|
484
|
+
$slots: S;
|
|
485
|
+
};
|
|
486
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ComponentInternalInstance, VNodeRef, VNode, RendererNode, RendererElement, Slot, ComponentPublicInstance, ComponentOptionsBase, ExtractPropTypes, PropType, ComponentOptionsMixin, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, VNodeProps, AllowedComponentProps, ComponentCustomProps, App } from 'vue';
|
|
2
2
|
declare const ProPageContainer: {
|
|
3
3
|
new (...args: any[]): {
|
|
4
4
|
$: ComponentInternalInstance;
|
|
5
5
|
$data: {};
|
|
6
6
|
$props: {
|
|
7
|
-
hideBreadcrumb?: boolean | undefined;
|
|
8
7
|
breadcrumbItems?: string[] | undefined;
|
|
8
|
+
hideBreadcrumb?: boolean | undefined;
|
|
9
9
|
key?: string | number | symbol | undefined;
|
|
10
10
|
ref?: VNodeRef | undefined;
|
|
11
11
|
ref_for?: boolean | undefined;
|
|
@@ -76,8 +76,8 @@ declare const ProPageContainer: {
|
|
|
76
76
|
default: () => never[];
|
|
77
77
|
};
|
|
78
78
|
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
79
|
-
hideBreadcrumb: boolean;
|
|
80
79
|
breadcrumbItems: string[];
|
|
80
|
+
hideBreadcrumb: boolean;
|
|
81
81
|
}, {}, string, {}> & {
|
|
82
82
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
83
83
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -125,9 +125,13 @@ declare const ProPageContainer: {
|
|
|
125
125
|
default: () => never[];
|
|
126
126
|
};
|
|
127
127
|
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
128
|
-
hideBreadcrumb: boolean;
|
|
129
128
|
breadcrumbItems: string[];
|
|
130
|
-
|
|
129
|
+
hideBreadcrumb: boolean;
|
|
130
|
+
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
131
|
+
$slots: {
|
|
132
|
+
default?(_: {}): any;
|
|
133
|
+
};
|
|
134
|
+
}) & {
|
|
131
135
|
install: (app: App) => void;
|
|
132
136
|
};
|
|
133
137
|
export { ProPageContainer };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
declare const
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
|
|
3
3
|
/** 是否隐藏面包屑 */
|
|
4
4
|
hideBreadcrumb: {
|
|
5
5
|
type: PropType<boolean>;
|
|
@@ -26,7 +26,14 @@ declare const _sfc_main: DefineComponent<{
|
|
|
26
26
|
default: () => never[];
|
|
27
27
|
};
|
|
28
28
|
}>>, {
|
|
29
|
-
hideBreadcrumb: boolean;
|
|
30
29
|
breadcrumbItems: string[];
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
hideBreadcrumb: boolean;
|
|
31
|
+
}, {}>, {
|
|
32
|
+
default?(_: {}): any;
|
|
33
|
+
}>;
|
|
34
|
+
export default _default;
|
|
35
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
36
|
+
new (): {
|
|
37
|
+
$slots: S;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { IProTab } from './interface';
|
|
2
|
+
import { ComponentInternalInstance, VNodeRef, VNode, RendererNode, RendererElement, Slot, ComponentPublicInstance, ComponentOptionsBase, ExtractPropTypes, PropType, ComponentOptionsMixin, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, VNodeProps, AllowedComponentProps, ComponentCustomProps, App } from 'vue';
|
|
3
3
|
declare const ProReuseTabs: {
|
|
4
4
|
new (...args: any[]): {
|
|
5
5
|
$: ComponentInternalInstance;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, type PropType } from 'vue';
|
|
2
2
|
import type { IProTab } from './interface';
|
|
3
|
-
declare const
|
|
3
|
+
declare const _default: DefineComponent<{
|
|
4
4
|
tabs: {
|
|
5
5
|
type: PropType<IProTab[]>;
|
|
6
6
|
required: true;
|
|
@@ -21,4 +21,4 @@ declare const _sfc_main: DefineComponent<{
|
|
|
21
21
|
}, {
|
|
22
22
|
tabs: IProTab[];
|
|
23
23
|
}, {}>;
|
|
24
|
-
export default
|
|
24
|
+
export default _default;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@keyblade/pro-components",
|
|
3
3
|
"description": "KeyBlade Pro Components",
|
|
4
4
|
"author": "yangshuai <704807396@qq.com>",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.4.0",
|
|
6
6
|
"private": false,
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "es/index.js",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"*.css"
|
|
20
20
|
],
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@arco-design/web-vue": "^2.
|
|
23
|
-
"vue-router": "^4.2.
|
|
22
|
+
"@arco-design/web-vue": "^2.48.1",
|
|
23
|
+
"vue-router": "^4.2.4"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"vue": "^3.3.4"
|