yc-pro-components 0.0.18 → 0.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/check-card/index.d.ts +61 -61
- package/es/components/check-card/src/index.vue.d.ts +4 -4
- package/es/components/check-card-group/index.d.ts +43 -43
- package/es/components/check-card-group/src/index.vue.d.ts +3 -3
- package/es/components/date-picker/index.d.ts +10 -10
- package/es/components/date-picker/src/index.vue.d.ts +2 -2
- package/es/components/dialog/index.d.ts +26 -26
- package/es/components/dialog/src/index.vue.d.ts +2 -2
- package/es/components/dialog-form/index.d.ts +31 -31
- package/es/components/dialog-form/src/index.vue.d.ts +9 -9
- package/es/components/display-item/index.d.ts +41 -41
- package/es/components/display-item/src/index.vue.d.ts +22 -22
- package/es/components/display-item/src/index.vue2.mjs +18 -5
- package/es/components/drawer-form/index.d.ts +50 -50
- package/es/components/drawer-form/src/index.vue.d.ts +10 -10
- package/es/components/form/index.d.ts +45 -45
- package/es/components/form/src/form-content.vue.d.ts +22 -20
- package/es/components/form/src/index.vue.d.ts +17 -17
- package/es/components/form-item/index.d.ts +42 -42
- package/es/components/form-item/src/index.vue.d.ts +12 -12
- package/es/components/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 +519 -455
- package/es/components/page/src/index.vue.d.ts +198 -203
- package/es/components/page/src/index.vue2.mjs +4 -2
- package/es/components/pagination/index.d.ts +42 -42
- package/es/components/pagination/src/index.vue.d.ts +3 -3
- package/es/components/radio/index.d.ts +35 -35
- package/es/components/radio/src/index.vue.d.ts +27 -27
- package/es/components/render/index.d.ts +3 -3
- package/es/components/render/src/index.vue.d.ts +1 -1
- package/es/components/search/index.d.ts +154 -154
- package/es/components/search/src/index.vue.d.ts +50 -50
- 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 +73 -54
- package/es/components/table/src/index.vue.d.ts +21 -18
- package/es/components/table/src/index.vue2.mjs +4 -2
- package/es/components/table/src/table-column-drag-sort.vue.d.ts +18 -18
- package/es/components/table/src/table-column.vue.d.ts +37 -37
- package/es/components/table/src/type.d.ts +9 -0
- 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 +424 -364
- 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/form.d.ts +5 -0
- package/es/constants/form.mjs +2 -1
- package/es/constants/index.mjs +1 -1
- package/es/hooks/usePlusFormReset.d.ts +208 -208
- package/es/index.mjs +1 -1
- package/es/types/plus.d.ts +29 -0
- package/index.js +26 -7
- package/index.min.js +7 -7
- package/index.min.mjs +7 -7
- package/index.mjs +26 -8
- package/lib/components/check-card/index.d.ts +61 -61
- package/lib/components/check-card/src/index.vue.d.ts +4 -4
- package/lib/components/check-card-group/index.d.ts +43 -43
- package/lib/components/check-card-group/src/index.vue.d.ts +3 -3
- package/lib/components/date-picker/index.d.ts +10 -10
- package/lib/components/date-picker/src/index.vue.d.ts +2 -2
- package/lib/components/dialog/index.d.ts +26 -26
- package/lib/components/dialog/src/index.vue.d.ts +2 -2
- package/lib/components/dialog-form/index.d.ts +31 -31
- package/lib/components/dialog-form/src/index.vue.d.ts +9 -9
- package/lib/components/display-item/index.d.ts +41 -41
- package/lib/components/display-item/src/index.vue.d.ts +22 -22
- package/lib/components/display-item/src/index.vue2.js +16 -3
- package/lib/components/drawer-form/index.d.ts +50 -50
- package/lib/components/drawer-form/src/index.vue.d.ts +10 -10
- package/lib/components/form/index.d.ts +45 -45
- package/lib/components/form/src/form-content.vue.d.ts +22 -20
- package/lib/components/form/src/index.vue.d.ts +17 -17
- package/lib/components/form-item/index.d.ts +42 -42
- package/lib/components/form-item/src/index.vue.d.ts +12 -12
- package/lib/components/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 +519 -455
- package/lib/components/page/src/index.vue.d.ts +198 -203
- package/lib/components/page/src/index.vue2.js +4 -2
- package/lib/components/pagination/index.d.ts +42 -42
- package/lib/components/pagination/src/index.vue.d.ts +3 -3
- package/lib/components/radio/index.d.ts +35 -35
- package/lib/components/radio/src/index.vue.d.ts +27 -27
- package/lib/components/render/index.d.ts +3 -3
- package/lib/components/render/src/index.vue.d.ts +1 -1
- package/lib/components/search/index.d.ts +154 -154
- package/lib/components/search/src/index.vue.d.ts +50 -50
- 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 +73 -54
- package/lib/components/table/src/index.vue.d.ts +21 -18
- package/lib/components/table/src/index.vue2.js +3 -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 +37 -37
- package/lib/components/table/src/type.d.ts +9 -0
- 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 +424 -364
- 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/form.d.ts +5 -0
- package/lib/constants/form.js +2 -0
- package/lib/constants/index.js +1 -0
- package/lib/hooks/usePlusFormReset.d.ts +208 -208
- package/lib/index.js +1 -0
- package/lib/types/plus.d.ts +29 -0
- 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
|
@@ -71,20 +71,20 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
71
71
|
}) => any) | undefined;
|
|
72
72
|
}, {
|
|
73
73
|
index: number;
|
|
74
|
-
rest: RecordType;
|
|
75
74
|
formProps: PlusFormProps;
|
|
75
|
+
rest: RecordType;
|
|
76
76
|
column: PlusColumn;
|
|
77
77
|
row: RecordType;
|
|
78
78
|
editable: boolean | "click" | "dblclick";
|
|
79
79
|
}, {}>, Partial<Record<string, (_: {
|
|
80
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "
|
|
80
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "modelValue" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
|
|
81
81
|
readonly label: string | ComputedRef<string>;
|
|
82
|
-
readonly modelValue: string | number | boolean | string[] | [string, string] |
|
|
82
|
+
readonly modelValue: string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
83
83
|
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
84
|
-
readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
84
|
+
readonly tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
|
|
85
85
|
style?: CSSProperties | undefined;
|
|
86
86
|
class?: any;
|
|
87
|
-
} & RecordType> | ComputedRef<
|
|
87
|
+
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
88
88
|
style?: CSSProperties | undefined;
|
|
89
89
|
class?: any;
|
|
90
90
|
} & RecordType>>;
|
|
@@ -151,12 +151,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
151
151
|
fieldInstance?: any;
|
|
152
152
|
valueIsReady?: Ref<boolean> | undefined;
|
|
153
153
|
prop: string;
|
|
154
|
-
modelValue: string | number | boolean | string[] | [string, string] |
|
|
154
|
+
modelValue: string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
155
155
|
hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
156
|
-
tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
156
|
+
tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
|
|
157
157
|
style?: CSSProperties | undefined;
|
|
158
158
|
class?: any;
|
|
159
|
-
} & RecordType> | ComputedRef<
|
|
159
|
+
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
160
160
|
style?: CSSProperties | undefined;
|
|
161
161
|
class?: any;
|
|
162
162
|
} & RecordType>>;
|
|
@@ -185,14 +185,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
185
185
|
clearable: boolean;
|
|
186
186
|
index: number;
|
|
187
187
|
}) => any>> & Partial<Record<string, (_: {
|
|
188
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "
|
|
188
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "modelValue" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
|
|
189
189
|
readonly label: string | ComputedRef<string>;
|
|
190
|
-
readonly modelValue: string | number | boolean | string[] | [string, string] |
|
|
190
|
+
readonly modelValue: string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
191
191
|
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
192
|
-
readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
192
|
+
readonly tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
|
|
193
193
|
style?: CSSProperties | undefined;
|
|
194
194
|
class?: any;
|
|
195
|
-
} & RecordType> | ComputedRef<
|
|
195
|
+
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
196
196
|
style?: CSSProperties | undefined;
|
|
197
197
|
class?: any;
|
|
198
198
|
} & RecordType>>;
|
|
@@ -259,12 +259,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
259
259
|
fieldInstance?: any;
|
|
260
260
|
valueIsReady?: Ref<boolean> | undefined;
|
|
261
261
|
prop: string;
|
|
262
|
-
modelValue: string | number | boolean | string[] | [string, string] |
|
|
262
|
+
modelValue: string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
263
263
|
hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
264
|
-
tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
264
|
+
tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
|
|
265
265
|
style?: CSSProperties | undefined;
|
|
266
266
|
class?: any;
|
|
267
|
-
} & RecordType> | ComputedRef<
|
|
267
|
+
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
268
268
|
style?: CSSProperties | undefined;
|
|
269
269
|
class?: any;
|
|
270
270
|
} & RecordType>>;
|
|
@@ -293,14 +293,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
293
293
|
clearable: boolean;
|
|
294
294
|
index: number;
|
|
295
295
|
}) => any>> & Partial<Record<string, (_: {
|
|
296
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "
|
|
296
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "modelValue" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
|
|
297
297
|
readonly label: string | ComputedRef<string>;
|
|
298
|
-
readonly modelValue: string | number | boolean | string[] | [string, string] |
|
|
298
|
+
readonly modelValue: string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
299
299
|
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
300
|
-
readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
300
|
+
readonly tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
|
|
301
301
|
style?: CSSProperties | undefined;
|
|
302
302
|
class?: any;
|
|
303
|
-
} & RecordType> | ComputedRef<
|
|
303
|
+
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
304
304
|
style?: CSSProperties | undefined;
|
|
305
305
|
class?: any;
|
|
306
306
|
} & RecordType>>;
|
|
@@ -367,12 +367,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
367
367
|
fieldInstance?: any;
|
|
368
368
|
valueIsReady?: Ref<boolean> | undefined;
|
|
369
369
|
prop: string;
|
|
370
|
-
modelValue: string | number | boolean | string[] | [string, string] |
|
|
370
|
+
modelValue: string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
371
371
|
hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
372
|
-
tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
372
|
+
tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
|
|
373
373
|
style?: CSSProperties | undefined;
|
|
374
374
|
class?: any;
|
|
375
|
-
} & RecordType> | ComputedRef<
|
|
375
|
+
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
376
376
|
style?: CSSProperties | undefined;
|
|
377
377
|
class?: any;
|
|
378
378
|
} & RecordType>>;
|
|
@@ -112,16 +112,18 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
112
112
|
const value = props.column.valueType === "link" ? props.column.linkText || displayValue.value : displayValue.value;
|
|
113
113
|
if (!displayItem.selectValueTypeList.includes(props.column.valueType) && !isEdit.value) {
|
|
114
114
|
if (props.column.formatter && is.isFunction(props.column.formatter)) {
|
|
115
|
-
|
|
115
|
+
const formattedValue = props.column.formatter(value, renderParams.value);
|
|
116
|
+
return handleEmptyValue(formattedValue);
|
|
116
117
|
}
|
|
117
118
|
if (displayComponent.value.format && is.isFunction(displayComponent.value.format)) {
|
|
118
|
-
|
|
119
|
+
const formattedValue = displayComponent.value.format(
|
|
119
120
|
value,
|
|
120
121
|
customFieldProps.value.format || customFieldProps.value.valueFormat
|
|
121
122
|
);
|
|
123
|
+
return handleEmptyValue(formattedValue);
|
|
122
124
|
}
|
|
123
125
|
}
|
|
124
|
-
return value;
|
|
126
|
+
return handleEmptyValue(value);
|
|
125
127
|
});
|
|
126
128
|
const modelValues = vue.computed({
|
|
127
129
|
get() {
|
|
@@ -153,6 +155,17 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
153
155
|
column: { ...props.rest.column, ...props.column }
|
|
154
156
|
}));
|
|
155
157
|
vue.provide(form.TableFormRowInfoInjectionKey, tableRowInfo);
|
|
158
|
+
const injectedColumnsEmptyText = vue.inject(form.TableColumnsEmptyTextInjectionKey, vue.computed(() => "-"));
|
|
159
|
+
const handleEmptyValue = (value) => {
|
|
160
|
+
var _a;
|
|
161
|
+
if (value === null || value === void 0 || value === "") {
|
|
162
|
+
if (props.column.emptyText !== void 0) {
|
|
163
|
+
return props.column.emptyText;
|
|
164
|
+
}
|
|
165
|
+
return (_a = injectedColumnsEmptyText.value) != null ? _a : "-";
|
|
166
|
+
}
|
|
167
|
+
return value;
|
|
168
|
+
};
|
|
156
169
|
const imageUrl = vue.computed(() => {
|
|
157
170
|
const option = formatterValue.value;
|
|
158
171
|
if (option && is.isString(option)) {
|
|
@@ -2,20 +2,12 @@ import { TimeSelectProps } from 'element-plus/es/components/time-select/src/time
|
|
|
2
2
|
import { LooseRequired } from '@vue/shared';
|
|
3
3
|
import { EpPropFinalized, EpPropMergeType, SFCWithInstall, Arrayable } from 'element-plus/es/utils';
|
|
4
4
|
import { DrawerProps, DialogBeforeCloseFn, Translator, FormItemRule, FormItemProp, FormItemContext, FormValidateCallback, FormValidationResult, ElTooltipProps, FormItemProps, ProgressFn, CascaderNode, InputAutoSize, AutocompleteProps, CheckboxGroupProps, ColorPickerProps, DatePickerProps, InputProps, InputNumberProps, RadioGroupProps, RateProps, ISelectProps, SliderProps, SwitchProps, TimePickerDefaultProps, TextProps, ImageProps, LinkProps, TagProps, ProgressProps } from 'element-plus';
|
|
5
|
-
import {
|
|
5
|
+
import { FieldValues, PlusFormProps, Mutable, RecordType, PlusColumn, PlusFormItemProps, PropsItemType, OmitTypes, CascaderProps, PlusRadioProps, PlusDatePickerProps, PlusInputTagProps, OptionsType, RenderTypes, TableValueType, FormItemValueType, FieldValueType, OptionsRow } from 'packages/yc-components';
|
|
6
6
|
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, CSSProperties, Ref, Component, ComputedOptions, MethodOptions, Slot, ComputedRef, DefineComponent, VNode, RendererNode, RendererElement, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase } from 'vue';
|
|
7
7
|
export type { PlusDrawerFormProps } from './src/index.vue';
|
|
8
8
|
export type PlusDrawerFormInstance = InstanceType<typeof PlusDrawerForm>;
|
|
9
9
|
export declare const PlusDrawerForm: {
|
|
10
10
|
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
11
|
-
form: {
|
|
12
|
-
type: PropType<PlusFormProps>;
|
|
13
|
-
default: () => {};
|
|
14
|
-
};
|
|
15
|
-
visible: {
|
|
16
|
-
type: PropType<boolean>;
|
|
17
|
-
default: boolean;
|
|
18
|
-
};
|
|
19
11
|
size: {
|
|
20
12
|
type: PropType<string | number>;
|
|
21
13
|
default: string;
|
|
@@ -24,6 +16,14 @@ export declare const PlusDrawerForm: {
|
|
|
24
16
|
type: PropType<FieldValues>;
|
|
25
17
|
default: () => {};
|
|
26
18
|
};
|
|
19
|
+
form: {
|
|
20
|
+
type: PropType<PlusFormProps>;
|
|
21
|
+
default: () => {};
|
|
22
|
+
};
|
|
23
|
+
visible: {
|
|
24
|
+
type: PropType<boolean>;
|
|
25
|
+
default: boolean;
|
|
26
|
+
};
|
|
27
27
|
hasErrorTip: {
|
|
28
28
|
type: PropType<boolean>;
|
|
29
29
|
default: boolean;
|
|
@@ -52,9 +52,9 @@ export declare const PlusDrawerForm: {
|
|
|
52
52
|
default: () => {};
|
|
53
53
|
};
|
|
54
54
|
}>> & {
|
|
55
|
+
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
55
56
|
onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
|
|
56
57
|
"onUpdate:visible"?: ((visible: boolean) => any) | undefined;
|
|
57
|
-
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
58
58
|
onCancel?: (() => any) | undefined;
|
|
59
59
|
onConfirm?: ((values: FieldValues) => any) | undefined;
|
|
60
60
|
onConfirmError?: ((errors: unknown) => any) | undefined;
|
|
@@ -1087,14 +1087,6 @@ export declare const PlusDrawerForm: {
|
|
|
1087
1087
|
cancel: () => void;
|
|
1088
1088
|
confirmError: (errors: unknown) => void;
|
|
1089
1089
|
}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
1090
|
-
form: {
|
|
1091
|
-
type: PropType<PlusFormProps>;
|
|
1092
|
-
default: () => {};
|
|
1093
|
-
};
|
|
1094
|
-
visible: {
|
|
1095
|
-
type: PropType<boolean>;
|
|
1096
|
-
default: boolean;
|
|
1097
|
-
};
|
|
1098
1090
|
size: {
|
|
1099
1091
|
type: PropType<string | number>;
|
|
1100
1092
|
default: string;
|
|
@@ -1103,6 +1095,14 @@ export declare const PlusDrawerForm: {
|
|
|
1103
1095
|
type: PropType<FieldValues>;
|
|
1104
1096
|
default: () => {};
|
|
1105
1097
|
};
|
|
1098
|
+
form: {
|
|
1099
|
+
type: PropType<PlusFormProps>;
|
|
1100
|
+
default: () => {};
|
|
1101
|
+
};
|
|
1102
|
+
visible: {
|
|
1103
|
+
type: PropType<boolean>;
|
|
1104
|
+
default: boolean;
|
|
1105
|
+
};
|
|
1106
1106
|
hasErrorTip: {
|
|
1107
1107
|
type: PropType<boolean>;
|
|
1108
1108
|
default: boolean;
|
|
@@ -1131,17 +1131,17 @@ export declare const PlusDrawerForm: {
|
|
|
1131
1131
|
default: () => {};
|
|
1132
1132
|
};
|
|
1133
1133
|
}>> & {
|
|
1134
|
+
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
1134
1135
|
onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
|
|
1135
1136
|
"onUpdate:visible"?: ((visible: boolean) => any) | undefined;
|
|
1136
|
-
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
1137
1137
|
onCancel?: (() => any) | undefined;
|
|
1138
1138
|
onConfirm?: ((values: FieldValues) => any) | undefined;
|
|
1139
1139
|
onConfirmError?: ((errors: unknown) => any) | undefined;
|
|
1140
1140
|
}, {
|
|
1141
|
-
form: PlusFormProps;
|
|
1142
|
-
visible: boolean;
|
|
1143
1141
|
size: string | number;
|
|
1144
1142
|
modelValue: FieldValues;
|
|
1143
|
+
form: PlusFormProps;
|
|
1144
|
+
visible: boolean;
|
|
1145
1145
|
hasErrorTip: boolean;
|
|
1146
1146
|
hasFooter: boolean;
|
|
1147
1147
|
confirmLoading: boolean;
|
|
@@ -1159,14 +1159,6 @@ export declare const PlusDrawerForm: {
|
|
|
1159
1159
|
M: {};
|
|
1160
1160
|
Defaults: {};
|
|
1161
1161
|
}, Readonly< ExtractPropTypes<{
|
|
1162
|
-
form: {
|
|
1163
|
-
type: PropType<PlusFormProps>;
|
|
1164
|
-
default: () => {};
|
|
1165
|
-
};
|
|
1166
|
-
visible: {
|
|
1167
|
-
type: PropType<boolean>;
|
|
1168
|
-
default: boolean;
|
|
1169
|
-
};
|
|
1170
1162
|
size: {
|
|
1171
1163
|
type: PropType<string | number>;
|
|
1172
1164
|
default: string;
|
|
@@ -1175,6 +1167,14 @@ export declare const PlusDrawerForm: {
|
|
|
1175
1167
|
type: PropType<FieldValues>;
|
|
1176
1168
|
default: () => {};
|
|
1177
1169
|
};
|
|
1170
|
+
form: {
|
|
1171
|
+
type: PropType<PlusFormProps>;
|
|
1172
|
+
default: () => {};
|
|
1173
|
+
};
|
|
1174
|
+
visible: {
|
|
1175
|
+
type: PropType<boolean>;
|
|
1176
|
+
default: boolean;
|
|
1177
|
+
};
|
|
1178
1178
|
hasErrorTip: {
|
|
1179
1179
|
type: PropType<boolean>;
|
|
1180
1180
|
default: boolean;
|
|
@@ -1203,9 +1203,9 @@ export declare const PlusDrawerForm: {
|
|
|
1203
1203
|
default: () => {};
|
|
1204
1204
|
};
|
|
1205
1205
|
}>> & {
|
|
1206
|
+
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
1206
1207
|
onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
|
|
1207
1208
|
"onUpdate:visible"?: ((visible: boolean) => any) | undefined;
|
|
1208
|
-
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
1209
1209
|
onCancel?: (() => any) | undefined;
|
|
1210
1210
|
onConfirm?: ((values: FieldValues) => any) | undefined;
|
|
1211
1211
|
onConfirmError?: ((errors: unknown) => any) | undefined;
|
|
@@ -2231,10 +2231,10 @@ export declare const PlusDrawerForm: {
|
|
|
2231
2231
|
readonly scrollToError: boolean;
|
|
2232
2232
|
}>>;
|
|
2233
2233
|
}, {}, {}, {}, {
|
|
2234
|
-
form: PlusFormProps;
|
|
2235
|
-
visible: boolean;
|
|
2236
2234
|
size: string | number;
|
|
2237
2235
|
modelValue: FieldValues;
|
|
2236
|
+
form: PlusFormProps;
|
|
2237
|
+
visible: boolean;
|
|
2238
2238
|
hasErrorTip: boolean;
|
|
2239
2239
|
hasFooter: boolean;
|
|
2240
2240
|
confirmLoading: boolean;
|
|
@@ -2249,14 +2249,6 @@ export declare const PlusDrawerForm: {
|
|
|
2249
2249
|
__isTeleport?: undefined;
|
|
2250
2250
|
__isSuspense?: undefined;
|
|
2251
2251
|
} & ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
2252
|
-
form: {
|
|
2253
|
-
type: PropType<PlusFormProps>;
|
|
2254
|
-
default: () => {};
|
|
2255
|
-
};
|
|
2256
|
-
visible: {
|
|
2257
|
-
type: PropType<boolean>;
|
|
2258
|
-
default: boolean;
|
|
2259
|
-
};
|
|
2260
2252
|
size: {
|
|
2261
2253
|
type: PropType<string | number>;
|
|
2262
2254
|
default: string;
|
|
@@ -2265,6 +2257,14 @@ export declare const PlusDrawerForm: {
|
|
|
2265
2257
|
type: PropType<FieldValues>;
|
|
2266
2258
|
default: () => {};
|
|
2267
2259
|
};
|
|
2260
|
+
form: {
|
|
2261
|
+
type: PropType<PlusFormProps>;
|
|
2262
|
+
default: () => {};
|
|
2263
|
+
};
|
|
2264
|
+
visible: {
|
|
2265
|
+
type: PropType<boolean>;
|
|
2266
|
+
default: boolean;
|
|
2267
|
+
};
|
|
2268
2268
|
hasErrorTip: {
|
|
2269
2269
|
type: PropType<boolean>;
|
|
2270
2270
|
default: boolean;
|
|
@@ -2293,9 +2293,9 @@ export declare const PlusDrawerForm: {
|
|
|
2293
2293
|
default: () => {};
|
|
2294
2294
|
};
|
|
2295
2295
|
}>> & {
|
|
2296
|
+
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
2296
2297
|
onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
|
|
2297
2298
|
"onUpdate:visible"?: ((visible: boolean) => any) | undefined;
|
|
2298
|
-
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
2299
2299
|
onCancel?: (() => any) | undefined;
|
|
2300
2300
|
onConfirm?: ((values: FieldValues) => any) | undefined;
|
|
2301
2301
|
onConfirmError?: ((errors: unknown) => any) | undefined;
|
|
@@ -3328,10 +3328,10 @@ export declare const PlusDrawerForm: {
|
|
|
3328
3328
|
cancel: () => void;
|
|
3329
3329
|
confirmError: (errors: unknown) => void;
|
|
3330
3330
|
}, string, {
|
|
3331
|
-
form: PlusFormProps;
|
|
3332
|
-
visible: boolean;
|
|
3333
3331
|
size: string | number;
|
|
3334
3332
|
modelValue: FieldValues;
|
|
3333
|
+
form: PlusFormProps;
|
|
3334
|
+
visible: boolean;
|
|
3335
3335
|
hasErrorTip: boolean;
|
|
3336
3336
|
hasFooter: boolean;
|
|
3337
3337
|
confirmLoading: boolean;
|
|
@@ -3343,14 +3343,14 @@ export declare const PlusDrawerForm: {
|
|
|
3343
3343
|
} & RecordType>;
|
|
3344
3344
|
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
3345
3345
|
$slots: Partial<Record<NonNullable<string | number>, (_: {
|
|
3346
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "
|
|
3346
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "modelValue" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
|
|
3347
3347
|
readonly label: string | ComputedRef<string>;
|
|
3348
|
-
readonly modelValue: string | number | boolean | string[] | [string, string] |
|
|
3348
|
+
readonly modelValue: string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
3349
3349
|
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
3350
|
-
readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
3350
|
+
readonly tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
|
|
3351
3351
|
style?: CSSProperties | undefined;
|
|
3352
3352
|
class?: any;
|
|
3353
|
-
} & RecordType> | ComputedRef<
|
|
3353
|
+
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
3354
3354
|
style?: CSSProperties | undefined;
|
|
3355
3355
|
class?: any;
|
|
3356
3356
|
} & RecordType>>;
|
|
@@ -3417,12 +3417,12 @@ export declare const PlusDrawerForm: {
|
|
|
3417
3417
|
fieldInstance?: any;
|
|
3418
3418
|
valueIsReady?: Ref<boolean> | undefined;
|
|
3419
3419
|
prop: string;
|
|
3420
|
-
modelValue: string | number | boolean | string[] | [string, string] |
|
|
3420
|
+
modelValue: string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
3421
3421
|
hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
3422
|
-
tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
3422
|
+
tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
|
|
3423
3423
|
style?: CSSProperties | undefined;
|
|
3424
3424
|
class?: any;
|
|
3425
|
-
} & RecordType> | ComputedRef<
|
|
3425
|
+
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
3426
3426
|
style?: CSSProperties | undefined;
|
|
3427
3427
|
class?: any;
|
|
3428
3428
|
} & RecordType>>;
|
|
@@ -1087,17 +1087,17 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1087
1087
|
drawer: () => {};
|
|
1088
1088
|
form: () => {};
|
|
1089
1089
|
}>>> & {
|
|
1090
|
+
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
1090
1091
|
onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
|
|
1091
1092
|
"onUpdate:visible"?: ((visible: boolean) => any) | undefined;
|
|
1092
|
-
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
1093
1093
|
onCancel?: (() => any) | undefined;
|
|
1094
1094
|
onConfirm?: ((values: FieldValues) => any) | undefined;
|
|
1095
1095
|
onConfirmError?: ((errors: unknown) => any) | undefined;
|
|
1096
1096
|
}, {
|
|
1097
|
-
form: PlusFormProps;
|
|
1098
|
-
visible: boolean;
|
|
1099
1097
|
size: string | number;
|
|
1100
1098
|
modelValue: FieldValues;
|
|
1099
|
+
form: PlusFormProps;
|
|
1100
|
+
visible: boolean;
|
|
1101
1101
|
hasErrorTip: boolean;
|
|
1102
1102
|
hasFooter: boolean;
|
|
1103
1103
|
confirmLoading: boolean;
|
|
@@ -1108,14 +1108,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1108
1108
|
class?: any;
|
|
1109
1109
|
} & RecordType>;
|
|
1110
1110
|
}, {}>, Partial<Record<NonNullable<string | number>, (_: {
|
|
1111
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "
|
|
1111
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "modelValue" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
|
|
1112
1112
|
readonly label: string | ComputedRef<string>;
|
|
1113
|
-
readonly modelValue: string | number | boolean | string[] | [string, string] |
|
|
1113
|
+
readonly modelValue: string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
1114
1114
|
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
1115
|
-
readonly tooltip: string | Partial<Mutable< ElTooltipProps> & {
|
|
1115
|
+
readonly tooltip: string | ComputedRef<string> | Partial<Mutable< ElTooltipProps> & {
|
|
1116
1116
|
style?: CSSProperties | undefined;
|
|
1117
1117
|
class?: any;
|
|
1118
|
-
} & RecordType> | ComputedRef<
|
|
1118
|
+
} & RecordType> | ComputedRef<Partial<Mutable< ElTooltipProps> & {
|
|
1119
1119
|
style?: CSSProperties | undefined;
|
|
1120
1120
|
class?: any;
|
|
1121
1121
|
} & RecordType>>;
|
|
@@ -1182,12 +1182,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1182
1182
|
fieldInstance?: any;
|
|
1183
1183
|
valueIsReady?: Ref<boolean> | undefined;
|
|
1184
1184
|
prop: string;
|
|
1185
|
-
modelValue: string | number | boolean | string[] | [string, string] |
|
|
1185
|
+
modelValue: string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
1186
1186
|
hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
1187
|
-
tooltip: string | Partial<Mutable< ElTooltipProps> & {
|
|
1187
|
+
tooltip: string | ComputedRef<string> | Partial<Mutable< ElTooltipProps> & {
|
|
1188
1188
|
style?: CSSProperties | undefined;
|
|
1189
1189
|
class?: any;
|
|
1190
|
-
} & RecordType> | ComputedRef<
|
|
1190
|
+
} & RecordType> | ComputedRef<Partial<Mutable< ElTooltipProps> & {
|
|
1191
1191
|
style?: CSSProperties | undefined;
|
|
1192
1192
|
class?: any;
|
|
1193
1193
|
} & RecordType>>;
|