@uzum-tech/ui 2.4.7 → 2.4.9
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/dist/index.js +225 -75
- package/dist/index.mjs +225 -75
- package/dist/index.prod.js +2 -2
- package/dist/index.prod.mjs +3 -3
- package/es/components.d.ts +82 -10
- package/es/dynamic-tags/index.d.ts +3 -3
- package/es/dynamic-tags/index.mjs +2 -1
- package/es/dynamic-tags/src/DynamicTags.d.ts +74 -1177
- package/es/dynamic-tags/src/DynamicTags.mjs +150 -107
- package/es/dynamic-tags/src/interface.d.ts +1146 -6
- package/es/dynamic-tags/src/interface.mjs +34 -1
- package/es/dynamic-tags/src/styles/index.cssr.mjs +35 -3
- package/es/dynamic-tags/styles/dark.mjs +4 -2
- package/es/dynamic-tags/styles/light.d.ts +2 -0
- package/es/dynamic-tags/styles/light.mjs +4 -2
- package/es/form/src/Form.d.ts +4 -0
- package/es/form/src/Form.mjs +1 -0
- package/es/form/src/FormItem.d.ts +15 -1
- package/es/form/src/FormItem.mjs +8 -1
- package/es/form/src/FormItemCol.d.ts +14 -1
- package/es/form/src/FormItemGridItem.d.ts +14 -1
- package/es/form/src/FormItemRow.d.ts +13 -0
- package/es/form/src/styles/form-item.cssr.mjs +2 -1
- package/es/form/src/utils.d.ts +1 -0
- package/es/form/src/utils.mjs +6 -0
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/lib/components.d.ts +82 -10
- package/lib/dynamic-tags/index.d.ts +3 -3
- package/lib/dynamic-tags/index.js +3 -2
- package/lib/dynamic-tags/src/DynamicTags.d.ts +74 -1177
- package/lib/dynamic-tags/src/DynamicTags.js +142 -77
- package/lib/dynamic-tags/src/interface.d.ts +1146 -6
- package/lib/dynamic-tags/src/interface.js +24 -0
- package/lib/dynamic-tags/src/styles/index.cssr.js +34 -2
- package/lib/dynamic-tags/styles/dark.js +4 -2
- package/lib/dynamic-tags/styles/light.d.ts +2 -0
- package/lib/dynamic-tags/styles/light.js +4 -2
- package/lib/form/src/Form.d.ts +4 -0
- package/lib/form/src/Form.js +1 -1
- package/lib/form/src/FormItem.d.ts +15 -1
- package/lib/form/src/FormItem.js +6 -2
- package/lib/form/src/FormItemCol.d.ts +14 -1
- package/lib/form/src/FormItemGridItem.d.ts +14 -1
- package/lib/form/src/FormItemRow.d.ts +13 -0
- package/lib/form/src/styles/form-item.cssr.js +2 -1
- package/lib/form/src/utils.d.ts +1 -0
- package/lib/form/src/utils.js +7 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/web-types.json +31 -1
|
@@ -1 +1,34 @@
|
|
|
1
|
-
|
|
1
|
+
import { useTheme } from "../../_mixins/index.mjs";
|
|
2
|
+
import commonProps from "../../tag/src/common-props.mjs";
|
|
3
|
+
export const dynamicTagsProps = Object.assign(Object.assign(Object.assign({}, useTheme.props), commonProps), {
|
|
4
|
+
size: {
|
|
5
|
+
type: String,
|
|
6
|
+
default: 'medium'
|
|
7
|
+
},
|
|
8
|
+
closable: {
|
|
9
|
+
type: Boolean,
|
|
10
|
+
default: true
|
|
11
|
+
},
|
|
12
|
+
draggable: {
|
|
13
|
+
type: Boolean,
|
|
14
|
+
default: false
|
|
15
|
+
},
|
|
16
|
+
defaultValue: {
|
|
17
|
+
type: Array,
|
|
18
|
+
default: () => []
|
|
19
|
+
},
|
|
20
|
+
value: Array,
|
|
21
|
+
inputStyle: [String, Object],
|
|
22
|
+
inputProps: Object,
|
|
23
|
+
max: Number,
|
|
24
|
+
tagStyle: [String, Object],
|
|
25
|
+
renderTag: Function,
|
|
26
|
+
onCreate: {
|
|
27
|
+
type: Function,
|
|
28
|
+
default: label => label
|
|
29
|
+
},
|
|
30
|
+
'onUpdate:value': [Function, Array],
|
|
31
|
+
onUpdateValue: [Function, Array],
|
|
32
|
+
// deprecated
|
|
33
|
+
onChange: [Function, Array]
|
|
34
|
+
});
|
|
@@ -1,6 +1,38 @@
|
|
|
1
|
-
import { cB } from "../../../_utils/cssr/index.mjs";
|
|
1
|
+
import { c, cB, cE, cM } from "../../../_utils/cssr/index.mjs";
|
|
2
2
|
// vars:
|
|
3
|
-
// --input-width
|
|
3
|
+
// --u-input-width
|
|
4
|
+
// --u-dragging-opacity
|
|
5
|
+
// --u-drop-indicator-color
|
|
4
6
|
export default cB('dynamic-tags', [cB('input', {
|
|
5
7
|
minWidth: 'var(--u-input-width)'
|
|
6
|
-
})
|
|
8
|
+
}), cE('tag-wrapper', `
|
|
9
|
+
display: flex;
|
|
10
|
+
position: relative;
|
|
11
|
+
cursor: default;
|
|
12
|
+
`, [c('& > *', `
|
|
13
|
+
cursor: inherit;
|
|
14
|
+
`)]), cE('tag', [cM('draggable', `
|
|
15
|
+
cursor: grab;
|
|
16
|
+
user-select: none;
|
|
17
|
+
`), cM('dragging', `
|
|
18
|
+
opacity: var(--u-dragging-opacity);
|
|
19
|
+
cursor: grabbing;
|
|
20
|
+
`), cM('drop-before', [c('&::before', `
|
|
21
|
+
content: '';
|
|
22
|
+
position: absolute;
|
|
23
|
+
top: 0;
|
|
24
|
+
bottom: 0;
|
|
25
|
+
left: -5px;
|
|
26
|
+
width: 2px;
|
|
27
|
+
border-radius: 2px;
|
|
28
|
+
background-color: var(--u-drop-indicator-color);
|
|
29
|
+
`)]), cM('drop-after', [c('&::after', `
|
|
30
|
+
content: '';
|
|
31
|
+
position: absolute;
|
|
32
|
+
top: 0;
|
|
33
|
+
bottom: 0;
|
|
34
|
+
right: -5px;
|
|
35
|
+
width: 2px;
|
|
36
|
+
border-radius: 2px;
|
|
37
|
+
background-color: var(--u-drop-indicator-color);
|
|
38
|
+
`)])])]);
|
|
@@ -13,9 +13,11 @@ const dynamicTagsLight = createTheme({
|
|
|
13
13
|
Tag: tagLight,
|
|
14
14
|
Space: spaceLight
|
|
15
15
|
},
|
|
16
|
-
self() {
|
|
16
|
+
self(vars) {
|
|
17
17
|
return {
|
|
18
|
-
inputWidth: '64px'
|
|
18
|
+
inputWidth: '64px',
|
|
19
|
+
draggingOpacity: '0.5',
|
|
20
|
+
dropIndicatorColor: vars.elementsPrimary
|
|
19
21
|
};
|
|
20
22
|
}
|
|
21
23
|
});
|
package/es/form/src/Form.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export declare const formProps: {
|
|
|
5
5
|
readonly inline: BooleanConstructor;
|
|
6
6
|
readonly labelWidth: PropType<number | string>;
|
|
7
7
|
readonly labelAlign: PropType<LabelAlign>;
|
|
8
|
+
readonly ellipsisLabel: BooleanConstructor;
|
|
8
9
|
readonly labelPlacement: {
|
|
9
10
|
readonly type: PropType<LabelPlacement>;
|
|
10
11
|
readonly default: "top";
|
|
@@ -143,6 +144,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
143
144
|
readonly inline: BooleanConstructor;
|
|
144
145
|
readonly labelWidth: PropType<number | string>;
|
|
145
146
|
readonly labelAlign: PropType<LabelAlign>;
|
|
147
|
+
readonly ellipsisLabel: BooleanConstructor;
|
|
146
148
|
readonly labelPlacement: {
|
|
147
149
|
readonly type: PropType<LabelPlacement>;
|
|
148
150
|
readonly default: "top";
|
|
@@ -280,6 +282,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
280
282
|
readonly inline: BooleanConstructor;
|
|
281
283
|
readonly labelWidth: PropType<number | string>;
|
|
282
284
|
readonly labelAlign: PropType<LabelAlign>;
|
|
285
|
+
readonly ellipsisLabel: BooleanConstructor;
|
|
283
286
|
readonly labelPlacement: {
|
|
284
287
|
readonly type: PropType<LabelPlacement>;
|
|
285
288
|
readonly default: "top";
|
|
@@ -416,6 +419,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
416
419
|
readonly disabled: boolean;
|
|
417
420
|
readonly inline: boolean;
|
|
418
421
|
readonly labelPlacement: LabelPlacement;
|
|
422
|
+
readonly ellipsisLabel: boolean;
|
|
419
423
|
readonly model: Record<string, any>;
|
|
420
424
|
readonly showRequireMark: boolean | undefined;
|
|
421
425
|
readonly showFeedback: boolean;
|
package/es/form/src/Form.mjs
CHANGED
|
@@ -3,6 +3,10 @@ import type { ExtractPublicPropTypes } from '../../_utils';
|
|
|
3
3
|
import type { FormItemRule, LabelAlign, LabelPlacement } from './interface';
|
|
4
4
|
export declare const formItemProps: {
|
|
5
5
|
readonly label: StringConstructor;
|
|
6
|
+
readonly ellipsisLabel: {
|
|
7
|
+
readonly type: PropType<boolean | undefined>;
|
|
8
|
+
readonly default: undefined;
|
|
9
|
+
};
|
|
6
10
|
readonly labelWidth: PropType<string | number>;
|
|
7
11
|
readonly labelStyle: PropType<CSSProperties | string>;
|
|
8
12
|
readonly labelAlign: PropType<LabelAlign>;
|
|
@@ -143,9 +147,13 @@ export declare const formItemProps: {
|
|
|
143
147
|
};
|
|
144
148
|
export type FormItemSetupProps = ExtractPropTypes<typeof formItemProps>;
|
|
145
149
|
export type FormItemProps = ExtractPublicPropTypes<typeof formItemProps>;
|
|
146
|
-
export declare const formItemPropKeys: ("theme" | "themeOverrides" | "builtinThemeOverrides" | "contentClass" | "contentStyle" | "value" | "size" | "label" | "first" | "labelPlacement" | "labelAlign" | "labelStyle" | "required" | "labelWidth" | "showRequireMark" | "requireMarkPlacement" | "showFeedback" | "showLabel" | "path" | "rulePath" | "rule" | "ignorePathChange" | "validationStatus" | "feedback" | "feedbackClass" | "feedbackStyle" | "labelProps")[];
|
|
150
|
+
export declare const formItemPropKeys: ("theme" | "themeOverrides" | "builtinThemeOverrides" | "contentClass" | "contentStyle" | "value" | "size" | "label" | "first" | "labelPlacement" | "labelAlign" | "labelStyle" | "required" | "labelWidth" | "ellipsisLabel" | "showRequireMark" | "requireMarkPlacement" | "showFeedback" | "showLabel" | "path" | "rulePath" | "rule" | "ignorePathChange" | "validationStatus" | "feedback" | "feedbackClass" | "feedbackStyle" | "labelProps")[];
|
|
147
151
|
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
148
152
|
readonly label: StringConstructor;
|
|
153
|
+
readonly ellipsisLabel: {
|
|
154
|
+
readonly type: PropType<boolean | undefined>;
|
|
155
|
+
readonly default: undefined;
|
|
156
|
+
};
|
|
149
157
|
readonly labelWidth: PropType<string | number>;
|
|
150
158
|
readonly labelStyle: PropType<CSSProperties | string>;
|
|
151
159
|
readonly labelAlign: PropType<LabelAlign>;
|
|
@@ -319,6 +327,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
319
327
|
mergedValidationStatus: import("vue").ComputedRef<"warning" | "error" | "success" | undefined>;
|
|
320
328
|
mergedShowFeedback: import("vue").ComputedRef<boolean>;
|
|
321
329
|
mergedShowLabel: import("vue").ComputedRef<boolean>;
|
|
330
|
+
mergedEllipsisLabel: import("vue").ComputedRef<boolean>;
|
|
322
331
|
isAutoLabelWidth: import("vue").ComputedRef<boolean>;
|
|
323
332
|
labelElementRef: import("vue").Ref<HTMLLabelElement | null, HTMLLabelElement | null>;
|
|
324
333
|
mergedClsPrefix: import("vue").Ref<string, string>;
|
|
@@ -337,6 +346,10 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
337
346
|
reverseColSpace: import("vue").ComputedRef<boolean>;
|
|
338
347
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
339
348
|
readonly label: StringConstructor;
|
|
349
|
+
readonly ellipsisLabel: {
|
|
350
|
+
readonly type: PropType<boolean | undefined>;
|
|
351
|
+
readonly default: undefined;
|
|
352
|
+
};
|
|
340
353
|
readonly labelWidth: PropType<string | number>;
|
|
341
354
|
readonly labelStyle: PropType<CSSProperties | string>;
|
|
342
355
|
readonly labelAlign: PropType<LabelAlign>;
|
|
@@ -478,6 +491,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
478
491
|
readonly value: any;
|
|
479
492
|
readonly first: boolean;
|
|
480
493
|
readonly required: boolean;
|
|
494
|
+
readonly ellipsisLabel: boolean | undefined;
|
|
481
495
|
readonly showRequireMark: boolean | undefined;
|
|
482
496
|
readonly showFeedback: boolean | undefined;
|
|
483
497
|
readonly showLabel: boolean | undefined;
|
package/es/form/src/FormItem.mjs
CHANGED
|
@@ -31,12 +31,17 @@ import { computed, defineComponent, h, inject, onMounted, provide, ref, toRef, T
|
|
|
31
31
|
import { useConfig, useTheme, useThemeClass } from "../../_mixins/index.mjs";
|
|
32
32
|
import { formItemInjectionKey } from "../../_mixins/use-form-item.mjs";
|
|
33
33
|
import { createKey, keysOf, resolveWrappedSlot, useInjectionInstanceCollection, warn } from "../../_utils/index.mjs";
|
|
34
|
+
import { UEllipsis } from "../../ellipsis/index.mjs";
|
|
34
35
|
import { formLight } from "../styles/index.mjs";
|
|
35
36
|
import { formInjectionKey, formItemInstsInjectionKey } from "./context.mjs";
|
|
36
37
|
import style from "./styles/form-item.cssr.mjs";
|
|
37
38
|
import { findInputValue, formItemMisc, formItemRule, formItemSize } from "./utils.mjs";
|
|
38
39
|
export const formItemProps = Object.assign(Object.assign({}, useTheme.props), {
|
|
39
40
|
label: String,
|
|
41
|
+
ellipsisLabel: {
|
|
42
|
+
type: Boolean,
|
|
43
|
+
default: undefined
|
|
44
|
+
},
|
|
40
45
|
labelWidth: [Number, String],
|
|
41
46
|
labelStyle: [String, Object],
|
|
42
47
|
labelAlign: String,
|
|
@@ -451,7 +456,9 @@ export default defineComponent({
|
|
|
451
456
|
if (!labelText) return null;
|
|
452
457
|
const textNode = h("span", {
|
|
453
458
|
class: `${mergedClsPrefix}-form-item-label__text`
|
|
454
|
-
},
|
|
459
|
+
}, this.mergedEllipsisLabel ? h(UEllipsis, null, {
|
|
460
|
+
default: () => labelText
|
|
461
|
+
}) : labelText);
|
|
455
462
|
const markNode = renderedShowRequireMark ? h("span", {
|
|
456
463
|
class: `${mergedClsPrefix}-form-item-label__asterisk`
|
|
457
464
|
}, mergedRequireMarkPlacement !== 'left' ? '\u00A0*' : '*\u00A0') : mergedRequireMarkPlacement === 'right-hanging' && h("span", {
|
|
@@ -2,6 +2,10 @@ import type { ExtractPublicPropTypes } from '../../_utils';
|
|
|
2
2
|
import type { FormItemInst } from './interface';
|
|
3
3
|
export declare const formItemColProps: {
|
|
4
4
|
readonly label: StringConstructor;
|
|
5
|
+
readonly ellipsisLabel: {
|
|
6
|
+
readonly type: import("vue").PropType<boolean | undefined>;
|
|
7
|
+
readonly default: undefined;
|
|
8
|
+
};
|
|
5
9
|
readonly labelWidth: import("vue").PropType<string | number>;
|
|
6
10
|
readonly labelStyle: import("vue").PropType<import("vue").CSSProperties | string>;
|
|
7
11
|
readonly labelAlign: import("vue").PropType<import("./interface").LabelAlign>;
|
|
@@ -156,10 +160,14 @@ export declare const formItemColProps: {
|
|
|
156
160
|
readonly default: 0;
|
|
157
161
|
};
|
|
158
162
|
};
|
|
159
|
-
export declare const formItemColPropKeys: ("theme" | "themeOverrides" | "push" | "builtinThemeOverrides" | "contentClass" | "contentStyle" | "value" | "size" | "offset" | "label" | "span" | "first" | "labelPlacement" | "labelAlign" | "labelStyle" | "required" | "labelWidth" | "showRequireMark" | "requireMarkPlacement" | "showFeedback" | "showLabel" | "path" | "rulePath" | "rule" | "ignorePathChange" | "validationStatus" | "feedback" | "feedbackClass" | "feedbackStyle" | "labelProps" | "pull")[];
|
|
163
|
+
export declare const formItemColPropKeys: ("theme" | "themeOverrides" | "push" | "builtinThemeOverrides" | "contentClass" | "contentStyle" | "value" | "size" | "offset" | "label" | "span" | "first" | "labelPlacement" | "labelAlign" | "labelStyle" | "required" | "labelWidth" | "ellipsisLabel" | "showRequireMark" | "requireMarkPlacement" | "showFeedback" | "showLabel" | "path" | "rulePath" | "rule" | "ignorePathChange" | "validationStatus" | "feedback" | "feedbackClass" | "feedbackStyle" | "labelProps" | "pull")[];
|
|
160
164
|
export type FormItemColProps = ExtractPublicPropTypes<typeof formItemColProps>;
|
|
161
165
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
162
166
|
readonly label: StringConstructor;
|
|
167
|
+
readonly ellipsisLabel: {
|
|
168
|
+
readonly type: import("vue").PropType<boolean | undefined>;
|
|
169
|
+
readonly default: undefined;
|
|
170
|
+
};
|
|
163
171
|
readonly labelWidth: import("vue").PropType<string | number>;
|
|
164
172
|
readonly labelStyle: import("vue").PropType<import("vue").CSSProperties | string>;
|
|
165
173
|
readonly labelAlign: import("vue").PropType<import("./interface").LabelAlign>;
|
|
@@ -332,6 +340,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
332
340
|
invalidateLabelWidth: () => void;
|
|
333
341
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
334
342
|
readonly label: StringConstructor;
|
|
343
|
+
readonly ellipsisLabel: {
|
|
344
|
+
readonly type: import("vue").PropType<boolean | undefined>;
|
|
345
|
+
readonly default: undefined;
|
|
346
|
+
};
|
|
335
347
|
readonly labelWidth: import("vue").PropType<string | number>;
|
|
336
348
|
readonly labelStyle: import("vue").PropType<import("vue").CSSProperties | string>;
|
|
337
349
|
readonly labelAlign: import("vue").PropType<import("./interface").LabelAlign>;
|
|
@@ -492,6 +504,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
492
504
|
readonly span: import("../../legacy-grid/src/interface").Span;
|
|
493
505
|
readonly first: boolean;
|
|
494
506
|
readonly required: boolean;
|
|
507
|
+
readonly ellipsisLabel: boolean | undefined;
|
|
495
508
|
readonly showRequireMark: boolean | undefined;
|
|
496
509
|
readonly showFeedback: boolean | undefined;
|
|
497
510
|
readonly showLabel: boolean | undefined;
|
|
@@ -2,6 +2,10 @@ import type { ExtractPublicPropTypes } from '../../_utils';
|
|
|
2
2
|
import type { FormItemInst } from './interface';
|
|
3
3
|
export declare const formItemGiProps: {
|
|
4
4
|
readonly label: StringConstructor;
|
|
5
|
+
readonly ellipsisLabel: {
|
|
6
|
+
readonly type: import("vue").PropType<boolean | undefined>;
|
|
7
|
+
readonly default: undefined;
|
|
8
|
+
};
|
|
5
9
|
readonly labelWidth: import("vue").PropType<string | number>;
|
|
6
10
|
readonly labelStyle: import("vue").PropType<import("vue").CSSProperties | string>;
|
|
7
11
|
readonly labelAlign: import("vue").PropType<import("./interface").LabelAlign>;
|
|
@@ -156,10 +160,14 @@ export declare const formItemGiProps: {
|
|
|
156
160
|
readonly default: true;
|
|
157
161
|
};
|
|
158
162
|
};
|
|
159
|
-
export declare const formItemGiPropKeys: ("theme" | "themeOverrides" | "builtinThemeOverrides" | "contentClass" | "contentStyle" | "value" | "size" | "offset" | "label" | "span" | "suffix" | "first" | "labelPlacement" | "labelAlign" | "labelStyle" | "required" | "labelWidth" | "showRequireMark" | "requireMarkPlacement" | "showFeedback" | "showLabel" | "path" | "privateSpan" | "privateColStart" | "privateShow" | "privateOffset" | "rulePath" | "rule" | "ignorePathChange" | "validationStatus" | "feedback" | "feedbackClass" | "feedbackStyle" | "labelProps")[];
|
|
163
|
+
export declare const formItemGiPropKeys: ("theme" | "themeOverrides" | "builtinThemeOverrides" | "contentClass" | "contentStyle" | "value" | "size" | "offset" | "label" | "span" | "suffix" | "first" | "labelPlacement" | "labelAlign" | "labelStyle" | "required" | "labelWidth" | "ellipsisLabel" | "showRequireMark" | "requireMarkPlacement" | "showFeedback" | "showLabel" | "path" | "privateSpan" | "privateColStart" | "privateShow" | "privateOffset" | "rulePath" | "rule" | "ignorePathChange" | "validationStatus" | "feedback" | "feedbackClass" | "feedbackStyle" | "labelProps")[];
|
|
160
164
|
export type FormItemGiProps = ExtractPublicPropTypes<typeof formItemGiProps>;
|
|
161
165
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
162
166
|
readonly label: StringConstructor;
|
|
167
|
+
readonly ellipsisLabel: {
|
|
168
|
+
readonly type: import("vue").PropType<boolean | undefined>;
|
|
169
|
+
readonly default: undefined;
|
|
170
|
+
};
|
|
163
171
|
readonly labelWidth: import("vue").PropType<string | number>;
|
|
164
172
|
readonly labelStyle: import("vue").PropType<import("vue").CSSProperties | string>;
|
|
165
173
|
readonly labelAlign: import("vue").PropType<import("./interface").LabelAlign>;
|
|
@@ -332,6 +340,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
332
340
|
invalidateLabelWidth: () => void;
|
|
333
341
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
334
342
|
readonly label: StringConstructor;
|
|
343
|
+
readonly ellipsisLabel: {
|
|
344
|
+
readonly type: import("vue").PropType<boolean | undefined>;
|
|
345
|
+
readonly default: undefined;
|
|
346
|
+
};
|
|
335
347
|
readonly labelWidth: import("vue").PropType<string | number>;
|
|
336
348
|
readonly labelStyle: import("vue").PropType<import("vue").CSSProperties | string>;
|
|
337
349
|
readonly labelAlign: import("vue").PropType<import("./interface").LabelAlign>;
|
|
@@ -492,6 +504,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
492
504
|
readonly suffix: boolean;
|
|
493
505
|
readonly first: boolean;
|
|
494
506
|
readonly required: boolean;
|
|
507
|
+
readonly ellipsisLabel: boolean | undefined;
|
|
495
508
|
readonly showRequireMark: boolean | undefined;
|
|
496
509
|
readonly showFeedback: boolean | undefined;
|
|
497
510
|
readonly showLabel: boolean | undefined;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import type { ExtractPublicPropTypes } from '../../_utils';
|
|
2
2
|
export declare const formItemRowProps: {
|
|
3
3
|
label: StringConstructor;
|
|
4
|
+
ellipsisLabel: {
|
|
5
|
+
readonly type: import("vue").PropType<boolean | undefined>;
|
|
6
|
+
readonly default: undefined;
|
|
7
|
+
};
|
|
4
8
|
labelWidth: import("vue").PropType<string | number>;
|
|
5
9
|
labelStyle: import("vue").PropType<import("vue").CSSProperties | string>;
|
|
6
10
|
labelAlign: import("vue").PropType<import("./interface").LabelAlign>;
|
|
@@ -164,6 +168,10 @@ export declare const formItemRowProps: {
|
|
|
164
168
|
export type FormItemRowProps = ExtractPublicPropTypes<typeof formItemRowProps>;
|
|
165
169
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
166
170
|
label: StringConstructor;
|
|
171
|
+
ellipsisLabel: {
|
|
172
|
+
readonly type: import("vue").PropType<boolean | undefined>;
|
|
173
|
+
readonly default: undefined;
|
|
174
|
+
};
|
|
167
175
|
labelWidth: import("vue").PropType<string | number>;
|
|
168
176
|
labelStyle: import("vue").PropType<import("vue").CSSProperties | string>;
|
|
169
177
|
labelAlign: import("vue").PropType<import("./interface").LabelAlign>;
|
|
@@ -342,6 +350,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
342
350
|
invalidateLabelWidth: () => void;
|
|
343
351
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
344
352
|
label: StringConstructor;
|
|
353
|
+
ellipsisLabel: {
|
|
354
|
+
readonly type: import("vue").PropType<boolean | undefined>;
|
|
355
|
+
readonly default: undefined;
|
|
356
|
+
};
|
|
345
357
|
labelWidth: import("vue").PropType<string | number>;
|
|
346
358
|
labelStyle: import("vue").PropType<import("vue").CSSProperties | string>;
|
|
347
359
|
labelAlign: import("vue").PropType<import("./interface").LabelAlign>;
|
|
@@ -508,6 +520,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
508
520
|
span: import("../../legacy-grid/src/interface").Span;
|
|
509
521
|
first: boolean;
|
|
510
522
|
required: boolean;
|
|
523
|
+
ellipsisLabel: boolean | undefined;
|
|
511
524
|
showRequireMark: boolean | undefined;
|
|
512
525
|
showFeedback: boolean | undefined;
|
|
513
526
|
showLabel: boolean | undefined;
|
package/es/form/src/utils.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export declare function formItemMisc(props: FormItemSetupProps): {
|
|
|
16
16
|
mergedValidationStatus: ComputedRef<"warning" | "error" | "success" | undefined>;
|
|
17
17
|
mergedShowFeedback: ComputedRef<boolean>;
|
|
18
18
|
mergedShowLabel: ComputedRef<boolean>;
|
|
19
|
+
mergedEllipsisLabel: ComputedRef<boolean>;
|
|
19
20
|
isAutoLabelWidth: ComputedRef<boolean>;
|
|
20
21
|
};
|
|
21
22
|
export declare function formItemRule(props: FormItemSetupProps): {
|
package/es/form/src/utils.mjs
CHANGED
|
@@ -61,6 +61,11 @@ export function formItemMisc(props) {
|
|
|
61
61
|
if (UForm === null || UForm === void 0 ? void 0 : UForm.props.labelAlign) return UForm.props.labelAlign;
|
|
62
62
|
return undefined;
|
|
63
63
|
});
|
|
64
|
+
const mergedEllipsisLabelRef = computed(() => {
|
|
65
|
+
var _a;
|
|
66
|
+
if (props.ellipsisLabel !== undefined) return props.ellipsisLabel;
|
|
67
|
+
return (_a = UForm === null || UForm === void 0 ? void 0 : UForm.props.ellipsisLabel) !== null && _a !== void 0 ? _a : false;
|
|
68
|
+
});
|
|
64
69
|
const mergedLabelStyleRef = computed(() => {
|
|
65
70
|
var _a;
|
|
66
71
|
return [(_a = props.labelProps) === null || _a === void 0 ? void 0 : _a.style, props.labelStyle, {
|
|
@@ -119,6 +124,7 @@ export function formItemMisc(props) {
|
|
|
119
124
|
mergedValidationStatus: mergedValidationStatusRef,
|
|
120
125
|
mergedShowFeedback: mergedShowFeedbackRef,
|
|
121
126
|
mergedShowLabel: mergedShowLabelRef,
|
|
127
|
+
mergedEllipsisLabel: mergedEllipsisLabelRef,
|
|
122
128
|
isAutoLabelWidth: isAutoLabelWidthRef
|
|
123
129
|
};
|
|
124
130
|
}
|
package/es/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "2.4.
|
|
1
|
+
declare const _default: "2.4.9";
|
|
2
2
|
export default _default;
|
package/es/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default '2.4.
|
|
1
|
+
export default '2.4.9';
|