yc-pro-components 0.0.25 → 0.0.26
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 +57 -57
- package/es/components/check-card/src/index.vue.d.ts +14 -14
- package/es/components/check-card-group/index.d.ts +22 -22
- package/es/components/check-card-group/src/index.vue.d.ts +19 -19
- package/es/components/date-picker/index.d.ts +1 -1
- package/es/components/date-picker/src/index.vue.d.ts +1 -1
- 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 +19 -19
- package/es/components/dialog/src/index.vue.d.ts +1 -1
- package/es/components/dialog-form/index.d.ts +47 -47
- package/es/components/dialog-form/src/index.vue.d.ts +7 -7
- package/es/components/display-item/index.d.ts +32 -32
- package/es/components/display-item/src/index.vue.d.ts +13 -13
- package/es/components/drawer-form/index.d.ts +28 -28
- package/es/components/drawer-form/src/index.vue.d.ts +6 -6
- package/es/components/form/index.d.ts +107 -107
- package/es/components/form/src/form-content.vue.d.ts +17 -17
- package/es/components/form/src/index.vue.d.ts +16 -16
- package/es/components/form-item/index.d.ts +128 -128
- package/es/components/form-item/src/form-item.mjs +2 -1
- package/es/components/form-item/src/index.vue.d.ts +16 -16
- 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 +11 -11
- package/es/components/input-tag/src/index.vue.d.ts +3 -3
- package/es/components/page/index.d.ts +900 -900
- package/es/components/page/src/index.vue.d.ts +289 -289
- package/es/components/pagination/index.d.ts +4 -4
- package/es/components/pagination/src/index.vue.d.ts +1 -1
- package/es/components/radio/index.d.ts +26 -26
- 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 +328 -328
- package/es/components/search/src/index.vue.d.ts +95 -95
- 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 +74 -74
- package/es/components/table/src/index.vue.d.ts +19 -19
- 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 +18 -18
- package/es/components/table/src/table-column.vue.d.ts +28 -28
- package/es/components/table/src/table-title-bar.vue2.mjs +1 -0
- 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/src/index.vue2.mjs +1 -1
- 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-drawer/src/index.vue.mjs +1 -1
- package/es/components/yc-drawer/src/index.vue2.mjs +1 -1
- package/es/components/yc-drawer/store.d.ts +6 -6
- 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 +677 -677
- package/es/components/yc-plus-tree/src/index.vue.d.ts +6 -1
- package/es/components/yc-plus-tree/src/index.vue.mjs +1 -1
- package/es/components/yc-plus-tree/src/index.vue2.mjs +14 -6
- 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 +3 -3
- package/es/components/yc-status-dialog/src/index.vue.d.ts +2 -2
- package/es/components/yc-text/src/index.vue.d.ts +2 -2
- package/es/hooks/usePlusFormReset.d.ts +193 -193
- package/es/index.css +2 -2
- package/index.css +48 -48
- package/index.js +21 -11
- package/index.min.css +2 -2
- package/index.min.js +7 -7
- package/index.min.mjs +7 -7
- package/index.mjs +21 -11
- package/lib/components/check-card/index.d.ts +57 -57
- package/lib/components/check-card/src/index.vue.d.ts +14 -14
- package/lib/components/check-card-group/index.d.ts +22 -22
- package/lib/components/check-card-group/src/index.vue.d.ts +19 -19
- package/lib/components/date-picker/index.d.ts +1 -1
- package/lib/components/date-picker/src/index.vue.d.ts +1 -1
- 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 +19 -19
- package/lib/components/dialog/src/index.vue.d.ts +1 -1
- package/lib/components/dialog-form/index.d.ts +47 -47
- package/lib/components/dialog-form/src/index.vue.d.ts +7 -7
- package/lib/components/display-item/index.d.ts +32 -32
- package/lib/components/display-item/src/index.vue.d.ts +13 -13
- package/lib/components/drawer-form/index.d.ts +28 -28
- package/lib/components/drawer-form/src/index.vue.d.ts +6 -6
- package/lib/components/form/index.d.ts +107 -107
- package/lib/components/form/src/form-content.vue.d.ts +17 -17
- package/lib/components/form/src/index.vue.d.ts +16 -16
- package/lib/components/form-item/index.d.ts +128 -128
- package/lib/components/form-item/src/form-item.js +2 -1
- package/lib/components/form-item/src/index.vue.d.ts +16 -16
- 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 +11 -11
- package/lib/components/input-tag/src/index.vue.d.ts +3 -3
- package/lib/components/page/index.d.ts +900 -900
- package/lib/components/page/src/index.vue.d.ts +289 -289
- package/lib/components/pagination/index.d.ts +4 -4
- package/lib/components/pagination/src/index.vue.d.ts +1 -1
- package/lib/components/radio/index.d.ts +26 -26
- 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 +328 -328
- package/lib/components/search/src/index.vue.d.ts +95 -95
- 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 +74 -74
- package/lib/components/table/src/index.vue.d.ts +19 -19
- 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 +18 -18
- package/lib/components/table/src/table-column.vue.d.ts +28 -28
- package/lib/components/table/src/table-title-bar.vue2.js +1 -0
- 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/src/index.vue2.js +1 -1
- 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-drawer/src/index.vue.js +1 -1
- package/lib/components/yc-drawer/src/index.vue2.js +1 -1
- package/lib/components/yc-drawer/store.d.ts +6 -6
- 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 +677 -677
- package/lib/components/yc-plus-tree/src/index.vue.d.ts +6 -1
- package/lib/components/yc-plus-tree/src/index.vue.js +1 -1
- package/lib/components/yc-plus-tree/src/index.vue2.js +13 -5
- 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 +3 -3
- package/lib/components/yc-status-dialog/src/index.vue.d.ts +2 -2
- package/lib/components/yc-text/src/index.vue.d.ts +2 -2
- package/lib/hooks/usePlusFormReset.d.ts +193 -193
- package/lib/index.css +2 -2
- 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-dialog.css +1 -1
- package/theme-chalk/plus-display-item.css +1 -1
- package/theme-chalk/plus-table.css +1 -1
- package/theme-chalk/plus-yc-dialog.css +1 -1
- package/theme-chalk/plus-yc-drawer.css +1 -1
- package/theme-chalk/plus-yc-plus-tree.css +1 -1
- package/theme-chalk/src/dialog.scss +45 -0
- package/theme-chalk/src/display-item.scss +1 -0
- package/theme-chalk/src/table.scss +10 -0
- package/theme-chalk/src/yc-dialog.scss +50 -0
- package/theme-chalk/src/yc-drawer.scss +1 -1
- package/theme-chalk/src/yc-plus-tree.scss +1 -0
|
@@ -4,22 +4,22 @@ 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 { Mutable, RecordType, PropsItemType, OmitTypes, CascaderProps, PlusRadioProps, PlusDatePickerProps, PlusInputTagProps, OptionsType, RenderTypes, OptionsRow,
|
|
7
|
+
import { Mutable, RecordType, PropsItemType, OmitTypes, CascaderProps, PlusRadioProps, PlusDatePickerProps, PlusInputTagProps, OptionsType, RenderTypes, OptionsRow, FieldValueType, PlusColumn, TableValueType, 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: {
|
|
11
11
|
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
12
|
-
|
|
13
|
-
type: PropType<
|
|
14
|
-
|
|
12
|
+
prop: {
|
|
13
|
+
type: PropType<string>;
|
|
14
|
+
required: true;
|
|
15
15
|
};
|
|
16
16
|
label: {
|
|
17
17
|
type: PropType<string | ComputedRef<string>>;
|
|
18
18
|
default: string;
|
|
19
19
|
};
|
|
20
|
-
|
|
21
|
-
type: PropType<
|
|
22
|
-
|
|
20
|
+
index: {
|
|
21
|
+
type: PropType<number>;
|
|
22
|
+
default: number;
|
|
23
23
|
};
|
|
24
24
|
tooltip: {
|
|
25
25
|
type: PropType<string | Partial< Mutable<ElTooltipProps> & {
|
|
@@ -53,7 +53,7 @@ export declare const PlusFormItem: {
|
|
|
53
53
|
};
|
|
54
54
|
rows: number;
|
|
55
55
|
autocomplete: string;
|
|
56
|
-
type: "" | "number" | "default" | "
|
|
56
|
+
type: "" | "number" | "default" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "textarea" | "text" | "circle" | "color" | "button" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "search" | "time" | "image" | "line" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
|
|
57
57
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
58
58
|
step: string | number;
|
|
59
59
|
format: string | ProgressFn | undefined;
|
|
@@ -70,7 +70,7 @@ export declare const PlusFormItem: {
|
|
|
70
70
|
default: () => never[];
|
|
71
71
|
};
|
|
72
72
|
modelValue: {
|
|
73
|
-
type: PropType<string | number | boolean |
|
|
73
|
+
type: PropType<string | number | boolean | RecordType | Date | string[] | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | [string, string] | string[][] | number[][] | null>;
|
|
74
74
|
default: string;
|
|
75
75
|
};
|
|
76
76
|
fieldSlots: {
|
|
@@ -91,24 +91,12 @@ export declare const PlusFormItem: {
|
|
|
91
91
|
type: PropType<boolean>;
|
|
92
92
|
default: boolean;
|
|
93
93
|
};
|
|
94
|
-
valueType: {
|
|
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
|
-
default: undefined;
|
|
97
|
-
};
|
|
98
94
|
renderField: {
|
|
99
95
|
type: PropType<(value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes>;
|
|
100
96
|
default: undefined;
|
|
101
97
|
};
|
|
102
|
-
|
|
103
|
-
type: PropType<
|
|
104
|
-
default: undefined;
|
|
105
|
-
};
|
|
106
|
-
renderErrorMessage: {
|
|
107
|
-
type: PropType<(props: PlusColumn & {
|
|
108
|
-
value?: FieldValueType;
|
|
109
|
-
error?: string | undefined;
|
|
110
|
-
label?: string | undefined;
|
|
111
|
-
}) => RenderTypes>;
|
|
98
|
+
valueType: {
|
|
99
|
+
type: PropType< TableValueType | "rate" | "input-number" | "slider" | "switch" | "checkbox" | "cascader" | "plus-date-picker" | "plus-input-tag" | "transfer" | "select" | "radio" | "select-v2" | "plus-radio" | "autocomplete" | "color-picker" | "date-picker" | "time-picker" | "time-select" | "textarea" | "input" | "text" | "tree-select">;
|
|
112
100
|
default: undefined;
|
|
113
101
|
};
|
|
114
102
|
optionsMap: {
|
|
@@ -127,9 +115,21 @@ export declare const PlusFormItem: {
|
|
|
127
115
|
}>;
|
|
128
116
|
default: undefined;
|
|
129
117
|
};
|
|
118
|
+
renderLabel: {
|
|
119
|
+
type: PropType<(label: string, props: PlusColumn) => RenderTypes>;
|
|
120
|
+
default: undefined;
|
|
121
|
+
};
|
|
122
|
+
renderErrorMessage: {
|
|
123
|
+
type: PropType<(props: PlusColumn & {
|
|
124
|
+
value?: FieldValueType;
|
|
125
|
+
error?: string | undefined;
|
|
126
|
+
label?: string | undefined;
|
|
127
|
+
}) => RenderTypes>;
|
|
128
|
+
default: undefined;
|
|
129
|
+
};
|
|
130
130
|
}>> & {
|
|
131
|
-
onChange?: ((value: FieldValueType) => any) | undefined;
|
|
132
131
|
"onUpdate:modelValue"?: ((value: FieldValueType) => any) | undefined;
|
|
132
|
+
onChange?: ((value: FieldValueType) => any) | undefined;
|
|
133
133
|
}, {
|
|
134
134
|
formItemInstance: Ref< CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
135
135
|
readonly label: StringConstructor;
|
|
@@ -468,17 +468,17 @@ export declare const PlusFormItem: {
|
|
|
468
468
|
"update:modelValue": (value: FieldValueType) => void;
|
|
469
469
|
change: (value: FieldValueType) => void;
|
|
470
470
|
}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
471
|
-
|
|
472
|
-
type: PropType<
|
|
473
|
-
|
|
471
|
+
prop: {
|
|
472
|
+
type: PropType<string>;
|
|
473
|
+
required: true;
|
|
474
474
|
};
|
|
475
475
|
label: {
|
|
476
476
|
type: PropType<string | ComputedRef<string>>;
|
|
477
477
|
default: string;
|
|
478
478
|
};
|
|
479
|
-
|
|
480
|
-
type: PropType<
|
|
481
|
-
|
|
479
|
+
index: {
|
|
480
|
+
type: PropType<number>;
|
|
481
|
+
default: number;
|
|
482
482
|
};
|
|
483
483
|
tooltip: {
|
|
484
484
|
type: PropType<string | Partial< Mutable<ElTooltipProps> & {
|
|
@@ -512,7 +512,7 @@ export declare const PlusFormItem: {
|
|
|
512
512
|
};
|
|
513
513
|
rows: number;
|
|
514
514
|
autocomplete: string;
|
|
515
|
-
type: "" | "number" | "default" | "
|
|
515
|
+
type: "" | "number" | "default" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "textarea" | "text" | "circle" | "color" | "button" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "search" | "time" | "image" | "line" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
|
|
516
516
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
517
517
|
step: string | number;
|
|
518
518
|
format: string | ProgressFn | undefined;
|
|
@@ -529,7 +529,7 @@ export declare const PlusFormItem: {
|
|
|
529
529
|
default: () => never[];
|
|
530
530
|
};
|
|
531
531
|
modelValue: {
|
|
532
|
-
type: PropType<string | number | boolean |
|
|
532
|
+
type: PropType<string | number | boolean | RecordType | Date | string[] | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | [string, string] | string[][] | number[][] | null>;
|
|
533
533
|
default: string;
|
|
534
534
|
};
|
|
535
535
|
fieldSlots: {
|
|
@@ -550,24 +550,12 @@ export declare const PlusFormItem: {
|
|
|
550
550
|
type: PropType<boolean>;
|
|
551
551
|
default: boolean;
|
|
552
552
|
};
|
|
553
|
-
valueType: {
|
|
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">;
|
|
555
|
-
default: undefined;
|
|
556
|
-
};
|
|
557
553
|
renderField: {
|
|
558
554
|
type: PropType<(value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes>;
|
|
559
555
|
default: undefined;
|
|
560
556
|
};
|
|
561
|
-
|
|
562
|
-
type: PropType<
|
|
563
|
-
default: undefined;
|
|
564
|
-
};
|
|
565
|
-
renderErrorMessage: {
|
|
566
|
-
type: PropType<(props: PlusColumn & {
|
|
567
|
-
value?: FieldValueType;
|
|
568
|
-
error?: string | undefined;
|
|
569
|
-
label?: string | undefined;
|
|
570
|
-
}) => RenderTypes>;
|
|
557
|
+
valueType: {
|
|
558
|
+
type: PropType< TableValueType | "rate" | "input-number" | "slider" | "switch" | "checkbox" | "cascader" | "plus-date-picker" | "plus-input-tag" | "transfer" | "select" | "radio" | "select-v2" | "plus-radio" | "autocomplete" | "color-picker" | "date-picker" | "time-picker" | "time-select" | "textarea" | "input" | "text" | "tree-select">;
|
|
571
559
|
default: undefined;
|
|
572
560
|
};
|
|
573
561
|
optionsMap: {
|
|
@@ -586,12 +574,24 @@ export declare const PlusFormItem: {
|
|
|
586
574
|
}>;
|
|
587
575
|
default: undefined;
|
|
588
576
|
};
|
|
577
|
+
renderLabel: {
|
|
578
|
+
type: PropType<(label: string, props: PlusColumn) => RenderTypes>;
|
|
579
|
+
default: undefined;
|
|
580
|
+
};
|
|
581
|
+
renderErrorMessage: {
|
|
582
|
+
type: PropType<(props: PlusColumn & {
|
|
583
|
+
value?: FieldValueType;
|
|
584
|
+
error?: string | undefined;
|
|
585
|
+
label?: string | undefined;
|
|
586
|
+
}) => RenderTypes>;
|
|
587
|
+
default: undefined;
|
|
588
|
+
};
|
|
589
589
|
}>> & {
|
|
590
|
-
onChange?: ((value: FieldValueType) => any) | undefined;
|
|
591
590
|
"onUpdate:modelValue"?: ((value: FieldValueType) => any) | undefined;
|
|
591
|
+
onChange?: ((value: FieldValueType) => any) | undefined;
|
|
592
592
|
}, {
|
|
593
|
-
index: number;
|
|
594
593
|
label: string | ComputedRef<string>;
|
|
594
|
+
index: number;
|
|
595
595
|
tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
|
|
596
596
|
style?: CSSProperties | undefined;
|
|
597
597
|
class?: any;
|
|
@@ -617,7 +617,7 @@ export declare const PlusFormItem: {
|
|
|
617
617
|
};
|
|
618
618
|
rows: number;
|
|
619
619
|
autocomplete: string;
|
|
620
|
-
type: "" | "number" | "default" | "
|
|
620
|
+
type: "" | "number" | "default" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "textarea" | "text" | "circle" | "color" | "button" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "search" | "time" | "image" | "line" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
|
|
621
621
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
622
622
|
step: string | number;
|
|
623
623
|
format: string | ProgressFn | undefined;
|
|
@@ -628,21 +628,15 @@ export declare const PlusFormItem: {
|
|
|
628
628
|
autosize: InputAutoSize;
|
|
629
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>>>>;
|
|
630
630
|
options: OptionsType;
|
|
631
|
-
modelValue: string | number | boolean |
|
|
631
|
+
modelValue: string | number | boolean | RecordType | Date | string[] | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | [string, string] | string[][] | number[][] | null;
|
|
632
632
|
fieldSlots: {
|
|
633
633
|
[slotName: string]: (data?: any) => RenderTypes;
|
|
634
634
|
};
|
|
635
635
|
fieldChildrenSlot: (option?: OptionsRow<undefined> | undefined) => RenderTypes;
|
|
636
636
|
hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
637
637
|
clearable: boolean;
|
|
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";
|
|
639
638
|
renderField: (value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes;
|
|
640
|
-
|
|
641
|
-
renderErrorMessage: (props: PlusColumn & {
|
|
642
|
-
value?: FieldValueType;
|
|
643
|
-
error?: string | undefined;
|
|
644
|
-
label?: string | undefined;
|
|
645
|
-
}) => RenderTypes;
|
|
639
|
+
valueType: TableValueType | "rate" | "input-number" | "slider" | "switch" | "checkbox" | "cascader" | "plus-date-picker" | "plus-input-tag" | "transfer" | "select" | "radio" | "select-v2" | "plus-radio" | "autocomplete" | "color-picker" | "date-picker" | "time-picker" | "time-select" | "textarea" | "input" | "text" | "tree-select";
|
|
646
640
|
optionsMap: {
|
|
647
641
|
label?: string | undefined;
|
|
648
642
|
value?: string | undefined;
|
|
@@ -653,6 +647,12 @@ export declare const PlusFormItem: {
|
|
|
653
647
|
transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
|
|
654
648
|
dictCode?: string | undefined;
|
|
655
649
|
};
|
|
650
|
+
renderLabel: (label: string, props: PlusColumn) => RenderTypes;
|
|
651
|
+
renderErrorMessage: (props: PlusColumn & {
|
|
652
|
+
value?: FieldValueType;
|
|
653
|
+
error?: string | undefined;
|
|
654
|
+
label?: string | undefined;
|
|
655
|
+
}) => RenderTypes;
|
|
656
656
|
}, true, {}, {}, {
|
|
657
657
|
P: {};
|
|
658
658
|
B: {};
|
|
@@ -661,17 +661,17 @@ export declare const PlusFormItem: {
|
|
|
661
661
|
M: {};
|
|
662
662
|
Defaults: {};
|
|
663
663
|
}, Readonly< ExtractPropTypes<{
|
|
664
|
-
|
|
665
|
-
type: PropType<
|
|
666
|
-
|
|
664
|
+
prop: {
|
|
665
|
+
type: PropType<string>;
|
|
666
|
+
required: true;
|
|
667
667
|
};
|
|
668
668
|
label: {
|
|
669
669
|
type: PropType<string | ComputedRef<string>>;
|
|
670
670
|
default: string;
|
|
671
671
|
};
|
|
672
|
-
|
|
673
|
-
type: PropType<
|
|
674
|
-
|
|
672
|
+
index: {
|
|
673
|
+
type: PropType<number>;
|
|
674
|
+
default: number;
|
|
675
675
|
};
|
|
676
676
|
tooltip: {
|
|
677
677
|
type: PropType<string | Partial< Mutable<ElTooltipProps> & {
|
|
@@ -705,7 +705,7 @@ export declare const PlusFormItem: {
|
|
|
705
705
|
};
|
|
706
706
|
rows: number;
|
|
707
707
|
autocomplete: string;
|
|
708
|
-
type: "" | "number" | "default" | "
|
|
708
|
+
type: "" | "number" | "default" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "textarea" | "text" | "circle" | "color" | "button" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "search" | "time" | "image" | "line" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
|
|
709
709
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
710
710
|
step: string | number;
|
|
711
711
|
format: string | ProgressFn | undefined;
|
|
@@ -722,7 +722,7 @@ export declare const PlusFormItem: {
|
|
|
722
722
|
default: () => never[];
|
|
723
723
|
};
|
|
724
724
|
modelValue: {
|
|
725
|
-
type: PropType<string | number | boolean |
|
|
725
|
+
type: PropType<string | number | boolean | RecordType | Date | string[] | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | [string, string] | string[][] | number[][] | null>;
|
|
726
726
|
default: string;
|
|
727
727
|
};
|
|
728
728
|
fieldSlots: {
|
|
@@ -743,24 +743,12 @@ export declare const PlusFormItem: {
|
|
|
743
743
|
type: PropType<boolean>;
|
|
744
744
|
default: boolean;
|
|
745
745
|
};
|
|
746
|
-
valueType: {
|
|
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">;
|
|
748
|
-
default: undefined;
|
|
749
|
-
};
|
|
750
746
|
renderField: {
|
|
751
747
|
type: PropType<(value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes>;
|
|
752
748
|
default: undefined;
|
|
753
749
|
};
|
|
754
|
-
|
|
755
|
-
type: PropType<
|
|
756
|
-
default: undefined;
|
|
757
|
-
};
|
|
758
|
-
renderErrorMessage: {
|
|
759
|
-
type: PropType<(props: PlusColumn & {
|
|
760
|
-
value?: FieldValueType;
|
|
761
|
-
error?: string | undefined;
|
|
762
|
-
label?: string | undefined;
|
|
763
|
-
}) => RenderTypes>;
|
|
750
|
+
valueType: {
|
|
751
|
+
type: PropType< TableValueType | "rate" | "input-number" | "slider" | "switch" | "checkbox" | "cascader" | "plus-date-picker" | "plus-input-tag" | "transfer" | "select" | "radio" | "select-v2" | "plus-radio" | "autocomplete" | "color-picker" | "date-picker" | "time-picker" | "time-select" | "textarea" | "input" | "text" | "tree-select">;
|
|
764
752
|
default: undefined;
|
|
765
753
|
};
|
|
766
754
|
optionsMap: {
|
|
@@ -779,9 +767,21 @@ export declare const PlusFormItem: {
|
|
|
779
767
|
}>;
|
|
780
768
|
default: undefined;
|
|
781
769
|
};
|
|
770
|
+
renderLabel: {
|
|
771
|
+
type: PropType<(label: string, props: PlusColumn) => RenderTypes>;
|
|
772
|
+
default: undefined;
|
|
773
|
+
};
|
|
774
|
+
renderErrorMessage: {
|
|
775
|
+
type: PropType<(props: PlusColumn & {
|
|
776
|
+
value?: FieldValueType;
|
|
777
|
+
error?: string | undefined;
|
|
778
|
+
label?: string | undefined;
|
|
779
|
+
}) => RenderTypes>;
|
|
780
|
+
default: undefined;
|
|
781
|
+
};
|
|
782
782
|
}>> & {
|
|
783
|
-
onChange?: ((value: FieldValueType) => any) | undefined;
|
|
784
783
|
"onUpdate:modelValue"?: ((value: FieldValueType) => any) | undefined;
|
|
784
|
+
onChange?: ((value: FieldValueType) => any) | undefined;
|
|
785
785
|
}, {
|
|
786
786
|
formItemInstance: Ref< CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
787
787
|
readonly label: StringConstructor;
|
|
@@ -1117,8 +1117,8 @@ export declare const PlusFormItem: {
|
|
|
1117
1117
|
}> | null | undefined>;
|
|
1118
1118
|
fieldInstance: Ref<any>;
|
|
1119
1119
|
}, {}, {}, {}, {
|
|
1120
|
-
index: number;
|
|
1121
1120
|
label: string | ComputedRef<string>;
|
|
1121
|
+
index: number;
|
|
1122
1122
|
tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
|
|
1123
1123
|
style?: CSSProperties | undefined;
|
|
1124
1124
|
class?: any;
|
|
@@ -1144,7 +1144,7 @@ export declare const PlusFormItem: {
|
|
|
1144
1144
|
};
|
|
1145
1145
|
rows: number;
|
|
1146
1146
|
autocomplete: string;
|
|
1147
|
-
type: "" | "number" | "default" | "
|
|
1147
|
+
type: "" | "number" | "default" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "textarea" | "text" | "circle" | "color" | "button" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "search" | "time" | "image" | "line" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
|
|
1148
1148
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
1149
1149
|
step: string | number;
|
|
1150
1150
|
format: string | ProgressFn | undefined;
|
|
@@ -1155,21 +1155,15 @@ export declare const PlusFormItem: {
|
|
|
1155
1155
|
autosize: InputAutoSize;
|
|
1156
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>>>>;
|
|
1157
1157
|
options: OptionsType;
|
|
1158
|
-
modelValue: string | number | boolean |
|
|
1158
|
+
modelValue: string | number | boolean | RecordType | Date | string[] | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | [string, string] | string[][] | number[][] | null;
|
|
1159
1159
|
fieldSlots: {
|
|
1160
1160
|
[slotName: string]: (data?: any) => RenderTypes;
|
|
1161
1161
|
};
|
|
1162
1162
|
fieldChildrenSlot: (option?: OptionsRow<undefined> | undefined) => RenderTypes;
|
|
1163
1163
|
hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
1164
1164
|
clearable: boolean;
|
|
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";
|
|
1166
1165
|
renderField: (value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes;
|
|
1167
|
-
|
|
1168
|
-
renderErrorMessage: (props: PlusColumn & {
|
|
1169
|
-
value?: FieldValueType;
|
|
1170
|
-
error?: string | undefined;
|
|
1171
|
-
label?: string | undefined;
|
|
1172
|
-
}) => RenderTypes;
|
|
1166
|
+
valueType: TableValueType | "rate" | "input-number" | "slider" | "switch" | "checkbox" | "cascader" | "plus-date-picker" | "plus-input-tag" | "transfer" | "select" | "radio" | "select-v2" | "plus-radio" | "autocomplete" | "color-picker" | "date-picker" | "time-picker" | "time-select" | "textarea" | "input" | "text" | "tree-select";
|
|
1173
1167
|
optionsMap: {
|
|
1174
1168
|
label?: string | undefined;
|
|
1175
1169
|
value?: string | undefined;
|
|
@@ -1180,22 +1174,28 @@ export declare const PlusFormItem: {
|
|
|
1180
1174
|
transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
|
|
1181
1175
|
dictCode?: string | undefined;
|
|
1182
1176
|
};
|
|
1177
|
+
renderLabel: (label: string, props: PlusColumn) => RenderTypes;
|
|
1178
|
+
renderErrorMessage: (props: PlusColumn & {
|
|
1179
|
+
value?: FieldValueType;
|
|
1180
|
+
error?: string | undefined;
|
|
1181
|
+
label?: string | undefined;
|
|
1182
|
+
}) => RenderTypes;
|
|
1183
1183
|
}>;
|
|
1184
1184
|
__isFragment?: undefined;
|
|
1185
1185
|
__isTeleport?: undefined;
|
|
1186
1186
|
__isSuspense?: undefined;
|
|
1187
1187
|
} & ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
1188
|
-
|
|
1189
|
-
type: PropType<
|
|
1190
|
-
|
|
1188
|
+
prop: {
|
|
1189
|
+
type: PropType<string>;
|
|
1190
|
+
required: true;
|
|
1191
1191
|
};
|
|
1192
1192
|
label: {
|
|
1193
1193
|
type: PropType<string | ComputedRef<string>>;
|
|
1194
1194
|
default: string;
|
|
1195
1195
|
};
|
|
1196
|
-
|
|
1197
|
-
type: PropType<
|
|
1198
|
-
|
|
1196
|
+
index: {
|
|
1197
|
+
type: PropType<number>;
|
|
1198
|
+
default: number;
|
|
1199
1199
|
};
|
|
1200
1200
|
tooltip: {
|
|
1201
1201
|
type: PropType<string | Partial< Mutable<ElTooltipProps> & {
|
|
@@ -1229,7 +1229,7 @@ export declare const PlusFormItem: {
|
|
|
1229
1229
|
};
|
|
1230
1230
|
rows: number;
|
|
1231
1231
|
autocomplete: string;
|
|
1232
|
-
type: "" | "number" | "default" | "
|
|
1232
|
+
type: "" | "number" | "default" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "textarea" | "text" | "circle" | "color" | "button" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "search" | "time" | "image" | "line" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
|
|
1233
1233
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
1234
1234
|
step: string | number;
|
|
1235
1235
|
format: string | ProgressFn | undefined;
|
|
@@ -1246,7 +1246,7 @@ export declare const PlusFormItem: {
|
|
|
1246
1246
|
default: () => never[];
|
|
1247
1247
|
};
|
|
1248
1248
|
modelValue: {
|
|
1249
|
-
type: PropType<string | number | boolean |
|
|
1249
|
+
type: PropType<string | number | boolean | RecordType | Date | string[] | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | [string, string] | string[][] | number[][] | null>;
|
|
1250
1250
|
default: string;
|
|
1251
1251
|
};
|
|
1252
1252
|
fieldSlots: {
|
|
@@ -1267,24 +1267,12 @@ export declare const PlusFormItem: {
|
|
|
1267
1267
|
type: PropType<boolean>;
|
|
1268
1268
|
default: boolean;
|
|
1269
1269
|
};
|
|
1270
|
-
valueType: {
|
|
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">;
|
|
1272
|
-
default: undefined;
|
|
1273
|
-
};
|
|
1274
1270
|
renderField: {
|
|
1275
1271
|
type: PropType<(value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes>;
|
|
1276
1272
|
default: undefined;
|
|
1277
1273
|
};
|
|
1278
|
-
|
|
1279
|
-
type: PropType<
|
|
1280
|
-
default: undefined;
|
|
1281
|
-
};
|
|
1282
|
-
renderErrorMessage: {
|
|
1283
|
-
type: PropType<(props: PlusColumn & {
|
|
1284
|
-
value?: FieldValueType;
|
|
1285
|
-
error?: string | undefined;
|
|
1286
|
-
label?: string | undefined;
|
|
1287
|
-
}) => RenderTypes>;
|
|
1274
|
+
valueType: {
|
|
1275
|
+
type: PropType< TableValueType | "rate" | "input-number" | "slider" | "switch" | "checkbox" | "cascader" | "plus-date-picker" | "plus-input-tag" | "transfer" | "select" | "radio" | "select-v2" | "plus-radio" | "autocomplete" | "color-picker" | "date-picker" | "time-picker" | "time-select" | "textarea" | "input" | "text" | "tree-select">;
|
|
1288
1276
|
default: undefined;
|
|
1289
1277
|
};
|
|
1290
1278
|
optionsMap: {
|
|
@@ -1303,9 +1291,21 @@ export declare const PlusFormItem: {
|
|
|
1303
1291
|
}>;
|
|
1304
1292
|
default: undefined;
|
|
1305
1293
|
};
|
|
1294
|
+
renderLabel: {
|
|
1295
|
+
type: PropType<(label: string, props: PlusColumn) => RenderTypes>;
|
|
1296
|
+
default: undefined;
|
|
1297
|
+
};
|
|
1298
|
+
renderErrorMessage: {
|
|
1299
|
+
type: PropType<(props: PlusColumn & {
|
|
1300
|
+
value?: FieldValueType;
|
|
1301
|
+
error?: string | undefined;
|
|
1302
|
+
label?: string | undefined;
|
|
1303
|
+
}) => RenderTypes>;
|
|
1304
|
+
default: undefined;
|
|
1305
|
+
};
|
|
1306
1306
|
}>> & {
|
|
1307
|
-
onChange?: ((value: FieldValueType) => any) | undefined;
|
|
1308
1307
|
"onUpdate:modelValue"?: ((value: FieldValueType) => any) | undefined;
|
|
1308
|
+
onChange?: ((value: FieldValueType) => any) | undefined;
|
|
1309
1309
|
}, {
|
|
1310
1310
|
formItemInstance: Ref< CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
1311
1311
|
readonly label: StringConstructor;
|
|
@@ -1644,8 +1644,8 @@ export declare const PlusFormItem: {
|
|
|
1644
1644
|
"update:modelValue": (value: FieldValueType) => void;
|
|
1645
1645
|
change: (value: FieldValueType) => void;
|
|
1646
1646
|
}, string, {
|
|
1647
|
-
index: number;
|
|
1648
1647
|
label: string | ComputedRef<string>;
|
|
1648
|
+
index: number;
|
|
1649
1649
|
tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
|
|
1650
1650
|
style?: CSSProperties | undefined;
|
|
1651
1651
|
class?: any;
|
|
@@ -1671,7 +1671,7 @@ export declare const PlusFormItem: {
|
|
|
1671
1671
|
};
|
|
1672
1672
|
rows: number;
|
|
1673
1673
|
autocomplete: string;
|
|
1674
|
-
type: "" | "number" | "default" | "
|
|
1674
|
+
type: "" | "number" | "default" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "textarea" | "text" | "circle" | "color" | "button" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "search" | "time" | "image" | "line" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
|
|
1675
1675
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
1676
1676
|
step: string | number;
|
|
1677
1677
|
format: string | ProgressFn | undefined;
|
|
@@ -1682,21 +1682,15 @@ export declare const PlusFormItem: {
|
|
|
1682
1682
|
autosize: InputAutoSize;
|
|
1683
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>>>>;
|
|
1684
1684
|
options: OptionsType;
|
|
1685
|
-
modelValue: string | number | boolean |
|
|
1685
|
+
modelValue: string | number | boolean | RecordType | Date | string[] | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | [string, string] | string[][] | number[][] | null;
|
|
1686
1686
|
fieldSlots: {
|
|
1687
1687
|
[slotName: string]: (data?: any) => RenderTypes;
|
|
1688
1688
|
};
|
|
1689
1689
|
fieldChildrenSlot: (option?: OptionsRow<undefined> | undefined) => RenderTypes;
|
|
1690
1690
|
hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
1691
1691
|
clearable: boolean;
|
|
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";
|
|
1693
1692
|
renderField: (value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes;
|
|
1694
|
-
|
|
1695
|
-
renderErrorMessage: (props: PlusColumn & {
|
|
1696
|
-
value?: FieldValueType;
|
|
1697
|
-
error?: string | undefined;
|
|
1698
|
-
label?: string | undefined;
|
|
1699
|
-
}) => RenderTypes;
|
|
1693
|
+
valueType: TableValueType | "rate" | "input-number" | "slider" | "switch" | "checkbox" | "cascader" | "plus-date-picker" | "plus-input-tag" | "transfer" | "select" | "radio" | "select-v2" | "plus-radio" | "autocomplete" | "color-picker" | "date-picker" | "time-picker" | "time-select" | "textarea" | "input" | "text" | "tree-select";
|
|
1700
1694
|
optionsMap: {
|
|
1701
1695
|
label?: string | undefined;
|
|
1702
1696
|
value?: string | undefined;
|
|
@@ -1707,6 +1701,12 @@ export declare const PlusFormItem: {
|
|
|
1707
1701
|
transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
|
|
1708
1702
|
dictCode?: string | undefined;
|
|
1709
1703
|
};
|
|
1704
|
+
renderLabel: (label: string, props: PlusColumn) => RenderTypes;
|
|
1705
|
+
renderErrorMessage: (props: PlusColumn & {
|
|
1706
|
+
value?: FieldValueType;
|
|
1707
|
+
error?: string | undefined;
|
|
1708
|
+
label?: string | undefined;
|
|
1709
|
+
}) => RenderTypes;
|
|
1710
1710
|
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
1711
1711
|
$slots: Partial<Record<string, (_: {
|
|
1712
1712
|
label: string;
|
|
@@ -1716,7 +1716,7 @@ export declare const PlusFormItem: {
|
|
|
1716
1716
|
fieldInstance?: any;
|
|
1717
1717
|
valueIsReady?: Ref<boolean> | undefined;
|
|
1718
1718
|
prop: string;
|
|
1719
|
-
modelValue: string | number | boolean |
|
|
1719
|
+
modelValue: string | number | boolean | RecordType | Date | string[] | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | [string, string] | string[][] | number[][] | null;
|
|
1720
1720
|
hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
1721
1721
|
tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
1722
1722
|
style?: CSSProperties | undefined;
|
|
@@ -1750,9 +1750,9 @@ export declare const PlusFormItem: {
|
|
|
1750
1750
|
clearable: boolean;
|
|
1751
1751
|
index: number;
|
|
1752
1752
|
}) => any>> & Partial<Record<string, (_: {
|
|
1753
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "
|
|
1753
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "label" | "index" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "renderField" | "valueType" | "optionsMap" | "autoDict" | "renderLabel" | "renderErrorMessage">> & {
|
|
1754
1754
|
readonly label: string | ComputedRef<string>;
|
|
1755
|
-
readonly modelValue: string | number | boolean |
|
|
1755
|
+
readonly modelValue: string | number | boolean | RecordType | Date | string[] | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | [string, string] | string[][] | number[][] | null;
|
|
1756
1756
|
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
1757
1757
|
readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
1758
1758
|
style?: CSSProperties | undefined;
|
|
@@ -1779,7 +1779,7 @@ export declare const PlusFormItem: {
|
|
|
1779
1779
|
};
|
|
1780
1780
|
rows: number;
|
|
1781
1781
|
autocomplete: string;
|
|
1782
|
-
type: "" | "number" | "default" | "
|
|
1782
|
+
type: "" | "number" | "default" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "textarea" | "text" | "circle" | "color" | "button" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "search" | "time" | "image" | "line" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
|
|
1783
1783
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
1784
1784
|
step: string | number;
|
|
1785
1785
|
format: string | ProgressFn | undefined;
|
|
@@ -1824,7 +1824,7 @@ export declare const PlusFormItem: {
|
|
|
1824
1824
|
fieldInstance?: any;
|
|
1825
1825
|
valueIsReady?: Ref<boolean> | undefined;
|
|
1826
1826
|
prop: string;
|
|
1827
|
-
modelValue: string | number | boolean |
|
|
1827
|
+
modelValue: string | number | boolean | RecordType | Date | string[] | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | [string, string] | string[][] | number[][] | null;
|
|
1828
1828
|
hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
1829
1829
|
tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
1830
1830
|
style?: CSSProperties | undefined;
|
|
@@ -42,7 +42,8 @@ const FieldComponentMap = {
|
|
|
42
42
|
},
|
|
43
43
|
"input-number": {
|
|
44
44
|
component: ElInputNumber,
|
|
45
|
-
|
|
45
|
+
// align: 'left' 设置输入文本靠左对齐 (Element Plus 2.10.5+)
|
|
46
|
+
props: { placeholder: "plus.field.pleaseEnter", align: "left" }
|
|
46
47
|
},
|
|
47
48
|
radio: {
|
|
48
49
|
component: ElRadioGroup,
|