yc-pro-components 0.0.7 → 0.0.9
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/components/check-card/index.d.ts +76 -76
- package/es/components/check-card/src/index.vue.d.ts +14 -14
- package/es/components/check-card-group/index.d.ts +57 -57
- package/es/components/check-card-group/src/index.vue.d.ts +20 -20
- package/es/components/date-picker/index.d.ts +10 -10
- package/es/components/date-picker/src/index.vue.d.ts +2 -2
- package/es/components/descriptions/index.d.ts +39 -39
- package/es/components/descriptions/src/index.vue.d.ts +2 -2
- package/es/components/dialog/index.d.ts +45 -45
- package/es/components/dialog/src/index.vue.d.ts +3 -3
- package/es/components/dialog-form/index.d.ts +47 -47
- package/es/components/dialog-form/src/index.vue.d.ts +11 -11
- package/es/components/display-item/index.d.ts +24 -24
- package/es/components/display-item/src/index.vue.d.ts +24 -24
- package/es/components/drawer-form/index.d.ts +31 -31
- package/es/components/drawer-form/src/index.vue.d.ts +10 -10
- package/es/components/form/index.d.ts +138 -138
- package/es/components/form/src/form-content.vue.d.ts +29 -29
- package/es/components/form/src/index.vue.d.ts +25 -25
- package/es/components/form-item/index.d.ts +128 -128
- package/es/components/form-item/src/index.vue.d.ts +19 -19
- package/es/components/header/index.d.ts +19 -19
- package/es/components/header/src/index.vue.d.ts +1 -1
- package/es/components/input-tag/index.d.ts +16 -16
- package/es/components/input-tag/src/index.vue.d.ts +8 -8
- package/es/components/layout/index.d.ts +30 -30
- package/es/components/layout/src/index.vue.d.ts +10 -10
- package/es/components/page/index.d.ts +1035 -1035
- package/es/components/page/src/index.vue.d.ts +337 -337
- package/es/components/pagination/index.d.ts +38 -38
- package/es/components/pagination/src/index.vue.d.ts +2 -2
- package/es/components/radio/index.d.ts +34 -34
- package/es/components/radio/src/index.vue.d.ts +26 -26
- package/es/components/render/index.d.ts +17 -17
- package/es/components/render/src/index.vue.d.ts +2 -2
- package/es/components/search/index.d.ts +426 -426
- package/es/components/search/src/index.vue.d.ts +125 -125
- package/es/components/sidebar/index.d.ts +15 -15
- package/es/components/sidebar/src/index.vue.d.ts +5 -5
- package/es/components/steps-form/index.d.ts +19 -19
- package/es/components/steps-form/src/index.vue.d.ts +1 -1
- package/es/components/table/index.d.ts +38 -38
- package/es/components/table/src/index.vue.d.ts +7 -7
- package/es/components/table/src/table-action-bar.vue.d.ts +3 -3
- package/es/components/table/src/table-column-drag-sort.vue.d.ts +6 -6
- package/es/components/table/src/table-column.vue.d.ts +24 -24
- package/es/components/utils/index.d.ts +15 -15
- package/es/components/yc-count-to/index.d.ts +1 -1
- package/es/components/yc-count-to/src/normal/index.d.ts +1 -1
- package/es/components/yc-dialog/index.d.ts +24 -24
- package/es/components/yc-drawer/store.d.ts +6 -6
- package/es/components/yc-more-actions/index.d.ts +6 -6
- package/es/components/yc-more-actions/src/index.vue.d.ts +1 -1
- package/es/components/yc-plus-page/src/index.vue.d.ts +735 -735
- package/es/components/yc-plus-tree/src/index.vue.d.ts +1 -1
- package/es/components/yc-segmented/index.d.ts +1 -1
- package/es/components/yc-segmented/src/index.d.ts +1 -1
- package/es/components/yc-select-v2/src/index.vue.d.ts +1 -1
- package/es/components/yc-status-dialog/src/index.vue.d.ts +1 -1
- package/es/components/yc-status-dialog/src/index.vue.mjs +1 -1
- package/es/components/yc-tabs-with-filter/index.d.ts +16 -16
- package/es/hooks/usePlusFormReset.d.ts +208 -208
- package/es/index.css +1 -1
- package/index.css +8 -7
- package/index.js +2 -2
- package/index.min.css +1 -1
- package/index.min.js +2 -2
- package/index.min.mjs +2 -2
- package/index.mjs +2 -2
- package/lib/components/check-card/index.d.ts +76 -76
- package/lib/components/check-card/src/index.vue.d.ts +14 -14
- package/lib/components/check-card-group/index.d.ts +57 -57
- package/lib/components/check-card-group/src/index.vue.d.ts +20 -20
- package/lib/components/date-picker/index.d.ts +10 -10
- package/lib/components/date-picker/src/index.vue.d.ts +2 -2
- package/lib/components/descriptions/index.d.ts +39 -39
- package/lib/components/descriptions/src/index.vue.d.ts +2 -2
- package/lib/components/dialog/index.d.ts +45 -45
- package/lib/components/dialog/src/index.vue.d.ts +3 -3
- package/lib/components/dialog-form/index.d.ts +47 -47
- package/lib/components/dialog-form/src/index.vue.d.ts +11 -11
- package/lib/components/display-item/index.d.ts +24 -24
- package/lib/components/display-item/src/index.vue.d.ts +24 -24
- package/lib/components/drawer-form/index.d.ts +31 -31
- package/lib/components/drawer-form/src/index.vue.d.ts +10 -10
- package/lib/components/form/index.d.ts +138 -138
- package/lib/components/form/src/form-content.vue.d.ts +29 -29
- package/lib/components/form/src/index.vue.d.ts +25 -25
- package/lib/components/form-item/index.d.ts +128 -128
- package/lib/components/form-item/src/index.vue.d.ts +19 -19
- package/lib/components/header/index.d.ts +19 -19
- package/lib/components/header/src/index.vue.d.ts +1 -1
- package/lib/components/input-tag/index.d.ts +16 -16
- package/lib/components/input-tag/src/index.vue.d.ts +8 -8
- package/lib/components/layout/index.d.ts +30 -30
- package/lib/components/layout/src/index.vue.d.ts +10 -10
- package/lib/components/page/index.d.ts +1035 -1035
- package/lib/components/page/src/index.vue.d.ts +337 -337
- package/lib/components/pagination/index.d.ts +38 -38
- package/lib/components/pagination/src/index.vue.d.ts +2 -2
- package/lib/components/radio/index.d.ts +34 -34
- package/lib/components/radio/src/index.vue.d.ts +26 -26
- package/lib/components/render/index.d.ts +17 -17
- package/lib/components/render/src/index.vue.d.ts +2 -2
- package/lib/components/search/index.d.ts +426 -426
- package/lib/components/search/src/index.vue.d.ts +125 -125
- package/lib/components/sidebar/index.d.ts +15 -15
- package/lib/components/sidebar/src/index.vue.d.ts +5 -5
- package/lib/components/steps-form/index.d.ts +19 -19
- package/lib/components/steps-form/src/index.vue.d.ts +1 -1
- package/lib/components/table/index.d.ts +38 -38
- package/lib/components/table/src/index.vue.d.ts +7 -7
- package/lib/components/table/src/table-action-bar.vue.d.ts +3 -3
- package/lib/components/table/src/table-column-drag-sort.vue.d.ts +6 -6
- package/lib/components/table/src/table-column.vue.d.ts +24 -24
- package/lib/components/utils/index.d.ts +15 -15
- package/lib/components/yc-count-to/index.d.ts +1 -1
- package/lib/components/yc-count-to/src/normal/index.d.ts +1 -1
- package/lib/components/yc-dialog/index.d.ts +24 -24
- package/lib/components/yc-drawer/store.d.ts +6 -6
- package/lib/components/yc-more-actions/index.d.ts +6 -6
- package/lib/components/yc-more-actions/src/index.vue.d.ts +1 -1
- package/lib/components/yc-plus-page/src/index.vue.d.ts +735 -735
- package/lib/components/yc-plus-tree/src/index.vue.d.ts +1 -1
- package/lib/components/yc-segmented/index.d.ts +1 -1
- package/lib/components/yc-segmented/src/index.d.ts +1 -1
- package/lib/components/yc-select-v2/src/index.vue.d.ts +1 -1
- package/lib/components/yc-status-dialog/src/index.vue.d.ts +1 -1
- package/lib/components/yc-status-dialog/src/index.vue.js +1 -1
- package/lib/components/yc-tabs-with-filter/index.d.ts +16 -16
- package/lib/hooks/usePlusFormReset.d.ts +208 -208
- package/lib/index.css +1 -1
- package/locale/en.js +1 -1
- package/locale/en.min.js +1 -1
- package/locale/en.min.mjs +1 -1
- package/locale/en.mjs +1 -1
- package/locale/ja.js +1 -1
- package/locale/ja.min.js +1 -1
- package/locale/ja.min.mjs +1 -1
- package/locale/ja.mjs +1 -1
- package/locale/ko.js +1 -1
- package/locale/ko.min.js +1 -1
- package/locale/ko.min.mjs +1 -1
- package/locale/ko.mjs +1 -1
- package/locale/zh-cn.js +1 -1
- package/locale/zh-cn.min.js +1 -1
- package/locale/zh-cn.min.mjs +1 -1
- package/locale/zh-cn.mjs +1 -1
- package/locale/zh-tw.js +1 -1
- package/locale/zh-tw.min.js +1 -1
- package/locale/zh-tw.min.mjs +1 -1
- package/locale/zh-tw.mjs +1 -1
- package/package.json +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/plus-yc-status-dialog.css +1 -1
- package/theme-chalk/src/yc-status-dialog.scss +1 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { TimeSelectProps } from 'element-plus/es/components/time-select/src/time-select';
|
|
2
2
|
import { LooseRequired } from '@vue/shared';
|
|
3
|
-
import { FormItemRule,
|
|
3
|
+
import { FormItemRule, RowProps, ColProps, CardProps, FormItemProp, FormItemContext, FormValidateCallback, FormValidationResult, ElTooltipProps, FormItemProps, ProgressFn, CascaderNode, InputAutoSize, AutocompleteProps, CheckboxGroupProps, ColorPickerProps, DatePickerProps, InputProps, InputNumberProps, RadioGroupProps, RateProps, ISelectProps, SliderProps, SwitchProps, TimePickerDefaultProps, TextProps, ImageProps, LinkProps, TagProps, ProgressProps } from 'element-plus';
|
|
4
4
|
import { Arrayable, EpPropFinalized, EpPropMergeType } from 'element-plus/es/utils';
|
|
5
5
|
import { PlusFormGroupRow } from './src/type';
|
|
6
|
-
import {
|
|
6
|
+
import { FieldValues, PlusColumn, Mutable, RecordType, PlusFormItemProps, PropsItemType, OmitTypes, CascaderProps, PlusRadioProps, PlusDatePickerProps, PlusInputTagProps, OptionsType, RenderTypes, TableValueType, FormItemValueType, FieldValueType, OptionsRow } from 'packages/yc-components';
|
|
7
7
|
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, CSSProperties, Ref, ComputedRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Component } from 'vue';
|
|
8
8
|
import { default as Form } from './src/index.vue';
|
|
9
9
|
|
|
@@ -11,6 +11,18 @@ export type PlusFormInstance = InstanceType<typeof Form>;
|
|
|
11
11
|
export * from './src/type';
|
|
12
12
|
export declare const PlusForm: {
|
|
13
13
|
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
14
|
+
modelValue: {
|
|
15
|
+
type: PropType<FieldValues>;
|
|
16
|
+
default: () => {};
|
|
17
|
+
};
|
|
18
|
+
collapseDuration: {
|
|
19
|
+
type: PropType<number>;
|
|
20
|
+
default: undefined;
|
|
21
|
+
};
|
|
22
|
+
collapseTransition: {
|
|
23
|
+
type: PropType<boolean>;
|
|
24
|
+
default: undefined;
|
|
25
|
+
};
|
|
14
26
|
columns: {
|
|
15
27
|
type: PropType< PlusColumn[]>;
|
|
16
28
|
default: () => never[];
|
|
@@ -19,10 +31,6 @@ export declare const PlusForm: {
|
|
|
19
31
|
type: PropType<false | PlusFormGroupRow[]>;
|
|
20
32
|
default: boolean;
|
|
21
33
|
};
|
|
22
|
-
modelValue: {
|
|
23
|
-
type: PropType<FieldValues>;
|
|
24
|
-
default: () => {};
|
|
25
|
-
};
|
|
26
34
|
rules: {
|
|
27
35
|
type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
28
36
|
default: () => {};
|
|
@@ -43,25 +51,10 @@ export declare const PlusForm: {
|
|
|
43
51
|
type: PropType<boolean>;
|
|
44
52
|
default: boolean;
|
|
45
53
|
};
|
|
46
|
-
|
|
47
|
-
type: PropType<
|
|
48
|
-
default: boolean;
|
|
49
|
-
};
|
|
50
|
-
colProps: {
|
|
51
|
-
type: PropType<Partial< Mutable<ColProps> & {
|
|
52
|
-
style?: CSSProperties | undefined;
|
|
53
|
-
class?: any;
|
|
54
|
-
} & RecordType>>;
|
|
54
|
+
defaultValues: {
|
|
55
|
+
type: PropType<FieldValues>;
|
|
55
56
|
default: () => {};
|
|
56
57
|
};
|
|
57
|
-
collapseDuration: {
|
|
58
|
-
type: PropType<number>;
|
|
59
|
-
default: undefined;
|
|
60
|
-
};
|
|
61
|
-
collapseTransition: {
|
|
62
|
-
type: PropType<boolean>;
|
|
63
|
-
default: undefined;
|
|
64
|
-
};
|
|
65
58
|
rowProps: {
|
|
66
59
|
type: PropType<Partial< Mutable<RowProps> & {
|
|
67
60
|
style?: CSSProperties | undefined;
|
|
@@ -69,8 +62,11 @@ export declare const PlusForm: {
|
|
|
69
62
|
} & RecordType>>;
|
|
70
63
|
default: () => {};
|
|
71
64
|
};
|
|
72
|
-
|
|
73
|
-
type: PropType<
|
|
65
|
+
colProps: {
|
|
66
|
+
type: PropType<Partial< Mutable<ColProps> & {
|
|
67
|
+
style?: CSSProperties | undefined;
|
|
68
|
+
class?: any;
|
|
69
|
+
} & RecordType>>;
|
|
74
70
|
default: () => {};
|
|
75
71
|
};
|
|
76
72
|
hasErrorTip: {
|
|
@@ -98,7 +94,7 @@ export declare const PlusForm: {
|
|
|
98
94
|
default: boolean;
|
|
99
95
|
};
|
|
100
96
|
footerAlign: {
|
|
101
|
-
type: PropType<"
|
|
97
|
+
type: PropType<"center" | "right" | "left">;
|
|
102
98
|
default: string;
|
|
103
99
|
};
|
|
104
100
|
cardProps: {
|
|
@@ -112,6 +108,10 @@ export declare const PlusForm: {
|
|
|
112
108
|
type: PropType<boolean>;
|
|
113
109
|
default: boolean;
|
|
114
110
|
};
|
|
111
|
+
clearable: {
|
|
112
|
+
type: PropType<boolean>;
|
|
113
|
+
default: boolean;
|
|
114
|
+
};
|
|
115
115
|
}>> & {
|
|
116
116
|
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
117
117
|
onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
|
|
@@ -412,6 +412,18 @@ export declare const PlusForm: {
|
|
|
412
412
|
submitError: (errors: unknown) => void;
|
|
413
413
|
validate: (...args: any[]) => void;
|
|
414
414
|
}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
415
|
+
modelValue: {
|
|
416
|
+
type: PropType<FieldValues>;
|
|
417
|
+
default: () => {};
|
|
418
|
+
};
|
|
419
|
+
collapseDuration: {
|
|
420
|
+
type: PropType<number>;
|
|
421
|
+
default: undefined;
|
|
422
|
+
};
|
|
423
|
+
collapseTransition: {
|
|
424
|
+
type: PropType<boolean>;
|
|
425
|
+
default: undefined;
|
|
426
|
+
};
|
|
415
427
|
columns: {
|
|
416
428
|
type: PropType< PlusColumn[]>;
|
|
417
429
|
default: () => never[];
|
|
@@ -420,10 +432,6 @@ export declare const PlusForm: {
|
|
|
420
432
|
type: PropType<false | PlusFormGroupRow[]>;
|
|
421
433
|
default: boolean;
|
|
422
434
|
};
|
|
423
|
-
modelValue: {
|
|
424
|
-
type: PropType<FieldValues>;
|
|
425
|
-
default: () => {};
|
|
426
|
-
};
|
|
427
435
|
rules: {
|
|
428
436
|
type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
429
437
|
default: () => {};
|
|
@@ -444,25 +452,10 @@ export declare const PlusForm: {
|
|
|
444
452
|
type: PropType<boolean>;
|
|
445
453
|
default: boolean;
|
|
446
454
|
};
|
|
447
|
-
|
|
448
|
-
type: PropType<
|
|
449
|
-
default: boolean;
|
|
450
|
-
};
|
|
451
|
-
colProps: {
|
|
452
|
-
type: PropType<Partial< Mutable<ColProps> & {
|
|
453
|
-
style?: CSSProperties | undefined;
|
|
454
|
-
class?: any;
|
|
455
|
-
} & RecordType>>;
|
|
455
|
+
defaultValues: {
|
|
456
|
+
type: PropType<FieldValues>;
|
|
456
457
|
default: () => {};
|
|
457
458
|
};
|
|
458
|
-
collapseDuration: {
|
|
459
|
-
type: PropType<number>;
|
|
460
|
-
default: undefined;
|
|
461
|
-
};
|
|
462
|
-
collapseTransition: {
|
|
463
|
-
type: PropType<boolean>;
|
|
464
|
-
default: undefined;
|
|
465
|
-
};
|
|
466
459
|
rowProps: {
|
|
467
460
|
type: PropType<Partial< Mutable<RowProps> & {
|
|
468
461
|
style?: CSSProperties | undefined;
|
|
@@ -470,8 +463,11 @@ export declare const PlusForm: {
|
|
|
470
463
|
} & RecordType>>;
|
|
471
464
|
default: () => {};
|
|
472
465
|
};
|
|
473
|
-
|
|
474
|
-
type: PropType<
|
|
466
|
+
colProps: {
|
|
467
|
+
type: PropType<Partial< Mutable<ColProps> & {
|
|
468
|
+
style?: CSSProperties | undefined;
|
|
469
|
+
class?: any;
|
|
470
|
+
} & RecordType>>;
|
|
475
471
|
default: () => {};
|
|
476
472
|
};
|
|
477
473
|
hasErrorTip: {
|
|
@@ -499,7 +495,7 @@ export declare const PlusForm: {
|
|
|
499
495
|
default: boolean;
|
|
500
496
|
};
|
|
501
497
|
footerAlign: {
|
|
502
|
-
type: PropType<"
|
|
498
|
+
type: PropType<"center" | "right" | "left">;
|
|
503
499
|
default: string;
|
|
504
500
|
};
|
|
505
501
|
cardProps: {
|
|
@@ -513,6 +509,10 @@ export declare const PlusForm: {
|
|
|
513
509
|
type: PropType<boolean>;
|
|
514
510
|
default: boolean;
|
|
515
511
|
};
|
|
512
|
+
clearable: {
|
|
513
|
+
type: PropType<boolean>;
|
|
514
|
+
default: boolean;
|
|
515
|
+
};
|
|
516
516
|
}>> & {
|
|
517
517
|
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
518
518
|
onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
|
|
@@ -521,38 +521,38 @@ export declare const PlusForm: {
|
|
|
521
521
|
onValidate?: ((...args: any[]) => any) | undefined;
|
|
522
522
|
onSubmitError?: ((errors: unknown) => any) | undefined;
|
|
523
523
|
}, {
|
|
524
|
+
modelValue: FieldValues;
|
|
525
|
+
collapseDuration: number;
|
|
526
|
+
collapseTransition: boolean;
|
|
524
527
|
columns: PlusColumn[];
|
|
525
528
|
group: false | PlusFormGroupRow[];
|
|
526
|
-
modelValue: FieldValues;
|
|
527
529
|
rules: Partial<Record<string, Arrayable<FormItemRule>>>;
|
|
528
530
|
labelPosition: "top" | "right" | "left";
|
|
529
531
|
labelWidth: string | number;
|
|
530
532
|
labelSuffix: string;
|
|
531
533
|
hasLabel: boolean;
|
|
532
|
-
|
|
533
|
-
|
|
534
|
+
defaultValues: FieldValues;
|
|
535
|
+
rowProps: Partial< Mutable<RowProps> & {
|
|
534
536
|
style?: CSSProperties | undefined;
|
|
535
537
|
class?: any;
|
|
536
538
|
} & RecordType>;
|
|
537
|
-
|
|
538
|
-
collapseTransition: boolean;
|
|
539
|
-
rowProps: Partial< Mutable<RowProps> & {
|
|
539
|
+
colProps: Partial< Mutable<ColProps> & {
|
|
540
540
|
style?: CSSProperties | undefined;
|
|
541
541
|
class?: any;
|
|
542
542
|
} & RecordType>;
|
|
543
|
-
defaultValues: FieldValues;
|
|
544
543
|
hasErrorTip: boolean;
|
|
545
544
|
hasFooter: boolean;
|
|
546
545
|
hasReset: boolean;
|
|
547
546
|
submitText: string;
|
|
548
547
|
resetText: string;
|
|
549
548
|
submitLoading: boolean;
|
|
550
|
-
footerAlign: "
|
|
549
|
+
footerAlign: "center" | "right" | "left";
|
|
551
550
|
cardProps: Partial< Mutable<CardProps> & {
|
|
552
551
|
style?: CSSProperties | undefined;
|
|
553
552
|
class?: any;
|
|
554
553
|
} & RecordType>;
|
|
555
554
|
prevent: boolean;
|
|
555
|
+
clearable: boolean;
|
|
556
556
|
}, true, {}, {}, {
|
|
557
557
|
P: {};
|
|
558
558
|
B: {};
|
|
@@ -561,6 +561,18 @@ export declare const PlusForm: {
|
|
|
561
561
|
M: {};
|
|
562
562
|
Defaults: {};
|
|
563
563
|
}, Readonly< ExtractPropTypes<{
|
|
564
|
+
modelValue: {
|
|
565
|
+
type: PropType<FieldValues>;
|
|
566
|
+
default: () => {};
|
|
567
|
+
};
|
|
568
|
+
collapseDuration: {
|
|
569
|
+
type: PropType<number>;
|
|
570
|
+
default: undefined;
|
|
571
|
+
};
|
|
572
|
+
collapseTransition: {
|
|
573
|
+
type: PropType<boolean>;
|
|
574
|
+
default: undefined;
|
|
575
|
+
};
|
|
564
576
|
columns: {
|
|
565
577
|
type: PropType< PlusColumn[]>;
|
|
566
578
|
default: () => never[];
|
|
@@ -569,10 +581,6 @@ export declare const PlusForm: {
|
|
|
569
581
|
type: PropType<false | PlusFormGroupRow[]>;
|
|
570
582
|
default: boolean;
|
|
571
583
|
};
|
|
572
|
-
modelValue: {
|
|
573
|
-
type: PropType<FieldValues>;
|
|
574
|
-
default: () => {};
|
|
575
|
-
};
|
|
576
584
|
rules: {
|
|
577
585
|
type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
578
586
|
default: () => {};
|
|
@@ -593,25 +601,10 @@ export declare const PlusForm: {
|
|
|
593
601
|
type: PropType<boolean>;
|
|
594
602
|
default: boolean;
|
|
595
603
|
};
|
|
596
|
-
|
|
597
|
-
type: PropType<
|
|
598
|
-
default: boolean;
|
|
599
|
-
};
|
|
600
|
-
colProps: {
|
|
601
|
-
type: PropType<Partial< Mutable<ColProps> & {
|
|
602
|
-
style?: CSSProperties | undefined;
|
|
603
|
-
class?: any;
|
|
604
|
-
} & RecordType>>;
|
|
604
|
+
defaultValues: {
|
|
605
|
+
type: PropType<FieldValues>;
|
|
605
606
|
default: () => {};
|
|
606
607
|
};
|
|
607
|
-
collapseDuration: {
|
|
608
|
-
type: PropType<number>;
|
|
609
|
-
default: undefined;
|
|
610
|
-
};
|
|
611
|
-
collapseTransition: {
|
|
612
|
-
type: PropType<boolean>;
|
|
613
|
-
default: undefined;
|
|
614
|
-
};
|
|
615
608
|
rowProps: {
|
|
616
609
|
type: PropType<Partial< Mutable<RowProps> & {
|
|
617
610
|
style?: CSSProperties | undefined;
|
|
@@ -619,8 +612,11 @@ export declare const PlusForm: {
|
|
|
619
612
|
} & RecordType>>;
|
|
620
613
|
default: () => {};
|
|
621
614
|
};
|
|
622
|
-
|
|
623
|
-
type: PropType<
|
|
615
|
+
colProps: {
|
|
616
|
+
type: PropType<Partial< Mutable<ColProps> & {
|
|
617
|
+
style?: CSSProperties | undefined;
|
|
618
|
+
class?: any;
|
|
619
|
+
} & RecordType>>;
|
|
624
620
|
default: () => {};
|
|
625
621
|
};
|
|
626
622
|
hasErrorTip: {
|
|
@@ -648,7 +644,7 @@ export declare const PlusForm: {
|
|
|
648
644
|
default: boolean;
|
|
649
645
|
};
|
|
650
646
|
footerAlign: {
|
|
651
|
-
type: PropType<"
|
|
647
|
+
type: PropType<"center" | "right" | "left">;
|
|
652
648
|
default: string;
|
|
653
649
|
};
|
|
654
650
|
cardProps: {
|
|
@@ -662,6 +658,10 @@ export declare const PlusForm: {
|
|
|
662
658
|
type: PropType<boolean>;
|
|
663
659
|
default: boolean;
|
|
664
660
|
};
|
|
661
|
+
clearable: {
|
|
662
|
+
type: PropType<boolean>;
|
|
663
|
+
default: boolean;
|
|
664
|
+
};
|
|
665
665
|
}>> & {
|
|
666
666
|
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
667
667
|
onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
|
|
@@ -955,43 +955,55 @@ export declare const PlusForm: {
|
|
|
955
955
|
handleSubmit: () => Promise<boolean>;
|
|
956
956
|
handleReset: () => void;
|
|
957
957
|
}, {}, {}, {}, {
|
|
958
|
+
modelValue: FieldValues;
|
|
959
|
+
collapseDuration: number;
|
|
960
|
+
collapseTransition: boolean;
|
|
958
961
|
columns: PlusColumn[];
|
|
959
962
|
group: false | PlusFormGroupRow[];
|
|
960
|
-
modelValue: FieldValues;
|
|
961
963
|
rules: Partial<Record<string, Arrayable<FormItemRule>>>;
|
|
962
964
|
labelPosition: "top" | "right" | "left";
|
|
963
965
|
labelWidth: string | number;
|
|
964
966
|
labelSuffix: string;
|
|
965
967
|
hasLabel: boolean;
|
|
966
|
-
|
|
967
|
-
|
|
968
|
+
defaultValues: FieldValues;
|
|
969
|
+
rowProps: Partial< Mutable<RowProps> & {
|
|
968
970
|
style?: CSSProperties | undefined;
|
|
969
971
|
class?: any;
|
|
970
972
|
} & RecordType>;
|
|
971
|
-
|
|
972
|
-
collapseTransition: boolean;
|
|
973
|
-
rowProps: Partial< Mutable<RowProps> & {
|
|
973
|
+
colProps: Partial< Mutable<ColProps> & {
|
|
974
974
|
style?: CSSProperties | undefined;
|
|
975
975
|
class?: any;
|
|
976
976
|
} & RecordType>;
|
|
977
|
-
defaultValues: FieldValues;
|
|
978
977
|
hasErrorTip: boolean;
|
|
979
978
|
hasFooter: boolean;
|
|
980
979
|
hasReset: boolean;
|
|
981
980
|
submitText: string;
|
|
982
981
|
resetText: string;
|
|
983
982
|
submitLoading: boolean;
|
|
984
|
-
footerAlign: "
|
|
983
|
+
footerAlign: "center" | "right" | "left";
|
|
985
984
|
cardProps: Partial< Mutable<CardProps> & {
|
|
986
985
|
style?: CSSProperties | undefined;
|
|
987
986
|
class?: any;
|
|
988
987
|
} & RecordType>;
|
|
989
988
|
prevent: boolean;
|
|
989
|
+
clearable: boolean;
|
|
990
990
|
}>;
|
|
991
991
|
__isFragment?: undefined;
|
|
992
992
|
__isTeleport?: undefined;
|
|
993
993
|
__isSuspense?: undefined;
|
|
994
994
|
} & ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
995
|
+
modelValue: {
|
|
996
|
+
type: PropType<FieldValues>;
|
|
997
|
+
default: () => {};
|
|
998
|
+
};
|
|
999
|
+
collapseDuration: {
|
|
1000
|
+
type: PropType<number>;
|
|
1001
|
+
default: undefined;
|
|
1002
|
+
};
|
|
1003
|
+
collapseTransition: {
|
|
1004
|
+
type: PropType<boolean>;
|
|
1005
|
+
default: undefined;
|
|
1006
|
+
};
|
|
995
1007
|
columns: {
|
|
996
1008
|
type: PropType< PlusColumn[]>;
|
|
997
1009
|
default: () => never[];
|
|
@@ -1000,10 +1012,6 @@ export declare const PlusForm: {
|
|
|
1000
1012
|
type: PropType<false | PlusFormGroupRow[]>;
|
|
1001
1013
|
default: boolean;
|
|
1002
1014
|
};
|
|
1003
|
-
modelValue: {
|
|
1004
|
-
type: PropType<FieldValues>;
|
|
1005
|
-
default: () => {};
|
|
1006
|
-
};
|
|
1007
1015
|
rules: {
|
|
1008
1016
|
type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
1009
1017
|
default: () => {};
|
|
@@ -1024,25 +1032,10 @@ export declare const PlusForm: {
|
|
|
1024
1032
|
type: PropType<boolean>;
|
|
1025
1033
|
default: boolean;
|
|
1026
1034
|
};
|
|
1027
|
-
|
|
1028
|
-
type: PropType<
|
|
1029
|
-
default: boolean;
|
|
1030
|
-
};
|
|
1031
|
-
colProps: {
|
|
1032
|
-
type: PropType<Partial< Mutable<ColProps> & {
|
|
1033
|
-
style?: CSSProperties | undefined;
|
|
1034
|
-
class?: any;
|
|
1035
|
-
} & RecordType>>;
|
|
1035
|
+
defaultValues: {
|
|
1036
|
+
type: PropType<FieldValues>;
|
|
1036
1037
|
default: () => {};
|
|
1037
1038
|
};
|
|
1038
|
-
collapseDuration: {
|
|
1039
|
-
type: PropType<number>;
|
|
1040
|
-
default: undefined;
|
|
1041
|
-
};
|
|
1042
|
-
collapseTransition: {
|
|
1043
|
-
type: PropType<boolean>;
|
|
1044
|
-
default: undefined;
|
|
1045
|
-
};
|
|
1046
1039
|
rowProps: {
|
|
1047
1040
|
type: PropType<Partial< Mutable<RowProps> & {
|
|
1048
1041
|
style?: CSSProperties | undefined;
|
|
@@ -1050,8 +1043,11 @@ export declare const PlusForm: {
|
|
|
1050
1043
|
} & RecordType>>;
|
|
1051
1044
|
default: () => {};
|
|
1052
1045
|
};
|
|
1053
|
-
|
|
1054
|
-
type: PropType<
|
|
1046
|
+
colProps: {
|
|
1047
|
+
type: PropType<Partial< Mutable<ColProps> & {
|
|
1048
|
+
style?: CSSProperties | undefined;
|
|
1049
|
+
class?: any;
|
|
1050
|
+
} & RecordType>>;
|
|
1055
1051
|
default: () => {};
|
|
1056
1052
|
};
|
|
1057
1053
|
hasErrorTip: {
|
|
@@ -1079,7 +1075,7 @@ export declare const PlusForm: {
|
|
|
1079
1075
|
default: boolean;
|
|
1080
1076
|
};
|
|
1081
1077
|
footerAlign: {
|
|
1082
|
-
type: PropType<"
|
|
1078
|
+
type: PropType<"center" | "right" | "left">;
|
|
1083
1079
|
default: string;
|
|
1084
1080
|
};
|
|
1085
1081
|
cardProps: {
|
|
@@ -1093,6 +1089,10 @@ export declare const PlusForm: {
|
|
|
1093
1089
|
type: PropType<boolean>;
|
|
1094
1090
|
default: boolean;
|
|
1095
1091
|
};
|
|
1092
|
+
clearable: {
|
|
1093
|
+
type: PropType<boolean>;
|
|
1094
|
+
default: boolean;
|
|
1095
|
+
};
|
|
1096
1096
|
}>> & {
|
|
1097
1097
|
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
1098
1098
|
onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
|
|
@@ -1393,38 +1393,38 @@ export declare const PlusForm: {
|
|
|
1393
1393
|
submitError: (errors: unknown) => void;
|
|
1394
1394
|
validate: (...args: any[]) => void;
|
|
1395
1395
|
}, string, {
|
|
1396
|
+
modelValue: FieldValues;
|
|
1397
|
+
collapseDuration: number;
|
|
1398
|
+
collapseTransition: boolean;
|
|
1396
1399
|
columns: PlusColumn[];
|
|
1397
1400
|
group: false | PlusFormGroupRow[];
|
|
1398
|
-
modelValue: FieldValues;
|
|
1399
1401
|
rules: Partial<Record<string, Arrayable<FormItemRule>>>;
|
|
1400
1402
|
labelPosition: "top" | "right" | "left";
|
|
1401
1403
|
labelWidth: string | number;
|
|
1402
1404
|
labelSuffix: string;
|
|
1403
1405
|
hasLabel: boolean;
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
+
defaultValues: FieldValues;
|
|
1407
|
+
rowProps: Partial< Mutable<RowProps> & {
|
|
1406
1408
|
style?: CSSProperties | undefined;
|
|
1407
1409
|
class?: any;
|
|
1408
1410
|
} & RecordType>;
|
|
1409
|
-
|
|
1410
|
-
collapseTransition: boolean;
|
|
1411
|
-
rowProps: Partial< Mutable<RowProps> & {
|
|
1411
|
+
colProps: Partial< Mutable<ColProps> & {
|
|
1412
1412
|
style?: CSSProperties | undefined;
|
|
1413
1413
|
class?: any;
|
|
1414
1414
|
} & RecordType>;
|
|
1415
|
-
defaultValues: FieldValues;
|
|
1416
1415
|
hasErrorTip: boolean;
|
|
1417
1416
|
hasFooter: boolean;
|
|
1418
1417
|
hasReset: boolean;
|
|
1419
1418
|
submitText: string;
|
|
1420
1419
|
resetText: string;
|
|
1421
1420
|
submitLoading: boolean;
|
|
1422
|
-
footerAlign: "
|
|
1421
|
+
footerAlign: "center" | "right" | "left";
|
|
1423
1422
|
cardProps: Partial< Mutable<CardProps> & {
|
|
1424
1423
|
style?: CSSProperties | undefined;
|
|
1425
1424
|
class?: any;
|
|
1426
1425
|
} & RecordType>;
|
|
1427
1426
|
prevent: boolean;
|
|
1427
|
+
clearable: boolean;
|
|
1428
1428
|
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
1429
1429
|
$slots: Partial<Record<string, (_: {
|
|
1430
1430
|
index: number;
|
|
@@ -1438,14 +1438,14 @@ export declare const PlusForm: {
|
|
|
1438
1438
|
hideInGroup?: boolean | ComputedRef<boolean> | undefined;
|
|
1439
1439
|
columns?: PlusColumn[] | undefined;
|
|
1440
1440
|
}) => any>> & Partial<Record<NonNullable<string | number>, (_: {
|
|
1441
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "
|
|
1441
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "modelValue" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap">> & {
|
|
1442
1442
|
readonly label: string | ComputedRef<string>;
|
|
1443
|
-
readonly modelValue: string | number | boolean |
|
|
1443
|
+
readonly modelValue: string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
1444
1444
|
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
1445
|
-
readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
1445
|
+
readonly tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
|
|
1446
1446
|
style?: CSSProperties | undefined;
|
|
1447
1447
|
class?: any;
|
|
1448
|
-
} & RecordType> | ComputedRef<
|
|
1448
|
+
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
1449
1449
|
style?: CSSProperties | undefined;
|
|
1450
1450
|
class?: any;
|
|
1451
1451
|
} & RecordType>>;
|
|
@@ -1467,7 +1467,7 @@ export declare const PlusForm: {
|
|
|
1467
1467
|
};
|
|
1468
1468
|
rows: number;
|
|
1469
1469
|
autocomplete: string;
|
|
1470
|
-
type: "" | "number" | "default" | "
|
|
1470
|
+
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "checkbox" | "radio" | "color" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "datetimerange" | "daterange" | "monthrange" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
|
|
1471
1471
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
1472
1472
|
step: string | number;
|
|
1473
1473
|
format: string | ProgressFn | undefined;
|
|
@@ -1506,12 +1506,12 @@ export declare const PlusForm: {
|
|
|
1506
1506
|
fieldInstance?: any;
|
|
1507
1507
|
valueIsReady?: Ref<boolean> | undefined;
|
|
1508
1508
|
prop: string;
|
|
1509
|
-
modelValue: string | number | boolean |
|
|
1509
|
+
modelValue: string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
1510
1510
|
hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
1511
|
-
tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
1511
|
+
tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
|
|
1512
1512
|
style?: CSSProperties | undefined;
|
|
1513
1513
|
class?: any;
|
|
1514
|
-
} & RecordType> | ComputedRef<
|
|
1514
|
+
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
1515
1515
|
style?: CSSProperties | undefined;
|
|
1516
1516
|
class?: any;
|
|
1517
1517
|
} & RecordType>>;
|
|
@@ -1534,14 +1534,14 @@ export declare const PlusForm: {
|
|
|
1534
1534
|
clearable: boolean;
|
|
1535
1535
|
index: number;
|
|
1536
1536
|
}) => any>> & Partial<Record<NonNullable<string | number>, (_: {
|
|
1537
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "
|
|
1537
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "modelValue" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap">> & {
|
|
1538
1538
|
readonly label: string | ComputedRef<string>;
|
|
1539
|
-
readonly modelValue: string | number | boolean |
|
|
1539
|
+
readonly modelValue: string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
1540
1540
|
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
1541
|
-
readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
1541
|
+
readonly tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
|
|
1542
1542
|
style?: CSSProperties | undefined;
|
|
1543
1543
|
class?: any;
|
|
1544
|
-
} & RecordType> | ComputedRef<
|
|
1544
|
+
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
1545
1545
|
style?: CSSProperties | undefined;
|
|
1546
1546
|
class?: any;
|
|
1547
1547
|
} & RecordType>>;
|
|
@@ -1563,7 +1563,7 @@ export declare const PlusForm: {
|
|
|
1563
1563
|
};
|
|
1564
1564
|
rows: number;
|
|
1565
1565
|
autocomplete: string;
|
|
1566
|
-
type: "" | "number" | "default" | "
|
|
1566
|
+
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "checkbox" | "radio" | "color" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "datetimerange" | "daterange" | "monthrange" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
|
|
1567
1567
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
1568
1568
|
step: string | number;
|
|
1569
1569
|
format: string | ProgressFn | undefined;
|
|
@@ -1602,12 +1602,12 @@ export declare const PlusForm: {
|
|
|
1602
1602
|
fieldInstance?: any;
|
|
1603
1603
|
valueIsReady?: Ref<boolean> | undefined;
|
|
1604
1604
|
prop: string;
|
|
1605
|
-
modelValue: string | number | boolean |
|
|
1605
|
+
modelValue: string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
1606
1606
|
hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
1607
|
-
tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
1607
|
+
tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
|
|
1608
1608
|
style?: CSSProperties | undefined;
|
|
1609
1609
|
class?: any;
|
|
1610
|
-
} & RecordType> | ComputedRef<
|
|
1610
|
+
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
1611
1611
|
style?: CSSProperties | undefined;
|
|
1612
1612
|
class?: any;
|
|
1613
1613
|
} & RecordType>>;
|