yc-pro-components 0.0.11 → 0.0.13
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 +44 -32
- package/es/components/dialog-form/src/index.vue.d.ts +22 -10
- package/es/components/display-item/index.d.ts +80 -44
- package/es/components/display-item/src/index.vue.d.ts +61 -25
- package/es/components/drawer-form/index.d.ts +63 -51
- package/es/components/drawer-form/src/index.vue.d.ts +23 -11
- package/es/components/form/index.d.ts +71 -47
- package/es/components/form/src/form-content.vue.d.ts +60 -24
- package/es/components/form/src/index.vue.d.ts +43 -19
- package/es/components/form-item/index.d.ts +129 -57
- package/es/components/form-item/src/index.vue.d.ts +46 -15
- package/es/components/form-item/src/index.vue2.mjs +1 -0
- 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 +751 -469
- package/es/components/page/src/index.vue.d.ts +263 -161
- package/es/components/page/src/index.vue2.mjs +1 -1
- 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 +6 -6
- package/es/components/render/src/index.vue.d.ts +2 -2
- package/es/components/search/index.d.ts +284 -162
- package/es/components/search/src/index.vue.d.ts +95 -53
- package/es/components/search/src/index.vue2.mjs +14 -4
- package/es/components/search/src/type.d.ts +9 -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-action-bar.vue2.mjs +1 -1
- package/es/components/table/src/table-column-drag-sort.vue.d.ts +18 -18
- package/es/components/table/src/table-column.vue.d.ts +76 -40
- 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 +588 -529
- package/es/components/yc-plus-page/src/index.vue.mjs +1 -1
- package/es/components/yc-plus-page/src/index.vue2.mjs +8 -2
- 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/constants/dict.d.ts +78 -0
- package/es/constants/dict.mjs +3 -0
- package/es/constants/index.d.ts +1 -0
- package/es/constants/index.mjs +1 -0
- package/es/hooks/index.d.ts +1 -0
- package/es/hooks/index.mjs +1 -0
- package/es/hooks/useDictInjection.d.ts +38 -0
- package/es/hooks/useDictInjection.mjs +18 -0
- package/es/hooks/useGetOptions.mjs +118 -30
- package/es/hooks/usePlusFormReset.d.ts +286 -214
- package/es/index.css +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.mjs +2 -0
- package/es/types/plus.d.ts +74 -0
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/yc-components/index.d.ts +1 -1
- package/es/yc-components/version.d.ts +1 -1
- package/index.css +9 -5
- package/index.js +187 -65
- package/index.min.css +1 -1
- package/index.min.js +7 -7
- package/index.min.mjs +7 -7
- package/index.mjs +187 -67
- 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 +44 -32
- package/lib/components/dialog-form/src/index.vue.d.ts +22 -10
- package/lib/components/display-item/index.d.ts +80 -44
- package/lib/components/display-item/src/index.vue.d.ts +61 -25
- package/lib/components/drawer-form/index.d.ts +63 -51
- package/lib/components/drawer-form/src/index.vue.d.ts +23 -11
- package/lib/components/form/index.d.ts +71 -47
- package/lib/components/form/src/form-content.vue.d.ts +60 -24
- package/lib/components/form/src/index.vue.d.ts +43 -19
- package/lib/components/form-item/index.d.ts +129 -57
- package/lib/components/form-item/src/index.vue.d.ts +46 -15
- package/lib/components/form-item/src/index.vue2.js +1 -0
- 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 +751 -469
- package/lib/components/page/src/index.vue.d.ts +263 -161
- package/lib/components/page/src/index.vue2.js +1 -1
- 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 +6 -6
- package/lib/components/render/src/index.vue.d.ts +2 -2
- package/lib/components/search/index.d.ts +284 -162
- package/lib/components/search/src/index.vue.d.ts +95 -53
- package/lib/components/search/src/index.vue2.js +13 -3
- package/lib/components/search/src/type.d.ts +9 -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-action-bar.vue2.js +1 -1
- package/lib/components/table/src/table-column-drag-sort.vue.d.ts +18 -18
- package/lib/components/table/src/table-column.vue.d.ts +76 -40
- 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 +588 -529
- package/lib/components/yc-plus-page/src/index.vue.js +1 -1
- package/lib/components/yc-plus-page/src/index.vue2.js +8 -2
- 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/constants/dict.d.ts +78 -0
- package/lib/constants/dict.js +5 -0
- package/lib/constants/index.d.ts +1 -0
- package/lib/constants/index.js +2 -0
- package/lib/hooks/index.d.ts +1 -0
- package/lib/hooks/index.js +2 -0
- package/lib/hooks/useDictInjection.d.ts +38 -0
- package/lib/hooks/useDictInjection.js +20 -0
- package/lib/hooks/useGetOptions.js +117 -29
- package/lib/hooks/usePlusFormReset.d.ts +286 -214
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +4 -0
- package/lib/types/plus.d.ts +74 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/yc-components/index.d.ts +1 -1
- package/lib/yc-components/version.d.ts +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-page.css +1 -1
- package/theme-chalk/src/page.scss +1 -1
|
@@ -4,7 +4,7 @@ import { LooseRequired } from '@vue/shared';
|
|
|
4
4
|
import { TimeSelectProps } from 'element-plus/es/components/time-select/src/time-select';
|
|
5
5
|
import { EpPropMergeType, EpPropFinalized, Arrayable } from 'element-plus/es/utils';
|
|
6
6
|
import { ElTooltipProps, FormItemProps, ProgressFn, CascaderNode, InputAutoSize, AutocompleteProps, CheckboxGroupProps, ColorPickerProps, DatePickerProps, InputProps, InputNumberProps, RadioGroupProps, RateProps, ISelectProps, SliderProps, SwitchProps, TimePickerDefaultProps, TextProps, ImageProps, LinkProps, TagProps, ProgressProps, FormItemProp, FormItemRule, FormContext, FormItemContext, FormValidateFailure, FormValidateCallback, FormValidationResult } from 'element-plus';
|
|
7
|
-
import {
|
|
7
|
+
import { Mutable, RecordType, PropsItemType, OmitTypes, CascaderProps, PlusRadioProps, PlusDatePickerProps, PlusInputTagProps, OptionsType, RenderTypes, OptionsRow, TableValueType, FieldValueType, PlusColumn, FormItemValueType } from 'packages/yc-components';
|
|
8
8
|
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComputedRef, CSSProperties, Ref, Slot, DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase } from 'vue';
|
|
9
9
|
export type { PlusFormItemProps } from './src/index.vue';
|
|
10
10
|
export declare const PlusFormItem: {
|
|
@@ -13,10 +13,6 @@ export declare const PlusFormItem: {
|
|
|
13
13
|
type: PropType<number>;
|
|
14
14
|
default: number;
|
|
15
15
|
};
|
|
16
|
-
modelValue: {
|
|
17
|
-
type: PropType<string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null>;
|
|
18
|
-
default: string;
|
|
19
|
-
};
|
|
20
16
|
label: {
|
|
21
17
|
type: PropType<string | ComputedRef<string>>;
|
|
22
18
|
default: string;
|
|
@@ -26,10 +22,10 @@ export declare const PlusFormItem: {
|
|
|
26
22
|
required: true;
|
|
27
23
|
};
|
|
28
24
|
tooltip: {
|
|
29
|
-
type: PropType<string |
|
|
25
|
+
type: PropType<string | Partial< Mutable<ElTooltipProps> & {
|
|
30
26
|
style?: CSSProperties | undefined;
|
|
31
27
|
class?: any;
|
|
32
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
28
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
33
29
|
style?: CSSProperties | undefined;
|
|
34
30
|
class?: any;
|
|
35
31
|
} & RecordType>>>;
|
|
@@ -57,7 +53,7 @@ export declare const PlusFormItem: {
|
|
|
57
53
|
};
|
|
58
54
|
rows: number;
|
|
59
55
|
autocomplete: string;
|
|
60
|
-
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "
|
|
56
|
+
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
|
|
61
57
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
62
58
|
step: string | number;
|
|
63
59
|
format: string | ProgressFn | undefined;
|
|
@@ -73,6 +69,10 @@ export declare const PlusFormItem: {
|
|
|
73
69
|
type: PropType<OptionsType>;
|
|
74
70
|
default: () => never[];
|
|
75
71
|
};
|
|
72
|
+
modelValue: {
|
|
73
|
+
type: PropType<string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null>;
|
|
74
|
+
default: string;
|
|
75
|
+
};
|
|
76
76
|
fieldSlots: {
|
|
77
77
|
type: PropType<{
|
|
78
78
|
[slotName: string]: (data?: any) => RenderTypes;
|
|
@@ -92,7 +92,7 @@ export declare const PlusFormItem: {
|
|
|
92
92
|
default: boolean;
|
|
93
93
|
};
|
|
94
94
|
valueType: {
|
|
95
|
-
type: PropType<"input" | "select" | "textarea" | "switch" | "text" | TableValueType | "
|
|
95
|
+
type: PropType<"input" | "select" | "textarea" | "switch" | "text" | TableValueType | "rate" | "input-number" | "slider" | "checkbox" | "cascader" | "plus-date-picker" | "plus-input-tag" | "transfer" | "radio" | "select-v2" | "plus-radio" | "autocomplete" | "color-picker" | "date-picker" | "time-picker" | "time-select" | "tree-select">;
|
|
96
96
|
default: undefined;
|
|
97
97
|
};
|
|
98
98
|
renderField: {
|
|
@@ -118,9 +118,18 @@ export declare const PlusFormItem: {
|
|
|
118
118
|
}>;
|
|
119
119
|
default: undefined;
|
|
120
120
|
};
|
|
121
|
+
autoDict: {
|
|
122
|
+
type: PropType<boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
|
|
123
|
+
store?: any;
|
|
124
|
+
method?: string | undefined;
|
|
125
|
+
transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
|
|
126
|
+
dictCode?: string | undefined;
|
|
127
|
+
}>;
|
|
128
|
+
default: undefined;
|
|
129
|
+
};
|
|
121
130
|
}>> & {
|
|
122
|
-
"onUpdate:modelValue"?: ((value: FieldValueType) => any) | undefined;
|
|
123
131
|
onChange?: ((value: FieldValueType) => any) | undefined;
|
|
132
|
+
"onUpdate:modelValue"?: ((value: FieldValueType) => any) | undefined;
|
|
124
133
|
}, {
|
|
125
134
|
formItemInstance: Ref< CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
126
135
|
readonly label: StringConstructor;
|
|
@@ -463,10 +472,6 @@ export declare const PlusFormItem: {
|
|
|
463
472
|
type: PropType<number>;
|
|
464
473
|
default: number;
|
|
465
474
|
};
|
|
466
|
-
modelValue: {
|
|
467
|
-
type: PropType<string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null>;
|
|
468
|
-
default: string;
|
|
469
|
-
};
|
|
470
475
|
label: {
|
|
471
476
|
type: PropType<string | ComputedRef<string>>;
|
|
472
477
|
default: string;
|
|
@@ -476,10 +481,10 @@ export declare const PlusFormItem: {
|
|
|
476
481
|
required: true;
|
|
477
482
|
};
|
|
478
483
|
tooltip: {
|
|
479
|
-
type: PropType<string |
|
|
484
|
+
type: PropType<string | Partial< Mutable<ElTooltipProps> & {
|
|
480
485
|
style?: CSSProperties | undefined;
|
|
481
486
|
class?: any;
|
|
482
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
487
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
483
488
|
style?: CSSProperties | undefined;
|
|
484
489
|
class?: any;
|
|
485
490
|
} & RecordType>>>;
|
|
@@ -507,7 +512,7 @@ export declare const PlusFormItem: {
|
|
|
507
512
|
};
|
|
508
513
|
rows: number;
|
|
509
514
|
autocomplete: string;
|
|
510
|
-
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "
|
|
515
|
+
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
|
|
511
516
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
512
517
|
step: string | number;
|
|
513
518
|
format: string | ProgressFn | undefined;
|
|
@@ -523,6 +528,10 @@ export declare const PlusFormItem: {
|
|
|
523
528
|
type: PropType<OptionsType>;
|
|
524
529
|
default: () => never[];
|
|
525
530
|
};
|
|
531
|
+
modelValue: {
|
|
532
|
+
type: PropType<string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null>;
|
|
533
|
+
default: string;
|
|
534
|
+
};
|
|
526
535
|
fieldSlots: {
|
|
527
536
|
type: PropType<{
|
|
528
537
|
[slotName: string]: (data?: any) => RenderTypes;
|
|
@@ -542,7 +551,7 @@ export declare const PlusFormItem: {
|
|
|
542
551
|
default: boolean;
|
|
543
552
|
};
|
|
544
553
|
valueType: {
|
|
545
|
-
type: PropType<"input" | "select" | "textarea" | "switch" | "text" | TableValueType | "
|
|
554
|
+
type: PropType<"input" | "select" | "textarea" | "switch" | "text" | TableValueType | "rate" | "input-number" | "slider" | "checkbox" | "cascader" | "plus-date-picker" | "plus-input-tag" | "transfer" | "radio" | "select-v2" | "plus-radio" | "autocomplete" | "color-picker" | "date-picker" | "time-picker" | "time-select" | "tree-select">;
|
|
546
555
|
default: undefined;
|
|
547
556
|
};
|
|
548
557
|
renderField: {
|
|
@@ -568,12 +577,20 @@ export declare const PlusFormItem: {
|
|
|
568
577
|
}>;
|
|
569
578
|
default: undefined;
|
|
570
579
|
};
|
|
580
|
+
autoDict: {
|
|
581
|
+
type: PropType<boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
|
|
582
|
+
store?: any;
|
|
583
|
+
method?: string | undefined;
|
|
584
|
+
transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
|
|
585
|
+
dictCode?: string | undefined;
|
|
586
|
+
}>;
|
|
587
|
+
default: undefined;
|
|
588
|
+
};
|
|
571
589
|
}>> & {
|
|
572
|
-
"onUpdate:modelValue"?: ((value: FieldValueType) => any) | undefined;
|
|
573
590
|
onChange?: ((value: FieldValueType) => any) | undefined;
|
|
591
|
+
"onUpdate:modelValue"?: ((value: FieldValueType) => any) | undefined;
|
|
574
592
|
}, {
|
|
575
593
|
index: number;
|
|
576
|
-
modelValue: string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
577
594
|
label: string | ComputedRef<string>;
|
|
578
595
|
tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
|
|
579
596
|
style?: CSSProperties | undefined;
|
|
@@ -600,7 +617,7 @@ export declare const PlusFormItem: {
|
|
|
600
617
|
};
|
|
601
618
|
rows: number;
|
|
602
619
|
autocomplete: string;
|
|
603
|
-
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "
|
|
620
|
+
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
|
|
604
621
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
605
622
|
step: string | number;
|
|
606
623
|
format: string | ProgressFn | undefined;
|
|
@@ -611,13 +628,14 @@ export declare const PlusFormItem: {
|
|
|
611
628
|
autosize: InputAutoSize;
|
|
612
629
|
} & Mutable<Omit< AutocompleteProps, OmitTypes> & Omit< CascaderProps, OmitTypes> & Omit< CheckboxGroupProps, OmitTypes> & Omit< ColorPickerProps, OmitTypes> & Omit< DatePickerProps, OmitTypes> & Omit< InputProps, OmitTypes> & Omit< InputNumberProps, OmitTypes> & Omit< RadioGroupProps, OmitTypes> & Omit< RateProps, OmitTypes> & Omit< ISelectProps, OmitTypes> & Omit< SliderProps, OmitTypes> & Omit< SwitchProps, OmitTypes> & Omit< TimePickerDefaultProps, OmitTypes> & Omit< TimeSelectProps, OmitTypes> & Omit< PlusRadioProps, OmitTypes> & Omit< PlusDatePickerProps, OmitTypes> & Omit< PlusInputTagProps, OmitTypes> & Omit< TextProps, OmitTypes> & Omit< ImageProps, OmitTypes> & Omit< LinkProps, OmitTypes> & Omit< TagProps, OmitTypes> & Omit< ProgressProps, OmitTypes>>>>;
|
|
613
630
|
options: OptionsType;
|
|
631
|
+
modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
614
632
|
fieldSlots: {
|
|
615
633
|
[slotName: string]: (data?: any) => RenderTypes;
|
|
616
634
|
};
|
|
617
635
|
fieldChildrenSlot: (option?: OptionsRow<undefined> | undefined) => RenderTypes;
|
|
618
636
|
hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
619
637
|
clearable: boolean;
|
|
620
|
-
valueType: "input" | "select" | "textarea" | "switch" | "text" | TableValueType | "
|
|
638
|
+
valueType: "input" | "select" | "textarea" | "switch" | "text" | TableValueType | "rate" | "input-number" | "slider" | "checkbox" | "cascader" | "plus-date-picker" | "plus-input-tag" | "transfer" | "radio" | "select-v2" | "plus-radio" | "autocomplete" | "color-picker" | "date-picker" | "time-picker" | "time-select" | "tree-select";
|
|
621
639
|
renderField: (value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes;
|
|
622
640
|
renderLabel: (label: string, props: PlusColumn) => RenderTypes;
|
|
623
641
|
renderErrorMessage: (props: PlusColumn & {
|
|
@@ -629,6 +647,12 @@ export declare const PlusFormItem: {
|
|
|
629
647
|
label?: string | undefined;
|
|
630
648
|
value?: string | undefined;
|
|
631
649
|
};
|
|
650
|
+
autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
|
|
651
|
+
store?: any;
|
|
652
|
+
method?: string | undefined;
|
|
653
|
+
transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
|
|
654
|
+
dictCode?: string | undefined;
|
|
655
|
+
};
|
|
632
656
|
}, true, {}, {}, {
|
|
633
657
|
P: {};
|
|
634
658
|
B: {};
|
|
@@ -641,10 +665,6 @@ export declare const PlusFormItem: {
|
|
|
641
665
|
type: PropType<number>;
|
|
642
666
|
default: number;
|
|
643
667
|
};
|
|
644
|
-
modelValue: {
|
|
645
|
-
type: PropType<string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null>;
|
|
646
|
-
default: string;
|
|
647
|
-
};
|
|
648
668
|
label: {
|
|
649
669
|
type: PropType<string | ComputedRef<string>>;
|
|
650
670
|
default: string;
|
|
@@ -654,10 +674,10 @@ export declare const PlusFormItem: {
|
|
|
654
674
|
required: true;
|
|
655
675
|
};
|
|
656
676
|
tooltip: {
|
|
657
|
-
type: PropType<string |
|
|
677
|
+
type: PropType<string | Partial< Mutable<ElTooltipProps> & {
|
|
658
678
|
style?: CSSProperties | undefined;
|
|
659
679
|
class?: any;
|
|
660
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
680
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
661
681
|
style?: CSSProperties | undefined;
|
|
662
682
|
class?: any;
|
|
663
683
|
} & RecordType>>>;
|
|
@@ -685,7 +705,7 @@ export declare const PlusFormItem: {
|
|
|
685
705
|
};
|
|
686
706
|
rows: number;
|
|
687
707
|
autocomplete: string;
|
|
688
|
-
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "
|
|
708
|
+
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
|
|
689
709
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
690
710
|
step: string | number;
|
|
691
711
|
format: string | ProgressFn | undefined;
|
|
@@ -701,6 +721,10 @@ export declare const PlusFormItem: {
|
|
|
701
721
|
type: PropType<OptionsType>;
|
|
702
722
|
default: () => never[];
|
|
703
723
|
};
|
|
724
|
+
modelValue: {
|
|
725
|
+
type: PropType<string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null>;
|
|
726
|
+
default: string;
|
|
727
|
+
};
|
|
704
728
|
fieldSlots: {
|
|
705
729
|
type: PropType<{
|
|
706
730
|
[slotName: string]: (data?: any) => RenderTypes;
|
|
@@ -720,7 +744,7 @@ export declare const PlusFormItem: {
|
|
|
720
744
|
default: boolean;
|
|
721
745
|
};
|
|
722
746
|
valueType: {
|
|
723
|
-
type: PropType<"input" | "select" | "textarea" | "switch" | "text" | TableValueType | "
|
|
747
|
+
type: PropType<"input" | "select" | "textarea" | "switch" | "text" | TableValueType | "rate" | "input-number" | "slider" | "checkbox" | "cascader" | "plus-date-picker" | "plus-input-tag" | "transfer" | "radio" | "select-v2" | "plus-radio" | "autocomplete" | "color-picker" | "date-picker" | "time-picker" | "time-select" | "tree-select">;
|
|
724
748
|
default: undefined;
|
|
725
749
|
};
|
|
726
750
|
renderField: {
|
|
@@ -746,9 +770,18 @@ export declare const PlusFormItem: {
|
|
|
746
770
|
}>;
|
|
747
771
|
default: undefined;
|
|
748
772
|
};
|
|
773
|
+
autoDict: {
|
|
774
|
+
type: PropType<boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
|
|
775
|
+
store?: any;
|
|
776
|
+
method?: string | undefined;
|
|
777
|
+
transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
|
|
778
|
+
dictCode?: string | undefined;
|
|
779
|
+
}>;
|
|
780
|
+
default: undefined;
|
|
781
|
+
};
|
|
749
782
|
}>> & {
|
|
750
|
-
"onUpdate:modelValue"?: ((value: FieldValueType) => any) | undefined;
|
|
751
783
|
onChange?: ((value: FieldValueType) => any) | undefined;
|
|
784
|
+
"onUpdate:modelValue"?: ((value: FieldValueType) => any) | undefined;
|
|
752
785
|
}, {
|
|
753
786
|
formItemInstance: Ref< CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
754
787
|
readonly label: StringConstructor;
|
|
@@ -1085,7 +1118,6 @@ export declare const PlusFormItem: {
|
|
|
1085
1118
|
fieldInstance: Ref<any>;
|
|
1086
1119
|
}, {}, {}, {}, {
|
|
1087
1120
|
index: number;
|
|
1088
|
-
modelValue: string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
1089
1121
|
label: string | ComputedRef<string>;
|
|
1090
1122
|
tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
|
|
1091
1123
|
style?: CSSProperties | undefined;
|
|
@@ -1112,7 +1144,7 @@ export declare const PlusFormItem: {
|
|
|
1112
1144
|
};
|
|
1113
1145
|
rows: number;
|
|
1114
1146
|
autocomplete: string;
|
|
1115
|
-
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "
|
|
1147
|
+
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
|
|
1116
1148
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
1117
1149
|
step: string | number;
|
|
1118
1150
|
format: string | ProgressFn | undefined;
|
|
@@ -1123,13 +1155,14 @@ export declare const PlusFormItem: {
|
|
|
1123
1155
|
autosize: InputAutoSize;
|
|
1124
1156
|
} & Mutable<Omit< AutocompleteProps, OmitTypes> & Omit< CascaderProps, OmitTypes> & Omit< CheckboxGroupProps, OmitTypes> & Omit< ColorPickerProps, OmitTypes> & Omit< DatePickerProps, OmitTypes> & Omit< InputProps, OmitTypes> & Omit< InputNumberProps, OmitTypes> & Omit< RadioGroupProps, OmitTypes> & Omit< RateProps, OmitTypes> & Omit< ISelectProps, OmitTypes> & Omit< SliderProps, OmitTypes> & Omit< SwitchProps, OmitTypes> & Omit< TimePickerDefaultProps, OmitTypes> & Omit< TimeSelectProps, OmitTypes> & Omit< PlusRadioProps, OmitTypes> & Omit< PlusDatePickerProps, OmitTypes> & Omit< PlusInputTagProps, OmitTypes> & Omit< TextProps, OmitTypes> & Omit< ImageProps, OmitTypes> & Omit< LinkProps, OmitTypes> & Omit< TagProps, OmitTypes> & Omit< ProgressProps, OmitTypes>>>>;
|
|
1125
1157
|
options: OptionsType;
|
|
1158
|
+
modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
1126
1159
|
fieldSlots: {
|
|
1127
1160
|
[slotName: string]: (data?: any) => RenderTypes;
|
|
1128
1161
|
};
|
|
1129
1162
|
fieldChildrenSlot: (option?: OptionsRow<undefined> | undefined) => RenderTypes;
|
|
1130
1163
|
hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
1131
1164
|
clearable: boolean;
|
|
1132
|
-
valueType: "input" | "select" | "textarea" | "switch" | "text" | TableValueType | "
|
|
1165
|
+
valueType: "input" | "select" | "textarea" | "switch" | "text" | TableValueType | "rate" | "input-number" | "slider" | "checkbox" | "cascader" | "plus-date-picker" | "plus-input-tag" | "transfer" | "radio" | "select-v2" | "plus-radio" | "autocomplete" | "color-picker" | "date-picker" | "time-picker" | "time-select" | "tree-select";
|
|
1133
1166
|
renderField: (value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes;
|
|
1134
1167
|
renderLabel: (label: string, props: PlusColumn) => RenderTypes;
|
|
1135
1168
|
renderErrorMessage: (props: PlusColumn & {
|
|
@@ -1141,6 +1174,12 @@ export declare const PlusFormItem: {
|
|
|
1141
1174
|
label?: string | undefined;
|
|
1142
1175
|
value?: string | undefined;
|
|
1143
1176
|
};
|
|
1177
|
+
autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
|
|
1178
|
+
store?: any;
|
|
1179
|
+
method?: string | undefined;
|
|
1180
|
+
transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
|
|
1181
|
+
dictCode?: string | undefined;
|
|
1182
|
+
};
|
|
1144
1183
|
}>;
|
|
1145
1184
|
__isFragment?: undefined;
|
|
1146
1185
|
__isTeleport?: undefined;
|
|
@@ -1150,10 +1189,6 @@ export declare const PlusFormItem: {
|
|
|
1150
1189
|
type: PropType<number>;
|
|
1151
1190
|
default: number;
|
|
1152
1191
|
};
|
|
1153
|
-
modelValue: {
|
|
1154
|
-
type: PropType<string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null>;
|
|
1155
|
-
default: string;
|
|
1156
|
-
};
|
|
1157
1192
|
label: {
|
|
1158
1193
|
type: PropType<string | ComputedRef<string>>;
|
|
1159
1194
|
default: string;
|
|
@@ -1163,10 +1198,10 @@ export declare const PlusFormItem: {
|
|
|
1163
1198
|
required: true;
|
|
1164
1199
|
};
|
|
1165
1200
|
tooltip: {
|
|
1166
|
-
type: PropType<string |
|
|
1201
|
+
type: PropType<string | Partial< Mutable<ElTooltipProps> & {
|
|
1167
1202
|
style?: CSSProperties | undefined;
|
|
1168
1203
|
class?: any;
|
|
1169
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
1204
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
1170
1205
|
style?: CSSProperties | undefined;
|
|
1171
1206
|
class?: any;
|
|
1172
1207
|
} & RecordType>>>;
|
|
@@ -1194,7 +1229,7 @@ export declare const PlusFormItem: {
|
|
|
1194
1229
|
};
|
|
1195
1230
|
rows: number;
|
|
1196
1231
|
autocomplete: string;
|
|
1197
|
-
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "
|
|
1232
|
+
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
|
|
1198
1233
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
1199
1234
|
step: string | number;
|
|
1200
1235
|
format: string | ProgressFn | undefined;
|
|
@@ -1210,6 +1245,10 @@ export declare const PlusFormItem: {
|
|
|
1210
1245
|
type: PropType<OptionsType>;
|
|
1211
1246
|
default: () => never[];
|
|
1212
1247
|
};
|
|
1248
|
+
modelValue: {
|
|
1249
|
+
type: PropType<string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null>;
|
|
1250
|
+
default: string;
|
|
1251
|
+
};
|
|
1213
1252
|
fieldSlots: {
|
|
1214
1253
|
type: PropType<{
|
|
1215
1254
|
[slotName: string]: (data?: any) => RenderTypes;
|
|
@@ -1229,7 +1268,7 @@ export declare const PlusFormItem: {
|
|
|
1229
1268
|
default: boolean;
|
|
1230
1269
|
};
|
|
1231
1270
|
valueType: {
|
|
1232
|
-
type: PropType<"input" | "select" | "textarea" | "switch" | "text" | TableValueType | "
|
|
1271
|
+
type: PropType<"input" | "select" | "textarea" | "switch" | "text" | TableValueType | "rate" | "input-number" | "slider" | "checkbox" | "cascader" | "plus-date-picker" | "plus-input-tag" | "transfer" | "radio" | "select-v2" | "plus-radio" | "autocomplete" | "color-picker" | "date-picker" | "time-picker" | "time-select" | "tree-select">;
|
|
1233
1272
|
default: undefined;
|
|
1234
1273
|
};
|
|
1235
1274
|
renderField: {
|
|
@@ -1255,9 +1294,18 @@ export declare const PlusFormItem: {
|
|
|
1255
1294
|
}>;
|
|
1256
1295
|
default: undefined;
|
|
1257
1296
|
};
|
|
1297
|
+
autoDict: {
|
|
1298
|
+
type: PropType<boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
|
|
1299
|
+
store?: any;
|
|
1300
|
+
method?: string | undefined;
|
|
1301
|
+
transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
|
|
1302
|
+
dictCode?: string | undefined;
|
|
1303
|
+
}>;
|
|
1304
|
+
default: undefined;
|
|
1305
|
+
};
|
|
1258
1306
|
}>> & {
|
|
1259
|
-
"onUpdate:modelValue"?: ((value: FieldValueType) => any) | undefined;
|
|
1260
1307
|
onChange?: ((value: FieldValueType) => any) | undefined;
|
|
1308
|
+
"onUpdate:modelValue"?: ((value: FieldValueType) => any) | undefined;
|
|
1261
1309
|
}, {
|
|
1262
1310
|
formItemInstance: Ref< CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
1263
1311
|
readonly label: StringConstructor;
|
|
@@ -1597,7 +1645,6 @@ export declare const PlusFormItem: {
|
|
|
1597
1645
|
change: (value: FieldValueType) => void;
|
|
1598
1646
|
}, string, {
|
|
1599
1647
|
index: number;
|
|
1600
|
-
modelValue: string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
1601
1648
|
label: string | ComputedRef<string>;
|
|
1602
1649
|
tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
|
|
1603
1650
|
style?: CSSProperties | undefined;
|
|
@@ -1624,7 +1671,7 @@ export declare const PlusFormItem: {
|
|
|
1624
1671
|
};
|
|
1625
1672
|
rows: number;
|
|
1626
1673
|
autocomplete: string;
|
|
1627
|
-
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "
|
|
1674
|
+
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
|
|
1628
1675
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
1629
1676
|
step: string | number;
|
|
1630
1677
|
format: string | ProgressFn | undefined;
|
|
@@ -1635,13 +1682,14 @@ export declare const PlusFormItem: {
|
|
|
1635
1682
|
autosize: InputAutoSize;
|
|
1636
1683
|
} & Mutable<Omit< AutocompleteProps, OmitTypes> & Omit< CascaderProps, OmitTypes> & Omit< CheckboxGroupProps, OmitTypes> & Omit< ColorPickerProps, OmitTypes> & Omit< DatePickerProps, OmitTypes> & Omit< InputProps, OmitTypes> & Omit< InputNumberProps, OmitTypes> & Omit< RadioGroupProps, OmitTypes> & Omit< RateProps, OmitTypes> & Omit< ISelectProps, OmitTypes> & Omit< SliderProps, OmitTypes> & Omit< SwitchProps, OmitTypes> & Omit< TimePickerDefaultProps, OmitTypes> & Omit< TimeSelectProps, OmitTypes> & Omit< PlusRadioProps, OmitTypes> & Omit< PlusDatePickerProps, OmitTypes> & Omit< PlusInputTagProps, OmitTypes> & Omit< TextProps, OmitTypes> & Omit< ImageProps, OmitTypes> & Omit< LinkProps, OmitTypes> & Omit< TagProps, OmitTypes> & Omit< ProgressProps, OmitTypes>>>>;
|
|
1637
1684
|
options: OptionsType;
|
|
1685
|
+
modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
1638
1686
|
fieldSlots: {
|
|
1639
1687
|
[slotName: string]: (data?: any) => RenderTypes;
|
|
1640
1688
|
};
|
|
1641
1689
|
fieldChildrenSlot: (option?: OptionsRow<undefined> | undefined) => RenderTypes;
|
|
1642
1690
|
hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
1643
1691
|
clearable: boolean;
|
|
1644
|
-
valueType: "input" | "select" | "textarea" | "switch" | "text" | TableValueType | "
|
|
1692
|
+
valueType: "input" | "select" | "textarea" | "switch" | "text" | TableValueType | "rate" | "input-number" | "slider" | "checkbox" | "cascader" | "plus-date-picker" | "plus-input-tag" | "transfer" | "radio" | "select-v2" | "plus-radio" | "autocomplete" | "color-picker" | "date-picker" | "time-picker" | "time-select" | "tree-select";
|
|
1645
1693
|
renderField: (value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes;
|
|
1646
1694
|
renderLabel: (label: string, props: PlusColumn) => RenderTypes;
|
|
1647
1695
|
renderErrorMessage: (props: PlusColumn & {
|
|
@@ -1653,6 +1701,12 @@ export declare const PlusFormItem: {
|
|
|
1653
1701
|
label?: string | undefined;
|
|
1654
1702
|
value?: string | undefined;
|
|
1655
1703
|
};
|
|
1704
|
+
autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
|
|
1705
|
+
store?: any;
|
|
1706
|
+
method?: string | undefined;
|
|
1707
|
+
transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
|
|
1708
|
+
dictCode?: string | undefined;
|
|
1709
|
+
};
|
|
1656
1710
|
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
1657
1711
|
$slots: Partial<Record<string, (_: {
|
|
1658
1712
|
label: string;
|
|
@@ -1662,12 +1716,12 @@ export declare const PlusFormItem: {
|
|
|
1662
1716
|
fieldInstance?: any;
|
|
1663
1717
|
valueIsReady?: Ref<boolean> | undefined;
|
|
1664
1718
|
prop: string;
|
|
1665
|
-
modelValue: string | number | boolean | string[] | [string, string] |
|
|
1719
|
+
modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
1666
1720
|
hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
1667
|
-
tooltip: string |
|
|
1721
|
+
tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
1668
1722
|
style?: CSSProperties | undefined;
|
|
1669
1723
|
class?: any;
|
|
1670
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
1724
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
1671
1725
|
style?: CSSProperties | undefined;
|
|
1672
1726
|
class?: any;
|
|
1673
1727
|
} & RecordType>>;
|
|
@@ -1687,17 +1741,23 @@ export declare const PlusFormItem: {
|
|
|
1687
1741
|
label?: string | undefined;
|
|
1688
1742
|
value?: string | undefined;
|
|
1689
1743
|
} | undefined;
|
|
1744
|
+
autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
|
|
1745
|
+
store?: any;
|
|
1746
|
+
method?: string | undefined;
|
|
1747
|
+
transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
|
|
1748
|
+
dictCode?: string | undefined;
|
|
1749
|
+
} | undefined;
|
|
1690
1750
|
clearable: boolean;
|
|
1691
1751
|
index: number;
|
|
1692
1752
|
}) => any>> & Partial<Record<string, (_: {
|
|
1693
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "
|
|
1753
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
|
|
1694
1754
|
readonly label: string | ComputedRef<string>;
|
|
1695
|
-
readonly modelValue: string | number | boolean | string[] | [string, string] |
|
|
1755
|
+
readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
1696
1756
|
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
1697
|
-
readonly tooltip: string |
|
|
1757
|
+
readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
1698
1758
|
style?: CSSProperties | undefined;
|
|
1699
1759
|
class?: any;
|
|
1700
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
1760
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
1701
1761
|
style?: CSSProperties | undefined;
|
|
1702
1762
|
class?: any;
|
|
1703
1763
|
} & RecordType>>;
|
|
@@ -1719,7 +1779,7 @@ export declare const PlusFormItem: {
|
|
|
1719
1779
|
};
|
|
1720
1780
|
rows: number;
|
|
1721
1781
|
autocomplete: string;
|
|
1722
|
-
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "
|
|
1782
|
+
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
|
|
1723
1783
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
1724
1784
|
step: string | number;
|
|
1725
1785
|
format: string | ProgressFn | undefined;
|
|
@@ -1746,6 +1806,12 @@ export declare const PlusFormItem: {
|
|
|
1746
1806
|
label?: string | undefined;
|
|
1747
1807
|
value?: string | undefined;
|
|
1748
1808
|
} | undefined;
|
|
1809
|
+
readonly autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
|
|
1810
|
+
store?: any;
|
|
1811
|
+
method?: string | undefined;
|
|
1812
|
+
transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
|
|
1813
|
+
dictCode?: string | undefined;
|
|
1814
|
+
} | undefined;
|
|
1749
1815
|
readonly clearable: boolean;
|
|
1750
1816
|
readonly index: number;
|
|
1751
1817
|
} & {
|
|
@@ -1758,12 +1824,12 @@ export declare const PlusFormItem: {
|
|
|
1758
1824
|
fieldInstance?: any;
|
|
1759
1825
|
valueIsReady?: Ref<boolean> | undefined;
|
|
1760
1826
|
prop: string;
|
|
1761
|
-
modelValue: string | number | boolean | string[] | [string, string] |
|
|
1827
|
+
modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
1762
1828
|
hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
1763
|
-
tooltip: string |
|
|
1829
|
+
tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
1764
1830
|
style?: CSSProperties | undefined;
|
|
1765
1831
|
class?: any;
|
|
1766
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
1832
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
1767
1833
|
style?: CSSProperties | undefined;
|
|
1768
1834
|
class?: any;
|
|
1769
1835
|
} & RecordType>>;
|
|
@@ -1783,6 +1849,12 @@ export declare const PlusFormItem: {
|
|
|
1783
1849
|
label?: string | undefined;
|
|
1784
1850
|
value?: string | undefined;
|
|
1785
1851
|
} | undefined;
|
|
1852
|
+
autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
|
|
1853
|
+
store?: any;
|
|
1854
|
+
method?: string | undefined;
|
|
1855
|
+
transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
|
|
1856
|
+
dictCode?: string | undefined;
|
|
1857
|
+
} | undefined;
|
|
1786
1858
|
clearable: boolean;
|
|
1787
1859
|
index: number;
|
|
1788
1860
|
}) => any>> & {
|