yc-pro-components 0.0.7 → 0.0.9
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 +138 -138
- package/es/components/form/src/form-content.vue.d.ts +29 -29
- package/es/components/form/src/index.vue.d.ts +25 -25
- package/es/components/form-item/index.d.ts +128 -128
- package/es/components/form-item/src/index.vue.d.ts +19 -19
- 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 +1035 -1035
- package/es/components/page/src/index.vue.d.ts +337 -337
- 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 +426 -426
- package/es/components/search/src/index.vue.d.ts +125 -125
- 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/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-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 +735 -735
- package/es/components/yc-plus-tree/src/index.vue.d.ts +1 -1
- 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-status-dialog/src/index.vue.mjs +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 +1 -1
- package/index.css +8 -7
- package/index.js +2 -2
- package/index.min.css +1 -1
- package/index.min.js +2 -2
- package/index.min.mjs +2 -2
- package/index.mjs +2 -2
- 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 +138 -138
- package/lib/components/form/src/form-content.vue.d.ts +29 -29
- package/lib/components/form/src/index.vue.d.ts +25 -25
- package/lib/components/form-item/index.d.ts +128 -128
- package/lib/components/form-item/src/index.vue.d.ts +19 -19
- 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 +1035 -1035
- package/lib/components/page/src/index.vue.d.ts +337 -337
- 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 +426 -426
- package/lib/components/search/src/index.vue.d.ts +125 -125
- 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/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-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 +735 -735
- package/lib/components/yc-plus-tree/src/index.vue.d.ts +1 -1
- 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-status-dialog/src/index.vue.js +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 +1 -1
- package/locale/en.js +1 -1
- package/locale/en.min.js +1 -1
- package/locale/en.min.mjs +1 -1
- package/locale/en.mjs +1 -1
- package/locale/ja.js +1 -1
- package/locale/ja.min.js +1 -1
- package/locale/ja.min.mjs +1 -1
- package/locale/ja.mjs +1 -1
- package/locale/ko.js +1 -1
- package/locale/ko.min.js +1 -1
- package/locale/ko.min.mjs +1 -1
- package/locale/ko.mjs +1 -1
- package/locale/zh-cn.js +1 -1
- package/locale/zh-cn.min.js +1 -1
- package/locale/zh-cn.min.mjs +1 -1
- package/locale/zh-cn.mjs +1 -1
- package/locale/zh-tw.js +1 -1
- package/locale/zh-tw.min.js +1 -1
- package/locale/zh-tw.min.mjs +1 -1
- package/locale/zh-tw.mjs +1 -1
- package/package.json +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/plus-yc-status-dialog.css +1 -1
- package/theme-chalk/src/yc-status-dialog.scss +1 -0
|
@@ -3,7 +3,7 @@ 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 { RowProps, ColProps, 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
|
|
|
@@ -57,20 +57,20 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
57
57
|
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
58
58
|
onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
|
|
59
59
|
}, {
|
|
60
|
-
columns: PlusColumn[];
|
|
61
60
|
modelValue: FieldValues;
|
|
61
|
+
collapseDuration: number;
|
|
62
|
+
collapseTransition: boolean;
|
|
63
|
+
columns: PlusColumn[];
|
|
62
64
|
hasLabel: boolean;
|
|
63
|
-
|
|
64
|
-
colProps: Partial< Mutable<ColProps> & {
|
|
65
|
+
rowProps: Partial< Mutable<RowProps> & {
|
|
65
66
|
style?: CSSProperties | undefined;
|
|
66
67
|
class?: any;
|
|
67
68
|
} & RecordType>;
|
|
68
|
-
|
|
69
|
-
collapseTransition: boolean;
|
|
70
|
-
rowProps: Partial< Mutable<RowProps> & {
|
|
69
|
+
colProps: Partial< Mutable<ColProps> & {
|
|
71
70
|
style?: CSSProperties | undefined;
|
|
72
71
|
class?: any;
|
|
73
72
|
} & RecordType>;
|
|
73
|
+
clearable: boolean;
|
|
74
74
|
}, {}>, Partial<Record<string, (_: {
|
|
75
75
|
[x: string]: any;
|
|
76
76
|
label?: string | ComputedRef<string> | undefined;
|
|
@@ -94,10 +94,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
94
94
|
value: string | number;
|
|
95
95
|
row: RecordType;
|
|
96
96
|
}) => OptionsRow<undefined>) | undefined;
|
|
97
|
-
tooltip?: string | Partial< Mutable<ElTooltipProps> & {
|
|
97
|
+
tooltip?: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
|
|
98
98
|
style?: CSSProperties | undefined;
|
|
99
99
|
class?: any;
|
|
100
|
-
} & RecordType> | ComputedRef<
|
|
100
|
+
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
101
101
|
style?: CSSProperties | undefined;
|
|
102
102
|
class?: any;
|
|
103
103
|
} & RecordType>> | undefined;
|
|
@@ -159,7 +159,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
159
159
|
};
|
|
160
160
|
rows: number;
|
|
161
161
|
autocomplete: string;
|
|
162
|
-
type: "" | "number" | "default" | "
|
|
162
|
+
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "checkbox" | "radio" | "color" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "datetimerange" | "daterange" | "monthrange" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
|
|
163
163
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
164
164
|
step: string | number;
|
|
165
165
|
format: string | ProgressFn | undefined;
|
|
@@ -191,14 +191,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
191
191
|
label?: string | undefined;
|
|
192
192
|
}) => RenderTypes) | undefined;
|
|
193
193
|
}) => any>> & Partial<Record<string, (_: {
|
|
194
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "
|
|
194
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "modelValue" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap">> & {
|
|
195
195
|
readonly label: string | ComputedRef<string>;
|
|
196
|
-
readonly modelValue: string | number | boolean |
|
|
196
|
+
readonly modelValue: string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
197
197
|
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
198
|
-
readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
198
|
+
readonly tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
|
|
199
199
|
style?: CSSProperties | undefined;
|
|
200
200
|
class?: any;
|
|
201
|
-
} & RecordType> | ComputedRef<
|
|
201
|
+
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
202
202
|
style?: CSSProperties | undefined;
|
|
203
203
|
class?: any;
|
|
204
204
|
} & RecordType>>;
|
|
@@ -220,7 +220,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
220
220
|
};
|
|
221
221
|
rows: number;
|
|
222
222
|
autocomplete: string;
|
|
223
|
-
type: "" | "number" | "default" | "
|
|
223
|
+
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "checkbox" | "radio" | "color" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "datetimerange" | "daterange" | "monthrange" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
|
|
224
224
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
225
225
|
step: string | number;
|
|
226
226
|
format: string | ProgressFn | undefined;
|
|
@@ -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 |
|
|
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>>;
|
|
@@ -287,14 +287,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
287
287
|
clearable: boolean;
|
|
288
288
|
index: number;
|
|
289
289
|
}) => any>> & Partial<Record<string, (_: {
|
|
290
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "
|
|
290
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "modelValue" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap">> & {
|
|
291
291
|
readonly label: string | ComputedRef<string>;
|
|
292
|
-
readonly modelValue: string | number | boolean |
|
|
292
|
+
readonly modelValue: string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
293
293
|
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
294
|
-
readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
294
|
+
readonly tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
|
|
295
295
|
style?: CSSProperties | undefined;
|
|
296
296
|
class?: any;
|
|
297
|
-
} & RecordType> | ComputedRef<
|
|
297
|
+
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
298
298
|
style?: CSSProperties | undefined;
|
|
299
299
|
class?: any;
|
|
300
300
|
} & RecordType>>;
|
|
@@ -316,7 +316,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
316
316
|
};
|
|
317
317
|
rows: number;
|
|
318
318
|
autocomplete: string;
|
|
319
|
-
type: "" | "number" | "default" | "
|
|
319
|
+
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "checkbox" | "radio" | "color" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "datetimerange" | "daterange" | "monthrange" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
|
|
320
320
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
321
321
|
step: string | number;
|
|
322
322
|
format: string | ProgressFn | undefined;
|
|
@@ -355,12 +355,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
355
355
|
fieldInstance?: any;
|
|
356
356
|
valueIsReady?: Ref<boolean> | undefined;
|
|
357
357
|
prop: string;
|
|
358
|
-
modelValue: string | number | boolean |
|
|
358
|
+
modelValue: string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
359
359
|
hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
360
|
-
tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
360
|
+
tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
|
|
361
361
|
style?: CSSProperties | undefined;
|
|
362
362
|
class?: any;
|
|
363
|
-
} & RecordType> | ComputedRef<
|
|
363
|
+
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
364
364
|
style?: CSSProperties | undefined;
|
|
365
365
|
class?: any;
|
|
366
366
|
} & RecordType>>;
|
|
@@ -405,10 +405,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
405
405
|
value: string | number;
|
|
406
406
|
row: RecordType;
|
|
407
407
|
}) => OptionsRow<undefined>) | undefined;
|
|
408
|
-
tooltip?: string | Partial< Mutable<ElTooltipProps> & {
|
|
408
|
+
tooltip?: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
|
|
409
409
|
style?: CSSProperties | undefined;
|
|
410
410
|
class?: any;
|
|
411
|
-
} & RecordType> | ComputedRef<
|
|
411
|
+
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
412
412
|
style?: CSSProperties | undefined;
|
|
413
413
|
class?: any;
|
|
414
414
|
} & RecordType>> | undefined;
|
|
@@ -470,7 +470,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
470
470
|
};
|
|
471
471
|
rows: number;
|
|
472
472
|
autocomplete: string;
|
|
473
|
-
type: "" | "number" | "default" | "
|
|
473
|
+
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "checkbox" | "radio" | "color" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "datetimerange" | "daterange" | "monthrange" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
|
|
474
474
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
475
475
|
step: string | number;
|
|
476
476
|
format: string | ProgressFn | undefined;
|
|
@@ -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, RowProps, ColProps, 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';
|
|
@@ -355,38 +355,38 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
355
355
|
onValidate?: ((...args: any[]) => any) | undefined;
|
|
356
356
|
onSubmitError?: ((errors: unknown) => any) | undefined;
|
|
357
357
|
}, {
|
|
358
|
+
modelValue: FieldValues;
|
|
359
|
+
collapseDuration: number;
|
|
360
|
+
collapseTransition: boolean;
|
|
358
361
|
columns: PlusColumn[];
|
|
359
362
|
group: false | PlusFormGroupRow[];
|
|
360
|
-
modelValue: FieldValues;
|
|
361
363
|
rules: Partial<Record<string, Arrayable<FormItemRule>>>;
|
|
362
364
|
labelPosition: "top" | "right" | "left";
|
|
363
365
|
labelWidth: string | number;
|
|
364
366
|
labelSuffix: string;
|
|
365
367
|
hasLabel: boolean;
|
|
366
|
-
|
|
367
|
-
|
|
368
|
+
defaultValues: FieldValues;
|
|
369
|
+
rowProps: Partial< Mutable<RowProps> & {
|
|
368
370
|
style?: CSSProperties | undefined;
|
|
369
371
|
class?: any;
|
|
370
372
|
} & RecordType>;
|
|
371
|
-
|
|
372
|
-
collapseTransition: boolean;
|
|
373
|
-
rowProps: Partial< Mutable<RowProps> & {
|
|
373
|
+
colProps: Partial< Mutable<ColProps> & {
|
|
374
374
|
style?: CSSProperties | undefined;
|
|
375
375
|
class?: any;
|
|
376
376
|
} & RecordType>;
|
|
377
|
-
defaultValues: FieldValues;
|
|
378
377
|
hasErrorTip: boolean;
|
|
379
378
|
hasFooter: boolean;
|
|
380
379
|
hasReset: boolean;
|
|
381
380
|
submitText: string;
|
|
382
381
|
resetText: string;
|
|
383
382
|
submitLoading: boolean;
|
|
384
|
-
footerAlign: "
|
|
383
|
+
footerAlign: "center" | "right" | "left";
|
|
385
384
|
cardProps: Partial< Mutable<CardProps> & {
|
|
386
385
|
style?: CSSProperties | undefined;
|
|
387
386
|
class?: any;
|
|
388
387
|
} & RecordType>;
|
|
389
388
|
prevent: boolean;
|
|
389
|
+
clearable: boolean;
|
|
390
390
|
}, {}>, Partial<Record<string, (_: {
|
|
391
391
|
index: number;
|
|
392
392
|
title: string | ComputedRef<string>;
|
|
@@ -399,14 +399,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
399
399
|
hideInGroup?: boolean | ComputedRef<boolean> | undefined;
|
|
400
400
|
columns?: PlusColumn[] | undefined;
|
|
401
401
|
}) => any>> & Partial<Record<NonNullable<string | number>, (_: {
|
|
402
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "
|
|
402
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "modelValue" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap">> & {
|
|
403
403
|
readonly label: string | ComputedRef<string>;
|
|
404
|
-
readonly modelValue: string | number | boolean |
|
|
404
|
+
readonly modelValue: string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
405
405
|
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
406
|
-
readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
406
|
+
readonly tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
|
|
407
407
|
style?: CSSProperties | undefined;
|
|
408
408
|
class?: any;
|
|
409
|
-
} & RecordType> | ComputedRef<
|
|
409
|
+
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
410
410
|
style?: CSSProperties | undefined;
|
|
411
411
|
class?: any;
|
|
412
412
|
} & RecordType>>;
|
|
@@ -428,7 +428,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
428
428
|
};
|
|
429
429
|
rows: number;
|
|
430
430
|
autocomplete: string;
|
|
431
|
-
type: "" | "number" | "default" | "
|
|
431
|
+
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "checkbox" | "radio" | "color" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "datetimerange" | "daterange" | "monthrange" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
|
|
432
432
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
433
433
|
step: string | number;
|
|
434
434
|
format: string | ProgressFn | undefined;
|
|
@@ -467,12 +467,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
467
467
|
fieldInstance?: any;
|
|
468
468
|
valueIsReady?: Ref<boolean> | undefined;
|
|
469
469
|
prop: string;
|
|
470
|
-
modelValue: string | number | boolean |
|
|
470
|
+
modelValue: string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
471
471
|
hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
472
|
-
tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
472
|
+
tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
|
|
473
473
|
style?: CSSProperties | undefined;
|
|
474
474
|
class?: any;
|
|
475
|
-
} & RecordType> | ComputedRef<
|
|
475
|
+
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
476
476
|
style?: CSSProperties | undefined;
|
|
477
477
|
class?: any;
|
|
478
478
|
} & RecordType>>;
|
|
@@ -495,14 +495,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
495
495
|
clearable: boolean;
|
|
496
496
|
index: number;
|
|
497
497
|
}) => any>> & Partial<Record<NonNullable<string | number>, (_: {
|
|
498
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "
|
|
498
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "modelValue" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap">> & {
|
|
499
499
|
readonly label: string | ComputedRef<string>;
|
|
500
|
-
readonly modelValue: string | number | boolean |
|
|
500
|
+
readonly modelValue: string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
501
501
|
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
502
|
-
readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
502
|
+
readonly tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
|
|
503
503
|
style?: CSSProperties | undefined;
|
|
504
504
|
class?: any;
|
|
505
|
-
} & RecordType> | ComputedRef<
|
|
505
|
+
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
506
506
|
style?: CSSProperties | undefined;
|
|
507
507
|
class?: any;
|
|
508
508
|
} & RecordType>>;
|
|
@@ -524,7 +524,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
524
524
|
};
|
|
525
525
|
rows: number;
|
|
526
526
|
autocomplete: string;
|
|
527
|
-
type: "" | "number" | "default" | "
|
|
527
|
+
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "checkbox" | "radio" | "color" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "datetimerange" | "daterange" | "monthrange" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
|
|
528
528
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
529
529
|
step: string | number;
|
|
530
530
|
format: string | ProgressFn | undefined;
|
|
@@ -563,12 +563,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
563
563
|
fieldInstance?: any;
|
|
564
564
|
valueIsReady?: Ref<boolean> | undefined;
|
|
565
565
|
prop: string;
|
|
566
|
-
modelValue: string | number | boolean |
|
|
566
|
+
modelValue: string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
567
567
|
hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
568
|
-
tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
568
|
+
tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
|
|
569
569
|
style?: CSSProperties | undefined;
|
|
570
570
|
class?: any;
|
|
571
|
-
} & RecordType> | ComputedRef<
|
|
571
|
+
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
572
572
|
style?: CSSProperties | undefined;
|
|
573
573
|
class?: any;
|
|
574
574
|
} & RecordType>>;
|