@aplus-frontend/ui 0.6.0-beta.2 → 0.6.0-beta.21

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 (609) hide show
  1. package/es/index.mjs +307 -289
  2. package/es/src/ap-action/group/index.vue.d.ts +1 -1
  3. package/es/src/ap-action/item-dropdown/index.vue.d.ts +1 -1
  4. package/es/src/ap-descriptions/ap-descriptions.vue.mjs +9 -8
  5. package/es/src/ap-descriptions/help-message/index.vue2.mjs +1 -1
  6. package/es/src/ap-drawer/ApDrawer.vue.d.ts +29 -0
  7. package/es/src/ap-drawer/ApDrawer.vue.mjs +91 -0
  8. package/es/src/ap-drawer/ApDrawer.vue2.mjs +4 -0
  9. package/es/src/ap-drawer/components/ApDrawerClose.vue.d.ts +8 -0
  10. package/es/src/ap-drawer/components/ApDrawerClose.vue.mjs +25 -0
  11. package/es/src/ap-drawer/components/ApDrawerClose.vue2.mjs +4 -0
  12. package/es/src/ap-drawer/index.d.ts +3 -7
  13. package/es/src/ap-drawer/index.mjs +10 -5
  14. package/es/src/ap-drawer/interface.d.ts +4 -0
  15. package/es/src/ap-drawer/style/css.d.ts +0 -1
  16. package/es/src/ap-drawer/style/css.js +1 -1
  17. package/es/src/ap-drawer/style/index.d.ts +0 -1
  18. package/es/src/ap-drawer/style/index.js +1 -1
  19. package/es/src/ap-drawer/utils/createDrawer.mjs +36 -31
  20. package/es/src/ap-field/date/helper.mjs +12 -12
  21. package/es/src/ap-field/date/index.vue.d.ts +1 -1
  22. package/es/src/ap-field/date-range/index.vue.d.ts +1 -1
  23. package/es/src/ap-field/date-range/index.vue.mjs +8 -7
  24. package/es/src/ap-field/hooks/use-date-timezone.mjs +17 -8
  25. package/es/src/ap-field/number/index.vue.d.ts +3 -5
  26. package/es/src/ap-field/radio/index.vue.d.ts +2 -4
  27. package/es/src/ap-field/rate/index.vue.d.ts +3 -5
  28. package/es/src/ap-field/select/index.vue.d.ts +4 -7
  29. package/es/src/ap-field/slider/index.vue.d.ts +2 -4
  30. package/es/src/ap-field/text/index.vue2.mjs +42 -44
  31. package/es/src/ap-field/text/password.vue.mjs +15 -17
  32. package/es/src/ap-field/text-area/index.vue.d.ts +2 -2
  33. package/es/src/ap-field/tree-select/index.vue.d.ts +1 -1
  34. package/es/src/ap-field/tree-select/index.vue.mjs +31 -30
  35. package/es/src/ap-form/ap-form.vue2.mjs +89 -77
  36. package/es/src/ap-form/dependency/index.vue.mjs +29 -23
  37. package/es/src/ap-form/drawer-form/index.vue.d.ts +9 -7
  38. package/es/src/ap-form/drawer-form/index.vue.mjs +58 -49
  39. package/es/src/ap-form/interface.d.ts +13 -5
  40. package/es/src/ap-form/item/index.vue.d.ts +6 -11
  41. package/es/src/ap-form/item/index.vue.mjs +43 -39
  42. package/es/src/ap-form/items/number/index.vue.d.ts +8 -8
  43. package/es/src/ap-form/items/select/index.vue.d.ts +8 -8
  44. package/es/src/ap-form/items/select/index.vue.mjs +12 -14
  45. package/es/src/ap-form/items/text/index.vue.d.ts +2 -2
  46. package/es/src/ap-form/items/text/password.vue.d.ts +2 -2
  47. package/es/src/ap-form/items/text/password.vue.mjs +9 -9
  48. package/es/src/ap-form/items/text-area/index.vue.d.ts +5 -5
  49. package/es/src/ap-form/items/tree-select/index.vue.d.ts +8 -8
  50. package/es/src/ap-form/items/tree-select/index.vue.mjs +12 -14
  51. package/es/src/ap-form/modal-form/index.vue.d.ts +9 -7
  52. package/es/src/ap-form/modal-form/index.vue.mjs +64 -55
  53. package/es/src/ap-form/provider/index.vue.mjs +6 -5
  54. package/es/src/ap-form/render/item.vue.d.ts +1 -1
  55. package/es/src/ap-form/search-form/components/popover-filter.vue.d.ts +131 -2
  56. package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +40 -36
  57. package/es/src/ap-form/search-form/components/popover-sorter/index.vue2.mjs +88 -69
  58. package/es/src/ap-form/search-form/hooks/use-count-per-row.mjs +33 -13
  59. package/es/src/ap-form/search-form/index.vue.d.ts +2 -2
  60. package/es/src/ap-form/search-form/index.vue.mjs +99 -97
  61. package/es/src/ap-form/set/index.vue.mjs +7 -6
  62. package/es/src/ap-grid/constants.d.ts +3 -3
  63. package/es/src/ap-grid/constants.mjs +9 -9
  64. package/es/src/ap-grid/editable/form-item.vue.mjs +97 -83
  65. package/es/src/ap-grid/editable/index.vue.mjs +100 -86
  66. package/es/src/ap-grid/hooks/use-editable-columns.mjs +17 -17
  67. package/es/src/ap-grid/hooks/use-inner-params.d.ts +2 -1
  68. package/es/src/ap-grid/hooks/use-inner-params.mjs +24 -35
  69. package/es/src/ap-grid/hooks/use-render-columns.mjs +8 -8
  70. package/es/src/ap-grid/hooks/use-row-selection.d.ts +100 -0
  71. package/es/src/ap-grid/hooks/use-row-selection.mjs +122 -0
  72. package/es/src/ap-grid/index.vue.mjs +291 -224
  73. package/es/src/ap-grid/interface.d.ts +31 -2
  74. package/es/src/ap-grid/utils/table.mjs +31 -31
  75. package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +1 -1
  76. package/es/src/ap-list/index.vue.d.ts +2 -9
  77. package/es/src/ap-list/index.vue.mjs +116 -106
  78. package/es/src/ap-list/interface.d.ts +20 -0
  79. package/es/src/ap-table/ap-table.vue.d.ts +10 -2
  80. package/es/src/ap-table/ap-table.vue2.mjs +78 -70
  81. package/es/src/ap-table/components/setting/modal/index.vue2.mjs +42 -44
  82. package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +1 -1
  83. package/es/src/ap-table/constants.d.ts +52 -52
  84. package/es/src/ap-table/hooks/use-table-paging-ng.d.ts +23 -4
  85. package/es/src/ap-table/hooks/use-table-paging-ng.mjs +152 -124
  86. package/es/src/ap-table/interface.d.ts +14 -1
  87. package/es/src/ap-table/utils.d.ts +35 -35
  88. package/es/src/ap-tag/ap-tag-group.vue.mjs +32 -28
  89. package/es/src/business/ap-card/ApCard.vue2.mjs +1 -1
  90. package/es/src/business/ap-copy/ApCopy.d.ts +52 -0
  91. package/es/src/business/ap-copy/ApCopy.mjs +79 -0
  92. package/es/src/business/ap-copy/constans.d.ts +24 -0
  93. package/es/src/business/ap-copy/constans.mjs +25 -0
  94. package/es/src/business/ap-copy/index.d.ts +102 -0
  95. package/es/src/business/ap-copy/index.mjs +7 -0
  96. package/es/src/business/ap-copy/interface.d.ts +8 -0
  97. package/es/src/business/ap-copy/interface.mjs +1 -0
  98. package/es/src/business/ap-copy/style/css.d.ts +0 -0
  99. package/es/src/business/ap-copy/style/css.js +1 -0
  100. package/es/src/business/ap-copy/style/index.d.ts +0 -0
  101. package/es/src/business/ap-copy/style/index.js +1 -0
  102. package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +3 -3
  103. package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +94 -73
  104. package/es/src/business/ap-expand-alert/index.d.ts +4 -4
  105. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +18 -17
  106. package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +27 -25
  107. package/es/src/business/ap-keep-alive/cacher/cacher.d.ts +10 -0
  108. package/es/src/business/ap-keep-alive/cacher/lru-cacher.d.ts +16 -0
  109. package/es/src/business/ap-keep-alive/cacher/lru-cacher.mjs +43 -0
  110. package/es/src/business/ap-keep-alive/hook.d.ts +10 -0
  111. package/es/src/business/ap-keep-alive/hook.mjs +33 -0
  112. package/es/src/business/ap-keep-alive/index.d.ts +107 -0
  113. package/es/src/business/ap-keep-alive/index.mjs +13 -0
  114. package/es/src/business/ap-keep-alive/interface.d.ts +36 -0
  115. package/es/src/business/ap-keep-alive/interface.mjs +54 -0
  116. package/es/src/business/ap-keep-alive/keep-alive.d.ts +54 -0
  117. package/es/src/business/ap-keep-alive/keep-alive.mjs +154 -0
  118. package/es/src/business/ap-keep-alive/keeper/ap-form-keeper.d.ts +7 -0
  119. package/es/src/business/ap-keep-alive/keeper/ap-form-keeper.mjs +21 -0
  120. package/es/src/business/ap-keep-alive/keeper/ap-grid-keeper.d.ts +14 -0
  121. package/es/src/business/ap-keep-alive/keeper/ap-grid-keeper.mjs +27 -0
  122. package/es/src/business/ap-keep-alive/keeper/ap-list-keeper.d.ts +13 -0
  123. package/es/src/business/ap-keep-alive/keeper/ap-list-keeper.mjs +18 -0
  124. package/es/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.d.ts +6 -0
  125. package/es/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.mjs +17 -0
  126. package/es/src/business/ap-keep-alive/keeper/ap-search-form-keeper.d.ts +7 -0
  127. package/es/src/business/ap-keep-alive/keeper/ap-search-form-keeper.mjs +18 -0
  128. package/es/src/business/ap-keep-alive/keeper/ap-table-keeper.d.ts +13 -0
  129. package/es/src/business/ap-keep-alive/keeper/ap-table-keeper.mjs +18 -0
  130. package/es/src/business/ap-keep-alive/keeper/ap-view-keeper.d.ts +6 -0
  131. package/es/src/business/ap-keep-alive/keeper/ap-view-keeper.mjs +12 -0
  132. package/es/src/business/ap-keep-alive/keeper/edit-grid-keeper.d.ts +6 -0
  133. package/es/src/business/ap-keep-alive/keeper/edit-grid-keeper.mjs +18 -0
  134. package/es/src/business/ap-keep-alive/keeper/edit-table-keeper.d.ts +6 -0
  135. package/es/src/business/ap-keep-alive/keeper/edit-table-keeper.mjs +18 -0
  136. package/es/src/business/ap-keep-alive/keeper/index.d.ts +3 -0
  137. package/es/src/business/ap-keep-alive/keeper/index.mjs +28 -0
  138. package/es/src/business/ap-keep-alive/keeper/step-keeper.d.ts +6 -0
  139. package/es/src/business/ap-keep-alive/keeper/step-keeper.mjs +17 -0
  140. package/es/src/business/ap-keep-alive/keeper/tab-keeper.d.ts +6 -0
  141. package/es/src/business/ap-keep-alive/keeper/tab-keeper.mjs +17 -0
  142. package/es/src/business/ap-keep-alive/utils.d.ts +22 -0
  143. package/es/src/business/ap-keep-alive/utils.mjs +41 -0
  144. package/es/src/business/ap-label/ApLabel.d.ts +1 -1
  145. package/es/src/business/ap-label/constans.mjs +1 -1
  146. package/es/src/business/ap-label/group/ApLabelGroup.mjs +15 -16
  147. package/es/src/business/ap-label/index.d.ts +3 -3
  148. package/es/src/business/ap-label/interface.d.ts +2 -3
  149. package/es/src/business/ap-ladder/ApLadder.d.ts +1 -1
  150. package/es/src/business/ap-ladder/index.d.ts +3 -3
  151. package/es/src/business/ap-product-info/ApProductInfo.d.ts +9 -0
  152. package/es/src/business/ap-product-info/ApProductInfo.mjs +53 -54
  153. package/es/src/business/ap-product-info/constans.d.ts +4 -0
  154. package/es/src/business/ap-product-info/constans.mjs +4 -0
  155. package/es/src/business/ap-product-info/index.d.ts +15 -0
  156. package/es/src/business/ap-product-info/interface.d.ts +1 -0
  157. package/es/src/business/ap-radio-group/ap-radio-group.vue.d.ts +19 -0
  158. package/es/src/business/ap-radio-group/ap-radio-group.vue.mjs +4 -0
  159. package/es/src/business/ap-radio-group/ap-radio-group.vue2.mjs +60 -0
  160. package/es/src/business/ap-radio-group/index.d.ts +60 -0
  161. package/es/src/business/ap-radio-group/index.mjs +8 -0
  162. package/es/src/business/ap-radio-group/interface.d.ts +11 -0
  163. package/es/src/business/ap-radio-group/interface.mjs +1 -0
  164. package/es/src/business/ap-radio-group/style/css.d.ts +0 -0
  165. package/es/src/business/ap-radio-group/style/css.js +1 -0
  166. package/es/src/business/ap-radio-group/style/index.d.ts +0 -0
  167. package/es/src/business/ap-radio-group/style/index.js +1 -0
  168. package/es/src/business/ap-status/interface.d.ts +1 -1
  169. package/es/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +4 -1
  170. package/es/src/business/ap-table-modal/hooks/use-table-modal.d.ts +4 -1
  171. package/es/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +4 -1
  172. package/es/src/business/ap-table-modal/index.d.ts +32 -5
  173. package/es/src/business/ap-table-modal/table-modal.vue.d.ts +14 -3
  174. package/es/src/business/ap-table-modal/table-modal.vue2.mjs +43 -42
  175. package/es/src/business/ap-view/ap-view.vue.d.ts +5 -1
  176. package/es/src/business/ap-view/ap-view.vue2.mjs +162 -129
  177. package/es/src/business/ap-view/components/main-button-content.vue.d.ts +1 -1
  178. package/es/src/business/ap-view/components/main-button-content.vue2.mjs +55 -51
  179. package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +1 -1
  180. package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +79 -73
  181. package/es/src/business/ap-view/hooks/use-view-provide.d.ts +1 -0
  182. package/es/src/business/ap-view/index.d.ts +15 -3
  183. package/es/src/business/ap-view/interface.d.ts +11 -0
  184. package/es/src/business/batch-input-group/form-item.vue.d.ts +1 -1
  185. package/es/src/business/batch-input-group/form-item.vue.mjs +14 -13
  186. package/es/src/business/batch-input-group/index.vue.d.ts +1 -1
  187. package/es/src/business/batch-input-group/index.vue.mjs +10 -9
  188. package/es/src/business/hooks/usePageListApGrid.mjs +33 -28
  189. package/es/src/business/hooks/usePageListApTable.d.ts +4 -1
  190. package/es/src/business/index.d.ts +3 -0
  191. package/es/src/business/index.mjs +36 -30
  192. package/es/src/check-card/group.vue.d.ts +1 -1
  193. package/es/src/components.d.ts +1 -0
  194. package/es/src/config-provider/config-provider-props.d.ts +0 -5
  195. package/es/src/config-provider/config-provider-props.mjs +0 -4
  196. package/es/src/config-provider/config-provider.d.ts +0 -138
  197. package/es/src/config-provider/config-provider.mjs +21 -26
  198. package/es/src/config-provider/hooks/use-global-config.d.ts +0 -5
  199. package/es/src/config-provider/index.d.ts +0 -652
  200. package/es/src/editable-table/form-item.vue.d.ts +2 -14
  201. package/es/src/editable-table/form-item.vue.mjs +86 -78
  202. package/es/src/editable-table/index.vue.d.ts +2 -16
  203. package/es/src/editable-table/index.vue.mjs +91 -83
  204. package/es/src/editable-table/interface.d.ts +7 -0
  205. package/es/src/full-screen/interface.d.ts +5 -6
  206. package/es/src/index.mjs +269 -253
  207. package/es/src/locale/lang/en.mjs +4 -0
  208. package/es/src/locale/lang/zh-cn.mjs +4 -0
  209. package/es/src/mask/index.vue.mjs +21 -20
  210. package/es/src/path-map.mjs +3 -1
  211. package/es/src/resize-observer/interface.d.ts +2 -3
  212. package/es/src/scroll-bar/interface.d.ts +7 -7
  213. package/es/src/scroll-view/interface.d.ts +2 -3
  214. package/es/src/splitter/SplitBar.vue2.mjs +1 -0
  215. package/es/src/splitter/Splitter.vue2.mjs +1 -0
  216. package/es/src/tests/mock-resize-observer.d.ts +2 -0
  217. package/es/src/tests/utils.d.ts +8 -0
  218. package/es/src/text/group.vue.mjs +7 -6
  219. package/es/src/text/index.vue.mjs +20 -19
  220. package/es/src/version.d.ts +2 -0
  221. package/es/src/version.mjs +4 -0
  222. package/es/src/work-order-modal/createWorkOrder.d.ts +2 -1
  223. package/es/src/work-order-modal/createWorkOrder.mjs +19 -15
  224. package/es/src/work-order-modal/interfaces.d.ts +4 -0
  225. package/es/src/work-order-modal/work-order-modal.vue.d.ts +1 -1
  226. package/es/src/work-order-modal/work-order-modal.vue.mjs +120 -105
  227. package/es/test/setup.d.ts +5 -0
  228. package/lib/index.js +1 -1
  229. package/lib/src/ap-action/group/index.vue.d.ts +1 -1
  230. package/lib/src/ap-action/item-dropdown/index.vue.d.ts +1 -1
  231. package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
  232. package/lib/src/ap-descriptions/help-message/index.vue2.js +1 -1
  233. package/lib/src/ap-drawer/ApDrawer.vue.d.ts +29 -0
  234. package/lib/src/ap-drawer/ApDrawer.vue.js +1 -0
  235. package/lib/src/ap-drawer/ApDrawer.vue2.js +1 -0
  236. package/lib/src/ap-drawer/components/ApDrawerClose.vue.d.ts +8 -0
  237. package/lib/src/ap-drawer/components/ApDrawerClose.vue.js +1 -0
  238. package/lib/src/ap-drawer/components/ApDrawerClose.vue2.js +1 -0
  239. package/lib/src/ap-drawer/index.d.ts +3 -7
  240. package/lib/src/ap-drawer/index.js +1 -1
  241. package/lib/src/ap-drawer/interface.d.ts +4 -0
  242. package/lib/src/ap-drawer/style/css.cjs +1 -1
  243. package/lib/src/ap-drawer/style/css.d.ts +0 -1
  244. package/lib/src/ap-drawer/style/index.cjs +1 -1
  245. package/lib/src/ap-drawer/style/index.d.ts +0 -1
  246. package/lib/src/ap-drawer/utils/createDrawer.js +1 -1
  247. package/lib/src/ap-field/date/helper.js +1 -1
  248. package/lib/src/ap-field/date/index.vue.d.ts +1 -1
  249. package/lib/src/ap-field/date-range/index.vue.d.ts +1 -1
  250. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  251. package/lib/src/ap-field/hooks/use-date-timezone.js +1 -1
  252. package/lib/src/ap-field/number/index.vue.d.ts +3 -5
  253. package/lib/src/ap-field/radio/index.vue.d.ts +2 -4
  254. package/lib/src/ap-field/rate/index.vue.d.ts +3 -5
  255. package/lib/src/ap-field/select/index.vue.d.ts +4 -7
  256. package/lib/src/ap-field/slider/index.vue.d.ts +2 -4
  257. package/lib/src/ap-field/text/index.vue2.js +1 -1
  258. package/lib/src/ap-field/text/password.vue.js +1 -1
  259. package/lib/src/ap-field/text-area/index.vue.d.ts +2 -2
  260. package/lib/src/ap-field/tree-select/index.vue.d.ts +1 -1
  261. package/lib/src/ap-field/tree-select/index.vue.js +1 -1
  262. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  263. package/lib/src/ap-form/dependency/index.vue.js +1 -1
  264. package/lib/src/ap-form/drawer-form/index.vue.d.ts +9 -7
  265. package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
  266. package/lib/src/ap-form/interface.d.ts +13 -5
  267. package/lib/src/ap-form/item/index.vue.d.ts +6 -11
  268. package/lib/src/ap-form/item/index.vue.js +1 -1
  269. package/lib/src/ap-form/items/number/index.vue.d.ts +8 -8
  270. package/lib/src/ap-form/items/select/index.vue.d.ts +8 -8
  271. package/lib/src/ap-form/items/select/index.vue.js +1 -1
  272. package/lib/src/ap-form/items/text/index.vue.d.ts +2 -2
  273. package/lib/src/ap-form/items/text/password.vue.d.ts +2 -2
  274. package/lib/src/ap-form/items/text/password.vue.js +1 -1
  275. package/lib/src/ap-form/items/text-area/index.vue.d.ts +5 -5
  276. package/lib/src/ap-form/items/tree-select/index.vue.d.ts +8 -8
  277. package/lib/src/ap-form/items/tree-select/index.vue.js +1 -1
  278. package/lib/src/ap-form/modal-form/index.vue.d.ts +9 -7
  279. package/lib/src/ap-form/modal-form/index.vue.js +1 -1
  280. package/lib/src/ap-form/provider/index.vue.js +1 -1
  281. package/lib/src/ap-form/render/item.vue.d.ts +1 -1
  282. package/lib/src/ap-form/search-form/components/popover-filter.vue.d.ts +131 -2
  283. package/lib/src/ap-form/search-form/components/popover-filter.vue2.js +1 -1
  284. package/lib/src/ap-form/search-form/components/popover-sorter/index.vue2.js +1 -1
  285. package/lib/src/ap-form/search-form/hooks/use-count-per-row.js +1 -1
  286. package/lib/src/ap-form/search-form/index.vue.d.ts +2 -2
  287. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  288. package/lib/src/ap-form/set/index.vue.js +1 -1
  289. package/lib/src/ap-grid/constants.d.ts +3 -3
  290. package/lib/src/ap-grid/constants.js +1 -1
  291. package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
  292. package/lib/src/ap-grid/editable/index.vue.js +1 -1
  293. package/lib/src/ap-grid/hooks/use-editable-columns.js +1 -1
  294. package/lib/src/ap-grid/hooks/use-inner-params.d.ts +2 -1
  295. package/lib/src/ap-grid/hooks/use-inner-params.js +1 -1
  296. package/lib/src/ap-grid/hooks/use-render-columns.js +1 -1
  297. package/lib/src/ap-grid/hooks/use-row-selection.d.ts +100 -0
  298. package/lib/src/ap-grid/hooks/use-row-selection.js +1 -0
  299. package/lib/src/ap-grid/index.vue.js +1 -1
  300. package/lib/src/ap-grid/interface.d.ts +31 -2
  301. package/lib/src/ap-grid/utils/table.js +1 -1
  302. package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +1 -1
  303. package/lib/src/ap-list/index.vue.d.ts +2 -9
  304. package/lib/src/ap-list/index.vue.js +1 -1
  305. package/lib/src/ap-list/interface.d.ts +20 -0
  306. package/lib/src/ap-table/ap-table.vue.d.ts +10 -2
  307. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  308. package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
  309. package/lib/src/ap-table/components/setting/tree-select/index.vue2.js +1 -1
  310. package/lib/src/ap-table/constants.d.ts +52 -52
  311. package/lib/src/ap-table/hooks/use-table-paging-ng.d.ts +23 -4
  312. package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
  313. package/lib/src/ap-table/interface.d.ts +14 -1
  314. package/lib/src/ap-table/utils.d.ts +35 -35
  315. package/lib/src/ap-tag/ap-tag-group.vue.js +1 -1
  316. package/lib/src/business/ap-card/ApCard.vue2.js +1 -1
  317. package/lib/src/business/ap-copy/ApCopy.d.ts +52 -0
  318. package/lib/src/business/ap-copy/ApCopy.js +1 -0
  319. package/lib/src/business/ap-copy/constans.d.ts +24 -0
  320. package/lib/src/business/ap-copy/constans.js +1 -0
  321. package/lib/src/business/ap-copy/index.d.ts +102 -0
  322. package/lib/src/business/ap-copy/index.js +1 -0
  323. package/lib/src/business/ap-copy/interface.d.ts +8 -0
  324. package/lib/src/business/ap-copy/interface.js +1 -0
  325. package/lib/src/business/ap-copy/style/css.cjs +1 -0
  326. package/lib/src/business/ap-copy/style/css.d.ts +0 -0
  327. package/lib/src/business/ap-copy/style/index.cjs +1 -0
  328. package/lib/src/business/ap-copy/style/index.d.ts +0 -0
  329. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +3 -3
  330. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
  331. package/lib/src/business/ap-expand-alert/index.d.ts +4 -4
  332. package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
  333. package/lib/src/business/ap-input-radio/ApInputRadio.vue2.js +1 -1
  334. package/lib/src/business/ap-keep-alive/cacher/cacher.d.ts +10 -0
  335. package/lib/src/business/ap-keep-alive/cacher/lru-cacher.d.ts +16 -0
  336. package/lib/src/business/ap-keep-alive/cacher/lru-cacher.js +1 -0
  337. package/lib/src/business/ap-keep-alive/hook.d.ts +10 -0
  338. package/lib/src/business/ap-keep-alive/hook.js +1 -0
  339. package/lib/src/business/ap-keep-alive/index.d.ts +107 -0
  340. package/lib/src/business/ap-keep-alive/index.js +1 -0
  341. package/lib/src/business/ap-keep-alive/interface.d.ts +36 -0
  342. package/lib/src/business/ap-keep-alive/interface.js +1 -0
  343. package/lib/src/business/ap-keep-alive/keep-alive.d.ts +54 -0
  344. package/lib/src/business/ap-keep-alive/keep-alive.js +1 -0
  345. package/lib/src/business/ap-keep-alive/keeper/ap-form-keeper.d.ts +7 -0
  346. package/lib/src/business/ap-keep-alive/keeper/ap-form-keeper.js +1 -0
  347. package/lib/src/business/ap-keep-alive/keeper/ap-grid-keeper.d.ts +14 -0
  348. package/lib/src/business/ap-keep-alive/keeper/ap-grid-keeper.js +1 -0
  349. package/lib/src/business/ap-keep-alive/keeper/ap-list-keeper.d.ts +13 -0
  350. package/lib/src/business/ap-keep-alive/keeper/ap-list-keeper.js +1 -0
  351. package/lib/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.d.ts +6 -0
  352. package/lib/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.js +1 -0
  353. package/lib/src/business/ap-keep-alive/keeper/ap-search-form-keeper.d.ts +7 -0
  354. package/lib/src/business/ap-keep-alive/keeper/ap-search-form-keeper.js +1 -0
  355. package/lib/src/business/ap-keep-alive/keeper/ap-table-keeper.d.ts +13 -0
  356. package/lib/src/business/ap-keep-alive/keeper/ap-table-keeper.js +1 -0
  357. package/lib/src/business/ap-keep-alive/keeper/ap-view-keeper.d.ts +6 -0
  358. package/lib/src/business/ap-keep-alive/keeper/ap-view-keeper.js +1 -0
  359. package/lib/src/business/ap-keep-alive/keeper/edit-grid-keeper.d.ts +6 -0
  360. package/lib/src/business/ap-keep-alive/keeper/edit-grid-keeper.js +1 -0
  361. package/lib/src/business/ap-keep-alive/keeper/edit-table-keeper.d.ts +6 -0
  362. package/lib/src/business/ap-keep-alive/keeper/edit-table-keeper.js +1 -0
  363. package/lib/src/business/ap-keep-alive/keeper/index.d.ts +3 -0
  364. package/lib/src/business/ap-keep-alive/keeper/index.js +1 -0
  365. package/lib/src/business/ap-keep-alive/keeper/step-keeper.d.ts +6 -0
  366. package/lib/src/business/ap-keep-alive/keeper/step-keeper.js +1 -0
  367. package/lib/src/business/ap-keep-alive/keeper/tab-keeper.d.ts +6 -0
  368. package/lib/src/business/ap-keep-alive/keeper/tab-keeper.js +1 -0
  369. package/lib/src/business/ap-keep-alive/utils.d.ts +22 -0
  370. package/lib/src/business/ap-keep-alive/utils.js +1 -0
  371. package/lib/src/business/ap-label/ApLabel.d.ts +1 -1
  372. package/lib/src/business/ap-label/constans.js +1 -1
  373. package/lib/src/business/ap-label/group/ApLabelGroup.js +1 -1
  374. package/lib/src/business/ap-label/index.d.ts +3 -3
  375. package/lib/src/business/ap-label/interface.d.ts +2 -3
  376. package/lib/src/business/ap-ladder/ApLadder.d.ts +1 -1
  377. package/lib/src/business/ap-ladder/index.d.ts +3 -3
  378. package/lib/src/business/ap-product-info/ApProductInfo.d.ts +9 -0
  379. package/lib/src/business/ap-product-info/ApProductInfo.js +1 -1
  380. package/lib/src/business/ap-product-info/constans.d.ts +4 -0
  381. package/lib/src/business/ap-product-info/constans.js +1 -1
  382. package/lib/src/business/ap-product-info/index.d.ts +15 -0
  383. package/lib/src/business/ap-product-info/interface.d.ts +1 -0
  384. package/lib/src/business/ap-radio-group/ap-radio-group.vue.d.ts +19 -0
  385. package/lib/src/business/ap-radio-group/ap-radio-group.vue.js +1 -0
  386. package/lib/src/business/ap-radio-group/ap-radio-group.vue2.js +1 -0
  387. package/lib/src/business/ap-radio-group/index.d.ts +60 -0
  388. package/lib/src/business/ap-radio-group/index.js +1 -0
  389. package/lib/src/business/ap-radio-group/interface.d.ts +11 -0
  390. package/lib/src/business/ap-radio-group/interface.js +1 -0
  391. package/lib/src/business/ap-radio-group/style/css.cjs +1 -0
  392. package/lib/src/business/ap-radio-group/style/css.d.ts +0 -0
  393. package/lib/src/business/ap-radio-group/style/index.cjs +1 -0
  394. package/lib/src/business/ap-radio-group/style/index.d.ts +0 -0
  395. package/lib/src/business/ap-status/interface.d.ts +1 -1
  396. package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +4 -1
  397. package/lib/src/business/ap-table-modal/hooks/use-table-modal.d.ts +4 -1
  398. package/lib/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +4 -1
  399. package/lib/src/business/ap-table-modal/index.d.ts +32 -5
  400. package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +14 -3
  401. package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
  402. package/lib/src/business/ap-view/ap-view.vue.d.ts +5 -1
  403. package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
  404. package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +1 -1
  405. package/lib/src/business/ap-view/components/main-button-content.vue2.js +1 -1
  406. package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +1 -1
  407. package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -1
  408. package/lib/src/business/ap-view/hooks/use-view-provide.d.ts +1 -0
  409. package/lib/src/business/ap-view/index.d.ts +15 -3
  410. package/lib/src/business/ap-view/interface.d.ts +11 -0
  411. package/lib/src/business/batch-input-group/form-item.vue.d.ts +1 -1
  412. package/lib/src/business/batch-input-group/form-item.vue.js +1 -1
  413. package/lib/src/business/batch-input-group/index.vue.d.ts +1 -1
  414. package/lib/src/business/batch-input-group/index.vue.js +2 -2
  415. package/lib/src/business/hooks/usePageListApGrid.js +1 -1
  416. package/lib/src/business/hooks/usePageListApTable.d.ts +4 -1
  417. package/lib/src/business/index.d.ts +3 -0
  418. package/lib/src/business/index.js +1 -1
  419. package/lib/src/check-card/group.vue.d.ts +1 -1
  420. package/lib/src/components.d.ts +1 -0
  421. package/lib/src/config-provider/config-provider-props.d.ts +0 -5
  422. package/lib/src/config-provider/config-provider-props.js +1 -1
  423. package/lib/src/config-provider/config-provider.d.ts +0 -138
  424. package/lib/src/config-provider/config-provider.js +1 -1
  425. package/lib/src/config-provider/hooks/use-global-config.d.ts +0 -5
  426. package/lib/src/config-provider/index.d.ts +0 -652
  427. package/lib/src/editable-table/form-item.vue.d.ts +2 -14
  428. package/lib/src/editable-table/form-item.vue.js +1 -1
  429. package/lib/src/editable-table/index.vue.d.ts +2 -16
  430. package/lib/src/editable-table/index.vue.js +1 -1
  431. package/lib/src/editable-table/interface.d.ts +7 -0
  432. package/lib/src/full-screen/interface.d.ts +5 -6
  433. package/lib/src/index.js +1 -1
  434. package/lib/src/locale/lang/en.js +1 -1
  435. package/lib/src/locale/lang/zh-cn.js +1 -1
  436. package/lib/src/mask/index.vue.js +1 -1
  437. package/lib/src/path-map.js +1 -1
  438. package/lib/src/resize-observer/interface.d.ts +2 -3
  439. package/lib/src/scroll-bar/interface.d.ts +7 -7
  440. package/lib/src/scroll-view/interface.d.ts +2 -3
  441. package/lib/src/splitter/SplitBar.vue2.js +1 -1
  442. package/lib/src/splitter/Splitter.vue2.js +1 -1
  443. package/lib/src/tests/mock-resize-observer.d.ts +2 -0
  444. package/lib/src/tests/utils.d.ts +8 -0
  445. package/lib/src/text/group.vue.js +1 -1
  446. package/lib/src/text/index.vue.js +1 -1
  447. package/lib/src/version.d.ts +2 -0
  448. package/lib/src/version.js +1 -0
  449. package/lib/src/work-order-modal/createWorkOrder.d.ts +2 -1
  450. package/lib/src/work-order-modal/createWorkOrder.js +1 -1
  451. package/lib/src/work-order-modal/interfaces.d.ts +4 -0
  452. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +1 -1
  453. package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
  454. package/lib/test/setup.d.ts +5 -0
  455. package/package.json +18 -14
  456. package/theme/antd-global-overwrite/admin/alert.css +6 -19
  457. package/theme/antd-global-overwrite/admin/alert.less +25 -36
  458. package/theme/antd-global-overwrite/admin/button.css +13 -13
  459. package/theme/antd-global-overwrite/admin/button.less +24 -24
  460. package/theme/antd-global-overwrite/admin/field.css +39 -0
  461. package/theme/antd-global-overwrite/admin/field.less +39 -0
  462. package/theme/antd-global-overwrite/admin/index.css +89 -646
  463. package/theme/antd-global-overwrite/admin/index.less +2 -3
  464. package/theme/antd-global-overwrite/admin/message.css +2 -9
  465. package/theme/antd-global-overwrite/admin/message.less +2 -10
  466. package/theme/antd-global-overwrite/admin/modal.css +15 -48
  467. package/theme/antd-global-overwrite/admin/modal.less +13 -54
  468. package/theme/antd-global-overwrite/admin/table.css +11 -251
  469. package/theme/antd-global-overwrite/admin/table.less +4 -132
  470. package/theme/antd-global-overwrite/admin/tooltip.css +3 -0
  471. package/theme/antd-global-overwrite/admin/tooltip.less +3 -0
  472. package/theme/antd-global-overwrite/aplus/alert.css +9 -19
  473. package/theme/antd-global-overwrite/aplus/alert.less +27 -34
  474. package/theme/antd-global-overwrite/aplus/button.css +20 -20
  475. package/theme/antd-global-overwrite/aplus/button.less +24 -24
  476. package/theme/antd-global-overwrite/aplus/field.css +33 -0
  477. package/theme/antd-global-overwrite/aplus/field.less +32 -0
  478. package/theme/antd-global-overwrite/aplus/index.css +91 -690
  479. package/theme/antd-global-overwrite/aplus/index.less +1 -3
  480. package/theme/antd-global-overwrite/aplus/message.css +2 -9
  481. package/theme/antd-global-overwrite/aplus/message.less +2 -10
  482. package/theme/antd-global-overwrite/aplus/modal.css +15 -49
  483. package/theme/antd-global-overwrite/aplus/modal.less +14 -58
  484. package/theme/antd-global-overwrite/aplus/table.css +11 -236
  485. package/theme/antd-global-overwrite/aplus/table.less +4 -134
  486. package/theme/antd-global-overwrite/aplus/tooltip.css +3 -0
  487. package/theme/antd-global-overwrite/aplus/tooltip.less +3 -0
  488. package/theme/ap-action/item-dropdown.css +19 -1
  489. package/theme/ap-action/item.css +37 -8
  490. package/theme/ap-action/item.less +18 -6
  491. package/theme/ap-appendix/ap-appendix.css +27 -9
  492. package/theme/ap-appendix/ap-appendix.less +8 -8
  493. package/theme/ap-attachment/ap-attachment.css +21 -2
  494. package/theme/ap-attachment/ap-attachment.less +2 -2
  495. package/theme/ap-batch-action/ap-batch-action.css +22 -4
  496. package/theme/ap-batch-action/ap-batch-action.less +3 -3
  497. package/theme/ap-button/ap-button.css +19 -1
  498. package/theme/ap-card/ap-card.css +20 -2
  499. package/theme/ap-card/ap-card.less +1 -1
  500. package/theme/ap-copy/ap-copy.css +96 -0
  501. package/theme/ap-copy/ap-copy.less +61 -0
  502. package/theme/ap-descriptions/ap-descriptions.css +25 -5
  503. package/theme/ap-descriptions/ap-descriptions.less +6 -4
  504. package/theme/ap-download/ap-download.css +19 -1
  505. package/theme/ap-drawer/ap-drawer.css +75 -0
  506. package/theme/ap-drawer/ap-drawer.less +42 -0
  507. package/theme/ap-expand-alert/ap-expand-alert.css +21 -2
  508. package/theme/ap-expand-alert/ap-expand-alert.less +2 -1
  509. package/theme/ap-field/checkbox.css +19 -1
  510. package/theme/ap-field/index.css +19 -1
  511. package/theme/ap-field/number.css +19 -1
  512. package/theme/ap-field/radio.css +19 -1
  513. package/theme/ap-field/text-area.css +19 -1
  514. package/theme/ap-form/ap-form-item-group.css +19 -1
  515. package/theme/ap-form/ap-form-item.css +30 -9
  516. package/theme/ap-form/ap-form-item.less +15 -9
  517. package/theme/ap-form/drawer-form.css +19 -1
  518. package/theme/ap-form/index.css +51 -18
  519. package/theme/ap-form/item-text-group.css +19 -1
  520. package/theme/ap-form/item-text.css +19 -1
  521. package/theme/ap-form/modal-form.css +19 -1
  522. package/theme/ap-form/search-form-sorter.css +28 -9
  523. package/theme/ap-form/search-form-sorter.less +5 -4
  524. package/theme/ap-form/search-form.css +51 -18
  525. package/theme/ap-form/search-form.less +12 -1
  526. package/theme/ap-grid/editable.css +19 -1
  527. package/theme/ap-grid/index.css +118 -31
  528. package/theme/ap-grid/index.less +34 -5
  529. package/theme/ap-group-search/ap-extension-select.css +19 -1
  530. package/theme/ap-group-search/ap-group-search.css +19 -1
  531. package/theme/ap-group-search/ap-popover-select.css +19 -1
  532. package/theme/ap-image/ap-image.css +19 -1
  533. package/theme/ap-input-radio/ap-input-radio.css +19 -1
  534. package/theme/ap-label/ap-label.css +19 -1
  535. package/theme/ap-ladder/ap-ladder.css +20 -1
  536. package/theme/ap-ladder/ap-ladder.less +1 -0
  537. package/theme/ap-layout/ap-info-layout.css +19 -1
  538. package/theme/ap-list/index.css +19 -1
  539. package/theme/ap-product-info/ap-product-info.css +39 -31
  540. package/theme/ap-product-info/ap-product-info.less +28 -42
  541. package/theme/ap-radio-group/ap-radio-group.css +65 -0
  542. package/theme/ap-radio-group/ap-radio-group.less +25 -0
  543. package/theme/ap-select-layout/ap-select-layout.css +19 -1
  544. package/theme/ap-size-input/ap-size-input.css +19 -1
  545. package/theme/ap-status/ap-status.css +20 -2
  546. package/theme/ap-status/ap-status.less +1 -1
  547. package/theme/ap-summary/index.css +19 -1
  548. package/theme/ap-table/ap-table-index.css +19 -1
  549. package/theme/ap-table/ap-table-paragraph-ellipsis.css +20 -2
  550. package/theme/ap-table/ap-table-paragraph-ellipsis.less +1 -1
  551. package/theme/ap-table/ap-table.css +127 -50
  552. package/theme/ap-table/ap-table.less +24 -11
  553. package/theme/ap-table/setting/index.css +35 -13
  554. package/theme/ap-table/setting/modal.css +26 -5
  555. package/theme/ap-table/setting/modal.less +6 -3
  556. package/theme/ap-table/setting/select-group.css +21 -2
  557. package/theme/ap-table/setting/select-group.less +2 -1
  558. package/theme/ap-table/setting/sortable-item-meta.css +21 -3
  559. package/theme/ap-table/setting/sortable-item-meta.less +2 -2
  560. package/theme/ap-table/setting/sortable-item.css +19 -1
  561. package/theme/ap-table/setting/sorter.css +24 -6
  562. package/theme/ap-table/setting/sorter.less +4 -4
  563. package/theme/ap-table-modal/index.css +142 -63
  564. package/theme/ap-table-modal/index.less +15 -13
  565. package/theme/ap-tag/ap-tag-group.css +21 -3
  566. package/theme/ap-tag/ap-tag-group.less +2 -3
  567. package/theme/ap-tag/ap-tag.css +23 -5
  568. package/theme/ap-tag/ap-tag.less +4 -4
  569. package/theme/ap-title/ap-title.css +24 -4
  570. package/theme/ap-title/ap-title.less +5 -3
  571. package/theme/ap-upload/index.css +24 -6
  572. package/theme/ap-upload/multiple-file.css +20 -2
  573. package/theme/ap-upload/multiple-file.less +1 -1
  574. package/theme/ap-upload/picture.css +21 -3
  575. package/theme/ap-upload/picture.less +2 -2
  576. package/theme/ap-upload/single-file.css +21 -3
  577. package/theme/ap-upload/single-file.less +2 -2
  578. package/theme/ap-upload/upload.css +19 -1
  579. package/theme/ap-upload-single/index.css +23 -5
  580. package/theme/ap-upload-single/index.less +4 -4
  581. package/theme/ap-view/ap-view.css +26 -8
  582. package/theme/ap-view/ap-view.less +7 -7
  583. package/theme/batch-input-group/index.css +22 -3
  584. package/theme/batch-input-group/popover-input.css +22 -3
  585. package/theme/batch-input-group/popover-input.less +3 -2
  586. package/theme/check-card/index.css +27 -9
  587. package/theme/check-card/index.less +5 -5
  588. package/theme/editable-table/index.css +69 -25
  589. package/theme/full-screen/index.css +19 -1
  590. package/theme/index.css +439 -163
  591. package/theme/index.less +4 -0
  592. package/theme/mask/index.css +19 -1
  593. package/theme/mixins/config.less +1 -1
  594. package/theme/mixins/mixins.css +19 -1
  595. package/theme/mixins/mixins.less +25 -0
  596. package/theme/scroll-bar/index.css +19 -1
  597. package/theme/scroll-view/index.css +19 -1
  598. package/theme/splitter/index.css +24 -6
  599. package/theme/splitter/index.less +1 -1
  600. package/theme/text/group.css +19 -1
  601. package/theme/text/index.css +24 -6
  602. package/theme/text/index.less +4 -4
  603. package/theme/ui-mode.css +58 -0
  604. package/theme/ui-mode.less +107 -0
  605. package/theme/work-order-modal/index.css +19 -1
  606. package/es/src/config-provider/css-var.d.ts +0 -139
  607. package/es/src/config-provider/css-var.mjs +0 -278
  608. package/lib/src/config-provider/css-var.d.ts +0 -139
  609. package/lib/src/config-provider/css-var.js +0 -1
@@ -5,6 +5,7 @@ import { TableProps } from '@aplus-frontend/antdv';
5
5
  import { ColumnFilterItem, SortOrder, TableRowSelection } from '@aplus-frontend/antdv/es/table/interface';
6
6
  import { ComputedRef, CSSProperties, Ref, VNode } from 'vue';
7
7
  import { VxeTablePropTypes, VxeColumnPropTypes, VxeTableProps, VxeTableDefines, VxeColumnSlots, VxeColumnProps } from 'vxe-table';
8
+ import { InternalPagingType } from '../ap-table/hooks/use-table-paging-ng';
8
9
  export type ColConfigType = VxeTableDefines.ColumnOptions;
9
10
  export type ApGridColumnType<RecordType = any, ExtraValueType = 'text', ValueType extends ApTableValueTypes = ApTableValueTypes, MergedValueType extends ExtraValueType | ValueType = ExtraValueType | ValueType> = MergedValueType extends ExtraValueType | ValueType ? Omit<ExtraProColumnType<RecordType>, 'sorter' | 'rowSpan' | 'customCell' | 'customHeaderCell' | 'minWidth' | 'className' | 'class'> & {
10
11
  children?: ApGridColumnType<RecordType, ExtraValueType, ValueType, MergedValueType>[];
@@ -119,7 +120,7 @@ export type ApGridRowSelection<RecordType> = Pick<TableRowSelection<RecordType>,
119
120
  */
120
121
  range?: boolean;
121
122
  };
122
- export type ApGridProps<RecordType = any, ParamsType = any> = Omit<TableProps<RecordType>, 'columns' | 'pagination' | 'dataSource' | 'size' | 'rowSelection' | 'rowKey' | 'rowClassName' | 'footer' | 'loading'> & Pick<VxeTableProps<RecordType>, 'rowClassName' | 'stripe' | 'headerRowClassName' | 'footerRowClassName' | 'cellClassName' | 'headerCellClassName' | 'footerCellClassName' | 'rowStyle' | 'headerRowStyle' | 'footerRowStyle' | 'cellStyle' | 'headerCellStyle' | 'footerCellStyle' | 'height' | 'minHeight' | 'maxHeight' | 'mergeCells' | 'mergeFooterItems' | 'cellConfig' | 'loading' | 'loadingConfig' | 'headerCellConfig' | 'footerCellConfig'> & {
123
+ export type ApGridProps<RecordType = any, ParamsType = any> = Omit<TableProps<RecordType>, 'columns' | 'pagination' | 'dataSource' | 'size' | 'rowSelection' | 'rowKey' | 'rowClassName' | 'footer' | 'loading'> & Pick<VxeTableProps<RecordType>, 'rowClassName' | 'stripe' | 'headerRowClassName' | 'footerRowClassName' | 'cellClassName' | 'headerCellClassName' | 'footerCellClassName' | 'rowStyle' | 'headerRowStyle' | 'footerRowStyle' | 'cellStyle' | 'headerCellStyle' | 'footerCellStyle' | 'height' | 'minHeight' | 'maxHeight' | 'mergeCells' | 'mergeFooterItems' | 'cellConfig' | 'loading' | 'loadingConfig' | 'headerCellConfig' | 'footerCellConfig' | 'round'> & {
123
124
  /**
124
125
  * 列配置
125
126
  */
@@ -200,7 +201,7 @@ export type ApGridProps<RecordType = any, ParamsType = any> = Omit<TableProps<Re
200
201
  /**
201
202
  * 表格尺寸(只支持中等大小和小尺寸)
202
203
  */
203
- size?: 'medium' | 'small' | 'mini';
204
+ size?: 'medium' | 'mini';
204
205
  /**
205
206
  * 表格是否自适应高度
206
207
  */
@@ -239,6 +240,10 @@ export type ApGridProps<RecordType = any, ParamsType = any> = Omit<TableProps<Re
239
240
  * 作为表单项时内部传递,请勿使用
240
241
  */
241
242
  value?: any;
243
+ /**
244
+ * 行是否可以被高亮(传入函数可以获取当前被选中的行)
245
+ */
246
+ rowHighlightable?: boolean | ((current: RecordType) => void);
242
247
  };
243
248
  export type ApGridVirtualConfig = {
244
249
  x?: false | number;
@@ -289,6 +294,12 @@ export type ApGridExpose<SearchParamsType = Recordable, RecordType = any> = {
289
294
  */
290
295
  rowSelection: {
291
296
  selectedRows: ComputedRef<RecordType[]>;
297
+ /**
298
+ * 通过API调用设置行选中
299
+ * @param keys
300
+ * @returns
301
+ */
302
+ setSelectedRowKeys: (keys: (string | number)[]) => void;
292
303
  clearAll: () => void;
293
304
  };
294
305
  /**
@@ -303,4 +314,22 @@ export type ApGridExpose<SearchParamsType = Recordable, RecordType = any> = {
303
314
  * @returns
304
315
  */
305
316
  getDataSource: () => RecordType[];
317
+ /**
318
+ * 设置某一行被选中
319
+ * @param nextRow
320
+ * @returns
321
+ */
322
+ setCurrentRow: (nextRow: Partial<RecordType>) => void;
323
+ /**
324
+ * 获取分页参数
325
+ * @returns
326
+ */
327
+ getPaging: () => InternalPagingType;
328
+ /**
329
+ * 设置表格分页参数
330
+ * @param nextPaging 新的分页参数
331
+ * @param refreshImmediately 是否立刻刷新数据,默认为`true`
332
+ * @returns
333
+ */
334
+ setPaging: (nextPaging: InternalPagingType, refreshImmediately?: boolean) => void;
306
335
  };
@@ -1,6 +1,7 @@
1
- import { omit as l, isUndefined as u, isFunction as h, isNumber as w } from "lodash-unified";
2
- const b = 20, y = 50;
3
- function R(e) {
1
+ import { omit as l, isUndefined as s, isFunction as h, isNumber as m } from "lodash-unified";
2
+ import { isDef as w } from "../../utils/index.mjs";
3
+ const C = 20, b = 50, y = (e) => e.some((t) => !!t.html);
4
+ function v(e) {
4
5
  var i;
5
6
  const t = {
6
7
  ...l(e, [
@@ -9,12 +10,15 @@ function R(e) {
9
10
  "searchForm",
10
11
  "dataSource",
11
12
  "rowKey",
12
- "value"
13
+ "value",
14
+ "round"
13
15
  ])
14
16
  };
15
- if (e.adaptive && (t.autoResize = !0, t.height = "100%"), e.columnResizable && (t.columnConfig ? t.columnConfig.resizable = !0 : t.columnConfig = {
16
- resizable: !0
17
- }), e.rowSelection) {
17
+ if (t.rowConfig = {
18
+ isHover: !0,
19
+ keyField: e.rowKey,
20
+ isCurrent: !!e.rowHighlightable
21
+ }, t.columnConfig = {}, y(e.columns || []) && (t.rowConfig.useKey = !0, t.columnConfig.useKey = !0), e.adaptive && (t.autoResize = !0, t.height = "100%"), e.columnResizable && (t.columnConfig.resizable = !0), e.rowSelection) {
18
22
  const o = e.rowSelection === !0 ? {} : e.rowSelection;
19
23
  o.type === "radio" ? t.radioConfig = {
20
24
  highlight: !0,
@@ -25,7 +29,7 @@ function R(e) {
25
29
  return o.shown ? o.shown(r) : !0;
26
30
  },
27
31
  checkRowKey: (i = o.defaultSelectedRowKeys) == null ? void 0 : i[0],
28
- reserve: u(o.preserveSelectedRowKeys) ? !0 : o.preserveSelectedRowKeys
32
+ reserve: s(o.preserveSelectedRowKeys) ? !0 : o.preserveSelectedRowKeys
29
33
  } : t.checkboxConfig = {
30
34
  highlight: !0,
31
35
  checkMethod({ row: r }) {
@@ -34,8 +38,7 @@ function R(e) {
34
38
  visibleMethod({ row: r }) {
35
39
  return o.shown ? o.shown(r) : !0;
36
40
  },
37
- checkRowKeys: o.defaultSelectedRowKeys,
38
- reserve: u(o.preserveSelectedRowKeys) ? !0 : o.preserveSelectedRowKeys,
41
+ reserve: s(o.preserveSelectedRowKeys) ? !0 : o.preserveSelectedRowKeys,
39
42
  range: o.range || !1
40
43
  };
41
44
  }
@@ -47,34 +50,31 @@ function R(e) {
47
50
  enabled: !1
48
51
  }, t.virtualYConfig = {
49
52
  enabled: !1
50
- }) : (a(t, "X", e.virtual), a(t, "Y", e.virtual)), t.rowConfig = {
51
- isHover: !0,
52
- keyField: e.rowKey
53
- }, t.round = !0, t;
53
+ }) : (a(t, "X", e.virtual), a(t, "Y", e.virtual)), t.round = w(e.round) ? e.round : !e.card, t;
54
54
  }
55
- function a(e, t, i) {
56
- const o = t === "X", r = o ? "x" : "y", n = o ? "virtualXConfig" : "virtualYConfig", d = i == null ? void 0 : i[r], f = d !== !1, s = o ? b : y, c = w(d) && d >= 0 ? d : s;
57
- e[n] = {
55
+ function a(e, t, n) {
56
+ const i = t === "X", o = i ? "x" : "y", r = i ? "virtualXConfig" : "virtualYConfig", u = n == null ? void 0 : n[o], f = u !== !1, d = i ? C : b, c = m(u) && u >= 0 ? u : d;
57
+ e[r] = {
58
58
  enabled: f,
59
59
  gt: c,
60
- oSize: (i == null ? void 0 : i.oSize) || 0
60
+ oSize: (n == null ? void 0 : n.oSize) || 0
61
61
  };
62
62
  }
63
- function x(e) {
63
+ function g(e) {
64
64
  return e === !0 ? "left" : e;
65
65
  }
66
- function m(e, t) {
67
- const i = e === !0 || !e.type ? "checkbox" : e.type, o = e === !0 ? 60 : e.columnWidth || 60;
68
- let r = e === !0 ? void 0 : x(e.fixed);
69
- return r || (r === !1 ? r = void 0 : r = t.some(
70
- (n) => n.fixed === "left" || n.fixed === !0
66
+ function K(e, t) {
67
+ const n = e === !0 || !e.type ? "checkbox" : e.type, i = e === !0 ? 60 : e.columnWidth || 60;
68
+ let o = e === !0 ? void 0 : g(e.fixed);
69
+ return o || (o === !1 ? o = void 0 : o = t.some(
70
+ (r) => r.fixed === "left" || r.fixed === !0
71
71
  ) ? "left" : void 0), {
72
- type: i,
73
- width: o,
74
- fixed: r
72
+ type: n,
73
+ width: i,
74
+ fixed: o
75
75
  };
76
76
  }
77
- function g(e) {
77
+ function k(e) {
78
78
  const t = (e == null ? void 0 : e.width) || "auto";
79
79
  return {
80
80
  type: "expand",
@@ -83,7 +83,7 @@ function g(e) {
83
83
  };
84
84
  }
85
85
  export {
86
- g as getRowExpandProps,
87
- m as getRowSelectionProps,
88
- R as toVxeProps
86
+ k as getRowExpandProps,
87
+ K as getRowSelectionProps,
88
+ v as toVxeProps
89
89
  };
@@ -14,8 +14,8 @@ declare function __VLS_template(): {
14
14
  };
15
15
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
16
  declare const __VLS_component: DefineComponent<ApInfoLayoutAdminProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApInfoLayoutAdminProps> & Readonly<{}>, {
17
- bordered: boolean;
18
17
  headerStyle: CSSProperties;
18
+ bordered: boolean;
19
19
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
20
20
  containerRef: HTMLDivElement;
21
21
  headerRef: HTMLDivElement;
@@ -1,17 +1,10 @@
1
- import { ApListProps } from './interface';
1
+ import { ApListExpose, ApListProps } from './interface';
2
2
  import { Recordable } from '../type';
3
3
  import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, Ref, VNode } from 'vue';
4
4
  import { ApFormSearchFormExpose } from '..';
5
5
  declare const _default: <RecordType extends Recordable>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
6
6
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & ApListProps<RecordType> & Partial<{}>> & PublicProps;
7
- expose(exposed: ShallowUnwrapRef<{
8
- submit: () => void;
9
- reset: () => void;
10
- refresh: () => void;
11
- refreshByDelete: (n: number) => void;
12
- scrollToFirstRow: (selector?: string) => void;
13
- getSearchFormValuesIfSetted: (transform?: boolean) => Partial<any>;
14
- }>): void;
7
+ expose(exposed: ShallowUnwrapRef<ApListExpose>): void;
15
8
  attrs: any;
16
9
  slots: {
17
10
  header?(_: {
@@ -1,13 +1,14 @@
1
- import { defineComponent as X, ref as Y, unref as e, computed as p, watch as Z, createElementBlock as s, openBlock as i, normalizeStyle as v, normalizeClass as l, renderSlot as u, createElementVNode as _, createCommentVNode as I, createVNode as g, Fragment as E, createBlock as O, withCtx as h, renderList as x, mergeProps as ee } from "vue";
2
- import { Empty as V, Spin as te, Pagination as ae } from "@aplus-frontend/antdv";
3
- import { useTablePaging as ne } from "../ap-table/hooks/use-table-paging-ng.mjs";
1
+ import { defineComponent as _, ref as x, unref as t, computed as p, watch as ee, createElementBlock as s, openBlock as i, normalizeStyle as h, normalizeClass as l, renderSlot as u, createElementVNode as te, createCommentVNode as I, createVNode as g, Fragment as F, createBlock as V, withCtx as b, renderList as ae, mergeProps as ne } from "vue";
2
+ import { Empty as E, Spin as re, Pagination as oe } from "@aplus-frontend/antdv";
3
+ import { useTablePaging as ie } from "../ap-table/hooks/use-table-paging-ng.mjs";
4
4
  import "../config-provider/index.mjs";
5
- import { isUndefined as F, isNumber as re, omit as oe } from "lodash-unified";
6
- import { useOfflineList as ie } from "./hooks/use-offline-list.mjs";
5
+ import { isUndefined as L, isNumber as le, omit as se } from "lodash-unified";
6
+ import { useOfflineList as ue } from "./hooks/use-offline-list.mjs";
7
7
  import "vue-virtual-scroller/dist/vue-virtual-scroller.css";
8
- import { RecycleScroller as le, DynamicScroller as se, DynamicScrollerItem as ue } from "vue-virtual-scroller";
9
- import { useNamespace as ce } from "../config-provider/hooks/use-namespace.mjs";
10
- const be = /* @__PURE__ */ X({
8
+ import { RecycleScroller as ce, DynamicScroller as me, DynamicScrollerItem as de } from "vue-virtual-scroller";
9
+ import { useNamespace as fe } from "../config-provider/hooks/use-namespace.mjs";
10
+ const we = /* @__PURE__ */ _({
11
+ name: "ApList",
11
12
  __name: "index",
12
13
  props: {
13
14
  dataSource: {},
@@ -27,140 +28,149 @@ const be = /* @__PURE__ */ X({
27
28
  rowKey: {},
28
29
  adaptive: { type: Boolean, default: !1 }
29
30
  },
30
- setup(L, { expose: N }) {
31
- const R = V.PRESENTED_IMAGE_SIMPLE, n = L, { b: m, e: y, bm: T, m: $ } = ce("ap-list"), b = Y(), {
32
- formRef: k,
33
- submit: w,
34
- reset: B,
35
- handleTableChange: j,
36
- data: S,
37
- refresh: q,
38
- refreshByDelete: A,
39
- tableProps: D
40
- } = ne({
41
- async request(t) {
42
- var r;
43
- const a = await ((r = n.request) == null ? void 0 : r.call(n, t));
31
+ setup(O, { expose: N }) {
32
+ const R = E.PRESENTED_IMAGE_SIMPLE, r = O, { b: d, e: y, bm: T, m: $ } = fe("ap-list"), k = x(), {
33
+ formRef: S,
34
+ submit: P,
35
+ reset: w,
36
+ handleTableChange: A,
37
+ data: v,
38
+ refresh: j,
39
+ refreshByDelete: q,
40
+ tableProps: B,
41
+ getPaging: K,
42
+ setPaging: M
43
+ } = ie({
44
+ async request(e) {
45
+ var n;
46
+ const a = await ((n = r.request) == null ? void 0 : n.call(r, e));
44
47
  return {
45
48
  data: (a == null ? void 0 : a.data) || [],
46
49
  total: (a == null ? void 0 : a.total) || 0
47
50
  };
48
51
  },
49
- defaultParams: n.params,
50
- defaultData: n.defaultData,
51
- manual: n.manual,
52
- pagination: n.pagination,
53
- formatParams: n.beforeSearchSubmit
54
- }), K = { form: k }, {
55
- pagination: z,
56
- dataSource: M,
57
- onChange: W
58
- } = ie(n);
59
- function G(t, a) {
60
- if (e(f)) {
61
- W(t, a);
52
+ defaultParams: r.params,
53
+ defaultData: r.defaultData,
54
+ manual: r.manual,
55
+ pagination: r.pagination,
56
+ formatParams: r.beforeSearchSubmit
57
+ }), W = { form: S }, {
58
+ pagination: D,
59
+ dataSource: G,
60
+ onChange: U
61
+ } = ue(r);
62
+ function H(e, a) {
63
+ if (t(f)) {
64
+ U(e, a);
62
65
  return;
63
66
  }
64
- j(
65
- { current: t, pageSize: a },
67
+ A(
68
+ { current: e, pageSize: a },
66
69
  {},
67
70
  {},
68
71
  { currentDataSource: [], action: "paginate" }
69
72
  );
70
73
  }
71
- const c = p(() => e(f) ? e(M) : e(S).records), d = p(() => F(n.loading) ? e(S).loading : n.loading), U = p(() => {
72
- var t, a;
73
- return n.pagination === !1 || n.virtual ? !1 : ((t = n.pagination) == null ? void 0 : t.hideOnSinglePage) !== !0 ? !0 : e(f) ? (((a = n.dataSource) == null ? void 0 : a.length) || 0) > e(z).pageSize : e(S).total > e(D).pagination.pageSize;
74
- }), f = p(() => !F(n.dataSource));
75
- Z(
76
- () => e(d),
77
- (t) => {
74
+ const c = p(() => t(f) ? t(G) : t(v).records), m = p(() => L(r.loading) ? t(v).loading : r.loading), J = p(() => {
75
+ var e, a;
76
+ return r.pagination === !1 || r.virtual ? !1 : ((e = r.pagination) == null ? void 0 : e.hideOnSinglePage) !== !0 ? !0 : t(f) ? (((a = r.dataSource) == null ? void 0 : a.length) || 0) > t(D).pageSize : t(v).total > t(B).pagination.pageSize;
77
+ }), f = p(() => !L(r.dataSource));
78
+ ee(
79
+ () => t(m),
80
+ (e) => {
78
81
  var a;
79
- (a = n.onLoadingChange) == null || a.call(n, t);
82
+ (a = r.onLoadingChange) == null || a.call(r, e);
80
83
  }
81
84
  );
82
- function H(t) {
83
- var a, r;
84
- (r = (a = b.value) == null ? void 0 : a.querySelector(t || ":first-child")) == null || r.scrollIntoView({ behavior: "smooth", block: "center" });
85
+ function Q(e) {
86
+ var a, n;
87
+ (n = (a = k.value) == null ? void 0 : a.querySelector(e || ":first-child")) == null || n.scrollIntoView({ behavior: "smooth", block: "center" });
85
88
  }
86
- function J(t = !1) {
89
+ function X(e = !1) {
87
90
  var o;
88
- const a = (o = k.value) == null ? void 0 : o.apForm, r = t ? a == null ? void 0 : a.getFieldsValueTransformed : a == null ? void 0 : a.getFieldsValue;
89
- return (r == null ? void 0 : r()) || {};
91
+ const a = (o = S.value) == null ? void 0 : o.apForm, n = e ? a == null ? void 0 : a.getFieldsValueTransformed : a == null ? void 0 : a.getFieldsValue;
92
+ return (n == null ? void 0 : n()) || {};
93
+ }
94
+ function Y(e) {
95
+ var a, n, o;
96
+ (o = (n = (a = S.value) == null ? void 0 : a.apForm) == null ? void 0 : n.setFieldsValue) == null || o.call(n, e);
90
97
  }
91
98
  return N({
92
- submit: () => w(),
93
- reset: () => B(),
94
- refresh: () => q(),
95
- refreshByDelete: (t) => A(t),
96
- scrollToFirstRow: H,
97
- getSearchFormValuesIfSetted: J
98
- }), (t, a) => (i(), s("div", {
99
- class: l([e(m)(), { [e($)("adaptive")]: t.adaptive }]),
100
- style: v(t.containerStyle)
99
+ submit: () => P(),
100
+ reset: () => w(),
101
+ refresh: () => j(),
102
+ refreshByDelete: (e) => q(e),
103
+ scrollToFirstRow: Q,
104
+ getSearchFormValuesIfSetted: X,
105
+ setPaging: M,
106
+ getPaging: K,
107
+ setSearchFormValuesIfSetted: Y
108
+ }), (e, a) => (i(), s("div", {
109
+ class: l([t(d)(), { [t($)("adaptive")]: e.adaptive }]),
110
+ style: h(e.containerStyle)
101
111
  }, [
102
- u(t.$slots, "header", {
103
- formIns: K,
104
- submit: e(w),
105
- reset: e(B)
112
+ u(e.$slots, "header", {
113
+ formIns: W,
114
+ submit: t(P),
115
+ reset: t(w)
106
116
  }),
107
- _("div", {
117
+ te("div", {
108
118
  class: l([
109
- e(m)("content-container"),
110
- { [e(T)("content-container", "spinning")]: d.value }
119
+ t(d)("content-container"),
120
+ { [t(T)("content-container", "spinning")]: m.value }
111
121
  ])
112
122
  }, [
113
- d.value ? (i(), s("div", {
123
+ m.value ? (i(), s("div", {
114
124
  key: 0,
115
- class: l(e(y)("spin-wrapper"))
125
+ class: l(t(y)("spin-wrapper"))
116
126
  }, [
117
- g(e(te), { spinning: d.value }, null, 8, ["spinning"])
127
+ g(t(re), { spinning: m.value }, null, 8, ["spinning"])
118
128
  ], 2)) : I("", !0),
119
- c.value.length === 0 ? u(t.$slots, "empty", {
129
+ c.value.length === 0 ? u(e.$slots, "empty", {
120
130
  key: 1,
121
- loading: d.value
131
+ loading: m.value
122
132
  }, () => [
123
- g(e(V), { image: e(R) }, null, 8, ["image"])
133
+ g(t(E), { image: t(R) }, null, 8, ["image"])
124
134
  ]) : (i(), s("div", {
125
135
  key: 2,
126
136
  ref_key: "contentRef",
127
- ref: b,
128
- style: v(t.contentStyle),
129
- class: l(e(y)("content"))
137
+ ref: k,
138
+ style: h(e.contentStyle),
139
+ class: l(t(y)("content"))
130
140
  }, [
131
- t.virtual ? (i(), s(E, { key: 0 }, [
132
- e(re)(t.virtual) ? (i(), O(e(le), {
141
+ e.virtual ? (i(), s(F, { key: 0 }, [
142
+ t(le)(e.virtual) ? (i(), V(t(ce), {
133
143
  key: 0,
134
- class: l(e(m)("scroll-wrapper")),
144
+ class: l(t(d)("scroll-wrapper")),
135
145
  items: c.value,
136
- "item-size": t.virtual,
137
- "key-field": n.rowKey || "id"
146
+ "item-size": e.virtual,
147
+ "key-field": r.rowKey || "id"
138
148
  }, {
139
- default: h(({ item: r, index: o }) => [
140
- u(t.$slots, "renderItem", {
141
- item: r,
149
+ default: b(({ item: n, index: o }) => [
150
+ u(e.$slots, "renderItem", {
151
+ item: n,
142
152
  index: o
143
153
  })
144
154
  ]),
145
155
  _: 3
146
- }, 8, ["class", "items", "item-size", "key-field"])) : (i(), O(e(se), {
156
+ }, 8, ["class", "items", "item-size", "key-field"])) : (i(), V(t(me), {
147
157
  key: 1,
148
158
  items: c.value,
149
- "min-item-size": t.virtual.minItemSize,
150
- class: l(e(m)("scroll-wrapper"))
159
+ "min-item-size": e.virtual.minItemSize,
160
+ class: l(t(d)("scroll-wrapper"))
151
161
  }, {
152
- default: h(({ item: r, index: o, active: Q }) => {
153
- var C, P;
162
+ default: b(({ item: n, index: o, active: Z }) => {
163
+ var z, C;
154
164
  return [
155
- g(e(ue), {
156
- item: r,
157
- active: Q,
165
+ g(t(de), {
166
+ item: n,
167
+ active: Z,
158
168
  "data-index": o,
159
- "size-dependencies": (P = (C = t.virtual).sizeDependencies) == null ? void 0 : P.call(C, r)
169
+ "size-dependencies": (C = (z = e.virtual).sizeDependencies) == null ? void 0 : C.call(z, n)
160
170
  }, {
161
- default: h(() => [
162
- u(t.$slots, "renderItem", {
163
- item: r,
171
+ default: b(() => [
172
+ u(e.$slots, "renderItem", {
173
+ item: n,
164
174
  index: o
165
175
  })
166
176
  ]),
@@ -170,30 +180,30 @@ const be = /* @__PURE__ */ X({
170
180
  }),
171
181
  _: 3
172
182
  }, 8, ["items", "min-item-size", "class"]))
173
- ], 64)) : u(t.$slots, "renderContent", {
183
+ ], 64)) : u(e.$slots, "renderContent", {
174
184
  key: 1,
175
185
  dataSource: c.value
176
186
  }, () => [
177
- (i(!0), s(E, null, x(c.value, (r, o) => u(t.$slots, "renderItem", {
178
- item: r,
187
+ (i(!0), s(F, null, ae(c.value, (n, o) => u(e.$slots, "renderItem", {
188
+ item: n,
179
189
  index: o
180
190
  })), 256))
181
191
  ])
182
192
  ], 6))
183
193
  ], 2),
184
- U.value ? (i(), s("div", {
194
+ J.value ? (i(), s("div", {
185
195
  key: 0,
186
- class: l(e(y)("footer")),
187
- style: v(t.footerWarpperStyle)
196
+ class: l(t(y)("footer")),
197
+ style: h(e.footerWarpperStyle)
188
198
  }, [
189
- g(e(ae), ee(
190
- f.value ? e(z) : e(oe)(e(D).pagination, ["showTotal"]),
191
- { onChange: G }
199
+ g(t(oe), ne(
200
+ f.value ? t(D) : t(se)(t(B).pagination, ["showTotal"]),
201
+ { onChange: H }
192
202
  ), null, 16)
193
203
  ], 6)) : I("", !0)
194
204
  ], 6));
195
205
  }
196
206
  });
197
207
  export {
198
- be as default
208
+ we as default
199
209
  };
@@ -1,6 +1,7 @@
1
1
  import { Ref, StyleValue } from 'vue';
2
2
  import { RequestData } from '../ap-table';
3
3
  import { Recordable } from '../type';
4
+ import { InternalPagingType } from '../ap-table/hooks/use-table-paging-ng';
4
5
  export type ApListProps<RecordType = any, ParamsType = Recordable> = {
5
6
  /**
6
7
  * 列表数据源,传入后`request`和`defaultData`都将失效
@@ -126,4 +127,23 @@ export type ApListExpose = {
126
127
  * @returns
127
128
  */
128
129
  getSearchFormValuesIfSetted: (transform?: boolean) => Recordable;
130
+ /**
131
+ * 设置查询表单的值
132
+ * @description 只有在自定义查询表单并且绑定了formRef才能设置查询表单的值
133
+ * @param fields 将要设置的值
134
+ * @returns
135
+ */
136
+ setSearchFormValuesIfSetted: (fields: any) => void;
137
+ /**
138
+ * 获取分页参数
139
+ * @returns
140
+ */
141
+ getPaging: () => InternalPagingType;
142
+ /**
143
+ * 设置表格分页参数
144
+ * @param nextPaging 新的分页参数
145
+ * @param refreshImmediately 是否立刻刷新数据,默认为`true`
146
+ * @returns
147
+ */
148
+ setPaging: (nextPaging: InternalPagingType, refreshImmediately?: boolean) => void;
129
149
  };
@@ -1,7 +1,7 @@
1
1
  import { ApColumnType, ApTableProps } from './interface';
2
2
  import { ColumnsType, ColumnType } from '@aplus-frontend/antdv/es/table';
3
3
  import { RowSelectionReturnType } from './hooks/use-table-row-selection';
4
- import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, ComputedRef, Ref, VNode } from 'vue';
4
+ import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, ComputedRef, VNode } from 'vue';
5
5
  declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
6
6
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & ApTableProps<RecordType> & Partial<{}>> & PublicProps;
7
7
  expose(exposed: ShallowUnwrapRef<{
@@ -10,6 +10,14 @@ declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __V
10
10
  refresh: () => void;
11
11
  setSearchFormValues: (fields: any) => void;
12
12
  getSearchFormValues: (transform?: boolean) => Partial<any> | undefined;
13
+ setPaging: (nextPaging: Partial<{
14
+ current: number;
15
+ pageSize: number;
16
+ }>, refreshImmediately?: boolean) => void;
17
+ getPaging: () => {
18
+ current?: number | undefined;
19
+ pageSize?: number | undefined;
20
+ };
13
21
  getShownColumns: () => ColumnsType<RecordType>;
14
22
  dataSource: ComputedRef<RecordType[]>;
15
23
  rowSelection: {
@@ -26,7 +34,7 @@ declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __V
26
34
  };
27
35
  scrollBar: {
28
36
  x: {
29
- getCurrentScroll: () => 0 | Ref<number, number>;
37
+ getCurrentScroll: () => number;
30
38
  scroll: (percent: number) => void | undefined;
31
39
  };
32
40
  y: undefined;