@aplus-frontend/ui 7.13.8 → 7.13.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.
Files changed (249) hide show
  1. package/es/src/ag-grid/components/body-cell/index.vue2.mjs +7 -7
  2. package/es/src/ag-grid/components/empty/index.vue2.mjs +10 -10
  3. package/es/src/ag-grid/components/header-cell/index.vue2.mjs +37 -37
  4. package/es/src/ag-grid/components/row/index.vue2.mjs +5 -5
  5. package/es/src/ag-grid/components/tooltip/index.vue2.mjs +12 -12
  6. package/es/src/ag-grid/editable/form-item.vue.mjs +49 -49
  7. package/es/src/ag-grid/editable/index.vue.mjs +27 -27
  8. package/es/src/ag-grid/hooks/use-columns.d.ts +2 -0
  9. package/es/src/ag-grid/hooks/use-columns.mjs +35 -17
  10. package/es/src/ag-grid/index.vue.mjs +349 -318
  11. package/es/src/ap-action/group/index.vue.mjs +15 -15
  12. package/es/src/ap-action/item/index.vue2.mjs +28 -28
  13. package/es/src/ap-action/item-dropdown/index.vue.mjs +39 -39
  14. package/es/src/ap-field/checkbox/index.vue.mjs +19 -19
  15. package/es/src/ap-field/checkbox/read.vue2.mjs +9 -9
  16. package/es/src/ap-field/date/index.vue.mjs +50 -50
  17. package/es/src/ap-field/date/read.vue2.mjs +7 -7
  18. package/es/src/ap-field/date-range/index.vue.mjs +29 -29
  19. package/es/src/ap-field/date-range/read.vue2.mjs +22 -22
  20. package/es/src/ap-field/hooks/use-default-presets.mjs +59 -16
  21. package/es/src/ap-field/interface.d.ts +46 -1
  22. package/es/src/ap-field/number/index.vue.mjs +24 -24
  23. package/es/src/ap-field/radio/index.vue.mjs +24 -24
  24. package/es/src/ap-field/second/index.vue.mjs +15 -15
  25. package/es/src/ap-field/second/read.vue2.mjs +7 -7
  26. package/es/src/ap-field/segmented/index.vue.mjs +24 -24
  27. package/es/src/ap-field/select/index.vue.d.ts +12 -2
  28. package/es/src/ap-field/select/index.vue.mjs +127 -124
  29. package/es/src/ap-field/select/read.vue2.mjs +6 -6
  30. package/es/src/ap-field/slider/index.vue.mjs +11 -11
  31. package/es/src/ap-field/style/select.mjs +53 -36
  32. package/es/src/ap-field/switch/index.vue.mjs +45 -45
  33. package/es/src/ap-field/text/read-password.vue2.mjs +13 -13
  34. package/es/src/ap-field/text/read.vue2.mjs +3 -3
  35. package/es/src/ap-field/text-area/index.vue.mjs +29 -29
  36. package/es/src/ap-field/text-area/read.vue2.mjs +12 -12
  37. package/es/src/ap-field/tree-select/index.vue.mjs +31 -31
  38. package/es/src/ap-form/ap-form.vue2.mjs +46 -46
  39. package/es/src/ap-form/drawer-form/index.vue.mjs +30 -30
  40. package/es/src/ap-form/item/index.vue.mjs +75 -75
  41. package/es/src/ap-form/items/checkbox/index.vue.mjs +10 -10
  42. package/es/src/ap-form/items/number/index.vue.mjs +17 -17
  43. package/es/src/ap-form/items/radio/index.vue.mjs +13 -13
  44. package/es/src/ap-form/items/switch/index.vue.mjs +14 -14
  45. package/es/src/ap-form/items/text/index.vue2.mjs +26 -26
  46. package/es/src/ap-form/items/text/password.vue.mjs +19 -19
  47. package/es/src/ap-form/items/text-area/index.vue.mjs +17 -17
  48. package/es/src/ap-form/modal-form/index.vue.mjs +34 -34
  49. package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +39 -39
  50. package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.mjs +7 -7
  51. package/es/src/ap-grid/editable/form-item.vue.mjs +46 -46
  52. package/es/src/ap-grid/editable/index.vue.mjs +19 -19
  53. package/es/src/ap-grid/index.vue.mjs +212 -212
  54. package/es/src/ap-list/index.vue.mjs +116 -116
  55. package/es/src/ap-table/ap-table.vue2.mjs +217 -217
  56. package/es/src/ap-table/components/index/index.vue2.mjs +9 -9
  57. package/es/src/ap-table/components/setting/modal/index.vue2.mjs +52 -51
  58. package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +21 -21
  59. package/es/src/ap-table/components/setting/sortable/index.vue2.mjs +15 -15
  60. package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +69 -69
  61. package/es/src/ap-table/components/setting/template/edit-form.vue.d.ts +1 -0
  62. package/es/src/ap-table/components/setting/template/edit-form.vue2.mjs +31 -30
  63. package/es/src/ap-table/components/setting/template/index.vue2.mjs +25 -25
  64. package/es/src/ap-table/components/setting/template/item.vue2.mjs +41 -40
  65. package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +14 -14
  66. package/es/src/ap-table/hooks/use-sorted-filtered.d.ts +18 -2
  67. package/es/src/ap-table/hooks/use-sorted-filtered.mjs +13 -11
  68. package/es/src/ap-table/hooks/use-table-paging-ng.d.ts +17 -2
  69. package/es/src/ap-table/hooks/use-table-paging-ng.mjs +148 -142
  70. package/es/src/ap-table/style/setting.mjs +2 -2
  71. package/es/src/business/ag-grid-modal/modal-layout/index.vue2.mjs +54 -54
  72. package/es/src/business/ag-grid-modal/selected-items/default.vue2.mjs +13 -13
  73. package/es/src/business/ag-grid-modal/wrapper/index.vue2.mjs +20 -20
  74. package/es/src/business/ap-descriptions/ap-descriptions.vue.mjs +33 -33
  75. package/es/src/business/ap-descriptions/help-message/index.vue2.mjs +13 -13
  76. package/es/src/business/ap-download/ap-download.vue.mjs +24 -24
  77. package/es/src/business/ap-expand-alert/ApExpandAlert.vue.mjs +77 -77
  78. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +119 -112
  79. package/es/src/business/ap-export-group/handleExportDownload.d.ts +1 -1
  80. package/es/src/business/ap-export-group/handleExportDownload.mjs +2 -2
  81. package/es/src/business/ap-export-group/interface.d.ts +9 -0
  82. package/es/src/business/ap-radio-group/ap-radio-group.vue2.mjs +33 -33
  83. package/es/src/business/ap-status/group/ApStatusGroup.vue2.mjs +12 -12
  84. package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +43 -43
  85. package/es/src/business/ap-table-modal/table-modal.vue2.mjs +57 -57
  86. package/es/src/business/ap-tag/ap-tag-group.vue.mjs +37 -37
  87. package/es/src/business/ap-tag/ap-tag.vue.mjs +24 -24
  88. package/es/src/business/ap-title/ApTitle.vue2.mjs +27 -27
  89. package/es/src/business/ap-value-select-card/index.vue2.mjs +98 -98
  90. package/es/src/business/ap-view/components/main-button-content.vue.d.ts +1 -1
  91. package/es/src/business/batch-input-group/form-item.vue.mjs +25 -25
  92. package/es/src/business/batch-input-group/index.vue.mjs +60 -60
  93. package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +29 -29
  94. package/es/src/config-provider/config-provider-props.d.ts +1 -1
  95. package/es/src/config-provider/config-provider.d.ts +3 -0
  96. package/es/src/config-provider/hooks/use-global-config.d.ts +1 -0
  97. package/es/src/config-provider/index.d.ts +6 -0
  98. package/es/src/editable-table/form-item.vue.mjs +35 -35
  99. package/es/src/editable-table/index.vue.mjs +19 -19
  100. package/es/src/full-screen/index.vue.mjs +46 -46
  101. package/es/src/locale/lang/en.mjs +2 -1
  102. package/es/src/locale/lang/zh-cn.mjs +2 -1
  103. package/es/src/mask/index.vue.mjs +48 -48
  104. package/es/src/portal/index.vue.mjs +5 -5
  105. package/es/src/scroll-bar/internal.vue.mjs +62 -62
  106. package/es/src/scroll-view/index.vue.mjs +66 -66
  107. package/es/src/skeleton/components/desc/index.vue2.mjs +9 -9
  108. package/es/src/skeleton/components/desc/item-large.vue2.mjs +25 -25
  109. package/es/src/skeleton/components/desc/item.vue2.mjs +13 -13
  110. package/es/src/skeleton/components/list/index.vue2.mjs +14 -14
  111. package/es/src/skeleton/components/list/item.vue2.mjs +12 -12
  112. package/es/src/skeleton/components/page-header/index.vue2.mjs +8 -8
  113. package/es/src/skeleton/components/search-form/index.vue2.mjs +35 -35
  114. package/es/src/skeleton/components/table/index.vue2.mjs +17 -17
  115. package/es/src/skeleton/components/table/item.vue2.mjs +23 -23
  116. package/es/src/skeleton/descriptions.vue2.mjs +15 -15
  117. package/es/src/skeleton/list-page.vue2.mjs +12 -12
  118. package/es/src/splitter/Panel.vue2.mjs +11 -11
  119. package/es/src/splitter/SplitBar.vue2.mjs +79 -79
  120. package/es/src/splitter/Splitter.vue2.mjs +50 -50
  121. package/es/src/text/group.vue.mjs +8 -8
  122. package/es/src/text/index.vue.mjs +48 -48
  123. package/es/src/version.d.ts +1 -1
  124. package/es/src/version.mjs +1 -1
  125. package/lib/src/ag-grid/components/body-cell/index.vue2.js +1 -1
  126. package/lib/src/ag-grid/components/empty/index.vue2.js +1 -1
  127. package/lib/src/ag-grid/components/header-cell/index.vue2.js +1 -1
  128. package/lib/src/ag-grid/components/row/index.vue2.js +1 -1
  129. package/lib/src/ag-grid/components/tooltip/index.vue2.js +1 -1
  130. package/lib/src/ag-grid/editable/form-item.vue.js +1 -1
  131. package/lib/src/ag-grid/editable/index.vue.js +1 -1
  132. package/lib/src/ag-grid/hooks/use-columns.d.ts +2 -0
  133. package/lib/src/ag-grid/hooks/use-columns.js +1 -1
  134. package/lib/src/ag-grid/index.vue.js +1 -1
  135. package/lib/src/ap-action/group/index.vue.js +1 -1
  136. package/lib/src/ap-action/item/index.vue2.js +1 -1
  137. package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
  138. package/lib/src/ap-field/checkbox/index.vue.js +1 -1
  139. package/lib/src/ap-field/checkbox/read.vue2.js +1 -1
  140. package/lib/src/ap-field/date/index.vue.js +1 -1
  141. package/lib/src/ap-field/date/read.vue2.js +1 -1
  142. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  143. package/lib/src/ap-field/date-range/read.vue2.js +1 -1
  144. package/lib/src/ap-field/hooks/use-default-presets.js +1 -1
  145. package/lib/src/ap-field/interface.d.ts +46 -1
  146. package/lib/src/ap-field/number/index.vue.js +1 -1
  147. package/lib/src/ap-field/radio/index.vue.js +1 -1
  148. package/lib/src/ap-field/second/index.vue.js +1 -1
  149. package/lib/src/ap-field/second/read.vue2.js +1 -1
  150. package/lib/src/ap-field/segmented/index.vue.js +1 -1
  151. package/lib/src/ap-field/select/index.vue.d.ts +12 -2
  152. package/lib/src/ap-field/select/index.vue.js +1 -1
  153. package/lib/src/ap-field/select/read.vue2.js +1 -1
  154. package/lib/src/ap-field/slider/index.vue.js +1 -1
  155. package/lib/src/ap-field/style/select.js +1 -1
  156. package/lib/src/ap-field/switch/index.vue.js +1 -1
  157. package/lib/src/ap-field/text/read-password.vue2.js +1 -1
  158. package/lib/src/ap-field/text/read.vue2.js +1 -1
  159. package/lib/src/ap-field/text-area/index.vue.js +1 -1
  160. package/lib/src/ap-field/text-area/read.vue2.js +1 -1
  161. package/lib/src/ap-field/tree-select/index.vue.js +1 -1
  162. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  163. package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
  164. package/lib/src/ap-form/item/index.vue.js +1 -1
  165. package/lib/src/ap-form/items/checkbox/index.vue.js +1 -1
  166. package/lib/src/ap-form/items/number/index.vue.js +1 -1
  167. package/lib/src/ap-form/items/radio/index.vue.js +1 -1
  168. package/lib/src/ap-form/items/switch/index.vue.js +1 -1
  169. package/lib/src/ap-form/items/text/index.vue2.js +1 -1
  170. package/lib/src/ap-form/items/text/password.vue.js +1 -1
  171. package/lib/src/ap-form/items/text-area/index.vue.js +1 -1
  172. package/lib/src/ap-form/modal-form/index.vue.js +1 -1
  173. package/lib/src/ap-form/search-form/components/popover-filter.vue2.js +1 -1
  174. package/lib/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.js +1 -1
  175. package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
  176. package/lib/src/ap-grid/editable/index.vue.js +1 -1
  177. package/lib/src/ap-grid/index.vue.js +1 -1
  178. package/lib/src/ap-list/index.vue.js +1 -1
  179. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  180. package/lib/src/ap-table/components/index/index.vue2.js +1 -1
  181. package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
  182. package/lib/src/ap-table/components/setting/select-group/index.vue2.js +1 -1
  183. package/lib/src/ap-table/components/setting/sortable/index.vue2.js +1 -1
  184. package/lib/src/ap-table/components/setting/sortable/item.vue2.js +1 -1
  185. package/lib/src/ap-table/components/setting/template/edit-form.vue.d.ts +1 -0
  186. package/lib/src/ap-table/components/setting/template/edit-form.vue2.js +1 -1
  187. package/lib/src/ap-table/components/setting/template/index.vue2.js +1 -1
  188. package/lib/src/ap-table/components/setting/template/item.vue2.js +1 -1
  189. package/lib/src/ap-table/components/setting/tree-select/index.vue2.js +1 -1
  190. package/lib/src/ap-table/hooks/use-sorted-filtered.d.ts +18 -2
  191. package/lib/src/ap-table/hooks/use-sorted-filtered.js +1 -1
  192. package/lib/src/ap-table/hooks/use-table-paging-ng.d.ts +17 -2
  193. package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
  194. package/lib/src/ap-table/style/setting.js +1 -1
  195. package/lib/src/business/ag-grid-modal/modal-layout/index.vue2.js +1 -1
  196. package/lib/src/business/ag-grid-modal/selected-items/default.vue2.js +1 -1
  197. package/lib/src/business/ag-grid-modal/wrapper/index.vue2.js +1 -1
  198. package/lib/src/business/ap-descriptions/ap-descriptions.vue.js +1 -1
  199. package/lib/src/business/ap-descriptions/help-message/index.vue2.js +1 -1
  200. package/lib/src/business/ap-download/ap-download.vue.js +1 -1
  201. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.js +1 -1
  202. package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
  203. package/lib/src/business/ap-export-group/handleExportDownload.d.ts +1 -1
  204. package/lib/src/business/ap-export-group/handleExportDownload.js +1 -1
  205. package/lib/src/business/ap-export-group/interface.d.ts +9 -0
  206. package/lib/src/business/ap-radio-group/ap-radio-group.vue2.js +1 -1
  207. package/lib/src/business/ap-status/group/ApStatusGroup.vue2.js +1 -1
  208. package/lib/src/business/ap-table-modal/table-layout/index.vue2.js +1 -1
  209. package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
  210. package/lib/src/business/ap-tag/ap-tag-group.vue.js +1 -1
  211. package/lib/src/business/ap-tag/ap-tag.vue.js +1 -1
  212. package/lib/src/business/ap-title/ApTitle.vue2.js +1 -1
  213. package/lib/src/business/ap-value-select-card/index.vue2.js +1 -1
  214. package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +1 -1
  215. package/lib/src/business/batch-input-group/form-item.vue.js +1 -1
  216. package/lib/src/business/batch-input-group/index.vue.js +2 -2
  217. package/lib/src/business/batch-input-group/popover-input/index.vue2.js +2 -2
  218. package/lib/src/config-provider/config-provider-props.d.ts +1 -1
  219. package/lib/src/config-provider/config-provider.d.ts +3 -0
  220. package/lib/src/config-provider/hooks/use-global-config.d.ts +1 -0
  221. package/lib/src/config-provider/index.d.ts +6 -0
  222. package/lib/src/editable-table/form-item.vue.js +1 -1
  223. package/lib/src/editable-table/index.vue.js +1 -1
  224. package/lib/src/full-screen/index.vue.js +1 -1
  225. package/lib/src/locale/lang/en.js +1 -1
  226. package/lib/src/locale/lang/zh-cn.js +1 -1
  227. package/lib/src/mask/index.vue.js +1 -1
  228. package/lib/src/portal/index.vue.js +1 -1
  229. package/lib/src/scroll-bar/internal.vue.js +1 -1
  230. package/lib/src/scroll-view/index.vue.js +1 -1
  231. package/lib/src/skeleton/components/desc/index.vue2.js +1 -1
  232. package/lib/src/skeleton/components/desc/item-large.vue2.js +1 -1
  233. package/lib/src/skeleton/components/desc/item.vue2.js +1 -1
  234. package/lib/src/skeleton/components/list/index.vue2.js +1 -1
  235. package/lib/src/skeleton/components/list/item.vue2.js +1 -1
  236. package/lib/src/skeleton/components/page-header/index.vue2.js +1 -1
  237. package/lib/src/skeleton/components/search-form/index.vue2.js +1 -1
  238. package/lib/src/skeleton/components/table/index.vue2.js +1 -1
  239. package/lib/src/skeleton/components/table/item.vue2.js +1 -1
  240. package/lib/src/skeleton/descriptions.vue2.js +1 -1
  241. package/lib/src/skeleton/list-page.vue2.js +1 -1
  242. package/lib/src/splitter/Panel.vue2.js +1 -1
  243. package/lib/src/splitter/SplitBar.vue2.js +1 -1
  244. package/lib/src/splitter/Splitter.vue2.js +1 -1
  245. package/lib/src/text/group.vue.js +1 -1
  246. package/lib/src/text/index.vue.js +1 -1
  247. package/lib/src/version.d.ts +1 -1
  248. package/lib/src/version.js +1 -1
  249. package/package.json +3 -3
@@ -1,18 +1,18 @@
1
- import { defineComponent as L, useSlots as Y, computed as s, unref as t, isVNode as Z, createVNode as P, Fragment as m, createElementBlock as g, createBlock as k, openBlock as u, createTextVNode as S, toDisplayString as C, resolveDynamicComponent as q, normalizeStyle as J, withCtx as B, createCommentVNode as Q, isRef as X, renderList as T, mergeProps as ee, createSlots as oe, renderSlot as te, normalizeProps as ne, guardReactiveProps as ae } from "vue";
1
+ import { defineComponent as L, useSlots as Y, computed as s, unref as t, isVNode as Z, createVNode as D, Fragment as m, createElementBlock as g, createBlock as k, openBlock as u, createTextVNode as S, toDisplayString as C, resolveDynamicComponent as q, normalizeStyle as J, withCtx as B, createCommentVNode as Q, isRef as X, renderList as w, mergeProps as ee, createSlots as oe, renderSlot as te, normalizeProps as ne, guardReactiveProps as ae } from "vue";
2
2
  import { SwapRightOutlined as re } from "@ant-design/icons-vue";
3
3
  import { InputGroup as le, Select as ue, SelectOption as de, DatePicker as ie } from "@aplus-frontend/antdv";
4
- import { getTimeFormatToZone as M } from "@aplus-frontend/utils";
4
+ import { getTimeFormatToZone as T } from "@aplus-frontend/utils";
5
5
  import d from "dayjs";
6
- import { isNil as b, omit as A, isString as c, isFunction as se } from "lodash-unified";
6
+ import { isNil as b, omit as M, isString as c, isFunction as se } from "lodash-unified";
7
7
  import "../../hooks/index.mjs";
8
8
  import { omitUndefined as pe } from "../../utils/index.mjs";
9
- import { ApFieldDatePresetFormats as fe, PRESET_FORMAT_MAP as R, PRESET_FORMAT_PICK_MAP as me, PRESET_FORMAT_TIME_MAP as ce } from "../date/constant.mjs";
9
+ import { ApFieldDatePresetFormats as fe, PRESET_FORMAT_MAP as A, PRESET_FORMAT_PICK_MAP as me, PRESET_FORMAT_TIME_MAP as ce } from "../date/constant.mjs";
10
10
  import { formatDayWithTimezone as ye } from "../date/helper.mjs";
11
11
  import { useDateTimezone as ve } from "../hooks/use-date-timezone.mjs";
12
12
  import { useDefaultPlaceholder as he } from "../hooks/use-default-placeholder.mjs";
13
13
  import { useDefaultPresets as ge } from "../hooks/use-default-presets.mjs";
14
14
  import { useControllableValue as ke } from "../../hooks/useControllableValue.mjs";
15
- const xe = /* @__PURE__ */ L({
15
+ const ze = /* @__PURE__ */ L({
16
16
  name: "ApFieldDateRange",
17
17
  __name: "index",
18
18
  props: {
@@ -157,17 +157,17 @@ const xe = /* @__PURE__ */ L({
157
157
  timezone: {},
158
158
  readModeSeparator: {},
159
159
  presets: {
160
- type: [Array, Boolean]
160
+ type: [Array, Boolean, Object]
161
161
  }
162
162
  },
163
163
  emits: ["update:value"],
164
- setup(D, {
164
+ setup(R, {
165
165
  emit: F
166
166
  }) {
167
- const o = D, _ = F, x = Y(), i = s(() => fe.indexOf(o.format) > -1), y = s(() => i.value ? R[o.format] : o.format), {
167
+ const o = R, _ = F, z = Y(), i = s(() => fe.indexOf(o.format) > -1), y = s(() => i.value ? A[o.format] : o.format), {
168
168
  value: v,
169
- updateValue: w
170
- } = ke(o, _), z = s(() => o.shownFormat ? o.shownFormat : i.value ? R[o.format] : o.format), N = he("DateRange", o), {
169
+ updateValue: P
170
+ } = ke(o, _), N = s(() => o.shownFormat ? o.shownFormat : i.value ? A[o.format] : o.format), x = he("DateRange", o), {
171
171
  currentTimezone: l
172
172
  } = ve(o), {
173
173
  presets: E,
@@ -179,25 +179,25 @@ const xe = /* @__PURE__ */ L({
179
179
  const e = t(v);
180
180
  if (b(e) || !e?.length)
181
181
  return e;
182
- const a = l.value ? M(t(v)[0], l.value) : t(v)?.[0], n = o.timezone ? M(t(v)[1], l.value) : t(v)?.[1];
182
+ const a = l.value ? T(t(v)[0], l.value) : t(v)?.[0], n = o.timezone ? T(t(v)[1], l.value) : t(v)?.[1];
183
183
  return [d(a), d(n)];
184
- }), I = s(() => t(i) ? o.picker ?? me[o.format] : o.picker), U = s(() => {
184
+ }), j = s(() => t(i) ? o.picker ?? me[o.format] : o.picker), I = s(() => {
185
185
  const e = t(i) ? ce[o.format] : {};
186
186
  return {
187
- ...pe(A(o, ["value", "onUpdate:value", "onChange", "onOk", "format", "mode", "presets"])),
188
- placeholder: t(N),
187
+ ...pe(M(o, ["value", "onUpdate:value", "onChange", "onOk", "format", "mode", "presets"])),
188
+ placeholder: t(x),
189
189
  presets: t(E),
190
190
  ...e
191
191
  };
192
192
  });
193
- function j(e) {
193
+ function U(e) {
194
194
  if (!e) {
195
- w(e);
195
+ P(e);
196
196
  return;
197
197
  }
198
198
  let a = c(e[0]) ? d(e[0]) : e[0], n = c(e[1]) ? d(e[1]) : e[1];
199
199
  const r = t(i) ? t(y) : void 0;
200
- w([p(a, r), p(n, r, !1)]);
200
+ P([p(a, r), p(n, r, !1)]);
201
201
  }
202
202
  function H(e) {
203
203
  const a = c(e[0]) ? d(e[0]) : e[0], n = c(e[1]) ? d(e[1]) : e[1], r = t(i) ? t(y) : void 0, f = e[0] ? p(a, r) : null, O = e[1] ? p(n, r, !1) : null;
@@ -217,17 +217,17 @@ const xe = /* @__PURE__ */ L({
217
217
  const $ = s(() => {
218
218
  const e = o.readModeSeparator;
219
219
  if (e)
220
- return Z(e) || se(e) ? o.readModeSeparator : P(m, null, [o.readModeSeparator]);
221
- const a = x.readModeSeparator?.();
222
- return a ? P(m, null, [a]) : re;
220
+ return Z(e) || se(e) ? o.readModeSeparator : D(m, null, [o.readModeSeparator]);
221
+ const a = z.readModeSeparator?.();
222
+ return a ? D(m, null, [a]) : re;
223
223
  });
224
- return (e, a) => D.mode === "read" ? (u(), g(m, {
224
+ return (e, a) => e.mode === "read" ? (u(), g(m, {
225
225
  key: 0
226
226
  }, [h.value ? (u(), g(m, {
227
227
  key: 0
228
228
  }, [S(C(h.value[0]?.format(y.value)) + " ", 1), (u(), k(q($.value))), S(" " + C(h.value[1]?.format(y.value)), 1)], 64)) : (u(), g(m, {
229
229
  key: 1
230
- }, [S(C(D.emptyText), 1)], 64))], 64)) : (u(), k(t(le), {
230
+ }, [S(C(e.emptyText), 1)], 64))], 64)) : (u(), k(t(le), {
231
231
  key: 1,
232
232
  compact: "",
233
233
  style: J({
@@ -241,7 +241,7 @@ const xe = /* @__PURE__ */ L({
241
241
  "default-active-first-option": "",
242
242
  "dropdown-match-select-width": !1
243
243
  }, {
244
- default: B(() => [(u(!0), g(m, null, T(o.timezone, (n) => (u(), k(t(de), {
244
+ default: B(() => [(u(!0), g(m, null, w(o.timezone, (n) => (u(), k(t(de), {
245
245
  key: n?.value,
246
246
  value: n?.value
247
247
  }, {
@@ -249,17 +249,17 @@ const xe = /* @__PURE__ */ L({
249
249
  _: 2
250
250
  }, 1032, ["value"]))), 128))]),
251
251
  _: 1
252
- }, 8, ["value"])) : Q("", !0), P(t(ie).RangePicker, ee(U.value, {
252
+ }, 8, ["value"])) : Q("", !0), D(t(ie).RangePicker, ee(I.value, {
253
253
  value: h.value,
254
- picker: I.value,
255
- format: z.value,
256
- "onUpdate:value": j,
254
+ picker: j.value,
255
+ format: N.value,
256
+ "onUpdate:value": U,
257
257
  onChange: W,
258
258
  onOk: H,
259
259
  onOpenChange: K
260
260
  }), oe({
261
261
  _: 2
262
- }, [T(t(A)(e.$slots, "readModeSeparator"), (n, r) => ({
262
+ }, [w(t(M)(e.$slots, "readModeSeparator"), (n, r) => ({
263
263
  name: r,
264
264
  fn: B((f) => [te(e.$slots, r, ne(ae(f || {})))])
265
265
  }))]), 1040, ["value", "picker", "format"])]),
@@ -268,5 +268,5 @@ const xe = /* @__PURE__ */ L({
268
268
  }
269
269
  });
270
270
  export {
271
- xe as default
271
+ ze as default
272
272
  };
@@ -1,10 +1,10 @@
1
- import { defineComponent as v, computed as r, createElementBlock as i, openBlock as l, Fragment as m, createTextVNode as p, createBlock as b, toDisplayString as u, resolveDynamicComponent as h } from "vue";
2
- import { getTimeFormatToZone as c } from "@aplus-frontend/utils";
3
- import y from "dayjs";
1
+ import { defineComponent as v, computed as n, createElementBlock as d, openBlock as r, Fragment as i, createTextVNode as l, createBlock as b, toDisplayString as p, resolveDynamicComponent as h } from "vue";
2
+ import { getTimeFormatToZone as m } from "@aplus-frontend/utils";
3
+ import c from "dayjs";
4
4
  import { isNil as g } from "lodash-unified";
5
5
  import { ApFieldDatePresetFormats as w, PRESET_FORMAT_MAP as C } from "../date/constant.mjs";
6
- import { useDateTimezone as S } from "../hooks/use-date-timezone.mjs";
7
- const F = /* @__PURE__ */ v({
6
+ import { useDateTimezone as O } from "../hooks/use-date-timezone.mjs";
7
+ const M = /* @__PURE__ */ v({
8
8
  name: "ApFieldDateRangeRead",
9
9
  __name: "read",
10
10
  props: {
@@ -86,35 +86,35 @@ const F = /* @__PURE__ */ v({
86
86
  shownFormat: {},
87
87
  timezone: {},
88
88
  readModeSeparator: {},
89
- presets: { type: [Array, Boolean] }
89
+ presets: { type: [Array, Boolean, Object] }
90
90
  },
91
- setup(a) {
92
- const e = a, { currentTimezone: t } = S(e), n = r(() => {
91
+ setup(y) {
92
+ const e = y, { currentTimezone: a } = O(e), t = n(() => {
93
93
  const o = e.value;
94
94
  if (g(o) || !o?.length)
95
95
  return o;
96
- const d = t.value ? c(
96
+ const s = a.value ? m(
97
97
  e.value[0],
98
- t.value
99
- ) : e.value?.[0], B = e.timezone ? c(
98
+ a.value
99
+ ) : e.value?.[0], B = e.timezone ? m(
100
100
  e.value[1],
101
- t.value
101
+ a.value
102
102
  ) : e.value?.[1];
103
- return [y(d), y(B)];
104
- }), f = r(
103
+ return [c(s), c(B)];
104
+ }), f = n(
105
105
  () => w.indexOf(e.format) > -1
106
- ), s = r(
106
+ ), u = n(
107
107
  () => f.value ? C[e.format] : e.format
108
108
  );
109
- return (o, d) => n.value ? (l(), i(m, { key: 0 }, [
110
- p(u(n.value[0]?.format(s.value)) + " ", 1),
111
- (l(), b(h(a.readModeSeparator))),
112
- p(" " + u(n.value[1]?.format(s.value)), 1)
113
- ], 64)) : (l(), i(m, { key: 1 }, [
114
- p(u(a.emptyText), 1)
109
+ return (o, s) => t.value ? (r(), d(i, { key: 0 }, [
110
+ l(p(t.value[0]?.format(u.value)) + " ", 1),
111
+ (r(), b(h(o.readModeSeparator))),
112
+ l(" " + p(t.value[1]?.format(u.value)), 1)
113
+ ], 64)) : (r(), d(i, { key: 1 }, [
114
+ l(p(o.emptyText), 1)
115
115
  ], 64));
116
116
  }
117
117
  });
118
118
  export {
119
- F as default
119
+ M as default
120
120
  };
@@ -1,26 +1,69 @@
1
1
  import u from "dayjs";
2
- import { ref as s, computed as n } from "vue";
2
+ import { merge as f } from "lodash-unified";
3
+ import { ref as m, computed as D } from "vue";
3
4
  import "../../config-provider/index.mjs";
4
- import { presetsDefault as o } from "../../utils/data-range-persets.mjs";
5
- import { useLocale as f } from "../../config-provider/hooks/use-locale.mjs";
6
- const p = (e) => {
7
- const a = s(u().valueOf()), { t: l } = f();
5
+ import { presetsDefault as l } from "../../utils/data-range-persets.mjs";
6
+ import { useLocale as h } from "../../config-provider/hooks/use-locale.mjs";
7
+ const W = (t) => {
8
+ const a = m(u().valueOf()), { t: s } = h();
8
9
  return {
9
- presets: n(() => e.presets === !0 ? o(
10
- e?.timezone?.value,
11
- a.value,
12
- l
13
- )?.filter(({ value: t }) => t.every(
14
- (r) => e.disabledDate ? !e.disabledDate(r) : !0
15
- )) : e?.presets?.map?.((t) => ({
16
- label: t.label,
17
- value: t?.value?.filter((r) => r !== null)
18
- }))),
10
+ presets: D(() => {
11
+ if (t.presets === !0)
12
+ return l(
13
+ t?.timezone?.value,
14
+ a.value,
15
+ s
16
+ )?.filter(({ value: e }) => e.every(
17
+ (r) => t.disabledDate ? !t.disabledDate(r) : !0
18
+ ));
19
+ if (typeof t.presets == "object" && !Array.isArray(t.presets)) {
20
+ const e = f(
21
+ {},
22
+ {
23
+ thisWeek: !0,
24
+ lastWeek: !0,
25
+ last7Days: !0,
26
+ last30Days: !0,
27
+ last90Days: !0,
28
+ thisMonth: !0,
29
+ lastMonth: !0,
30
+ thisQuarter: !0,
31
+ lastQuarter: !0,
32
+ thisYear: !0,
33
+ lastYear: !0
34
+ },
35
+ t.presets
36
+ ), r = [
37
+ e.thisWeek,
38
+ e.lastWeek,
39
+ e.last7Days,
40
+ e.last30Days,
41
+ e.last90Days,
42
+ e.thisMonth,
43
+ e.lastMonth,
44
+ e.thisQuarter,
45
+ e.lastQuarter,
46
+ e.thisYear,
47
+ e.lastYear
48
+ ];
49
+ return l(
50
+ t?.timezone?.value,
51
+ a.value,
52
+ s
53
+ )?.filter(({ value: i }, n) => i.every(
54
+ (o) => t.disabledDate ? !t.disabledDate(o) : !0
55
+ ) && r[n]);
56
+ } else
57
+ return t?.presets?.map?.((e) => ({
58
+ label: e.label,
59
+ value: e?.value?.filter((r) => r !== null)
60
+ }));
61
+ }),
19
62
  changeCurrentDate: () => {
20
63
  a.value = u().valueOf();
21
64
  }
22
65
  };
23
66
  };
24
67
  export {
25
- p as useDefaultPresets
68
+ W as useDefaultPresets
26
69
  };
@@ -146,7 +146,52 @@ export type ApFieldDateRangeProps = BasicApFieldProps<Omit<RangePickerProps, 'va
146
146
  * 只读模式下的分隔符(比插槽优先级更高)
147
147
  */
148
148
  readModeSeparator?: any;
149
- presets?: RangePickerProps['presets'] | true;
149
+ presets?: RangePickerProps['presets'] | true | {
150
+ /**
151
+ * 是否显示本周
152
+ */
153
+ thisWeek?: boolean;
154
+ /**
155
+ * 是否显示上周
156
+ */
157
+ lastWeek?: boolean;
158
+ /**
159
+ * 是否显示近7天
160
+ */
161
+ last7Days?: boolean;
162
+ /**
163
+ * 是否显示近30天
164
+ */
165
+ last30Days?: boolean;
166
+ /**
167
+ * 是否显示近90天
168
+ */
169
+ last90Days?: boolean;
170
+ /**
171
+ * 是否显示本月
172
+ */
173
+ thisMonth?: boolean;
174
+ /**
175
+ * 是否显示上月
176
+ */
177
+ lastMonth?: boolean;
178
+ /**
179
+ * 是否显示本季度
180
+ */
181
+ thisQuarter?: boolean;
182
+ /**
183
+ * 是否显示上季度
184
+ */
185
+ lastQuarter?: boolean;
186
+ /**
187
+ * 是否显示今年
188
+ */
189
+ thisYear?: boolean;
190
+ /**
191
+ * 是否显示去年
192
+ */
193
+ lastYear?: boolean;
194
+ };
150
195
  };
151
196
  export type ApFieldSelectProps = BasicApFieldProps<Omit<SelectProps, 'mode' | 'value' | 'onUpdate:value' | 'onSearch'>> & {
152
197
  emptyText?: string;
@@ -1,4 +1,4 @@
1
- import { defineComponent as C, shallowRef as N, computed as D, unref as t, createElementBlock as i, createBlock as P, openBlock as l, normalizeClass as u, createCommentVNode as f, createElementVNode as R, renderSlot as d, toDisplayString as V, mergeProps as $, createSlots as I, renderList as M, withCtx as A, normalizeProps as U, guardReactiveProps as z } from "vue";
1
+ import { defineComponent as N, shallowRef as x, computed as D, unref as t, createElementBlock as s, createBlock as P, openBlock as l, normalizeClass as i, createCommentVNode as m, createElementVNode as R, renderSlot as u, toDisplayString as V, mergeProps as $, createSlots as I, renderList as M, withCtx as A, normalizeProps as U, guardReactiveProps as z } from "vue";
2
2
  import { InputNumber as E } from "@aplus-frontend/antdv";
3
3
  import { isNil as T, omit as w } from "lodash-unified";
4
4
  import { roundWith as F, toDecimalMark as O } from "../../utils/format.mjs";
@@ -7,9 +7,9 @@ import "../../hooks/index.mjs";
7
7
  import { useDefaultPlaceholder as W } from "../hooks/use-default-placeholder.mjs";
8
8
  import L from "../style/index.mjs";
9
9
  import { addZeroToDecimalPlaces as Z } from "./helper.mjs";
10
- import { useNamespace as j } from "../../config-provider/hooks/use-namespace.mjs";
11
- import { useControllableValue as q } from "../../hooks/useControllableValue.mjs";
12
- const le = /* @__PURE__ */ C({
10
+ import { useNamespace as _ } from "../../config-provider/hooks/use-namespace.mjs";
11
+ import { useControllableValue as j } from "../../hooks/useControllableValue.mjs";
12
+ const le = /* @__PURE__ */ N({
13
13
  name: "ApFieldNumber",
14
14
  __name: "index",
15
15
  props: {
@@ -61,8 +61,8 @@ const le = /* @__PURE__ */ C({
61
61
  limitDecimalsRetain: { type: Boolean }
62
62
  },
63
63
  emits: ["update:value"],
64
- setup(r, { expose: c, emit: y }) {
65
- const v = y, { b: n } = j("field-number"), h = L("field"), o = r, s = N(), { value: p, updateValue: B } = q(
64
+ setup(f, { expose: c, emit: y }) {
65
+ const v = y, { b: r } = _("field-number"), h = L("field"), o = f, n = x(), { value: p, updateValue: B } = j(
66
66
  o,
67
67
  v
68
68
  ), b = W("Number", o), g = D(() => {
@@ -74,40 +74,40 @@ const le = /* @__PURE__ */ C({
74
74
  return o.precision && o.limitDecimalsRetain && (a = Z(a, o.precision)), a;
75
75
  });
76
76
  function k() {
77
- s.value?.focus();
77
+ n.value?.focus();
78
78
  }
79
79
  function S() {
80
- s.value?.blur();
80
+ n.value?.blur();
81
81
  }
82
- return c({ focus: k, blur: S }), (e, a) => r.mode === "read" ? (l(), i("span", {
82
+ return c({ focus: k, blur: S }), (e, a) => e.mode === "read" ? (l(), s("span", {
83
83
  key: 0,
84
- class: u([t(n)(), t(h)])
84
+ class: i([t(r)(), t(h)])
85
85
  }, [
86
- e.$slots.prefix ? (l(), i("span", {
86
+ e.$slots.prefix ? (l(), s("span", {
87
87
  key: 0,
88
- class: u(t(n)("label-left"))
88
+ class: i(t(r)("label-left"))
89
89
  }, [
90
- d(e.$slots, "prefix")
91
- ], 2)) : f("", !0),
90
+ u(e.$slots, "prefix")
91
+ ], 2)) : m("", !0),
92
92
  R("span", null, V(g.value), 1),
93
- e.$slots.addonAfter ? (l(), i("span", {
93
+ e.$slots.addonAfter ? (l(), s("span", {
94
94
  key: 1,
95
- class: u(t(n)("label-right"))
95
+ class: i(t(r)("label-right"))
96
96
  }, [
97
- d(e.$slots, "addonAfter")
98
- ], 2)) : f("", !0)
97
+ u(e.$slots, "addonAfter")
98
+ ], 2)) : m("", !0)
99
99
  ], 2)) : (l(), P(t(E), $({ key: 1 }, t(w)(o, ["value", "onUpdate:value", "mode"]), {
100
100
  ref_key: "inputRef",
101
- ref: s,
101
+ ref: n,
102
102
  placeholder: t(b),
103
103
  value: t(p),
104
- mode: r.inputMode,
104
+ mode: e.inputMode,
105
105
  "onUpdate:value": t(B)
106
106
  }), I({ _: 2 }, [
107
- M(e.$slots, (G, m) => ({
108
- name: m,
109
- fn: A((x) => [
110
- d(e.$slots, m, U(z(x || {})))
107
+ M(e.$slots, (q, d) => ({
108
+ name: d,
109
+ fn: A((C) => [
110
+ u(e.$slots, d, U(z(C || {})))
111
111
  ])
112
112
  }))
113
113
  ]), 1040, ["placeholder", "value", "mode", "onUpdate:value"]));
@@ -1,5 +1,5 @@
1
- import { defineComponent as V, shallowRef as q, ref as C, onMounted as O, computed as S, unref as e, createElementBlock as p, openBlock as a, Fragment as m, createTextVNode as U, toDisplayString as G, createBlock as c, mergeProps as N } from "vue";
2
- import { Spin as _, RadioGroup as z } from "@aplus-frontend/antdv";
1
+ import { defineComponent as V, shallowRef as _, ref as q, onMounted as C, computed as O, unref as e, createElementBlock as s, openBlock as a, Fragment as p, createTextVNode as S, toDisplayString as U, createBlock as m, mergeProps as G } from "vue";
2
+ import { Spin as N, RadioGroup as z } from "@aplus-frontend/antdv";
3
3
  import { isNil as F, omit as w } from "lodash-unified";
4
4
  import "../../config-provider/index.mjs";
5
5
  import "../../hooks/index.mjs";
@@ -32,38 +32,38 @@ const $ = /* @__PURE__ */ V({
32
32
  request: {}
33
33
  },
34
34
  emits: ["update:value"],
35
- setup(l, { expose: d, emit: f }) {
36
- const t = l, v = f, n = q(), { options: u, updateOptions: y } = A(t), { value: i, updateValue: x } = L(t, v), { b: g, m: k } = M("field-radio"), b = D("field"), r = C(!1);
37
- O(() => {
38
- t.request && (r.value = !0, t.request?.().then((o) => y(o)).finally(() => {
39
- r.value = !1;
35
+ setup(d, { expose: f, emit: c }) {
36
+ const t = d, v = c, l = _(), { options: r, updateOptions: y } = A(t), { value: u, updateValue: g } = L(t, v), { b: k, m: b } = M("field-radio"), x = D("field"), n = q(!1);
37
+ C(() => {
38
+ t.request && (n.value = !0, t.request?.().then((o) => y(o)).finally(() => {
39
+ n.value = !1;
40
40
  }));
41
41
  });
42
- const h = S(() => {
43
- const o = e(i);
42
+ const h = O(() => {
43
+ const o = e(u);
44
44
  if (F(o))
45
45
  return t.emptyText;
46
- const s = u.value?.find(
46
+ const i = r.value?.find(
47
47
  (R) => o === E(R)
48
48
  );
49
- return I(s) || t.emptyText;
49
+ return I(i) || t.emptyText;
50
50
  });
51
51
  function B() {
52
- n.value?.focus();
52
+ l.value?.focus();
53
53
  }
54
54
  function T() {
55
- n.value?.blur();
55
+ l.value?.blur();
56
56
  }
57
- return d({
57
+ return f({
58
58
  focus: B,
59
59
  blur: T
60
- }), (o, s) => l.mode === "read" ? (a(), p(m, { key: 0 }, [
61
- U(G(h.value), 1)
62
- ], 64)) : (a(), p(m, { key: 1 }, [
63
- r.value ? (a(), c(e(_), {
60
+ }), (o, i) => o.mode === "read" ? (a(), s(p, { key: 0 }, [
61
+ S(U(h.value), 1)
62
+ ], 64)) : (a(), s(p, { key: 1 }, [
63
+ n.value ? (a(), m(e(N), {
64
64
  key: 0,
65
65
  size: "small"
66
- })) : (a(), c(e(z), N(
66
+ })) : (a(), m(e(z), G(
67
67
  { key: 1 },
68
68
  e(w)(t, [
69
69
  "value",
@@ -74,11 +74,11 @@ const $ = /* @__PURE__ */ V({
74
74
  ]),
75
75
  {
76
76
  ref_key: "radioGroupRef",
77
- ref: n,
78
- value: e(i),
79
- options: e(u),
80
- class: [e(g)(), l.vertical ? e(k)("vertical") : null, e(b)],
81
- "onUpdate:value": e(x)
77
+ ref: l,
78
+ value: e(u),
79
+ options: e(r),
80
+ class: [e(k)(), o.vertical ? e(b)("vertical") : null, e(x)],
81
+ "onUpdate:value": e(g)
82
82
  }
83
83
  ), null, 16, ["value", "options", "class", "onUpdate:value"]))
84
84
  ], 64));
@@ -1,4 +1,4 @@
1
- import { defineComponent as h, shallowRef as B, useSlots as x, createElementBlock as b, createBlock as S, openBlock as r, toDisplayString as g, unref as e, mergeProps as _, createSlots as k, renderList as C, withCtx as P, renderSlot as I, normalizeProps as U, guardReactiveProps as w } from "vue";
1
+ import { defineComponent as h, shallowRef as B, useSlots as b, createElementBlock as x, createBlock as S, openBlock as r, toDisplayString as _, unref as e, mergeProps as g, createSlots as k, renderList as C, withCtx as P, renderSlot as I, normalizeProps as U, guardReactiveProps as w } from "vue";
2
2
  import { InputNumber as R } from "@aplus-frontend/antdv";
3
3
  import { omit as V } from "lodash-unified";
4
4
  import "../../hooks/index.mjs";
@@ -54,32 +54,32 @@ const E = { key: 0 }, q = /* @__PURE__ */ h({
54
54
  emptyText: { default: "--" }
55
55
  },
56
56
  emits: ["update:value"],
57
- setup(t, { expose: u, emit: d }) {
58
- const o = t, s = d, a = B(), { value: l, updateValue: p } = D(
57
+ setup(u, { expose: d, emit: s }) {
58
+ const o = u, p = s, t = B(), { value: a, updateValue: i } = D(
59
59
  o,
60
- s
61
- ), i = x(), f = z("Second", o);
62
- function c() {
63
- a.value?.focus();
64
- }
60
+ p
61
+ ), f = b(), c = z("Second", o);
65
62
  function m() {
66
- a.value?.blur();
63
+ t.value?.focus();
64
+ }
65
+ function y() {
66
+ t.value?.blur();
67
67
  }
68
- return u({ focus: c, blur: m }), (y, F) => t.mode === "read" ? (r(), b("span", E, g(e(A)(Number(e(l)))), 1)) : (r(), S(e(R), _(
68
+ return d({ focus: m, blur: y }), (l, F) => l.mode === "read" ? (r(), x("span", E, _(e(A)(Number(e(a)))), 1)) : (r(), S(e(R), g(
69
69
  {
70
70
  key: 1,
71
71
  min: 0,
72
72
  style: { width: "100%" },
73
- placeholder: e(f),
74
- value: e(l)
73
+ placeholder: e(c),
74
+ value: e(a)
75
75
  },
76
76
  e(V)(o, ["value", "onUpdate:value", "min", "placeholder", "mode"]),
77
- { "onUpdate:value": e(p) }
77
+ { "onUpdate:value": e(i) }
78
78
  ), k({ _: 2 }, [
79
- C(i, (M, n) => ({
79
+ C(f, (M, n) => ({
80
80
  name: n,
81
81
  fn: P((v) => [
82
- I(y.$slots, n, U(w(v || {})))
82
+ I(l.$slots, n, U(w(v || {})))
83
83
  ])
84
84
  }))
85
85
  ]), 1040, ["placeholder", "value", "onUpdate:value"]));
@@ -1,6 +1,6 @@
1
- import { defineComponent as a, createElementBlock as n, openBlock as t, toDisplayString as r, unref as l } from "vue";
2
- import { formatSecond as p } from "./helper.mjs";
3
- const c = /* @__PURE__ */ a({
1
+ import { defineComponent as n, createElementBlock as t, openBlock as r, toDisplayString as l, unref as p } from "vue";
2
+ import { formatSecond as s } from "./helper.mjs";
3
+ const m = /* @__PURE__ */ n({
4
4
  name: "ApFieldSecond",
5
5
  __name: "read",
6
6
  props: {
@@ -48,11 +48,11 @@ const c = /* @__PURE__ */ a({
48
48
  onFocus: {},
49
49
  emptyText: { default: "--" }
50
50
  },
51
- setup(e) {
52
- const o = e;
53
- return (d, s) => (t(), n("span", null, r(e.value ? l(p)(Number(o.value)) : e.emptyText), 1));
51
+ setup(o) {
52
+ const a = o;
53
+ return (e, d) => (r(), t("span", null, l(e.value ? p(s)(Number(a.value)) : e.emptyText), 1));
54
54
  }
55
55
  });
56
56
  export {
57
- c as default
57
+ m as default
58
58
  };