@aplus-frontend/ui 0.6.0-beta.0 → 0.6.0-beta.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (335) hide show
  1. package/es/src/ap-action/group/index.vue.d.ts +1 -1
  2. package/es/src/ap-action/item-dropdown/index.vue.d.ts +1 -1
  3. package/es/src/ap-button/ap-button.vue.mjs +1 -1
  4. package/es/src/ap-field/date/helper.mjs +12 -12
  5. package/es/src/ap-field/date/index.vue.d.ts +1 -1
  6. package/es/src/ap-field/date-range/index.vue.d.ts +1 -1
  7. package/es/src/ap-field/number/index.vue.d.ts +1 -1
  8. package/es/src/ap-field/rate/index.vue.d.ts +1 -1
  9. package/es/src/ap-field/select/index.vue.d.ts +1 -1
  10. package/es/src/ap-field/tree-select/index.vue.d.ts +1 -1
  11. package/es/src/ap-form/ap-form.vue2.mjs +57 -58
  12. package/es/src/ap-form/interface.d.ts +8 -0
  13. package/es/src/ap-form/item/index.vue.d.ts +1 -1
  14. package/es/src/ap-form/item/index.vue.mjs +33 -28
  15. package/es/src/ap-form/items/checkbox/index.vue.mjs +1 -0
  16. package/es/src/ap-form/items/date/index.vue.mjs +8 -7
  17. package/es/src/ap-form/items/date-range/index.vue.mjs +1 -0
  18. package/es/src/ap-form/items/number/index.vue.d.ts +8 -8
  19. package/es/src/ap-form/items/number/index.vue.mjs +9 -8
  20. package/es/src/ap-form/items/radio/index.vue.mjs +1 -0
  21. package/es/src/ap-form/items/select/index.vue.d.ts +8 -8
  22. package/es/src/ap-form/items/select/index.vue.mjs +7 -6
  23. package/es/src/ap-form/items/switch/index.vue.mjs +1 -0
  24. package/es/src/ap-form/items/text/index.vue.d.ts +2 -2
  25. package/es/src/ap-form/items/text/index.vue2.mjs +8 -7
  26. package/es/src/ap-form/items/text/password.vue.d.ts +2 -2
  27. package/es/src/ap-form/items/text/password.vue.mjs +1 -0
  28. package/es/src/ap-form/items/text-area/index.vue.mjs +1 -0
  29. package/es/src/ap-form/items/tree-select/index.vue.d.ts +8 -8
  30. package/es/src/ap-form/items/tree-select/index.vue.mjs +6 -5
  31. package/es/src/ap-form/render/item.vue.d.ts +1 -1
  32. package/es/src/ap-form/render/item.vue.mjs +5 -4
  33. package/es/src/ap-form/search-form/components/popover-filter.vue.d.ts +131 -2
  34. package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +41 -37
  35. package/es/src/ap-form/search-form/components/popover-sorter/index.vue2.mjs +88 -69
  36. package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.mjs +8 -8
  37. package/es/src/ap-form/search-form/index.vue.d.ts +6 -2
  38. package/es/src/ap-form/search-form/index.vue.mjs +91 -89
  39. package/es/src/ap-grid/constants.d.ts +3 -3
  40. package/es/src/ap-grid/constants.mjs +9 -9
  41. package/es/src/ap-grid/editable/form-item.vue.mjs +95 -84
  42. package/es/src/ap-grid/editable/index.vue.mjs +90 -79
  43. package/es/src/ap-grid/hooks/use-inner-params.d.ts +2 -1
  44. package/es/src/ap-grid/hooks/use-inner-params.mjs +24 -35
  45. package/es/src/ap-grid/index.vue.mjs +171 -148
  46. package/es/src/ap-grid/interface.d.ts +3 -3
  47. package/es/src/ap-grid/utils/table.mjs +32 -32
  48. package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +1 -1
  49. package/es/src/ap-table/ap-table.vue2.mjs +209 -198
  50. package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +1 -1
  51. package/es/src/ap-table/constants.d.ts +30 -30
  52. package/es/src/ap-table/hooks/use-table-paging-ng.d.ts +9 -2
  53. package/es/src/ap-table/hooks/use-table-paging-ng.mjs +147 -130
  54. package/es/src/ap-table/utils.d.ts +14 -14
  55. package/es/src/ap-tag/ap-tag-group.vue.mjs +32 -28
  56. package/es/src/ap-tag/ap-tag.vue.d.ts +1 -0
  57. package/es/src/ap-tag/ap-tag.vue.mjs +18 -12
  58. package/es/src/ap-tag/interface.d.ts +4 -0
  59. package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +3 -3
  60. package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +93 -73
  61. package/es/src/business/ap-expand-alert/index.d.ts +4 -4
  62. package/es/src/business/ap-export-group/ApExportGroup.vue.d.ts +1 -0
  63. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +109 -99
  64. package/es/src/business/ap-export-group/index.d.ts +3 -0
  65. package/es/src/business/ap-export-group/interface.d.ts +7 -2
  66. package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +27 -25
  67. package/es/src/business/ap-label/ApLabel.d.ts +1 -1
  68. package/es/src/business/ap-label/constans.mjs +1 -1
  69. package/es/src/business/ap-label/index.d.ts +3 -3
  70. package/es/src/business/ap-ladder/ApLadder.d.ts +1 -1
  71. package/es/src/business/ap-ladder/index.d.ts +3 -3
  72. package/es/src/business/ap-status/interface.d.ts +1 -1
  73. package/es/src/business/ap-table-modal/modal-title.vue2.mjs +2 -2
  74. package/es/src/business/ap-view/ap-view.vue.d.ts +1 -0
  75. package/es/src/business/ap-view/ap-view.vue2.mjs +136 -117
  76. package/es/src/business/ap-view/components/main-button-content.vue2.mjs +60 -48
  77. package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +86 -80
  78. package/es/src/business/ap-view/hooks/use-view-provide.d.ts +1 -0
  79. package/es/src/business/ap-view/index.d.ts +3 -0
  80. package/es/src/business/ap-view/interface.d.ts +8 -0
  81. package/es/src/business/batch-input-group/form-item.vue.d.ts +1 -1
  82. package/es/src/business/batch-input-group/form-item.vue.mjs +1 -0
  83. package/es/src/business/batch-input-group/index.vue.d.ts +1 -1
  84. package/es/src/business/hooks/usePageListApGrid.mjs +3 -5
  85. package/es/src/check-card/group.vue.d.ts +1 -1
  86. package/es/src/check-card/index.vue2.mjs +1 -1
  87. package/es/src/config-provider/config-provider-props.d.ts +0 -5
  88. package/es/src/config-provider/config-provider-props.mjs +0 -4
  89. package/es/src/config-provider/config-provider.d.ts +0 -138
  90. package/es/src/config-provider/config-provider.mjs +21 -26
  91. package/es/src/config-provider/hooks/use-global-config.d.ts +0 -5
  92. package/es/src/config-provider/index.d.ts +0 -652
  93. package/es/src/design-token/index.mjs +9 -3
  94. package/es/src/editable-table/form-item.vue.d.ts +2 -14
  95. package/es/src/editable-table/form-item.vue.mjs +85 -77
  96. package/es/src/editable-table/index.vue.d.ts +2 -16
  97. package/es/src/editable-table/index.vue.mjs +86 -78
  98. package/es/src/editable-table/interface.d.ts +7 -0
  99. package/es/src/locale/lang/en.mjs +1 -1
  100. package/es/src/locale/lang/zh-cn.mjs +1 -1
  101. package/lib/src/ap-action/group/index.vue.d.ts +1 -1
  102. package/lib/src/ap-action/item-dropdown/index.vue.d.ts +1 -1
  103. package/lib/src/ap-button/ap-button.vue.js +1 -1
  104. package/lib/src/ap-field/date/helper.js +1 -1
  105. package/lib/src/ap-field/date/index.vue.d.ts +1 -1
  106. package/lib/src/ap-field/date-range/index.vue.d.ts +1 -1
  107. package/lib/src/ap-field/number/index.vue.d.ts +1 -1
  108. package/lib/src/ap-field/rate/index.vue.d.ts +1 -1
  109. package/lib/src/ap-field/select/index.vue.d.ts +1 -1
  110. package/lib/src/ap-field/tree-select/index.vue.d.ts +1 -1
  111. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  112. package/lib/src/ap-form/interface.d.ts +8 -0
  113. package/lib/src/ap-form/item/index.vue.d.ts +1 -1
  114. package/lib/src/ap-form/item/index.vue.js +1 -1
  115. package/lib/src/ap-form/items/checkbox/index.vue.js +1 -1
  116. package/lib/src/ap-form/items/date/index.vue.js +1 -1
  117. package/lib/src/ap-form/items/date-range/index.vue.js +1 -1
  118. package/lib/src/ap-form/items/number/index.vue.d.ts +8 -8
  119. package/lib/src/ap-form/items/number/index.vue.js +1 -1
  120. package/lib/src/ap-form/items/radio/index.vue.js +1 -1
  121. package/lib/src/ap-form/items/select/index.vue.d.ts +8 -8
  122. package/lib/src/ap-form/items/select/index.vue.js +1 -1
  123. package/lib/src/ap-form/items/switch/index.vue.js +1 -1
  124. package/lib/src/ap-form/items/text/index.vue.d.ts +2 -2
  125. package/lib/src/ap-form/items/text/index.vue2.js +1 -1
  126. package/lib/src/ap-form/items/text/password.vue.d.ts +2 -2
  127. package/lib/src/ap-form/items/text/password.vue.js +1 -1
  128. package/lib/src/ap-form/items/text-area/index.vue.js +1 -1
  129. package/lib/src/ap-form/items/tree-select/index.vue.d.ts +8 -8
  130. package/lib/src/ap-form/items/tree-select/index.vue.js +1 -1
  131. package/lib/src/ap-form/render/item.vue.d.ts +1 -1
  132. package/lib/src/ap-form/render/item.vue.js +1 -1
  133. package/lib/src/ap-form/search-form/components/popover-filter.vue.d.ts +131 -2
  134. package/lib/src/ap-form/search-form/components/popover-filter.vue2.js +1 -1
  135. package/lib/src/ap-form/search-form/components/popover-sorter/index.vue2.js +1 -1
  136. package/lib/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.js +1 -1
  137. package/lib/src/ap-form/search-form/index.vue.d.ts +6 -2
  138. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  139. package/lib/src/ap-grid/constants.d.ts +3 -3
  140. package/lib/src/ap-grid/constants.js +1 -1
  141. package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
  142. package/lib/src/ap-grid/editable/index.vue.js +1 -1
  143. package/lib/src/ap-grid/hooks/use-inner-params.d.ts +2 -1
  144. package/lib/src/ap-grid/hooks/use-inner-params.js +1 -1
  145. package/lib/src/ap-grid/index.vue.js +1 -1
  146. package/lib/src/ap-grid/interface.d.ts +3 -3
  147. package/lib/src/ap-grid/utils/table.js +1 -1
  148. package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +1 -1
  149. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  150. package/lib/src/ap-table/components/setting/tree-select/index.vue2.js +1 -1
  151. package/lib/src/ap-table/constants.d.ts +30 -30
  152. package/lib/src/ap-table/hooks/use-table-paging-ng.d.ts +9 -2
  153. package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
  154. package/lib/src/ap-table/utils.d.ts +14 -14
  155. package/lib/src/ap-tag/ap-tag-group.vue.js +1 -1
  156. package/lib/src/ap-tag/ap-tag.vue.d.ts +1 -0
  157. package/lib/src/ap-tag/ap-tag.vue.js +1 -1
  158. package/lib/src/ap-tag/interface.d.ts +4 -0
  159. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +3 -3
  160. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
  161. package/lib/src/business/ap-expand-alert/index.d.ts +4 -4
  162. package/lib/src/business/ap-export-group/ApExportGroup.vue.d.ts +1 -0
  163. package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
  164. package/lib/src/business/ap-export-group/index.d.ts +3 -0
  165. package/lib/src/business/ap-export-group/interface.d.ts +7 -2
  166. package/lib/src/business/ap-input-radio/ApInputRadio.vue2.js +1 -1
  167. package/lib/src/business/ap-label/ApLabel.d.ts +1 -1
  168. package/lib/src/business/ap-label/constans.js +1 -1
  169. package/lib/src/business/ap-label/index.d.ts +3 -3
  170. package/lib/src/business/ap-ladder/ApLadder.d.ts +1 -1
  171. package/lib/src/business/ap-ladder/index.d.ts +3 -3
  172. package/lib/src/business/ap-status/interface.d.ts +1 -1
  173. package/lib/src/business/ap-table-modal/modal-title.vue2.js +1 -1
  174. package/lib/src/business/ap-view/ap-view.vue.d.ts +1 -0
  175. package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
  176. package/lib/src/business/ap-view/components/main-button-content.vue2.js +1 -1
  177. package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -1
  178. package/lib/src/business/ap-view/hooks/use-view-provide.d.ts +1 -0
  179. package/lib/src/business/ap-view/index.d.ts +3 -0
  180. package/lib/src/business/ap-view/interface.d.ts +8 -0
  181. package/lib/src/business/batch-input-group/form-item.vue.d.ts +1 -1
  182. package/lib/src/business/batch-input-group/form-item.vue.js +1 -1
  183. package/lib/src/business/batch-input-group/index.vue.d.ts +1 -1
  184. package/lib/src/business/hooks/usePageListApGrid.js +1 -1
  185. package/lib/src/check-card/group.vue.d.ts +1 -1
  186. package/lib/src/check-card/index.vue2.js +1 -1
  187. package/lib/src/config-provider/config-provider-props.d.ts +0 -5
  188. package/lib/src/config-provider/config-provider-props.js +1 -1
  189. package/lib/src/config-provider/config-provider.d.ts +0 -138
  190. package/lib/src/config-provider/config-provider.js +1 -1
  191. package/lib/src/config-provider/hooks/use-global-config.d.ts +0 -5
  192. package/lib/src/config-provider/index.d.ts +0 -652
  193. package/lib/src/design-token/index.js +1 -1
  194. package/lib/src/editable-table/form-item.vue.d.ts +2 -14
  195. package/lib/src/editable-table/form-item.vue.js +1 -1
  196. package/lib/src/editable-table/index.vue.d.ts +2 -16
  197. package/lib/src/editable-table/index.vue.js +1 -1
  198. package/lib/src/editable-table/interface.d.ts +7 -0
  199. package/lib/src/locale/lang/en.js +1 -1
  200. package/lib/src/locale/lang/zh-cn.js +1 -1
  201. package/package.json +4 -4
  202. package/theme/antd-global-overwrite/admin/index.css +14 -27
  203. package/theme/antd-global-overwrite/admin/index.less +1 -0
  204. package/theme/antd-global-overwrite/admin/modal.css +8 -24
  205. package/theme/antd-global-overwrite/admin/modal.less +9 -24
  206. package/theme/antd-global-overwrite/admin/table.css +3 -3
  207. package/theme/antd-global-overwrite/admin/table.less +3 -3
  208. package/theme/antd-global-overwrite/admin/tooltip.css +3 -0
  209. package/theme/antd-global-overwrite/admin/tooltip.less +3 -0
  210. package/theme/antd-global-overwrite/aplus/index.css +13 -20
  211. package/theme/antd-global-overwrite/aplus/index.less +1 -0
  212. package/theme/antd-global-overwrite/aplus/modal.css +7 -17
  213. package/theme/antd-global-overwrite/aplus/modal.less +8 -18
  214. package/theme/antd-global-overwrite/aplus/table.css +3 -3
  215. package/theme/antd-global-overwrite/aplus/table.less +3 -3
  216. package/theme/antd-global-overwrite/aplus/tooltip.css +3 -0
  217. package/theme/antd-global-overwrite/aplus/tooltip.less +3 -0
  218. package/theme/ap-action/item-dropdown.css +24 -6
  219. package/theme/ap-action/item-dropdown.less +1 -1
  220. package/theme/ap-action/item.css +25 -7
  221. package/theme/ap-action/item.less +1 -1
  222. package/theme/ap-appendix/ap-appendix.css +28 -8
  223. package/theme/ap-appendix/ap-appendix.less +6 -4
  224. package/theme/ap-attachment/ap-attachment.css +28 -9
  225. package/theme/ap-attachment/ap-attachment.less +6 -6
  226. package/theme/ap-batch-action/ap-batch-action.css +28 -7
  227. package/theme/ap-batch-action/ap-batch-action.less +6 -3
  228. package/theme/ap-button/ap-button.css +22 -4
  229. package/theme/ap-card/ap-card.css +22 -4
  230. package/theme/ap-descriptions/ap-descriptions.css +27 -9
  231. package/theme/ap-descriptions/ap-descriptions.less +5 -5
  232. package/theme/ap-download/ap-download.css +29 -14
  233. package/theme/ap-download/ap-download.less +8 -11
  234. package/theme/ap-expand-alert/ap-expand-alert.css +24 -6
  235. package/theme/ap-expand-alert/ap-expand-alert.less +5 -5
  236. package/theme/ap-field/checkbox.css +23 -5
  237. package/theme/ap-field/checkbox.less +2 -1
  238. package/theme/ap-field/index.css +24 -6
  239. package/theme/ap-field/number.css +22 -4
  240. package/theme/ap-field/radio.css +23 -5
  241. package/theme/ap-field/radio.less +1 -1
  242. package/theme/ap-field/text-area.css +22 -4
  243. package/theme/ap-form/ap-form-item-group.css +22 -4
  244. package/theme/ap-form/ap-form-item.css +33 -10
  245. package/theme/ap-form/ap-form-item.less +17 -9
  246. package/theme/ap-form/drawer-form.css +22 -4
  247. package/theme/ap-form/index.css +61 -26
  248. package/theme/ap-form/item-text-group.css +22 -4
  249. package/theme/ap-form/item-text.css +22 -4
  250. package/theme/ap-form/modal-form.css +22 -4
  251. package/theme/ap-form/search-form-sorter.css +36 -17
  252. package/theme/ap-form/search-form-sorter.less +8 -7
  253. package/theme/ap-form/search-form.css +61 -26
  254. package/theme/ap-form/search-form.less +17 -6
  255. package/theme/ap-grid/editable.css +24 -6
  256. package/theme/ap-grid/editable.less +3 -2
  257. package/theme/ap-grid/index.css +117 -43
  258. package/theme/ap-grid/index.less +35 -11
  259. package/theme/ap-group-search/ap-extension-select.css +22 -4
  260. package/theme/ap-group-search/ap-group-search.css +22 -4
  261. package/theme/ap-group-search/ap-popover-select.css +22 -4
  262. package/theme/ap-image/ap-image.css +22 -4
  263. package/theme/ap-input-radio/ap-input-radio.css +22 -4
  264. package/theme/ap-label/ap-label.css +22 -4
  265. package/theme/ap-ladder/ap-ladder.css +26 -7
  266. package/theme/ap-ladder/ap-ladder.less +4 -3
  267. package/theme/ap-layout/ap-info-layout.css +22 -4
  268. package/theme/ap-list/index.css +23 -5
  269. package/theme/ap-list/index.less +2 -1
  270. package/theme/ap-product-info/ap-product-info.css +22 -4
  271. package/theme/ap-select-layout/ap-select-layout.css +30 -12
  272. package/theme/ap-select-layout/ap-select-layout.less +8 -8
  273. package/theme/ap-size-input/ap-size-input.css +22 -4
  274. package/theme/ap-status/ap-status.css +24 -7
  275. package/theme/ap-status/ap-status.less +2 -4
  276. package/theme/ap-summary/index.css +25 -7
  277. package/theme/ap-summary/index.less +3 -3
  278. package/theme/ap-table/ap-table-index.css +27 -9
  279. package/theme/ap-table/ap-table-index.less +5 -5
  280. package/theme/ap-table/ap-table-paragraph-ellipsis.css +22 -4
  281. package/theme/ap-table/ap-table-paragraph-ellipsis.less +1 -1
  282. package/theme/ap-table/ap-table.css +109 -55
  283. package/theme/ap-table/ap-table.less +11 -9
  284. package/theme/ap-table/setting/index.css +30 -13
  285. package/theme/ap-table/setting/modal.css +26 -9
  286. package/theme/ap-table/setting/modal.less +1 -2
  287. package/theme/ap-table/setting/select-group.css +24 -5
  288. package/theme/ap-table/setting/select-group.less +2 -1
  289. package/theme/ap-table/setting/sortable-item-meta.css +22 -4
  290. package/theme/ap-table/setting/sortable-item.css +22 -4
  291. package/theme/ap-table/setting/sorter.css +24 -7
  292. package/theme/ap-table-modal/index.css +109 -55
  293. package/theme/ap-tag/ap-tag-group.css +24 -6
  294. package/theme/ap-tag/ap-tag-group.less +4 -5
  295. package/theme/ap-tag/ap-tag.css +45 -18
  296. package/theme/ap-tag/ap-tag.less +37 -24
  297. package/theme/ap-title/ap-title.css +29 -9
  298. package/theme/ap-title/ap-title.less +7 -5
  299. package/theme/ap-upload/index.css +30 -12
  300. package/theme/ap-upload/multiple-file.css +24 -6
  301. package/theme/ap-upload/multiple-file.less +2 -2
  302. package/theme/ap-upload/picture.css +26 -8
  303. package/theme/ap-upload/picture.less +4 -4
  304. package/theme/ap-upload/single-file.css +24 -6
  305. package/theme/ap-upload/single-file.less +2 -2
  306. package/theme/ap-upload/upload.css +22 -4
  307. package/theme/ap-upload-single/index.css +22 -4
  308. package/theme/ap-view/ap-view.css +26 -4
  309. package/theme/ap-view/ap-view.less +4 -0
  310. package/theme/batch-input-group/index.css +25 -6
  311. package/theme/batch-input-group/popover-input.css +23 -4
  312. package/theme/batch-input-group/popover-input.less +1 -0
  313. package/theme/check-card/index.css +44 -26
  314. package/theme/check-card/index.less +17 -15
  315. package/theme/editable-table/index.css +77 -40
  316. package/theme/editable-table/index.less +9 -7
  317. package/theme/full-screen/index.css +22 -4
  318. package/theme/index.css +390 -182
  319. package/theme/index.less +1 -0
  320. package/theme/mask/index.css +22 -4
  321. package/theme/mixins/config.less +27 -5
  322. package/theme/mixins/mixins.css +22 -4
  323. package/theme/mixins/mixins.less +25 -0
  324. package/theme/scroll-bar/index.css +22 -4
  325. package/theme/scroll-view/index.css +22 -4
  326. package/theme/splitter/index.css +29 -11
  327. package/theme/text/group.css +22 -4
  328. package/theme/text/index.css +25 -7
  329. package/theme/ui-mode.css +94 -0
  330. package/theme/ui-mode.less +95 -0
  331. package/theme/work-order-modal/index.css +22 -4
  332. package/es/src/config-provider/css-var.d.ts +0 -139
  333. package/es/src/config-provider/css-var.mjs +0 -278
  334. package/lib/src/config-provider/css-var.d.ts +0 -139
  335. package/lib/src/config-provider/css-var.js +0 -1
@@ -1,28 +1,30 @@
1
- import { defineComponent as ke, useSlots as Be, getCurrentInstance as Fe, ref as k, computed as n, unref as o, watch as B, createElementBlock as F, openBlock as s, normalizeStyle as A, normalizeClass as g, createCommentVNode as S, createElementVNode as I, createVNode as X, mergeProps as h, createSlots as J, withCtx as v, Fragment as Q, renderList as V, createBlock as p, resolveDynamicComponent as L, renderSlot as D, normalizeProps as Ie, guardReactiveProps as Ee } from "vue";
2
- import { VxeTable as Pe, VxeColumn as Y } from "vxe-table";
1
+ import { defineComponent as Be, useSlots as Ie, getCurrentInstance as Ee, ref as F, computed as n, unref as o, watch as B, createElementBlock as I, openBlock as i, normalizeStyle as V, normalizeClass as g, createCommentVNode as y, createElementVNode as E, createVNode as X, mergeProps as h, createSlots as J, withCtx as v, Fragment as Q, renderList as L, createBlock as m, resolveDynamicComponent as D, renderSlot as O, normalizeProps as Pe, guardReactiveProps as Ne } from "vue";
2
+ import { VxeTable as Te, VxeColumn as Y } from "vxe-table";
3
3
  import "vxe-table/es/style.css";
4
4
  import "vxe-pc-ui/es/style.css";
5
5
  import { VxeUI as Z } from "vxe-pc-ui";
6
- import { isUndefined as b, omit as Ne } from "lodash-unified";
7
- import { ApForm as Te } from "../ap-form/index.mjs";
6
+ import { isUndefined as S, omit as ze } from "lodash-unified";
7
+ import { ApForm as Ae } from "../ap-form/index.mjs";
8
8
  import "../config-provider/index.mjs";
9
- import { noRenderAsFormItemValueList as ze } from "../ap-table/constants.mjs";
10
- import { getColumnOrder as ee, updateFormProps as _e, getFieldProps as Ae, getSearchFormItemRenderNode as Ve, recursionApColumns as oe } from "../ap-table/utils.mjs";
11
- import { useTablePaging as Le } from "../ap-table/hooks/use-table-paging-ng.mjs";
12
- import { Empty as ae, Pagination as De } from "@aplus-frontend/antdv";
13
- import { useInnerParams as Oe } from "./hooks/use-inner-params.mjs";
14
- import { toVxeProps as $e, getRowExpandProps as Ke, getRowSelectionProps as We } from "./utils/table.mjs";
15
- import je from "../ap-table/hooks/use-table-row-selection.mjs";
16
- import { useProvideApTable as He } from "../ap-table/context.mjs";
17
- import { sizeReverseMap as Me, sizeMap as qe, ROW_SELECTION_FIELD as Ue } from "./constants.mjs";
18
- import { useRenderColumns as Ge } from "./hooks/use-render-columns.mjs";
19
- import { useToken as Xe } from "@aplus-frontend/antdv/es/theme/internal";
9
+ import { noRenderAsFormItemValueList as _e } from "../ap-table/constants.mjs";
10
+ import { getColumnOrder as ee, updateFormProps as Ve, getFieldProps as Le, getSearchFormItemRenderNode as De, recursionApColumns as oe } from "../ap-table/utils.mjs";
11
+ import { useTablePaging as Oe } from "../ap-table/hooks/use-table-paging-ng.mjs";
12
+ import { Empty as ae, Pagination as $e } from "@aplus-frontend/antdv";
13
+ import { useInnerParams as Ke } from "./hooks/use-inner-params.mjs";
14
+ import { toVxeProps as We, getRowExpandProps as je, getRowSelectionProps as He } from "./utils/table.mjs";
15
+ import Me from "../ap-table/hooks/use-table-row-selection.mjs";
16
+ import { useProvideApTable as qe } from "../ap-table/context.mjs";
17
+ import { sizeReverseMap as Ue, sizeMap as Ge, ROW_SELECTION_FIELD as Xe } from "./constants.mjs";
18
+ import { useRenderColumns as Je } from "./hooks/use-render-columns.mjs";
19
+ import { useToken as Qe } from "@aplus-frontend/antdv/es/theme/internal";
20
20
  import "../scroll-bar/index.mjs";
21
- import { useNamespace as Je } from "../config-provider/hooks/use-namespace.mjs";
22
- import { useGlobalConfig as Qe } from "../config-provider/hooks/use-global-config.mjs";
23
- import { useLocale as Ye } from "../config-provider/hooks/use-locale.mjs";
24
- import Ze from "../scroll-bar/index.vue.mjs";
25
- const Bo = /* @__PURE__ */ ke({
21
+ import { isDef as Ye } from "../utils/index.mjs";
22
+ import { getValidVNodeList as Ze } from "../utils/slot.mjs";
23
+ import { useNamespace as eo } from "../config-provider/hooks/use-namespace.mjs";
24
+ import { useGlobalConfig as oo } from "../config-provider/hooks/use-global-config.mjs";
25
+ import { useLocale as ao } from "../config-provider/hooks/use-locale.mjs";
26
+ import ro from "../scroll-bar/index.vue.mjs";
27
+ const To = /* @__PURE__ */ Be({
26
28
  name: "ApGrid",
27
29
  __name: "index",
28
30
  props: {
@@ -85,6 +87,7 @@ const Bo = /* @__PURE__ */ ke({
85
87
  loadingConfig: {},
86
88
  headerCellConfig: {},
87
89
  footerCellConfig: {},
90
+ round: { type: Boolean, default: void 0 },
88
91
  columns: {},
89
92
  rowSelection: { type: Boolean },
90
93
  card: { type: Boolean, default: !1 },
@@ -100,8 +103,8 @@ const Bo = /* @__PURE__ */ ke({
100
103
  searchFormWrapperStyle: {},
101
104
  tableWrapperStyle: {},
102
105
  wrapperStyle: {},
103
- manual: { type: Boolean, default: !1 },
104
- size: { default: void 0 },
106
+ manual: { type: Boolean, default: void 0 },
107
+ size: { default: "mini" },
105
108
  adaptive: { type: Boolean, default: !1 },
106
109
  columnResizable: { type: [Boolean, Object], default: !1 },
107
110
  rowKey: { default: "key" },
@@ -112,69 +115,77 @@ const Bo = /* @__PURE__ */ ke({
112
115
  },
113
116
  setup(re, { expose: te }) {
114
117
  var G;
115
- const O = Be(), a = re, w = (G = Fe()) == null ? void 0 : G.appContext.app;
118
+ const C = Ie(), a = re, w = (G = Ee()) == null ? void 0 : G.appContext.app;
116
119
  w && !w.__VXE_PC_UI_INSTALLED__ && (w.use(Z), w.__VXE_PC_UI_INSTALLED__ = !0);
117
- const { e: E, b: c, be: le } = Je("ap-grid"), ne = Qe("valueTypeMap"), d = k([]), $ = k([]), m = k(), C = k(a.size), [, i] = Xe(), { t: se } = Ye();
120
+ const { e: P, b: c, be: le } = eo("ap-grid"), ne = oo("valueTypeMap"), s = F([]), $ = F([]), u = F(), x = F(a.size), [, d] = Qe(), { t: se } = ao();
118
121
  Z.setConfig({
119
122
  i18n: (e, r) => se(`ap.${e}`, r)
120
123
  });
121
- const { renderConfig: de, updateSignal: ie } = Ge(d);
124
+ const { renderConfig: ie, updateSignal: de } = Je(s);
122
125
  let K = 0;
123
126
  const ce = n(() => {
124
- if (m.value)
125
- return m.value.$el.querySelector(
127
+ if (u.value)
128
+ return u.value.$el.querySelector(
126
129
  ".vxe-table--header-inner-wrapper"
127
130
  );
128
131
  }), W = n(() => {
129
132
  var e, r, l;
130
133
  return K++, ((l = (r = (e = a.columns) == null ? void 0 : e.filter(
131
- (t) => !t.hideInSearch && t.dataIndex && (t.valueType || t.customRenderFormItem) && !ze.includes(t.valueType)
132
- )) == null ? void 0 : r.sort((t, u) => {
133
- let y = ee(t.order);
134
- return ee(u.order) - y;
134
+ (t) => !t.hideInSearch && t.dataIndex && (t.valueType || t.customRenderFormItem) && !_e.includes(t.valueType)
135
+ )) == null ? void 0 : r.sort((t, p) => {
136
+ let b = ee(t.order);
137
+ return ee(p.order) - b;
135
138
  })) == null ? void 0 : l.map((t) => {
136
- const u = _e(
139
+ const p = Ve(
137
140
  t,
138
- Ae(t.fieldProps, {})
139
- ), y = {
141
+ Le(t.fieldProps, {})
142
+ ), b = {
140
143
  ...t,
141
144
  fieldProps: {
142
145
  label: t.title,
143
146
  name: t.dataIndex,
144
- ...u || {},
147
+ // tips: 在表格中的查询表单项默认是带边框的
148
+ bordered: !0,
149
+ ...p || {},
145
150
  _signal: K
146
151
  },
147
152
  renderNode: void 0
148
153
  };
149
- return y.renderNode = Ve(
150
- y,
154
+ return b.renderNode = De(
155
+ b,
151
156
  o(ne)
152
- ), y;
157
+ ), b;
153
158
  })) || [];
154
- }), ue = n(() => [
159
+ }), ue = n(() => {
160
+ var r;
161
+ return Ye(a.manual) ? a.manual : Ze(((r = C.searchFormExtra) == null ? void 0 : r.call(C)) || []).some((l) => {
162
+ var t;
163
+ return ((t = l.type) == null ? void 0 : t.name) === "ApView";
164
+ });
165
+ }), pe = n(() => [
155
166
  c(),
156
167
  a.card ? null : c("wrapper"),
157
168
  a.adaptive ? c("adaptive") : null,
158
169
  a.sticky ? c("sticky") : null
159
- ].filter(Boolean)), j = n(() => oe(o(d), (e) => {
170
+ ].filter(Boolean)), j = n(() => oe(o(s), (e) => {
160
171
  if (e.sorter === !0)
161
172
  return e.key || e.dataIndex;
162
- }).filter(Boolean)), H = n(() => oe(o(d), (e) => {
173
+ }).filter(Boolean)), H = n(() => oe(o(s), (e) => {
163
174
  if (e.filters && !e.onFilter)
164
175
  return e.key || e.dataIndex;
165
176
  }).filter(Boolean)), {
166
- formRef: P,
167
- submit: N,
168
- reset: T,
169
- refresh: pe,
177
+ formRef: N,
178
+ submit: T,
179
+ reset: z,
180
+ refresh: me,
170
181
  data: f,
171
182
  tableProps: M,
172
- setDataSource: me,
173
- handleTableChange: fe
174
- } = Le({
183
+ setDataSource: fe,
184
+ handleTableChangeOptional: ge
185
+ } = Oe({
175
186
  async request(e) {
176
187
  var l;
177
- if (!R.value.preserveSelectedRowKeys && b(a.dataSource) && _(), !b(a.dataSource)) {
188
+ if (!k.value.preserveSelectedRowKeys && S(a.dataSource) && _(), !S(a.dataSource)) {
178
189
  const t = e.pageSize * (e.current - 1);
179
190
  return {
180
191
  data: (a.pagination === !1 ? a.dataSource : a.dataSource.slice(t, t + e.pageSize)) || [],
@@ -192,83 +203,88 @@ const Bo = /* @__PURE__ */ ke({
192
203
  sortFields: j,
193
204
  defaultParams: a.params,
194
205
  defaultData: a.defaultData,
195
- manual: a.manual,
206
+ manual: o(ue),
196
207
  formatParams: a.beforeSearchSubmit,
197
- pagination: a.pagination
198
- }), { sortChangeEvent: ge, filterChangeEvent: he, paginationChangeEvent: ve } = Oe(fe);
199
- He({
200
- columns: n(() => d.value),
208
+ pagination: a.pagination,
209
+ onClickReset: ke
210
+ }), { sortChangeEvent: he, filterChangeEvent: ve, paginationChangeEvent: Ce } = Ke(ge);
211
+ qe({
212
+ columns: n(() => s.value),
201
213
  columnsBackup: n(() => $.value),
202
- size: n(() => C.value ? qe[C.value] : "middle"),
214
+ size: n(() => Ge[x.value]),
203
215
  updateColumns(e) {
204
216
  var r;
205
- d.value = e, (r = a.onShownColumnsChange) == null || r.call(a, e);
217
+ s.value = e, (r = a.onShownColumnsChange) == null || r.call(a, e);
206
218
  },
207
219
  updateSize(e) {
208
- C.value = Me[e];
220
+ x.value = Ue[e];
209
221
  },
210
222
  renderConfig: n(() => ({
211
223
  className: le("table-header", "title"),
212
- color: i.value.colorPrimary
224
+ color: d.value.colorPrimary
213
225
  })),
214
226
  dataSource: n(() => o(f).records),
215
227
  getSearchFormValues: U,
216
228
  setSearchFormValues: q,
217
- submit: N,
218
- reset: T
229
+ submit: T,
230
+ reset: z
219
231
  });
220
- const Ce = n(
221
- () => d.value.some(
232
+ const be = n(
233
+ () => s.value.some(
222
234
  (e) => e.fixed === "left" || e.fixed === !0
223
235
  ) ? "left" : void 0
224
236
  ), ye = n(
225
- () => b(a.loading) ? f.loading : a.loading
237
+ () => S(a.loading) ? f.loading : a.loading
226
238
  ), Se = n(
227
- () => b(a.dataSource) ? f.records : a.dataSource
228
- ), { selectedRows: x, rowSelection: R, ...be } = je({
239
+ () => S(a.dataSource) ? f.records : a.dataSource
240
+ ), { selectedRows: R, rowSelection: k, ...we } = Me({
229
241
  ...a.rowSelection === !0 ? {} : a.rowSelection,
230
242
  dataSource: Se,
231
243
  rowKey: a.rowKey
232
- }), z = () => {
233
- const e = m.value;
234
- e && (x.value = [
244
+ }), A = () => {
245
+ const e = u.value;
246
+ e && (R.value = [
235
247
  ...e.getCheckboxReserveRecords(),
236
248
  ...e.getCheckboxRecords()
237
249
  ]);
238
- }, we = () => {
239
- const e = m.value;
240
- e && (x.value = [e.getRadioRecord()]);
250
+ }, xe = () => {
251
+ const e = u.value;
252
+ e && (R.value = [e.getRadioRecord()]);
241
253
  };
242
- function xe() {
254
+ function Re() {
243
255
  var e;
244
256
  return ((e = a.columns) == null ? void 0 : e.filter((r) => !r.hideInTable)) || [];
245
257
  }
246
258
  function q(e) {
247
259
  var r, l, t;
248
- (t = (l = (r = P.value) == null ? void 0 : r.apForm) == null ? void 0 : l.setFieldsValue) == null || t.call(l, e);
260
+ (t = (l = (r = N.value) == null ? void 0 : r.apForm) == null ? void 0 : l.setFieldsValue) == null || t.call(l, e);
249
261
  }
250
262
  function U(e = !1) {
251
- var l, t, u;
263
+ var l, t, p;
252
264
  const r = e ? "getFieldsValueTransformed" : "getFieldsValue";
253
- return (u = (t = (l = P.value) == null ? void 0 : l.apForm) == null ? void 0 : t[r]) == null ? void 0 : u.call(t, !0);
265
+ return (p = (t = (l = N.value) == null ? void 0 : l.apForm) == null ? void 0 : t[r]) == null ? void 0 : p.call(t, !0);
254
266
  }
255
267
  function _() {
256
- be.clearAll();
257
- const e = m.value;
258
- e && (R.value.type === "radio" ? (e.clearRadioRow(), e.clearRadioReserve()) : (e.clearCheckboxRow(), e.clearCheckboxReserve()));
268
+ we.clearAll();
269
+ const e = u.value;
270
+ e && (k.value.type === "radio" ? (e.clearRadioRow(), e.clearRadioReserve()) : (e.clearCheckboxRow(), e.clearCheckboxReserve()));
259
271
  }
260
- async function Re(e, r) {
272
+ function ke() {
273
+ const e = u.value;
274
+ e && (e.clearSort(), e.clearFilter());
275
+ }
276
+ async function Fe(e, r) {
261
277
  var t;
262
278
  const l = f.records[e];
263
279
  if (l)
264
- return (t = m.value) == null ? void 0 : t.scrollToRow(l, r);
280
+ return (t = u.value) == null ? void 0 : t.scrollToRow(l, r);
265
281
  }
266
282
  return B(
267
283
  () => [a.columnResizable, a.columns],
268
284
  () => {
269
285
  var r;
270
- const e = xe();
271
- d.value = e, (r = a.onShownColumnsChange) == null || r.call(a, e), $.value = e;
286
+ const e = Re();
287
+ s.value = e, (r = a.onShownColumnsChange) == null || r.call(a, e), $.value = e;
272
288
  },
273
289
  {
274
290
  deep: !0,
@@ -277,7 +293,7 @@ const Bo = /* @__PURE__ */ ke({
277
293
  ), B(
278
294
  () => a.dataSource,
279
295
  (e) => {
280
- me(e);
296
+ fe(e);
281
297
  },
282
298
  { immediate: !0, deep: !0 }
283
299
  ), B(
@@ -289,40 +305,40 @@ const Bo = /* @__PURE__ */ ke({
289
305
  ), B(
290
306
  () => a.size,
291
307
  (e) => {
292
- C.value = e;
308
+ x.value = e;
293
309
  }
294
310
  ), te({
295
- submit: N,
296
- reset: T,
297
- refresh: pe,
311
+ submit: T,
312
+ reset: z,
313
+ refresh: me,
298
314
  setSearchFormValues: q,
299
315
  getSearchFormValues: U,
300
- getShowColumns: () => o(d),
316
+ getShowColumns: () => o(s),
301
317
  rowSelection: {
302
- selectedRows: n(() => x.value),
318
+ selectedRows: n(() => R.value),
303
319
  clearAll: _
304
320
  },
305
- scrollToRow: Re,
321
+ scrollToRow: Fe,
306
322
  getDataSource: () => o(f.records)
307
- }), (e, r) => (s(), F("div", {
308
- class: g(ue.value),
309
- style: A(e.wrapperStyle)
323
+ }), (e, r) => (i(), I("div", {
324
+ class: g(pe.value),
325
+ style: V(e.wrapperStyle)
310
326
  }, [
311
- o(b)(e.dataSource) && e.searchForm !== !1 && W.value.length > 0 ? (s(), F("div", {
327
+ o(S)(e.dataSource) && e.searchForm !== !1 && W.value.length > 0 ? (i(), I("div", {
312
328
  key: 0,
313
- class: g(e.card ? o(E)("search-wrapper") : null),
314
- style: A(e.searchFormWrapperStyle)
329
+ class: g(e.card ? o(P)("search-wrapper") : null),
330
+ style: V(e.searchFormWrapperStyle)
315
331
  }, [
316
- X(o(Te).SearchForm, h(e.searchForm || {}, {
332
+ X(o(Ae).SearchForm, h(e.searchForm || {}, {
317
333
  ref_key: "formRef",
318
- ref: P,
334
+ ref: N,
319
335
  "custom-reset": "",
320
336
  "submit-loading": o(M).loading,
321
- onSubmit: o(N),
322
- onReset: o(T)
337
+ onSubmit: o(T),
338
+ onReset: o(z)
323
339
  }), J({
324
340
  default: v(() => [
325
- (s(!0), F(Q, null, V(W.value, (l) => (s(), p(L(l.renderNode.Comp), h({
341
+ (i(!0), I(Q, null, L(W.value, (l) => (i(), m(D(l.renderNode.Comp), h({
326
342
  key: l.dataIndex,
327
343
  item: l,
328
344
  ref_for: !0
@@ -333,60 +349,65 @@ const Bo = /* @__PURE__ */ ke({
333
349
  ]),
334
350
  _: 2
335
351
  }, [
336
- O.searchFormExtra ? {
352
+ C.searchFormExtra ? {
337
353
  name: "extra",
338
354
  fn: v(() => [
339
- D(e.$slots, "searchFormExtra")
355
+ O(e.$slots, "searchFormExtra")
340
356
  ]),
341
357
  key: "0"
342
358
  } : void 0
343
359
  ]), 1040, ["submit-loading", "onSubmit", "onReset"])
344
- ], 6)) : S("", !0),
345
- I("div", {
346
- class: g([o(E)("table-wrapper"), e.card ? o(E)("table-wrapper-card") : null]),
347
- style: A(e.tableWrapperStyle)
360
+ ], 6)) : y("", !0),
361
+ E("div", {
362
+ class: g([o(P)("table-wrapper"), e.card ? o(P)("table-wrapper-card") : null]),
363
+ style: V(e.tableWrapperStyle)
348
364
  }, [
349
- I("div", {
365
+ E("div", {
350
366
  class: g(o(c)("header-wrapper"))
351
367
  }, [
352
- D(e.$slots, "title", {
353
- selectedRows: o(x),
354
- selectedRowKeys: o(R).selectedRowKeys,
355
- shownColumns: d.value,
368
+ O(e.$slots, "title", {
369
+ selectedRows: o(R),
370
+ selectedRowKeys: o(k).selectedRowKeys,
371
+ shownColumns: s.value,
356
372
  clearAll: _
357
373
  })
358
374
  ], 2),
359
- I("div", {
375
+ E("div", {
360
376
  class: g(o(c)("vxe-wrapper"))
361
377
  }, [
362
- (s(), p(o(Pe), h(o($e)(a), {
378
+ (i(), m(o(Te), h(o(We)(a), {
363
379
  ref_key: "tableRef",
364
- ref: m,
365
- key: o(ie),
380
+ ref: u,
381
+ key: o(de),
366
382
  data: o(f).records,
367
- "sort-config": { remote: j.value.length > 0 },
368
- "filter-config": { remote: H.value.length > 0 },
383
+ "sort-config": {
384
+ remote: j.value.length > 0,
385
+ trigger: "cell"
386
+ },
387
+ "filter-config": {
388
+ remote: H.value.length > 0
389
+ },
369
390
  loading: ye.value,
370
391
  style: {
371
- "--vxe-ui-table-row-checkbox-checked-background-color": o(i).controlItemBgActive,
372
- "--vxe-ui-table-row-hover-checkbox-checked-background-color": o(i).controlItemBgActiveHover,
373
- "--vxe-ui-font-primary-color": o(i).colorPrimary,
392
+ "--vxe-ui-table-row-checkbox-checked-background-color": o(d).controlItemBgActive,
393
+ "--vxe-ui-table-row-hover-checkbox-checked-background-color": o(d).controlItemBgActiveHover,
394
+ "--vxe-ui-font-primary-color": o(d).colorPrimary,
374
395
  "--vxe-ui-table-header-background-color": "var(--ap-table-header-bg)",
375
396
  "--vxe-ui-table-cell-padding-default": "12px",
376
397
  "--vxe-ui-table-cell-padding-medium": "9px",
377
- "--vxe-ui-table-row-radio-checked-background-color": o(i).controlItemBgActive,
378
- "--vxe-ui-table-row-hover-radio-checked-background-color": o(i).controlItemBgActiveHover,
379
- "--vxe-ui-font-color": o(i).colorTextBase,
380
- "--vxe-ui-table-border-color": o(i).colorBorderSecondary,
381
- "--vxe-ui-table-header-font-color": o(i).colorTextBase
398
+ "--vxe-ui-table-row-radio-checked-background-color": o(d).controlItemBgActive,
399
+ "--vxe-ui-table-row-hover-radio-checked-background-color": o(d).controlItemBgActiveHover,
400
+ "--vxe-ui-font-color": o(d).colorTextBase,
401
+ "--vxe-ui-table-border-color": o(d).colorBorderSecondary,
402
+ "--vxe-ui-table-header-font-color": o(d).colorTextBase
382
403
  },
383
- size: C.value,
384
- onSortChange: o(ge),
385
- onFilterChange: o(he),
386
- onCheckboxChange: z,
387
- onCheckboxRangeChange: z,
388
- onCheckboxAll: z,
389
- onRadioChange: we
404
+ size: x.value,
405
+ onSortChange: o(he),
406
+ onFilterChange: o(ve),
407
+ onCheckboxChange: A,
408
+ onCheckboxRangeChange: A,
409
+ onCheckboxAll: A,
410
+ onRadioChange: xe
390
411
  }), J({
391
412
  empty: v(() => [
392
413
  X(o(ae), {
@@ -394,45 +415,47 @@ const Bo = /* @__PURE__ */ ke({
394
415
  }, null, 8, ["image"])
395
416
  ]),
396
417
  default: v(() => [
397
- a.expandable ? (s(), p(o(Y), h({ key: 0 }, o(Ke)(e.expandable), { fixed: Ce.value }), {
418
+ a.expandable && s.value.length ? (i(), m(o(Y), h({ key: 0 }, o(je)(e.expandable), { fixed: be.value }), {
398
419
  content: v((l) => [
399
- (s(), p(L(a.expandable.renderContent(l))))
420
+ (i(), m(D(a.expandable.renderContent(l))))
400
421
  ]),
401
422
  _: 1
402
- }, 16, ["fixed"])) : S("", !0),
403
- a.rowSelection ? (s(), p(o(Y), h({ key: 1 }, o(We)(o(R), d.value), { field: o(Ue) }), null, 16, ["field"])) : S("", !0),
404
- (s(!0), F(Q, null, V(o(de), (l) => (s(), p(L(l), {
423
+ }, 16, ["fixed"])) : y("", !0),
424
+ a.rowSelection && s.value.length ? (i(), m(o(Y), h({ key: 1 }, o(He)(o(k), s.value), { field: o(Xe) }), null, 16, ["field"])) : y("", !0),
425
+ (i(!0), I(Q, null, L(o(ie), (l) => (i(), m(D(l), {
405
426
  key: l.props.colId
406
427
  }))), 128))
407
428
  ]),
408
429
  _: 2
409
430
  }, [
410
- V(o(Ne)(O, ["searchFormExtra"]), (l, t) => ({
431
+ L(o(ze)(C, ["searchFormExtra"]), (l, t) => ({
411
432
  name: t,
412
- fn: v((u) => [
413
- D(e.$slots, t, Ie(Ee(u || {})))
433
+ fn: v((p) => [
434
+ O(e.$slots, t, Pe(Ne(p || {})))
414
435
  ])
415
436
  }))
416
437
  ]), 1040, ["data", "sort-config", "filter-config", "loading", "style", "size", "onSortChange", "onFilterChange"]))
417
438
  ], 2),
418
- I("div", {
439
+ E("div", {
419
440
  class: g(o(c)("pagination-wrapper"))
420
441
  }, [
421
- e.sticky ? (s(), p(o(Ze), {
442
+ e.sticky ? (i(), m(o(ro), {
422
443
  key: 0,
423
444
  direction: "horizontal",
424
445
  "scroll-container": ce.value,
425
- "extra-size": -4.2
426
- }, null, 8, ["scroll-container"])) : S("", !0),
427
- e.pagination !== !1 ? (s(), p(o(De), h({
446
+ "extra-size": -4.2,
447
+ "bar-color": "var(--basic-scrollbar-thumb-color-base, #bfbfbf)",
448
+ "track-color": "var(--ap-table-header-bg, #f2f6f9)"
449
+ }, null, 8, ["scroll-container"])) : y("", !0),
450
+ e.pagination !== !1 ? (i(), m(o($e), h({
428
451
  key: 1,
429
452
  class: o(c)("pagination")
430
- }, o(M).pagination, { onChange: o(ve) }), null, 16, ["class", "onChange"])) : S("", !0)
453
+ }, o(M).pagination, { onChange: o(Ce) }), null, 16, ["class", "onChange"])) : y("", !0)
431
454
  ], 2)
432
455
  ], 6)
433
456
  ], 6));
434
457
  }
435
458
  });
436
459
  export {
437
- Bo as default
460
+ To as default
438
461
  };
@@ -19,7 +19,7 @@ export type ApGridColumnType<RecordType = any, ExtraValueType = 'text', ValueTyp
19
19
  /**
20
20
  * 在title之后展示一个icon并触发tooltip
21
21
  */
22
- tooltip?: string;
22
+ tooltip?: string | ((column: ApGridColumnType<RecordType, ExtraValueType, ValueType, MergedValueType>) => VNode);
23
23
  /**
24
24
  * 是否可以复制
25
25
  */
@@ -119,7 +119,7 @@ export type ApGridRowSelection<RecordType> = Pick<TableRowSelection<RecordType>,
119
119
  */
120
120
  range?: boolean;
121
121
  };
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'> & {
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' | 'round'> & {
123
123
  /**
124
124
  * 列配置
125
125
  */
@@ -200,7 +200,7 @@ export type ApGridProps<RecordType = any, ParamsType = any> = Omit<TableProps<Re
200
200
  /**
201
201
  * 表格尺寸(只支持中等大小和小尺寸)
202
202
  */
203
- size?: 'medium' | 'small' | 'mini';
203
+ size?: 'medium' | 'mini';
204
204
  /**
205
205
  * 表格是否自适应高度
206
206
  */