yc-pro-components 0.0.84 → 0.0.85
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 +19 -19
- package/es/components/check-card-group/src/index.vue.d.ts +1 -1
- package/es/components/date-picker/index.d.ts +10 -10
- package/es/components/date-picker/src/index.vue.d.ts +10 -10
- package/es/components/dialog-form/index.d.ts +11 -8
- package/es/components/dialog-form/src/index.vue.d.ts +11 -8
- package/es/components/display-item/index.d.ts +53 -44
- package/es/components/display-item/src/index.vue.d.ts +34 -25
- package/es/components/drawer-form/index.d.ts +36 -33
- package/es/components/drawer-form/src/index.vue.d.ts +14 -11
- package/es/components/form/index.d.ts +41 -16
- package/es/components/form/src/form-content.vue.d.ts +37 -22
- package/es/components/form/src/form-content.vue2.mjs +11 -2
- package/es/components/form/src/index.vue.d.ts +25 -16
- package/es/components/form/src/index.vue2.mjs +5 -2
- package/es/components/form/src/type.d.ts +5 -0
- package/es/components/form-item/index.d.ts +62 -39
- package/es/components/form-item/src/index.vue.d.ts +32 -17
- package/es/components/form-item/src/index.vue2.mjs +9 -3
- 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 +9 -9
- package/es/components/input-tag/src/index.vue.d.ts +1 -1
- package/es/components/page/index.d.ts +320 -137
- package/es/components/page/src/index.vue.d.ts +114 -51
- package/es/components/radio/index.d.ts +23 -23
- package/es/components/radio/src/index.vue.d.ts +23 -23
- 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 +144 -59
- package/es/components/search/src/index.vue.d.ts +52 -25
- package/es/components/search/src/index.vue2.mjs +3 -1
- package/es/components/search/src/type.d.ts +5 -0
- package/es/components/table/src/table-column.vue.d.ts +49 -40
- 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-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 +217 -94
- package/es/components/yc-select-v2/src/index.vue.d.ts +2 -2
- package/es/components/yc-status-dialog/src/index.vue.d.ts +1 -1
- package/es/components/yc-svg-icon/src/index.vue.d.ts +1 -1
- package/es/components/yc-text/src/index.vue.d.ts +2 -2
- package/es/hooks/usePlusFormReset.d.ts +126 -108
- package/es/index.css +7 -7
- package/es/types/form.d.ts +5 -0
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/yc-components/version.d.ts +1 -1
- package/index.css +1 -1
- package/index.js +30 -10
- package/index.min.js +11 -11
- package/index.min.mjs +12 -12
- package/index.mjs +30 -10
- 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 +19 -19
- package/lib/components/check-card-group/src/index.vue.d.ts +1 -1
- package/lib/components/date-picker/index.d.ts +10 -10
- package/lib/components/date-picker/src/index.vue.d.ts +10 -10
- package/lib/components/dialog-form/index.d.ts +11 -8
- package/lib/components/dialog-form/src/index.vue.d.ts +11 -8
- package/lib/components/display-item/index.d.ts +53 -44
- package/lib/components/display-item/src/index.vue.d.ts +34 -25
- package/lib/components/drawer-form/index.d.ts +36 -33
- package/lib/components/drawer-form/src/index.vue.d.ts +14 -11
- package/lib/components/form/index.d.ts +41 -16
- package/lib/components/form/src/form-content.vue.d.ts +37 -22
- package/lib/components/form/src/form-content.vue2.js +11 -2
- package/lib/components/form/src/index.vue.d.ts +25 -16
- package/lib/components/form/src/index.vue2.js +5 -2
- package/lib/components/form/src/type.d.ts +5 -0
- package/lib/components/form-item/index.d.ts +62 -39
- package/lib/components/form-item/src/index.vue.d.ts +32 -17
- package/lib/components/form-item/src/index.vue2.js +9 -3
- 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 +9 -9
- package/lib/components/input-tag/src/index.vue.d.ts +1 -1
- package/lib/components/page/index.d.ts +320 -137
- package/lib/components/page/src/index.vue.d.ts +114 -51
- package/lib/components/radio/index.d.ts +23 -23
- package/lib/components/radio/src/index.vue.d.ts +23 -23
- 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 +144 -59
- package/lib/components/search/src/index.vue.d.ts +52 -25
- package/lib/components/search/src/index.vue2.js +3 -1
- package/lib/components/search/src/type.d.ts +5 -0
- package/lib/components/table/src/table-column.vue.d.ts +49 -40
- 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-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 +217 -94
- package/lib/components/yc-select-v2/src/index.vue.d.ts +2 -2
- package/lib/components/yc-status-dialog/src/index.vue.d.ts +1 -1
- package/lib/components/yc-svg-icon/src/index.vue.d.ts +1 -1
- package/lib/components/yc-text/src/index.vue.d.ts +2 -2
- package/lib/hooks/usePlusFormReset.d.ts +126 -108
- package/lib/index.css +10 -10
- package/lib/types/form.d.ts +5 -0
- 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
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/plus-form-item.css +1 -1
- package/theme-chalk/src/form-item.scss +60 -39
|
@@ -33,6 +33,10 @@ export interface PlusFormContentProps {
|
|
|
33
33
|
* @version v0.1.18
|
|
34
34
|
*/
|
|
35
35
|
clearable?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* 标签和占位符超出时省略。字段 ellipsis 优先。
|
|
38
|
+
*/
|
|
39
|
+
ellipsis?: boolean;
|
|
36
40
|
}
|
|
37
41
|
export interface PlusFormContentEmits {
|
|
38
42
|
(e: 'update:modelValue', values: FieldValues): void;
|
|
@@ -48,6 +52,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
48
52
|
collapseDuration: undefined;
|
|
49
53
|
collapseTransition: undefined;
|
|
50
54
|
clearable: boolean;
|
|
55
|
+
ellipsis: boolean;
|
|
51
56
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
52
57
|
"update:modelValue": (values: FieldValues) => void;
|
|
53
58
|
change: (values: FieldValues, column: PlusColumn) => void;
|
|
@@ -61,6 +66,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
61
66
|
collapseDuration: undefined;
|
|
62
67
|
collapseTransition: undefined;
|
|
63
68
|
clearable: boolean;
|
|
69
|
+
ellipsis: boolean;
|
|
64
70
|
}>>> & {
|
|
65
71
|
onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
|
|
66
72
|
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
@@ -70,6 +76,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
70
76
|
columns: PlusColumn[];
|
|
71
77
|
layout: "grid" | "flex";
|
|
72
78
|
modelValue: FieldValues;
|
|
79
|
+
ellipsis: boolean;
|
|
73
80
|
rowProps: Partial< Mutable<RowProps> & {
|
|
74
81
|
style?: CSSProperties | undefined;
|
|
75
82
|
class?: any;
|
|
@@ -103,10 +110,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
103
110
|
value: string | number;
|
|
104
111
|
row: RecordType;
|
|
105
112
|
}) => OptionsRow<undefined>) | undefined;
|
|
106
|
-
tooltip?: string |
|
|
113
|
+
tooltip?: string | Partial< Mutable<ElTooltipProps> & {
|
|
107
114
|
style?: CSSProperties | undefined;
|
|
108
115
|
class?: any;
|
|
109
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
116
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
110
117
|
style?: CSSProperties | undefined;
|
|
111
118
|
class?: any;
|
|
112
119
|
} & RecordType>> | undefined;
|
|
@@ -178,7 +185,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
178
185
|
};
|
|
179
186
|
rows: number;
|
|
180
187
|
autocomplete: string;
|
|
181
|
-
type: "" | "number" | "default" | "
|
|
188
|
+
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;
|
|
182
189
|
loading: boolean | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
183
190
|
step: string | number;
|
|
184
191
|
format: string | ProgressFn | undefined;
|
|
@@ -197,6 +204,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
197
204
|
class?: any;
|
|
198
205
|
} & RecordType>> | undefined;
|
|
199
206
|
hasLabel?: boolean | Ref<boolean> | ComputedRef<boolean> | undefined;
|
|
207
|
+
ellipsis?: boolean | Ref<boolean> | ComputedRef<boolean> | undefined;
|
|
200
208
|
renderLabel?: ((label: string, props: PlusColumn) => RenderTypes) | undefined;
|
|
201
209
|
renderExtra?: ((column: PlusColumn) => RenderTypes) | undefined;
|
|
202
210
|
renderPrevious?: ((column: PlusColumn) => RenderTypes) | undefined;
|
|
@@ -210,14 +218,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
210
218
|
label?: string | undefined;
|
|
211
219
|
}) => RenderTypes) | undefined;
|
|
212
220
|
}) => any>> & Partial<Record<string, (_: {
|
|
213
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
|
|
221
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "ellipsis" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
|
|
214
222
|
readonly label: string | ComputedRef<string>;
|
|
215
|
-
readonly modelValue: string | number | boolean | string[] | [string, string] |
|
|
223
|
+
readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
216
224
|
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
217
|
-
readonly tooltip: string |
|
|
225
|
+
readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
218
226
|
style?: CSSProperties | undefined;
|
|
219
227
|
class?: any;
|
|
220
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
228
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
221
229
|
style?: CSSProperties | undefined;
|
|
222
230
|
class?: any;
|
|
223
231
|
} & RecordType>>;
|
|
@@ -239,7 +247,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
239
247
|
};
|
|
240
248
|
rows: number;
|
|
241
249
|
autocomplete: string;
|
|
242
|
-
type: "" | "number" | "default" | "
|
|
250
|
+
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;
|
|
243
251
|
loading: boolean | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
244
252
|
step: string | number;
|
|
245
253
|
format: string | ProgressFn | undefined;
|
|
@@ -273,8 +281,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
273
281
|
dictCode?: string | undefined;
|
|
274
282
|
} | undefined;
|
|
275
283
|
readonly clearable: boolean;
|
|
284
|
+
readonly ellipsis: boolean;
|
|
276
285
|
readonly index: number;
|
|
277
286
|
} & {
|
|
287
|
+
readonly ellipsis: boolean;
|
|
278
288
|
readonly clearable: boolean;
|
|
279
289
|
};
|
|
280
290
|
label: string;
|
|
@@ -284,12 +294,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
284
294
|
fieldInstance?: any;
|
|
285
295
|
valueIsReady?: Ref<boolean> | undefined;
|
|
286
296
|
prop: string;
|
|
287
|
-
modelValue: string | number | boolean | string[] | [string, string] |
|
|
297
|
+
modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
288
298
|
hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
289
|
-
tooltip: string |
|
|
299
|
+
tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
290
300
|
style?: CSSProperties | undefined;
|
|
291
301
|
class?: any;
|
|
292
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
302
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
293
303
|
style?: CSSProperties | undefined;
|
|
294
304
|
class?: any;
|
|
295
305
|
} & RecordType>>;
|
|
@@ -316,16 +326,17 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
316
326
|
dictCode?: string | undefined;
|
|
317
327
|
} | undefined;
|
|
318
328
|
clearable: boolean;
|
|
329
|
+
ellipsis: boolean;
|
|
319
330
|
index: number;
|
|
320
331
|
}) => any>> & Partial<Record<string, (_: {
|
|
321
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
|
|
332
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "ellipsis" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
|
|
322
333
|
readonly label: string | ComputedRef<string>;
|
|
323
|
-
readonly modelValue: string | number | boolean | string[] | [string, string] |
|
|
334
|
+
readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
324
335
|
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
325
|
-
readonly tooltip: string |
|
|
336
|
+
readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
326
337
|
style?: CSSProperties | undefined;
|
|
327
338
|
class?: any;
|
|
328
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
339
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
329
340
|
style?: CSSProperties | undefined;
|
|
330
341
|
class?: any;
|
|
331
342
|
} & RecordType>>;
|
|
@@ -347,7 +358,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
347
358
|
};
|
|
348
359
|
rows: number;
|
|
349
360
|
autocomplete: string;
|
|
350
|
-
type: "" | "number" | "default" | "
|
|
361
|
+
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;
|
|
351
362
|
loading: boolean | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
352
363
|
step: string | number;
|
|
353
364
|
format: string | ProgressFn | undefined;
|
|
@@ -381,8 +392,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
381
392
|
dictCode?: string | undefined;
|
|
382
393
|
} | undefined;
|
|
383
394
|
readonly clearable: boolean;
|
|
395
|
+
readonly ellipsis: boolean;
|
|
384
396
|
readonly index: number;
|
|
385
397
|
} & {
|
|
398
|
+
readonly ellipsis: boolean;
|
|
386
399
|
readonly clearable: boolean;
|
|
387
400
|
};
|
|
388
401
|
label: string;
|
|
@@ -392,12 +405,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
392
405
|
fieldInstance?: any;
|
|
393
406
|
valueIsReady?: Ref<boolean> | undefined;
|
|
394
407
|
prop: string;
|
|
395
|
-
modelValue: string | number | boolean | string[] | [string, string] |
|
|
408
|
+
modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
396
409
|
hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
397
|
-
tooltip: string |
|
|
410
|
+
tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
398
411
|
style?: CSSProperties | undefined;
|
|
399
412
|
class?: any;
|
|
400
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
413
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
401
414
|
style?: CSSProperties | undefined;
|
|
402
415
|
class?: any;
|
|
403
416
|
} & RecordType>>;
|
|
@@ -424,6 +437,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
424
437
|
dictCode?: string | undefined;
|
|
425
438
|
} | undefined;
|
|
426
439
|
clearable: boolean;
|
|
440
|
+
ellipsis: boolean;
|
|
427
441
|
index: number;
|
|
428
442
|
}) => any>> & Partial<Record<string, (_: {
|
|
429
443
|
[x: string]: any;
|
|
@@ -448,10 +462,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
448
462
|
value: string | number;
|
|
449
463
|
row: RecordType;
|
|
450
464
|
}) => OptionsRow<undefined>) | undefined;
|
|
451
|
-
tooltip?: string |
|
|
465
|
+
tooltip?: string | Partial< Mutable<ElTooltipProps> & {
|
|
452
466
|
style?: CSSProperties | undefined;
|
|
453
467
|
class?: any;
|
|
454
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
468
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
455
469
|
style?: CSSProperties | undefined;
|
|
456
470
|
class?: any;
|
|
457
471
|
} & RecordType>> | undefined;
|
|
@@ -523,7 +537,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
523
537
|
};
|
|
524
538
|
rows: number;
|
|
525
539
|
autocomplete: string;
|
|
526
|
-
type: "" | "number" | "default" | "
|
|
540
|
+
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;
|
|
527
541
|
loading: boolean | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
528
542
|
step: string | number;
|
|
529
543
|
format: string | ProgressFn | undefined;
|
|
@@ -542,6 +556,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
542
556
|
class?: any;
|
|
543
557
|
} & RecordType>> | undefined;
|
|
544
558
|
hasLabel?: boolean | Ref<boolean> | ComputedRef<boolean> | undefined;
|
|
559
|
+
ellipsis?: boolean | Ref<boolean> | ComputedRef<boolean> | undefined;
|
|
545
560
|
renderLabel?: ((label: string, props: PlusColumn) => RenderTypes) | undefined;
|
|
546
561
|
renderExtra?: ((column: PlusColumn) => RenderTypes) | undefined;
|
|
547
562
|
renderPrevious?: ((column: PlusColumn) => RenderTypes) | undefined;
|
|
@@ -27,7 +27,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
27
27
|
colProps: { default: () => ({}) },
|
|
28
28
|
collapseDuration: { default: void 0 },
|
|
29
29
|
collapseTransition: { type: Boolean, default: void 0 },
|
|
30
|
-
clearable: { type: Boolean, default: true }
|
|
30
|
+
clearable: { type: Boolean, default: true },
|
|
31
|
+
ellipsis: { type: Boolean, default: false }
|
|
31
32
|
},
|
|
32
33
|
emits: ["update:modelValue", "change"],
|
|
33
34
|
setup(__props, { emit: __emit }) {
|
|
@@ -54,6 +55,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
54
55
|
}
|
|
55
56
|
return props.hasLabel;
|
|
56
57
|
};
|
|
58
|
+
const getEllipsis = (ellipsis) => {
|
|
59
|
+
const value = unref(ellipsis);
|
|
60
|
+
if (isBoolean(value)) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
return props.ellipsis;
|
|
64
|
+
};
|
|
57
65
|
watch(
|
|
58
66
|
() => props.modelValue,
|
|
59
67
|
(val) => {
|
|
@@ -108,6 +116,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
108
116
|
}, item, {
|
|
109
117
|
clearable: _ctx.clearable,
|
|
110
118
|
"has-label": getHasLabel(item.hasLabel),
|
|
119
|
+
ellipsis: getEllipsis(item.ellipsis),
|
|
111
120
|
onChange: (value) => handleChange(value, item)
|
|
112
121
|
}), createSlots({
|
|
113
122
|
_: 2
|
|
@@ -134,7 +143,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
134
143
|
]),
|
|
135
144
|
key: "2"
|
|
136
145
|
} : void 0
|
|
137
|
-
]), 1040, ["model-value", "clearable", "has-label", "onChange"]),
|
|
146
|
+
]), 1040, ["model-value", "clearable", "has-label", "ellipsis", "onChange"]),
|
|
138
147
|
createCommentVNode(" el-form-item \u4E0B\u4E00\u884C\u989D\u5916\u7684\u5185\u5BB9 "),
|
|
139
148
|
item.renderExtra || _ctx.$slots[unref(getExtraSlotName)(item.prop)] ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
140
149
|
item.renderExtra && unref(isFunction)(item.renderExtra) ? (openBlock(), createBlock(
|
|
@@ -19,6 +19,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
19
19
|
hasFooter: boolean;
|
|
20
20
|
hasReset: boolean;
|
|
21
21
|
hasLabel: boolean;
|
|
22
|
+
ellipsis: boolean;
|
|
22
23
|
submitLoading: boolean;
|
|
23
24
|
submitText: string;
|
|
24
25
|
resetText: string;
|
|
@@ -55,6 +56,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
55
56
|
hasFooter: boolean;
|
|
56
57
|
hasReset: boolean;
|
|
57
58
|
hasLabel: boolean;
|
|
59
|
+
ellipsis: boolean;
|
|
58
60
|
submitLoading: boolean;
|
|
59
61
|
submitText: string;
|
|
60
62
|
resetText: string;
|
|
@@ -85,6 +87,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
85
87
|
labelPosition: "top" | "right" | "left";
|
|
86
88
|
labelWidth: string | number;
|
|
87
89
|
labelSuffix: string;
|
|
90
|
+
ellipsis: boolean;
|
|
88
91
|
defaultValues: FieldValues;
|
|
89
92
|
rowProps: Partial< Mutable<RowProps> & {
|
|
90
93
|
style?: CSSProperties | undefined;
|
|
@@ -120,14 +123,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
120
123
|
hideInGroup?: boolean | ComputedRef<boolean> | undefined;
|
|
121
124
|
columns?: PlusColumn[] | undefined;
|
|
122
125
|
}) => any>> & Partial<Record<NonNullable<string | number>, (_: {
|
|
123
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
|
|
126
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "ellipsis" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
|
|
124
127
|
readonly label: string | ComputedRef<string>;
|
|
125
|
-
readonly modelValue: string | number | boolean | string[] | [string, string] |
|
|
128
|
+
readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
126
129
|
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
127
|
-
readonly tooltip: string |
|
|
130
|
+
readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
128
131
|
style?: CSSProperties | undefined;
|
|
129
132
|
class?: any;
|
|
130
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
133
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
131
134
|
style?: CSSProperties | undefined;
|
|
132
135
|
class?: any;
|
|
133
136
|
} & RecordType>>;
|
|
@@ -149,7 +152,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
149
152
|
};
|
|
150
153
|
rows: number;
|
|
151
154
|
autocomplete: string;
|
|
152
|
-
type: "" | "number" | "default" | "
|
|
155
|
+
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;
|
|
153
156
|
loading: boolean | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
154
157
|
step: string | number;
|
|
155
158
|
format: string | ProgressFn | undefined;
|
|
@@ -183,8 +186,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
183
186
|
dictCode?: string | undefined;
|
|
184
187
|
} | undefined;
|
|
185
188
|
readonly clearable: boolean;
|
|
189
|
+
readonly ellipsis: boolean;
|
|
186
190
|
readonly index: number;
|
|
187
191
|
} & {
|
|
192
|
+
readonly ellipsis: boolean;
|
|
188
193
|
readonly clearable: boolean;
|
|
189
194
|
};
|
|
190
195
|
label: string;
|
|
@@ -194,12 +199,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
194
199
|
fieldInstance?: any;
|
|
195
200
|
valueIsReady?: Ref<boolean> | undefined;
|
|
196
201
|
prop: string;
|
|
197
|
-
modelValue: string | number | boolean | string[] | [string, string] |
|
|
202
|
+
modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
198
203
|
hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
199
|
-
tooltip: string |
|
|
204
|
+
tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
200
205
|
style?: CSSProperties | undefined;
|
|
201
206
|
class?: any;
|
|
202
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
207
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
203
208
|
style?: CSSProperties | undefined;
|
|
204
209
|
class?: any;
|
|
205
210
|
} & RecordType>>;
|
|
@@ -226,16 +231,17 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
226
231
|
dictCode?: string | undefined;
|
|
227
232
|
} | undefined;
|
|
228
233
|
clearable: boolean;
|
|
234
|
+
ellipsis: boolean;
|
|
229
235
|
index: number;
|
|
230
236
|
}) => any>> & Partial<Record<NonNullable<string | number>, (_: {
|
|
231
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
|
|
237
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "ellipsis" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
|
|
232
238
|
readonly label: string | ComputedRef<string>;
|
|
233
|
-
readonly modelValue: string | number | boolean | string[] | [string, string] |
|
|
239
|
+
readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
234
240
|
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
235
|
-
readonly tooltip: string |
|
|
241
|
+
readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
236
242
|
style?: CSSProperties | undefined;
|
|
237
243
|
class?: any;
|
|
238
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
244
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
239
245
|
style?: CSSProperties | undefined;
|
|
240
246
|
class?: any;
|
|
241
247
|
} & RecordType>>;
|
|
@@ -257,7 +263,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
257
263
|
};
|
|
258
264
|
rows: number;
|
|
259
265
|
autocomplete: string;
|
|
260
|
-
type: "" | "number" | "default" | "
|
|
266
|
+
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;
|
|
261
267
|
loading: boolean | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
262
268
|
step: string | number;
|
|
263
269
|
format: string | ProgressFn | undefined;
|
|
@@ -291,8 +297,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
291
297
|
dictCode?: string | undefined;
|
|
292
298
|
} | undefined;
|
|
293
299
|
readonly clearable: boolean;
|
|
300
|
+
readonly ellipsis: boolean;
|
|
294
301
|
readonly index: number;
|
|
295
302
|
} & {
|
|
303
|
+
readonly ellipsis: boolean;
|
|
296
304
|
readonly clearable: boolean;
|
|
297
305
|
};
|
|
298
306
|
label: string;
|
|
@@ -302,12 +310,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
302
310
|
fieldInstance?: any;
|
|
303
311
|
valueIsReady?: Ref<boolean> | undefined;
|
|
304
312
|
prop: string;
|
|
305
|
-
modelValue: string | number | boolean | string[] | [string, string] |
|
|
313
|
+
modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
306
314
|
hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
307
|
-
tooltip: string |
|
|
315
|
+
tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
308
316
|
style?: CSSProperties | undefined;
|
|
309
317
|
class?: any;
|
|
310
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
318
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
311
319
|
style?: CSSProperties | undefined;
|
|
312
320
|
class?: any;
|
|
313
321
|
} & RecordType>>;
|
|
@@ -334,6 +342,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
334
342
|
dictCode?: string | undefined;
|
|
335
343
|
} | undefined;
|
|
336
344
|
clearable: boolean;
|
|
345
|
+
ellipsis: boolean;
|
|
337
346
|
index: number;
|
|
338
347
|
}) => any>> & {
|
|
339
348
|
default?(_: {}): any;
|
|
@@ -28,6 +28,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
28
28
|
hasFooter: { type: Boolean, default: true },
|
|
29
29
|
hasReset: { type: Boolean, default: true },
|
|
30
30
|
hasLabel: { type: Boolean, default: true },
|
|
31
|
+
ellipsis: { type: Boolean, default: false },
|
|
31
32
|
submitText: { default: "" },
|
|
32
33
|
resetText: { default: "" },
|
|
33
34
|
submitLoading: { type: Boolean, default: false },
|
|
@@ -205,6 +206,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
205
206
|
layout: _ctx.layout,
|
|
206
207
|
columns: filterHide(groupItem.columns),
|
|
207
208
|
"has-label": _ctx.hasLabel,
|
|
209
|
+
ellipsis: _ctx.ellipsis,
|
|
208
210
|
"collapse-transition": _ctx.collapseTransition,
|
|
209
211
|
"collapse-duration": _ctx.collapseDuration,
|
|
210
212
|
clearable: _ctx.clearable,
|
|
@@ -221,7 +223,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
221
223
|
])
|
|
222
224
|
};
|
|
223
225
|
})
|
|
224
|
-
]), 1032, ["modelValue", "row-props", "col-props", "layout", "columns", "has-label", "collapse-transition", "collapse-duration", "clearable"]))
|
|
226
|
+
]), 1032, ["modelValue", "row-props", "col-props", "layout", "columns", "has-label", "ellipsis", "collapse-transition", "collapse-duration", "clearable"]))
|
|
225
227
|
]),
|
|
226
228
|
_: 2
|
|
227
229
|
/* DYNAMIC */
|
|
@@ -245,6 +247,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
245
247
|
layout: _ctx.layout,
|
|
246
248
|
columns: subColumns.value,
|
|
247
249
|
"has-label": _ctx.hasLabel,
|
|
250
|
+
ellipsis: _ctx.ellipsis,
|
|
248
251
|
"collapse-transition": _ctx.collapseTransition,
|
|
249
252
|
"collapse-duration": _ctx.collapseDuration,
|
|
250
253
|
clearable: _ctx.clearable,
|
|
@@ -261,7 +264,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
261
264
|
])
|
|
262
265
|
};
|
|
263
266
|
})
|
|
264
|
-
]), 1032, ["modelValue", "row-props", "col-props", "layout", "columns", "has-label", "collapse-transition", "collapse-duration", "clearable"])
|
|
267
|
+
]), 1032, ["modelValue", "row-props", "col-props", "layout", "columns", "has-label", "ellipsis", "collapse-transition", "collapse-duration", "clearable"])
|
|
265
268
|
],
|
|
266
269
|
64
|
|
267
270
|
/* STABLE_FRAGMENT */
|
|
@@ -120,6 +120,11 @@ export type PlusFormSelfProps = {
|
|
|
120
120
|
hasFooter?: boolean;
|
|
121
121
|
hasReset?: boolean;
|
|
122
122
|
hasLabel?: boolean;
|
|
123
|
+
/**
|
|
124
|
+
* 标签和占位符超出宽度时省略,悬停显示全文。默认关闭,标签换行显示。
|
|
125
|
+
* 单个字段的 ellipsis 优先级更高。
|
|
126
|
+
*/
|
|
127
|
+
ellipsis?: boolean;
|
|
123
128
|
submitText?: string;
|
|
124
129
|
resetText?: string;
|
|
125
130
|
submitLoading?: boolean;
|