@aspire-ui/element-component-pro 1.0.7 → 1.0.8
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/README.md +1 -0
- package/dist/ProForm/FormattedNumberInput.vue.d.ts +55 -0
- package/dist/ProForm/index.d.ts +2 -1
- package/dist/element-component-pro.es.js +817 -645
- 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 +78 -26
- package/dist/style.css +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/utils/formattedNumber.d.ts +16 -0
- package/package.json +1 -1
- package/src/ProForm/FormattedNumberInput.vue +122 -0
- package/src/ProForm/ProFormItem.vue +11 -0
- package/src/ProForm/index.ts +2 -1
- package/src/index.ts +5 -2
- package/src/types/index.ts +2 -1
- package/src/utils/formattedNumber.ts +118 -0
package/README.md
CHANGED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { FormattedNumberRounding } from '../utils/formattedNumber';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
value?: unknown;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
/** 整数部分允许的最大位数,默认 5 */
|
|
8
|
+
integerDigits?: number;
|
|
9
|
+
/** 小数保留位数,默认 6 */
|
|
10
|
+
decimalPlaces?: number;
|
|
11
|
+
/** 进位方式,默认四舍五入 */
|
|
12
|
+
rounding?: FormattedNumberRounding;
|
|
13
|
+
}>, {
|
|
14
|
+
integerDigits: number;
|
|
15
|
+
decimalPlaces: number;
|
|
16
|
+
rounding: string;
|
|
17
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
18
|
+
input: (value: unknown) => void;
|
|
19
|
+
}, string, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
20
|
+
value?: unknown;
|
|
21
|
+
placeholder?: string;
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
/** 整数部分允许的最大位数,默认 5 */
|
|
24
|
+
integerDigits?: number;
|
|
25
|
+
/** 小数保留位数,默认 6 */
|
|
26
|
+
decimalPlaces?: number;
|
|
27
|
+
/** 进位方式,默认四舍五入 */
|
|
28
|
+
rounding?: FormattedNumberRounding;
|
|
29
|
+
}>, {
|
|
30
|
+
integerDigits: number;
|
|
31
|
+
decimalPlaces: number;
|
|
32
|
+
rounding: string;
|
|
33
|
+
}>>>, {
|
|
34
|
+
integerDigits: number;
|
|
35
|
+
decimalPlaces: number;
|
|
36
|
+
rounding: FormattedNumberRounding;
|
|
37
|
+
}>;
|
|
38
|
+
export default _default;
|
|
39
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
40
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
41
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
42
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
43
|
+
} : {
|
|
44
|
+
type: import('vue').PropType<T[K]>;
|
|
45
|
+
required: true;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
type __VLS_WithDefaults<P, D> = {
|
|
49
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
50
|
+
default: D[K];
|
|
51
|
+
}> : P[K];
|
|
52
|
+
};
|
|
53
|
+
type __VLS_Prettify<T> = {
|
|
54
|
+
[K in keyof T]: T[K];
|
|
55
|
+
} & {};
|
package/dist/ProForm/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { default as ProForm } from './ProForm.vue';
|
|
2
2
|
import { default as ProFormItem } from './ProFormItem.vue';
|
|
3
3
|
import { default as FormActions } from './FormActions.vue';
|
|
4
|
+
import { default as FormattedNumberInput } from './FormattedNumberInput.vue';
|
|
4
5
|
import { useForm } from './useForm';
|
|
5
6
|
|
|
6
|
-
export { ProForm, ProFormItem, FormActions, useForm };
|
|
7
|
+
export { ProForm, ProFormItem, FormActions, FormattedNumberInput, useForm };
|
|
7
8
|
export default ProForm;
|