@aspire-ui/element-component-pro 1.0.8 → 1.0.10
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/ProForm/FormattedNumberInput.vue.d.ts +13 -0
- package/dist/element-component-pro.es.js +557 -525
- package/dist/element-component-pro.es.js.map +1 -1
- package/dist/element-component-pro.umd.js +2 -2
- package/dist/element-component-pro.umd.js.map +1 -1
- package/dist/index.d.ts +9 -0
- package/dist/utils/formattedNumber.d.ts +9 -0
- package/package.json +1 -1
- package/src/ProForm/FormattedNumberInput.vue +19 -3
- package/src/utils/formattedNumber.ts +42 -0
|
@@ -10,10 +10,16 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
10
10
|
decimalPlaces?: number;
|
|
11
11
|
/** 进位方式,默认四舍五入 */
|
|
12
12
|
rounding?: FormattedNumberRounding;
|
|
13
|
+
/**
|
|
14
|
+
* 为 true 时在输入过程中按 integerDigits / decimalPlaces 限制可输入位数;
|
|
15
|
+
* 为 false 时仅失焦后规范化,输入阶段不截断长度。
|
|
16
|
+
*/
|
|
17
|
+
inputLimit?: boolean;
|
|
13
18
|
}>, {
|
|
14
19
|
integerDigits: number;
|
|
15
20
|
decimalPlaces: number;
|
|
16
21
|
rounding: string;
|
|
22
|
+
inputLimit: boolean;
|
|
17
23
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
18
24
|
input: (value: unknown) => void;
|
|
19
25
|
}, string, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
@@ -26,14 +32,21 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
26
32
|
decimalPlaces?: number;
|
|
27
33
|
/** 进位方式,默认四舍五入 */
|
|
28
34
|
rounding?: FormattedNumberRounding;
|
|
35
|
+
/**
|
|
36
|
+
* 为 true 时在输入过程中按 integerDigits / decimalPlaces 限制可输入位数;
|
|
37
|
+
* 为 false 时仅失焦后规范化,输入阶段不截断长度。
|
|
38
|
+
*/
|
|
39
|
+
inputLimit?: boolean;
|
|
29
40
|
}>, {
|
|
30
41
|
integerDigits: number;
|
|
31
42
|
decimalPlaces: number;
|
|
32
43
|
rounding: string;
|
|
44
|
+
inputLimit: boolean;
|
|
33
45
|
}>>>, {
|
|
34
46
|
integerDigits: number;
|
|
35
47
|
decimalPlaces: number;
|
|
36
48
|
rounding: FormattedNumberRounding;
|
|
49
|
+
inputLimit: boolean;
|
|
37
50
|
}>;
|
|
38
51
|
export default _default;
|
|
39
52
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|