@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
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../ap-action/index.js");require("../ap-field/index.js");require("../ap-form/index.js");require("./components/index/index.vue.js");require("./components/status/index.vue.js");const t=require("../ap-form/items/date/index.vue.js"),_=require("../ap-form/items/date-range/index.vue.js"),u=require("../ap-form/items/number/index.vue.js"),r=require("../ap-form/items/radio/index.vue.js"),i=require("../ap-form/items/select/index.vue.js"),s=require("../ap-form/items/switch/index.vue.js"),e=require("../ap-form/items/text/index.js"),n=require("../ap-form/items/text-area/index.vue.js"),a=require("../ap-form/items/checkbox/index.vue.js"),p=require("../ap-field/date/index.vue.js"),l=require("../ap-field/date-range/index.vue.js"),d=require("../ap-field/number/index.vue.js"),c=require("../ap-field/radio/index.vue.js"),o=require("../ap-field/select/index.vue.js"),v=require("../ap-field/switch/index.vue.js"),x=require("../ap-field/text/index.js"),q=require("../ap-field/text-area/index.vue.js"),g=require("../ap-field/checkbox/index.vue.js"),y=require("../ap-action/group/index.vue.js"),f=require("./components/index/index.vue2.js"),m=require("./components/status/index.vue2.js"),$=require("../ap-field/text/password.vue.js"),b={date:t.default,dateRange:_.default,number:u.default,radio:r.default,select:i.default,switch:s.default,text:e.ApFormItemText,textArea:n.default,checkbox:a.default,password:e.ApFormItemText.Password},w={date:p.default,dateRange:l.default,number:d.default,radio:c.default,select:o.default,switch:v.default,text:x.ApFieldText,textArea:q.default,checkbox:g.default,action:y.default,index:f.default,status:m.default,password:$.default},T=["action","index"],h={display:"-webkit-inline-box","-webkit-line-clamp":2,"-webkit-box-orient":"vertical",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"normal",maxWidth:"100%",verticalAlign:"middle"};exports.apTableFormItemMap=b;exports.apTableRenderItemMap=w;exports.ellipsisTitleStyle=h;exports.noRenderAsFormItemValueList=T;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../ap-action/index.js");require("../ap-field/index.js");require("../ap-form/index.js");require("./components/index/index.vue.js");require("./components/status/index.vue.js");const t=require("../ap-form/items/date/index.vue.js"),_=require("../ap-form/items/date-range/index.vue.js"),u=require("../ap-form/items/number/index.vue.js"),r=require("../ap-form/items/radio/index.vue.js"),i=require("../ap-form/items/select/index.vue.js"),s=require("../ap-form/items/switch/index.vue.js"),e=require("../ap-form/items/text/index.js"),n=require("../ap-form/items/text-area/index.vue.js"),a=require("../ap-form/items/checkbox/index.vue.js"),p=require("../ap-field/date/index.vue.js"),l=require("../ap-field/date-range/index.vue.js"),d=require("../ap-field/number/index.vue.js"),c=require("../ap-field/radio/index.vue.js"),o=require("../ap-field/select/index.vue.js"),v=require("../ap-field/switch/index.vue.js"),x=require("../ap-field/text/index.js"),q=require("../ap-field/text-area/index.vue.js"),g=require("../ap-field/checkbox/index.vue.js"),f=require("../ap-action/group/index.vue.js"),y=require("./components/index/index.vue2.js"),m=require("./components/status/index.vue2.js"),$=require("../ap-field/text/password.vue.js"),b={date:t.default,dateRange:_.default,number:u.default,radio:r.default,select:i.default,switch:s.default,text:e.ApFormItemText,textArea:n.default,checkbox:a.default,password:e.ApFormItemText.Password},w={date:p.default,dateRange:l.default,number:d.default,radio:c.default,select:o.default,switch:v.default,text:x.ApFieldText,textArea:q.default,checkbox:g.default,action:f.default,index:y.default,status:m.default,password:$.default},T=["action","index"],h={display:"-webkit-inline-box","-webkit-line-clamp":2,"-webkit-box-orient":"vertical",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"normal",maxWidth:"100%",verticalAlign:"middle",wordBreak:"break-all",flex:1};exports.apTableFormItemMap=b;exports.apTableRenderItemMap=w;exports.ellipsisTitleStyle=h;exports.noRenderAsFormItemValueList=T;
@@ -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 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),O=require("../utils.js"),I=require("lodash-unified");require("../../config-provider/index.js");const K=require("../../config-provider/hooks/use-locale.js"),N=({manual:j=!1,defaultCurrent:$=1,defaultPageSize:T=10,request:x,defaultParams:D={},defaultData:L=[],formatParams:P,paramsValueTypeMap:b,resetFieldsIgnores:z,filterFields:M,sortFields:R})=>{let F=0,f={};const A=e=>P?P(e):e,i=t.ref(),c=t.ref($),d=t.ref(T),{t:q}=K.useLocale(),o=t.ref({total:0,records:L,loading:!1}),w=async e=>{var n;const a=A(e),r=Date.now();F=r,o.value.loading=!0;try{const s=await x({...D,...a});F===r&&(o.value.total=s.total||((n=s.data)==null?void 0:n.length)||0,o.value.records=[...s.data||[]])}catch{F===r&&(o.value.records=[],o.value.total=0)}finally{o.value.loading=!1}},y=e=>{const a={};return Object.entries(e).forEach(([r,n])=>{if(a[r]=n,b&&n){const s=b[r];s&&(a[r]=O.parseFieldValue(s,n))}}),a},B=async e=>{var n,s,g,p,h,l,m;const a=((s=(n=i.value)==null?void 0:n.apForm)==null?void 0:s.getFieldsValue())||{},r={};Object.entries(a).forEach(([v,u])=>{z&&z.indexOf(v)>-1&&(r[v]=u)}),await((p=(g=i.value)==null?void 0:g.apForm)==null?void 0:p.resetFields()),(m=(l=(h=i.value)==null?void 0:h.apForm)==null?void 0:l.setFieldsValue)==null||m.call(l,r),t.nextTick(()=>{e==null||e()})},S=e=>{f=e;const a=y(e);w(a)},E=e=>{S({...f,...e})},V=()=>{var a,r;const e=((r=(a=i.value)==null?void 0:a.apForm)==null?void 0:r.getFieldsValue(!0))||{};c.value=1,S({...e,current:1,pageSize:f.pageSize||T})},J=()=>{B(V)},Q=()=>{S(f)},U=e=>{const a=t.unref(o).total-e,r=Math.ceil(a/t.unref(d)),n=t.unref(c)>r?r:t.unref(c);E({current:n>0?n:1})},C=(e,a,r)=>{var h,l,m,v;const n=((l=(h=i.value)==null?void 0:h.apForm)==null?void 0:l.getFieldsValue(!0))||{};c.value=e.current,d.value=e.pageSize;const s=I.isArray(r)?[...r]:[r],g={};for(const u of s)(m=t.unref(R))!=null&&m.includes(u.field)&&(g[O.dataIndexToStr(u.field)]=u.order);const p={};for(const u of Object.keys(a))(v=t.unref(M))!=null&&v.includes(u)&&(p[u]=a[u]);S({...n,filter:p,sort:g,current:e.current,pageSize:e.pageSize})};t.onMounted(()=>{var a,r;const e=((r=(a=i.value)==null?void 0:a.apForm)==null?void 0:r.getFieldsValue(!0))||{};if(f={current:t.unref(c),pageSize:t.unref(d),...e},!j){const n=y(f);w(n)}});const G=t.computed(()=>t.unref(o).total===0?"-":`${t.unref(c.value)}/${Math.ceil(t.unref(o).total/t.unref(d))}`),H=t.computed(()=>({loading:t.unref(o).loading,pagination:{current:t.unref(c),pageSize:t.unref(d),total:t.unref(o).total,showSizeChanger:!0,showQuickJumper:!0,showTotal:e=>`${q("ap.apTable.pagination.totalLeft",{total:e})} ${q("ap.apTable.pagination.totalRight",{page:t.unref(G)})}`},onChange:C,dataSource:t.unref(o).records}));return{formRef:i,submit:V,reset:J,refresh:Q,refreshByDelete:U,data:o,current:c,pageSize:d,handleTableChange:C,tableProps:H,dataSource:t.computed(()=>t.unref(o).records)}};exports.useTablePaging=N;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),O=require("../utils.js"),X=require("lodash-unified");require("../../config-provider/index.js");const Y=require("../../config-provider/hooks/use-locale.js"),Z=require("../../config-provider/hooks/use-namespace.js"),_=({manual:j=!1,defaultCurrent:R=1,defaultPageSize:V=10,request:D,defaultParams:M={},defaultData:A=[],formatParams:x,paramsValueTypeMap:z,resetFieldsIgnores:q,filterFields:B,sortFields:E,showLessItems:b=!1,showTotal:L=!0})=>{let P=0,f={};const $=t=>x?x(t):t,c=e.ref(),i=e.ref(R),d=e.ref(V),{t:S}=Y.useLocale(),{b:T}=Z.useNamespace("ap-table"),o=e.ref({total:0,records:A,loading:!1}),y=async t=>{var r;const n=$(t),a=Date.now();P=a,o.value.loading=!0;try{const s=await D({...M,...n});P===a&&(o.value.total=s.total||((r=s.data)==null?void 0:r.length)||0,o.value.records=[...s.data||[]])}catch{P===a&&(o.value.records=[],o.value.total=0)}finally{o.value.loading=!1}},N=t=>{const n={};return Object.entries(t).forEach(([a,r])=>{if(n[a]=r,z&&r){const s=z[a];s&&(n[a]=O.parseFieldValue(s,r))}}),n},J=async t=>{var r,s,g,p,h,l,m;const n=((s=(r=c.value)==null?void 0:r.apForm)==null?void 0:s.getFieldsValue())||{},a={};Object.entries(n).forEach(([v,u])=>{q&&q.indexOf(v)>-1&&(a[v]=u)}),await((p=(g=c.value)==null?void 0:g.apForm)==null?void 0:p.resetFields()),(m=(l=(h=c.value)==null?void 0:h.apForm)==null?void 0:l.setFieldsValue)==null||m.call(l,a),e.nextTick(()=>{t==null||t()})},F=t=>{f=t;const n=N(t);y(n)},Q=t=>{F({...f,...t})},w=()=>{var n,a;const t=((a=(n=c.value)==null?void 0:n.apForm)==null?void 0:a.getFieldsValue(!0))||{};i.value=1,F({...t,current:1,pageSize:f.pageSize||V})},U=()=>{J(w)},G=()=>{F(f)},H=t=>{const n=e.unref(o).total-t,a=Math.ceil(n/e.unref(d)),r=e.unref(i)>a?a:e.unref(i);Q({current:r>0?r:1})},C=(t,n,a)=>{var h,l,m,v;const r=((l=(h=c.value)==null?void 0:h.apForm)==null?void 0:l.getFieldsValue(!0))||{};i.value=t.current,d.value=t.pageSize;const s=X.isArray(a)?[...a]:[a],g={};for(const u of s)(m=e.unref(E))!=null&&m.includes(u.field)&&(g[O.dataIndexToStr(u.field)]=u.order);const p={};for(const u of Object.keys(n))(v=e.unref(B))!=null&&v.includes(u)&&(p[u]=n[u]);F({...r,filter:p,sort:g,current:t.current,pageSize:t.pageSize})};e.onMounted(()=>{var n,a;const t=((a=(n=c.value)==null?void 0:n.apForm)==null?void 0:a.getFieldsValue(!0))||{};if(f={current:e.unref(i),pageSize:e.unref(d),...t},!j){const r=N(f);y(r)}});const K=e.computed(()=>e.unref(o).total===0?"-":`${e.unref(i.value)}/${Math.ceil(e.unref(o).total/e.unref(d))}`),W=e.computed(()=>({loading:e.unref(o).loading,pagination:{current:e.unref(i),pageSize:e.unref(d),total:e.unref(o).total,showSizeChanger:!b,showQuickJumper:!b,showLessItems:b,size:"default",showTotal:L?t=>e.createVNode("span",{class:T("pagination-total-wrapper")},[S("ap.apTable.pagination.totalLeftPrefix")," ",e.createVNode("span",{class:T("pagination-count-text")},[t])," ",S("ap.apTable.pagination.totalLeftSuffix"),e.createVNode("span",{class:T("pagination--total-right")},[S("ap.apTable.pagination.totalRightPrefix")," ",e.createVNode("span",{class:T("pagination-count-text")},[e.unref(K)])," ",S("ap.apTable.pagination.totalRightSuffix")])]):void 0},onChange:C,dataSource:e.unref(o).records}));return{formRef:c,submit:w,reset:U,refresh:G,refreshByDelete:H,data:o,current:i,pageSize:d,handleTableChange:C,tableProps:W,dataSource:e.computed(()=>e.unref(o).records)}};exports.useTablePaging=_;
@@ -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
+ }