@aplus-frontend/ui 6.29.3 → 6.30.1

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.
Files changed (205) hide show
  1. package/es/src/ag-grid/index.vue.mjs +228 -222
  2. package/es/src/ag-grid/renderer/select.mjs +8 -11
  3. package/es/src/ap-action/item-popconfirm/index.vue.d.ts +5 -6
  4. package/es/src/ap-field/checkbox/index.vue.d.ts +1 -1
  5. package/es/src/ap-field/checkbox/read.vue.d.ts +1 -1
  6. package/es/src/ap-field/date/index.vue.d.ts +4 -4
  7. package/es/src/ap-field/date/index.vue.mjs +11 -10
  8. package/es/src/ap-field/date/read.vue.d.ts +1 -1
  9. package/es/src/ap-field/date/read.vue2.mjs +8 -7
  10. package/es/src/ap-field/date-range/index.vue.d.ts +4 -4
  11. package/es/src/ap-field/date-range/index.vue.mjs +1 -0
  12. package/es/src/ap-field/date-range/read.vue.d.ts +1 -1
  13. package/es/src/ap-field/date-range/read.vue2.mjs +1 -0
  14. package/es/src/ap-field/index.d.ts +7 -7
  15. package/es/src/ap-field/number/index.vue.d.ts +90 -50
  16. package/es/src/ap-field/number/index.vue.mjs +14 -12
  17. package/es/src/ap-field/number/read.vue2.mjs +8 -6
  18. package/es/src/ap-field/rate/index.vue.d.ts +6 -6
  19. package/es/src/ap-field/select/index.vue.d.ts +241 -241
  20. package/es/src/ap-field/select/index.vue.mjs +27 -27
  21. package/es/src/ap-field/select/read.vue2.mjs +27 -27
  22. package/es/src/ap-field/slider/index.vue.d.ts +9 -9
  23. package/es/src/ap-field/switch/index.vue.d.ts +1 -1
  24. package/es/src/ap-field/switch/read.vue.d.ts +1 -1
  25. package/es/src/ap-field/text/index.vue.d.ts +1 -1
  26. package/es/src/ap-field/text/index.vue2.mjs +39 -38
  27. package/es/src/ap-field/text/password.vue.d.ts +1 -1
  28. package/es/src/ap-field/text/password.vue.mjs +34 -33
  29. package/es/src/ap-field/text/read-password.vue.d.ts +1 -1
  30. package/es/src/ap-field/text/read-password.vue2.mjs +31 -30
  31. package/es/src/ap-field/text/read.vue.d.ts +1 -1
  32. package/es/src/ap-field/text/read.vue2.mjs +21 -20
  33. package/es/src/ap-field/text-area/index.vue.d.ts +67 -57
  34. package/es/src/ap-field/text-area/index.vue.mjs +15 -14
  35. package/es/src/ap-field/text-area/read.vue.d.ts +1 -1
  36. package/es/src/ap-field/text-area/read.vue2.mjs +11 -10
  37. package/es/src/ap-field/tree-select/index.vue.d.ts +326 -326
  38. package/es/src/ap-field/tree-select/index.vue.mjs +46 -46
  39. package/es/src/ap-field/tree-select/read.vue2.mjs +45 -45
  40. package/es/src/ap-form/ap-form.vue.d.ts +71 -67
  41. package/es/src/ap-form/drawer-form/index.vue.d.ts +65 -65
  42. package/es/src/ap-form/item/index.vue.d.ts +36 -36
  43. package/es/src/ap-form/item/index.vue.mjs +10 -10
  44. package/es/src/ap-form/items/number/index.vue.d.ts +103 -59
  45. package/es/src/ap-form/items/select/index.vue.d.ts +306 -306
  46. package/es/src/ap-form/items/text/index.vue.d.ts +19 -17
  47. package/es/src/ap-form/items/text/password.vue.d.ts +19 -17
  48. package/es/src/ap-form/items/text-area/index.vue.d.ts +138 -118
  49. package/es/src/ap-form/items/tree-select/index.vue.d.ts +407 -407
  50. package/es/src/ap-form/modal-form/index.vue.d.ts +69 -70
  51. package/es/src/ap-form/search-form/components/popover-filter.vue.d.ts +5 -6
  52. package/es/src/ap-form/search-form/index.vue.d.ts +67 -67
  53. package/es/src/ap-form/search-form/index.vue.mjs +40 -40
  54. package/es/src/ap-grid/constants.d.ts +3 -0
  55. package/es/src/ap-grid/constants.mjs +6 -3
  56. package/es/src/ap-grid/index.vue.mjs +221 -214
  57. package/es/src/ap-grid/utils/table.d.ts +1 -1
  58. package/es/src/ap-grid/utils/table.mjs +59 -62
  59. package/es/src/ap-table/constants.d.ts +499 -465
  60. package/es/src/ap-table/utils.d.ts +1 -1
  61. package/es/src/ap-upload/components/MultipleFile.vue.d.ts +8 -8
  62. package/es/src/business/ap-batch-action-group/index.d.ts +7 -8
  63. package/es/src/business/ap-label/ApLabel.d.ts +4 -4
  64. package/es/src/business/ap-label/constans.d.ts +1 -1
  65. package/es/src/business/ap-label/index.d.ts +9 -9
  66. package/es/src/business/ap-radio-group/ap-radio-group.vue.d.ts +1 -1
  67. package/es/src/business/ap-radio-group/index.d.ts +3 -3
  68. package/es/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +1 -1
  69. package/es/src/business/ap-table-modal/hooks/use-table-modal.d.ts +1 -1
  70. package/es/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +1 -1
  71. package/es/src/business/ap-table-modal/index.d.ts +3 -3
  72. package/es/src/business/ap-table-modal/table-modal.vue.d.ts +1 -1
  73. package/es/src/business/ap-table-modal/table-modal.vue2.mjs +3 -2
  74. package/es/src/business/ap-view/ap-view.vue2.mjs +80 -80
  75. package/es/src/business/ap-view/components/main-button-content.vue.d.ts +33 -33
  76. package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +33 -33
  77. package/es/src/business/ap-view/interface.d.ts +13 -3
  78. package/es/src/business/batch-input-group/index.vue.d.ts +11 -10
  79. package/es/src/business/batch-input-group/index.vue.mjs +20 -19
  80. package/es/src/business/batch-input-group/popover-input/index.vue.d.ts +66 -56
  81. package/es/src/business/hooks/usePageListApTable.d.ts +1 -1
  82. package/es/src/config-provider/config-provider-props.d.ts +64 -52
  83. package/es/src/config-provider/config-provider-props.mjs +10 -2
  84. package/es/src/config-provider/config-provider.d.ts +130 -113
  85. package/es/src/config-provider/config-provider.mjs +26 -24
  86. package/es/src/config-provider/hooks/use-global-config.d.ts +60 -49
  87. package/es/src/config-provider/index.d.ts +214 -197
  88. package/es/src/mask/utils.d.ts +1 -1
  89. package/es/src/mask/utils.mjs +29 -13
  90. package/es/src/text/index.vue.mjs +3 -3
  91. package/es/src/utils/config-provider-preset.d.ts +36 -49
  92. package/es/src/version.d.ts +1 -1
  93. package/es/src/version.mjs +1 -1
  94. package/es/src/work-order-modal/work-order-modal.vue.d.ts +33 -33
  95. package/lib/src/ag-grid/index.vue.js +1 -1
  96. package/lib/src/ag-grid/renderer/select.js +1 -1
  97. package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +5 -6
  98. package/lib/src/ap-field/checkbox/index.vue.d.ts +1 -1
  99. package/lib/src/ap-field/checkbox/read.vue.d.ts +1 -1
  100. package/lib/src/ap-field/date/index.vue.d.ts +4 -4
  101. package/lib/src/ap-field/date/index.vue.js +1 -1
  102. package/lib/src/ap-field/date/read.vue.d.ts +1 -1
  103. package/lib/src/ap-field/date/read.vue2.js +1 -1
  104. package/lib/src/ap-field/date-range/index.vue.d.ts +4 -4
  105. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  106. package/lib/src/ap-field/date-range/read.vue.d.ts +1 -1
  107. package/lib/src/ap-field/date-range/read.vue2.js +1 -1
  108. package/lib/src/ap-field/index.d.ts +7 -7
  109. package/lib/src/ap-field/number/index.vue.d.ts +90 -50
  110. package/lib/src/ap-field/number/index.vue.js +1 -1
  111. package/lib/src/ap-field/number/read.vue2.js +1 -1
  112. package/lib/src/ap-field/rate/index.vue.d.ts +6 -6
  113. package/lib/src/ap-field/select/index.vue.d.ts +241 -241
  114. package/lib/src/ap-field/select/index.vue.js +1 -1
  115. package/lib/src/ap-field/select/read.vue2.js +1 -1
  116. package/lib/src/ap-field/slider/index.vue.d.ts +9 -9
  117. package/lib/src/ap-field/switch/index.vue.d.ts +1 -1
  118. package/lib/src/ap-field/switch/read.vue.d.ts +1 -1
  119. package/lib/src/ap-field/text/index.vue.d.ts +1 -1
  120. package/lib/src/ap-field/text/index.vue2.js +1 -1
  121. package/lib/src/ap-field/text/password.vue.d.ts +1 -1
  122. package/lib/src/ap-field/text/password.vue.js +1 -1
  123. package/lib/src/ap-field/text/read-password.vue.d.ts +1 -1
  124. package/lib/src/ap-field/text/read-password.vue2.js +1 -1
  125. package/lib/src/ap-field/text/read.vue.d.ts +1 -1
  126. package/lib/src/ap-field/text/read.vue2.js +1 -1
  127. package/lib/src/ap-field/text-area/index.vue.d.ts +67 -57
  128. package/lib/src/ap-field/text-area/index.vue.js +1 -1
  129. package/lib/src/ap-field/text-area/read.vue.d.ts +1 -1
  130. package/lib/src/ap-field/text-area/read.vue2.js +1 -1
  131. package/lib/src/ap-field/tree-select/index.vue.d.ts +326 -326
  132. package/lib/src/ap-field/tree-select/index.vue.js +1 -1
  133. package/lib/src/ap-field/tree-select/read.vue2.js +1 -1
  134. package/lib/src/ap-form/ap-form.vue.d.ts +71 -67
  135. package/lib/src/ap-form/drawer-form/index.vue.d.ts +65 -65
  136. package/lib/src/ap-form/item/index.vue.d.ts +36 -36
  137. package/lib/src/ap-form/item/index.vue.js +1 -1
  138. package/lib/src/ap-form/items/number/index.vue.d.ts +103 -59
  139. package/lib/src/ap-form/items/select/index.vue.d.ts +306 -306
  140. package/lib/src/ap-form/items/text/index.vue.d.ts +19 -17
  141. package/lib/src/ap-form/items/text/password.vue.d.ts +19 -17
  142. package/lib/src/ap-form/items/text-area/index.vue.d.ts +138 -118
  143. package/lib/src/ap-form/items/tree-select/index.vue.d.ts +407 -407
  144. package/lib/src/ap-form/modal-form/index.vue.d.ts +69 -70
  145. package/lib/src/ap-form/search-form/components/popover-filter.vue.d.ts +5 -6
  146. package/lib/src/ap-form/search-form/index.vue.d.ts +67 -67
  147. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  148. package/lib/src/ap-grid/constants.d.ts +3 -0
  149. package/lib/src/ap-grid/constants.js +1 -1
  150. package/lib/src/ap-grid/index.vue.js +1 -1
  151. package/lib/src/ap-grid/utils/table.d.ts +1 -1
  152. package/lib/src/ap-grid/utils/table.js +1 -1
  153. package/lib/src/ap-table/constants.d.ts +499 -465
  154. package/lib/src/ap-table/utils.d.ts +1 -1
  155. package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +8 -8
  156. package/lib/src/business/ap-batch-action-group/index.d.ts +7 -8
  157. package/lib/src/business/ap-label/ApLabel.d.ts +4 -4
  158. package/lib/src/business/ap-label/constans.d.ts +1 -1
  159. package/lib/src/business/ap-label/index.d.ts +9 -9
  160. package/lib/src/business/ap-radio-group/ap-radio-group.vue.d.ts +1 -1
  161. package/lib/src/business/ap-radio-group/index.d.ts +3 -3
  162. package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +1 -1
  163. package/lib/src/business/ap-table-modal/hooks/use-table-modal.d.ts +1 -1
  164. package/lib/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +1 -1
  165. package/lib/src/business/ap-table-modal/index.d.ts +3 -3
  166. package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +1 -1
  167. package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
  168. package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
  169. package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +33 -33
  170. package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +33 -33
  171. package/lib/src/business/ap-view/interface.d.ts +13 -3
  172. package/lib/src/business/batch-input-group/index.vue.d.ts +11 -10
  173. package/lib/src/business/batch-input-group/index.vue.js +1 -1
  174. package/lib/src/business/batch-input-group/popover-input/index.vue.d.ts +66 -56
  175. package/lib/src/business/hooks/usePageListApTable.d.ts +1 -1
  176. package/lib/src/config-provider/config-provider-props.d.ts +64 -52
  177. package/lib/src/config-provider/config-provider-props.js +1 -1
  178. package/lib/src/config-provider/config-provider.d.ts +130 -113
  179. package/lib/src/config-provider/config-provider.js +1 -1
  180. package/lib/src/config-provider/hooks/use-global-config.d.ts +60 -49
  181. package/lib/src/config-provider/index.d.ts +214 -197
  182. package/lib/src/mask/utils.d.ts +1 -1
  183. package/lib/src/mask/utils.js +3 -3
  184. package/lib/src/text/index.vue.js +1 -1
  185. package/lib/src/utils/config-provider-preset.d.ts +36 -49
  186. package/lib/src/version.d.ts +1 -1
  187. package/lib/src/version.js +1 -1
  188. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +33 -33
  189. package/package.json +3 -3
  190. package/theme/ag-grid/index.css +0 -6
  191. package/theme/antdv-override.css +0 -6
  192. package/theme/antdv-override.less +0 -8
  193. package/theme/ap-expand-alert/ap-expand-alert.css +0 -4
  194. package/theme/ap-expand-alert/ap-expand-alert.less +6 -5
  195. package/theme/ap-form/ap-form-item.css +0 -6
  196. package/theme/ap-form/ap-form-item.less +0 -6
  197. package/theme/ap-form/index.css +0 -6
  198. package/theme/ap-form/search-form.css +0 -6
  199. package/theme/ap-grid/index.css +0 -6
  200. package/theme/ap-table/ap-table.css +0 -6
  201. package/theme/ap-table-modal/index.css +0 -6
  202. package/theme/ap-view/ap-view.css +4 -0
  203. package/theme/ap-view/ap-view.less +4 -0
  204. package/theme/editable-table/index.css +0 -6
  205. package/theme/index.css +4 -16
@@ -1,6 +1,6 @@
1
1
  import { ApFieldNumberProps } from '../interface';
2
2
  import { CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DefineComponent } from 'vue';
3
- import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
3
+ import { ButtonSize } from '@aplus-frontend/antdv/es/button';
4
4
  import { VueTypeValidableDef } from '../../../node_modules/vue-types';
5
5
  import { ValueType } from '@aplus-frontend/antdv/es/input-number/src/utils/MiniDecimal';
6
6
  import { KeyboardEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
@@ -19,8 +19,8 @@ declare function __VLS_template(): {
19
19
  refs: {
20
20
  inputRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
21
21
  size: {
22
- type: PropType<SizeType>;
23
- default: SizeType;
22
+ type: PropType<ButtonSize>;
23
+ default: ButtonSize;
24
24
  };
25
25
  bordered: {
26
26
  type: BooleanConstructor;
@@ -43,6 +43,14 @@ declare function __VLS_template(): {
43
43
  type: PropType<"" | "error" | "warning">;
44
44
  default: "" | "error" | "warning";
45
45
  };
46
+ variant: {
47
+ type: PropType<"filled" | "outlined" | "borderless" | "underlined">;
48
+ default: "filled" | "outlined" | "borderless" | "underlined";
49
+ };
50
+ changeOnWheel: {
51
+ type: BooleanConstructor;
52
+ default: boolean;
53
+ };
46
54
  stringMode: {
47
55
  type: BooleanConstructor;
48
56
  default: boolean;
@@ -139,7 +147,7 @@ declare function __VLS_template(): {
139
147
  default: (e: FocusEvent) => void;
140
148
  };
141
149
  }>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
142
- size: SizeType;
150
+ size: ButtonSize;
143
151
  value: ValueType;
144
152
  onFocus: (e: FocusEvent) => void;
145
153
  onBlur: (e: FocusEvent) => void;
@@ -149,26 +157,28 @@ declare function __VLS_template(): {
149
157
  max: ValueType;
150
158
  min: ValueType;
151
159
  prefixCls: string;
160
+ readonly: boolean;
161
+ autofocus: boolean;
162
+ variant: "filled" | "outlined" | "borderless" | "underlined";
152
163
  bordered: boolean;
153
- defaultValue: ValueType;
164
+ onPressEnter: KeyboardEventHandler;
165
+ 'onUpdate:value': (value: ValueType) => void;
154
166
  status: "" | "error" | "warning";
167
+ defaultValue: ValueType;
155
168
  step: ValueType;
156
- autofocus: boolean;
157
- readonly: boolean;
158
- 'onUpdate:value': (value: ValueType) => void;
159
- onPressEnter: KeyboardEventHandler;
169
+ changeOnWheel: boolean;
170
+ stringMode: boolean;
171
+ controls: boolean;
172
+ keyboard: boolean;
173
+ parser: (displayValue: string) => ValueType;
160
174
  formatter: (value: ValueType, info: {
161
175
  userTyping: boolean;
162
176
  input: string;
163
177
  }) => string;
164
- keyboard: boolean;
165
178
  onStep: (value: ValueType, info: {
166
179
  offset: ValueType;
167
180
  type: "up" | "down";
168
181
  }) => void;
169
- stringMode: boolean;
170
- controls: boolean;
171
- parser: (displayValue: string) => ValueType;
172
182
  }, true, {}, CustomSlotsType<{
173
183
  addonBefore?: any;
174
184
  addonAfter?: any;
@@ -186,8 +196,8 @@ declare function __VLS_template(): {
186
196
  Defaults: {};
187
197
  }, Readonly< ExtractPropTypes<{
188
198
  size: {
189
- type: PropType<SizeType>;
190
- default: SizeType;
199
+ type: PropType<ButtonSize>;
200
+ default: ButtonSize;
191
201
  };
192
202
  bordered: {
193
203
  type: BooleanConstructor;
@@ -210,6 +220,14 @@ declare function __VLS_template(): {
210
220
  type: PropType<"" | "error" | "warning">;
211
221
  default: "" | "error" | "warning";
212
222
  };
223
+ variant: {
224
+ type: PropType<"filled" | "outlined" | "borderless" | "underlined">;
225
+ default: "filled" | "outlined" | "borderless" | "underlined";
226
+ };
227
+ changeOnWheel: {
228
+ type: BooleanConstructor;
229
+ default: boolean;
230
+ };
213
231
  stringMode: {
214
232
  type: BooleanConstructor;
215
233
  default: boolean;
@@ -306,7 +324,7 @@ declare function __VLS_template(): {
306
324
  default: (e: FocusEvent) => void;
307
325
  };
308
326
  }>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
309
- size: SizeType;
327
+ size: ButtonSize;
310
328
  value: ValueType;
311
329
  onFocus: (e: FocusEvent) => void;
312
330
  onBlur: (e: FocusEvent) => void;
@@ -316,26 +334,28 @@ declare function __VLS_template(): {
316
334
  max: ValueType;
317
335
  min: ValueType;
318
336
  prefixCls: string;
337
+ readonly: boolean;
338
+ autofocus: boolean;
339
+ variant: "filled" | "outlined" | "borderless" | "underlined";
319
340
  bordered: boolean;
320
- defaultValue: ValueType;
341
+ onPressEnter: KeyboardEventHandler;
342
+ 'onUpdate:value': (value: ValueType) => void;
321
343
  status: "" | "error" | "warning";
344
+ defaultValue: ValueType;
322
345
  step: ValueType;
323
- autofocus: boolean;
324
- readonly: boolean;
325
- 'onUpdate:value': (value: ValueType) => void;
326
- onPressEnter: KeyboardEventHandler;
346
+ changeOnWheel: boolean;
347
+ stringMode: boolean;
348
+ controls: boolean;
349
+ keyboard: boolean;
350
+ parser: (displayValue: string) => ValueType;
327
351
  formatter: (value: ValueType, info: {
328
352
  userTyping: boolean;
329
353
  input: string;
330
354
  }) => string;
331
- keyboard: boolean;
332
355
  onStep: (value: ValueType, info: {
333
356
  offset: ValueType;
334
357
  type: "up" | "down";
335
358
  }) => void;
336
- stringMode: boolean;
337
- controls: boolean;
338
- parser: (displayValue: string) => ValueType;
339
359
  }> | null;
340
360
  };
341
361
  rootEl: any;
@@ -355,14 +375,14 @@ declare const __VLS_component: DefineComponent<ApFieldNumberProps, {
355
375
  bordered: boolean;
356
376
  max: ValueType;
357
377
  min: ValueType;
358
- controls: boolean;
359
378
  emptyText: string;
379
+ controls: boolean;
360
380
  thousands: boolean;
361
381
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
362
382
  inputRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
363
383
  size: {
364
- type: PropType<SizeType>;
365
- default: SizeType;
384
+ type: PropType<ButtonSize>;
385
+ default: ButtonSize;
366
386
  };
367
387
  bordered: {
368
388
  type: BooleanConstructor;
@@ -385,6 +405,14 @@ declare const __VLS_component: DefineComponent<ApFieldNumberProps, {
385
405
  type: PropType<"" | "error" | "warning">;
386
406
  default: "" | "error" | "warning";
387
407
  };
408
+ variant: {
409
+ type: PropType<"filled" | "outlined" | "borderless" | "underlined">;
410
+ default: "filled" | "outlined" | "borderless" | "underlined";
411
+ };
412
+ changeOnWheel: {
413
+ type: BooleanConstructor;
414
+ default: boolean;
415
+ };
388
416
  stringMode: {
389
417
  type: BooleanConstructor;
390
418
  default: boolean;
@@ -481,7 +509,7 @@ declare const __VLS_component: DefineComponent<ApFieldNumberProps, {
481
509
  default: (e: FocusEvent) => void;
482
510
  };
483
511
  }>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
484
- size: SizeType;
512
+ size: ButtonSize;
485
513
  value: ValueType;
486
514
  onFocus: (e: FocusEvent) => void;
487
515
  onBlur: (e: FocusEvent) => void;
@@ -491,26 +519,28 @@ declare const __VLS_component: DefineComponent<ApFieldNumberProps, {
491
519
  max: ValueType;
492
520
  min: ValueType;
493
521
  prefixCls: string;
522
+ readonly: boolean;
523
+ autofocus: boolean;
524
+ variant: "filled" | "outlined" | "borderless" | "underlined";
494
525
  bordered: boolean;
495
- defaultValue: ValueType;
526
+ onPressEnter: KeyboardEventHandler;
527
+ 'onUpdate:value': (value: ValueType) => void;
496
528
  status: "" | "error" | "warning";
529
+ defaultValue: ValueType;
497
530
  step: ValueType;
498
- autofocus: boolean;
499
- readonly: boolean;
500
- 'onUpdate:value': (value: ValueType) => void;
501
- onPressEnter: KeyboardEventHandler;
531
+ changeOnWheel: boolean;
532
+ stringMode: boolean;
533
+ controls: boolean;
534
+ keyboard: boolean;
535
+ parser: (displayValue: string) => ValueType;
502
536
  formatter: (value: ValueType, info: {
503
537
  userTyping: boolean;
504
538
  input: string;
505
539
  }) => string;
506
- keyboard: boolean;
507
540
  onStep: (value: ValueType, info: {
508
541
  offset: ValueType;
509
542
  type: "up" | "down";
510
543
  }) => void;
511
- stringMode: boolean;
512
- controls: boolean;
513
- parser: (displayValue: string) => ValueType;
514
544
  }, true, {}, CustomSlotsType<{
515
545
  addonBefore?: any;
516
546
  addonAfter?: any;
@@ -528,8 +558,8 @@ declare const __VLS_component: DefineComponent<ApFieldNumberProps, {
528
558
  Defaults: {};
529
559
  }, Readonly< ExtractPropTypes<{
530
560
  size: {
531
- type: PropType<SizeType>;
532
- default: SizeType;
561
+ type: PropType<ButtonSize>;
562
+ default: ButtonSize;
533
563
  };
534
564
  bordered: {
535
565
  type: BooleanConstructor;
@@ -552,6 +582,14 @@ declare const __VLS_component: DefineComponent<ApFieldNumberProps, {
552
582
  type: PropType<"" | "error" | "warning">;
553
583
  default: "" | "error" | "warning";
554
584
  };
585
+ variant: {
586
+ type: PropType<"filled" | "outlined" | "borderless" | "underlined">;
587
+ default: "filled" | "outlined" | "borderless" | "underlined";
588
+ };
589
+ changeOnWheel: {
590
+ type: BooleanConstructor;
591
+ default: boolean;
592
+ };
555
593
  stringMode: {
556
594
  type: BooleanConstructor;
557
595
  default: boolean;
@@ -648,7 +686,7 @@ declare const __VLS_component: DefineComponent<ApFieldNumberProps, {
648
686
  default: (e: FocusEvent) => void;
649
687
  };
650
688
  }>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
651
- size: SizeType;
689
+ size: ButtonSize;
652
690
  value: ValueType;
653
691
  onFocus: (e: FocusEvent) => void;
654
692
  onBlur: (e: FocusEvent) => void;
@@ -658,26 +696,28 @@ declare const __VLS_component: DefineComponent<ApFieldNumberProps, {
658
696
  max: ValueType;
659
697
  min: ValueType;
660
698
  prefixCls: string;
699
+ readonly: boolean;
700
+ autofocus: boolean;
701
+ variant: "filled" | "outlined" | "borderless" | "underlined";
661
702
  bordered: boolean;
662
- defaultValue: ValueType;
703
+ onPressEnter: KeyboardEventHandler;
704
+ 'onUpdate:value': (value: ValueType) => void;
663
705
  status: "" | "error" | "warning";
706
+ defaultValue: ValueType;
664
707
  step: ValueType;
665
- autofocus: boolean;
666
- readonly: boolean;
667
- 'onUpdate:value': (value: ValueType) => void;
668
- onPressEnter: KeyboardEventHandler;
708
+ changeOnWheel: boolean;
709
+ stringMode: boolean;
710
+ controls: boolean;
711
+ keyboard: boolean;
712
+ parser: (displayValue: string) => ValueType;
669
713
  formatter: (value: ValueType, info: {
670
714
  userTyping: boolean;
671
715
  input: string;
672
716
  }) => string;
673
- keyboard: boolean;
674
717
  onStep: (value: ValueType, info: {
675
718
  offset: ValueType;
676
719
  type: "up" | "down";
677
720
  }) => void;
678
- stringMode: boolean;
679
- controls: boolean;
680
- parser: (displayValue: string) => ValueType;
681
721
  }> | null;
682
722
  }, any>;
683
723
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -3,12 +3,12 @@ import { InputNumber as z } from "@aplus-frontend/antdv";
3
3
  import "../../hooks/index.mjs";
4
4
  import { isNil as E, omit as M } from "lodash-unified";
5
5
  import { roundWith as T, toDecimalMark as F } from "@fruits-chain/utils";
6
- import { addZeroToDecimalPlaces as w } from "./helper.mjs";
6
+ import { addZeroToDecimalPlaces as W } from "./helper.mjs";
7
7
  import "../../config-provider/index.mjs";
8
- import { useDefaultPlaceholder as L } from "../hooks/use-default-placeholder.mjs";
9
- import { useNamespace as W } from "../../config-provider/hooks/use-namespace.mjs";
10
- import { useControllableValue as Z } from "../../hooks/useControllableValue.mjs";
11
- const j = { key: 0 }, te = /* @__PURE__ */ x({
8
+ import { useDefaultPlaceholder as w } from "../hooks/use-default-placeholder.mjs";
9
+ import { useNamespace as L } from "../../config-provider/hooks/use-namespace.mjs";
10
+ import { useControllableValue as O } from "../../hooks/useControllableValue.mjs";
11
+ const Z = { key: 0 }, te = /* @__PURE__ */ x({
12
12
  name: "ApFieldNumber",
13
13
  __name: "index",
14
14
  props: {
@@ -28,6 +28,8 @@ const j = { key: 0 }, te = /* @__PURE__ */ x({
28
28
  "onUpdate:value": {},
29
29
  valueModifiers: {},
30
30
  status: {},
31
+ variant: {},
32
+ changeOnWheel: { type: Boolean },
31
33
  stringMode: { type: Boolean },
32
34
  defaultValue: {},
33
35
  value: {},
@@ -57,16 +59,16 @@ const j = { key: 0 }, te = /* @__PURE__ */ x({
57
59
  },
58
60
  emits: ["update:value"],
59
61
  setup(m, { expose: c, emit: y }) {
60
- const v = y, { b: i } = W("field-number"), o = m, l = C(), { value: u, updateValue: b } = Z(
62
+ const v = y, { b: i } = L("field-number"), o = m, l = C(), { value: u, updateValue: h } = O(
61
63
  o,
62
64
  v
63
- ), B = L("Number", o), h = N(() => {
65
+ ), B = w("Number", o), b = N(() => {
64
66
  let e = t(u);
65
67
  if (E(e))
66
68
  return o.emptyText;
67
69
  o.precision && (e = T(e, o.precision));
68
70
  let a = o.thousands ? F(e) : String(e);
69
- return o.precision && o.limitDecimalsRetain && (a = w(a, o.precision)), a;
71
+ return o.precision && o.limitDecimalsRetain && (a = W(a, o.precision)), a;
70
72
  });
71
73
  function k() {
72
74
  l.value?.focus();
@@ -74,14 +76,14 @@ const j = { key: 0 }, te = /* @__PURE__ */ x({
74
76
  function g() {
75
77
  l.value?.blur();
76
78
  }
77
- return c({ focus: k, blur: g }), (e, a) => e.mode === "read" ? (r(), n("span", j, [
79
+ return c({ focus: k, blur: g }), (e, a) => e.mode === "read" ? (r(), n("span", Z, [
78
80
  e.$slots.prefix ? (r(), n("span", {
79
81
  key: 0,
80
82
  class: f(t(i)("label-left"))
81
83
  }, [
82
84
  s(e.$slots, "prefix")
83
85
  ], 2)) : d("", !0),
84
- P("span", null, V(h.value), 1),
86
+ P("span", null, V(b.value), 1),
85
87
  e.$slots.addonAfter ? (r(), n("span", {
86
88
  key: 1,
87
89
  class: f(t(i)("label-right"))
@@ -93,9 +95,9 @@ const j = { key: 0 }, te = /* @__PURE__ */ x({
93
95
  ref: l,
94
96
  placeholder: t(B),
95
97
  value: t(u),
96
- "onUpdate:value": t(b)
98
+ "onUpdate:value": t(h)
97
99
  }), R({ _: 2 }, [
98
- A(e.$slots, (q, p) => ({
100
+ A(e.$slots, (j, p) => ({
99
101
  name: p,
100
102
  fn: I((S) => [
101
103
  s(e.$slots, p, U(_(S || {})))
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as p, computed as d, createElementBlock as a, openBlock as n, createCommentVNode as r, createElementVNode as m, renderSlot as l, toDisplayString as u } from "vue";
2
- import { isNil as f } from "lodash-unified";
3
- import { roundWith as c, toDecimalMark as y } from "@fruits-chain/utils";
2
+ import { isNil as c } from "lodash-unified";
3
+ import { roundWith as f, toDecimalMark as y } from "@fruits-chain/utils";
4
4
  import { addZeroToDecimalPlaces as B } from "./helper.mjs";
5
5
  const h = {
6
6
  key: 0,
7
7
  style: { "padding-right": "4px" }
8
- }, x = {
8
+ }, g = {
9
9
  key: 1,
10
10
  style: { "padding-left": "4px" }
11
11
  }, _ = /* @__PURE__ */ p({
@@ -28,6 +28,8 @@ const h = {
28
28
  "onUpdate:value": {},
29
29
  valueModifiers: {},
30
30
  status: {},
31
+ variant: {},
32
+ changeOnWheel: { type: Boolean },
31
33
  stringMode: { type: Boolean },
32
34
  defaultValue: {},
33
35
  value: {},
@@ -58,9 +60,9 @@ const h = {
58
60
  setup(s) {
59
61
  const o = s, i = d(() => {
60
62
  let e = o.value;
61
- if (f(e))
63
+ if (c(e))
62
64
  return o.emptyText;
63
- o.precision && (e = c(e, o.precision));
65
+ o.precision && (e = f(e, o.precision));
64
66
  let t = o.thousands ? y(e) : String(e);
65
67
  return o.precision && o.limitDecimalsRetain && (t = B(t, o.precision)), t;
66
68
  });
@@ -69,7 +71,7 @@ const h = {
69
71
  l(e.$slots, "prefix")
70
72
  ])) : r("", !0),
71
73
  m("span", null, u(i.value), 1),
72
- e.$slots.addonAfter ? (n(), a("span", x, [
74
+ e.$slots.addonAfter ? (n(), a("span", g, [
73
75
  l(e.$slots, "addonAfter")
74
76
  ])) : r("", !0)
75
77
  ]));
@@ -46,8 +46,8 @@ declare function __VLS_template(): {
46
46
  onKeydown: PropType<KeyboardEventHandler>;
47
47
  }>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
48
48
  disabled: boolean;
49
- allowClear: boolean;
50
49
  autofocus: boolean;
50
+ allowClear: boolean;
51
51
  allowHalf: boolean;
52
52
  }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
53
53
  P: {};
@@ -89,8 +89,8 @@ declare function __VLS_template(): {
89
89
  onKeydown: PropType<KeyboardEventHandler>;
90
90
  }>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
91
91
  disabled: boolean;
92
- allowClear: boolean;
93
92
  autofocus: boolean;
93
+ allowClear: boolean;
94
94
  allowHalf: boolean;
95
95
  }> | null;
96
96
  };
@@ -108,10 +108,10 @@ declare const __VLS_component: DefineComponent<ApFieldRateProps, {
108
108
  mode: FieldMode;
109
109
  disabled: boolean;
110
110
  autofocus: boolean;
111
- count: number;
112
111
  allowClear: boolean;
113
- allowHalf: boolean;
114
112
  character: any;
113
+ count: number;
114
+ allowHalf: boolean;
115
115
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
116
116
  rateRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
117
117
  prefixCls: StringConstructor;
@@ -146,8 +146,8 @@ declare const __VLS_component: DefineComponent<ApFieldRateProps, {
146
146
  onKeydown: PropType<KeyboardEventHandler>;
147
147
  }>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
148
148
  disabled: boolean;
149
- allowClear: boolean;
150
149
  autofocus: boolean;
150
+ allowClear: boolean;
151
151
  allowHalf: boolean;
152
152
  }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
153
153
  P: {};
@@ -189,8 +189,8 @@ declare const __VLS_component: DefineComponent<ApFieldRateProps, {
189
189
  onKeydown: PropType<KeyboardEventHandler>;
190
190
  }>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
191
191
  disabled: boolean;
192
- allowClear: boolean;
193
192
  autofocus: boolean;
193
+ allowClear: boolean;
194
194
  allowHalf: boolean;
195
195
  }> | null;
196
196
  }, any>;