yc-pro-components 0.0.82 → 0.0.83
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/index.vue2.mjs +11 -5
- package/es/components/table/src/table-column.vue.d.ts +46 -46
- package/es/components/table/src/use-table-density.d.ts +8 -0
- package/es/components/table/src/use-table-density.mjs +24 -0
- 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/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 +9 -9
- 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 +32 -6
- package/index.min.js +12 -12
- package/index.min.mjs +12 -12
- package/index.mjs +32 -6
- 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/index.vue2.js +10 -4
- package/lib/components/table/src/table-column.vue.d.ts +46 -46
- package/lib/components/table/src/use-table-density.d.ts +8 -0
- package/lib/components/table/src/use-table-density.js +28 -0
- 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/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 +9 -9
- 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 size: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
80
79
|
readonly title: string;
|
|
81
|
-
readonly
|
|
80
|
+
readonly resizable: boolean;
|
|
82
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
|
+
readonly size: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
83
|
+
readonly center: boolean;
|
|
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>;
|
|
90
|
+
readonly appendToBody: boolean;
|
|
83
91
|
readonly destroyOnClose: boolean;
|
|
84
92
|
readonly closeOnClickModal: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
85
|
-
readonly closeOnPressEscape: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
86
93
|
readonly lockScroll: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
87
94
|
readonly modal: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
88
95
|
readonly modalPenetrable: boolean;
|
|
89
96
|
readonly openDelay: number;
|
|
90
97
|
readonly closeDelay: number;
|
|
91
|
-
readonly modelValue: boolean;
|
|
92
98
|
readonly trapFocus: boolean;
|
|
93
99
|
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;
|
|
102
103
|
readonly width?: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined;
|
|
103
|
-
readonly
|
|
104
|
+
readonly zIndex?: number | undefined;
|
|
104
105
|
readonly top?: string | undefined;
|
|
105
|
-
readonly
|
|
106
|
+
readonly draggable?: EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
107
|
+
readonly overflow?: EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
106
108
|
readonly headerClass?: string | undefined;
|
|
107
109
|
readonly bodyClass?: string | undefined;
|
|
108
110
|
readonly footerClass?: string | undefined;
|
|
109
|
-
readonly
|
|
110
|
-
readonly
|
|
111
|
+
readonly beforeClose?: DialogBeforeCloseFn | undefined;
|
|
112
|
+
readonly modalClass?: string | undefined;
|
|
111
113
|
readonly alignCenter?: EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
112
114
|
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
|
+
}, "title" | "transition" | "resizable" | "appendTo" | "size" | "center" | "modelValue" | "draggable" | "ariaLevel" | "fullscreen" | "direction" | "overflow" | "closeOnPressEscape" | "showClose" | "appendToBody" | "destroyOnClose" | "closeOnClickModal" | "lockScroll" | "modal" | "modalPenetrable" | "openDelay" | "closeDelay" | "trapFocus" | "headerAriaLevel" | "alignCenter" | "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: "open") => void) & ((event: "update:modelValue", value: boolean) => void) & ((event: "close") => void) & ((event: "closed") => void) & ((event: "resize", evt: MouseEvent, size: number) => void) & ((event: "opened") => void) & ((event: "openAutoFocus") => void) & ((event: "closeAutoFocus") => 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
|
-
onConfirm?: ((values: FieldValues) => any) | undefined;
|
|
466
|
-
onCancel?: (() => any) | undefined;
|
|
467
465
|
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
466
|
+
onCancel?: (() => any) | undefined;
|
|
467
|
+
onConfirm?: ((values: FieldValues) => any) | undefined;
|
|
468
468
|
onConfirmError?: ((errors: unknown) => any) | undefined;
|
|
469
469
|
}, {
|
|
470
|
-
size: string | number;
|
|
471
470
|
form: PlusFormProps;
|
|
472
471
|
visible: boolean;
|
|
473
|
-
|
|
474
|
-
cancelText: string;
|
|
472
|
+
size: string | number;
|
|
475
473
|
modelValue: FieldValues;
|
|
476
474
|
hasErrorTip: boolean;
|
|
477
475
|
hasFooter: boolean;
|
|
478
476
|
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" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "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 |
|
|
486
|
+
readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
487
|
+
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
488
|
+
readonly tooltip: string | Partial<Mutable< ElTooltipProps> & {
|
|
489
489
|
style?: CSSProperties | undefined;
|
|
490
490
|
class?: any;
|
|
491
|
-
} & RecordType> | ComputedRef<Partial<Mutable< ElTooltipProps> & {
|
|
491
|
+
} & RecordType> | ComputedRef<string> | 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" | "
|
|
513
|
+
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "primary" | "success" | "warning" | "info" | "danger" | "reset" | "submit" | "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 |
|
|
558
|
+
modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
559
|
+
hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
560
|
+
tooltip: string | Partial<Mutable< ElTooltipProps> & {
|
|
561
561
|
style?: CSSProperties | undefined;
|
|
562
562
|
class?: any;
|
|
563
|
-
} & RecordType> | ComputedRef<Partial<Mutable< ElTooltipProps> & {
|
|
563
|
+
} & RecordType> | ComputedRef<string> | 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 { PlusColumn, FieldValues, 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,10 +11,6 @@ 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
|
-
};
|
|
18
14
|
collapseDuration: {
|
|
19
15
|
type: PropType<number>;
|
|
20
16
|
default: undefined;
|
|
@@ -35,6 +31,10 @@ export declare const PlusForm: {
|
|
|
35
31
|
type: PropType<"grid" | "flex">;
|
|
36
32
|
default: undefined;
|
|
37
33
|
};
|
|
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<"right" | "left" | "center">;
|
|
102
102
|
default: string;
|
|
103
103
|
};
|
|
104
104
|
cardProps: {
|
|
@@ -135,10 +135,6 @@ 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
|
-
};
|
|
142
138
|
collapseDuration: {
|
|
143
139
|
type: PropType<number>;
|
|
144
140
|
default: undefined;
|
|
@@ -159,6 +155,10 @@ export declare const PlusForm: {
|
|
|
159
155
|
type: PropType<"grid" | "flex">;
|
|
160
156
|
default: undefined;
|
|
161
157
|
};
|
|
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<"right" | "left" | "center">;
|
|
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;
|
|
252
251
|
collapseDuration: number;
|
|
253
252
|
collapseTransition: boolean;
|
|
254
253
|
columns: PlusColumn[];
|
|
255
254
|
group: false | PlusFormGroupRow[];
|
|
256
255
|
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: "right" | "left" | "center";
|
|
278
278
|
cardProps: Partial< Mutable<CardProps> & {
|
|
279
279
|
style?: CSSProperties | undefined;
|
|
280
280
|
class?: any;
|
|
@@ -289,10 +289,6 @@ export declare const PlusForm: {
|
|
|
289
289
|
M: {};
|
|
290
290
|
Defaults: {};
|
|
291
291
|
}, Readonly< ExtractPropTypes<{
|
|
292
|
-
modelValue: {
|
|
293
|
-
type: PropType<FieldValues>;
|
|
294
|
-
default: () => {};
|
|
295
|
-
};
|
|
296
292
|
collapseDuration: {
|
|
297
293
|
type: PropType<number>;
|
|
298
294
|
default: undefined;
|
|
@@ -313,6 +309,10 @@ export declare const PlusForm: {
|
|
|
313
309
|
type: PropType<"grid" | "flex">;
|
|
314
310
|
default: undefined;
|
|
315
311
|
};
|
|
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<"right" | "left" | "center">;
|
|
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;
|
|
410
409
|
collapseDuration: number;
|
|
411
410
|
collapseTransition: boolean;
|
|
412
411
|
columns: PlusColumn[];
|
|
413
412
|
group: false | PlusFormGroupRow[];
|
|
414
413
|
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: "right" | "left" | "center";
|
|
436
436
|
cardProps: Partial< Mutable<CardProps> & {
|
|
437
437
|
style?: CSSProperties | undefined;
|
|
438
438
|
class?: any;
|
|
@@ -444,10 +444,6 @@ 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
|
-
};
|
|
451
447
|
collapseDuration: {
|
|
452
448
|
type: PropType<number>;
|
|
453
449
|
default: undefined;
|
|
@@ -468,6 +464,10 @@ export declare const PlusForm: {
|
|
|
468
464
|
type: PropType<"grid" | "flex">;
|
|
469
465
|
default: undefined;
|
|
470
466
|
};
|
|
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<"right" | "left" | "center">;
|
|
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;
|
|
572
571
|
collapseDuration: number;
|
|
573
572
|
collapseTransition: boolean;
|
|
574
573
|
columns: PlusColumn[];
|
|
575
574
|
group: false | PlusFormGroupRow[];
|
|
576
575
|
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: "right" | "left" | "center";
|
|
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" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "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 |
|
|
619
|
+
readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
620
|
+
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
621
|
+
readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
622
622
|
style?: CSSProperties | undefined;
|
|
623
623
|
class?: any;
|
|
624
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
624
|
+
} & RecordType> | ComputedRef<string> | 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" | "
|
|
646
|
+
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "primary" | "success" | "warning" | "info" | "danger" | "reset" | "submit" | "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 |
|
|
691
|
+
modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
692
|
+
hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
693
|
+
tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
694
694
|
style?: CSSProperties | undefined;
|
|
695
695
|
class?: any;
|
|
696
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
696
|
+
} & RecordType> | ComputedRef<string> | 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" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "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 |
|
|
727
|
+
readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
728
|
+
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
729
|
+
readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
730
730
|
style?: CSSProperties | undefined;
|
|
731
731
|
class?: any;
|
|
732
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
732
|
+
} & RecordType> | ComputedRef<string> | 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" | "
|
|
754
|
+
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "primary" | "success" | "warning" | "info" | "danger" | "reset" | "submit" | "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 |
|
|
799
|
+
modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
800
|
+
hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
801
|
+
tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
802
802
|
style?: CSSProperties | undefined;
|
|
803
803
|
class?: any;
|
|
804
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
804
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
805
805
|
style?: CSSProperties | undefined;
|
|
806
806
|
class?: any;
|
|
807
807
|
} & RecordType>>;
|