yc-pro-components 0.0.10 → 0.0.12
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 +7 -7
- package/es/components/check-card-group/src/index.vue.d.ts +1 -1
- package/es/components/date-picker/index.d.ts +16 -16
- package/es/components/date-picker/src/index.vue.d.ts +8 -8
- package/es/components/dialog/index.d.ts +30 -30
- package/es/components/dialog/src/index.vue.d.ts +3 -3
- package/es/components/dialog-form/index.d.ts +80 -80
- package/es/components/dialog-form/src/index.vue.d.ts +28 -28
- package/es/components/display-item/index.d.ts +29 -29
- package/es/components/display-item/src/index.vue.d.ts +10 -10
- package/es/components/drawer-form/index.d.ts +95 -95
- package/es/components/drawer-form/src/index.vue.d.ts +28 -28
- package/es/components/form/index.d.ts +89 -89
- package/es/components/form/src/form-content.vue.d.ts +8 -8
- package/es/components/form/src/index.vue.d.ts +31 -31
- package/es/components/form-item/index.d.ts +46 -46
- package/es/components/form-item/src/index.vue.d.ts +14 -14
- package/es/components/input-tag/index.d.ts +28 -28
- package/es/components/input-tag/src/index.vue.d.ts +28 -28
- 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 +601 -511
- package/es/components/page/src/index.vue.d.ts +203 -173
- package/es/components/pagination/index.d.ts +7 -7
- package/es/components/pagination/src/index.vue.d.ts +1 -1
- package/es/components/radio/index.d.ts +37 -37
- package/es/components/radio/src/index.vue.d.ts +37 -37
- package/es/components/render/index.d.ts +12 -12
- package/es/components/render/src/index.vue.d.ts +2 -2
- package/es/components/search/index.d.ts +244 -206
- package/es/components/search/src/index.vue.d.ts +75 -69
- package/es/components/search/src/index.vue2.mjs +14 -4
- package/es/components/search/src/type.d.ts +9 -0
- package/es/components/sidebar/index.d.ts +15 -15
- package/es/components/sidebar/src/index.vue.d.ts +5 -5
- package/es/components/table/index.d.ts +40 -40
- package/es/components/table/src/index.vue.d.ts +12 -12
- package/es/components/table/src/table-column-drag-sort.vue.d.ts +11 -11
- package/es/components/table/src/table-column.vue.d.ts +25 -25
- package/es/components/table/src/table-title-bar.vue.d.ts +3 -3
- package/es/components/utils/index.d.ts +5 -5
- package/es/components/yc-count-to/index.d.ts +2 -2
- package/es/components/yc-count-to/src/normal/index.d.ts +1 -1
- package/es/components/yc-count-to/src/rebound/index.d.ts +1 -1
- package/es/components/yc-dialog/index.d.ts +24 -24
- package/es/components/yc-drawer/store.d.ts +13 -13
- package/es/components/yc-more-actions/index.d.ts +84 -84
- package/es/components/yc-more-actions/src/index.vue.d.ts +6 -6
- package/es/components/yc-plus-page/src/index.vue.d.ts +465 -538
- package/es/components/yc-plus-page/src/index.vue.mjs +1 -1
- package/es/components/yc-plus-page/src/index.vue2.mjs +8 -2
- package/es/components/yc-plus-tree/src/index.vue.d.ts +2 -2
- package/es/components/yc-segmented/index.d.ts +4 -4
- package/es/components/yc-segmented/src/index.d.ts +4 -4
- package/es/components/yc-select-v2/src/index.vue.d.ts +1 -1
- package/es/components/yc-status-dialog/src/index.vue.d.ts +2 -2
- package/es/hooks/usePlusFormReset.d.ts +384 -384
- package/es/index.css +1 -1
- package/index.css +9 -5
- package/index.js +23 -7
- package/index.min.css +1 -1
- package/index.min.js +6 -6
- package/index.min.mjs +7 -7
- package/index.mjs +23 -7
- 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 +7 -7
- package/lib/components/check-card-group/src/index.vue.d.ts +1 -1
- package/lib/components/date-picker/index.d.ts +16 -16
- package/lib/components/date-picker/src/index.vue.d.ts +8 -8
- package/lib/components/dialog/index.d.ts +30 -30
- package/lib/components/dialog/src/index.vue.d.ts +3 -3
- package/lib/components/dialog-form/index.d.ts +80 -80
- package/lib/components/dialog-form/src/index.vue.d.ts +28 -28
- package/lib/components/display-item/index.d.ts +29 -29
- package/lib/components/display-item/src/index.vue.d.ts +10 -10
- package/lib/components/drawer-form/index.d.ts +95 -95
- package/lib/components/drawer-form/src/index.vue.d.ts +28 -28
- package/lib/components/form/index.d.ts +89 -89
- package/lib/components/form/src/form-content.vue.d.ts +8 -8
- package/lib/components/form/src/index.vue.d.ts +31 -31
- package/lib/components/form-item/index.d.ts +46 -46
- package/lib/components/form-item/src/index.vue.d.ts +14 -14
- package/lib/components/input-tag/index.d.ts +28 -28
- package/lib/components/input-tag/src/index.vue.d.ts +28 -28
- 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 +601 -511
- package/lib/components/page/src/index.vue.d.ts +203 -173
- package/lib/components/pagination/index.d.ts +7 -7
- package/lib/components/pagination/src/index.vue.d.ts +1 -1
- package/lib/components/radio/index.d.ts +37 -37
- package/lib/components/radio/src/index.vue.d.ts +37 -37
- package/lib/components/render/index.d.ts +12 -12
- package/lib/components/render/src/index.vue.d.ts +2 -2
- package/lib/components/search/index.d.ts +244 -206
- package/lib/components/search/src/index.vue.d.ts +75 -69
- package/lib/components/search/src/index.vue2.js +13 -3
- package/lib/components/search/src/type.d.ts +9 -0
- package/lib/components/sidebar/index.d.ts +15 -15
- package/lib/components/sidebar/src/index.vue.d.ts +5 -5
- package/lib/components/table/index.d.ts +40 -40
- package/lib/components/table/src/index.vue.d.ts +12 -12
- package/lib/components/table/src/table-column-drag-sort.vue.d.ts +11 -11
- package/lib/components/table/src/table-column.vue.d.ts +25 -25
- package/lib/components/table/src/table-title-bar.vue.d.ts +3 -3
- package/lib/components/utils/index.d.ts +5 -5
- package/lib/components/yc-count-to/index.d.ts +2 -2
- package/lib/components/yc-count-to/src/normal/index.d.ts +1 -1
- package/lib/components/yc-count-to/src/rebound/index.d.ts +1 -1
- package/lib/components/yc-dialog/index.d.ts +24 -24
- package/lib/components/yc-drawer/store.d.ts +13 -13
- package/lib/components/yc-more-actions/index.d.ts +84 -84
- package/lib/components/yc-more-actions/src/index.vue.d.ts +6 -6
- package/lib/components/yc-plus-page/src/index.vue.d.ts +465 -538
- package/lib/components/yc-plus-page/src/index.vue.js +1 -1
- package/lib/components/yc-plus-page/src/index.vue2.js +8 -2
- package/lib/components/yc-plus-tree/src/index.vue.d.ts +2 -2
- package/lib/components/yc-segmented/index.d.ts +4 -4
- package/lib/components/yc-segmented/src/index.d.ts +4 -4
- package/lib/components/yc-select-v2/src/index.vue.d.ts +1 -1
- package/lib/components/yc-status-dialog/src/index.vue.d.ts +2 -2
- package/lib/hooks/usePlusFormReset.d.ts +384 -384
- 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-page.css +1 -1
- package/theme-chalk/src/mixins/mixins.scss +4 -0
- package/theme-chalk/src/page.scss +1 -1
|
@@ -35,6 +35,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
35
35
|
xl: number;
|
|
36
36
|
};
|
|
37
37
|
needValidate: boolean;
|
|
38
|
+
searchIcon: undefined;
|
|
39
|
+
resetIcon: undefined;
|
|
38
40
|
}>, {
|
|
39
41
|
plusFormInstance: Ref<({
|
|
40
42
|
$: ComponentInternalInstance;
|
|
@@ -46,7 +48,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
46
48
|
group: false | PlusFormGroupRow[];
|
|
47
49
|
modelValue: FieldValues;
|
|
48
50
|
rules: Partial<Record<string, Arrayable<FormItemRule>>>;
|
|
49
|
-
labelPosition: "top" | "
|
|
51
|
+
labelPosition: "top" | "right" | "left";
|
|
50
52
|
labelWidth: string | number;
|
|
51
53
|
labelSuffix: string;
|
|
52
54
|
hasLabel: boolean;
|
|
@@ -65,7 +67,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
65
67
|
submitText: string;
|
|
66
68
|
resetText: string;
|
|
67
69
|
submitLoading: boolean;
|
|
68
|
-
footerAlign: "
|
|
70
|
+
footerAlign: "right" | "left" | "center";
|
|
69
71
|
cardProps: Partial< Mutable<CardProps> & {
|
|
70
72
|
style?: CSSProperties | undefined;
|
|
71
73
|
class?: any;
|
|
@@ -77,7 +79,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
77
79
|
readonly group: false | PlusFormGroupRow[];
|
|
78
80
|
readonly modelValue: FieldValues;
|
|
79
81
|
readonly rules: Partial<Record<string, Arrayable<FormItemRule>>>;
|
|
80
|
-
readonly labelPosition: "top" | "
|
|
82
|
+
readonly labelPosition: "top" | "right" | "left";
|
|
81
83
|
readonly labelWidth: string | number;
|
|
82
84
|
readonly labelSuffix: string;
|
|
83
85
|
readonly hasLabel: boolean;
|
|
@@ -96,7 +98,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
96
98
|
readonly submitText: string;
|
|
97
99
|
readonly resetText: string;
|
|
98
100
|
readonly submitLoading: boolean;
|
|
99
|
-
readonly footerAlign: "
|
|
101
|
+
readonly footerAlign: "right" | "left" | "center";
|
|
100
102
|
readonly cardProps: Partial< Mutable<CardProps> & {
|
|
101
103
|
style?: CSSProperties | undefined;
|
|
102
104
|
class?: any;
|
|
@@ -137,7 +139,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
137
139
|
default: () => {};
|
|
138
140
|
};
|
|
139
141
|
labelPosition: {
|
|
140
|
-
type: PropType<"top" | "
|
|
142
|
+
type: PropType<"top" | "right" | "left">;
|
|
141
143
|
default: string;
|
|
142
144
|
};
|
|
143
145
|
labelWidth: {
|
|
@@ -195,7 +197,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
195
197
|
default: boolean;
|
|
196
198
|
};
|
|
197
199
|
footerAlign: {
|
|
198
|
-
type: PropType<"
|
|
200
|
+
type: PropType<"right" | "left" | "center">;
|
|
199
201
|
default: string;
|
|
200
202
|
};
|
|
201
203
|
cardProps: {
|
|
@@ -232,7 +234,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
232
234
|
}>;
|
|
233
235
|
$root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
|
|
234
236
|
$parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
|
|
235
|
-
$emit: ((event: "
|
|
237
|
+
$emit: ((event: "reset", values: FieldValues) => void) & ((event: "submit", values: FieldValues) => void) & ((event: "update:modelValue", values: FieldValues) => void) & ((event: "change", values: FieldValues, column: PlusColumn) => void) & ((event: "validate", ...args: any[]) => void) & ((event: "submitError", errors: unknown) => void);
|
|
236
238
|
$el: any;
|
|
237
239
|
$options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
238
240
|
collapseDuration: {
|
|
@@ -260,7 +262,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
260
262
|
default: () => {};
|
|
261
263
|
};
|
|
262
264
|
labelPosition: {
|
|
263
|
-
type: PropType<"top" | "
|
|
265
|
+
type: PropType<"top" | "right" | "left">;
|
|
264
266
|
default: string;
|
|
265
267
|
};
|
|
266
268
|
labelWidth: {
|
|
@@ -318,7 +320,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
318
320
|
default: boolean;
|
|
319
321
|
};
|
|
320
322
|
footerAlign: {
|
|
321
|
-
type: PropType<"
|
|
323
|
+
type: PropType<"right" | "left" | "center">;
|
|
322
324
|
default: string;
|
|
323
325
|
};
|
|
324
326
|
cardProps: {
|
|
@@ -352,8 +354,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
352
354
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
353
355
|
__epPropKey: true;
|
|
354
356
|
};
|
|
355
|
-
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "
|
|
356
|
-
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "
|
|
357
|
+
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "right" | "left", unknown, "right", boolean>;
|
|
358
|
+
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "right" | "left", unknown, "left", boolean>;
|
|
357
359
|
readonly labelWidth: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
358
360
|
readonly labelSuffix: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
359
361
|
readonly inline: BooleanConstructor;
|
|
@@ -370,7 +372,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
370
372
|
__epPropKey: true;
|
|
371
373
|
};
|
|
372
374
|
readonly size: {
|
|
373
|
-
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "
|
|
375
|
+
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>>;
|
|
374
376
|
readonly required: false;
|
|
375
377
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
376
378
|
__epPropKey: true;
|
|
@@ -388,8 +390,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
388
390
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
389
391
|
__epPropKey: true;
|
|
390
392
|
};
|
|
391
|
-
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "
|
|
392
|
-
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "
|
|
393
|
+
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "right" | "left", unknown, "right", boolean>;
|
|
394
|
+
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "right" | "left", unknown, "left", boolean>;
|
|
393
395
|
readonly labelWidth: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
394
396
|
readonly labelSuffix: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
395
397
|
readonly inline: BooleanConstructor;
|
|
@@ -406,7 +408,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
406
408
|
__epPropKey: true;
|
|
407
409
|
};
|
|
408
410
|
readonly size: {
|
|
409
|
-
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "
|
|
411
|
+
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>>;
|
|
410
412
|
readonly required: false;
|
|
411
413
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
412
414
|
__epPropKey: true;
|
|
@@ -417,7 +419,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
417
419
|
}>>;
|
|
418
420
|
emit: (event: "validate", prop: FormItemProp, isValid: boolean, message: string) => void;
|
|
419
421
|
fields: FormItemContext[];
|
|
420
|
-
formSize: ComputedRef<"" | "
|
|
422
|
+
formSize: ComputedRef<"" | "default" | "small" | "large">;
|
|
421
423
|
ns: {
|
|
422
424
|
namespace: ComputedRef<string>;
|
|
423
425
|
b: (blockSuffix?: string | undefined) => string;
|
|
@@ -437,7 +439,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
437
439
|
cssVarBlockName: (name: string) => string;
|
|
438
440
|
};
|
|
439
441
|
formClasses: ComputedRef<(string | {
|
|
440
|
-
[x: string]: boolean | EpPropMergeType<StringConstructor, "top" | "
|
|
442
|
+
[x: string]: boolean | EpPropMergeType<StringConstructor, "top" | "right" | "left", unknown>;
|
|
441
443
|
})[]>;
|
|
442
444
|
getField: (prop: string) => FormItemContext | undefined;
|
|
443
445
|
addField: (field: FormItemContext) => void;
|
|
@@ -460,8 +462,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
460
462
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
461
463
|
__epPropKey: true;
|
|
462
464
|
};
|
|
463
|
-
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "
|
|
464
|
-
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "
|
|
465
|
+
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "right" | "left", unknown, "right", boolean>;
|
|
466
|
+
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "right" | "left", unknown, "left", boolean>;
|
|
465
467
|
readonly labelWidth: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
466
468
|
readonly labelSuffix: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
467
469
|
readonly inline: BooleanConstructor;
|
|
@@ -478,7 +480,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
478
480
|
__epPropKey: true;
|
|
479
481
|
};
|
|
480
482
|
readonly size: {
|
|
481
|
-
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "
|
|
483
|
+
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>>;
|
|
482
484
|
readonly required: false;
|
|
483
485
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
484
486
|
__epPropKey: true;
|
|
@@ -488,8 +490,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
488
490
|
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
489
491
|
}, {
|
|
490
492
|
readonly disabled: boolean;
|
|
491
|
-
readonly labelPosition: EpPropMergeType<StringConstructor, "top" | "
|
|
492
|
-
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "
|
|
493
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "top" | "right" | "left", unknown>;
|
|
494
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "right" | "left", unknown>;
|
|
493
495
|
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
494
496
|
readonly labelSuffix: string;
|
|
495
497
|
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -514,8 +516,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
514
516
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
515
517
|
__epPropKey: true;
|
|
516
518
|
};
|
|
517
|
-
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "
|
|
518
|
-
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "
|
|
519
|
+
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "right" | "left", unknown, "right", boolean>;
|
|
520
|
+
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "right" | "left", unknown, "left", boolean>;
|
|
519
521
|
readonly labelWidth: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
520
522
|
readonly labelSuffix: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
521
523
|
readonly inline: BooleanConstructor;
|
|
@@ -532,7 +534,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
532
534
|
__epPropKey: true;
|
|
533
535
|
};
|
|
534
536
|
readonly size: {
|
|
535
|
-
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "
|
|
537
|
+
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>>;
|
|
536
538
|
readonly required: false;
|
|
537
539
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
538
540
|
__epPropKey: true;
|
|
@@ -550,8 +552,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
550
552
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
551
553
|
__epPropKey: true;
|
|
552
554
|
};
|
|
553
|
-
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "
|
|
554
|
-
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "
|
|
555
|
+
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "right" | "left", unknown, "right", boolean>;
|
|
556
|
+
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "right" | "left", unknown, "left", boolean>;
|
|
555
557
|
readonly labelWidth: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
556
558
|
readonly labelSuffix: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
557
559
|
readonly inline: BooleanConstructor;
|
|
@@ -568,7 +570,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
568
570
|
__epPropKey: true;
|
|
569
571
|
};
|
|
570
572
|
readonly size: {
|
|
571
|
-
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "
|
|
573
|
+
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>>;
|
|
572
574
|
readonly required: false;
|
|
573
575
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
574
576
|
__epPropKey: true;
|
|
@@ -579,7 +581,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
579
581
|
}>>;
|
|
580
582
|
emit: (event: "validate", prop: FormItemProp, isValid: boolean, message: string) => void;
|
|
581
583
|
fields: FormItemContext[];
|
|
582
|
-
formSize: ComputedRef<"" | "
|
|
584
|
+
formSize: ComputedRef<"" | "default" | "small" | "large">;
|
|
583
585
|
ns: {
|
|
584
586
|
namespace: ComputedRef<string>;
|
|
585
587
|
b: (blockSuffix?: string | undefined) => string;
|
|
@@ -599,7 +601,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
599
601
|
cssVarBlockName: (name: string) => string;
|
|
600
602
|
};
|
|
601
603
|
formClasses: ComputedRef<(string | {
|
|
602
|
-
[x: string]: boolean | EpPropMergeType<StringConstructor, "top" | "
|
|
604
|
+
[x: string]: boolean | EpPropMergeType<StringConstructor, "top" | "right" | "left", unknown>;
|
|
603
605
|
})[]>;
|
|
604
606
|
getField: (prop: string) => FormItemContext | undefined;
|
|
605
607
|
addField: (field: FormItemContext) => void;
|
|
@@ -614,8 +616,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
614
616
|
scrollToField: (prop: FormItemProp) => void;
|
|
615
617
|
}, {}, {}, {}, {
|
|
616
618
|
readonly disabled: boolean;
|
|
617
|
-
readonly labelPosition: EpPropMergeType<StringConstructor, "top" | "
|
|
618
|
-
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "
|
|
619
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "top" | "right" | "left", unknown>;
|
|
620
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "right" | "left", unknown>;
|
|
619
621
|
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
620
622
|
readonly labelSuffix: string;
|
|
621
623
|
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -642,7 +644,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
642
644
|
group: false | PlusFormGroupRow[];
|
|
643
645
|
modelValue: FieldValues;
|
|
644
646
|
rules: Partial<Record<string, Arrayable<FormItemRule>>>;
|
|
645
|
-
labelPosition: "top" | "
|
|
647
|
+
labelPosition: "top" | "right" | "left";
|
|
646
648
|
labelWidth: string | number;
|
|
647
649
|
labelSuffix: string;
|
|
648
650
|
hasLabel: boolean;
|
|
@@ -661,7 +663,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
661
663
|
submitText: string;
|
|
662
664
|
resetText: string;
|
|
663
665
|
submitLoading: boolean;
|
|
664
|
-
footerAlign: "
|
|
666
|
+
footerAlign: "right" | "left" | "center";
|
|
665
667
|
cardProps: Partial< Mutable<CardProps> & {
|
|
666
668
|
style?: CSSProperties | undefined;
|
|
667
669
|
class?: any;
|
|
@@ -714,7 +716,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
714
716
|
default: () => {};
|
|
715
717
|
};
|
|
716
718
|
labelPosition: {
|
|
717
|
-
type: PropType<"top" | "
|
|
719
|
+
type: PropType<"top" | "right" | "left">;
|
|
718
720
|
default: string;
|
|
719
721
|
};
|
|
720
722
|
labelWidth: {
|
|
@@ -772,7 +774,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
772
774
|
default: boolean;
|
|
773
775
|
};
|
|
774
776
|
footerAlign: {
|
|
775
|
-
type: PropType<"
|
|
777
|
+
type: PropType<"right" | "left" | "center">;
|
|
776
778
|
default: string;
|
|
777
779
|
};
|
|
778
780
|
cardProps: {
|
|
@@ -806,8 +808,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
806
808
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
807
809
|
__epPropKey: true;
|
|
808
810
|
};
|
|
809
|
-
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "
|
|
810
|
-
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "
|
|
811
|
+
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "right" | "left", unknown, "right", boolean>;
|
|
812
|
+
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "right" | "left", unknown, "left", boolean>;
|
|
811
813
|
readonly labelWidth: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
812
814
|
readonly labelSuffix: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
813
815
|
readonly inline: BooleanConstructor;
|
|
@@ -824,7 +826,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
824
826
|
__epPropKey: true;
|
|
825
827
|
};
|
|
826
828
|
readonly size: {
|
|
827
|
-
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "
|
|
829
|
+
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>>;
|
|
828
830
|
readonly required: false;
|
|
829
831
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
830
832
|
__epPropKey: true;
|
|
@@ -842,8 +844,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
842
844
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
843
845
|
__epPropKey: true;
|
|
844
846
|
};
|
|
845
|
-
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "
|
|
846
|
-
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "
|
|
847
|
+
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "right" | "left", unknown, "right", boolean>;
|
|
848
|
+
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "right" | "left", unknown, "left", boolean>;
|
|
847
849
|
readonly labelWidth: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
848
850
|
readonly labelSuffix: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
849
851
|
readonly inline: BooleanConstructor;
|
|
@@ -860,7 +862,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
860
862
|
__epPropKey: true;
|
|
861
863
|
};
|
|
862
864
|
readonly size: {
|
|
863
|
-
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "
|
|
865
|
+
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>>;
|
|
864
866
|
readonly required: false;
|
|
865
867
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
866
868
|
__epPropKey: true;
|
|
@@ -871,7 +873,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
871
873
|
}>>;
|
|
872
874
|
emit: (event: "validate", prop: FormItemProp, isValid: boolean, message: string) => void;
|
|
873
875
|
fields: FormItemContext[];
|
|
874
|
-
formSize: ComputedRef<"" | "
|
|
876
|
+
formSize: ComputedRef<"" | "default" | "small" | "large">;
|
|
875
877
|
ns: {
|
|
876
878
|
namespace: ComputedRef<string>;
|
|
877
879
|
b: (blockSuffix?: string | undefined) => string;
|
|
@@ -891,7 +893,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
891
893
|
cssVarBlockName: (name: string) => string;
|
|
892
894
|
};
|
|
893
895
|
formClasses: ComputedRef<(string | {
|
|
894
|
-
[x: string]: boolean | EpPropMergeType<StringConstructor, "top" | "
|
|
896
|
+
[x: string]: boolean | EpPropMergeType<StringConstructor, "top" | "right" | "left", unknown>;
|
|
895
897
|
})[]>;
|
|
896
898
|
getField: (prop: string) => FormItemContext | undefined;
|
|
897
899
|
addField: (field: FormItemContext) => void;
|
|
@@ -914,8 +916,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
914
916
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
915
917
|
__epPropKey: true;
|
|
916
918
|
};
|
|
917
|
-
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "
|
|
918
|
-
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "
|
|
919
|
+
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "right" | "left", unknown, "right", boolean>;
|
|
920
|
+
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "right" | "left", unknown, "left", boolean>;
|
|
919
921
|
readonly labelWidth: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
920
922
|
readonly labelSuffix: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
921
923
|
readonly inline: BooleanConstructor;
|
|
@@ -932,7 +934,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
932
934
|
__epPropKey: true;
|
|
933
935
|
};
|
|
934
936
|
readonly size: {
|
|
935
|
-
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "
|
|
937
|
+
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>>;
|
|
936
938
|
readonly required: false;
|
|
937
939
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
938
940
|
__epPropKey: true;
|
|
@@ -942,8 +944,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
942
944
|
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
943
945
|
}, {
|
|
944
946
|
readonly disabled: boolean;
|
|
945
|
-
readonly labelPosition: EpPropMergeType<StringConstructor, "top" | "
|
|
946
|
-
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "
|
|
947
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "top" | "right" | "left", unknown>;
|
|
948
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "right" | "left", unknown>;
|
|
947
949
|
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
948
950
|
readonly labelSuffix: string;
|
|
949
951
|
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -968,8 +970,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
968
970
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
969
971
|
__epPropKey: true;
|
|
970
972
|
};
|
|
971
|
-
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "
|
|
972
|
-
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "
|
|
973
|
+
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "right" | "left", unknown, "right", boolean>;
|
|
974
|
+
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "right" | "left", unknown, "left", boolean>;
|
|
973
975
|
readonly labelWidth: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
974
976
|
readonly labelSuffix: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
975
977
|
readonly inline: BooleanConstructor;
|
|
@@ -986,7 +988,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
986
988
|
__epPropKey: true;
|
|
987
989
|
};
|
|
988
990
|
readonly size: {
|
|
989
|
-
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "
|
|
991
|
+
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>>;
|
|
990
992
|
readonly required: false;
|
|
991
993
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
992
994
|
__epPropKey: true;
|
|
@@ -1004,8 +1006,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1004
1006
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1005
1007
|
__epPropKey: true;
|
|
1006
1008
|
};
|
|
1007
|
-
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "
|
|
1008
|
-
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "
|
|
1009
|
+
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "right" | "left", unknown, "right", boolean>;
|
|
1010
|
+
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "right" | "left", unknown, "left", boolean>;
|
|
1009
1011
|
readonly labelWidth: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
1010
1012
|
readonly labelSuffix: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
1011
1013
|
readonly inline: BooleanConstructor;
|
|
@@ -1022,7 +1024,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1022
1024
|
__epPropKey: true;
|
|
1023
1025
|
};
|
|
1024
1026
|
readonly size: {
|
|
1025
|
-
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "
|
|
1027
|
+
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>>;
|
|
1026
1028
|
readonly required: false;
|
|
1027
1029
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1028
1030
|
__epPropKey: true;
|
|
@@ -1033,7 +1035,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1033
1035
|
}>>;
|
|
1034
1036
|
emit: (event: "validate", prop: FormItemProp, isValid: boolean, message: string) => void;
|
|
1035
1037
|
fields: FormItemContext[];
|
|
1036
|
-
formSize: ComputedRef<"" | "
|
|
1038
|
+
formSize: ComputedRef<"" | "default" | "small" | "large">;
|
|
1037
1039
|
ns: {
|
|
1038
1040
|
namespace: ComputedRef<string>;
|
|
1039
1041
|
b: (blockSuffix?: string | undefined) => string;
|
|
@@ -1053,7 +1055,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1053
1055
|
cssVarBlockName: (name: string) => string;
|
|
1054
1056
|
};
|
|
1055
1057
|
formClasses: ComputedRef<(string | {
|
|
1056
|
-
[x: string]: boolean | EpPropMergeType<StringConstructor, "top" | "
|
|
1058
|
+
[x: string]: boolean | EpPropMergeType<StringConstructor, "top" | "right" | "left", unknown>;
|
|
1057
1059
|
})[]>;
|
|
1058
1060
|
getField: (prop: string) => FormItemContext | undefined;
|
|
1059
1061
|
addField: (field: FormItemContext) => void;
|
|
@@ -1068,8 +1070,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1068
1070
|
scrollToField: (prop: FormItemProp) => void;
|
|
1069
1071
|
}, {}, {}, {}, {
|
|
1070
1072
|
readonly disabled: boolean;
|
|
1071
|
-
readonly labelPosition: EpPropMergeType<StringConstructor, "top" | "
|
|
1072
|
-
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "
|
|
1073
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "top" | "right" | "left", unknown>;
|
|
1074
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "right" | "left", unknown>;
|
|
1073
1075
|
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
1074
1076
|
readonly labelSuffix: string;
|
|
1075
1077
|
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -1097,7 +1099,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1097
1099
|
}) => any>> & Partial<Record<NonNullable<string | number>, (_: {
|
|
1098
1100
|
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap">> & {
|
|
1099
1101
|
readonly label: string | ComputedRef<string>;
|
|
1100
|
-
readonly modelValue: string | number | boolean | string[] | [string, string] |
|
|
1102
|
+
readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
1101
1103
|
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
1102
1104
|
readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
1103
1105
|
style?: CSSProperties | undefined;
|
|
@@ -1124,7 +1126,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1124
1126
|
};
|
|
1125
1127
|
rows: number;
|
|
1126
1128
|
autocomplete: string;
|
|
1127
|
-
type: "" | "number" | "
|
|
1129
|
+
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";
|
|
1128
1130
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
1129
1131
|
step: string | number;
|
|
1130
1132
|
format: string | ProgressFn | undefined;
|
|
@@ -1163,7 +1165,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1163
1165
|
fieldInstance?: any;
|
|
1164
1166
|
valueIsReady?: Ref<boolean> | undefined;
|
|
1165
1167
|
prop: string;
|
|
1166
|
-
modelValue: string | number | boolean | string[] | [string, string] |
|
|
1168
|
+
modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
1167
1169
|
hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
1168
1170
|
tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
1169
1171
|
style?: CSSProperties | undefined;
|
|
@@ -1193,7 +1195,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1193
1195
|
}) => any>> & Partial<Record<NonNullable<string | number>, (_: {
|
|
1194
1196
|
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap">> & {
|
|
1195
1197
|
readonly label: string | ComputedRef<string>;
|
|
1196
|
-
readonly modelValue: string | number | boolean | string[] | [string, string] |
|
|
1198
|
+
readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
1197
1199
|
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
1198
1200
|
readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
1199
1201
|
style?: CSSProperties | undefined;
|
|
@@ -1220,7 +1222,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1220
1222
|
};
|
|
1221
1223
|
rows: number;
|
|
1222
1224
|
autocomplete: string;
|
|
1223
|
-
type: "" | "number" | "
|
|
1225
|
+
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";
|
|
1224
1226
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
1225
1227
|
step: string | number;
|
|
1226
1228
|
format: string | ProgressFn | undefined;
|
|
@@ -1259,7 +1261,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1259
1261
|
fieldInstance?: any;
|
|
1260
1262
|
valueIsReady?: Ref<boolean> | undefined;
|
|
1261
1263
|
prop: string;
|
|
1262
|
-
modelValue: string | number | boolean | string[] | [string, string] |
|
|
1264
|
+
modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
1263
1265
|
hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
1264
1266
|
tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
1265
1267
|
style?: CSSProperties | undefined;
|
|
@@ -1336,6 +1338,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1336
1338
|
xl: number;
|
|
1337
1339
|
};
|
|
1338
1340
|
needValidate: boolean;
|
|
1341
|
+
searchIcon: undefined;
|
|
1342
|
+
resetIcon: undefined;
|
|
1339
1343
|
}>>> & {
|
|
1340
1344
|
onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
|
|
1341
1345
|
onReset?: ((values: FieldValues) => any) | undefined;
|
|
@@ -1345,7 +1349,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1345
1349
|
}, {
|
|
1346
1350
|
columns: PlusColumn[];
|
|
1347
1351
|
modelValue: FieldValues;
|
|
1348
|
-
labelPosition: "top" | "
|
|
1352
|
+
labelPosition: "top" | "right" | "left";
|
|
1349
1353
|
inline: boolean;
|
|
1350
1354
|
showNumber: number;
|
|
1351
1355
|
defaultValues: FieldValues;
|
|
@@ -1367,10 +1371,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1367
1371
|
expandText: string;
|
|
1368
1372
|
searchLoading: boolean;
|
|
1369
1373
|
needValidate: boolean;
|
|
1374
|
+
searchIcon: Component | null;
|
|
1375
|
+
resetIcon: Component | null;
|
|
1370
1376
|
}, {}>, Partial<Record<NonNullable<string | number>, (_: {
|
|
1371
1377
|
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap">> & {
|
|
1372
1378
|
readonly label: string | ComputedRef<string>;
|
|
1373
|
-
readonly modelValue: string | number | boolean | string[] | [string, string] |
|
|
1379
|
+
readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
1374
1380
|
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
1375
1381
|
readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
1376
1382
|
style?: CSSProperties | undefined;
|
|
@@ -1397,7 +1403,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1397
1403
|
};
|
|
1398
1404
|
rows: number;
|
|
1399
1405
|
autocomplete: string;
|
|
1400
|
-
type: "" | "number" | "
|
|
1406
|
+
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";
|
|
1401
1407
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
1402
1408
|
step: string | number;
|
|
1403
1409
|
format: string | ProgressFn | undefined;
|
|
@@ -1436,7 +1442,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1436
1442
|
fieldInstance?: any;
|
|
1437
1443
|
valueIsReady?: Ref<boolean> | undefined;
|
|
1438
1444
|
prop: string;
|
|
1439
|
-
modelValue: string | number | boolean | string[] | [string, string] |
|
|
1445
|
+
modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
1440
1446
|
hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
1441
1447
|
tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
1442
1448
|
style?: CSSProperties | undefined;
|
|
@@ -42,7 +42,9 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
42
42
|
lg: 8,
|
|
43
43
|
xl: 6
|
|
44
44
|
}) },
|
|
45
|
-
needValidate: { type: Boolean, default: false }
|
|
45
|
+
needValidate: { type: Boolean, default: false },
|
|
46
|
+
searchIcon: { default: void 0 },
|
|
47
|
+
resetIcon: { default: void 0 }
|
|
46
48
|
},
|
|
47
49
|
emits: ["update:modelValue", "search", "change", "reset", "collapse"],
|
|
48
50
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
@@ -60,6 +62,14 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
60
62
|
const unfoldText = vue.computed(
|
|
61
63
|
() => isShowUnfold.value ? props.retractText || t("plus.search.retract") : props.expandText || t("plus.search.expand")
|
|
62
64
|
);
|
|
65
|
+
const computedSearchIcon = vue.computed(() => {
|
|
66
|
+
if (props.searchIcon === null) return void 0;
|
|
67
|
+
return props.searchIcon !== void 0 ? props.searchIcon : ElementPlusIconsVue.Search;
|
|
68
|
+
});
|
|
69
|
+
const computedResetIcon = vue.computed(() => {
|
|
70
|
+
if (props.resetIcon === null) return void 0;
|
|
71
|
+
return props.resetIcon !== void 0 ? props.resetIcon : ElementPlusIconsVue.RefreshRight;
|
|
72
|
+
});
|
|
63
73
|
const originData = vue.computed(() => {
|
|
64
74
|
const filterData = props.columns.filter((item) => vue.unref(item.hideInSearch) !== true).map((item) => ({ ...item, hideInForm: false })).map((item) => ({ ...item, order: (item == null ? void 0 : item.order) ? vue.unref(item.order) : 0 }));
|
|
65
75
|
return lodashEs.orderBy(filterData, ["order"], ["desc"]);
|
|
@@ -146,7 +156,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
146
156
|
}, () => [
|
|
147
157
|
_ctx.hasReset ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElButton), {
|
|
148
158
|
key: 0,
|
|
149
|
-
icon:
|
|
159
|
+
icon: computedResetIcon.value,
|
|
150
160
|
onClick: handleReset
|
|
151
161
|
}, {
|
|
152
162
|
default: vue.withCtx(() => [
|
|
@@ -162,7 +172,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
162
172
|
vue.createVNode(vue.unref(elementPlus.ElButton), {
|
|
163
173
|
type: "primary",
|
|
164
174
|
loading: _ctx.searchLoading,
|
|
165
|
-
icon:
|
|
175
|
+
icon: computedSearchIcon.value,
|
|
166
176
|
onClick: handleSearch.value
|
|
167
177
|
}, {
|
|
168
178
|
default: vue.withCtx(() => [
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PlusFormProps } from 'yc-pro-components/es/components';
|
|
2
2
|
import { PlusColumn, FieldValues, PlusColProps, PlusRowProps } from 'yc-pro-components/es/types';
|
|
3
|
+
import { Component } from 'vue';
|
|
3
4
|
|
|
4
5
|
export type PlusSearchSelfProps = {
|
|
5
6
|
modelValue?: FieldValues;
|
|
@@ -30,6 +31,14 @@ export type PlusSearchSelfProps = {
|
|
|
30
31
|
* @default false
|
|
31
32
|
*/
|
|
32
33
|
needValidate?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* 搜索按钮图标,传入 undefined 或 null 隐藏图标
|
|
36
|
+
*/
|
|
37
|
+
searchIcon?: Component | undefined | null;
|
|
38
|
+
/**
|
|
39
|
+
* 重置按钮图标,传入 undefined 或 null 隐藏图标
|
|
40
|
+
*/
|
|
41
|
+
resetIcon?: Component | undefined | null;
|
|
33
42
|
};
|
|
34
43
|
export type PlusSearchProps = PlusSearchSelfProps & PlusFormProps;
|
|
35
44
|
export interface PlusSearchEmits {
|