yc-pro-components 0.0.11 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/check-card/index.d.ts +61 -61
- package/es/components/check-card/src/index.vue.d.ts +4 -4
- package/es/components/check-card-group/index.d.ts +43 -43
- package/es/components/check-card-group/src/index.vue.d.ts +3 -3
- package/es/components/date-picker/index.d.ts +10 -10
- package/es/components/date-picker/src/index.vue.d.ts +2 -2
- package/es/components/dialog/index.d.ts +26 -26
- package/es/components/dialog/src/index.vue.d.ts +2 -2
- package/es/components/dialog-form/index.d.ts +44 -32
- package/es/components/dialog-form/src/index.vue.d.ts +22 -10
- package/es/components/display-item/index.d.ts +80 -44
- package/es/components/display-item/src/index.vue.d.ts +61 -25
- package/es/components/drawer-form/index.d.ts +63 -51
- package/es/components/drawer-form/src/index.vue.d.ts +23 -11
- package/es/components/form/index.d.ts +71 -47
- package/es/components/form/src/form-content.vue.d.ts +60 -24
- package/es/components/form/src/index.vue.d.ts +43 -19
- package/es/components/form-item/index.d.ts +129 -57
- package/es/components/form-item/src/index.vue.d.ts +46 -15
- package/es/components/form-item/src/index.vue2.mjs +1 -0
- package/es/components/header/index.d.ts +19 -19
- package/es/components/header/src/index.vue.d.ts +1 -1
- package/es/components/input-tag/index.d.ts +20 -20
- package/es/components/input-tag/src/index.vue.d.ts +8 -8
- package/es/components/layout/index.d.ts +30 -30
- package/es/components/layout/src/index.vue.d.ts +10 -10
- package/es/components/page/index.d.ts +751 -469
- package/es/components/page/src/index.vue.d.ts +263 -161
- package/es/components/page/src/index.vue2.mjs +1 -1
- package/es/components/pagination/index.d.ts +42 -42
- package/es/components/pagination/src/index.vue.d.ts +3 -3
- package/es/components/radio/index.d.ts +35 -35
- package/es/components/radio/src/index.vue.d.ts +27 -27
- package/es/components/render/index.d.ts +6 -6
- package/es/components/render/src/index.vue.d.ts +2 -2
- package/es/components/search/index.d.ts +284 -162
- package/es/components/search/src/index.vue.d.ts +95 -53
- 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/steps-form/index.d.ts +23 -23
- package/es/components/steps-form/src/index.vue.d.ts +2 -2
- package/es/components/table/index.d.ts +54 -54
- package/es/components/table/src/index.vue.d.ts +18 -18
- package/es/components/table/src/table-action-bar.vue2.mjs +1 -1
- package/es/components/table/src/table-column-drag-sort.vue.d.ts +18 -18
- package/es/components/table/src/table-column.vue.d.ts +76 -40
- package/es/components/utils/index.d.ts +2 -2
- package/es/components/yc-dialog/index.d.ts +24 -24
- package/es/components/yc-download-dialog/index.d.ts +19 -19
- package/es/components/yc-download-dialog/src/index.vue.d.ts +1 -1
- package/es/components/yc-form-container-header/index.d.ts +12 -12
- package/es/components/yc-more-actions/index.d.ts +46 -46
- package/es/components/yc-more-actions/src/index.vue.d.ts +3 -3
- package/es/components/yc-plus-page/src/index.vue.d.ts +588 -529
- 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-segmented/index.d.ts +2 -2
- package/es/components/yc-segmented/src/index.d.ts +2 -2
- package/es/components/yc-select-v2/src/index.vue.d.ts +3 -3
- package/es/components/yc-status-dialog/src/index.vue.d.ts +1 -1
- package/es/components/yc-tabs-with-filter/index.d.ts +16 -16
- package/es/components/yc-text/src/index.vue.d.ts +2 -2
- package/es/constants/dict.d.ts +78 -0
- package/es/constants/dict.mjs +3 -0
- package/es/constants/index.d.ts +1 -0
- package/es/constants/index.mjs +1 -0
- package/es/hooks/index.d.ts +1 -0
- package/es/hooks/index.mjs +1 -0
- package/es/hooks/useDictInjection.d.ts +38 -0
- package/es/hooks/useDictInjection.mjs +18 -0
- package/es/hooks/useGetOptions.mjs +118 -30
- package/es/hooks/usePlusFormReset.d.ts +286 -214
- package/es/index.css +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.mjs +2 -0
- package/es/types/plus.d.ts +74 -0
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/yc-components/index.d.ts +1 -1
- package/es/yc-components/version.d.ts +1 -1
- package/index.css +9 -5
- package/index.js +187 -65
- package/index.min.css +1 -1
- package/index.min.js +7 -7
- package/index.min.mjs +7 -7
- package/index.mjs +187 -67
- package/lib/components/check-card/index.d.ts +61 -61
- package/lib/components/check-card/src/index.vue.d.ts +4 -4
- package/lib/components/check-card-group/index.d.ts +43 -43
- package/lib/components/check-card-group/src/index.vue.d.ts +3 -3
- package/lib/components/date-picker/index.d.ts +10 -10
- package/lib/components/date-picker/src/index.vue.d.ts +2 -2
- package/lib/components/dialog/index.d.ts +26 -26
- package/lib/components/dialog/src/index.vue.d.ts +2 -2
- package/lib/components/dialog-form/index.d.ts +44 -32
- package/lib/components/dialog-form/src/index.vue.d.ts +22 -10
- package/lib/components/display-item/index.d.ts +80 -44
- package/lib/components/display-item/src/index.vue.d.ts +61 -25
- package/lib/components/drawer-form/index.d.ts +63 -51
- package/lib/components/drawer-form/src/index.vue.d.ts +23 -11
- package/lib/components/form/index.d.ts +71 -47
- package/lib/components/form/src/form-content.vue.d.ts +60 -24
- package/lib/components/form/src/index.vue.d.ts +43 -19
- package/lib/components/form-item/index.d.ts +129 -57
- package/lib/components/form-item/src/index.vue.d.ts +46 -15
- package/lib/components/form-item/src/index.vue2.js +1 -0
- package/lib/components/header/index.d.ts +19 -19
- package/lib/components/header/src/index.vue.d.ts +1 -1
- package/lib/components/input-tag/index.d.ts +20 -20
- package/lib/components/input-tag/src/index.vue.d.ts +8 -8
- package/lib/components/layout/index.d.ts +30 -30
- package/lib/components/layout/src/index.vue.d.ts +10 -10
- package/lib/components/page/index.d.ts +751 -469
- package/lib/components/page/src/index.vue.d.ts +263 -161
- package/lib/components/page/src/index.vue2.js +1 -1
- package/lib/components/pagination/index.d.ts +42 -42
- package/lib/components/pagination/src/index.vue.d.ts +3 -3
- package/lib/components/radio/index.d.ts +35 -35
- package/lib/components/radio/src/index.vue.d.ts +27 -27
- package/lib/components/render/index.d.ts +6 -6
- package/lib/components/render/src/index.vue.d.ts +2 -2
- package/lib/components/search/index.d.ts +284 -162
- package/lib/components/search/src/index.vue.d.ts +95 -53
- 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/steps-form/index.d.ts +23 -23
- package/lib/components/steps-form/src/index.vue.d.ts +2 -2
- package/lib/components/table/index.d.ts +54 -54
- package/lib/components/table/src/index.vue.d.ts +18 -18
- package/lib/components/table/src/table-action-bar.vue2.js +1 -1
- package/lib/components/table/src/table-column-drag-sort.vue.d.ts +18 -18
- package/lib/components/table/src/table-column.vue.d.ts +76 -40
- package/lib/components/utils/index.d.ts +2 -2
- package/lib/components/yc-dialog/index.d.ts +24 -24
- package/lib/components/yc-download-dialog/index.d.ts +19 -19
- package/lib/components/yc-download-dialog/src/index.vue.d.ts +1 -1
- package/lib/components/yc-form-container-header/index.d.ts +12 -12
- package/lib/components/yc-more-actions/index.d.ts +46 -46
- package/lib/components/yc-more-actions/src/index.vue.d.ts +3 -3
- package/lib/components/yc-plus-page/src/index.vue.d.ts +588 -529
- 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-segmented/index.d.ts +2 -2
- package/lib/components/yc-segmented/src/index.d.ts +2 -2
- package/lib/components/yc-select-v2/src/index.vue.d.ts +3 -3
- package/lib/components/yc-status-dialog/src/index.vue.d.ts +1 -1
- package/lib/components/yc-tabs-with-filter/index.d.ts +16 -16
- package/lib/components/yc-text/src/index.vue.d.ts +2 -2
- package/lib/constants/dict.d.ts +78 -0
- package/lib/constants/dict.js +5 -0
- package/lib/constants/index.d.ts +1 -0
- package/lib/constants/index.js +2 -0
- package/lib/hooks/index.d.ts +1 -0
- package/lib/hooks/index.js +2 -0
- package/lib/hooks/useDictInjection.d.ts +38 -0
- package/lib/hooks/useDictInjection.js +20 -0
- package/lib/hooks/useGetOptions.js +117 -29
- package/lib/hooks/usePlusFormReset.d.ts +286 -214
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +4 -0
- package/lib/types/plus.d.ts +74 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/yc-components/index.d.ts +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
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/plus-page.css +1 -1
- package/theme-chalk/src/page.scss +1 -1
|
@@ -35,16 +35,18 @@ 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;
|
|
41
43
|
$data: {};
|
|
42
44
|
$props: Partial<{
|
|
43
|
-
modelValue: FieldValues;
|
|
44
45
|
collapseDuration: number;
|
|
45
46
|
collapseTransition: boolean;
|
|
46
47
|
columns: PlusColumn[];
|
|
47
48
|
group: false | PlusFormGroupRow[];
|
|
49
|
+
modelValue: FieldValues;
|
|
48
50
|
rules: Partial<Record<string, Arrayable<FormItemRule>>>;
|
|
49
51
|
labelPosition: "top" | "right" | "left";
|
|
50
52
|
labelWidth: string | number;
|
|
@@ -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;
|
|
@@ -73,9 +75,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
73
75
|
prevent: boolean;
|
|
74
76
|
clearable: boolean;
|
|
75
77
|
}> & Omit<{
|
|
76
|
-
readonly modelValue: FieldValues;
|
|
77
78
|
readonly columns: PlusColumn[];
|
|
78
79
|
readonly group: false | PlusFormGroupRow[];
|
|
80
|
+
readonly modelValue: FieldValues;
|
|
79
81
|
readonly rules: Partial<Record<string, Arrayable<FormItemRule>>>;
|
|
80
82
|
readonly labelPosition: "top" | "right" | "left";
|
|
81
83
|
readonly labelWidth: string | number;
|
|
@@ -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;
|
|
@@ -105,17 +107,13 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
105
107
|
readonly clearable: boolean;
|
|
106
108
|
readonly collapseDuration?: number | undefined;
|
|
107
109
|
readonly collapseTransition?: boolean | undefined;
|
|
108
|
-
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
109
110
|
onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
|
|
110
111
|
onReset?: ((values: FieldValues) => any) | undefined;
|
|
111
112
|
onSubmit?: ((values: FieldValues) => any) | undefined;
|
|
113
|
+
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
112
114
|
onValidate?: ((...args: any[]) => any) | undefined;
|
|
113
115
|
onSubmitError?: ((errors: unknown) => any) | undefined;
|
|
114
116
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
115
|
-
modelValue: {
|
|
116
|
-
type: PropType<FieldValues>;
|
|
117
|
-
default: () => {};
|
|
118
|
-
};
|
|
119
117
|
collapseDuration: {
|
|
120
118
|
type: PropType<number>;
|
|
121
119
|
default: undefined;
|
|
@@ -132,6 +130,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
132
130
|
type: PropType<false | PlusFormGroupRow[]>;
|
|
133
131
|
default: boolean;
|
|
134
132
|
};
|
|
133
|
+
modelValue: {
|
|
134
|
+
type: PropType<FieldValues>;
|
|
135
|
+
default: () => {};
|
|
136
|
+
};
|
|
135
137
|
rules: {
|
|
136
138
|
type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
137
139
|
default: () => {};
|
|
@@ -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: {
|
|
@@ -214,13 +216,13 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
214
216
|
default: boolean;
|
|
215
217
|
};
|
|
216
218
|
}>> & {
|
|
217
|
-
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
218
219
|
onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
|
|
219
220
|
onReset?: ((values: FieldValues) => any) | undefined;
|
|
220
221
|
onSubmit?: ((values: FieldValues) => any) | undefined;
|
|
222
|
+
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
221
223
|
onValidate?: ((...args: any[]) => any) | undefined;
|
|
222
224
|
onSubmitError?: ((errors: unknown) => any) | undefined;
|
|
223
|
-
}, "
|
|
225
|
+
}, "collapseDuration" | "collapseTransition" | "columns" | "group" | "modelValue" | "rules" | "labelPosition" | "labelWidth" | "labelSuffix" | "hasLabel" | "defaultValues" | "rowProps" | "colProps" | "hasErrorTip" | "hasFooter" | "hasReset" | "submitText" | "resetText" | "submitLoading" | "footerAlign" | "cardProps" | "prevent" | "clearable">;
|
|
224
226
|
$attrs: {
|
|
225
227
|
[x: string]: unknown;
|
|
226
228
|
};
|
|
@@ -232,13 +234,9 @@ 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
|
-
modelValue: {
|
|
239
|
-
type: PropType<FieldValues>;
|
|
240
|
-
default: () => {};
|
|
241
|
-
};
|
|
242
240
|
collapseDuration: {
|
|
243
241
|
type: PropType<number>;
|
|
244
242
|
default: undefined;
|
|
@@ -255,6 +253,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
255
253
|
type: PropType<false | PlusFormGroupRow[]>;
|
|
256
254
|
default: boolean;
|
|
257
255
|
};
|
|
256
|
+
modelValue: {
|
|
257
|
+
type: PropType<FieldValues>;
|
|
258
|
+
default: () => {};
|
|
259
|
+
};
|
|
258
260
|
rules: {
|
|
259
261
|
type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
260
262
|
default: () => {};
|
|
@@ -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: {
|
|
@@ -337,10 +339,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
337
339
|
default: boolean;
|
|
338
340
|
};
|
|
339
341
|
}>> & {
|
|
340
|
-
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
341
342
|
onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
|
|
342
343
|
onReset?: ((values: FieldValues) => any) | undefined;
|
|
343
344
|
onSubmit?: ((values: FieldValues) => any) | undefined;
|
|
345
|
+
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
344
346
|
onValidate?: ((...args: any[]) => any) | undefined;
|
|
345
347
|
onSubmitError?: ((errors: unknown) => any) | undefined;
|
|
346
348
|
}, {
|
|
@@ -636,11 +638,11 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
636
638
|
submitError: (errors: unknown) => void;
|
|
637
639
|
validate: (...args: any[]) => void;
|
|
638
640
|
}, string, {
|
|
639
|
-
modelValue: FieldValues;
|
|
640
641
|
collapseDuration: number;
|
|
641
642
|
collapseTransition: boolean;
|
|
642
643
|
columns: PlusColumn[];
|
|
643
644
|
group: false | PlusFormGroupRow[];
|
|
645
|
+
modelValue: FieldValues;
|
|
644
646
|
rules: Partial<Record<string, Arrayable<FormItemRule>>>;
|
|
645
647
|
labelPosition: "top" | "right" | "left";
|
|
646
648
|
labelWidth: string | number;
|
|
@@ -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;
|
|
@@ -689,10 +691,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
689
691
|
$nextTick: nextTick;
|
|
690
692
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: WatchOptions<boolean> | undefined): WatchStopHandle;
|
|
691
693
|
} & Omit<Readonly< ExtractPropTypes<{
|
|
692
|
-
modelValue: {
|
|
693
|
-
type: PropType<FieldValues>;
|
|
694
|
-
default: () => {};
|
|
695
|
-
};
|
|
696
694
|
collapseDuration: {
|
|
697
695
|
type: PropType<number>;
|
|
698
696
|
default: undefined;
|
|
@@ -709,6 +707,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
709
707
|
type: PropType<false | PlusFormGroupRow[]>;
|
|
710
708
|
default: boolean;
|
|
711
709
|
};
|
|
710
|
+
modelValue: {
|
|
711
|
+
type: PropType<FieldValues>;
|
|
712
|
+
default: () => {};
|
|
713
|
+
};
|
|
712
714
|
rules: {
|
|
713
715
|
type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
714
716
|
default: () => {};
|
|
@@ -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: {
|
|
@@ -791,10 +793,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
791
793
|
default: boolean;
|
|
792
794
|
};
|
|
793
795
|
}>> & {
|
|
794
|
-
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
795
796
|
onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
|
|
796
797
|
onReset?: ((values: FieldValues) => any) | undefined;
|
|
797
798
|
onSubmit?: ((values: FieldValues) => any) | undefined;
|
|
799
|
+
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
798
800
|
onValidate?: ((...args: any[]) => any) | undefined;
|
|
799
801
|
onSubmitError?: ((errors: unknown) => any) | undefined;
|
|
800
802
|
}, "formInstance" | "handleSubmit" | "handleReset"> & ShallowUnwrapRef<{
|
|
@@ -1095,14 +1097,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1095
1097
|
hideInGroup?: boolean | ComputedRef<boolean> | undefined;
|
|
1096
1098
|
columns?: PlusColumn[] | undefined;
|
|
1097
1099
|
}) => any>> & Partial<Record<NonNullable<string | number>, (_: {
|
|
1098
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "
|
|
1100
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
|
|
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
|
-
readonly tooltip: string |
|
|
1104
|
+
readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
1103
1105
|
style?: CSSProperties | undefined;
|
|
1104
1106
|
class?: any;
|
|
1105
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
1107
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
1106
1108
|
style?: CSSProperties | undefined;
|
|
1107
1109
|
class?: any;
|
|
1108
1110
|
} & RecordType>>;
|
|
@@ -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" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "
|
|
1129
|
+
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "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;
|
|
@@ -1151,6 +1153,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1151
1153
|
label?: string | undefined;
|
|
1152
1154
|
value?: string | undefined;
|
|
1153
1155
|
} | undefined;
|
|
1156
|
+
readonly autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
|
|
1157
|
+
store?: any;
|
|
1158
|
+
method?: string | undefined;
|
|
1159
|
+
transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
|
|
1160
|
+
dictCode?: string | undefined;
|
|
1161
|
+
} | undefined;
|
|
1154
1162
|
readonly clearable: boolean;
|
|
1155
1163
|
readonly index: number;
|
|
1156
1164
|
} & {
|
|
@@ -1163,12 +1171,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1163
1171
|
fieldInstance?: any;
|
|
1164
1172
|
valueIsReady?: Ref<boolean> | undefined;
|
|
1165
1173
|
prop: string;
|
|
1166
|
-
modelValue: string | number | boolean | string[] | [string, string] |
|
|
1174
|
+
modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
1167
1175
|
hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
1168
|
-
tooltip: string |
|
|
1176
|
+
tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
1169
1177
|
style?: CSSProperties | undefined;
|
|
1170
1178
|
class?: any;
|
|
1171
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
1179
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
1172
1180
|
style?: CSSProperties | undefined;
|
|
1173
1181
|
class?: any;
|
|
1174
1182
|
} & RecordType>>;
|
|
@@ -1188,17 +1196,23 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1188
1196
|
label?: string | undefined;
|
|
1189
1197
|
value?: string | undefined;
|
|
1190
1198
|
} | undefined;
|
|
1199
|
+
autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
|
|
1200
|
+
store?: any;
|
|
1201
|
+
method?: string | undefined;
|
|
1202
|
+
transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
|
|
1203
|
+
dictCode?: string | undefined;
|
|
1204
|
+
} | undefined;
|
|
1191
1205
|
clearable: boolean;
|
|
1192
1206
|
index: number;
|
|
1193
1207
|
}) => any>> & Partial<Record<NonNullable<string | number>, (_: {
|
|
1194
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "
|
|
1208
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
|
|
1195
1209
|
readonly label: string | ComputedRef<string>;
|
|
1196
|
-
readonly modelValue: string | number | boolean | string[] | [string, string] |
|
|
1210
|
+
readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
1197
1211
|
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
1198
|
-
readonly tooltip: string |
|
|
1212
|
+
readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
1199
1213
|
style?: CSSProperties | undefined;
|
|
1200
1214
|
class?: any;
|
|
1201
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
1215
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
1202
1216
|
style?: CSSProperties | undefined;
|
|
1203
1217
|
class?: any;
|
|
1204
1218
|
} & RecordType>>;
|
|
@@ -1220,7 +1234,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1220
1234
|
};
|
|
1221
1235
|
rows: number;
|
|
1222
1236
|
autocomplete: string;
|
|
1223
|
-
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "
|
|
1237
|
+
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
|
|
1224
1238
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
1225
1239
|
step: string | number;
|
|
1226
1240
|
format: string | ProgressFn | undefined;
|
|
@@ -1247,6 +1261,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1247
1261
|
label?: string | undefined;
|
|
1248
1262
|
value?: string | undefined;
|
|
1249
1263
|
} | undefined;
|
|
1264
|
+
readonly autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
|
|
1265
|
+
store?: any;
|
|
1266
|
+
method?: string | undefined;
|
|
1267
|
+
transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
|
|
1268
|
+
dictCode?: string | undefined;
|
|
1269
|
+
} | undefined;
|
|
1250
1270
|
readonly clearable: boolean;
|
|
1251
1271
|
readonly index: number;
|
|
1252
1272
|
} & {
|
|
@@ -1259,12 +1279,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1259
1279
|
fieldInstance?: any;
|
|
1260
1280
|
valueIsReady?: Ref<boolean> | undefined;
|
|
1261
1281
|
prop: string;
|
|
1262
|
-
modelValue: string | number | boolean | string[] | [string, string] |
|
|
1282
|
+
modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
1263
1283
|
hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
1264
|
-
tooltip: string |
|
|
1284
|
+
tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
1265
1285
|
style?: CSSProperties | undefined;
|
|
1266
1286
|
class?: any;
|
|
1267
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
1287
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
1268
1288
|
style?: CSSProperties | undefined;
|
|
1269
1289
|
class?: any;
|
|
1270
1290
|
} & RecordType>>;
|
|
@@ -1284,6 +1304,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1284
1304
|
label?: string | undefined;
|
|
1285
1305
|
value?: string | undefined;
|
|
1286
1306
|
} | undefined;
|
|
1307
|
+
autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
|
|
1308
|
+
store?: any;
|
|
1309
|
+
method?: string | undefined;
|
|
1310
|
+
transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
|
|
1311
|
+
dictCode?: string | undefined;
|
|
1312
|
+
} | undefined;
|
|
1287
1313
|
clearable: boolean;
|
|
1288
1314
|
index: number;
|
|
1289
1315
|
}) => any>> & {
|
|
@@ -1336,15 +1362,17 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1336
1362
|
xl: number;
|
|
1337
1363
|
};
|
|
1338
1364
|
needValidate: boolean;
|
|
1365
|
+
searchIcon: undefined;
|
|
1366
|
+
resetIcon: undefined;
|
|
1339
1367
|
}>>> & {
|
|
1340
|
-
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
1341
1368
|
onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
|
|
1342
1369
|
onReset?: ((values: FieldValues) => any) | undefined;
|
|
1370
|
+
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
1343
1371
|
onSearch?: ((values: FieldValues) => any) | undefined;
|
|
1344
1372
|
onCollapse?: ((isShowUnfold: boolean) => any) | undefined;
|
|
1345
1373
|
}, {
|
|
1346
|
-
modelValue: FieldValues;
|
|
1347
1374
|
columns: PlusColumn[];
|
|
1375
|
+
modelValue: FieldValues;
|
|
1348
1376
|
labelPosition: "top" | "right" | "left";
|
|
1349
1377
|
inline: boolean;
|
|
1350
1378
|
showNumber: number;
|
|
@@ -1367,15 +1395,17 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1367
1395
|
expandText: string;
|
|
1368
1396
|
searchLoading: boolean;
|
|
1369
1397
|
needValidate: boolean;
|
|
1398
|
+
searchIcon: Component | null;
|
|
1399
|
+
resetIcon: Component | null;
|
|
1370
1400
|
}, {}>, Partial<Record<NonNullable<string | number>, (_: {
|
|
1371
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "
|
|
1401
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
|
|
1372
1402
|
readonly label: string | ComputedRef<string>;
|
|
1373
|
-
readonly modelValue: string | number | boolean | string[] | [string, string] |
|
|
1403
|
+
readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
1374
1404
|
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
1375
|
-
readonly tooltip: string |
|
|
1405
|
+
readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
1376
1406
|
style?: CSSProperties | undefined;
|
|
1377
1407
|
class?: any;
|
|
1378
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
1408
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
1379
1409
|
style?: CSSProperties | undefined;
|
|
1380
1410
|
class?: any;
|
|
1381
1411
|
} & RecordType>>;
|
|
@@ -1397,7 +1427,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1397
1427
|
};
|
|
1398
1428
|
rows: number;
|
|
1399
1429
|
autocomplete: string;
|
|
1400
|
-
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "
|
|
1430
|
+
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
|
|
1401
1431
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
1402
1432
|
step: string | number;
|
|
1403
1433
|
format: string | ProgressFn | undefined;
|
|
@@ -1424,6 +1454,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1424
1454
|
label?: string | undefined;
|
|
1425
1455
|
value?: string | undefined;
|
|
1426
1456
|
} | undefined;
|
|
1457
|
+
readonly autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
|
|
1458
|
+
store?: any;
|
|
1459
|
+
method?: string | undefined;
|
|
1460
|
+
transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
|
|
1461
|
+
dictCode?: string | undefined;
|
|
1462
|
+
} | undefined;
|
|
1427
1463
|
readonly clearable: boolean;
|
|
1428
1464
|
readonly index: number;
|
|
1429
1465
|
} & {
|
|
@@ -1436,12 +1472,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1436
1472
|
fieldInstance?: any;
|
|
1437
1473
|
valueIsReady?: Ref<boolean> | undefined;
|
|
1438
1474
|
prop: string;
|
|
1439
|
-
modelValue: string | number | boolean | string[] | [string, string] |
|
|
1475
|
+
modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
1440
1476
|
hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
1441
|
-
tooltip: string |
|
|
1477
|
+
tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
1442
1478
|
style?: CSSProperties | undefined;
|
|
1443
1479
|
class?: any;
|
|
1444
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
1480
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
1445
1481
|
style?: CSSProperties | undefined;
|
|
1446
1482
|
class?: any;
|
|
1447
1483
|
} & RecordType>>;
|
|
@@ -1461,6 +1497,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1461
1497
|
label?: string | undefined;
|
|
1462
1498
|
value?: string | undefined;
|
|
1463
1499
|
} | undefined;
|
|
1500
|
+
autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
|
|
1501
|
+
store?: any;
|
|
1502
|
+
method?: string | undefined;
|
|
1503
|
+
transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
|
|
1504
|
+
dictCode?: string | undefined;
|
|
1505
|
+
} | undefined;
|
|
1464
1506
|
clearable: boolean;
|
|
1465
1507
|
index: number;
|
|
1466
1508
|
}) => any>> & {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, useAttrs, computed, unref, watch, openBlock, createBlock, mergeProps, createSlots, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, createVNode, renderList, normalizeProps, guardReactiveProps } from 'vue';
|
|
2
2
|
import { PlusForm } from '../../form/index.mjs';
|
|
3
|
-
import {
|
|
3
|
+
import { Search, RefreshRight, ArrowUp, ArrowDown } from '@element-plus/icons-vue';
|
|
4
4
|
import { versionIsLessThan299 } from '../../utils/index.mjs';
|
|
5
5
|
import { useLocale } from '../../../hooks/useLocale.mjs';
|
|
6
6
|
import 'sortablejs';
|
|
@@ -38,7 +38,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
38
38
|
lg: 8,
|
|
39
39
|
xl: 6
|
|
40
40
|
}) },
|
|
41
|
-
needValidate: { type: Boolean, default: false }
|
|
41
|
+
needValidate: { type: Boolean, default: false },
|
|
42
|
+
searchIcon: { default: void 0 },
|
|
43
|
+
resetIcon: { default: void 0 }
|
|
42
44
|
},
|
|
43
45
|
emits: ["update:modelValue", "search", "change", "reset", "collapse"],
|
|
44
46
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
@@ -56,6 +58,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
56
58
|
const unfoldText = computed(
|
|
57
59
|
() => isShowUnfold.value ? props.retractText || t("plus.search.retract") : props.expandText || t("plus.search.expand")
|
|
58
60
|
);
|
|
61
|
+
const computedSearchIcon = computed(() => {
|
|
62
|
+
if (props.searchIcon === null) return void 0;
|
|
63
|
+
return props.searchIcon !== void 0 ? props.searchIcon : Search;
|
|
64
|
+
});
|
|
65
|
+
const computedResetIcon = computed(() => {
|
|
66
|
+
if (props.resetIcon === null) return void 0;
|
|
67
|
+
return props.resetIcon !== void 0 ? props.resetIcon : RefreshRight;
|
|
68
|
+
});
|
|
59
69
|
const originData = computed(() => {
|
|
60
70
|
const filterData = props.columns.filter((item) => unref(item.hideInSearch) !== true).map((item) => ({ ...item, hideInForm: false })).map((item) => ({ ...item, order: (item == null ? void 0 : item.order) ? unref(item.order) : 0 }));
|
|
61
71
|
return orderBy(filterData, ["order"], ["desc"]);
|
|
@@ -142,7 +152,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
142
152
|
}, () => [
|
|
143
153
|
_ctx.hasReset ? (openBlock(), createBlock(unref(ElButton), {
|
|
144
154
|
key: 0,
|
|
145
|
-
icon:
|
|
155
|
+
icon: computedResetIcon.value,
|
|
146
156
|
onClick: handleReset
|
|
147
157
|
}, {
|
|
148
158
|
default: withCtx(() => [
|
|
@@ -158,7 +168,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
158
168
|
createVNode(unref(ElButton), {
|
|
159
169
|
type: "primary",
|
|
160
170
|
loading: _ctx.searchLoading,
|
|
161
|
-
icon:
|
|
171
|
+
icon: computedSearchIcon.value,
|
|
162
172
|
onClick: handleSearch.value
|
|
163
173
|
}, {
|
|
164
174
|
default: 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 {
|