yc-pro-components 0.0.81 → 0.0.82
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 +38 -38
- package/es/components/check-card/src/index.vue.d.ts +2 -2
- package/es/components/check-card-group/index.d.ts +39 -39
- package/es/components/check-card-group/src/index.vue.d.ts +2 -2
- package/es/components/date-picker/index.d.ts +29 -29
- package/es/components/date-picker/src/index.vue.d.ts +21 -21
- package/es/components/dialog/index.d.ts +57 -57
- package/es/components/dialog/src/index.vue.d.ts +5 -5
- package/es/components/dialog-form/index.d.ts +18 -18
- package/es/components/dialog-form/src/index.vue.d.ts +12 -12
- package/es/components/display-item/index.d.ts +50 -50
- package/es/components/display-item/src/index.vue.d.ts +31 -31
- package/es/components/drawer-form/index.d.ts +121 -121
- package/es/components/drawer-form/src/index.vue.d.ts +33 -33
- package/es/components/form/index.d.ts +47 -47
- package/es/components/form/src/form-content.vue.d.ts +39 -39
- package/es/components/form/src/index.vue.d.ts +22 -22
- package/es/components/form-item/index.d.ts +62 -62
- 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 +15 -15
- package/es/components/input-tag/src/index.vue.d.ts +3 -3
- 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 +347 -347
- package/es/components/page/src/index.vue.d.ts +121 -121
- package/es/components/pagination/index.d.ts +38 -38
- package/es/components/pagination/src/index.vue.d.ts +2 -2
- package/es/components/popover/index.d.ts +42 -42
- package/es/components/popover/src/index.vue.d.ts +3 -3
- package/es/components/radio/index.d.ts +33 -33
- package/es/components/radio/src/index.vue.d.ts +25 -25
- package/es/components/render/index.d.ts +6 -6
- package/es/components/render/src/index.vue.d.ts +2 -2
- package/es/components/search/index.d.ts +156 -156
- package/es/components/search/src/index.vue.d.ts +53 -53
- 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/src/table-column.vue.d.ts +46 -46
- package/es/components/yc-card/index.d.ts +19 -19
- package/es/components/yc-card/src/index.vue.d.ts +1 -1
- 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 +5 -5
- package/es/components/yc-more-actions/index.d.ts +36 -36
- package/es/components/yc-more-actions/src/index.vue.d.ts +2 -2
- package/es/components/yc-plus-page/src/header-filter-cell.vue.d.ts +3 -3
- package/es/components/yc-plus-page/src/header-filter-cell.vue.mjs +1 -1
- package/es/components/yc-plus-page/src/header-filter-cell.vue2.mjs +17 -0
- package/es/components/yc-plus-page/src/index.vue.d.ts +236 -236
- 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 +5 -5
- package/es/components/yc-svg-icon/src/index.vue.d.ts +1 -1
- package/es/hooks/usePlusFormReset.d.ts +345 -345
- package/es/index.css +11 -11
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/yc-components/version.d.ts +1 -1
- package/index.js +20 -3
- package/index.min.css +1 -1
- package/index.min.js +12 -12
- package/index.min.mjs +12 -12
- package/index.mjs +20 -3
- package/lib/components/check-card/index.d.ts +38 -38
- package/lib/components/check-card/src/index.vue.d.ts +2 -2
- package/lib/components/check-card-group/index.d.ts +39 -39
- package/lib/components/check-card-group/src/index.vue.d.ts +2 -2
- package/lib/components/date-picker/index.d.ts +29 -29
- package/lib/components/date-picker/src/index.vue.d.ts +21 -21
- package/lib/components/dialog/index.d.ts +57 -57
- package/lib/components/dialog/src/index.vue.d.ts +5 -5
- package/lib/components/dialog-form/index.d.ts +18 -18
- package/lib/components/dialog-form/src/index.vue.d.ts +12 -12
- package/lib/components/display-item/index.d.ts +50 -50
- package/lib/components/display-item/src/index.vue.d.ts +31 -31
- package/lib/components/drawer-form/index.d.ts +121 -121
- package/lib/components/drawer-form/src/index.vue.d.ts +33 -33
- package/lib/components/form/index.d.ts +47 -47
- package/lib/components/form/src/form-content.vue.d.ts +39 -39
- package/lib/components/form/src/index.vue.d.ts +22 -22
- package/lib/components/form-item/index.d.ts +62 -62
- 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 +15 -15
- package/lib/components/input-tag/src/index.vue.d.ts +3 -3
- 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 +347 -347
- package/lib/components/page/src/index.vue.d.ts +121 -121
- package/lib/components/pagination/index.d.ts +38 -38
- package/lib/components/pagination/src/index.vue.d.ts +2 -2
- package/lib/components/popover/index.d.ts +42 -42
- package/lib/components/popover/src/index.vue.d.ts +3 -3
- package/lib/components/radio/index.d.ts +33 -33
- package/lib/components/radio/src/index.vue.d.ts +25 -25
- package/lib/components/render/index.d.ts +6 -6
- package/lib/components/render/src/index.vue.d.ts +2 -2
- package/lib/components/search/index.d.ts +156 -156
- package/lib/components/search/src/index.vue.d.ts +53 -53
- 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/src/table-column.vue.d.ts +46 -46
- package/lib/components/yc-card/index.d.ts +19 -19
- package/lib/components/yc-card/src/index.vue.d.ts +1 -1
- 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 +5 -5
- package/lib/components/yc-more-actions/index.d.ts +36 -36
- package/lib/components/yc-more-actions/src/index.vue.d.ts +2 -2
- package/lib/components/yc-plus-page/src/header-filter-cell.vue.d.ts +3 -3
- package/lib/components/yc-plus-page/src/header-filter-cell.vue.js +1 -1
- package/lib/components/yc-plus-page/src/header-filter-cell.vue2.js +17 -0
- package/lib/components/yc-plus-page/src/index.vue.d.ts +236 -236
- 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 +5 -5
- package/lib/components/yc-svg-icon/src/index.vue.d.ts +1 -1
- package/lib/hooks/usePlusFormReset.d.ts +345 -345
- package/lib/index.css +10 -10
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/yc-components/version.d.ts +1 -1
- package/locale/en.js +1 -1
- package/locale/en.min.js +1 -1
- package/locale/en.min.mjs +1 -1
- package/locale/en.mjs +1 -1
- package/locale/ja.js +1 -1
- package/locale/ja.min.js +1 -1
- package/locale/ja.min.mjs +1 -1
- package/locale/ja.mjs +1 -1
- package/locale/ko.js +1 -1
- package/locale/ko.min.js +1 -1
- package/locale/ko.min.mjs +1 -1
- package/locale/ko.mjs +1 -1
- package/locale/zh-cn.js +1 -1
- package/locale/zh-cn.min.js +1 -1
- package/locale/zh-cn.min.mjs +1 -1
- package/locale/zh-cn.mjs +1 -1
- package/locale/zh-tw.js +1 -1
- package/locale/zh-tw.min.js +1 -1
- package/locale/zh-tw.min.mjs +1 -1
- package/locale/zh-tw.mjs +1 -1
- package/package.json +1 -1
|
@@ -76,42 +76,42 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
76
76
|
readonly modalFade: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
77
77
|
readonly resizable: boolean;
|
|
78
78
|
}> & Omit<{
|
|
79
|
-
readonly title: string;
|
|
80
|
-
readonly resizable: boolean;
|
|
81
|
-
readonly appendTo: EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | ((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement))[], unknown, unknown>) | ((new (...args: any[]) => string | HTMLElement) | (() => EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | ((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement))[], unknown, unknown>))[], unknown, unknown>;
|
|
82
79
|
readonly size: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
83
|
-
readonly
|
|
84
|
-
readonly modelValue: boolean;
|
|
85
|
-
readonly ariaLevel: string;
|
|
86
|
-
readonly fullscreen: boolean;
|
|
87
|
-
readonly direction: EpPropMergeType<StringConstructor, "ltr" | "rtl" | "ttb" | "btt", unknown>;
|
|
88
|
-
readonly closeOnPressEscape: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
89
|
-
readonly showClose: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
80
|
+
readonly title: string;
|
|
90
81
|
readonly appendToBody: boolean;
|
|
82
|
+
readonly appendTo: EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | ((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement))[], unknown, unknown>) | ((new (...args: any[]) => string | HTMLElement) | (() => EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | ((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement))[], unknown, unknown>))[], unknown, unknown>;
|
|
91
83
|
readonly destroyOnClose: boolean;
|
|
92
84
|
readonly closeOnClickModal: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
85
|
+
readonly closeOnPressEscape: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
93
86
|
readonly lockScroll: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
94
87
|
readonly modal: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
95
88
|
readonly modalPenetrable: boolean;
|
|
96
89
|
readonly openDelay: number;
|
|
97
90
|
readonly closeDelay: number;
|
|
91
|
+
readonly modelValue: boolean;
|
|
98
92
|
readonly trapFocus: boolean;
|
|
99
93
|
readonly headerAriaLevel: string;
|
|
94
|
+
readonly center: boolean;
|
|
95
|
+
readonly fullscreen: boolean;
|
|
96
|
+
readonly showClose: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
97
|
+
readonly ariaLevel: string;
|
|
98
|
+
readonly resizable: boolean;
|
|
99
|
+
readonly direction: EpPropMergeType<StringConstructor, "ltr" | "rtl" | "ttb" | "btt", unknown>;
|
|
100
100
|
readonly withHeader: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
101
101
|
readonly modalFade: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
102
|
-
readonly transition?: EpPropMergeType<(new (...args: any[]) => string | TransitionProps) | (() => DialogTransition) | ((new (...args: any[]) => string | TransitionProps) | (() => DialogTransition))[], unknown, unknown> | undefined;
|
|
103
102
|
readonly width?: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined;
|
|
104
|
-
readonly
|
|
103
|
+
readonly beforeClose?: DialogBeforeCloseFn | undefined;
|
|
105
104
|
readonly top?: string | undefined;
|
|
106
|
-
readonly
|
|
107
|
-
readonly overflow?: EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
105
|
+
readonly modalClass?: string | undefined;
|
|
108
106
|
readonly headerClass?: string | undefined;
|
|
109
107
|
readonly bodyClass?: string | undefined;
|
|
110
108
|
readonly footerClass?: string | undefined;
|
|
111
|
-
readonly
|
|
112
|
-
readonly
|
|
109
|
+
readonly zIndex?: number | undefined;
|
|
110
|
+
readonly transition?: EpPropMergeType<(new (...args: any[]) => string | TransitionProps) | (() => DialogTransition) | ((new (...args: any[]) => string | TransitionProps) | (() => DialogTransition))[], unknown, unknown> | undefined;
|
|
113
111
|
readonly alignCenter?: EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
114
112
|
readonly closeIcon?: EpPropMergeType<(new (...args: any[]) => (string | Component<any, any, any, ComputedOptions, MethodOptions, {}, any>) & {}) | (() => string | Component<any, any, any, ComputedOptions, MethodOptions, {}, any>) | ((new (...args: any[]) => (string | Component<any, any, any, ComputedOptions, MethodOptions, {}, any>) & {}) | (() => string | Component<any, any, any, ComputedOptions, MethodOptions, {}, any>))[], unknown, unknown> | undefined;
|
|
113
|
+
readonly draggable?: EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
114
|
+
readonly overflow?: EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
115
115
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
116
116
|
onResize?: ((evt: MouseEvent, size: number) => any) | undefined;
|
|
117
117
|
onClose?: (() => any) | undefined;
|
|
@@ -195,7 +195,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
195
195
|
onCloseAutoFocus?: (() => any) | undefined;
|
|
196
196
|
"onResize-start"?: ((evt: MouseEvent, size: number) => any) | undefined;
|
|
197
197
|
"onResize-end"?: ((evt: MouseEvent, size: number) => any) | undefined;
|
|
198
|
-
}, "
|
|
198
|
+
}, "size" | "title" | "appendToBody" | "appendTo" | "destroyOnClose" | "closeOnClickModal" | "closeOnPressEscape" | "lockScroll" | "modal" | "modalPenetrable" | "openDelay" | "closeDelay" | "modelValue" | "trapFocus" | "headerAriaLevel" | "transition" | "center" | "alignCenter" | "draggable" | "overflow" | "fullscreen" | "showClose" | "ariaLevel" | "resizable" | "direction" | "withHeader" | "modalFade">;
|
|
199
199
|
$attrs: {
|
|
200
200
|
[x: string]: unknown;
|
|
201
201
|
};
|
|
@@ -207,7 +207,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
207
207
|
}>;
|
|
208
208
|
$root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
|
|
209
209
|
$parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
|
|
210
|
-
$emit: ((event: "
|
|
210
|
+
$emit: ((event: "update:modelValue", value: boolean) => void) & ((event: "open") => void) & ((event: "close") => void) & ((event: "opened") => void) & ((event: "closed") => void) & ((event: "openAutoFocus") => void) & ((event: "closeAutoFocus") => void) & ((event: "resize", evt: MouseEvent, size: number) => void) & ((event: "resize-start", evt: MouseEvent, size: number) => void) & ((event: "resize-end", evt: MouseEvent, size: number) => void);
|
|
211
211
|
$el: any;
|
|
212
212
|
$options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
213
213
|
readonly direction: EpPropFinalized<StringConstructor, "ltr" | "rtl" | "ttb" | "btt", unknown, "rtl", boolean>;
|
|
@@ -462,33 +462,33 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
462
462
|
}>>> & {
|
|
463
463
|
onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
|
|
464
464
|
"onUpdate:visible"?: ((visible: boolean) => any) | undefined;
|
|
465
|
-
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
466
|
-
onCancel?: (() => any) | undefined;
|
|
467
465
|
onConfirm?: ((values: FieldValues) => any) | undefined;
|
|
466
|
+
onCancel?: (() => any) | undefined;
|
|
467
|
+
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
468
468
|
onConfirmError?: ((errors: unknown) => any) | undefined;
|
|
469
469
|
}, {
|
|
470
|
+
size: string | number;
|
|
470
471
|
form: PlusFormProps;
|
|
471
472
|
visible: boolean;
|
|
472
|
-
|
|
473
|
+
confirmText: string;
|
|
474
|
+
cancelText: string;
|
|
473
475
|
modelValue: FieldValues;
|
|
474
476
|
hasErrorTip: boolean;
|
|
475
477
|
hasFooter: boolean;
|
|
476
478
|
confirmLoading: boolean;
|
|
477
|
-
cancelText: string;
|
|
478
|
-
confirmText: string;
|
|
479
479
|
drawer: Partial<Mutable<DrawerProps> & {
|
|
480
480
|
style?: CSSProperties | undefined;
|
|
481
481
|
class?: any;
|
|
482
482
|
} & RecordType>;
|
|
483
483
|
}, {}>, Partial<Record<NonNullable<string | number>, (_: {
|
|
484
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "
|
|
484
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "modelValue" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
|
|
485
485
|
readonly label: string | ComputedRef<string>;
|
|
486
|
-
readonly modelValue: string | number | boolean | string[] | [string, string] |
|
|
487
|
-
readonly hasLabel: boolean |
|
|
488
|
-
readonly tooltip: string | Partial<Mutable< ElTooltipProps> & {
|
|
486
|
+
readonly modelValue: string | number | boolean | string[] | [string, string] | boolean[] | Date | RecordType | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
487
|
+
readonly hasLabel: boolean | ComputedRef<boolean> | Ref<boolean>;
|
|
488
|
+
readonly tooltip: string | ComputedRef<string> | Partial<Mutable< ElTooltipProps> & {
|
|
489
489
|
style?: CSSProperties | undefined;
|
|
490
490
|
class?: any;
|
|
491
|
-
} & RecordType> | ComputedRef<
|
|
491
|
+
} & RecordType> | ComputedRef<Partial<Mutable< ElTooltipProps> & {
|
|
492
492
|
style?: CSSProperties | undefined;
|
|
493
493
|
class?: any;
|
|
494
494
|
} & RecordType>>;
|
|
@@ -510,7 +510,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
510
510
|
};
|
|
511
511
|
rows: number;
|
|
512
512
|
autocomplete: string;
|
|
513
|
-
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "
|
|
513
|
+
type: "" | "number" | "default" | "color" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "warning" | "success" | "info" | "primary" | "danger" | "reset" | "submit" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "hidden" | "email" | "tel" | "password" | "range" | "url" | "date" | "year" | "years" | "month" | "months" | "dates" | "week" | "datetime" | "yearrange" | "dashboard" | "datetime-local" | "file" | undefined;
|
|
514
514
|
loading: boolean | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
515
515
|
step: string | number;
|
|
516
516
|
format: string | ProgressFn | undefined;
|
|
@@ -555,12 +555,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
555
555
|
fieldInstance?: any;
|
|
556
556
|
valueIsReady?: Ref<boolean> | undefined;
|
|
557
557
|
prop: string;
|
|
558
|
-
modelValue: string | number | boolean | string[] | [string, string] |
|
|
559
|
-
hasLabel: boolean |
|
|
560
|
-
tooltip: string | Partial<Mutable< ElTooltipProps> & {
|
|
558
|
+
modelValue: string | number | boolean | string[] | [string, string] | boolean[] | Date | RecordType | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
559
|
+
hasLabel: boolean | ComputedRef<boolean> | Ref<boolean>;
|
|
560
|
+
tooltip: string | ComputedRef<string> | Partial<Mutable< ElTooltipProps> & {
|
|
561
561
|
style?: CSSProperties | undefined;
|
|
562
562
|
class?: any;
|
|
563
|
-
} & RecordType> | ComputedRef<
|
|
563
|
+
} & RecordType> | ComputedRef<Partial<Mutable< ElTooltipProps> & {
|
|
564
564
|
style?: CSSProperties | undefined;
|
|
565
565
|
class?: any;
|
|
566
566
|
} & RecordType>>;
|
|
@@ -3,7 +3,7 @@ import { LooseRequired } from '@vue/shared';
|
|
|
3
3
|
import { FormItemRule, RowProps, ColProps, CardProps, FormInstance, ElTooltipProps, FormItemProps, ProgressFn, CascaderNode, PopperEffect, InputAutoSize, AutocompleteProps, CheckboxGroupProps, ColorPickerProps, DatePickerProps, InputProps, InputNumberProps, RadioGroupProps, RateProps, SelectProps, SliderProps, SwitchProps, TimePickerDefaultProps, TimeSelectProps, TextProps, ImageProps, LinkProps, TagProps, ProgressProps } from 'element-plus';
|
|
4
4
|
import { Arrayable, EpPropMergeType } from 'element-plus/es/utils';
|
|
5
5
|
import { PlusFormGroupRow } from './src/type';
|
|
6
|
-
import {
|
|
6
|
+
import { FieldValues, PlusColumn, Mutable, RecordType, PropsItemType, OmitTypes, CascaderProps, OptionsType, RenderTypes, TableValueType, FormItemValueType, FieldValueType, OptionsRow } from 'yc-pro-components';
|
|
7
7
|
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, CSSProperties, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, ComputedRef, Component } from 'vue';
|
|
8
8
|
import { default as Form } from './src/index.vue';
|
|
9
9
|
|
|
@@ -11,6 +11,10 @@ export type PlusFormInstance = InstanceType<typeof Form>;
|
|
|
11
11
|
export * from './src/type';
|
|
12
12
|
export declare const PlusForm: {
|
|
13
13
|
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
14
|
+
modelValue: {
|
|
15
|
+
type: PropType<FieldValues>;
|
|
16
|
+
default: () => {};
|
|
17
|
+
};
|
|
14
18
|
collapseDuration: {
|
|
15
19
|
type: PropType<number>;
|
|
16
20
|
default: undefined;
|
|
@@ -31,10 +35,6 @@ export declare const PlusForm: {
|
|
|
31
35
|
type: PropType<"grid" | "flex">;
|
|
32
36
|
default: undefined;
|
|
33
37
|
};
|
|
34
|
-
modelValue: {
|
|
35
|
-
type: PropType<FieldValues>;
|
|
36
|
-
default: () => {};
|
|
37
|
-
};
|
|
38
38
|
rules: {
|
|
39
39
|
type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
40
40
|
default: () => {};
|
|
@@ -98,7 +98,7 @@ export declare const PlusForm: {
|
|
|
98
98
|
default: boolean;
|
|
99
99
|
};
|
|
100
100
|
footerAlign: {
|
|
101
|
-
type: PropType<"
|
|
101
|
+
type: PropType<"center" | "right" | "left">;
|
|
102
102
|
default: string;
|
|
103
103
|
};
|
|
104
104
|
cardProps: {
|
|
@@ -135,6 +135,10 @@ export declare const PlusForm: {
|
|
|
135
135
|
submitError: (errors: unknown) => void;
|
|
136
136
|
validate: (...args: any[]) => void;
|
|
137
137
|
}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
138
|
+
modelValue: {
|
|
139
|
+
type: PropType<FieldValues>;
|
|
140
|
+
default: () => {};
|
|
141
|
+
};
|
|
138
142
|
collapseDuration: {
|
|
139
143
|
type: PropType<number>;
|
|
140
144
|
default: undefined;
|
|
@@ -155,10 +159,6 @@ export declare const PlusForm: {
|
|
|
155
159
|
type: PropType<"grid" | "flex">;
|
|
156
160
|
default: undefined;
|
|
157
161
|
};
|
|
158
|
-
modelValue: {
|
|
159
|
-
type: PropType<FieldValues>;
|
|
160
|
-
default: () => {};
|
|
161
|
-
};
|
|
162
162
|
rules: {
|
|
163
163
|
type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
164
164
|
default: () => {};
|
|
@@ -222,7 +222,7 @@ export declare const PlusForm: {
|
|
|
222
222
|
default: boolean;
|
|
223
223
|
};
|
|
224
224
|
footerAlign: {
|
|
225
|
-
type: PropType<"
|
|
225
|
+
type: PropType<"center" | "right" | "left">;
|
|
226
226
|
default: string;
|
|
227
227
|
};
|
|
228
228
|
cardProps: {
|
|
@@ -248,12 +248,12 @@ export declare const PlusForm: {
|
|
|
248
248
|
onValidate?: ((...args: any[]) => any) | undefined;
|
|
249
249
|
onSubmitError?: ((errors: unknown) => any) | undefined;
|
|
250
250
|
}, {
|
|
251
|
+
modelValue: FieldValues;
|
|
251
252
|
collapseDuration: number;
|
|
252
253
|
collapseTransition: boolean;
|
|
253
254
|
columns: PlusColumn[];
|
|
254
255
|
group: false | PlusFormGroupRow[];
|
|
255
256
|
layout: "grid" | "flex";
|
|
256
|
-
modelValue: FieldValues;
|
|
257
257
|
rules: Partial<Record<string, Arrayable<FormItemRule>>>;
|
|
258
258
|
labelPosition: "top" | "right" | "left";
|
|
259
259
|
labelWidth: string | number;
|
|
@@ -274,7 +274,7 @@ export declare const PlusForm: {
|
|
|
274
274
|
submitText: string;
|
|
275
275
|
resetText: string;
|
|
276
276
|
submitLoading: boolean;
|
|
277
|
-
footerAlign: "
|
|
277
|
+
footerAlign: "center" | "right" | "left";
|
|
278
278
|
cardProps: Partial< Mutable<CardProps> & {
|
|
279
279
|
style?: CSSProperties | undefined;
|
|
280
280
|
class?: any;
|
|
@@ -289,6 +289,10 @@ export declare const PlusForm: {
|
|
|
289
289
|
M: {};
|
|
290
290
|
Defaults: {};
|
|
291
291
|
}, Readonly< ExtractPropTypes<{
|
|
292
|
+
modelValue: {
|
|
293
|
+
type: PropType<FieldValues>;
|
|
294
|
+
default: () => {};
|
|
295
|
+
};
|
|
292
296
|
collapseDuration: {
|
|
293
297
|
type: PropType<number>;
|
|
294
298
|
default: undefined;
|
|
@@ -309,10 +313,6 @@ export declare const PlusForm: {
|
|
|
309
313
|
type: PropType<"grid" | "flex">;
|
|
310
314
|
default: undefined;
|
|
311
315
|
};
|
|
312
|
-
modelValue: {
|
|
313
|
-
type: PropType<FieldValues>;
|
|
314
|
-
default: () => {};
|
|
315
|
-
};
|
|
316
316
|
rules: {
|
|
317
317
|
type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
318
318
|
default: () => {};
|
|
@@ -376,7 +376,7 @@ export declare const PlusForm: {
|
|
|
376
376
|
default: boolean;
|
|
377
377
|
};
|
|
378
378
|
footerAlign: {
|
|
379
|
-
type: PropType<"
|
|
379
|
+
type: PropType<"center" | "right" | "left">;
|
|
380
380
|
default: string;
|
|
381
381
|
};
|
|
382
382
|
cardProps: {
|
|
@@ -406,12 +406,12 @@ export declare const PlusForm: {
|
|
|
406
406
|
handleSubmit: () => void;
|
|
407
407
|
handleReset: () => void;
|
|
408
408
|
}, {}, {}, {}, {
|
|
409
|
+
modelValue: FieldValues;
|
|
409
410
|
collapseDuration: number;
|
|
410
411
|
collapseTransition: boolean;
|
|
411
412
|
columns: PlusColumn[];
|
|
412
413
|
group: false | PlusFormGroupRow[];
|
|
413
414
|
layout: "grid" | "flex";
|
|
414
|
-
modelValue: FieldValues;
|
|
415
415
|
rules: Partial<Record<string, Arrayable<FormItemRule>>>;
|
|
416
416
|
labelPosition: "top" | "right" | "left";
|
|
417
417
|
labelWidth: string | number;
|
|
@@ -432,7 +432,7 @@ export declare const PlusForm: {
|
|
|
432
432
|
submitText: string;
|
|
433
433
|
resetText: string;
|
|
434
434
|
submitLoading: boolean;
|
|
435
|
-
footerAlign: "
|
|
435
|
+
footerAlign: "center" | "right" | "left";
|
|
436
436
|
cardProps: Partial< Mutable<CardProps> & {
|
|
437
437
|
style?: CSSProperties | undefined;
|
|
438
438
|
class?: any;
|
|
@@ -444,6 +444,10 @@ export declare const PlusForm: {
|
|
|
444
444
|
__isTeleport?: undefined;
|
|
445
445
|
__isSuspense?: undefined;
|
|
446
446
|
} & ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
447
|
+
modelValue: {
|
|
448
|
+
type: PropType<FieldValues>;
|
|
449
|
+
default: () => {};
|
|
450
|
+
};
|
|
447
451
|
collapseDuration: {
|
|
448
452
|
type: PropType<number>;
|
|
449
453
|
default: undefined;
|
|
@@ -464,10 +468,6 @@ export declare const PlusForm: {
|
|
|
464
468
|
type: PropType<"grid" | "flex">;
|
|
465
469
|
default: undefined;
|
|
466
470
|
};
|
|
467
|
-
modelValue: {
|
|
468
|
-
type: PropType<FieldValues>;
|
|
469
|
-
default: () => {};
|
|
470
|
-
};
|
|
471
471
|
rules: {
|
|
472
472
|
type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
473
473
|
default: () => {};
|
|
@@ -531,7 +531,7 @@ export declare const PlusForm: {
|
|
|
531
531
|
default: boolean;
|
|
532
532
|
};
|
|
533
533
|
footerAlign: {
|
|
534
|
-
type: PropType<"
|
|
534
|
+
type: PropType<"center" | "right" | "left">;
|
|
535
535
|
default: string;
|
|
536
536
|
};
|
|
537
537
|
cardProps: {
|
|
@@ -568,12 +568,12 @@ export declare const PlusForm: {
|
|
|
568
568
|
submitError: (errors: unknown) => void;
|
|
569
569
|
validate: (...args: any[]) => void;
|
|
570
570
|
}, string, {
|
|
571
|
+
modelValue: FieldValues;
|
|
571
572
|
collapseDuration: number;
|
|
572
573
|
collapseTransition: boolean;
|
|
573
574
|
columns: PlusColumn[];
|
|
574
575
|
group: false | PlusFormGroupRow[];
|
|
575
576
|
layout: "grid" | "flex";
|
|
576
|
-
modelValue: FieldValues;
|
|
577
577
|
rules: Partial<Record<string, Arrayable<FormItemRule>>>;
|
|
578
578
|
labelPosition: "top" | "right" | "left";
|
|
579
579
|
labelWidth: string | number;
|
|
@@ -594,7 +594,7 @@ export declare const PlusForm: {
|
|
|
594
594
|
submitText: string;
|
|
595
595
|
resetText: string;
|
|
596
596
|
submitLoading: boolean;
|
|
597
|
-
footerAlign: "
|
|
597
|
+
footerAlign: "center" | "right" | "left";
|
|
598
598
|
cardProps: Partial< Mutable<CardProps> & {
|
|
599
599
|
style?: CSSProperties | undefined;
|
|
600
600
|
class?: any;
|
|
@@ -614,14 +614,14 @@ export declare const PlusForm: {
|
|
|
614
614
|
hideInGroup?: boolean | ComputedRef<boolean> | undefined;
|
|
615
615
|
columns?: PlusColumn[] | undefined;
|
|
616
616
|
}) => any>> & Partial<Record<NonNullable<string | number>, (_: {
|
|
617
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "
|
|
617
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "modelValue" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
|
|
618
618
|
readonly label: string | ComputedRef<string>;
|
|
619
|
-
readonly modelValue: string | number | boolean | string[] | [string, string] |
|
|
620
|
-
readonly hasLabel: boolean |
|
|
621
|
-
readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
619
|
+
readonly modelValue: string | number | boolean | string[] | [string, string] | boolean[] | Date | RecordType | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
620
|
+
readonly hasLabel: boolean | ComputedRef<boolean> | Ref<boolean>;
|
|
621
|
+
readonly tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
|
|
622
622
|
style?: CSSProperties | undefined;
|
|
623
623
|
class?: any;
|
|
624
|
-
} & RecordType> | ComputedRef<
|
|
624
|
+
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
625
625
|
style?: CSSProperties | undefined;
|
|
626
626
|
class?: any;
|
|
627
627
|
} & RecordType>>;
|
|
@@ -643,7 +643,7 @@ export declare const PlusForm: {
|
|
|
643
643
|
};
|
|
644
644
|
rows: number;
|
|
645
645
|
autocomplete: string;
|
|
646
|
-
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "
|
|
646
|
+
type: "" | "number" | "default" | "color" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "warning" | "success" | "info" | "primary" | "danger" | "reset" | "submit" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "hidden" | "email" | "tel" | "password" | "range" | "url" | "date" | "year" | "years" | "month" | "months" | "dates" | "week" | "datetime" | "yearrange" | "dashboard" | "datetime-local" | "file" | undefined;
|
|
647
647
|
loading: boolean | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
648
648
|
step: string | number;
|
|
649
649
|
format: string | ProgressFn | undefined;
|
|
@@ -688,12 +688,12 @@ export declare const PlusForm: {
|
|
|
688
688
|
fieldInstance?: any;
|
|
689
689
|
valueIsReady?: Ref<boolean> | undefined;
|
|
690
690
|
prop: string;
|
|
691
|
-
modelValue: string | number | boolean | string[] | [string, string] |
|
|
692
|
-
hasLabel: boolean |
|
|
693
|
-
tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
691
|
+
modelValue: string | number | boolean | string[] | [string, string] | boolean[] | Date | RecordType | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
692
|
+
hasLabel: boolean | ComputedRef<boolean> | Ref<boolean>;
|
|
693
|
+
tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
|
|
694
694
|
style?: CSSProperties | undefined;
|
|
695
695
|
class?: any;
|
|
696
|
-
} & RecordType> | ComputedRef<
|
|
696
|
+
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
697
697
|
style?: CSSProperties | undefined;
|
|
698
698
|
class?: any;
|
|
699
699
|
} & RecordType>>;
|
|
@@ -722,14 +722,14 @@ export declare const PlusForm: {
|
|
|
722
722
|
clearable: boolean;
|
|
723
723
|
index: number;
|
|
724
724
|
}) => any>> & Partial<Record<NonNullable<string | number>, (_: {
|
|
725
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "
|
|
725
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "modelValue" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
|
|
726
726
|
readonly label: string | ComputedRef<string>;
|
|
727
|
-
readonly modelValue: string | number | boolean | string[] | [string, string] |
|
|
728
|
-
readonly hasLabel: boolean |
|
|
729
|
-
readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
727
|
+
readonly modelValue: string | number | boolean | string[] | [string, string] | boolean[] | Date | RecordType | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
728
|
+
readonly hasLabel: boolean | ComputedRef<boolean> | Ref<boolean>;
|
|
729
|
+
readonly tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
|
|
730
730
|
style?: CSSProperties | undefined;
|
|
731
731
|
class?: any;
|
|
732
|
-
} & RecordType> | ComputedRef<
|
|
732
|
+
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
733
733
|
style?: CSSProperties | undefined;
|
|
734
734
|
class?: any;
|
|
735
735
|
} & RecordType>>;
|
|
@@ -751,7 +751,7 @@ export declare const PlusForm: {
|
|
|
751
751
|
};
|
|
752
752
|
rows: number;
|
|
753
753
|
autocomplete: string;
|
|
754
|
-
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "
|
|
754
|
+
type: "" | "number" | "default" | "color" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "warning" | "success" | "info" | "primary" | "danger" | "reset" | "submit" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "hidden" | "email" | "tel" | "password" | "range" | "url" | "date" | "year" | "years" | "month" | "months" | "dates" | "week" | "datetime" | "yearrange" | "dashboard" | "datetime-local" | "file" | undefined;
|
|
755
755
|
loading: boolean | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
756
756
|
step: string | number;
|
|
757
757
|
format: string | ProgressFn | undefined;
|
|
@@ -796,12 +796,12 @@ export declare const PlusForm: {
|
|
|
796
796
|
fieldInstance?: any;
|
|
797
797
|
valueIsReady?: Ref<boolean> | undefined;
|
|
798
798
|
prop: string;
|
|
799
|
-
modelValue: string | number | boolean | string[] | [string, string] |
|
|
800
|
-
hasLabel: boolean |
|
|
801
|
-
tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
799
|
+
modelValue: string | number | boolean | string[] | [string, string] | boolean[] | Date | RecordType | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
800
|
+
hasLabel: boolean | ComputedRef<boolean> | Ref<boolean>;
|
|
801
|
+
tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
|
|
802
802
|
style?: CSSProperties | undefined;
|
|
803
803
|
class?: any;
|
|
804
|
-
} & RecordType> | ComputedRef<
|
|
804
|
+
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
805
805
|
style?: CSSProperties | undefined;
|
|
806
806
|
class?: any;
|
|
807
807
|
} & RecordType>>;
|