@aplus-frontend/ui 6.29.2 → 6.30.0

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 (201) 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/index.vue.mjs +20 -20
  6. package/es/src/ap-field/checkbox/read.vue.d.ts +1 -1
  7. package/es/src/ap-field/date/index.vue.d.ts +4 -4
  8. package/es/src/ap-field/date/index.vue.mjs +11 -10
  9. package/es/src/ap-field/date/read.vue.d.ts +1 -1
  10. package/es/src/ap-field/date/read.vue2.mjs +8 -7
  11. package/es/src/ap-field/date-range/index.vue.d.ts +4 -4
  12. package/es/src/ap-field/date-range/index.vue.mjs +1 -0
  13. package/es/src/ap-field/date-range/read.vue.d.ts +1 -1
  14. package/es/src/ap-field/date-range/read.vue2.mjs +1 -0
  15. package/es/src/ap-field/index.d.ts +7 -7
  16. package/es/src/ap-field/number/index.vue.d.ts +90 -50
  17. package/es/src/ap-field/number/index.vue.mjs +14 -12
  18. package/es/src/ap-field/number/read.vue2.mjs +8 -6
  19. package/es/src/ap-field/radio/index.vue.mjs +24 -24
  20. package/es/src/ap-field/rate/index.vue.d.ts +6 -6
  21. package/es/src/ap-field/select/index.vue.d.ts +241 -241
  22. package/es/src/ap-field/select/index.vue.mjs +27 -27
  23. package/es/src/ap-field/select/read.vue2.mjs +27 -27
  24. package/es/src/ap-field/slider/index.vue.d.ts +9 -9
  25. package/es/src/ap-field/switch/index.vue.d.ts +1 -1
  26. package/es/src/ap-field/switch/read.vue.d.ts +1 -1
  27. package/es/src/ap-field/text/index.vue.d.ts +1 -1
  28. package/es/src/ap-field/text/index.vue2.mjs +39 -38
  29. package/es/src/ap-field/text/password.vue.d.ts +1 -1
  30. package/es/src/ap-field/text/password.vue.mjs +34 -33
  31. package/es/src/ap-field/text/read-password.vue.d.ts +1 -1
  32. package/es/src/ap-field/text/read-password.vue2.mjs +31 -30
  33. package/es/src/ap-field/text/read.vue.d.ts +1 -1
  34. package/es/src/ap-field/text/read.vue2.mjs +21 -20
  35. package/es/src/ap-field/text-area/index.vue.d.ts +67 -57
  36. package/es/src/ap-field/text-area/index.vue.mjs +15 -14
  37. package/es/src/ap-field/text-area/read.vue.d.ts +1 -1
  38. package/es/src/ap-field/text-area/read.vue2.mjs +11 -10
  39. package/es/src/ap-field/tree-select/index.vue.d.ts +326 -326
  40. package/es/src/ap-field/tree-select/index.vue.mjs +46 -46
  41. package/es/src/ap-field/tree-select/read.vue2.mjs +45 -45
  42. package/es/src/ap-form/ap-form.vue.d.ts +71 -67
  43. package/es/src/ap-form/drawer-form/index.vue.d.ts +65 -65
  44. package/es/src/ap-form/item/index.vue.d.ts +36 -36
  45. package/es/src/ap-form/item/index.vue.mjs +10 -10
  46. package/es/src/ap-form/items/number/index.vue.d.ts +103 -59
  47. package/es/src/ap-form/items/select/index.vue.d.ts +306 -306
  48. package/es/src/ap-form/items/text/index.vue.d.ts +19 -17
  49. package/es/src/ap-form/items/text/password.vue.d.ts +19 -17
  50. package/es/src/ap-form/items/text-area/index.vue.d.ts +138 -118
  51. package/es/src/ap-form/items/tree-select/index.vue.d.ts +407 -407
  52. package/es/src/ap-form/modal-form/index.vue.d.ts +69 -70
  53. package/es/src/ap-form/search-form/components/popover-filter.vue.d.ts +5 -6
  54. package/es/src/ap-form/search-form/hooks/use-count-per-row.mjs +27 -26
  55. package/es/src/ap-form/search-form/index.vue.d.ts +67 -67
  56. package/es/src/ap-grid/constants.d.ts +3 -0
  57. package/es/src/ap-grid/constants.mjs +6 -3
  58. package/es/src/ap-grid/index.vue.mjs +221 -214
  59. package/es/src/ap-grid/utils/table.d.ts +1 -1
  60. package/es/src/ap-grid/utils/table.mjs +59 -62
  61. package/es/src/ap-table/constants.d.ts +499 -465
  62. package/es/src/ap-table/utils.d.ts +1 -1
  63. package/es/src/ap-upload/components/MultipleFile.vue.d.ts +8 -8
  64. package/es/src/business/ap-batch-action-group/index.d.ts +7 -8
  65. package/es/src/business/ap-label/ApLabel.d.ts +4 -4
  66. package/es/src/business/ap-label/constans.d.ts +1 -1
  67. package/es/src/business/ap-label/index.d.ts +9 -9
  68. package/es/src/business/ap-radio-group/ap-radio-group.vue.d.ts +1 -1
  69. package/es/src/business/ap-radio-group/index.d.ts +3 -3
  70. package/es/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +1 -1
  71. package/es/src/business/ap-table-modal/hooks/use-table-modal.d.ts +1 -1
  72. package/es/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +1 -1
  73. package/es/src/business/ap-table-modal/index.d.ts +3 -3
  74. package/es/src/business/ap-table-modal/table-modal.vue.d.ts +1 -1
  75. package/es/src/business/ap-table-modal/table-modal.vue2.mjs +3 -2
  76. package/es/src/business/ap-view/components/main-button-content.vue.d.ts +33 -33
  77. package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +33 -33
  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/text/index.vue.mjs +3 -3
  89. package/es/src/utils/config-provider-preset.d.ts +36 -49
  90. package/es/src/version.d.ts +1 -1
  91. package/es/src/version.mjs +1 -1
  92. package/es/src/work-order-modal/work-order-modal.vue.d.ts +33 -33
  93. package/lib/src/ag-grid/index.vue.js +1 -1
  94. package/lib/src/ag-grid/renderer/select.js +1 -1
  95. package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +5 -6
  96. package/lib/src/ap-field/checkbox/index.vue.d.ts +1 -1
  97. package/lib/src/ap-field/checkbox/index.vue.js +1 -1
  98. package/lib/src/ap-field/checkbox/read.vue.d.ts +1 -1
  99. package/lib/src/ap-field/date/index.vue.d.ts +4 -4
  100. package/lib/src/ap-field/date/index.vue.js +1 -1
  101. package/lib/src/ap-field/date/read.vue.d.ts +1 -1
  102. package/lib/src/ap-field/date/read.vue2.js +1 -1
  103. package/lib/src/ap-field/date-range/index.vue.d.ts +4 -4
  104. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  105. package/lib/src/ap-field/date-range/read.vue.d.ts +1 -1
  106. package/lib/src/ap-field/date-range/read.vue2.js +1 -1
  107. package/lib/src/ap-field/index.d.ts +7 -7
  108. package/lib/src/ap-field/number/index.vue.d.ts +90 -50
  109. package/lib/src/ap-field/number/index.vue.js +1 -1
  110. package/lib/src/ap-field/number/read.vue2.js +1 -1
  111. package/lib/src/ap-field/radio/index.vue.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/hooks/use-count-per-row.js +1 -1
  147. package/lib/src/ap-form/search-form/index.vue.d.ts +67 -67
  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/components/main-button-content.vue.d.ts +33 -33
  169. package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +33 -33
  170. package/lib/src/business/batch-input-group/index.vue.d.ts +11 -10
  171. package/lib/src/business/batch-input-group/index.vue.js +1 -1
  172. package/lib/src/business/batch-input-group/popover-input/index.vue.d.ts +66 -56
  173. package/lib/src/business/hooks/usePageListApTable.d.ts +1 -1
  174. package/lib/src/config-provider/config-provider-props.d.ts +64 -52
  175. package/lib/src/config-provider/config-provider-props.js +1 -1
  176. package/lib/src/config-provider/config-provider.d.ts +130 -113
  177. package/lib/src/config-provider/config-provider.js +1 -1
  178. package/lib/src/config-provider/hooks/use-global-config.d.ts +60 -49
  179. package/lib/src/config-provider/index.d.ts +214 -197
  180. package/lib/src/text/index.vue.js +1 -1
  181. package/lib/src/utils/config-provider-preset.d.ts +36 -49
  182. package/lib/src/version.d.ts +1 -1
  183. package/lib/src/version.js +1 -1
  184. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +33 -33
  185. package/package.json +3 -3
  186. package/theme/ag-grid/index.css +6 -6
  187. package/theme/ap-field/checkbox.css +3 -0
  188. package/theme/ap-field/checkbox.less +3 -0
  189. package/theme/ap-field/index.css +6 -0
  190. package/theme/ap-field/radio.css +3 -0
  191. package/theme/ap-field/radio.less +3 -0
  192. package/theme/ap-form/ap-form-item.css +0 -6
  193. package/theme/ap-form/ap-form-item.less +0 -6
  194. package/theme/ap-form/index.css +0 -6
  195. package/theme/ap-form/search-form.css +0 -6
  196. package/theme/ap-grid/index.css +6 -6
  197. package/theme/ap-table/ap-table.css +6 -6
  198. package/theme/ap-table-modal/index.css +6 -6
  199. package/theme/batch-input-group/index.css +6 -0
  200. package/theme/editable-table/index.css +6 -6
  201. package/theme/index.css +6 -6
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),m=require("lodash-unified"),y=require("../hooks/use-date-timezone.js"),u=require("@aplus-frontend/utils"),s=require("dayjs"),i=require("../date/constant.js"),B=e.defineComponent({name:"ApFieldDateRangeRead",__name:"read",props:{mode:{},class:{},style:{},id:{},defaultPickerValue:{},placeholder:{},disabled:{type:[Boolean,Array]},disabledTime:{},ranges:{},separator:{type:[Object,String,Number,Boolean,null,Array]},allowEmpty:{},onCalendarChange:{},onFocus:{},onBlur:{},onMousedown:{},onMouseup:{},onMouseenter:{},onMouseleave:{},onClick:{},direction:{},autocomplete:{},activePickerIndex:{},dateRender:{},panelRender:{},dropdownClassName:{},dropdownAlign:{},popupStyle:{},transitionName:{},allowClear:{type:Boolean},autofocus:{type:Boolean},tabindex:{},open:{type:Boolean},defaultOpen:{type:Boolean},inputReadOnly:{type:Boolean},suffixIcon:{type:[Object,String,Number,Boolean,null,Array]},clearIcon:{type:[Object,String,Number,Boolean,null,Array]},getPopupContainer:{},inputRender:{},onOpenChange:{},onContextmenu:{},onKeydown:{},role:{},name:{},picker:{},prefixCls:{},disabledDate:{},monthCellRender:{},locale:{},size:{},bordered:{type:Boolean},showTime:{type:Boolean},showNow:{type:Boolean},order:{type:Boolean},defaultOpenValue:{},showHour:{type:Boolean},showMinute:{type:Boolean},showSecond:{type:Boolean},use12Hours:{type:Boolean},hourStep:{},minuteStep:{},secondStep:{},hideDisabledOptions:{type:Boolean},disabledHours:{},disabledMinutes:{},disabledSeconds:{},valueFormat:{},emptyText:{default:"--"},value:{},defaultValue:{},onChange:{},onOk:{},format:{default:"Y-D"},shownFormat:{},timezone:{},readModeSeparator:{},presets:{type:[Array,Boolean]}},setup(d){const o=d,{currentTimezone:a}=y.useDateTimezone(o),n=e.computed(()=>{const t=o.value;if(m.isNil(t)||!t?.length)return t;const l=a.value?u.getTimeFormatToZone(o.value[0],a.value):o.value?.[0],c=o.timezone?u.getTimeFormatToZone(o.value[1],a.value):o.value?.[1];return[s(l),s(c)]}),p=e.computed(()=>i.ApFieldDatePresetFormats.indexOf(o.format)>-1),r=e.computed(()=>p.value?i.PRESET_FORMAT_MAP[o.format]:o.format);return(t,l)=>n.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(n.value[0]?.format(r.value))+" ",1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.readModeSeparator))),e.createTextVNode(" "+e.toDisplayString(n.value[1]?.format(r.value)),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(t.emptyText),1)],64))}});exports.default=B;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),m=require("lodash-unified"),y=require("../hooks/use-date-timezone.js"),u=require("@aplus-frontend/utils"),s=require("dayjs"),i=require("../date/constant.js"),B=e.defineComponent({name:"ApFieldDateRangeRead",__name:"read",props:{mode:{},class:{},style:{},id:{},defaultPickerValue:{},placeholder:{},disabled:{type:[Boolean,Array]},disabledTime:{},ranges:{},separator:{type:[Object,String,Number,Boolean,null,Array]},allowEmpty:{},onCalendarChange:{},onFocus:{},onBlur:{},onMousedown:{},onMouseup:{},onMouseenter:{},onMouseleave:{},onClick:{},direction:{},autocomplete:{},activePickerIndex:{},dateRender:{},panelRender:{},dropdownClassName:{},dropdownAlign:{},popupStyle:{},transitionName:{},allowClear:{type:Boolean},autofocus:{type:Boolean},tabindex:{},open:{type:Boolean},defaultOpen:{type:Boolean},inputReadOnly:{type:Boolean},suffixIcon:{type:[Object,String,Number,Boolean,null,Array]},clearIcon:{type:[Object,String,Number,Boolean,null,Array]},getPopupContainer:{},inputRender:{},onOpenChange:{},onContextmenu:{},onKeydown:{},role:{},name:{},picker:{},prefixCls:{},disabledDate:{},monthCellRender:{},locale:{},size:{},bordered:{type:Boolean},variant:{},showTime:{type:Boolean},showNow:{type:Boolean},order:{type:Boolean},defaultOpenValue:{},showHour:{type:Boolean},showMinute:{type:Boolean},showSecond:{type:Boolean},use12Hours:{type:Boolean},hourStep:{},minuteStep:{},secondStep:{},hideDisabledOptions:{type:Boolean},disabledHours:{},disabledMinutes:{},disabledSeconds:{},valueFormat:{},emptyText:{default:"--"},value:{},defaultValue:{},onChange:{},onOk:{},format:{default:"Y-D"},shownFormat:{},timezone:{},readModeSeparator:{},presets:{type:[Array,Boolean]}},setup(d){const o=d,{currentTimezone:a}=y.useDateTimezone(o),n=e.computed(()=>{const t=o.value;if(m.isNil(t)||!t?.length)return t;const l=a.value?u.getTimeFormatToZone(o.value[0],a.value):o.value?.[0],c=o.timezone?u.getTimeFormatToZone(o.value[1],a.value):o.value?.[1];return[s(l),s(c)]}),p=e.computed(()=>i.ApFieldDatePresetFormats.indexOf(o.format)>-1),r=e.computed(()=>p.value?i.PRESET_FORMAT_MAP[o.format]:o.format);return(t,l)=>n.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(n.value[0]?.format(r.value))+" ",1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.readModeSeparator))),e.createTextVNode(" "+e.toDisplayString(n.value[1]?.format(r.value)),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(t.emptyText),1)],64))}});exports.default=B;
@@ -37,18 +37,18 @@ export declare const ApFieldRead: {
37
37
  mode: FieldMode;
38
38
  disabled: boolean;
39
39
  bordered: boolean;
40
+ emptyText: string;
40
41
  lazy: boolean;
41
42
  allowClear: boolean;
42
- emptyText: string;
43
43
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLSpanElement>;
44
44
  readonly TextArea: DefineComponent<ApFieldTextAreaProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ApFieldTextAreaProps> & Readonly<{}>, {
45
45
  type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
46
46
  mode: FieldMode;
47
47
  disabled: boolean;
48
48
  bordered: boolean;
49
+ emptyText: string;
49
50
  lazy: boolean;
50
51
  allowClear: boolean;
51
- emptyText: string;
52
52
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
53
53
  readonly Number: {
54
54
  new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApFieldNumberProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
@@ -78,12 +78,12 @@ export declare const ApFieldRead: {
78
78
  };
79
79
  });
80
80
  readonly Date: DefineComponent<ApFieldDateProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ApFieldDateProps> & Readonly<{}>, {
81
- format: LiteralUnion<ApFormatPresetType, string>;
82
81
  emptyText: string;
82
+ format: LiteralUnion<ApFormatPresetType, string>;
83
83
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
84
84
  readonly DateRange: DefineComponent<ApFieldDateRangeProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ApFieldDateRangeProps> & Readonly<{}>, {
85
- format: LiteralUnion<ApFormatPresetType, string>;
86
85
  emptyText: string;
86
+ format: LiteralUnion<ApFormatPresetType, string>;
87
87
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
88
88
  readonly Radio: DefineComponent<ApFieldRadioProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ApFieldRadioProps> & Readonly<{}>, {
89
89
  mode: FieldMode;
@@ -94,8 +94,8 @@ export declare const ApFieldRead: {
94
94
  readonly Checkbox: DefineComponent<ApFieldCheckboxProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ApFieldCheckboxProps> & Readonly<{}>, {
95
95
  mode: FieldMode;
96
96
  disabled: boolean;
97
- options: (string | number | CheckboxOptionType)[];
98
97
  emptyText: string;
98
+ options: (string | number | CheckboxOptionType)[];
99
99
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
100
100
  readonly Select: DefineComponent<ApFieldSelectProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ApFieldSelectProps> & Readonly<{}>, {
101
101
  emptyText: string;
@@ -104,9 +104,9 @@ export declare const ApFieldRead: {
104
104
  size: "small" | "default";
105
105
  disabled: boolean;
106
106
  loading: boolean;
107
+ emptyText: string;
107
108
  checkedValue: string | number | boolean;
108
109
  unCheckedValue: string | number | boolean;
109
- emptyText: string;
110
110
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
111
111
  readonly TreeSelect: DefineComponent<ApFieldTreeSelectProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ApFieldTreeSelectProps> & Readonly<{}>, {
112
112
  mode: FieldMode;
@@ -118,9 +118,9 @@ export declare const ApFieldRead: {
118
118
  visible: boolean;
119
119
  disabled: boolean;
120
120
  bordered: boolean;
121
+ emptyText: string;
121
122
  lazy: boolean;
122
123
  allowClear: boolean;
123
- emptyText: string;
124
124
  action: string;
125
125
  visibilityToggle: boolean;
126
126
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
@@ -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"]>;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),k=require("@aplus-frontend/antdv");require("../../hooks/index.js");const u=require("lodash-unified"),i=require("@fruits-chain/utils"),S=require("./helper.js");require("../../config-provider/index.js");const g=require("../hooks/use-default-placeholder.js"),q=require("../../config-provider/hooks/use-namespace.js"),C=require("../../hooks/useControllableValue.js"),N={key:0},P=e.defineComponent({name:"ApFieldNumber",__name:"index",props:{mode:{},class:{},style:{},size:{},bordered:{type:Boolean,default:!0},placeholder:{},name:{},id:{},type:{},addonBefore:{},addonAfter:{},prefix:{},suffix:{},"onUpdate:value":{},valueModifiers:{},status:{},stringMode:{type:Boolean},defaultValue:{},value:{},prefixCls:{},min:{default:-1/0},max:{default:1/0},step:{default:1},tabindex:{},controls:{type:Boolean,default:!0},readonly:{type:Boolean},disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean},keyboard:{type:Boolean,default:!0},parser:{},formatter:{},precision:{},decimalSeparator:{},onInput:{},onChange:{},onPressEnter:{},onStep:{},onBlur:{},onFocus:{},emptyText:{default:"--"},thousands:{type:Boolean,default:!1},limitDecimalsRetain:{type:Boolean}},emits:["update:value"],setup(d,{expose:p,emit:c}){const f=c,{b:a}=q.useNamespace("field-number"),o=d,l=e.ref(),{value:n,updateValue:m}=C.useControllableValue(o,f),y=g.useDefaultPlaceholder("Number",o),v=e.computed(()=>{let t=e.unref(n);if(u.isNil(t))return o.emptyText;o.precision&&(t=i.roundWith(t,o.precision));let r=o.thousands?i.toDecimalMark(t):String(t);return o.precision&&o.limitDecimalsRetain&&(r=S.addZeroToDecimalPlaces(r,o.precision)),r});function B(){l.value?.focus()}function b(){l.value?.blur()}return p({focus:B,blur:b}),(t,r)=>t.mode==="read"?(e.openBlock(),e.createElementBlock("span",N,[t.$slots.prefix?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(a)("label-left"))},[e.renderSlot(t.$slots,"prefix")],2)):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(v.value),1),t.$slots.addonAfter?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(e.unref(a)("label-right"))},[e.renderSlot(t.$slots,"addonAfter")],2)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createBlock(e.unref(k.InputNumber),e.mergeProps({key:1},e.unref(u.omit)(o,["value","onUpdate:value"]),{ref_key:"inputRef",ref:l,placeholder:e.unref(y),value:e.unref(n),"onUpdate:value":e.unref(m)}),e.createSlots({_:2},[e.renderList(t.$slots,(V,s)=>({name:s,fn:e.withCtx(h=>[e.renderSlot(t.$slots,s,e.normalizeProps(e.guardReactiveProps(h||{})))])}))]),1040,["placeholder","value","onUpdate:value"]))}});exports.default=P;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),k=require("@aplus-frontend/antdv");require("../../hooks/index.js");const u=require("lodash-unified"),i=require("@fruits-chain/utils"),S=require("./helper.js");require("../../config-provider/index.js");const g=require("../hooks/use-default-placeholder.js"),q=require("../../config-provider/hooks/use-namespace.js"),C=require("../../hooks/useControllableValue.js"),N={key:0},P=e.defineComponent({name:"ApFieldNumber",__name:"index",props:{mode:{},class:{},style:{},size:{},bordered:{type:Boolean,default:!0},placeholder:{},name:{},id:{},type:{},addonBefore:{},addonAfter:{},prefix:{},suffix:{},"onUpdate:value":{},valueModifiers:{},status:{},variant:{},changeOnWheel:{type:Boolean},stringMode:{type:Boolean},defaultValue:{},value:{},prefixCls:{},min:{default:-1/0},max:{default:1/0},step:{default:1},tabindex:{},controls:{type:Boolean,default:!0},readonly:{type:Boolean},disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean},keyboard:{type:Boolean,default:!0},parser:{},formatter:{},precision:{},decimalSeparator:{},onInput:{},onChange:{},onPressEnter:{},onStep:{},onBlur:{},onFocus:{},emptyText:{default:"--"},thousands:{type:Boolean,default:!1},limitDecimalsRetain:{type:Boolean}},emits:["update:value"],setup(d,{expose:p,emit:c}){const f=c,{b:r}=q.useNamespace("field-number"),o=d,l=e.ref(),{value:n,updateValue:m}=C.useControllableValue(o,f),y=g.useDefaultPlaceholder("Number",o),v=e.computed(()=>{let t=e.unref(n);if(u.isNil(t))return o.emptyText;o.precision&&(t=i.roundWith(t,o.precision));let a=o.thousands?i.toDecimalMark(t):String(t);return o.precision&&o.limitDecimalsRetain&&(a=S.addZeroToDecimalPlaces(a,o.precision)),a});function B(){l.value?.focus()}function h(){l.value?.blur()}return p({focus:B,blur:h}),(t,a)=>t.mode==="read"?(e.openBlock(),e.createElementBlock("span",N,[t.$slots.prefix?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(r)("label-left"))},[e.renderSlot(t.$slots,"prefix")],2)):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(v.value),1),t.$slots.addonAfter?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(e.unref(r)("label-right"))},[e.renderSlot(t.$slots,"addonAfter")],2)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createBlock(e.unref(k.InputNumber),e.mergeProps({key:1},e.unref(u.omit)(o,["value","onUpdate:value"]),{ref_key:"inputRef",ref:l,placeholder:e.unref(y),value:e.unref(n),"onUpdate:value":e.unref(m)}),e.createSlots({_:2},[e.renderList(t.$slots,(V,s)=>({name:s,fn:e.withCtx(b=>[e.renderSlot(t.$slots,s,e.normalizeProps(e.guardReactiveProps(b||{})))])}))]),1040,["placeholder","value","onUpdate:value"]))}});exports.default=P;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("lodash-unified"),a=require("@fruits-chain/utils"),i=require("./helper.js"),d={key:0,style:{"padding-right":"4px"}},p={key:1,style:{"padding-left":"4px"}},u=e.defineComponent({name:"ApFieldNumberRead",__name:"read",props:{mode:{},class:{},style:{},size:{},bordered:{type:Boolean},placeholder:{},name:{},id:{},type:{},addonBefore:{},addonAfter:{},prefix:{},suffix:{},"onUpdate:value":{},valueModifiers:{},status:{},stringMode:{type:Boolean},defaultValue:{},value:{},prefixCls:{},min:{},max:{},step:{},tabindex:{},controls:{type:Boolean},readonly:{type:Boolean},disabled:{type:Boolean},autofocus:{type:Boolean},keyboard:{type:Boolean},parser:{},formatter:{},precision:{},decimalSeparator:{},onInput:{},onChange:{},onPressEnter:{},onStep:{},onBlur:{},onFocus:{},emptyText:{default:"--"},thousands:{type:Boolean,default:!1},limitDecimalsRetain:{type:Boolean}},setup(l){const o=l,r=e.computed(()=>{let t=o.value;if(s.isNil(t))return o.emptyText;o.precision&&(t=a.roundWith(t,o.precision));let n=o.thousands?a.toDecimalMark(t):String(t);return o.precision&&o.limitDecimalsRetain&&(n=i.addZeroToDecimalPlaces(n,o.precision)),n});return(t,n)=>(e.openBlock(),e.createElementBlock("span",null,[t.$slots.prefix?(e.openBlock(),e.createElementBlock("span",d,[e.renderSlot(t.$slots,"prefix")])):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(r.value),1),t.$slots.addonAfter?(e.openBlock(),e.createElementBlock("span",p,[e.renderSlot(t.$slots,"addonAfter")])):e.createCommentVNode("",!0)]))}});exports.default=u;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("lodash-unified"),a=require("@fruits-chain/utils"),i=require("./helper.js"),d={key:0,style:{"padding-right":"4px"}},p={key:1,style:{"padding-left":"4px"}},u=e.defineComponent({name:"ApFieldNumberRead",__name:"read",props:{mode:{},class:{},style:{},size:{},bordered:{type:Boolean},placeholder:{},name:{},id:{},type:{},addonBefore:{},addonAfter:{},prefix:{},suffix:{},"onUpdate:value":{},valueModifiers:{},status:{},variant:{},changeOnWheel:{type:Boolean},stringMode:{type:Boolean},defaultValue:{},value:{},prefixCls:{},min:{},max:{},step:{},tabindex:{},controls:{type:Boolean},readonly:{type:Boolean},disabled:{type:Boolean},autofocus:{type:Boolean},keyboard:{type:Boolean},parser:{},formatter:{},precision:{},decimalSeparator:{},onInput:{},onChange:{},onPressEnter:{},onStep:{},onBlur:{},onFocus:{},emptyText:{default:"--"},thousands:{type:Boolean,default:!1},limitDecimalsRetain:{type:Boolean}},setup(l){const o=l,r=e.computed(()=>{let t=o.value;if(s.isNil(t))return o.emptyText;o.precision&&(t=a.roundWith(t,o.precision));let n=o.thousands?a.toDecimalMark(t):String(t);return o.precision&&o.limitDecimalsRetain&&(n=i.addZeroToDecimalPlaces(n,o.precision)),n});return(t,n)=>(e.openBlock(),e.createElementBlock("span",null,[t.$slots.prefix?(e.openBlock(),e.createElementBlock("span",d,[e.renderSlot(t.$slots,"prefix")])):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(r.value),1),t.$slots.addonAfter?(e.openBlock(),e.createElementBlock("span",p,[e.renderSlot(t.$slots,"addonAfter")])):e.createCommentVNode("",!0)]))}});exports.default=u;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("@aplus-frontend/antdv");require("../../hooks/index.js");const i=require("lodash-unified"),c=require("./helper.js");require("../../config-provider/index.js");const x=require("../hooks/use-options.js"),T=require("../../hooks/useControllableValue.js"),_=require("../../config-provider/hooks/use-namespace.js"),V=e.defineComponent({name:"ApFieldRadio",__name:"index",props:{mode:{default:"edit"},class:{},style:{},prefixCls:{},value:{},size:{},options:{},disabled:{type:Boolean,default:void 0},name:{},buttonStyle:{},id:{},optionType:{},onChange:{},"onUpdate:value":{},emptyText:{default:"--"},request:{},vertical:{type:Boolean,default:!1}},emits:["update:value"],setup(p,{expose:d,emit:f}){const t=p,v=f,n=e.ref(),{options:u,updateOptions:m}=x.default(t),{value:l,updateValue:y}=T.useControllableValue(t,v),{m:k}=_.useNamespace("field-radio"),a=e.ref(!1);e.onMounted(()=>{t.request&&(a.value=!0,t.request?.().then(o=>m(o)).finally(()=>{a.value=!1}))});const q=e.computed(()=>{const o=e.unref(l);if(i.isNil(o))return t.emptyText;const r=u.value?.find(b=>o===c.getOptionValue(b));return c.getOptionLabel(r)||t.emptyText});function g(){n.value?.focus()}function B(){n.value?.blur()}return d({focus:g,blur:B}),(o,r)=>o.mode==="read"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(q.value),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[a.value?(e.openBlock(),e.createBlock(e.unref(s.Spin),{key:0,size:"small"})):(e.openBlock(),e.createBlock(e.unref(s.RadioGroup),e.mergeProps({key:1},e.unref(i.omit)(t,["value","onUpdate:value","options","request","vertical"]),{ref_key:"radioGroupRef",ref:n,value:e.unref(l),options:e.unref(u),class:o.vertical?e.unref(k)("vertical"):null,"onUpdate:value":e.unref(y)}),null,16,["value","options","class","onUpdate:value"]))],64))}});exports.default=V;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("@aplus-frontend/antdv");require("../../hooks/index.js");const i=require("lodash-unified"),c=require("./helper.js");require("../../config-provider/index.js");const T=require("../hooks/use-options.js"),_=require("../../hooks/useControllableValue.js"),V=require("../../config-provider/hooks/use-namespace.js"),h=e.defineComponent({name:"ApFieldRadio",__name:"index",props:{mode:{default:"edit"},class:{},style:{},prefixCls:{},value:{},size:{},options:{},disabled:{type:Boolean,default:void 0},name:{},buttonStyle:{},id:{},optionType:{},onChange:{},"onUpdate:value":{},emptyText:{default:"--"},request:{},vertical:{type:Boolean,default:!1}},emits:["update:value"],setup(p,{expose:d,emit:f}){const t=p,v=f,n=e.ref(),{options:a,updateOptions:m}=T.default(t),{value:l,updateValue:y}=_.useControllableValue(t,v),{b:k,m:q}=V.useNamespace("field-radio"),u=e.ref(!1);e.onMounted(()=>{t.request&&(u.value=!0,t.request?.().then(o=>m(o)).finally(()=>{u.value=!1}))});const g=e.computed(()=>{const o=e.unref(l);if(i.isNil(o))return t.emptyText;const r=a.value?.find(x=>o===c.getOptionValue(x));return c.getOptionLabel(r)||t.emptyText});function b(){n.value?.focus()}function B(){n.value?.blur()}return d({focus:b,blur:B}),(o,r)=>o.mode==="read"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(g.value),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[u.value?(e.openBlock(),e.createBlock(e.unref(s.Spin),{key:0,size:"small"})):(e.openBlock(),e.createBlock(e.unref(s.RadioGroup),e.mergeProps({key:1},e.unref(i.omit)(t,["value","onUpdate:value","options","request","vertical"]),{ref_key:"radioGroupRef",ref:n,value:e.unref(l),options:e.unref(a),class:[e.unref(k)(),o.vertical?e.unref(q)("vertical"):null],"onUpdate:value":e.unref(y)}),null,16,["value","options","class","onUpdate:value"]))],64))}});exports.default=h;
@@ -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>;