@aplus-frontend/ui 0.1.20 → 0.1.22

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 (335) hide show
  1. package/es/index.mjs +176 -170
  2. package/es/src/ap-action/group/index.vue.d.ts +7 -6
  3. package/es/src/ap-action/item/index.vue.d.ts +20 -14
  4. package/es/src/ap-action/item-dropdown/index.vue.d.ts +21 -15
  5. package/es/src/ap-action/item-modal/index.vue.d.ts +20 -14
  6. package/es/src/ap-action/item-popconfirm/index.vue.d.ts +20 -14
  7. package/es/src/ap-custom-column/column-select.vue.mjs +47 -46
  8. package/es/src/ap-custom-column/custom-column.vue.mjs +36 -35
  9. package/es/src/ap-descriptions/ap-descriptions.vue.d.ts +20 -15
  10. package/es/src/ap-descriptions/help-message/index.vue.d.ts +12 -7
  11. package/es/src/ap-download/ap-download.vue.d.ts +17 -12
  12. package/es/src/ap-field/checkbox/index.vue.d.ts +6 -5
  13. package/es/src/ap-field/date/index.vue.d.ts +18 -12
  14. package/es/src/ap-field/date-range/index.vue.d.ts +25 -19
  15. package/es/src/ap-field/number/index.vue.d.ts +459 -12
  16. package/es/src/ap-field/radio/index.vue.d.ts +6 -5
  17. package/es/src/ap-field/rate/index.vue.d.ts +138 -16
  18. package/es/src/ap-field/segmented/index.vue.d.ts +25 -19
  19. package/es/src/ap-field/select/index.vue.d.ts +597 -16
  20. package/es/src/ap-field/select/index.vue.mjs +1 -1
  21. package/es/src/ap-field/slider/index.vue.d.ts +375 -12
  22. package/es/src/ap-field/switch/index.vue.d.ts +16 -11
  23. package/es/src/ap-field/text/index.vue.d.ts +19 -13
  24. package/es/src/ap-field/text/password.vue.d.ts +19 -13
  25. package/es/src/ap-field/text-area/index.vue.d.ts +7 -6
  26. package/es/src/ap-field/text-area/index.vue.mjs +1 -1
  27. package/es/src/ap-form/ap-form-item-group/index.vue.d.ts +19 -14
  28. package/es/src/ap-form/ap-form-item.vue.d.ts +1008 -12
  29. package/es/src/ap-form/ap-form-item.vue.mjs +47 -44
  30. package/es/src/ap-form/ap-form-list.vue.d.ts +12 -7
  31. package/es/src/ap-form/ap-form.vue.d.ts +884 -13
  32. package/es/src/ap-form/items/checkbox/index.vue.d.ts +17 -12
  33. package/es/src/ap-form/items/date/index.vue.d.ts +40 -35
  34. package/es/src/ap-form/items/date-range/index.vue.d.ts +39 -34
  35. package/es/src/ap-form/items/number/index.vue.d.ts +583 -27
  36. package/es/src/ap-form/items/radio/index.vue.d.ts +217 -13
  37. package/es/src/ap-form/items/select/index.vue.d.ts +43 -38
  38. package/es/src/ap-form/items/switch/index.vue.d.ts +24 -19
  39. package/es/src/ap-form/items/text/index.vue.d.ts +591 -25
  40. package/es/src/ap-form/items/text/password.vue.d.ts +658 -27
  41. package/es/src/ap-form/items/text-area/index.vue.d.ts +486 -13
  42. package/es/src/ap-form/modal-form/index.vue.d.ts +650 -16
  43. package/es/src/ap-form/search-form/index.vue.d.ts +652 -18
  44. package/es/src/ap-layout/ap-info-layout/ap-info-layout.vue.d.ts +20 -15
  45. package/es/src/ap-list/index.vue.d.ts +5 -5
  46. package/es/src/ap-modal/interface.d.ts +3 -3
  47. package/es/src/ap-modal/utils/createModal.mjs +4 -4
  48. package/es/src/ap-table/ap-table.vue.d.ts +5 -5
  49. package/es/src/ap-table/ap-table.vue.mjs +107 -107
  50. package/es/src/ap-table/components/index/index.vue.d.ts +4 -4
  51. package/es/src/ap-table/constants.d.ts +1071 -1072
  52. package/es/src/ap-table/constants.mjs +11 -9
  53. package/es/src/ap-table/hooks/use-table-paging.d.ts +14 -3
  54. package/es/src/ap-table/hooks/use-table-paging.mjs +115 -103
  55. package/es/src/ap-table/interface.d.ts +13 -4
  56. package/es/src/ap-table/style/ap-table.css +9 -0
  57. package/es/src/ap-table/utils.d.ts +597 -598
  58. package/es/src/ap-table/utils.mjs +44 -39
  59. package/es/src/ap-tag/ap-tag-group.vue.d.ts +18 -11
  60. package/es/src/ap-tag/ap-tag.vue.d.ts +5 -5
  61. package/es/src/base-button/button.vue.d.ts +17 -12
  62. package/es/src/base-button/index.d.ts +30 -30
  63. package/es/src/basic/index.d.ts +6 -6
  64. package/es/src/basic/title.vue.d.ts +16 -11
  65. package/es/src/business/ap-batch-action/ApBatchAction.vue.d.ts +13 -8
  66. package/es/src/business/ap-image/ApImage.vue.d.ts +31 -62
  67. package/es/src/business/ap-image/ApImage.vue2.mjs +30 -26
  68. package/es/src/business/ap-image/interface.d.ts +17 -0
  69. package/es/src/business/ap-input-radio/ApInputRadio.vue.d.ts +4 -4
  70. package/es/src/business/ap-label/ApLabel.d.ts +2 -2
  71. package/es/src/business/ap-select-layout/select-layout.vue.d.ts +6 -6
  72. package/es/src/business/ap-status/ApStatus.vue.d.ts +5 -5
  73. package/es/src/business/ap-status/ApStatusGroup.vue.d.ts +5 -5
  74. package/es/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +7 -0
  75. package/es/src/business/ap-table-modal/hooks/use-create-table-modal.mjs +41 -0
  76. package/es/src/business/ap-table-modal/hooks/use-table-modal.d.ts +7 -0
  77. package/es/src/business/ap-table-modal/hooks/use-table-modal.mjs +29 -0
  78. package/es/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +6 -0
  79. package/es/src/business/ap-table-modal/hooks/use-table-select-modal.mjs +28 -0
  80. package/es/src/business/ap-table-modal/index.d.ts +538 -0
  81. package/es/src/business/ap-table-modal/index.mjs +11 -0
  82. package/es/src/business/ap-table-modal/interface.d.ts +63 -0
  83. package/es/src/business/ap-table-modal/interface.mjs +4 -0
  84. package/es/src/business/ap-table-modal/modal-title.vue.d.ts +46 -0
  85. package/es/src/business/ap-table-modal/modal-title.vue.mjs +4 -0
  86. package/es/src/business/ap-table-modal/modal-title.vue2.mjs +50 -0
  87. package/es/src/business/ap-table-modal/table-modal.vue.d.ts +79 -0
  88. package/es/src/business/ap-table-modal/table-modal.vue.mjs +4 -0
  89. package/es/src/business/ap-table-modal/table-modal.vue2.mjs +177 -0
  90. package/es/src/business/expandAlert/ApExpandAlert.vue.d.ts +19 -12
  91. package/es/src/business/index.d.ts +160 -152
  92. package/es/src/business/index.mjs +18 -16
  93. package/es/src/business/title/ApTitle.vue.d.ts +17 -12
  94. package/es/src/button/button.vue.d.ts +12 -7
  95. package/es/src/button/index.d.ts +2 -2
  96. package/es/src/check-card/group.vue.d.ts +18 -13
  97. package/es/src/check-card/index.vue.d.ts +16 -11
  98. package/es/src/config-provider/config-provider-props.d.ts +6 -4
  99. package/es/src/config-provider/config-provider.d.ts +5 -5
  100. package/es/src/config-provider/config-provider.mjs +9 -9
  101. package/es/src/config-provider/hooks/use-global-config.d.ts +2 -1
  102. package/es/src/config-provider/index.d.ts +17 -17
  103. package/es/src/container/index.d.ts +4 -4
  104. package/es/src/container/scroll-container.vue.d.ts +181 -8
  105. package/es/src/count-down/button.vue.d.ts +4 -4
  106. package/es/src/count-down/index.d.ts +8 -8
  107. package/es/src/count-down/input.vue.d.ts +16 -11
  108. package/es/src/cropper/cropper-avatar.vue.d.ts +4 -4
  109. package/es/src/cropper/cropper-image.vue.d.ts +4 -4
  110. package/es/src/cropper/index.d.ts +4 -4
  111. package/es/src/description/index.d.ts +2 -2
  112. package/es/src/dropdown/dropdown.vue.d.ts +16 -11
  113. package/es/src/dropdown/index.d.ts +2 -2
  114. package/es/src/editable-table/form-item.vue.d.ts +5 -5
  115. package/es/src/editable-table/index.vue.d.ts +6 -6
  116. package/es/src/icon/icon.vue.d.ts +4 -5
  117. package/es/src/icon/index.d.ts +16 -16
  118. package/es/src/icon/svg-icon.vue.d.ts +4 -4
  119. package/es/src/icon-picker/icon-picker.vue.d.ts +4 -4
  120. package/es/src/icon-picker/index.d.ts +2 -2
  121. package/es/src/index.mjs +69 -63
  122. package/es/src/locale/lang/en.mjs +29 -2
  123. package/es/src/locale/lang/zh-cn.mjs +29 -2
  124. package/es/src/modal/basic.vue.d.ts +210 -5
  125. package/es/src/modal/components/modal-close.vue.d.ts +4 -4
  126. package/es/src/modal/components/modal-footer.vue.d.ts +10 -5
  127. package/es/src/modal/components/modal-wrapper.vue.d.ts +77 -4
  128. package/es/src/modal/components/modal.d.ts +1 -1
  129. package/es/src/modal/index.d.ts +5 -5
  130. package/es/src/pro-form/components/api-cascader.vue.d.ts +4 -4
  131. package/es/src/pro-form/components/api-radio-group.vue.d.ts +4 -4
  132. package/es/src/pro-form/components/api-select.vue.d.ts +16 -11
  133. package/es/src/pro-form/components/api-transfer.vue.d.ts +5 -5
  134. package/es/src/pro-form/components/api-tree-select.vue.d.ts +16 -11
  135. package/es/src/pro-form/components/api-tree.vue.d.ts +16 -11
  136. package/es/src/pro-form/components/form-action.vue.d.ts +19 -14
  137. package/es/src/pro-form/components/radio-button-group.vue.d.ts +4 -4
  138. package/es/src/pro-form/hooks/use-label-width.d.ts +25 -25
  139. package/es/src/pro-form/pro-form.vue.d.ts +888 -15
  140. package/es/src/pro-form/table-form-inner.vue.d.ts +6 -5
  141. package/es/src/pro-form/table-form.vue.d.ts +6 -5
  142. package/es/src/pro-form/types/form.d.ts +4 -4
  143. package/es/src/pro-table/components/edit-table-header-icon.vue.d.ts +7 -2
  144. package/es/src/pro-table/components/editable/editable-cell.vue.d.ts +1 -1
  145. package/es/src/pro-table/components/table-action.vue.d.ts +7 -2
  146. package/es/src/pro-table/components/table-footer.vue.d.ts +4 -4
  147. package/es/src/pro-table/components/table-header.vue.d.ts +9 -4
  148. package/es/src/pro-table/components/table-image.vue.d.ts +4 -4
  149. package/es/src/pro-table/components/table-selection-bar.vue.d.ts +4 -4
  150. package/es/src/pro-table/pro-table.vue.d.ts +2049 -28
  151. package/es/src/prompt/utils.d.ts +1 -1
  152. package/es/src/scroll-bar/index.d.ts +2 -2
  153. package/es/src/scroll-bar/scroll-bar.vue.d.ts +19 -11
  154. package/es/src/strength-meter/index.d.ts +2 -2
  155. package/es/src/strength-meter/strength-meter.vue.d.ts +16 -11
  156. package/es/src/theme/antd-global-overwrite/admin/index.css +1 -0
  157. package/es/src/theme/antd-global-overwrite/admin/table.css +1 -0
  158. package/es/src/theme/antd-global-overwrite/aplus/index.css +1 -0
  159. package/es/src/theme/antd-global-overwrite/aplus/table.css +1 -0
  160. package/es/src/theme/ap-table/ap-table.css +9 -0
  161. package/es/src/theme/css-var/index.mjs +23 -7
  162. package/es/src/transition/collapse-transition.vue.d.ts +7 -2
  163. package/es/src/utils/config-provider-preset.d.ts +5 -5
  164. package/es/src/work-order-modal/createWorkOrder.mjs +20 -12
  165. package/es/src/work-order-modal/help-message.vue2.mjs +21 -18
  166. package/es/src/work-order-modal/work-order-modal.vue.d.ts +1 -1
  167. package/es/src/work-order-modal/work-order-modal.vue.mjs +64 -62
  168. package/lib/index.js +1 -1
  169. package/lib/src/ap-action/group/index.vue.d.ts +7 -6
  170. package/lib/src/ap-action/item/index.vue.d.ts +20 -14
  171. package/lib/src/ap-action/item-dropdown/index.vue.d.ts +21 -15
  172. package/lib/src/ap-action/item-modal/index.vue.d.ts +20 -14
  173. package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +20 -14
  174. package/lib/src/ap-custom-column/column-select.vue.js +1 -1
  175. package/lib/src/ap-custom-column/custom-column.vue.js +1 -1
  176. package/lib/src/ap-descriptions/ap-descriptions.vue.d.ts +20 -15
  177. package/lib/src/ap-descriptions/help-message/index.vue.d.ts +12 -7
  178. package/lib/src/ap-download/ap-download.vue.d.ts +17 -12
  179. package/lib/src/ap-field/checkbox/index.vue.d.ts +6 -5
  180. package/lib/src/ap-field/date/index.vue.d.ts +18 -12
  181. package/lib/src/ap-field/date-range/index.vue.d.ts +25 -19
  182. package/lib/src/ap-field/number/index.vue.d.ts +459 -12
  183. package/lib/src/ap-field/radio/index.vue.d.ts +6 -5
  184. package/lib/src/ap-field/rate/index.vue.d.ts +138 -16
  185. package/lib/src/ap-field/segmented/index.vue.d.ts +25 -19
  186. package/lib/src/ap-field/select/index.vue.d.ts +597 -16
  187. package/lib/src/ap-field/select/index.vue.js +1 -1
  188. package/lib/src/ap-field/slider/index.vue.d.ts +375 -12
  189. package/lib/src/ap-field/switch/index.vue.d.ts +16 -11
  190. package/lib/src/ap-field/text/index.vue.d.ts +19 -13
  191. package/lib/src/ap-field/text/password.vue.d.ts +19 -13
  192. package/lib/src/ap-field/text-area/index.vue.d.ts +7 -6
  193. package/lib/src/ap-field/text-area/index.vue.js +1 -1
  194. package/lib/src/ap-form/ap-form-item-group/index.vue.d.ts +19 -14
  195. package/lib/src/ap-form/ap-form-item.vue.d.ts +1008 -12
  196. package/lib/src/ap-form/ap-form-item.vue.js +1 -1
  197. package/lib/src/ap-form/ap-form-list.vue.d.ts +12 -7
  198. package/lib/src/ap-form/ap-form.vue.d.ts +884 -13
  199. package/lib/src/ap-form/items/checkbox/index.vue.d.ts +17 -12
  200. package/lib/src/ap-form/items/date/index.vue.d.ts +40 -35
  201. package/lib/src/ap-form/items/date-range/index.vue.d.ts +39 -34
  202. package/lib/src/ap-form/items/number/index.vue.d.ts +583 -27
  203. package/lib/src/ap-form/items/radio/index.vue.d.ts +217 -13
  204. package/lib/src/ap-form/items/select/index.vue.d.ts +43 -38
  205. package/lib/src/ap-form/items/switch/index.vue.d.ts +24 -19
  206. package/lib/src/ap-form/items/text/index.vue.d.ts +591 -25
  207. package/lib/src/ap-form/items/text/password.vue.d.ts +658 -27
  208. package/lib/src/ap-form/items/text-area/index.vue.d.ts +486 -13
  209. package/lib/src/ap-form/modal-form/index.vue.d.ts +650 -16
  210. package/lib/src/ap-form/search-form/index.vue.d.ts +652 -18
  211. package/lib/src/ap-layout/ap-info-layout/ap-info-layout.vue.d.ts +20 -15
  212. package/lib/src/ap-list/index.vue.d.ts +5 -5
  213. package/lib/src/ap-modal/interface.d.ts +3 -3
  214. package/lib/src/ap-modal/utils/createModal.js +1 -1
  215. package/lib/src/ap-table/ap-table.vue.d.ts +5 -5
  216. package/lib/src/ap-table/ap-table.vue.js +1 -1
  217. package/lib/src/ap-table/components/index/index.vue.d.ts +4 -4
  218. package/lib/src/ap-table/constants.d.ts +1071 -1072
  219. package/lib/src/ap-table/constants.js +1 -1
  220. package/lib/src/ap-table/hooks/use-table-paging.d.ts +14 -3
  221. package/lib/src/ap-table/hooks/use-table-paging.js +1 -1
  222. package/lib/src/ap-table/interface.d.ts +13 -4
  223. package/lib/src/ap-table/style/ap-table.css +9 -0
  224. package/lib/src/ap-table/utils.d.ts +597 -598
  225. package/lib/src/ap-table/utils.js +1 -1
  226. package/lib/src/ap-tag/ap-tag-group.vue.d.ts +18 -11
  227. package/lib/src/ap-tag/ap-tag.vue.d.ts +5 -5
  228. package/lib/src/base-button/button.vue.d.ts +17 -12
  229. package/lib/src/base-button/index.d.ts +30 -30
  230. package/lib/src/basic/index.d.ts +6 -6
  231. package/lib/src/basic/title.vue.d.ts +16 -11
  232. package/lib/src/business/ap-batch-action/ApBatchAction.vue.d.ts +13 -8
  233. package/lib/src/business/ap-image/ApImage.vue.d.ts +31 -62
  234. package/lib/src/business/ap-image/ApImage.vue2.js +1 -1
  235. package/lib/src/business/ap-image/interface.d.ts +17 -0
  236. package/lib/src/business/ap-input-radio/ApInputRadio.vue.d.ts +4 -4
  237. package/lib/src/business/ap-label/ApLabel.d.ts +2 -2
  238. package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +6 -6
  239. package/lib/src/business/ap-status/ApStatus.vue.d.ts +5 -5
  240. package/lib/src/business/ap-status/ApStatusGroup.vue.d.ts +5 -5
  241. package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +7 -0
  242. package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.js +1 -0
  243. package/lib/src/business/ap-table-modal/hooks/use-table-modal.d.ts +7 -0
  244. package/lib/src/business/ap-table-modal/hooks/use-table-modal.js +1 -0
  245. package/lib/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +6 -0
  246. package/lib/src/business/ap-table-modal/hooks/use-table-select-modal.js +1 -0
  247. package/lib/src/business/ap-table-modal/index.d.ts +538 -0
  248. package/lib/src/business/ap-table-modal/index.js +1 -0
  249. package/lib/src/business/ap-table-modal/interface.d.ts +63 -0
  250. package/lib/src/business/ap-table-modal/interface.js +1 -0
  251. package/lib/src/business/ap-table-modal/modal-title.vue.d.ts +46 -0
  252. package/lib/src/business/ap-table-modal/modal-title.vue.js +1 -0
  253. package/lib/src/business/ap-table-modal/modal-title.vue2.js +1 -0
  254. package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +79 -0
  255. package/lib/src/business/ap-table-modal/table-modal.vue.js +1 -0
  256. package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -0
  257. package/lib/src/business/expandAlert/ApExpandAlert.vue.d.ts +19 -12
  258. package/lib/src/business/index.d.ts +160 -152
  259. package/lib/src/business/index.js +1 -1
  260. package/lib/src/business/title/ApTitle.vue.d.ts +17 -12
  261. package/lib/src/button/button.vue.d.ts +12 -7
  262. package/lib/src/button/index.d.ts +2 -2
  263. package/lib/src/check-card/group.vue.d.ts +18 -13
  264. package/lib/src/check-card/index.vue.d.ts +16 -11
  265. package/lib/src/config-provider/config-provider-props.d.ts +6 -4
  266. package/lib/src/config-provider/config-provider.d.ts +5 -5
  267. package/lib/src/config-provider/config-provider.js +1 -1
  268. package/lib/src/config-provider/hooks/use-global-config.d.ts +2 -1
  269. package/lib/src/config-provider/index.d.ts +17 -17
  270. package/lib/src/container/index.d.ts +4 -4
  271. package/lib/src/container/scroll-container.vue.d.ts +181 -8
  272. package/lib/src/count-down/button.vue.d.ts +4 -4
  273. package/lib/src/count-down/index.d.ts +8 -8
  274. package/lib/src/count-down/input.vue.d.ts +16 -11
  275. package/lib/src/cropper/cropper-avatar.vue.d.ts +4 -4
  276. package/lib/src/cropper/cropper-image.vue.d.ts +4 -4
  277. package/lib/src/cropper/index.d.ts +4 -4
  278. package/lib/src/description/index.d.ts +2 -2
  279. package/lib/src/dropdown/dropdown.vue.d.ts +16 -11
  280. package/lib/src/dropdown/index.d.ts +2 -2
  281. package/lib/src/editable-table/form-item.vue.d.ts +5 -5
  282. package/lib/src/editable-table/index.vue.d.ts +6 -6
  283. package/lib/src/icon/icon.vue.d.ts +4 -5
  284. package/lib/src/icon/index.d.ts +16 -16
  285. package/lib/src/icon/svg-icon.vue.d.ts +4 -4
  286. package/lib/src/icon-picker/icon-picker.vue.d.ts +4 -4
  287. package/lib/src/icon-picker/index.d.ts +2 -2
  288. package/lib/src/index.js +1 -1
  289. package/lib/src/locale/lang/en.js +1 -1
  290. package/lib/src/locale/lang/zh-cn.js +1 -1
  291. package/lib/src/modal/basic.vue.d.ts +210 -5
  292. package/lib/src/modal/components/modal-close.vue.d.ts +4 -4
  293. package/lib/src/modal/components/modal-footer.vue.d.ts +10 -5
  294. package/lib/src/modal/components/modal-wrapper.vue.d.ts +77 -4
  295. package/lib/src/modal/components/modal.d.ts +1 -1
  296. package/lib/src/modal/index.d.ts +5 -5
  297. package/lib/src/pro-form/components/api-cascader.vue.d.ts +4 -4
  298. package/lib/src/pro-form/components/api-radio-group.vue.d.ts +4 -4
  299. package/lib/src/pro-form/components/api-select.vue.d.ts +16 -11
  300. package/lib/src/pro-form/components/api-transfer.vue.d.ts +5 -5
  301. package/lib/src/pro-form/components/api-tree-select.vue.d.ts +16 -11
  302. package/lib/src/pro-form/components/api-tree.vue.d.ts +16 -11
  303. package/lib/src/pro-form/components/form-action.vue.d.ts +19 -14
  304. package/lib/src/pro-form/components/radio-button-group.vue.d.ts +4 -4
  305. package/lib/src/pro-form/hooks/use-label-width.d.ts +25 -25
  306. package/lib/src/pro-form/pro-form.vue.d.ts +888 -15
  307. package/lib/src/pro-form/table-form-inner.vue.d.ts +6 -5
  308. package/lib/src/pro-form/table-form.vue.d.ts +6 -5
  309. package/lib/src/pro-form/types/form.d.ts +4 -4
  310. package/lib/src/pro-table/components/edit-table-header-icon.vue.d.ts +7 -2
  311. package/lib/src/pro-table/components/editable/editable-cell.vue.d.ts +1 -1
  312. package/lib/src/pro-table/components/table-action.vue.d.ts +7 -2
  313. package/lib/src/pro-table/components/table-footer.vue.d.ts +4 -4
  314. package/lib/src/pro-table/components/table-header.vue.d.ts +9 -4
  315. package/lib/src/pro-table/components/table-image.vue.d.ts +4 -4
  316. package/lib/src/pro-table/components/table-selection-bar.vue.d.ts +4 -4
  317. package/lib/src/pro-table/pro-table.vue.d.ts +2049 -28
  318. package/lib/src/prompt/utils.d.ts +1 -1
  319. package/lib/src/scroll-bar/index.d.ts +2 -2
  320. package/lib/src/scroll-bar/scroll-bar.vue.d.ts +19 -11
  321. package/lib/src/strength-meter/index.d.ts +2 -2
  322. package/lib/src/strength-meter/strength-meter.vue.d.ts +16 -11
  323. package/lib/src/theme/antd-global-overwrite/admin/index.css +1 -0
  324. package/lib/src/theme/antd-global-overwrite/admin/table.css +1 -0
  325. package/lib/src/theme/antd-global-overwrite/aplus/index.css +1 -0
  326. package/lib/src/theme/antd-global-overwrite/aplus/table.css +1 -0
  327. package/lib/src/theme/ap-table/ap-table.css +9 -0
  328. package/lib/src/theme/css-var/index.js +1 -1
  329. package/lib/src/transition/collapse-transition.vue.d.ts +7 -2
  330. package/lib/src/utils/config-provider-preset.d.ts +5 -5
  331. package/lib/src/work-order-modal/createWorkOrder.js +1 -1
  332. package/lib/src/work-order-modal/help-message.vue2.js +1 -1
  333. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +1 -1
  334. package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
  335. package/package.json +4 -4
@@ -5,8 +5,8 @@ import "./components/index/index.vue.mjs";
5
5
  import "./components/status/index.vue.mjs";
6
6
  import i from "../ap-form/items/date/index.vue.mjs";
7
7
  import o from "../ap-form/items/date-range/index.vue.mjs";
8
- import t from "../ap-form/items/number/index.vue.mjs";
9
- import r from "../ap-form/items/radio/index.vue.mjs";
8
+ import r from "../ap-form/items/number/index.vue.mjs";
9
+ import t from "../ap-form/items/radio/index.vue.mjs";
10
10
  import e from "../ap-form/items/select/index.vue.mjs";
11
11
  import a from "../ap-form/items/switch/index.vue.mjs";
12
12
  import { ApFormItemText as m } from "../ap-form/items/text/index.mjs";
@@ -23,13 +23,13 @@ import x from "../ap-field/text-area/index.vue.mjs";
23
23
  import b from "../ap-field/checkbox/index.vue.mjs";
24
24
  import w from "../ap-action/group/index.vue.mjs";
25
25
  import h from "./components/index/index.vue2.mjs";
26
- import A from "./components/status/index.vue2.mjs";
27
- import k from "../ap-field/text/password.vue.mjs";
26
+ import k from "./components/status/index.vue2.mjs";
27
+ import A from "../ap-field/text/password.vue.mjs";
28
28
  const Q = {
29
29
  date: i,
30
30
  dateRange: o,
31
- number: t,
32
- radio: r,
31
+ number: r,
32
+ radio: t,
33
33
  select: e,
34
34
  switch: a,
35
35
  text: m,
@@ -48,8 +48,8 @@ const Q = {
48
48
  checkbox: b,
49
49
  action: w,
50
50
  index: h,
51
- status: A,
52
- password: k
51
+ status: k,
52
+ password: A
53
53
  }, X = [
54
54
  "action",
55
55
  "index"
@@ -61,7 +61,9 @@ const Q = {
61
61
  textOverflow: "ellipsis",
62
62
  whiteSpace: "normal",
63
63
  maxWidth: "100%",
64
- verticalAlign: "middle"
64
+ verticalAlign: "middle",
65
+ wordBreak: "break-all",
66
+ flex: 1
65
67
  };
66
68
  export {
67
69
  Q as apTableFormItemMap,
@@ -2,7 +2,8 @@ import { ComputedRef, Ref } from 'vue';
2
2
  import { RequestData } from '../interface';
3
3
  import { ApFormSearchFormExpose } from '../../ap-form';
4
4
  import { DataIndex } from 'ant-design-vue/es/vc-table/interface';
5
- import { TablePaginationConfig, FilterValue, SorterResult, TableCurrentDataSource } from 'ant-design-vue/es/table/interface';
5
+ import { TablePaginationConfig } from 'ant-design-vue';
6
+ import { FilterValue, SorterResult, TableCurrentDataSource } from 'ant-design-vue/es/table/interface';
6
7
  export type UseTablePagingParams<DataType, ParamsType> = {
7
8
  request: (params: any) => Promise<RequestData<DataType>>;
8
9
  /**
@@ -51,8 +52,16 @@ export type UseTablePagingParams<DataType, ParamsType> = {
51
52
  * 需要后端筛选的排序字段列表
52
53
  */
53
54
  sortFields?: ComputedRef<DataIndex[]>;
55
+ /**
56
+ * 是否显示基础分页(较少的现实内容)
57
+ */
58
+ showLessItems?: boolean;
59
+ /**
60
+ * 用于显示数据总量和当前数据顺序
61
+ */
62
+ showTotal?: boolean;
54
63
  };
55
- export declare const useTablePaging: <DataType = any, ParamsType = Record<string, any>>({ manual, defaultCurrent, defaultPageSize, request, defaultParams, defaultData, formatParams, paramsValueTypeMap, resetFieldsIgnores, filterFields, sortFields }: UseTablePagingParams<DataType, ParamsType>) => {
64
+ export declare const useTablePaging: <DataType = any, ParamsType = Record<string, any>>({ manual, defaultCurrent, defaultPageSize, request, defaultParams, defaultData, formatParams, paramsValueTypeMap, resetFieldsIgnores, filterFields, sortFields, showLessItems, showTotal }: UseTablePagingParams<DataType, ParamsType>) => {
56
65
  formRef: Ref<ApFormSearchFormExpose | undefined>;
57
66
  submit: () => void;
58
67
  reset: () => void;
@@ -74,7 +83,9 @@ export declare const useTablePaging: <DataType = any, ParamsType = Record<string
74
83
  total: number;
75
84
  showSizeChanger: boolean;
76
85
  showQuickJumper: boolean;
77
- showTotal: (total: number) => string;
86
+ showLessItems: boolean;
87
+ size: string;
88
+ showTotal: ((total: number) => import("vue/jsx-runtime").JSX.Element) | undefined;
78
89
  };
79
90
  onChange: (pagination: TablePaginationConfig, filters: Record<string, FilterValue | null>, sorter: SorterResult<any> | SorterResult<any>[], extra: TableCurrentDataSource<any>) => void;
80
91
  dataSource: DataType[];
@@ -1,145 +1,157 @@
1
- import { ref as S, nextTick as N, unref as o, onMounted as U, computed as z } from "vue";
2
- import { parseFieldValue as W, dataIndexToStr as X } from "../utils.mjs";
3
- import { isArray as Y } from "lodash-unified";
1
+ import { ref as x, nextTick as Z, unref as o, onMounted as _, computed as V, createVNode as P } from "vue";
2
+ import { parseFieldValue as I, dataIndexToStr as k } from "../utils.mjs";
3
+ import { isArray as ee } from "lodash-unified";
4
4
  import "../../config-provider/index.mjs";
5
- import { useLocale as Z } from "../../config-provider/hooks/use-locale.mjs";
6
- const oe = ({
7
- manual: j = !1,
8
- defaultCurrent: D = 1,
9
- defaultPageSize: P = 10,
10
- request: R,
11
- defaultParams: A = {},
12
- defaultData: B = [],
13
- formatParams: w,
14
- paramsValueTypeMap: V,
15
- resetFieldsIgnores: b,
16
- filterFields: E,
17
- sortFields: L
5
+ import { useLocale as te } from "../../config-provider/hooks/use-locale.mjs";
6
+ import { useNamespace as ae } from "../../config-provider/hooks/use-namespace.mjs";
7
+ const le = ({
8
+ manual: B = !1,
9
+ defaultCurrent: E = 1,
10
+ defaultPageSize: w = 10,
11
+ request: M,
12
+ defaultParams: N = {},
13
+ defaultData: $ = [],
14
+ formatParams: C,
15
+ paramsValueTypeMap: y,
16
+ resetFieldsIgnores: O,
17
+ filterFields: q,
18
+ sortFields: J,
19
+ showLessItems: b = !1,
20
+ showTotal: L = !0
18
21
  }) => {
19
- let T = 0, f = {};
20
- const M = (e) => w ? w(e) : e, l = S(), i = S(D), g = S(P), { t: C } = Z(), n = S({
22
+ let z = 0, p = {};
23
+ const Q = (e) => C ? C(e) : e, l = x(), c = x(E), f = x(w), {
24
+ t: S
25
+ } = te(), {
26
+ b: F
27
+ } = ae("ap-table"), r = x({
21
28
  total: 0,
22
- records: B,
29
+ records: $,
23
30
  loading: !1
24
- }), x = async (e) => {
25
- var r;
26
- const a = M(e), t = Date.now();
27
- T = t, n.value.loading = !0;
31
+ }), R = async (e) => {
32
+ var n;
33
+ const a = Q(e), t = Date.now();
34
+ z = t, r.value.loading = !0;
28
35
  try {
29
- const s = await R({
30
- ...A,
36
+ const s = await M({
37
+ ...N,
31
38
  ...a
32
39
  });
33
- T === t && (n.value.total = s.total || ((r = s.data) == null ? void 0 : r.length) || 0, n.value.records = [...s.data || []]);
40
+ z === t && (r.value.total = s.total || ((n = s.data) == null ? void 0 : n.length) || 0, r.value.records = [...s.data || []]);
34
41
  } catch {
35
- T === t && (n.value.records = [], n.value.total = 0);
42
+ z === t && (r.value.records = [], r.value.total = 0);
36
43
  } finally {
37
- n.value.loading = !1;
44
+ r.value.loading = !1;
38
45
  }
39
- }, y = (e) => {
46
+ }, j = (e) => {
40
47
  const a = {};
41
- return Object.entries(e).forEach(([t, r]) => {
42
- if (a[t] = r, V && r) {
43
- const s = V[t];
44
- s && (a[t] = W(s, r));
48
+ return Object.entries(e).forEach(([t, n]) => {
49
+ if (a[t] = n, y && n) {
50
+ const s = y[t];
51
+ s && (a[t] = I(s, n));
45
52
  }
46
53
  }), a;
47
- }, q = async (e) => {
48
- var r, s, d, p, m, u, h;
49
- const a = ((s = (r = l.value) == null ? void 0 : r.apForm) == null ? void 0 : s.getFieldsValue()) || {}, t = {};
50
- Object.entries(a).forEach(([v, c]) => {
51
- b && b.indexOf(v) > -1 && (t[v] = c);
52
- }), await ((p = (d = l.value) == null ? void 0 : d.apForm) == null ? void 0 : p.resetFields()), (h = (u = (m = l.value) == null ? void 0 : m.apForm) == null ? void 0 : u.setFieldsValue) == null || h.call(u, t), N(() => {
54
+ }, G = async (e) => {
55
+ var n, s, g, d, m, u, h;
56
+ const a = ((s = (n = l.value) == null ? void 0 : n.apForm) == null ? void 0 : s.getFieldsValue()) || {}, t = {};
57
+ Object.entries(a).forEach(([v, i]) => {
58
+ O && O.indexOf(v) > -1 && (t[v] = i);
59
+ }), await ((d = (g = l.value) == null ? void 0 : g.apForm) == null ? void 0 : d.resetFields()), (h = (u = (m = l.value) == null ? void 0 : m.apForm) == null ? void 0 : u.setFieldsValue) == null || h.call(u, t), Z(() => {
53
60
  e == null || e();
54
61
  });
55
- }, F = (e) => {
56
- f = e;
57
- const a = y(e);
58
- x(a);
59
- }, J = (e) => {
60
- F({
61
- ...f,
62
+ }, T = (e) => {
63
+ p = e;
64
+ const a = j(e);
65
+ R(a);
66
+ }, H = (e) => {
67
+ T({
68
+ ...p,
62
69
  ...e
63
70
  });
64
- }, O = () => {
71
+ }, D = () => {
65
72
  var a, t;
66
73
  const e = ((t = (a = l.value) == null ? void 0 : a.apForm) == null ? void 0 : t.getFieldsValue(!0)) || {};
67
- i.value = 1, F({
74
+ c.value = 1, T({
68
75
  ...e,
69
76
  current: 1,
70
- pageSize: f.pageSize || P
77
+ pageSize: p.pageSize || w
71
78
  });
72
- }, Q = () => {
73
- q(O);
74
- }, G = () => {
75
- F(f);
76
- }, H = (e) => {
77
- const a = o(n).total - e, t = Math.ceil(a / o(g)), r = o(i) > t ? t : o(i);
78
- J({
79
- current: r > 0 ? r : 1
79
+ }, K = () => {
80
+ G(D);
81
+ }, U = () => {
82
+ T(p);
83
+ }, W = (e) => {
84
+ const a = o(r).total - e, t = Math.ceil(a / o(f)), n = o(c) > t ? t : o(c);
85
+ H({
86
+ current: n > 0 ? n : 1
80
87
  });
81
- }, $ = (e, a, t) => {
88
+ }, A = (e, a, t) => {
82
89
  var m, u, h, v;
83
- const r = ((u = (m = l.value) == null ? void 0 : m.apForm) == null ? void 0 : u.getFieldsValue(!0)) || {};
84
- i.value = e.current, g.value = e.pageSize;
85
- const s = Y(t) ? [...t] : [t], d = {};
86
- for (const c of s)
87
- (h = o(L)) != null && h.includes(c.field) && (d[X(c.field)] = c.order);
88
- const p = {};
89
- for (const c of Object.keys(a))
90
- (v = o(E)) != null && v.includes(c) && (p[c] = a[c]);
91
- F({
92
- ...r,
93
- filter: p,
94
- sort: d,
90
+ const n = ((u = (m = l.value) == null ? void 0 : m.apForm) == null ? void 0 : u.getFieldsValue(!0)) || {};
91
+ c.value = e.current, f.value = e.pageSize;
92
+ const s = ee(t) ? [...t] : [t], g = {};
93
+ for (const i of s)
94
+ (h = o(J)) != null && h.includes(i.field) && (g[k(i.field)] = i.order);
95
+ const d = {};
96
+ for (const i of Object.keys(a))
97
+ (v = o(q)) != null && v.includes(i) && (d[i] = a[i]);
98
+ T({
99
+ ...n,
100
+ filter: d,
101
+ sort: g,
95
102
  current: e.current,
96
103
  pageSize: e.pageSize
97
104
  });
98
105
  };
99
- U(() => {
106
+ _(() => {
100
107
  var a, t;
101
108
  const e = ((t = (a = l.value) == null ? void 0 : a.apForm) == null ? void 0 : t.getFieldsValue(!0)) || {};
102
- if (f = {
103
- current: o(i),
104
- pageSize: o(g),
109
+ if (p = {
110
+ current: o(c),
111
+ pageSize: o(f),
105
112
  ...e
106
- }, !j) {
107
- const r = y(f);
108
- x(r);
113
+ }, !B) {
114
+ const n = j(p);
115
+ R(n);
109
116
  }
110
117
  });
111
- const I = z(() => o(n).total === 0 ? "-" : `${o(i.value)}/${Math.ceil(
112
- o(n).total / o(g)
113
- )}`), K = z(() => ({
114
- loading: o(n).loading,
118
+ const X = V(() => o(r).total === 0 ? "-" : `${o(c.value)}/${Math.ceil(o(r).total / o(f))}`), Y = V(() => ({
119
+ loading: o(r).loading,
115
120
  pagination: {
116
- current: o(i),
117
- pageSize: o(g),
118
- total: o(n).total,
119
- showSizeChanger: !0,
120
- showQuickJumper: !0,
121
- showTotal: (e) => `${C("ap.apTable.pagination.totalLeft", { total: e })} ${C(
122
- "ap.apTable.pagination.totalRight",
123
- { page: o(I) }
124
- )}`
121
+ current: o(c),
122
+ pageSize: o(f),
123
+ total: o(r).total,
124
+ showSizeChanger: !b,
125
+ showQuickJumper: !b,
126
+ showLessItems: b,
127
+ size: "default",
128
+ showTotal: L ? (e) => P("span", {
129
+ class: F("pagination-total-wrapper")
130
+ }, [S("ap.apTable.pagination.totalLeftPrefix"), " ", P("span", {
131
+ class: F("pagination-count-text")
132
+ }, [e]), " ", S("ap.apTable.pagination.totalLeftSuffix"), P("span", {
133
+ class: F("pagination--total-right")
134
+ }, [S("ap.apTable.pagination.totalRightPrefix"), " ", P("span", {
135
+ class: F("pagination-count-text")
136
+ }, [o(X)]), " ", S("ap.apTable.pagination.totalRightSuffix")])]) : void 0
125
137
  },
126
- onChange: $,
127
- dataSource: o(n).records
138
+ onChange: A,
139
+ dataSource: o(r).records
128
140
  }));
129
141
  return {
130
142
  formRef: l,
131
- submit: O,
132
- reset: Q,
133
- refresh: G,
134
- refreshByDelete: H,
135
- data: n,
136
- current: i,
137
- pageSize: g,
138
- handleTableChange: $,
139
- tableProps: K,
140
- dataSource: z(() => o(n).records)
143
+ submit: D,
144
+ reset: K,
145
+ refresh: U,
146
+ refreshByDelete: W,
147
+ data: r,
148
+ current: c,
149
+ pageSize: f,
150
+ handleTableChange: A,
151
+ tableProps: Y,
152
+ dataSource: V(() => o(r).records)
141
153
  };
142
154
  };
143
155
  export {
144
- oe as useTablePaging
156
+ le as useTablePaging
145
157
  };
@@ -162,6 +162,18 @@ export type RequestData<T> = {
162
162
  data: T[] | undefined;
163
163
  total: number;
164
164
  } & Record<string, any>;
165
+ export type ApTablePaginationConfig = {
166
+ defaultCurrent?: number;
167
+ defaultPageSize?: number;
168
+ /**
169
+ * 是否显示较少页面内容
170
+ */
171
+ showLessItems?: boolean;
172
+ /**
173
+ * 用于显示数据总量和当前数据顺序
174
+ */
175
+ showTotal?: boolean;
176
+ };
165
177
  export type ApTableProps<RecordType = any, ParamsType = any> = Omit<TableProps<RecordType>, 'columns' | 'pagination' | 'dataSource' | 'size' | 'rowSelection'> & {
166
178
  /**
167
179
  * 列配置
@@ -230,10 +242,7 @@ export type ApTableProps<RecordType = any, ParamsType = any> = Omit<TableProps<R
230
242
  /**
231
243
  * 是否显示分页器(特定的分页器)或者指定默认的当前页和pageSize
232
244
  */
233
- pagination?: false | {
234
- defaultCurrent?: number;
235
- defaultPageSize?: number;
236
- };
245
+ pagination?: false | ApTablePaginationConfig;
237
246
  /**
238
247
  * 自定义查询表单容器样式
239
248
  */
@@ -86,3 +86,12 @@
86
86
  .aplus-ap-table .ant-table-cell .ant-typography {
87
87
  margin-bottom: 0;
88
88
  }
89
+ .aplus-ap-table-pagination-count-text {
90
+ color: var(--ap-table-pagination-total-count-color, #182948);
91
+ }
92
+ .aplus-ap-table-pagination--total-right {
93
+ padding-left: 12px;
94
+ }
95
+ .aplus-ap-table-pagination-total-wrapper {
96
+ color: var(--ap-table-pagination-total-color, #526A90);
97
+ }