yc-pro-components 0.0.24 → 0.0.25
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 +61 -61
- package/es/components/check-card/src/index.vue.d.ts +4 -4
- package/es/components/check-card-group/index.d.ts +43 -43
- package/es/components/check-card-group/src/index.vue.d.ts +3 -3
- 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/dialog/index.d.ts +26 -26
- package/es/components/dialog/src/index.vue.d.ts +2 -2
- package/es/components/dialog-form/index.d.ts +31 -31
- package/es/components/dialog-form/src/index.vue.d.ts +9 -9
- package/es/components/display-item/index.d.ts +41 -41
- package/es/components/display-item/src/index.vue.d.ts +22 -22
- package/es/components/drawer-form/index.d.ts +50 -50
- package/es/components/drawer-form/src/index.vue.d.ts +10 -10
- package/es/components/form/index.d.ts +64 -45
- package/es/components/form/src/form-content.vue.d.ts +24 -20
- package/es/components/form/src/form-content.vue2.mjs +106 -96
- package/es/components/form/src/index.vue.d.ts +20 -17
- package/es/components/form/src/index.vue2.mjs +5 -2
- package/es/components/form/src/type.d.ts +4 -0
- package/es/components/form-item/index.d.ts +42 -42
- package/es/components/form-item/src/index.vue.d.ts +12 -12
- package/es/components/form-item/src/index.vue2.mjs +22 -18
- 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 +20 -20
- 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 +587 -452
- package/es/components/page/src/index.vue.d.ts +199 -154
- package/es/components/pagination/index.d.ts +42 -42
- package/es/components/pagination/src/index.vue.d.ts +3 -3
- package/es/components/radio/index.d.ts +35 -35
- package/es/components/radio/src/index.vue.d.ts +27 -27
- package/es/components/render/index.d.ts +3 -3
- package/es/components/render/src/index.vue.d.ts +1 -1
- package/es/components/search/index.d.ts +218 -154
- package/es/components/search/src/index.vue.d.ts +68 -50
- package/es/components/search/src/index.vue2.mjs +3 -1
- package/es/components/search/src/type.d.ts +7 -0
- 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 +23 -23
- package/es/components/steps-form/src/index.vue.d.ts +2 -2
- package/es/components/table/index.d.ts +54 -54
- package/es/components/table/src/index.vue.d.ts +18 -18
- package/es/components/table/src/table-column-drag-sort.vue.d.ts +18 -18
- package/es/components/table/src/table-column.vue.d.ts +37 -37
- package/es/components/utils/index.d.ts +2 -2
- package/es/components/yc-dialog/index.d.ts +24 -24
- package/es/components/yc-download-dialog/index.d.ts +19 -19
- package/es/components/yc-download-dialog/src/index.vue.d.ts +1 -1
- package/es/components/yc-form-container-header/index.d.ts +12 -12
- package/es/components/yc-more-actions/index.d.ts +46 -46
- package/es/components/yc-more-actions/src/index.vue.d.ts +3 -3
- package/es/components/yc-plus-page/src/index.vue.d.ts +450 -360
- package/es/components/yc-plus-page/src/index.vue.mjs +1 -1
- package/es/components/yc-plus-page/src/index.vue2.mjs +2 -15
- package/es/components/yc-segmented/index.d.ts +2 -2
- package/es/components/yc-segmented/src/index.d.ts +2 -2
- package/es/components/yc-select-v2/src/index.vue.d.ts +3 -3
- package/es/components/yc-status-dialog/src/index.vue.d.ts +1 -1
- package/es/components/yc-tabs-with-filter/index.d.ts +16 -16
- package/es/components/yc-text/src/index.vue.d.ts +2 -2
- package/es/hooks/usePlusFormReset.d.ts +208 -208
- package/es/index.css +1 -1
- package/index.css +6 -6
- package/index.js +140 -134
- package/index.min.css +1 -1
- package/index.min.js +7 -7
- package/index.min.mjs +7 -7
- package/index.mjs +140 -134
- package/lib/components/check-card/index.d.ts +61 -61
- package/lib/components/check-card/src/index.vue.d.ts +4 -4
- package/lib/components/check-card-group/index.d.ts +43 -43
- package/lib/components/check-card-group/src/index.vue.d.ts +3 -3
- 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/dialog/index.d.ts +26 -26
- package/lib/components/dialog/src/index.vue.d.ts +2 -2
- package/lib/components/dialog-form/index.d.ts +31 -31
- package/lib/components/dialog-form/src/index.vue.d.ts +9 -9
- package/lib/components/display-item/index.d.ts +41 -41
- package/lib/components/display-item/src/index.vue.d.ts +22 -22
- package/lib/components/drawer-form/index.d.ts +50 -50
- package/lib/components/drawer-form/src/index.vue.d.ts +10 -10
- package/lib/components/form/index.d.ts +64 -45
- package/lib/components/form/src/form-content.vue.d.ts +24 -20
- package/lib/components/form/src/form-content.vue2.js +105 -95
- package/lib/components/form/src/index.vue.d.ts +20 -17
- package/lib/components/form/src/index.vue2.js +5 -2
- package/lib/components/form/src/type.d.ts +4 -0
- package/lib/components/form-item/index.d.ts +42 -42
- package/lib/components/form-item/src/index.vue.d.ts +12 -12
- package/lib/components/form-item/src/index.vue2.js +21 -17
- 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 +20 -20
- 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 +587 -452
- package/lib/components/page/src/index.vue.d.ts +199 -154
- package/lib/components/pagination/index.d.ts +42 -42
- package/lib/components/pagination/src/index.vue.d.ts +3 -3
- package/lib/components/radio/index.d.ts +35 -35
- package/lib/components/radio/src/index.vue.d.ts +27 -27
- package/lib/components/render/index.d.ts +3 -3
- package/lib/components/render/src/index.vue.d.ts +1 -1
- package/lib/components/search/index.d.ts +218 -154
- package/lib/components/search/src/index.vue.d.ts +68 -50
- package/lib/components/search/src/index.vue2.js +3 -1
- package/lib/components/search/src/type.d.ts +7 -0
- 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 +23 -23
- package/lib/components/steps-form/src/index.vue.d.ts +2 -2
- package/lib/components/table/index.d.ts +54 -54
- package/lib/components/table/src/index.vue.d.ts +18 -18
- package/lib/components/table/src/table-column-drag-sort.vue.d.ts +18 -18
- package/lib/components/table/src/table-column.vue.d.ts +37 -37
- package/lib/components/utils/index.d.ts +2 -2
- package/lib/components/yc-dialog/index.d.ts +24 -24
- package/lib/components/yc-download-dialog/index.d.ts +19 -19
- package/lib/components/yc-download-dialog/src/index.vue.d.ts +1 -1
- package/lib/components/yc-form-container-header/index.d.ts +12 -12
- package/lib/components/yc-more-actions/index.d.ts +46 -46
- package/lib/components/yc-more-actions/src/index.vue.d.ts +3 -3
- package/lib/components/yc-plus-page/src/index.vue.d.ts +450 -360
- package/lib/components/yc-plus-page/src/index.vue.js +1 -1
- package/lib/components/yc-plus-page/src/index.vue2.js +2 -15
- package/lib/components/yc-segmented/index.d.ts +2 -2
- package/lib/components/yc-segmented/src/index.d.ts +2 -2
- package/lib/components/yc-select-v2/src/index.vue.d.ts +3 -3
- package/lib/components/yc-status-dialog/src/index.vue.d.ts +1 -1
- package/lib/components/yc-tabs-with-filter/index.d.ts +16 -16
- package/lib/components/yc-text/src/index.vue.d.ts +2 -2
- 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-form.css +1 -1
- package/theme-chalk/plus-search.css +1 -1
- package/theme-chalk/src/form.scss +20 -0
- package/theme-chalk/src/search.scss +125 -0
|
@@ -3,7 +3,7 @@ import { LooseRequired } from '@vue/shared';
|
|
|
3
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 { PlusColumn, FieldValues, 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,10 +11,6 @@ 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
14
|
collapseDuration: {
|
|
19
15
|
type: PropType<number>;
|
|
20
16
|
default: undefined;
|
|
@@ -31,6 +27,14 @@ export declare const PlusForm: {
|
|
|
31
27
|
type: PropType<false | PlusFormGroupRow[]>;
|
|
32
28
|
default: boolean;
|
|
33
29
|
};
|
|
30
|
+
layout: {
|
|
31
|
+
type: PropType<"grid" | "flex">;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
modelValue: {
|
|
35
|
+
type: PropType<FieldValues>;
|
|
36
|
+
default: () => {};
|
|
37
|
+
};
|
|
34
38
|
rules: {
|
|
35
39
|
type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
36
40
|
default: () => {};
|
|
@@ -94,7 +98,7 @@ export declare const PlusForm: {
|
|
|
94
98
|
default: boolean;
|
|
95
99
|
};
|
|
96
100
|
footerAlign: {
|
|
97
|
-
type: PropType<"
|
|
101
|
+
type: PropType<"right" | "left" | "center">;
|
|
98
102
|
default: string;
|
|
99
103
|
};
|
|
100
104
|
cardProps: {
|
|
@@ -113,10 +117,10 @@ export declare const PlusForm: {
|
|
|
113
117
|
default: boolean;
|
|
114
118
|
};
|
|
115
119
|
}>> & {
|
|
116
|
-
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
117
120
|
onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
|
|
118
121
|
onReset?: ((values: FieldValues) => any) | undefined;
|
|
119
122
|
onSubmit?: ((values: FieldValues) => any) | undefined;
|
|
123
|
+
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
120
124
|
onValidate?: ((...args: any[]) => any) | undefined;
|
|
121
125
|
onSubmitError?: ((errors: unknown) => any) | undefined;
|
|
122
126
|
}, {
|
|
@@ -412,10 +416,6 @@ export declare const PlusForm: {
|
|
|
412
416
|
submitError: (errors: unknown) => void;
|
|
413
417
|
validate: (...args: any[]) => void;
|
|
414
418
|
}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
415
|
-
modelValue: {
|
|
416
|
-
type: PropType<FieldValues>;
|
|
417
|
-
default: () => {};
|
|
418
|
-
};
|
|
419
419
|
collapseDuration: {
|
|
420
420
|
type: PropType<number>;
|
|
421
421
|
default: undefined;
|
|
@@ -432,6 +432,14 @@ export declare const PlusForm: {
|
|
|
432
432
|
type: PropType<false | PlusFormGroupRow[]>;
|
|
433
433
|
default: boolean;
|
|
434
434
|
};
|
|
435
|
+
layout: {
|
|
436
|
+
type: PropType<"grid" | "flex">;
|
|
437
|
+
default: string;
|
|
438
|
+
};
|
|
439
|
+
modelValue: {
|
|
440
|
+
type: PropType<FieldValues>;
|
|
441
|
+
default: () => {};
|
|
442
|
+
};
|
|
435
443
|
rules: {
|
|
436
444
|
type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
437
445
|
default: () => {};
|
|
@@ -495,7 +503,7 @@ export declare const PlusForm: {
|
|
|
495
503
|
default: boolean;
|
|
496
504
|
};
|
|
497
505
|
footerAlign: {
|
|
498
|
-
type: PropType<"
|
|
506
|
+
type: PropType<"right" | "left" | "center">;
|
|
499
507
|
default: string;
|
|
500
508
|
};
|
|
501
509
|
cardProps: {
|
|
@@ -514,18 +522,19 @@ export declare const PlusForm: {
|
|
|
514
522
|
default: boolean;
|
|
515
523
|
};
|
|
516
524
|
}>> & {
|
|
517
|
-
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
518
525
|
onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
|
|
519
526
|
onReset?: ((values: FieldValues) => any) | undefined;
|
|
520
527
|
onSubmit?: ((values: FieldValues) => any) | undefined;
|
|
528
|
+
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
521
529
|
onValidate?: ((...args: any[]) => any) | undefined;
|
|
522
530
|
onSubmitError?: ((errors: unknown) => any) | undefined;
|
|
523
531
|
}, {
|
|
524
|
-
modelValue: FieldValues;
|
|
525
532
|
collapseDuration: number;
|
|
526
533
|
collapseTransition: boolean;
|
|
527
534
|
columns: PlusColumn[];
|
|
528
535
|
group: false | PlusFormGroupRow[];
|
|
536
|
+
layout: "grid" | "flex";
|
|
537
|
+
modelValue: FieldValues;
|
|
529
538
|
rules: Partial<Record<string, Arrayable<FormItemRule>>>;
|
|
530
539
|
labelPosition: "top" | "right" | "left";
|
|
531
540
|
labelWidth: string | number;
|
|
@@ -546,7 +555,7 @@ export declare const PlusForm: {
|
|
|
546
555
|
submitText: string;
|
|
547
556
|
resetText: string;
|
|
548
557
|
submitLoading: boolean;
|
|
549
|
-
footerAlign: "
|
|
558
|
+
footerAlign: "right" | "left" | "center";
|
|
550
559
|
cardProps: Partial< Mutable<CardProps> & {
|
|
551
560
|
style?: CSSProperties | undefined;
|
|
552
561
|
class?: any;
|
|
@@ -561,10 +570,6 @@ export declare const PlusForm: {
|
|
|
561
570
|
M: {};
|
|
562
571
|
Defaults: {};
|
|
563
572
|
}, Readonly< ExtractPropTypes<{
|
|
564
|
-
modelValue: {
|
|
565
|
-
type: PropType<FieldValues>;
|
|
566
|
-
default: () => {};
|
|
567
|
-
};
|
|
568
573
|
collapseDuration: {
|
|
569
574
|
type: PropType<number>;
|
|
570
575
|
default: undefined;
|
|
@@ -581,6 +586,14 @@ export declare const PlusForm: {
|
|
|
581
586
|
type: PropType<false | PlusFormGroupRow[]>;
|
|
582
587
|
default: boolean;
|
|
583
588
|
};
|
|
589
|
+
layout: {
|
|
590
|
+
type: PropType<"grid" | "flex">;
|
|
591
|
+
default: string;
|
|
592
|
+
};
|
|
593
|
+
modelValue: {
|
|
594
|
+
type: PropType<FieldValues>;
|
|
595
|
+
default: () => {};
|
|
596
|
+
};
|
|
584
597
|
rules: {
|
|
585
598
|
type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
586
599
|
default: () => {};
|
|
@@ -644,7 +657,7 @@ export declare const PlusForm: {
|
|
|
644
657
|
default: boolean;
|
|
645
658
|
};
|
|
646
659
|
footerAlign: {
|
|
647
|
-
type: PropType<"
|
|
660
|
+
type: PropType<"right" | "left" | "center">;
|
|
648
661
|
default: string;
|
|
649
662
|
};
|
|
650
663
|
cardProps: {
|
|
@@ -663,10 +676,10 @@ export declare const PlusForm: {
|
|
|
663
676
|
default: boolean;
|
|
664
677
|
};
|
|
665
678
|
}>> & {
|
|
666
|
-
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
667
679
|
onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
|
|
668
680
|
onReset?: ((values: FieldValues) => any) | undefined;
|
|
669
681
|
onSubmit?: ((values: FieldValues) => any) | undefined;
|
|
682
|
+
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
670
683
|
onValidate?: ((...args: any[]) => any) | undefined;
|
|
671
684
|
onSubmitError?: ((errors: unknown) => any) | undefined;
|
|
672
685
|
}, {
|
|
@@ -955,11 +968,12 @@ export declare const PlusForm: {
|
|
|
955
968
|
handleSubmit: () => void;
|
|
956
969
|
handleReset: () => void;
|
|
957
970
|
}, {}, {}, {}, {
|
|
958
|
-
modelValue: FieldValues;
|
|
959
971
|
collapseDuration: number;
|
|
960
972
|
collapseTransition: boolean;
|
|
961
973
|
columns: PlusColumn[];
|
|
962
974
|
group: false | PlusFormGroupRow[];
|
|
975
|
+
layout: "grid" | "flex";
|
|
976
|
+
modelValue: FieldValues;
|
|
963
977
|
rules: Partial<Record<string, Arrayable<FormItemRule>>>;
|
|
964
978
|
labelPosition: "top" | "right" | "left";
|
|
965
979
|
labelWidth: string | number;
|
|
@@ -980,7 +994,7 @@ export declare const PlusForm: {
|
|
|
980
994
|
submitText: string;
|
|
981
995
|
resetText: string;
|
|
982
996
|
submitLoading: boolean;
|
|
983
|
-
footerAlign: "
|
|
997
|
+
footerAlign: "right" | "left" | "center";
|
|
984
998
|
cardProps: Partial< Mutable<CardProps> & {
|
|
985
999
|
style?: CSSProperties | undefined;
|
|
986
1000
|
class?: any;
|
|
@@ -992,10 +1006,6 @@ export declare const PlusForm: {
|
|
|
992
1006
|
__isTeleport?: undefined;
|
|
993
1007
|
__isSuspense?: undefined;
|
|
994
1008
|
} & ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
995
|
-
modelValue: {
|
|
996
|
-
type: PropType<FieldValues>;
|
|
997
|
-
default: () => {};
|
|
998
|
-
};
|
|
999
1009
|
collapseDuration: {
|
|
1000
1010
|
type: PropType<number>;
|
|
1001
1011
|
default: undefined;
|
|
@@ -1012,6 +1022,14 @@ export declare const PlusForm: {
|
|
|
1012
1022
|
type: PropType<false | PlusFormGroupRow[]>;
|
|
1013
1023
|
default: boolean;
|
|
1014
1024
|
};
|
|
1025
|
+
layout: {
|
|
1026
|
+
type: PropType<"grid" | "flex">;
|
|
1027
|
+
default: string;
|
|
1028
|
+
};
|
|
1029
|
+
modelValue: {
|
|
1030
|
+
type: PropType<FieldValues>;
|
|
1031
|
+
default: () => {};
|
|
1032
|
+
};
|
|
1015
1033
|
rules: {
|
|
1016
1034
|
type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
1017
1035
|
default: () => {};
|
|
@@ -1075,7 +1093,7 @@ export declare const PlusForm: {
|
|
|
1075
1093
|
default: boolean;
|
|
1076
1094
|
};
|
|
1077
1095
|
footerAlign: {
|
|
1078
|
-
type: PropType<"
|
|
1096
|
+
type: PropType<"right" | "left" | "center">;
|
|
1079
1097
|
default: string;
|
|
1080
1098
|
};
|
|
1081
1099
|
cardProps: {
|
|
@@ -1094,10 +1112,10 @@ export declare const PlusForm: {
|
|
|
1094
1112
|
default: boolean;
|
|
1095
1113
|
};
|
|
1096
1114
|
}>> & {
|
|
1097
|
-
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
1098
1115
|
onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
|
|
1099
1116
|
onReset?: ((values: FieldValues) => any) | undefined;
|
|
1100
1117
|
onSubmit?: ((values: FieldValues) => any) | undefined;
|
|
1118
|
+
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
1101
1119
|
onValidate?: ((...args: any[]) => any) | undefined;
|
|
1102
1120
|
onSubmitError?: ((errors: unknown) => any) | undefined;
|
|
1103
1121
|
}, {
|
|
@@ -1393,11 +1411,12 @@ export declare const PlusForm: {
|
|
|
1393
1411
|
submitError: (errors: unknown) => void;
|
|
1394
1412
|
validate: (...args: any[]) => void;
|
|
1395
1413
|
}, string, {
|
|
1396
|
-
modelValue: FieldValues;
|
|
1397
1414
|
collapseDuration: number;
|
|
1398
1415
|
collapseTransition: boolean;
|
|
1399
1416
|
columns: PlusColumn[];
|
|
1400
1417
|
group: false | PlusFormGroupRow[];
|
|
1418
|
+
layout: "grid" | "flex";
|
|
1419
|
+
modelValue: FieldValues;
|
|
1401
1420
|
rules: Partial<Record<string, Arrayable<FormItemRule>>>;
|
|
1402
1421
|
labelPosition: "top" | "right" | "left";
|
|
1403
1422
|
labelWidth: string | number;
|
|
@@ -1418,7 +1437,7 @@ export declare const PlusForm: {
|
|
|
1418
1437
|
submitText: string;
|
|
1419
1438
|
resetText: string;
|
|
1420
1439
|
submitLoading: boolean;
|
|
1421
|
-
footerAlign: "
|
|
1440
|
+
footerAlign: "right" | "left" | "center";
|
|
1422
1441
|
cardProps: Partial< Mutable<CardProps> & {
|
|
1423
1442
|
style?: CSSProperties | undefined;
|
|
1424
1443
|
class?: any;
|
|
@@ -1438,14 +1457,14 @@ export declare const PlusForm: {
|
|
|
1438
1457
|
hideInGroup?: boolean | ComputedRef<boolean> | undefined;
|
|
1439
1458
|
columns?: PlusColumn[] | undefined;
|
|
1440
1459
|
}) => any>> & Partial<Record<NonNullable<string | number>, (_: {
|
|
1441
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "
|
|
1460
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
|
|
1442
1461
|
readonly label: string | ComputedRef<string>;
|
|
1443
|
-
readonly modelValue: string | number | boolean | string[] | [string, string] |
|
|
1462
|
+
readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
1444
1463
|
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
1445
|
-
readonly tooltip: string |
|
|
1464
|
+
readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
1446
1465
|
style?: CSSProperties | undefined;
|
|
1447
1466
|
class?: any;
|
|
1448
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
1467
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
1449
1468
|
style?: CSSProperties | undefined;
|
|
1450
1469
|
class?: any;
|
|
1451
1470
|
} & RecordType>>;
|
|
@@ -1512,12 +1531,12 @@ export declare const PlusForm: {
|
|
|
1512
1531
|
fieldInstance?: any;
|
|
1513
1532
|
valueIsReady?: Ref<boolean> | undefined;
|
|
1514
1533
|
prop: string;
|
|
1515
|
-
modelValue: string | number | boolean | string[] | [string, string] |
|
|
1534
|
+
modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
1516
1535
|
hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
1517
|
-
tooltip: string |
|
|
1536
|
+
tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
1518
1537
|
style?: CSSProperties | undefined;
|
|
1519
1538
|
class?: any;
|
|
1520
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
1539
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
1521
1540
|
style?: CSSProperties | undefined;
|
|
1522
1541
|
class?: any;
|
|
1523
1542
|
} & RecordType>>;
|
|
@@ -1546,14 +1565,14 @@ export declare const PlusForm: {
|
|
|
1546
1565
|
clearable: boolean;
|
|
1547
1566
|
index: number;
|
|
1548
1567
|
}) => any>> & Partial<Record<NonNullable<string | number>, (_: {
|
|
1549
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "
|
|
1568
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
|
|
1550
1569
|
readonly label: string | ComputedRef<string>;
|
|
1551
|
-
readonly modelValue: string | number | boolean | string[] | [string, string] |
|
|
1570
|
+
readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
1552
1571
|
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
1553
|
-
readonly tooltip: string |
|
|
1572
|
+
readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
1554
1573
|
style?: CSSProperties | undefined;
|
|
1555
1574
|
class?: any;
|
|
1556
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
1575
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
1557
1576
|
style?: CSSProperties | undefined;
|
|
1558
1577
|
class?: any;
|
|
1559
1578
|
} & RecordType>>;
|
|
@@ -1620,12 +1639,12 @@ export declare const PlusForm: {
|
|
|
1620
1639
|
fieldInstance?: any;
|
|
1621
1640
|
valueIsReady?: Ref<boolean> | undefined;
|
|
1622
1641
|
prop: string;
|
|
1623
|
-
modelValue: string | number | boolean | string[] | [string, string] |
|
|
1642
|
+
modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
1624
1643
|
hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
1625
|
-
tooltip: string |
|
|
1644
|
+
tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
1626
1645
|
style?: CSSProperties | undefined;
|
|
1627
1646
|
class?: any;
|
|
1628
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
1647
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
1629
1648
|
style?: CSSProperties | undefined;
|
|
1630
1649
|
class?: any;
|
|
1631
1650
|
} & RecordType>>;
|
|
@@ -10,6 +10,7 @@ import { Ref, ComputedRef, DefineComponent, ComponentOptionsMixin, PublicProps,
|
|
|
10
10
|
export interface PlusFormContentProps {
|
|
11
11
|
modelValue?: FieldValues;
|
|
12
12
|
hasLabel?: boolean;
|
|
13
|
+
layout?: 'grid' | 'flex';
|
|
13
14
|
columns?: PlusColumn[];
|
|
14
15
|
rowProps?: PlusRowProps;
|
|
15
16
|
colProps?: PlusColProps;
|
|
@@ -35,6 +36,7 @@ export interface PlusFormContentEmits {
|
|
|
35
36
|
declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PlusFormContentProps>, {
|
|
36
37
|
modelValue: () => {};
|
|
37
38
|
hasLabel: boolean;
|
|
39
|
+
layout: string;
|
|
38
40
|
rowProps: () => {};
|
|
39
41
|
colProps: () => {};
|
|
40
42
|
columns: () => never[];
|
|
@@ -47,6 +49,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
47
49
|
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PlusFormContentProps>, {
|
|
48
50
|
modelValue: () => {};
|
|
49
51
|
hasLabel: boolean;
|
|
52
|
+
layout: string;
|
|
50
53
|
rowProps: () => {};
|
|
51
54
|
colProps: () => {};
|
|
52
55
|
columns: () => never[];
|
|
@@ -54,13 +57,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
54
57
|
collapseTransition: undefined;
|
|
55
58
|
clearable: boolean;
|
|
56
59
|
}>>> & {
|
|
57
|
-
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
58
60
|
onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
|
|
61
|
+
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
59
62
|
}, {
|
|
60
|
-
modelValue: FieldValues;
|
|
61
63
|
collapseDuration: number;
|
|
62
64
|
collapseTransition: boolean;
|
|
63
65
|
columns: PlusColumn[];
|
|
66
|
+
layout: "grid" | "flex";
|
|
67
|
+
modelValue: FieldValues;
|
|
64
68
|
hasLabel: boolean;
|
|
65
69
|
rowProps: Partial< Mutable<RowProps> & {
|
|
66
70
|
style?: CSSProperties | undefined;
|
|
@@ -94,10 +98,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
94
98
|
value: string | number;
|
|
95
99
|
row: RecordType;
|
|
96
100
|
}) => OptionsRow<undefined>) | undefined;
|
|
97
|
-
tooltip?: string |
|
|
101
|
+
tooltip?: string | Partial< Mutable<ElTooltipProps> & {
|
|
98
102
|
style?: CSSProperties | undefined;
|
|
99
103
|
class?: any;
|
|
100
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
104
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
101
105
|
style?: CSSProperties | undefined;
|
|
102
106
|
class?: any;
|
|
103
107
|
} & RecordType>> | undefined;
|
|
@@ -198,14 +202,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
198
202
|
label?: string | undefined;
|
|
199
203
|
}) => RenderTypes) | undefined;
|
|
200
204
|
}) => any>> & Partial<Record<string, (_: {
|
|
201
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "
|
|
205
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
|
|
202
206
|
readonly label: string | ComputedRef<string>;
|
|
203
|
-
readonly modelValue: string | number | boolean | string[] | [string, string] |
|
|
207
|
+
readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
204
208
|
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
205
|
-
readonly tooltip: string |
|
|
209
|
+
readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
206
210
|
style?: CSSProperties | undefined;
|
|
207
211
|
class?: any;
|
|
208
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
212
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
209
213
|
style?: CSSProperties | undefined;
|
|
210
214
|
class?: any;
|
|
211
215
|
} & RecordType>>;
|
|
@@ -272,12 +276,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
272
276
|
fieldInstance?: any;
|
|
273
277
|
valueIsReady?: Ref<boolean> | undefined;
|
|
274
278
|
prop: string;
|
|
275
|
-
modelValue: string | number | boolean | string[] | [string, string] |
|
|
279
|
+
modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
276
280
|
hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
277
|
-
tooltip: string |
|
|
281
|
+
tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
278
282
|
style?: CSSProperties | undefined;
|
|
279
283
|
class?: any;
|
|
280
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
284
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
281
285
|
style?: CSSProperties | undefined;
|
|
282
286
|
class?: any;
|
|
283
287
|
} & RecordType>>;
|
|
@@ -306,14 +310,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
306
310
|
clearable: boolean;
|
|
307
311
|
index: number;
|
|
308
312
|
}) => any>> & Partial<Record<string, (_: {
|
|
309
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "
|
|
313
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
|
|
310
314
|
readonly label: string | ComputedRef<string>;
|
|
311
|
-
readonly modelValue: string | number | boolean | string[] | [string, string] |
|
|
315
|
+
readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
312
316
|
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
313
|
-
readonly tooltip: string |
|
|
317
|
+
readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
314
318
|
style?: CSSProperties | undefined;
|
|
315
319
|
class?: any;
|
|
316
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
320
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
317
321
|
style?: CSSProperties | undefined;
|
|
318
322
|
class?: any;
|
|
319
323
|
} & RecordType>>;
|
|
@@ -380,12 +384,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
380
384
|
fieldInstance?: any;
|
|
381
385
|
valueIsReady?: Ref<boolean> | undefined;
|
|
382
386
|
prop: string;
|
|
383
|
-
modelValue: string | number | boolean | string[] | [string, string] |
|
|
387
|
+
modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
384
388
|
hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
385
|
-
tooltip: string |
|
|
389
|
+
tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
386
390
|
style?: CSSProperties | undefined;
|
|
387
391
|
class?: any;
|
|
388
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
392
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
389
393
|
style?: CSSProperties | undefined;
|
|
390
394
|
class?: any;
|
|
391
395
|
} & RecordType>>;
|
|
@@ -436,10 +440,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
436
440
|
value: string | number;
|
|
437
441
|
row: RecordType;
|
|
438
442
|
}) => OptionsRow<undefined>) | undefined;
|
|
439
|
-
tooltip?: string |
|
|
443
|
+
tooltip?: string | Partial< Mutable<ElTooltipProps> & {
|
|
440
444
|
style?: CSSProperties | undefined;
|
|
441
445
|
class?: any;
|
|
442
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
446
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
443
447
|
style?: CSSProperties | undefined;
|
|
444
448
|
class?: any;
|
|
445
449
|
} & RecordType>> | undefined;
|