@aplus-frontend/ui 6.26.1 → 6.26.3

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 (438) hide show
  1. package/es/src/ag-grid/components/header-cell/index.vue2.mjs +26 -29
  2. package/es/src/ag-grid/hooks/use-columns-def.mjs +69 -72
  3. package/es/src/ag-grid/hooks/use-columns.mjs +11 -13
  4. package/es/src/ag-grid/hooks/use-row-selection.mjs +43 -43
  5. package/es/src/ag-grid/hooks/use-search-form.mjs +33 -36
  6. package/es/src/ag-grid/index.vue.mjs +251 -268
  7. package/es/src/ag-grid/interface.d.ts +4 -0
  8. package/es/src/ag-grid/renderer/checkbox.mjs +4 -5
  9. package/es/src/ag-grid/renderer/date-range.mjs +11 -12
  10. package/es/src/ag-grid/renderer/date.mjs +12 -13
  11. package/es/src/ag-grid/renderer/radio.mjs +9 -10
  12. package/es/src/ag-grid/renderer/select.mjs +10 -17
  13. package/es/src/ag-grid/renderer/tree-select.mjs +8 -10
  14. package/es/src/ap-action/item/index.vue2.mjs +19 -20
  15. package/es/src/ap-action/item-dropdown/index.vue.mjs +23 -24
  16. package/es/src/ap-action/item-modal/index.vue.mjs +15 -16
  17. package/es/src/ap-action/item-popconfirm/index.vue.mjs +17 -18
  18. package/es/src/ap-button/ap-confirm-button.vue.mjs +18 -19
  19. package/es/src/ap-button/utils/index.mjs +27 -28
  20. package/es/src/ap-descriptions/ap-descriptions.vue.mjs +78 -86
  21. package/es/src/ap-descriptions/formatter/index.mjs +60 -61
  22. package/es/src/ap-descriptions/helper.mjs +6 -6
  23. package/es/src/ap-download/ap-download.vue.mjs +42 -46
  24. package/es/src/ap-download/hooks/index.mjs +13 -13
  25. package/es/src/ap-download/utils/getFileInfo.mjs +21 -21
  26. package/es/src/ap-drawer/utils/createDrawer.mjs +43 -52
  27. package/es/src/ap-field/checkbox/index.vue.mjs +31 -34
  28. package/es/src/ap-field/checkbox/read.vue2.mjs +11 -14
  29. package/es/src/ap-field/date/index.vue.mjs +66 -68
  30. package/es/src/ap-field/date-range/index.vue.mjs +99 -107
  31. package/es/src/ap-field/date-range/read.vue2.mjs +28 -32
  32. package/es/src/ap-field/hooks/use-date-timezone.mjs +1 -4
  33. package/es/src/ap-field/hooks/use-default-presets.mjs +18 -24
  34. package/es/src/ap-field/hooks/use-options.mjs +11 -11
  35. package/es/src/ap-field/number/helper.mjs +17 -17
  36. package/es/src/ap-field/number/index.vue.mjs +2 -4
  37. package/es/src/ap-field/radio/index.vue.mjs +38 -42
  38. package/es/src/ap-field/radio/read.vue2.mjs +12 -13
  39. package/es/src/ap-field/rate/index.vue.mjs +23 -25
  40. package/es/src/ap-field/segmented/index.vue.mjs +38 -39
  41. package/es/src/ap-field/select/index.vue.mjs +90 -107
  42. package/es/src/ap-field/select/read.vue2.mjs +13 -20
  43. package/es/src/ap-field/select/use-select-options.mjs +24 -25
  44. package/es/src/ap-field/slider/index.vue.mjs +28 -30
  45. package/es/src/ap-field/switch/index.vue.mjs +38 -39
  46. package/es/src/ap-field/text/index.vue2.mjs +43 -52
  47. package/es/src/ap-field/text/password.vue.mjs +20 -22
  48. package/es/src/ap-field/text-area/index.vue.mjs +25 -31
  49. package/es/src/ap-field/tree-select/index.vue.mjs +61 -65
  50. package/es/src/ap-field/tree-select/read.vue2.mjs +26 -28
  51. package/es/src/ap-field/tree-select/use-request.mjs +40 -41
  52. package/es/src/ap-form/ap-form.vue2.mjs +127 -142
  53. package/es/src/ap-form/drawer-form/index.vue.d.ts +3 -3
  54. package/es/src/ap-form/drawer-form/index.vue.mjs +109 -146
  55. package/es/src/ap-form/hooks/use-watch.mjs +25 -26
  56. package/es/src/ap-form/item/index.vue.mjs +76 -81
  57. package/es/src/ap-form/item-group/index.vue.mjs +20 -20
  58. package/es/src/ap-form/items/date/index.vue.mjs +18 -21
  59. package/es/src/ap-form/items/date-range/index.vue.mjs +24 -27
  60. package/es/src/ap-form/items/number/index.vue.d.ts +3 -3
  61. package/es/src/ap-form/items/number/index.vue.mjs +2 -4
  62. package/es/src/ap-form/items/radio/index.vue.mjs +8 -10
  63. package/es/src/ap-form/items/select/index.vue.d.ts +7 -7
  64. package/es/src/ap-form/items/select/index.vue.mjs +30 -36
  65. package/es/src/ap-form/items/text/index.vue2.mjs +20 -27
  66. package/es/src/ap-form/items/text/password.vue.mjs +12 -14
  67. package/es/src/ap-form/items/text-area/index.vue.mjs +18 -23
  68. package/es/src/ap-form/items/tree-select/index.vue.d.ts +3 -3
  69. package/es/src/ap-form/items/tree-select/index.vue.mjs +28 -34
  70. package/es/src/ap-form/list/index.vue.mjs +26 -26
  71. package/es/src/ap-form/modal-form/index.vue.d.ts +3 -3
  72. package/es/src/ap-form/modal-form/index.vue.mjs +98 -130
  73. package/es/src/ap-form/provider/index.vue.mjs +24 -24
  74. package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +9 -9
  75. package/es/src/ap-form/search-form/hooks/use-collapse-input-count.mjs +23 -24
  76. package/es/src/ap-form/search-form/hooks/use-sorter.mjs +25 -26
  77. package/es/src/ap-form/search-form/index.vue.d.ts +3 -3
  78. package/es/src/ap-form/search-form/index.vue.mjs +96 -103
  79. package/es/src/ap-form/search-form/utils.mjs +17 -17
  80. package/es/src/ap-form/set/index.vue.mjs +16 -20
  81. package/es/src/ap-form/utils/get.mjs +11 -11
  82. package/es/src/ap-grid/editable/form-item.vue.mjs +85 -92
  83. package/es/src/ap-grid/editable/index.vue.mjs +102 -116
  84. package/es/src/ap-grid/hooks/use-editable-columns.mjs +40 -43
  85. package/es/src/ap-grid/hooks/use-inner-params.mjs +15 -15
  86. package/es/src/ap-grid/hooks/use-row-selection.mjs +76 -76
  87. package/es/src/ap-grid/index.vue.mjs +309 -334
  88. package/es/src/ap-grid/utils/col.mjs +78 -81
  89. package/es/src/ap-grid/utils/editable.mjs +17 -18
  90. package/es/src/ap-grid/utils/renderer.mjs +7 -11
  91. package/es/src/ap-grid/utils/table.mjs +45 -46
  92. package/es/src/ap-grid/utils/to-tree-array.mjs +9 -10
  93. package/es/src/ap-list/hooks/use-offline-list.mjs +16 -17
  94. package/es/src/ap-list/index.vue.mjs +120 -131
  95. package/es/src/ap-modal/utils/createModal.mjs +60 -67
  96. package/es/src/ap-modal/utils/createModalStream.mjs +65 -73
  97. package/es/src/ap-modal/utils/methods.mjs +17 -22
  98. package/es/src/ap-modal/utils/util.mjs +1 -1
  99. package/es/src/ap-pro-card/components/card/index.vue2.mjs +114 -127
  100. package/es/src/ap-pro-card/components/statistic/index.vue2.mjs +34 -52
  101. package/es/src/ap-pro-card/components/statistic-card/index.vue.d.ts +3 -1
  102. package/es/src/ap-pro-card/components/statistic-card/index.vue2.mjs +47 -57
  103. package/es/src/ap-table/ap-table.vue2.mjs +270 -303
  104. package/es/src/ap-table/components/paragraph-ellipsis/index.vue2.mjs +54 -60
  105. package/es/src/ap-table/components/setting/modal/index.vue2.mjs +56 -57
  106. package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +61 -70
  107. package/es/src/ap-table/components/setting/sortable/index.vue2.mjs +35 -38
  108. package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +104 -109
  109. package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +37 -39
  110. package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +51 -57
  111. package/es/src/ap-table/components/setting/utils.mjs +44 -46
  112. package/es/src/ap-table/constants.d.ts +6 -6
  113. package/es/src/ap-table/hooks/use-sticky-scroll.mjs +7 -10
  114. package/es/src/ap-table/hooks/use-table-column-state.mjs +76 -79
  115. package/es/src/ap-table/hooks/use-table-content-height.mjs +20 -22
  116. package/es/src/ap-table/hooks/use-table-paging-ng.mjs +172 -178
  117. package/es/src/ap-table/hooks/use-table-paging.mjs +129 -134
  118. package/es/src/ap-table/utils.mjs +123 -130
  119. package/es/src/ap-upload/apUpload.vue.mjs +43 -46
  120. package/es/src/ap-upload/components/MultipleFile.vue2.mjs +92 -94
  121. package/es/src/ap-upload/components/Picture.vue2.mjs +145 -151
  122. package/es/src/ap-upload/components/SingleFile.vue2.mjs +144 -148
  123. package/es/src/ap-upload/hooks/useOss.mjs +35 -35
  124. package/es/src/ap-upload/utils/accept.mjs +37 -38
  125. package/es/src/ap-upload/utils/returnData.mjs +14 -14
  126. package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +85 -89
  127. package/es/src/business/ap-appendix/utils/index.mjs +13 -13
  128. package/es/src/business/ap-attachment/ApAttachment.mjs +80 -87
  129. package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +35 -42
  130. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +59 -74
  131. package/es/src/business/ap-batch-action-group/MenuItemGroup.vue2.mjs +25 -27
  132. package/es/src/business/ap-batch-action-group/index.d.ts +6 -0
  133. package/es/src/business/ap-button-group/ApButtonGroup.vue2.mjs +28 -28
  134. package/es/src/business/ap-card/ApCard.vue2.mjs +40 -52
  135. package/es/src/business/ap-copy/ApCopy.mjs +38 -39
  136. package/es/src/business/ap-draggable-grid/ApDraggableGrid.vue2.mjs +118 -112
  137. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +138 -151
  138. package/es/src/business/ap-export-group/convertExportField.mjs +9 -10
  139. package/es/src/business/ap-export-group/handleExportDownload.mjs +8 -8
  140. package/es/src/business/ap-image/ApImage.vue2.mjs +57 -62
  141. package/es/src/business/ap-image/hooks/useOss.mjs +26 -26
  142. package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +31 -34
  143. package/es/src/business/ap-keep-alive/hook.mjs +14 -20
  144. package/es/src/business/ap-keep-alive/keep-alive.mjs +88 -93
  145. package/es/src/business/ap-keep-alive/keeper/ap-form-keeper.mjs +10 -12
  146. package/es/src/business/ap-keep-alive/keeper/ap-grid-keeper.mjs +10 -12
  147. package/es/src/business/ap-keep-alive/keeper/ap-list-keeper.mjs +8 -10
  148. package/es/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.mjs +5 -6
  149. package/es/src/business/ap-keep-alive/keeper/ap-search-form-keeper.mjs +8 -10
  150. package/es/src/business/ap-keep-alive/keeper/ap-table-keeper.mjs +8 -10
  151. package/es/src/business/ap-keep-alive/keeper/ap-view-keeper.mjs +4 -5
  152. package/es/src/business/ap-keep-alive/keeper/edit-grid-keeper.mjs +8 -10
  153. package/es/src/business/ap-keep-alive/keeper/edit-table-keeper.mjs +8 -10
  154. package/es/src/business/ap-keep-alive/keeper/step-keeper.mjs +5 -6
  155. package/es/src/business/ap-keep-alive/keeper/tab-keeper.mjs +5 -6
  156. package/es/src/business/ap-keep-alive/utils.mjs +25 -26
  157. package/es/src/business/ap-ladder/ApLadder.mjs +11 -14
  158. package/es/src/business/ap-radio-group/ap-radio-group.vue2.mjs +39 -45
  159. package/es/src/business/ap-select-layout/select-layout.vue2.mjs +114 -124
  160. package/es/src/business/ap-size-input/ApSizeInput.mjs +46 -49
  161. package/es/src/business/ap-summary/ap-summary.vue2.mjs +43 -44
  162. package/es/src/business/ap-summary/utils.mjs +23 -29
  163. package/es/src/business/ap-table-modal/hooks/use-create-table-modal.mjs +33 -44
  164. package/es/src/business/ap-table-modal/hooks/use-table-select-modal.mjs +23 -23
  165. package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +27 -30
  166. package/es/src/business/ap-table-modal/table-modal.vue2.mjs +90 -92
  167. package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs +170 -183
  168. package/es/src/business/ap-upload-file/hook/useOss.mjs +17 -17
  169. package/es/src/business/ap-upload-file/hook/useProps.mjs +14 -16
  170. package/es/src/business/ap-upload-file/utils/accept.mjs +35 -36
  171. package/es/src/business/ap-upload-file/utils/fileList.mjs +10 -12
  172. package/es/src/business/ap-upload-file/utils/upload.mjs +40 -40
  173. package/es/src/business/ap-value-select-card/index.vue2.mjs +122 -119
  174. package/es/src/business/ap-value-select-card/utils.mjs +1 -1
  175. package/es/src/business/ap-view/ap-view.vue2.mjs +134 -147
  176. package/es/src/business/ap-view/components/main-button-content.vue.d.ts +2 -2
  177. package/es/src/business/ap-view/components/main-button-content.vue2.mjs +90 -94
  178. package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +2 -2
  179. package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +126 -135
  180. package/es/src/business/batch-input-group/form-item.vue.mjs +43 -51
  181. package/es/src/business/batch-input-group/index.vue.mjs +113 -127
  182. package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +40 -42
  183. package/es/src/business/hooks/useGridRefresh.mjs +11 -12
  184. package/es/src/business/hooks/useKeepAliveFlag.mjs +4 -4
  185. package/es/src/business/hooks/usePageListAgGrid.mjs +43 -48
  186. package/es/src/business/hooks/usePageListApGrid.mjs +48 -53
  187. package/es/src/business/hooks/usePageListApTable.mjs +27 -32
  188. package/es/src/business/hooks/useTableRefresh.mjs +39 -41
  189. package/es/src/check-card/index.vue2.mjs +51 -56
  190. package/es/src/config-provider/config-provider.mjs +12 -12
  191. package/es/src/config-provider/hooks/use-global-config.mjs +20 -23
  192. package/es/src/config-provider/hooks/use-locale.mjs +17 -17
  193. package/es/src/editable-table/form-item.vue.mjs +82 -88
  194. package/es/src/editable-table/hooks/use-get-columns.mjs +40 -43
  195. package/es/src/editable-table/index.vue.mjs +100 -113
  196. package/es/src/editable-table/utils.mjs +88 -95
  197. package/es/src/hooks/useControllableValue.mjs +18 -18
  198. package/es/src/hooks/useResize.mjs +16 -16
  199. package/es/src/mask/index.vue.mjs +11 -11
  200. package/es/src/resize-observer/index.vue.mjs +20 -22
  201. package/es/src/scroll-bar/index.vue.mjs +2 -8
  202. package/es/src/scroll-bar/internal.vue.mjs +59 -65
  203. package/es/src/scroll-view/hooks/use-scroll-wrapper.mjs +23 -25
  204. package/es/src/scroll-view/index.vue.mjs +40 -42
  205. package/es/src/splitter/Splitter.vue2.mjs +48 -52
  206. package/es/src/splitter/hooks/useItems.mjs +14 -15
  207. package/es/src/splitter/hooks/useResize.mjs +31 -34
  208. package/es/src/splitter/hooks/useSizes.mjs +34 -34
  209. package/es/src/text/index.vue.mjs +24 -24
  210. package/es/src/utils/config-provider-preset.mjs +17 -21
  211. package/es/src/utils/copy.mjs +9 -9
  212. package/es/src/utils/index.mjs +43 -43
  213. package/es/src/version.d.ts +1 -1
  214. package/es/src/version.mjs +1 -1
  215. package/es/src/work-order-modal/createWorkOrder.mjs +17 -18
  216. package/es/src/work-order-modal/work-order-modal.vue.d.ts +2 -2
  217. package/es/src/work-order-modal/work-order-modal.vue.mjs +109 -123
  218. package/lib/src/ag-grid/components/header-cell/index.vue2.js +1 -1
  219. package/lib/src/ag-grid/hooks/use-columns-def.js +1 -1
  220. package/lib/src/ag-grid/hooks/use-columns.js +1 -1
  221. package/lib/src/ag-grid/hooks/use-row-selection.js +1 -1
  222. package/lib/src/ag-grid/hooks/use-search-form.js +1 -1
  223. package/lib/src/ag-grid/index.vue.js +1 -1
  224. package/lib/src/ag-grid/interface.d.ts +4 -0
  225. package/lib/src/ag-grid/renderer/checkbox.js +1 -1
  226. package/lib/src/ag-grid/renderer/date-range.js +1 -1
  227. package/lib/src/ag-grid/renderer/date.js +1 -1
  228. package/lib/src/ag-grid/renderer/radio.js +1 -1
  229. package/lib/src/ag-grid/renderer/select.js +1 -1
  230. package/lib/src/ag-grid/renderer/tree-select.js +1 -1
  231. package/lib/src/ap-action/item/index.vue2.js +1 -1
  232. package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
  233. package/lib/src/ap-action/item-modal/index.vue.js +1 -1
  234. package/lib/src/ap-action/item-popconfirm/index.vue.js +1 -1
  235. package/lib/src/ap-button/ap-confirm-button.vue.js +1 -1
  236. package/lib/src/ap-button/utils/index.js +1 -1
  237. package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
  238. package/lib/src/ap-descriptions/formatter/index.js +1 -1
  239. package/lib/src/ap-descriptions/helper.js +1 -1
  240. package/lib/src/ap-download/ap-download.vue.js +1 -1
  241. package/lib/src/ap-download/hooks/index.js +1 -1
  242. package/lib/src/ap-download/utils/getFileInfo.js +1 -1
  243. package/lib/src/ap-drawer/utils/createDrawer.js +1 -1
  244. package/lib/src/ap-field/checkbox/index.vue.js +1 -1
  245. package/lib/src/ap-field/checkbox/read.vue2.js +1 -1
  246. package/lib/src/ap-field/date/index.vue.js +1 -1
  247. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  248. package/lib/src/ap-field/date-range/read.vue2.js +1 -1
  249. package/lib/src/ap-field/hooks/use-date-timezone.js +1 -1
  250. package/lib/src/ap-field/hooks/use-default-presets.js +1 -1
  251. package/lib/src/ap-field/hooks/use-options.js +1 -1
  252. package/lib/src/ap-field/number/helper.js +1 -1
  253. package/lib/src/ap-field/number/index.vue.js +1 -1
  254. package/lib/src/ap-field/radio/index.vue.js +1 -1
  255. package/lib/src/ap-field/radio/read.vue2.js +1 -1
  256. package/lib/src/ap-field/rate/index.vue.js +1 -1
  257. package/lib/src/ap-field/segmented/index.vue.js +1 -1
  258. package/lib/src/ap-field/select/index.vue.js +1 -1
  259. package/lib/src/ap-field/select/read.vue2.js +1 -1
  260. package/lib/src/ap-field/select/use-select-options.js +1 -1
  261. package/lib/src/ap-field/slider/index.vue.js +1 -1
  262. package/lib/src/ap-field/switch/index.vue.js +1 -1
  263. package/lib/src/ap-field/text/index.vue2.js +1 -1
  264. package/lib/src/ap-field/text/password.vue.js +1 -1
  265. package/lib/src/ap-field/text-area/index.vue.js +1 -1
  266. package/lib/src/ap-field/tree-select/index.vue.js +1 -1
  267. package/lib/src/ap-field/tree-select/read.vue2.js +1 -1
  268. package/lib/src/ap-field/tree-select/use-request.js +1 -1
  269. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  270. package/lib/src/ap-form/drawer-form/index.vue.d.ts +3 -3
  271. package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
  272. package/lib/src/ap-form/hooks/use-watch.js +1 -1
  273. package/lib/src/ap-form/item/index.vue.js +1 -1
  274. package/lib/src/ap-form/item-group/index.vue.js +1 -1
  275. package/lib/src/ap-form/items/date/index.vue.js +1 -1
  276. package/lib/src/ap-form/items/date-range/index.vue.js +1 -1
  277. package/lib/src/ap-form/items/number/index.vue.d.ts +3 -3
  278. package/lib/src/ap-form/items/number/index.vue.js +1 -1
  279. package/lib/src/ap-form/items/radio/index.vue.js +1 -1
  280. package/lib/src/ap-form/items/select/index.vue.d.ts +7 -7
  281. package/lib/src/ap-form/items/select/index.vue.js +1 -1
  282. package/lib/src/ap-form/items/text/index.vue2.js +1 -1
  283. package/lib/src/ap-form/items/text/password.vue.js +1 -1
  284. package/lib/src/ap-form/items/text-area/index.vue.js +1 -1
  285. package/lib/src/ap-form/items/tree-select/index.vue.d.ts +3 -3
  286. package/lib/src/ap-form/items/tree-select/index.vue.js +1 -1
  287. package/lib/src/ap-form/list/index.vue.js +1 -1
  288. package/lib/src/ap-form/modal-form/index.vue.d.ts +3 -3
  289. package/lib/src/ap-form/modal-form/index.vue.js +1 -1
  290. package/lib/src/ap-form/provider/index.vue.js +1 -1
  291. package/lib/src/ap-form/search-form/components/popover-filter.vue2.js +1 -1
  292. package/lib/src/ap-form/search-form/hooks/use-collapse-input-count.js +1 -1
  293. package/lib/src/ap-form/search-form/hooks/use-sorter.js +1 -1
  294. package/lib/src/ap-form/search-form/index.vue.d.ts +3 -3
  295. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  296. package/lib/src/ap-form/search-form/utils.js +1 -1
  297. package/lib/src/ap-form/set/index.vue.js +1 -1
  298. package/lib/src/ap-form/utils/get.js +1 -1
  299. package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
  300. package/lib/src/ap-grid/editable/index.vue.js +1 -1
  301. package/lib/src/ap-grid/hooks/use-editable-columns.js +1 -1
  302. package/lib/src/ap-grid/hooks/use-inner-params.js +1 -1
  303. package/lib/src/ap-grid/hooks/use-row-selection.js +1 -1
  304. package/lib/src/ap-grid/index.vue.js +1 -1
  305. package/lib/src/ap-grid/utils/col.js +1 -1
  306. package/lib/src/ap-grid/utils/editable.js +1 -1
  307. package/lib/src/ap-grid/utils/renderer.js +1 -1
  308. package/lib/src/ap-grid/utils/table.js +1 -1
  309. package/lib/src/ap-grid/utils/to-tree-array.js +1 -1
  310. package/lib/src/ap-list/hooks/use-offline-list.js +1 -1
  311. package/lib/src/ap-list/index.vue.js +1 -1
  312. package/lib/src/ap-modal/utils/createModal.js +1 -1
  313. package/lib/src/ap-modal/utils/createModalStream.js +1 -1
  314. package/lib/src/ap-modal/utils/methods.js +1 -1
  315. package/lib/src/ap-modal/utils/util.js +1 -1
  316. package/lib/src/ap-pro-card/components/card/index.vue2.js +1 -1
  317. package/lib/src/ap-pro-card/components/statistic/index.vue2.js +1 -1
  318. package/lib/src/ap-pro-card/components/statistic-card/index.vue.d.ts +3 -1
  319. package/lib/src/ap-pro-card/components/statistic-card/index.vue2.js +1 -1
  320. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  321. package/lib/src/ap-table/components/paragraph-ellipsis/index.vue2.js +1 -1
  322. package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
  323. package/lib/src/ap-table/components/setting/select-group/index.vue2.js +1 -1
  324. package/lib/src/ap-table/components/setting/sortable/index.vue2.js +1 -1
  325. package/lib/src/ap-table/components/setting/sortable/item.vue2.js +1 -1
  326. package/lib/src/ap-table/components/setting/sorter/index.vue2.js +1 -1
  327. package/lib/src/ap-table/components/setting/tree-select/index.vue2.js +1 -1
  328. package/lib/src/ap-table/components/setting/utils.js +1 -1
  329. package/lib/src/ap-table/constants.d.ts +6 -6
  330. package/lib/src/ap-table/hooks/use-sticky-scroll.js +1 -1
  331. package/lib/src/ap-table/hooks/use-table-column-state.js +1 -1
  332. package/lib/src/ap-table/hooks/use-table-content-height.js +1 -1
  333. package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
  334. package/lib/src/ap-table/hooks/use-table-paging.js +1 -1
  335. package/lib/src/ap-table/utils.js +1 -1
  336. package/lib/src/ap-upload/apUpload.vue.js +1 -1
  337. package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -1
  338. package/lib/src/ap-upload/components/Picture.vue2.js +1 -1
  339. package/lib/src/ap-upload/components/SingleFile.vue2.js +1 -1
  340. package/lib/src/ap-upload/hooks/useOss.js +1 -1
  341. package/lib/src/ap-upload/utils/accept.js +1 -1
  342. package/lib/src/ap-upload/utils/returnData.js +1 -1
  343. package/lib/src/business/ap-appendix/ap-appendix.vue2.js +1 -1
  344. package/lib/src/business/ap-appendix/utils/index.js +1 -1
  345. package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
  346. package/lib/src/business/ap-batch-action/ApBatchAction.vue2.js +1 -1
  347. package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
  348. package/lib/src/business/ap-batch-action-group/MenuItemGroup.vue2.js +1 -1
  349. package/lib/src/business/ap-batch-action-group/index.d.ts +6 -0
  350. package/lib/src/business/ap-button-group/ApButtonGroup.vue2.js +1 -1
  351. package/lib/src/business/ap-card/ApCard.vue2.js +1 -1
  352. package/lib/src/business/ap-copy/ApCopy.js +1 -1
  353. package/lib/src/business/ap-draggable-grid/ApDraggableGrid.vue2.js +1 -1
  354. package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
  355. package/lib/src/business/ap-export-group/convertExportField.js +1 -1
  356. package/lib/src/business/ap-export-group/handleExportDownload.js +1 -1
  357. package/lib/src/business/ap-image/ApImage.vue2.js +1 -1
  358. package/lib/src/business/ap-image/hooks/useOss.js +1 -1
  359. package/lib/src/business/ap-input-radio/ApInputRadio.vue2.js +1 -1
  360. package/lib/src/business/ap-keep-alive/hook.js +1 -1
  361. package/lib/src/business/ap-keep-alive/keep-alive.js +1 -1
  362. package/lib/src/business/ap-keep-alive/keeper/ap-form-keeper.js +1 -1
  363. package/lib/src/business/ap-keep-alive/keeper/ap-grid-keeper.js +1 -1
  364. package/lib/src/business/ap-keep-alive/keeper/ap-list-keeper.js +1 -1
  365. package/lib/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.js +1 -1
  366. package/lib/src/business/ap-keep-alive/keeper/ap-search-form-keeper.js +1 -1
  367. package/lib/src/business/ap-keep-alive/keeper/ap-table-keeper.js +1 -1
  368. package/lib/src/business/ap-keep-alive/keeper/ap-view-keeper.js +1 -1
  369. package/lib/src/business/ap-keep-alive/keeper/edit-grid-keeper.js +1 -1
  370. package/lib/src/business/ap-keep-alive/keeper/edit-table-keeper.js +1 -1
  371. package/lib/src/business/ap-keep-alive/keeper/step-keeper.js +1 -1
  372. package/lib/src/business/ap-keep-alive/keeper/tab-keeper.js +1 -1
  373. package/lib/src/business/ap-keep-alive/utils.js +1 -1
  374. package/lib/src/business/ap-ladder/ApLadder.js +1 -1
  375. package/lib/src/business/ap-radio-group/ap-radio-group.vue2.js +1 -1
  376. package/lib/src/business/ap-select-layout/select-layout.vue2.js +1 -1
  377. package/lib/src/business/ap-size-input/ApSizeInput.js +1 -1
  378. package/lib/src/business/ap-summary/ap-summary.vue2.js +1 -1
  379. package/lib/src/business/ap-summary/utils.js +1 -1
  380. package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.js +1 -1
  381. package/lib/src/business/ap-table-modal/hooks/use-table-select-modal.js +1 -1
  382. package/lib/src/business/ap-table-modal/table-layout/index.vue2.js +1 -1
  383. package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
  384. package/lib/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.js +1 -1
  385. package/lib/src/business/ap-upload-file/hook/useOss.js +1 -1
  386. package/lib/src/business/ap-upload-file/hook/useProps.js +1 -1
  387. package/lib/src/business/ap-upload-file/utils/accept.js +1 -1
  388. package/lib/src/business/ap-upload-file/utils/fileList.js +1 -1
  389. package/lib/src/business/ap-upload-file/utils/upload.js +1 -1
  390. package/lib/src/business/ap-value-select-card/index.vue2.js +1 -1
  391. package/lib/src/business/ap-value-select-card/utils.js +1 -1
  392. package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
  393. package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +2 -2
  394. package/lib/src/business/ap-view/components/main-button-content.vue2.js +1 -1
  395. package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +2 -2
  396. package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -1
  397. package/lib/src/business/batch-input-group/form-item.vue.js +1 -1
  398. package/lib/src/business/batch-input-group/index.vue.js +2 -2
  399. package/lib/src/business/batch-input-group/popover-input/index.vue2.js +2 -2
  400. package/lib/src/business/hooks/useGridRefresh.js +1 -1
  401. package/lib/src/business/hooks/useKeepAliveFlag.js +1 -1
  402. package/lib/src/business/hooks/usePageListAgGrid.js +1 -1
  403. package/lib/src/business/hooks/usePageListApGrid.js +1 -1
  404. package/lib/src/business/hooks/usePageListApTable.js +1 -1
  405. package/lib/src/business/hooks/useTableRefresh.js +1 -1
  406. package/lib/src/check-card/index.vue2.js +1 -1
  407. package/lib/src/config-provider/config-provider.js +1 -1
  408. package/lib/src/config-provider/hooks/use-global-config.js +1 -1
  409. package/lib/src/config-provider/hooks/use-locale.js +1 -1
  410. package/lib/src/editable-table/form-item.vue.js +1 -1
  411. package/lib/src/editable-table/hooks/use-get-columns.js +1 -1
  412. package/lib/src/editable-table/index.vue.js +1 -1
  413. package/lib/src/editable-table/utils.js +1 -1
  414. package/lib/src/hooks/useControllableValue.js +1 -1
  415. package/lib/src/hooks/useResize.js +1 -1
  416. package/lib/src/mask/index.vue.js +1 -1
  417. package/lib/src/resize-observer/index.vue.js +1 -1
  418. package/lib/src/scroll-bar/index.vue.js +1 -1
  419. package/lib/src/scroll-bar/internal.vue.js +1 -1
  420. package/lib/src/scroll-view/hooks/use-scroll-wrapper.js +1 -1
  421. package/lib/src/scroll-view/index.vue.js +1 -1
  422. package/lib/src/splitter/Splitter.vue2.js +1 -1
  423. package/lib/src/splitter/hooks/useItems.js +1 -1
  424. package/lib/src/splitter/hooks/useResize.js +1 -1
  425. package/lib/src/splitter/hooks/useSizes.js +1 -1
  426. package/lib/src/text/index.vue.js +1 -1
  427. package/lib/src/utils/config-provider-preset.js +1 -1
  428. package/lib/src/utils/copy.js +1 -1
  429. package/lib/src/utils/index.js +1 -1
  430. package/lib/src/version.d.ts +1 -1
  431. package/lib/src/version.js +1 -1
  432. package/lib/src/work-order-modal/createWorkOrder.js +1 -1
  433. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +2 -2
  434. package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
  435. package/package.json +7 -7
  436. package/theme/ap-draggable-grid/ap-draggable-grid.css +7 -3
  437. package/theme/ap-draggable-grid/ap-draggable-grid.less +5 -3
  438. package/theme/index.css +7 -3
@@ -1,62 +1,59 @@
1
- import { defineComponent as x, toRaw as f, createVNode as l } from "vue";
2
- import { ApSizeInputProps as g } from "./constans.mjs";
1
+ import { defineComponent as o, toRaw as x, createVNode as n } from "vue";
2
+ import { ApSizeInputProps as f } from "./constans.mjs";
3
3
  import "../../ap-field/number/index.vue2.mjs";
4
- import { Form as r, Space as I } from "@aplus-frontend/antdv";
4
+ import { Form as g, Space as r } from "@aplus-frontend/antdv";
5
5
  import "../../config-provider/index.mjs";
6
- import { useNamespace as C } from "../../config-provider/hooks/use-namespace.mjs";
7
- import { useLocale as v } from "../../config-provider/hooks/use-locale.mjs";
8
- import d from "../../ap-field/number/index.vue.mjs";
9
- const V = /* @__PURE__ */ x({
6
+ import { useNamespace as I } from "../../config-provider/hooks/use-namespace.mjs";
7
+ import { useLocale as C } from "../../config-provider/hooks/use-locale.mjs";
8
+ import m from "../../ap-field/number/index.vue.mjs";
9
+ const N = /* @__PURE__ */ o({
10
10
  name: "ApSizeInput",
11
- props: g(),
11
+ props: f(),
12
12
  setup(e, {
13
- emit: u
13
+ emit: c
14
14
  }) {
15
15
  const {
16
- b: h
17
- } = C("ap-size-input"), {
18
- t: m
19
- } = v(), o = r.useInjectFormItemContext(), c = (t, i) => {
20
- const a = e.value;
21
- a[t] = i, u("update:value", a), u("SizeInputChange", f(a)), o.onFieldChange();
16
+ b: d
17
+ } = I("ap-size-input"), {
18
+ t
19
+ } = C(), u = g.useInjectFormItemContext(), i = (a, h) => {
20
+ const l = e.value;
21
+ l[a] = h, c("update:value", l), c("SizeInputChange", x(l)), u.onFieldChange();
22
22
  };
23
- return () => l(I, {
24
- class: [h()]
23
+ return () => n(r, {
24
+ class: [d()]
25
25
  }, {
26
- default: () => {
27
- var t, i, a;
28
- return [l(d, {
29
- mode: e.editable ? "edit" : "read",
30
- value: (t = e.value) == null ? void 0 : t[0],
31
- placeholder: e.placeholder && e.placeholder.length >= 3 ? e.placeholder[0] : m("ap.apSizeInput.length"),
32
- precision: e.precision ? e.precision : 2,
33
- min: e.min ? e.min : 1,
34
- max: e.max ? e.max : 999.99,
35
- onChange: (n) => c(0, n),
36
- step: e.step ? e.step : 1
37
- }, null), e.perfix, l(d, {
38
- mode: e.editable ? "edit" : "read",
39
- value: (i = e.value) == null ? void 0 : i[1],
40
- placeholder: e.placeholder && e.placeholder.length >= 3 ? e.placeholder[1] : m("ap.apSizeInput.width"),
41
- precision: e.precision ? e.precision : 2,
42
- min: e.min ? e.min : 1,
43
- max: e.max ? e.max : 999.99,
44
- onChange: (n) => c(1, n),
45
- step: e.step ? e.step : 1
46
- }, null), e.perfix, l(d, {
47
- mode: e.editable ? "edit" : "read",
48
- value: (a = e.value) == null ? void 0 : a[2],
49
- placeholder: e.placeholder && e.placeholder.length >= 3 ? e.placeholder[2] : m("ap.apSizeInput.height"),
50
- precision: e.precision ? e.precision : 2,
51
- min: e.min ? e.min : 1,
52
- max: e.max ? e.max : 999.99,
53
- onChange: (n) => c(2, n),
54
- step: e.step ? e.step : 1
55
- }, null)];
56
- }
26
+ default: () => [n(m, {
27
+ mode: e.editable ? "edit" : "read",
28
+ value: e.value?.[0],
29
+ placeholder: e.placeholder && e.placeholder.length >= 3 ? e.placeholder[0] : t("ap.apSizeInput.length"),
30
+ precision: e.precision ? e.precision : 2,
31
+ min: e.min ? e.min : 1,
32
+ max: e.max ? e.max : 999.99,
33
+ onChange: (a) => i(0, a),
34
+ step: e.step ? e.step : 1
35
+ }, null), e.perfix, n(m, {
36
+ mode: e.editable ? "edit" : "read",
37
+ value: e.value?.[1],
38
+ placeholder: e.placeholder && e.placeholder.length >= 3 ? e.placeholder[1] : t("ap.apSizeInput.width"),
39
+ precision: e.precision ? e.precision : 2,
40
+ min: e.min ? e.min : 1,
41
+ max: e.max ? e.max : 999.99,
42
+ onChange: (a) => i(1, a),
43
+ step: e.step ? e.step : 1
44
+ }, null), e.perfix, n(m, {
45
+ mode: e.editable ? "edit" : "read",
46
+ value: e.value?.[2],
47
+ placeholder: e.placeholder && e.placeholder.length >= 3 ? e.placeholder[2] : t("ap.apSizeInput.height"),
48
+ precision: e.precision ? e.precision : 2,
49
+ min: e.min ? e.min : 1,
50
+ max: e.max ? e.max : 999.99,
51
+ onChange: (a) => i(2, a),
52
+ step: e.step ? e.step : 1
53
+ }, null)]
57
54
  });
58
55
  }
59
56
  });
60
57
  export {
61
- V as default
58
+ N as default
62
59
  };
@@ -1,12 +1,12 @@
1
- import { defineComponent as N, computed as p, createVNode as w, Fragment as y, createBlock as l, openBlock as m, unref as r, normalizeClass as f, withCtx as x, createElementBlock as z, renderList as B, normalizeStyle as R, resolveDynamicComponent as A } from "vue";
2
- import { isNil as D, get as i } from "lodash-unified";
3
- import { TableSummaryRow as F, TableSummaryCell as V } from "@aplus-frontend/antdv";
4
- import { flattenColumns as E, formatDataIndex as c } from "./utils.mjs";
1
+ import { defineComponent as I, computed as d, createVNode as N, Fragment as p, createBlock as m, openBlock as l, unref as s, normalizeClass as f, withCtx as y, createElementBlock as w, renderList as z, normalizeStyle as B, resolveDynamicComponent as R } from "vue";
2
+ import { isNil as A, get as i } from "lodash-unified";
3
+ import { TableSummaryRow as D, TableSummaryCell as F } from "@aplus-frontend/antdv";
4
+ import { flattenColumns as V, formatDataIndex as u } from "./utils.mjs";
5
5
  import "../../config-provider/index.mjs";
6
- import { isNumeric as P, toThousand as $, toFixed as j } from "@aplus-frontend/utils";
7
- import { useLocale as q } from "../../config-provider/hooks/use-locale.mjs";
8
- import { useNamespace as G } from "../../config-provider/hooks/use-namespace.mjs";
9
- const X = /* @__PURE__ */ N({
6
+ import { isNumeric as E, toThousand as P, toFixed as $ } from "@aplus-frontend/utils";
7
+ import { useLocale as j } from "../../config-provider/hooks/use-locale.mjs";
8
+ import { useNamespace as q } from "../../config-provider/hooks/use-namespace.mjs";
9
+ const X = /* @__PURE__ */ I({
10
10
  name: "ApSummary",
11
11
  __name: "ap-summary",
12
12
  props: {
@@ -21,32 +21,31 @@ const X = /* @__PURE__ */ N({
21
21
  default: "middle"
22
22
  }
23
23
  },
24
- setup(k) {
25
- const n = k, {
26
- t: h
27
- } = q(), T = p(() => n.summaryTitle ?? h("ap.apSummary.total")), S = (a) => a === 0, C = (a, o) => {
28
- var s;
29
- if (!P(a) || o.valueType !== "number")
30
- return a;
31
- const e = (s = o.fieldProps) == null ? void 0 : s.field, t = (e == null ? void 0 : e.precision) || 0;
32
- return (D(e == null ? void 0 : e.thousands) ? !0 : e == null ? void 0 : e.thousands) ? $(a, t) : j(a, t);
33
- }, _ = p(() => {
34
- let a = [];
35
- n.hasSelect && a.push({
24
+ setup(x) {
25
+ const n = x, {
26
+ t: k
27
+ } = j(), h = d(() => n.summaryTitle ?? k("ap.apSummary.total")), T = (e) => e === 0, S = (e, r) => {
28
+ if (!E(e) || r.valueType !== "number")
29
+ return e;
30
+ const a = r.fieldProps?.field, t = a?.precision || 0;
31
+ return (A(a?.thousands) ? !0 : a?.thousands) ? P(e, t) : $(e, t);
32
+ }, C = d(() => {
33
+ let e = [];
34
+ n.hasSelect && e.push({
36
35
  key: "select",
37
36
  rowSpan: 1,
38
37
  align: "left",
39
38
  value: ""
40
39
  });
41
- const e = E(n.columns).map((t, d) => {
42
- let s;
43
- const L = i(n.data, c(t.dataIndex || t.key));
44
- if (S(d))
45
- s = T.value;
46
- else if (L && (t.customRender || t.renderText)) {
47
- const I = i(n.data, c(t.dataIndex || t.key)), u = t.customRender || t.renderText;
48
- s = u == null ? void 0 : u({
49
- value: I,
40
+ const a = V(n.columns).map((t, c) => {
41
+ let o;
42
+ const b = i(n.data, u(t.dataIndex || t.key));
43
+ if (T(c))
44
+ o = h.value;
45
+ else if (b && (t.customRender || t.renderText)) {
46
+ const L = i(n.data, u(t.dataIndex || t.key));
47
+ o = (t.customRender || t.renderText)?.({
48
+ value: L,
50
49
  record: n.data,
51
50
  text: void 0,
52
51
  index: 0,
@@ -54,32 +53,32 @@ const X = /* @__PURE__ */ N({
54
53
  column: {}
55
54
  });
56
55
  } else
57
- s = C(i(n.data, c(t.dataIndex || t.key)), t);
56
+ o = S(i(n.data, u(t.dataIndex || t.key)), t);
58
57
  return {
59
58
  key: t.key,
60
59
  rowSpan: 1,
61
60
  align: t.align,
62
- value: w(y, null, [s])
61
+ value: N(p, null, [o])
63
62
  };
64
63
  });
65
- return a.concat(e);
64
+ return e.concat(a);
66
65
  }), {
67
- b: g,
68
- e: v,
69
- em: b
70
- } = G("ap-summary");
71
- return (a, o) => (m(), l(r(F), {
72
- class: f(r(g)())
66
+ b: _,
67
+ e: g,
68
+ em: v
69
+ } = q("ap-summary");
70
+ return (e, r) => (l(), m(s(D), {
71
+ class: f(s(_)())
73
72
  }, {
74
- default: x(() => [(m(!0), z(y, null, B(_.value, (e, t) => (m(), l(r(V), {
75
- key: e.key,
76
- class: f(`${n.size === "small" ? r(b)("item", "small") : r(v)("item")}`),
73
+ default: y(() => [(l(!0), w(p, null, z(C.value, (a, t) => (l(), m(s(F), {
74
+ key: a.key,
75
+ class: f(`${n.size === "small" ? s(v)("item", "small") : s(g)("item")}`),
77
76
  index: t,
78
- style: R({
79
- textAlign: e.align
77
+ style: B({
78
+ textAlign: a.align
80
79
  })
81
80
  }, {
82
- default: x(() => [(m(), l(A(e.value)))]),
81
+ default: y(() => [(l(), m(R(a.value)))]),
83
82
  _: 2
84
83
  }, 1032, ["class", "index", "style"]))), 128))]),
85
84
  _: 1
@@ -1,36 +1,30 @@
1
- import { flatten as k, uniqBy as j, isNil as I, get as y, set as R } from "lodash-unified";
2
- import { toThousand as V, toFixed as S, addNumber as T } from "@aplus-frontend/utils";
3
- const b = (t) => {
4
- var e, d;
5
- return t != null && t.children && ((e = t == null ? void 0 : t.children) == null ? void 0 : e.length) > 0 ? k((d = t.children) == null ? void 0 : d.map((n) => b(n))) : [t];
6
- }, q = (t) => k(
7
- t == null ? void 0 : t.map((e) => b(e))
8
- ), c = (t) => Object.prototype.toString.call(t) === "[object Array]" ? t.map((e) => String(e)).join(".") : t ?? "", D = (t, e, d) => d ? V(t, e) : S(t, e);
9
- function E(t) {
10
- var h;
11
- const { records: e, columns: d, configList: n, exclude: i } = t;
12
- if (!e || (e == null ? void 0 : e.length) === 0)
1
+ import { flatten as f, uniqBy as k, isNil as b, get as s, set as x } from "lodash-unified";
2
+ import { toThousand as C, toFixed as L, addNumber as N } from "@aplus-frontend/utils";
3
+ const m = (t) => t?.children && t?.children?.length > 0 ? f(t.children?.map((e) => m(e))) : [t], j = (t) => f(
4
+ t?.map((e) => m(e))
5
+ ), l = (t) => Object.prototype.toString.call(t) === "[object Array]" ? t.map((e) => String(e)).join(".") : t ?? "", T = (t, e, c) => c ? C(t, e) : L(t, e);
6
+ function q(t) {
7
+ const { records: e, columns: c, configList: u, exclude: a } = t;
8
+ if (!e || e?.length === 0)
13
9
  return {};
14
- const f = q(d);
15
- let a = (h = f == null ? void 0 : f.filter((r) => r.valueType === "number")) == null ? void 0 : h.map((r) => ({
16
- key: r.key || "",
17
- dataIndex: r.dataIndex
10
+ let r = j(c)?.filter((n) => n.valueType === "number")?.map((n) => ({
11
+ key: n.key || "",
12
+ dataIndex: n.dataIndex
18
13
  }));
19
- n && (n == null ? void 0 : n.length) > 0 && (a = j(a == null ? void 0 : a.concat(n), "key")), i && i.length > 0 && (a = a.filter(
20
- (r) => !i.includes(r.key)
14
+ u && u?.length > 0 && (r = k(r?.concat(u), "key")), a && a.length > 0 && (r = r.filter(
15
+ (n) => !a.includes(n.key)
21
16
  ));
22
- const x = {};
23
- return e == null ? void 0 : e.reduce((r, p) => (a.forEach((o) => {
24
- var s;
25
- if (!I(y(p, c(o.dataIndex || o.key)))) {
26
- const u = o.dataIndex || o.key, g = y(r, c(u)) || 0, l = y(p, c(u)) || 0, N = (s = T(g, l)) == null ? void 0 : s.toNumber();
27
- R(r, u, +N);
17
+ const y = {};
18
+ return e?.reduce((n, d) => (r.forEach((o) => {
19
+ if (!b(s(d, l(o.dataIndex || o.key)))) {
20
+ const i = o.dataIndex || o.key, g = s(n, l(i)) || 0, h = s(d, l(i)) || 0, p = N(g, h)?.toNumber();
21
+ x(n, i, +p);
28
22
  }
29
- }), r), x);
23
+ }), n), y);
30
24
  }
31
25
  export {
32
- E as computedRecords,
33
- q as flattenColumns,
34
- c as formatDataIndex,
35
- D as formatNumber
26
+ q as computedRecords,
27
+ j as flattenColumns,
28
+ l as formatDataIndex,
29
+ T as formatNumber
36
30
  };
@@ -1,59 +1,48 @@
1
- import { ref as T, defineComponent as g, h as r, render as d, onUnmounted as C } from "vue";
1
+ import { ref as b, defineComponent as T, h as a, render as s, onUnmounted as g } from "vue";
2
2
  import "../table-modal.vue.mjs";
3
3
  import "../../../config-provider/index.mjs";
4
- import { omit as y } from "lodash-unified";
5
- import { ConfigProvider as A, globalConfigCached as h } from "../../../config-provider/config-provider.mjs";
6
- import I from "../table-modal.vue2.mjs";
7
- function x(l) {
8
- let n = !0;
9
- const u = document.body, o = T(), { destroyOnUnmounted: i = !0 } = l, a = document.createElement("div"), m = () => {
10
- const e = g({
4
+ import { omit as C } from "lodash-unified";
5
+ import { ConfigProvider as y, globalConfigCached as A } from "../../../config-provider/config-provider.mjs";
6
+ import h from "../table-modal.vue2.mjs";
7
+ function _(r) {
8
+ let t = !0;
9
+ const c = document.body, e = b(), { destroyOnUnmounted: d = !0 } = r, o = document.createElement("div"), u = () => {
10
+ const n = T({
11
11
  setup() {
12
- return () => r(
13
- A,
14
- { ...h.value },
15
- r(I, {
16
- ...y(l, "destroyOnUnmounted"),
17
- ref: o
12
+ return () => a(
13
+ y,
14
+ { ...A.value },
15
+ a(h, {
16
+ ...C(r, "destroyOnUnmounted"),
17
+ ref: e
18
18
  })
19
19
  );
20
20
  }
21
21
  });
22
- u.appendChild(a), d(r(e), a), n = !1;
23
- }, s = () => {
24
- var e;
25
- (e = o.value) == null || e.close(), n || setTimeout(() => {
26
- var t;
27
- d(null, a), (t = a.parentElement) == null || t.removeChild(a), n = !0;
22
+ c.appendChild(o), s(a(n), o), t = !1;
23
+ }, l = () => {
24
+ e.value?.close(), t || setTimeout(() => {
25
+ s(null, o), o.parentElement?.removeChild(o), t = !0;
28
26
  }, 400);
29
- }, p = async (e = [], t = {}) => {
30
- var c;
31
- return o.value || m(), (c = o.value) == null ? void 0 : c.open(e, t);
27
+ }, i = async (n = [], v = {}) => (e.value || u(), e.value?.open(n, v)), m = () => {
28
+ t || e.value?.close();
29
+ }, p = () => {
30
+ e.value?.getApTableInstance()?.submit();
32
31
  }, f = () => {
33
- var e;
34
- n || (e = o.value) == null || e.close();
35
- }, v = () => {
36
- var e, t;
37
- (t = (e = o.value) == null ? void 0 : e.getApTableInstance()) == null || t.submit();
38
- }, b = () => {
39
- var e, t;
40
- (t = (e = o.value) == null ? void 0 : e.getApTableInstance()) == null || t.reset();
32
+ e.value?.getApTableInstance()?.reset();
41
33
  };
42
- return C(() => {
43
- i && s();
34
+ return g(() => {
35
+ d && l();
44
36
  }), {
45
- openModal: p,
46
- closeModal: f,
47
- destroy: s,
48
- reloadApTableData: v,
49
- resetApTableData: b,
50
- getApTableInstance: () => {
51
- var e;
52
- return (e = o.value) == null ? void 0 : e.getApTableInstance();
53
- },
54
- isDestroyed: n
37
+ openModal: i,
38
+ closeModal: m,
39
+ destroy: l,
40
+ reloadApTableData: p,
41
+ resetApTableData: f,
42
+ getApTableInstance: () => e.value?.getApTableInstance(),
43
+ isDestroyed: t
55
44
  };
56
45
  }
57
46
  export {
58
- x as useCreateTableModal
47
+ _ as useCreateTableModal
59
48
  };
@@ -1,39 +1,39 @@
1
- import { onUnmounted as f } from "vue";
2
- import { useCreateTableModal as i } from "./use-create-table-modal.mjs";
3
- import { AsyncOpenResultError as d } from "../interface.mjs";
4
- const p = (t) => t.id;
5
- function K(t) {
6
- const { finishCallback: n, getRowKey: e, ...u } = t, { destroy: a, openModal: y, closeModal: c, ...m } = i({
7
- ...u,
1
+ import { onUnmounted as m } from "vue";
2
+ import { useCreateTableModal as f } from "./use-create-table-modal.mjs";
3
+ import { AsyncOpenResultError as w } from "../interface.mjs";
4
+ const a = (e) => e.id;
5
+ function b(e) {
6
+ const { finishCallback: c, getRowKey: r, ...l } = e, { destroy: n, openModal: i, closeModal: p, ...u } = f({
7
+ ...l,
8
8
  destroyOnUnmounted: !1,
9
- getRowKey: e || p
10
- }), l = async (o = [], w = {}) => {
9
+ getRowKey: r || a
10
+ }), y = async (t = [], d = {}) => {
11
11
  try {
12
- const r = await y(o, w) || {
12
+ const o = await i(t, d) || {
13
13
  keys: [],
14
14
  rows: []
15
15
  };
16
- return n == null || n(r), r;
17
- } catch (r) {
18
- if (r === d.ModalCancel)
16
+ return c?.(o), o;
17
+ } catch (o) {
18
+ if (o === w.ModalCancel)
19
19
  return {
20
- keys: o == null ? void 0 : o.map(e || p),
21
- rows: o
20
+ keys: t?.map(r || a),
21
+ rows: t
22
22
  };
23
- throw r;
23
+ throw o;
24
24
  }
25
25
  }, s = () => {
26
- c();
26
+ p();
27
27
  };
28
- return f(() => {
29
- s(), a();
28
+ return m(() => {
29
+ s(), n();
30
30
  }), {
31
- open: l,
32
- destroy: a,
31
+ open: y,
32
+ destroy: n,
33
33
  close: s,
34
- ...m
34
+ ...u
35
35
  };
36
36
  }
37
37
  export {
38
- K as useTableSelectModal
38
+ b as useTableSelectModal
39
39
  };
@@ -1,10 +1,10 @@
1
- import { defineComponent as v, createElementBlock as o, openBlock as l, normalizeClass as a, unref as t, renderSlot as h, Fragment as n, createCommentVNode as b, createElementVNode as m, createVNode as p, withCtx as i, createBlock as s, resolveDynamicComponent as c, h as S, normalizeStyle as B, createTextVNode as $, toDisplayString as M, renderList as A } from "vue";
1
+ import { defineComponent as N, createElementBlock as o, openBlock as l, normalizeClass as a, unref as t, renderSlot as g, Fragment as n, createCommentVNode as h, createElementVNode as m, createVNode as p, withCtx as i, createBlock as s, resolveDynamicComponent as c, h as b, normalizeStyle as v, createTextVNode as B, toDisplayString as $, renderList as M } from "vue";
2
2
  import "../../../config-provider/index.mjs";
3
- import { ApTitle as T } from "../../ap-title/index.mjs";
4
- import { Button as V, Empty as k } from "@aplus-frontend/antdv";
5
- import { useLocale as D } from "../../../config-provider/hooks/use-locale.mjs";
6
- import { useNamespace as j } from "../../../config-provider/hooks/use-namespace.mjs";
7
- const q = /* @__PURE__ */ v({
3
+ import { ApTitle as S } from "../../ap-title/index.mjs";
4
+ import { Button as A, Empty as T } from "@aplus-frontend/antdv";
5
+ import { useLocale as V } from "../../../config-provider/hooks/use-locale.mjs";
6
+ import { useNamespace as D } from "../../../config-provider/hooks/use-namespace.mjs";
7
+ const F = /* @__PURE__ */ N({
8
8
  __name: "index",
9
9
  props: {
10
10
  leftTitle: { type: [String, Object, Number, Boolean, null, Array], default: "" },
@@ -14,13 +14,13 @@ const q = /* @__PURE__ */ v({
14
14
  selectedList: { default: () => [] }
15
15
  },
16
16
  emits: ["clear", "deleteItem"],
17
- setup(I, { emit: C }) {
18
- const { t: d } = D(), u = I, y = C, E = () => {
17
+ setup(k, { emit: I }) {
18
+ const { t: d } = V(), u = k, y = I, C = () => {
19
19
  y("clear");
20
- }, L = (e) => {
20
+ }, E = (e) => {
21
21
  y("deleteItem", e);
22
- }, N = (e) => typeof u.rightTitle == "function" ? u.rightTitle(e) : `${d("ap.apTableModal.selected")} (${e})`, { m: r } = j("ap-table-modal");
23
- return (e, w) => (l(), o("div", {
22
+ }, L = (e) => typeof u.rightTitle == "function" ? u.rightTitle(e) : `${d("ap.apTableModal.selected")} (${e})`, { m: r } = D("ap-table-modal");
23
+ return (e, j) => (l(), o("div", {
24
24
  class: a([
25
25
  e.renderSelectedItem ? t(r)("table-layout") : "",
26
26
  { "complex-layout": !!e.renderSelectedItem }
@@ -31,36 +31,36 @@ const q = /* @__PURE__ */ v({
31
31
  key: 0,
32
32
  class: a(t(r)("table-layout-left"))
33
33
  }, [
34
- p(t(T), { style: { "margin-bottom": "16px" } }, {
34
+ p(t(S), { style: { "margin-bottom": "16px" } }, {
35
35
  prefix: i(() => [
36
- (l(), s(c(S(n, [e.leftTitle]))))
36
+ (l(), s(c(b(n, [e.leftTitle]))))
37
37
  ]),
38
38
  _: 1
39
39
  }),
40
40
  m("div", {
41
41
  class: a(t(r)("table-layout-left-content"))
42
42
  }, [
43
- h(e.$slots, "default")
43
+ g(e.$slots, "default")
44
44
  ], 2)
45
- ], 2)) : b("", !0),
45
+ ], 2)) : h("", !0),
46
46
  m("div", {
47
47
  class: a(t(r)("table-layout-right")),
48
- style: B(e.rightContentStyle)
48
+ style: v(e.rightContentStyle)
49
49
  }, [
50
- p(t(T), {
50
+ p(t(S), {
51
51
  title: `${t(d)("ap.apTableModal.selected")} (${e.selectedList.length})`
52
52
  }, {
53
53
  prefix: i(() => [
54
- (l(), s(c(S(n, [N(e.selectedList.length)]))))
54
+ (l(), s(c(b(n, [L(e.selectedList.length)]))))
55
55
  ]),
56
56
  suffix: i(() => [
57
- p(t(V), {
57
+ p(t(A), {
58
58
  type: "link",
59
59
  style: { padding: "0px", height: "22px", "border-width": "0px" },
60
- onClick: E
60
+ onClick: C
61
61
  }, {
62
62
  default: i(() => [
63
- $(M(t(d)("ap.apTableModal.clear")), 1)
63
+ B($(t(d)("ap.apTableModal.clear")), 1)
64
64
  ]),
65
65
  _: 1
66
66
  })
@@ -70,21 +70,18 @@ const q = /* @__PURE__ */ v({
70
70
  m("div", {
71
71
  class: a(t(r)("table-layout-right-content"))
72
72
  }, [
73
- (l(!0), o(n, null, A(e.selectedList, (f) => {
74
- var g;
75
- return l(), s(c((g = e.renderSelectedItem) == null ? void 0 : g.call(e, f, { deleteItem: L })), { key: f });
76
- }), 128)),
77
- e.selectedList.length === 0 ? (l(), s(t(k), {
73
+ (l(!0), o(n, null, M(e.selectedList, (f) => (l(), s(c(e.renderSelectedItem?.(f, { deleteItem: E })), { key: f }))), 128)),
74
+ e.selectedList.length === 0 ? (l(), s(t(T), {
78
75
  key: 0,
79
- image: t(k).PRESENTED_IMAGE_SIMPLE,
76
+ image: t(T).PRESENTED_IMAGE_SIMPLE,
80
77
  style: { "margin-top": "100px" }
81
- }, null, 8, ["image"])) : b("", !0)
78
+ }, null, 8, ["image"])) : h("", !0)
82
79
  ], 2)
83
80
  ], 6)
84
- ], 64)) : h(e.$slots, "default", { key: 1 })
81
+ ], 64)) : g(e.$slots, "default", { key: 1 })
85
82
  ], 2));
86
83
  }
87
84
  });
88
85
  export {
89
- q as default
86
+ F as default
90
87
  };