yc-pro-components 0.0.24 → 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 +76 -76
- package/es/components/check-card/src/index.vue.d.ts +14 -14
- package/es/components/check-card-group/index.d.ts +57 -57
- package/es/components/check-card-group/src/index.vue.d.ts +20 -20
- package/es/components/date-picker/index.d.ts +10 -10
- package/es/components/date-picker/src/index.vue.d.ts +2 -2
- package/es/components/descriptions/index.d.ts +39 -39
- package/es/components/descriptions/src/index.vue.d.ts +2 -2
- package/es/components/dialog/index.d.ts +45 -45
- package/es/components/dialog/src/index.vue.d.ts +3 -3
- package/es/components/dialog-form/index.d.ts +47 -47
- package/es/components/dialog-form/src/index.vue.d.ts +11 -11
- package/es/components/display-item/index.d.ts +24 -24
- package/es/components/display-item/src/index.vue.d.ts +24 -24
- package/es/components/drawer-form/index.d.ts +31 -31
- package/es/components/drawer-form/src/index.vue.d.ts +10 -10
- package/es/components/form/index.d.ts +157 -138
- package/es/components/form/src/form-content.vue.d.ts +33 -29
- package/es/components/form/src/form-content.vue2.mjs +106 -96
- package/es/components/form/src/index.vue.d.ts +28 -25
- package/es/components/form/src/index.vue2.mjs +5 -2
- package/es/components/form/src/type.d.ts +4 -0
- package/es/components/form-item/index.d.ts +150 -150
- package/es/components/form-item/src/form-item.mjs +2 -1
- package/es/components/form-item/src/index.vue.d.ts +21 -21
- package/es/components/form-item/src/index.vue2.mjs +22 -18
- package/es/components/header/index.d.ts +19 -19
- package/es/components/header/src/index.vue.d.ts +1 -1
- package/es/components/input-tag/index.d.ts +16 -16
- package/es/components/input-tag/src/index.vue.d.ts +8 -8
- package/es/components/layout/index.d.ts +30 -30
- package/es/components/layout/src/index.vue.d.ts +10 -10
- package/es/components/page/index.d.ts +1175 -1040
- package/es/components/page/src/index.vue.d.ts +383 -338
- package/es/components/pagination/index.d.ts +38 -38
- package/es/components/pagination/src/index.vue.d.ts +2 -2
- package/es/components/radio/index.d.ts +34 -34
- package/es/components/radio/src/index.vue.d.ts +26 -26
- package/es/components/render/index.d.ts +17 -17
- package/es/components/render/src/index.vue.d.ts +2 -2
- package/es/components/search/index.d.ts +494 -430
- package/es/components/search/src/index.vue.d.ts +143 -125
- package/es/components/search/src/index.vue2.mjs +3 -1
- package/es/components/search/src/type.d.ts +7 -0
- package/es/components/sidebar/index.d.ts +15 -15
- package/es/components/sidebar/src/index.vue.d.ts +5 -5
- package/es/components/steps-form/index.d.ts +19 -19
- package/es/components/steps-form/src/index.vue.d.ts +1 -1
- package/es/components/table/index.d.ts +38 -38
- package/es/components/table/src/index.vue.d.ts +7 -7
- package/es/components/table/src/table-action-bar.vue.d.ts +3 -3
- package/es/components/table/src/table-column-drag-sort.vue.d.ts +6 -6
- package/es/components/table/src/table-column.vue.d.ts +24 -24
- package/es/components/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/index.d.ts +24 -24
- package/es/components/yc-dialog/src/index.vue2.mjs +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-more-actions/index.d.ts +6 -6
- package/es/components/yc-more-actions/src/index.vue.d.ts +1 -1
- package/es/components/yc-plus-page/src/index.vue.d.ts +826 -736
- package/es/components/yc-plus-page/src/index.vue.mjs +1 -1
- package/es/components/yc-plus-page/src/index.vue2.mjs +2 -15
- package/es/components/yc-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 +1 -1
- 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/hooks/usePlusFormReset.d.ts +208 -208
- package/es/index.css +3 -3
- package/index.css +54 -54
- package/index.js +160 -144
- package/index.min.css +3 -3
- package/index.min.js +7 -7
- package/index.min.mjs +7 -7
- package/index.mjs +160 -144
- package/lib/components/check-card/index.d.ts +76 -76
- package/lib/components/check-card/src/index.vue.d.ts +14 -14
- package/lib/components/check-card-group/index.d.ts +57 -57
- package/lib/components/check-card-group/src/index.vue.d.ts +20 -20
- package/lib/components/date-picker/index.d.ts +10 -10
- package/lib/components/date-picker/src/index.vue.d.ts +2 -2
- package/lib/components/descriptions/index.d.ts +39 -39
- package/lib/components/descriptions/src/index.vue.d.ts +2 -2
- package/lib/components/dialog/index.d.ts +45 -45
- package/lib/components/dialog/src/index.vue.d.ts +3 -3
- package/lib/components/dialog-form/index.d.ts +47 -47
- package/lib/components/dialog-form/src/index.vue.d.ts +11 -11
- package/lib/components/display-item/index.d.ts +24 -24
- package/lib/components/display-item/src/index.vue.d.ts +24 -24
- package/lib/components/drawer-form/index.d.ts +31 -31
- package/lib/components/drawer-form/src/index.vue.d.ts +10 -10
- package/lib/components/form/index.d.ts +157 -138
- package/lib/components/form/src/form-content.vue.d.ts +33 -29
- package/lib/components/form/src/form-content.vue2.js +105 -95
- package/lib/components/form/src/index.vue.d.ts +28 -25
- package/lib/components/form/src/index.vue2.js +5 -2
- package/lib/components/form/src/type.d.ts +4 -0
- package/lib/components/form-item/index.d.ts +150 -150
- package/lib/components/form-item/src/form-item.js +2 -1
- package/lib/components/form-item/src/index.vue.d.ts +21 -21
- package/lib/components/form-item/src/index.vue2.js +21 -17
- package/lib/components/header/index.d.ts +19 -19
- package/lib/components/header/src/index.vue.d.ts +1 -1
- package/lib/components/input-tag/index.d.ts +16 -16
- package/lib/components/input-tag/src/index.vue.d.ts +8 -8
- package/lib/components/layout/index.d.ts +30 -30
- package/lib/components/layout/src/index.vue.d.ts +10 -10
- package/lib/components/page/index.d.ts +1175 -1040
- package/lib/components/page/src/index.vue.d.ts +383 -338
- package/lib/components/pagination/index.d.ts +38 -38
- package/lib/components/pagination/src/index.vue.d.ts +2 -2
- package/lib/components/radio/index.d.ts +34 -34
- package/lib/components/radio/src/index.vue.d.ts +26 -26
- package/lib/components/render/index.d.ts +17 -17
- package/lib/components/render/src/index.vue.d.ts +2 -2
- package/lib/components/search/index.d.ts +494 -430
- package/lib/components/search/src/index.vue.d.ts +143 -125
- package/lib/components/search/src/index.vue2.js +3 -1
- package/lib/components/search/src/type.d.ts +7 -0
- package/lib/components/sidebar/index.d.ts +15 -15
- package/lib/components/sidebar/src/index.vue.d.ts +5 -5
- package/lib/components/steps-form/index.d.ts +19 -19
- package/lib/components/steps-form/src/index.vue.d.ts +1 -1
- package/lib/components/table/index.d.ts +38 -38
- package/lib/components/table/src/index.vue.d.ts +7 -7
- package/lib/components/table/src/table-action-bar.vue.d.ts +3 -3
- package/lib/components/table/src/table-column-drag-sort.vue.d.ts +6 -6
- package/lib/components/table/src/table-column.vue.d.ts +24 -24
- package/lib/components/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/index.d.ts +24 -24
- package/lib/components/yc-dialog/src/index.vue2.js +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-more-actions/index.d.ts +6 -6
- package/lib/components/yc-more-actions/src/index.vue.d.ts +1 -1
- package/lib/components/yc-plus-page/src/index.vue.d.ts +826 -736
- package/lib/components/yc-plus-page/src/index.vue.js +1 -1
- package/lib/components/yc-plus-page/src/index.vue2.js +2 -15
- package/lib/components/yc-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 +1 -1
- 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/hooks/usePlusFormReset.d.ts +208 -208
- package/lib/index.css +3 -3
- 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-form.css +1 -1
- package/theme-chalk/plus-search.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/form.scss +20 -0
- package/theme-chalk/src/search.scss +125 -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
|
@@ -3,13 +3,14 @@ import { LooseRequired } from '@vue/shared';
|
|
|
3
3
|
import { TimeSelectProps } from 'element-plus/es/components/time-select/src/time-select';
|
|
4
4
|
import { EpPropMergeType } from 'element-plus/es/utils';
|
|
5
5
|
import { PlusFormProps, PlusRadioProps, PlusDatePickerProps, PlusInputTagProps } from 'packages/yc-components';
|
|
6
|
-
import {
|
|
6
|
+
import { ColProps, RowProps, ElTooltipProps, TableColumnCtx, FormItemProps, ProgressFn, CascaderNode, InputAutoSize, AutocompleteProps, CheckboxGroupProps, ColorPickerProps, DatePickerProps, InputProps, InputNumberProps, RadioGroupProps, RateProps, ISelectProps, SliderProps, SwitchProps, TimePickerDefaultProps, TextProps, ImageProps, LinkProps, TagProps, ProgressProps } from 'element-plus';
|
|
7
7
|
import { PlusColumn, FieldValues, FieldValueType, PlusRowProps, PlusColProps, Mutable, RecordType, TableValueType, FormItemValueType, OptionsType, OptionsRow, RenderTypes, PropsItemType, OmitTypes, CascaderProps } from 'yc-pro-components/es/types';
|
|
8
8
|
import { Ref, ComputedRef, DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, CSSProperties, PropType } from 'vue';
|
|
9
9
|
|
|
10
10
|
export interface PlusFormContentProps {
|
|
11
11
|
modelValue?: FieldValues;
|
|
12
12
|
hasLabel?: boolean;
|
|
13
|
+
layout?: 'grid' | 'flex';
|
|
13
14
|
columns?: PlusColumn[];
|
|
14
15
|
rowProps?: PlusRowProps;
|
|
15
16
|
colProps?: PlusColProps;
|
|
@@ -35,6 +36,7 @@ export interface PlusFormContentEmits {
|
|
|
35
36
|
declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PlusFormContentProps>, {
|
|
36
37
|
modelValue: () => {};
|
|
37
38
|
hasLabel: boolean;
|
|
39
|
+
layout: string;
|
|
38
40
|
rowProps: () => {};
|
|
39
41
|
colProps: () => {};
|
|
40
42
|
columns: () => never[];
|
|
@@ -47,6 +49,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
47
49
|
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PlusFormContentProps>, {
|
|
48
50
|
modelValue: () => {};
|
|
49
51
|
hasLabel: boolean;
|
|
52
|
+
layout: string;
|
|
50
53
|
rowProps: () => {};
|
|
51
54
|
colProps: () => {};
|
|
52
55
|
columns: () => never[];
|
|
@@ -57,20 +60,21 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
57
60
|
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
58
61
|
onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
|
|
59
62
|
}, {
|
|
60
|
-
modelValue: FieldValues;
|
|
61
|
-
collapseDuration: number;
|
|
62
|
-
collapseTransition: boolean;
|
|
63
63
|
columns: PlusColumn[];
|
|
64
|
+
layout: "grid" | "flex";
|
|
65
|
+
modelValue: FieldValues;
|
|
64
66
|
hasLabel: boolean;
|
|
65
|
-
|
|
67
|
+
clearable: boolean;
|
|
68
|
+
colProps: Partial< Mutable<ColProps> & {
|
|
66
69
|
style?: CSSProperties | undefined;
|
|
67
70
|
class?: any;
|
|
68
71
|
} & RecordType>;
|
|
69
|
-
|
|
72
|
+
collapseDuration: number;
|
|
73
|
+
collapseTransition: boolean;
|
|
74
|
+
rowProps: Partial< Mutable<RowProps> & {
|
|
70
75
|
style?: CSSProperties | undefined;
|
|
71
76
|
class?: any;
|
|
72
77
|
} & RecordType>;
|
|
73
|
-
clearable: boolean;
|
|
74
78
|
}, {}>, Partial<Record<string, (_: {
|
|
75
79
|
[x: string]: any;
|
|
76
80
|
label?: string | ComputedRef<string> | undefined;
|
|
@@ -94,10 +98,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
94
98
|
value: string | number;
|
|
95
99
|
row: RecordType;
|
|
96
100
|
}) => OptionsRow<undefined>) | undefined;
|
|
97
|
-
tooltip?: string |
|
|
101
|
+
tooltip?: string | Partial< Mutable<ElTooltipProps> & {
|
|
98
102
|
style?: CSSProperties | undefined;
|
|
99
103
|
class?: any;
|
|
100
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
104
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
101
105
|
style?: CSSProperties | undefined;
|
|
102
106
|
class?: any;
|
|
103
107
|
} & RecordType>> | undefined;
|
|
@@ -166,7 +170,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
166
170
|
};
|
|
167
171
|
rows: number;
|
|
168
172
|
autocomplete: string;
|
|
169
|
-
type: "" | "number" | "default" | "
|
|
173
|
+
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";
|
|
170
174
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
171
175
|
step: string | number;
|
|
172
176
|
format: string | ProgressFn | undefined;
|
|
@@ -198,14 +202,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
198
202
|
label?: string | undefined;
|
|
199
203
|
}) => RenderTypes) | undefined;
|
|
200
204
|
}) => any>> & Partial<Record<string, (_: {
|
|
201
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "
|
|
205
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "label" | "index" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "renderField" | "valueType" | "optionsMap" | "autoDict" | "renderLabel" | "renderErrorMessage">> & {
|
|
202
206
|
readonly label: string | ComputedRef<string>;
|
|
203
|
-
readonly modelValue: string | number | boolean |
|
|
207
|
+
readonly modelValue: string | number | boolean | RecordType | Date | string[] | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | [string, string] | string[][] | number[][] | null;
|
|
204
208
|
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
205
|
-
readonly tooltip: string |
|
|
209
|
+
readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
206
210
|
style?: CSSProperties | undefined;
|
|
207
211
|
class?: any;
|
|
208
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
212
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
209
213
|
style?: CSSProperties | undefined;
|
|
210
214
|
class?: any;
|
|
211
215
|
} & RecordType>>;
|
|
@@ -227,7 +231,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
227
231
|
};
|
|
228
232
|
rows: number;
|
|
229
233
|
autocomplete: string;
|
|
230
|
-
type: "" | "number" | "default" | "
|
|
234
|
+
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";
|
|
231
235
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
232
236
|
step: string | number;
|
|
233
237
|
format: string | ProgressFn | undefined;
|
|
@@ -272,12 +276,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
272
276
|
fieldInstance?: any;
|
|
273
277
|
valueIsReady?: Ref<boolean> | undefined;
|
|
274
278
|
prop: string;
|
|
275
|
-
modelValue: string | number | boolean |
|
|
279
|
+
modelValue: string | number | boolean | RecordType | Date | string[] | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | [string, string] | string[][] | number[][] | null;
|
|
276
280
|
hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
277
|
-
tooltip: string |
|
|
281
|
+
tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
278
282
|
style?: CSSProperties | undefined;
|
|
279
283
|
class?: any;
|
|
280
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
284
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
281
285
|
style?: CSSProperties | undefined;
|
|
282
286
|
class?: any;
|
|
283
287
|
} & RecordType>>;
|
|
@@ -306,14 +310,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
306
310
|
clearable: boolean;
|
|
307
311
|
index: number;
|
|
308
312
|
}) => any>> & Partial<Record<string, (_: {
|
|
309
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "
|
|
313
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "label" | "index" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "renderField" | "valueType" | "optionsMap" | "autoDict" | "renderLabel" | "renderErrorMessage">> & {
|
|
310
314
|
readonly label: string | ComputedRef<string>;
|
|
311
|
-
readonly modelValue: string | number | boolean |
|
|
315
|
+
readonly modelValue: string | number | boolean | RecordType | Date | string[] | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | [string, string] | string[][] | number[][] | null;
|
|
312
316
|
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
313
|
-
readonly tooltip: string |
|
|
317
|
+
readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
314
318
|
style?: CSSProperties | undefined;
|
|
315
319
|
class?: any;
|
|
316
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
320
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
317
321
|
style?: CSSProperties | undefined;
|
|
318
322
|
class?: any;
|
|
319
323
|
} & RecordType>>;
|
|
@@ -335,7 +339,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
335
339
|
};
|
|
336
340
|
rows: number;
|
|
337
341
|
autocomplete: string;
|
|
338
|
-
type: "" | "number" | "default" | "
|
|
342
|
+
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";
|
|
339
343
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
340
344
|
step: string | number;
|
|
341
345
|
format: string | ProgressFn | undefined;
|
|
@@ -380,12 +384,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
380
384
|
fieldInstance?: any;
|
|
381
385
|
valueIsReady?: Ref<boolean> | undefined;
|
|
382
386
|
prop: string;
|
|
383
|
-
modelValue: string | number | boolean |
|
|
387
|
+
modelValue: string | number | boolean | RecordType | Date | string[] | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | [string, string] | string[][] | number[][] | null;
|
|
384
388
|
hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
385
|
-
tooltip: string |
|
|
389
|
+
tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
386
390
|
style?: CSSProperties | undefined;
|
|
387
391
|
class?: any;
|
|
388
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
392
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
389
393
|
style?: CSSProperties | undefined;
|
|
390
394
|
class?: any;
|
|
391
395
|
} & RecordType>>;
|
|
@@ -436,10 +440,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
436
440
|
value: string | number;
|
|
437
441
|
row: RecordType;
|
|
438
442
|
}) => OptionsRow<undefined>) | undefined;
|
|
439
|
-
tooltip?: string |
|
|
443
|
+
tooltip?: string | Partial< Mutable<ElTooltipProps> & {
|
|
440
444
|
style?: CSSProperties | undefined;
|
|
441
445
|
class?: any;
|
|
442
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
446
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
443
447
|
style?: CSSProperties | undefined;
|
|
444
448
|
class?: any;
|
|
445
449
|
} & RecordType>> | undefined;
|
|
@@ -508,7 +512,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
508
512
|
};
|
|
509
513
|
rows: number;
|
|
510
514
|
autocomplete: string;
|
|
511
|
-
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";
|
|
512
516
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
513
517
|
step: string | number;
|
|
514
518
|
format: string | ProgressFn | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, watch, openBlock, createBlock,
|
|
1
|
+
import { defineComponent, ref, computed, watch, openBlock, createBlock, resolveDynamicComponent, mergeProps, withCtx, createVNode, createElementBlock, Fragment, renderList, createCommentVNode, unref, normalizeProps, renderSlot, createSlots, guardReactiveProps } from 'vue';
|
|
2
2
|
import { ElRow, ElCol } from 'element-plus';
|
|
3
3
|
import { PlusFormItem } from '../../form-item/index.mjs';
|
|
4
4
|
import { getPreviousSlotName, getLabelSlotName, getFieldSlotName, getExtraSlotName, getValue, setValue } from '../../utils/index.mjs';
|
|
@@ -21,6 +21,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
21
21
|
props: {
|
|
22
22
|
modelValue: { default: () => ({}) },
|
|
23
23
|
hasLabel: { type: Boolean, default: true },
|
|
24
|
+
layout: { default: "grid" },
|
|
24
25
|
columns: { default: () => [] },
|
|
25
26
|
rowProps: { default: () => ({}) },
|
|
26
27
|
colProps: { default: () => ({}) },
|
|
@@ -33,6 +34,19 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
33
34
|
const props = __props;
|
|
34
35
|
const emit = __emit;
|
|
35
36
|
const values = ref({});
|
|
37
|
+
const isNativeLayout = computed(() => props.layout === "flex" || props.layout === "grid");
|
|
38
|
+
const isFlexLayout = computed(() => props.layout === "flex");
|
|
39
|
+
const isGridLayout = computed(() => props.layout === "grid");
|
|
40
|
+
const layoutRowClass = computed(() => ({
|
|
41
|
+
"plus-form__row--flex": isFlexLayout.value,
|
|
42
|
+
"plus-form__row--grid": isGridLayout.value
|
|
43
|
+
}));
|
|
44
|
+
const layoutItemClass = computed(() => ({
|
|
45
|
+
"plus-form__item-wrapper--flex": isFlexLayout.value,
|
|
46
|
+
"plus-form__item-wrapper--grid": isGridLayout.value
|
|
47
|
+
}));
|
|
48
|
+
const rowComponent = computed(() => isNativeLayout.value ? "div" : ElRow);
|
|
49
|
+
const colComponent = computed(() => isNativeLayout.value ? "div" : ElCol);
|
|
36
50
|
const getHasLabel = (hasLabel) => {
|
|
37
51
|
const has = unref(hasLabel);
|
|
38
52
|
if (isBoolean(has)) {
|
|
@@ -55,104 +69,100 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
55
69
|
emit("update:modelValue", values.value);
|
|
56
70
|
emit("change", values.value, column);
|
|
57
71
|
};
|
|
72
|
+
const getColBinding = (item) => {
|
|
73
|
+
if (isNativeLayout.value) return void 0;
|
|
74
|
+
return unref(item.colProps) || props.colProps;
|
|
75
|
+
};
|
|
58
76
|
return (_ctx, _cache) => {
|
|
59
|
-
return openBlock(), createBlock(
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
item.renderPrevious
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
onChange: (value) => handleChange(value, item)
|
|
96
|
-
}), createSlots({
|
|
97
|
-
_: 2
|
|
98
|
-
/* DYNAMIC */
|
|
99
|
-
}, [
|
|
100
|
-
_ctx.$slots[unref(getLabelSlotName)(item.prop)] ? {
|
|
101
|
-
name: unref(getLabelSlotName)(item.prop),
|
|
102
|
-
fn: withCtx((data) => [
|
|
103
|
-
renderSlot(_ctx.$slots, unref(getLabelSlotName)(item.prop), normalizeProps(guardReactiveProps(data)))
|
|
104
|
-
]),
|
|
105
|
-
key: "0"
|
|
106
|
-
} : void 0,
|
|
107
|
-
_ctx.$slots[unref(getFieldSlotName)(item.prop)] ? {
|
|
108
|
-
name: unref(getFieldSlotName)(item.prop),
|
|
109
|
-
fn: withCtx((data) => [
|
|
110
|
-
renderSlot(_ctx.$slots, unref(getFieldSlotName)(item.prop), normalizeProps(guardReactiveProps(data)))
|
|
111
|
-
]),
|
|
112
|
-
key: "1"
|
|
113
|
-
} : void 0,
|
|
114
|
-
_ctx.$slots["tooltip-icon"] ? {
|
|
115
|
-
name: "tooltip-icon",
|
|
116
|
-
fn: withCtx(() => [
|
|
117
|
-
renderSlot(_ctx.$slots, "tooltip-icon")
|
|
118
|
-
]),
|
|
119
|
-
key: "2"
|
|
120
|
-
} : void 0
|
|
121
|
-
]), 1040, ["model-value", "clearable", "has-label", "onChange"]),
|
|
122
|
-
createCommentVNode(" el-form-item \u4E0B\u4E00\u884C\u989D\u5916\u7684\u5185\u5BB9 "),
|
|
123
|
-
item.renderExtra || _ctx.$slots[unref(getExtraSlotName)(item.prop)] ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
124
|
-
item.renderExtra && unref(isFunction)(item.renderExtra) ? (openBlock(), createBlock(
|
|
125
|
-
resolveDynamicComponent(item.renderExtra),
|
|
126
|
-
normalizeProps(mergeProps({ key: 0 }, item)),
|
|
127
|
-
null,
|
|
128
|
-
16
|
|
129
|
-
/* FULL_PROPS */
|
|
130
|
-
)) : _ctx.$slots[unref(getExtraSlotName)(item.prop)] ? renderSlot(_ctx.$slots, unref(getExtraSlotName)(item.prop), normalizeProps(mergeProps({ key: 1 }, item))) : createCommentVNode("v-if", true)
|
|
131
|
-
])) : createCommentVNode("v-if", true)
|
|
132
|
-
]),
|
|
77
|
+
return openBlock(), createBlock(resolveDynamicComponent(rowComponent.value), mergeProps(isNativeLayout.value ? void 0 : _ctx.rowProps, {
|
|
78
|
+
class: ["plus-form__row", layoutRowClass.value]
|
|
79
|
+
}), {
|
|
80
|
+
default: withCtx(() => [
|
|
81
|
+
createVNode(PlusCollapseTransition, {
|
|
82
|
+
"collapse-duration": _ctx.collapseDuration,
|
|
83
|
+
"collapse-transition": _ctx.collapseTransition
|
|
84
|
+
}, {
|
|
85
|
+
default: withCtx(() => [
|
|
86
|
+
(openBlock(true), createElementBlock(
|
|
87
|
+
Fragment,
|
|
88
|
+
null,
|
|
89
|
+
renderList(_ctx.columns, (item) => {
|
|
90
|
+
return openBlock(), createBlock(resolveDynamicComponent(colComponent.value), mergeProps({
|
|
91
|
+
key: item.prop
|
|
92
|
+
}, getColBinding(item), {
|
|
93
|
+
class: ["plus-form__item-wrapper", layoutItemClass.value]
|
|
94
|
+
}), {
|
|
95
|
+
default: withCtx(() => [
|
|
96
|
+
createCommentVNode(" el-form-item\u4E0A\u4E00\u884C\u7684\u5185\u5BB9 "),
|
|
97
|
+
item.renderPrevious || _ctx.$slots[unref(getPreviousSlotName)(item.prop)] ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
98
|
+
unref(isFunction)(item.renderPrevious) ? (openBlock(), createBlock(
|
|
99
|
+
resolveDynamicComponent(item.renderPrevious),
|
|
100
|
+
normalizeProps(mergeProps({ key: 0 }, item)),
|
|
101
|
+
null,
|
|
102
|
+
16
|
|
103
|
+
/* FULL_PROPS */
|
|
104
|
+
)) : _ctx.$slots[unref(getPreviousSlotName)(item.prop)] ? renderSlot(_ctx.$slots, unref(getPreviousSlotName)(item.prop), normalizeProps(mergeProps({ key: 1 }, item))) : createCommentVNode("v-if", true)
|
|
105
|
+
])) : createCommentVNode("v-if", true),
|
|
106
|
+
createVNode(unref(PlusFormItem), mergeProps({
|
|
107
|
+
"model-value": getModelValue(item.prop)
|
|
108
|
+
}, item, {
|
|
109
|
+
clearable: _ctx.clearable,
|
|
110
|
+
"has-label": getHasLabel(item.hasLabel),
|
|
111
|
+
onChange: (value) => handleChange(value, item)
|
|
112
|
+
}), createSlots({
|
|
133
113
|
_: 2
|
|
134
114
|
/* DYNAMIC */
|
|
135
|
-
},
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
115
|
+
}, [
|
|
116
|
+
_ctx.$slots[unref(getLabelSlotName)(item.prop)] ? {
|
|
117
|
+
name: unref(getLabelSlotName)(item.prop),
|
|
118
|
+
fn: withCtx((data) => [
|
|
119
|
+
renderSlot(_ctx.$slots, unref(getLabelSlotName)(item.prop), normalizeProps(guardReactiveProps(data)))
|
|
120
|
+
]),
|
|
121
|
+
key: "0"
|
|
122
|
+
} : void 0,
|
|
123
|
+
_ctx.$slots[unref(getFieldSlotName)(item.prop)] ? {
|
|
124
|
+
name: unref(getFieldSlotName)(item.prop),
|
|
125
|
+
fn: withCtx((data) => [
|
|
126
|
+
renderSlot(_ctx.$slots, unref(getFieldSlotName)(item.prop), normalizeProps(guardReactiveProps(data)))
|
|
127
|
+
]),
|
|
128
|
+
key: "1"
|
|
129
|
+
} : void 0,
|
|
130
|
+
_ctx.$slots["tooltip-icon"] ? {
|
|
131
|
+
name: "tooltip-icon",
|
|
132
|
+
fn: withCtx(() => [
|
|
133
|
+
renderSlot(_ctx.$slots, "tooltip-icon")
|
|
134
|
+
]),
|
|
135
|
+
key: "2"
|
|
136
|
+
} : void 0
|
|
137
|
+
]), 1040, ["model-value", "clearable", "has-label", "onChange"]),
|
|
138
|
+
createCommentVNode(" el-form-item \u4E0B\u4E00\u884C\u989D\u5916\u7684\u5185\u5BB9 "),
|
|
139
|
+
item.renderExtra || _ctx.$slots[unref(getExtraSlotName)(item.prop)] ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
140
|
+
item.renderExtra && unref(isFunction)(item.renderExtra) ? (openBlock(), createBlock(
|
|
141
|
+
resolveDynamicComponent(item.renderExtra),
|
|
142
|
+
normalizeProps(mergeProps({ key: 0 }, item)),
|
|
143
|
+
null,
|
|
144
|
+
16
|
|
145
|
+
/* FULL_PROPS */
|
|
146
|
+
)) : _ctx.$slots[unref(getExtraSlotName)(item.prop)] ? renderSlot(_ctx.$slots, unref(getExtraSlotName)(item.prop), normalizeProps(mergeProps({ key: 1 }, item))) : createCommentVNode("v-if", true)
|
|
147
|
+
])) : createCommentVNode("v-if", true)
|
|
148
|
+
]),
|
|
149
|
+
_: 2
|
|
150
|
+
/* DYNAMIC */
|
|
151
|
+
}, 1040, ["class"]);
|
|
152
|
+
}),
|
|
153
|
+
128
|
|
154
|
+
/* KEYED_FRAGMENT */
|
|
155
|
+
))
|
|
156
|
+
]),
|
|
157
|
+
_: 3
|
|
158
|
+
/* FORWARDED */
|
|
159
|
+
}, 8, ["collapse-duration", "collapse-transition"]),
|
|
160
|
+
createCommentVNode(" \u641C\u7D22\u7684footer\u63D2\u69FD "),
|
|
161
|
+
renderSlot(_ctx.$slots, "search-footer")
|
|
162
|
+
]),
|
|
163
|
+
_: 3
|
|
164
|
+
/* FORWARDED */
|
|
165
|
+
}, 16, ["class"]);
|
|
156
166
|
};
|
|
157
167
|
}
|
|
158
168
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TimeSelectProps } from 'element-plus/es/components/time-select/src/time-select';
|
|
2
2
|
import { PlusFormItemProps, PlusRadioProps, PlusDatePickerProps, PlusInputTagProps } from 'packages/yc-components';
|
|
3
3
|
import { LooseRequired } from '@vue/shared';
|
|
4
|
-
import { FormItemRule, FormItemProp, FormItemContext, FormValidateCallback, FormValidationResult,
|
|
4
|
+
import { FormItemRule, FormItemProp, FormItemContext, FormValidateCallback, FormValidationResult, ColProps, RowProps, CardProps, ElTooltipProps, FormItemProps, ProgressFn, CascaderNode, InputAutoSize, AutocompleteProps, CheckboxGroupProps, ColorPickerProps, DatePickerProps, InputProps, InputNumberProps, RadioGroupProps, RateProps, ISelectProps, SliderProps, SwitchProps, TimePickerDefaultProps, TextProps, ImageProps, LinkProps, TagProps, ProgressProps } from 'element-plus';
|
|
5
5
|
import { Arrayable, EpPropFinalized, EpPropMergeType } from 'element-plus/es/utils';
|
|
6
6
|
import { DefineComponent, Ref, CreateComponentPublicInstance, ExtractPropTypes, PropType, ComputedRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, CSSProperties, Component } from 'vue';
|
|
7
7
|
import { PlusFormSelfProps, PlusFormGroupRow } from './type';
|
|
@@ -12,6 +12,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
12
12
|
defaultValues: () => {};
|
|
13
13
|
labelWidth: string;
|
|
14
14
|
labelPosition: string;
|
|
15
|
+
layout: string;
|
|
15
16
|
rowProps: () => {};
|
|
16
17
|
colProps: () => {};
|
|
17
18
|
labelSuffix: string;
|
|
@@ -328,6 +329,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
328
329
|
defaultValues: () => {};
|
|
329
330
|
labelWidth: string;
|
|
330
331
|
labelPosition: string;
|
|
332
|
+
layout: string;
|
|
331
333
|
rowProps: () => {};
|
|
332
334
|
colProps: () => {};
|
|
333
335
|
labelSuffix: string;
|
|
@@ -355,38 +357,39 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
355
357
|
onValidate?: ((...args: any[]) => any) | undefined;
|
|
356
358
|
onSubmitError?: ((errors: unknown) => any) | undefined;
|
|
357
359
|
}, {
|
|
358
|
-
modelValue: FieldValues;
|
|
359
|
-
collapseDuration: number;
|
|
360
|
-
collapseTransition: boolean;
|
|
361
360
|
columns: PlusColumn[];
|
|
362
361
|
group: false | PlusFormGroupRow[];
|
|
362
|
+
layout: "grid" | "flex";
|
|
363
|
+
modelValue: FieldValues;
|
|
363
364
|
rules: Partial<Record<string, Arrayable<FormItemRule>>>;
|
|
364
365
|
labelPosition: "top" | "right" | "left";
|
|
365
366
|
labelWidth: string | number;
|
|
366
367
|
labelSuffix: string;
|
|
367
368
|
hasLabel: boolean;
|
|
368
|
-
|
|
369
|
-
|
|
369
|
+
clearable: boolean;
|
|
370
|
+
colProps: Partial< Mutable<ColProps> & {
|
|
370
371
|
style?: CSSProperties | undefined;
|
|
371
372
|
class?: any;
|
|
372
373
|
} & RecordType>;
|
|
373
|
-
|
|
374
|
+
collapseDuration: number;
|
|
375
|
+
collapseTransition: boolean;
|
|
376
|
+
rowProps: Partial< Mutable<RowProps> & {
|
|
374
377
|
style?: CSSProperties | undefined;
|
|
375
378
|
class?: any;
|
|
376
379
|
} & RecordType>;
|
|
380
|
+
defaultValues: FieldValues;
|
|
377
381
|
hasErrorTip: boolean;
|
|
378
382
|
hasFooter: boolean;
|
|
379
383
|
hasReset: boolean;
|
|
380
384
|
submitText: string;
|
|
381
385
|
resetText: string;
|
|
382
386
|
submitLoading: boolean;
|
|
383
|
-
footerAlign: "
|
|
387
|
+
footerAlign: "right" | "left" | "center";
|
|
384
388
|
cardProps: Partial< Mutable<CardProps> & {
|
|
385
389
|
style?: CSSProperties | undefined;
|
|
386
390
|
class?: any;
|
|
387
391
|
} & RecordType>;
|
|
388
392
|
prevent: boolean;
|
|
389
|
-
clearable: boolean;
|
|
390
393
|
}, {}>, Partial<Record<string, (_: {
|
|
391
394
|
index: number;
|
|
392
395
|
title: string | ComputedRef<string>;
|
|
@@ -399,14 +402,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
399
402
|
hideInGroup?: boolean | ComputedRef<boolean> | undefined;
|
|
400
403
|
columns?: PlusColumn[] | undefined;
|
|
401
404
|
}) => any>> & Partial<Record<NonNullable<string | number>, (_: {
|
|
402
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "
|
|
405
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "label" | "index" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "renderField" | "valueType" | "optionsMap" | "autoDict" | "renderLabel" | "renderErrorMessage">> & {
|
|
403
406
|
readonly label: string | ComputedRef<string>;
|
|
404
|
-
readonly modelValue: string | number | boolean |
|
|
407
|
+
readonly modelValue: string | number | boolean | RecordType | Date | string[] | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | [string, string] | string[][] | number[][] | null;
|
|
405
408
|
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
406
|
-
readonly tooltip: string |
|
|
409
|
+
readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
407
410
|
style?: CSSProperties | undefined;
|
|
408
411
|
class?: any;
|
|
409
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
412
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
410
413
|
style?: CSSProperties | undefined;
|
|
411
414
|
class?: any;
|
|
412
415
|
} & RecordType>>;
|
|
@@ -428,7 +431,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
428
431
|
};
|
|
429
432
|
rows: number;
|
|
430
433
|
autocomplete: string;
|
|
431
|
-
type: "" | "number" | "default" | "
|
|
434
|
+
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";
|
|
432
435
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
433
436
|
step: string | number;
|
|
434
437
|
format: string | ProgressFn | undefined;
|
|
@@ -473,12 +476,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
473
476
|
fieldInstance?: any;
|
|
474
477
|
valueIsReady?: Ref<boolean> | undefined;
|
|
475
478
|
prop: string;
|
|
476
|
-
modelValue: string | number | boolean |
|
|
479
|
+
modelValue: string | number | boolean | RecordType | Date | string[] | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | [string, string] | string[][] | number[][] | null;
|
|
477
480
|
hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
478
|
-
tooltip: string |
|
|
481
|
+
tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
479
482
|
style?: CSSProperties | undefined;
|
|
480
483
|
class?: any;
|
|
481
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
484
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
482
485
|
style?: CSSProperties | undefined;
|
|
483
486
|
class?: any;
|
|
484
487
|
} & RecordType>>;
|
|
@@ -507,14 +510,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
507
510
|
clearable: boolean;
|
|
508
511
|
index: number;
|
|
509
512
|
}) => any>> & Partial<Record<NonNullable<string | number>, (_: {
|
|
510
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "
|
|
513
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "label" | "index" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "renderField" | "valueType" | "optionsMap" | "autoDict" | "renderLabel" | "renderErrorMessage">> & {
|
|
511
514
|
readonly label: string | ComputedRef<string>;
|
|
512
|
-
readonly modelValue: string | number | boolean |
|
|
515
|
+
readonly modelValue: string | number | boolean | RecordType | Date | string[] | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | [string, string] | string[][] | number[][] | null;
|
|
513
516
|
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
514
|
-
readonly tooltip: string |
|
|
517
|
+
readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
515
518
|
style?: CSSProperties | undefined;
|
|
516
519
|
class?: any;
|
|
517
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
520
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
518
521
|
style?: CSSProperties | undefined;
|
|
519
522
|
class?: any;
|
|
520
523
|
} & RecordType>>;
|
|
@@ -536,7 +539,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
536
539
|
};
|
|
537
540
|
rows: number;
|
|
538
541
|
autocomplete: string;
|
|
539
|
-
type: "" | "number" | "default" | "
|
|
542
|
+
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";
|
|
540
543
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
541
544
|
step: string | number;
|
|
542
545
|
format: string | ProgressFn | undefined;
|
|
@@ -581,12 +584,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
581
584
|
fieldInstance?: any;
|
|
582
585
|
valueIsReady?: Ref<boolean> | undefined;
|
|
583
586
|
prop: string;
|
|
584
|
-
modelValue: string | number | boolean |
|
|
587
|
+
modelValue: string | number | boolean | RecordType | Date | string[] | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | [string, string] | string[][] | number[][] | null;
|
|
585
588
|
hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
586
|
-
tooltip: string |
|
|
589
|
+
tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
587
590
|
style?: CSSProperties | undefined;
|
|
588
591
|
class?: any;
|
|
589
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
592
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
590
593
|
style?: CSSProperties | undefined;
|
|
591
594
|
class?: any;
|
|
592
595
|
} & RecordType>>;
|