@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 CHANGED
@@ -14,6 +14,7 @@
14
14
  |------|------|
15
15
  | ProTable | 增强表格,集成搜索、工具栏、分页 |
16
16
  | ProForm | Schema 驱动的表单,支持栅格布局 |
17
+ | FormattedNumberInput | 千分位数字输入(`component: 'formatted-number'` 所用组件,可单独按需引入) |
17
18
  | ProCard | 卡片容器 |
18
19
  | ProDescriptions | 详情描述列表 |
19
20
 
@@ -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
+ } & {};
@@ -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;