@aplus-frontend/ui 0.4.17 → 0.4.19

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 (287) hide show
  1. package/es/src/ap-action/item/index.vue.d.ts +1 -2
  2. package/es/src/ap-action/item-dropdown/index.vue.d.ts +1 -2
  3. package/es/src/ap-action/item-modal/index.vue.d.ts +1 -2
  4. package/es/src/ap-action/item-popconfirm/index.vue.d.ts +1 -2
  5. package/es/src/ap-button/ap-action-button.vue.d.ts +1 -2
  6. package/es/src/ap-button/ap-button.vue.d.ts +1 -2
  7. package/es/src/ap-descriptions/ap-descriptions.vue.d.ts +2 -3
  8. package/es/src/ap-descriptions/help-message/index.vue.d.ts +5 -3
  9. package/es/src/ap-download/ap-download.vue.d.ts +3 -5
  10. package/es/src/ap-field/date/index.vue.d.ts +1 -2
  11. package/es/src/ap-field/date-range/index.vue.d.ts +1 -2
  12. package/es/src/ap-field/number/index.vue.d.ts +2 -324
  13. package/es/src/ap-field/radio/index.vue.d.ts +2 -98
  14. package/es/src/ap-field/rate/index.vue.d.ts +2 -84
  15. package/es/src/ap-field/segmented/index.vue.d.ts +1 -2
  16. package/es/src/ap-field/select/index.vue.d.ts +2 -409
  17. package/es/src/ap-field/select/index.vue.mjs +6 -7
  18. package/es/src/ap-field/slider/index.vue.d.ts +2 -259
  19. package/es/src/ap-field/switch/index.vue.d.ts +1 -2
  20. package/es/src/ap-field/text/index.vue.d.ts +1 -2
  21. package/es/src/ap-field/text/password.vue.d.ts +1 -2
  22. package/es/src/ap-field/text-area/index.vue.d.ts +2 -267
  23. package/es/src/ap-form/ap-form.vue.d.ts +4 -639
  24. package/es/src/ap-form/dependency/index.vue.d.ts +1 -2
  25. package/es/src/ap-form/drawer-form/index.vue.d.ts +6 -1457
  26. package/es/src/ap-form/item/index.vue.d.ts +2 -779
  27. package/es/src/ap-form/item-group/index.vue.d.ts +1 -2
  28. package/es/src/ap-form/items/checkbox/index.vue.d.ts +1 -2
  29. package/es/src/ap-form/items/date/index.vue.d.ts +1 -2
  30. package/es/src/ap-form/items/date-range/index.vue.d.ts +1 -2
  31. package/es/src/ap-form/items/number/index.vue.d.ts +3 -785
  32. package/es/src/ap-form/items/radio/index.vue.d.ts +4 -223
  33. package/es/src/ap-form/items/select/index.vue.d.ts +1 -2
  34. package/es/src/ap-form/items/switch/index.vue.d.ts +1 -2
  35. package/es/src/ap-form/items/text/group.vue.d.ts +1 -2
  36. package/es/src/ap-form/items/text/index.vue.d.ts +3 -141
  37. package/es/src/ap-form/items/text/password.vue.d.ts +2 -150
  38. package/es/src/ap-form/items/text-area/index.vue.d.ts +4 -568
  39. package/es/src/ap-form/list/index.vue.d.ts +1 -2
  40. package/es/src/ap-form/modal-form/index.vue.d.ts +7 -1457
  41. package/es/src/ap-form/provider/index.vue.d.ts +1 -2
  42. package/es/src/ap-form/render/control.vue.d.ts +1 -2
  43. package/es/src/ap-form/render/item.vue.d.ts +1 -2
  44. package/es/src/ap-form/search-form/index.vue.d.ts +5 -1457
  45. package/es/src/ap-form/set/index.vue.d.ts +1 -2
  46. package/es/src/ap-info-layout/ApInfoLayout.vue.d.ts +2 -3
  47. package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +2 -6
  48. package/es/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue.d.ts +2 -3
  49. package/es/src/ap-list/index.vue.d.ts +5 -3
  50. package/es/src/ap-table/ap-table.vue.d.ts +10 -3
  51. package/es/src/ap-table/ap-table.vue2.mjs +72 -68
  52. package/es/src/ap-table/components/index/index.vue.d.ts +1 -1
  53. package/es/src/ap-table/components/paragraph-ellipsis/index.vue.d.ts +1 -1
  54. package/es/src/ap-table/components/setting/modal/index.vue.d.ts +1 -2
  55. package/es/src/ap-table/components/setting/select-group/index.vue.d.ts +1 -1
  56. package/es/src/ap-table/components/setting/sortable/index.vue.d.ts +1 -1
  57. package/es/src/ap-table/components/setting/sortable/item.vue.d.ts +1 -1
  58. package/es/src/ap-table/components/setting/sorter/index.vue.d.ts +1 -1
  59. package/es/src/ap-table/components/setting/tree-select/index.vue.d.ts +1 -1
  60. package/es/src/ap-table/constants.d.ts +14 -2264
  61. package/es/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
  62. package/es/src/ap-table/interface.d.ts +9 -0
  63. package/es/src/ap-table/utils.d.ts +8 -1180
  64. package/es/src/ap-tag/ap-tag-group.vue.d.ts +2 -5
  65. package/es/src/ap-tag/ap-tag.vue.d.ts +1 -1
  66. package/es/src/ap-upload/apUpload.vue.d.ts +2 -5
  67. package/es/src/ap-upload/components/MultipleFile.vue.d.ts +2 -453
  68. package/es/src/ap-upload/components/Picture.vue.d.ts +9 -7
  69. package/es/src/ap-upload/components/SingleFile.vue.d.ts +1 -3
  70. package/es/src/business/ap-appendix/ap-appendix.vue.d.ts +3 -5
  71. package/es/src/business/ap-appendix/icons/file-icon.vue.d.ts +1 -1
  72. package/es/src/business/ap-appendix/index.d.ts +1 -1
  73. package/es/src/business/ap-batch-action/ApBatchAction.vue.d.ts +2 -5
  74. package/es/src/business/ap-batch-action/index.d.ts +1 -3
  75. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +1 -2
  76. package/es/src/business/ap-batch-action-group/MenuItemGroup.vue.d.ts +4 -3
  77. package/es/src/business/ap-batch-action-group/index.d.ts +5 -887
  78. package/es/src/business/ap-card/ApCard.vue.d.ts +2 -3
  79. package/es/src/business/ap-card/index.d.ts +1 -1
  80. package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +5 -3
  81. package/es/src/business/ap-expand-alert/index.d.ts +6 -4
  82. package/es/src/business/ap-group-search/ap-group-search.vue.d.ts +2 -5
  83. package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +8 -9
  84. package/es/src/business/ap-group-search/extension-select/index.vue.d.ts +346 -10
  85. package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +7 -8
  86. package/es/src/business/ap-group-search/images/icon-down.vue.d.ts +1 -1
  87. package/es/src/business/ap-group-search/images/icon-line-select.vue.d.ts +1 -1
  88. package/es/src/business/ap-group-search/index.d.ts +4 -418
  89. package/es/src/business/ap-group-search/popover-select/index.vue.d.ts +340 -412
  90. package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +14 -15
  91. package/es/src/business/ap-image/ApImage.vue.d.ts +1 -2
  92. package/es/src/business/ap-input-radio/ApInputRadio.vue.d.ts +1 -1
  93. package/es/src/business/ap-input-radio/index.d.ts +1 -1
  94. package/es/src/business/ap-ladder/ApLadder.vue.d.ts +2 -6
  95. package/es/src/business/ap-ladder/HelpMessageIcon.vue.d.ts +1 -1
  96. package/es/src/business/ap-ladder/index.d.ts +1 -4
  97. package/es/src/business/ap-select-layout/index.d.ts +4 -2
  98. package/es/src/business/ap-select-layout/select-layout.vue.d.ts +5 -3
  99. package/es/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +14 -0
  100. package/es/src/business/ap-table-modal/hooks/use-table-modal.d.ts +14 -0
  101. package/es/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +14 -0
  102. package/es/src/business/ap-table-modal/index.d.ts +44 -22
  103. package/es/src/business/ap-table-modal/modal-title.vue.d.ts +2 -3
  104. package/es/src/business/ap-table-modal/table-layout/index.vue.d.ts +8 -8
  105. package/es/src/business/ap-table-modal/table-modal.vue.d.ts +18 -25
  106. package/es/src/business/ap-title/ApTitle.vue.d.ts +2 -3
  107. package/es/src/business/ap-title/index.d.ts +1 -1
  108. package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.d.ts +3 -5
  109. package/es/src/business/ap-upload-file/icon/delete-icon.vue.d.ts +1 -1
  110. package/es/src/business/ap-upload-file/icon/file-icon.vue.d.ts +1 -1
  111. package/es/src/business/batch-input-group/index.vue.d.ts +3 -146
  112. package/es/src/business/batch-input-group/popover-input/index.vue.d.ts +2 -267
  113. package/es/src/business/hooks/usePageListApTable.d.ts +14 -0
  114. package/es/src/business/hooks/useTableRefresh.d.ts +4 -1
  115. package/es/src/business/hooks/useTableRefresh.mjs +33 -12
  116. package/es/src/check-card/group.vue.d.ts +1 -2
  117. package/es/src/check-card/index.vue.d.ts +2 -3
  118. package/es/src/config-provider/config-provider-props.d.ts +3 -0
  119. package/es/src/config-provider/config-provider-props.mjs +3 -0
  120. package/es/src/config-provider/config-provider.d.ts +6 -0
  121. package/es/src/config-provider/config-provider.mjs +24 -23
  122. package/es/src/config-provider/hooks/use-global-config.d.ts +3 -0
  123. package/es/src/config-provider/index.d.ts +9 -0
  124. package/es/src/editable-table/form-item.vue.d.ts +5 -3
  125. package/es/src/editable-table/index.vue.d.ts +5 -3
  126. package/es/src/full-screen/index.vue.d.ts +2 -6
  127. package/es/src/portal/index.vue.d.ts +1 -2
  128. package/es/src/resize-observer/index.vue.d.ts +1 -2
  129. package/es/src/scroll-bar/index.vue.d.ts +4 -43
  130. package/es/src/scroll-bar/index.vue.mjs +51 -49
  131. package/es/src/scroll-bar/internal.vue.d.ts +1 -5
  132. package/es/src/scroll-view/index.vue.d.ts +9 -97
  133. package/es/src/tests/wrapper.d.ts +4 -4
  134. package/es/src/theme/antd-global-overwrite/admin/index.css +20 -20
  135. package/es/src/theme/antd-global-overwrite/admin/table.css +20 -20
  136. package/es/src/theme/antd-global-overwrite/aplus/index.css +20 -20
  137. package/es/src/theme/antd-global-overwrite/aplus/table.css +20 -20
  138. package/es/src/utils/index.d.ts +8 -0
  139. package/es/src/work-order-modal/work-order-modal.vue.d.ts +2 -827
  140. package/lib/src/ap-action/item/index.vue.d.ts +1 -2
  141. package/lib/src/ap-action/item-dropdown/index.vue.d.ts +1 -2
  142. package/lib/src/ap-action/item-modal/index.vue.d.ts +1 -2
  143. package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +1 -2
  144. package/lib/src/ap-button/ap-action-button.vue.d.ts +1 -2
  145. package/lib/src/ap-button/ap-button.vue.d.ts +1 -2
  146. package/lib/src/ap-descriptions/ap-descriptions.vue.d.ts +2 -3
  147. package/lib/src/ap-descriptions/help-message/index.vue.d.ts +5 -3
  148. package/lib/src/ap-download/ap-download.vue.d.ts +3 -5
  149. package/lib/src/ap-field/date/index.vue.d.ts +1 -2
  150. package/lib/src/ap-field/date-range/index.vue.d.ts +1 -2
  151. package/lib/src/ap-field/number/index.vue.d.ts +2 -324
  152. package/lib/src/ap-field/radio/index.vue.d.ts +2 -98
  153. package/lib/src/ap-field/rate/index.vue.d.ts +2 -84
  154. package/lib/src/ap-field/segmented/index.vue.d.ts +1 -2
  155. package/lib/src/ap-field/select/index.vue.d.ts +2 -409
  156. package/lib/src/ap-field/select/index.vue.js +1 -1
  157. package/lib/src/ap-field/slider/index.vue.d.ts +2 -259
  158. package/lib/src/ap-field/switch/index.vue.d.ts +1 -2
  159. package/lib/src/ap-field/text/index.vue.d.ts +1 -2
  160. package/lib/src/ap-field/text/password.vue.d.ts +1 -2
  161. package/lib/src/ap-field/text-area/index.vue.d.ts +2 -267
  162. package/lib/src/ap-form/ap-form.vue.d.ts +4 -639
  163. package/lib/src/ap-form/dependency/index.vue.d.ts +1 -2
  164. package/lib/src/ap-form/drawer-form/index.vue.d.ts +6 -1457
  165. package/lib/src/ap-form/item/index.vue.d.ts +2 -779
  166. package/lib/src/ap-form/item-group/index.vue.d.ts +1 -2
  167. package/lib/src/ap-form/items/checkbox/index.vue.d.ts +1 -2
  168. package/lib/src/ap-form/items/date/index.vue.d.ts +1 -2
  169. package/lib/src/ap-form/items/date-range/index.vue.d.ts +1 -2
  170. package/lib/src/ap-form/items/number/index.vue.d.ts +3 -785
  171. package/lib/src/ap-form/items/radio/index.vue.d.ts +4 -223
  172. package/lib/src/ap-form/items/select/index.vue.d.ts +1 -2
  173. package/lib/src/ap-form/items/switch/index.vue.d.ts +1 -2
  174. package/lib/src/ap-form/items/text/group.vue.d.ts +1 -2
  175. package/lib/src/ap-form/items/text/index.vue.d.ts +3 -141
  176. package/lib/src/ap-form/items/text/password.vue.d.ts +2 -150
  177. package/lib/src/ap-form/items/text-area/index.vue.d.ts +4 -568
  178. package/lib/src/ap-form/list/index.vue.d.ts +1 -2
  179. package/lib/src/ap-form/modal-form/index.vue.d.ts +7 -1457
  180. package/lib/src/ap-form/provider/index.vue.d.ts +1 -2
  181. package/lib/src/ap-form/render/control.vue.d.ts +1 -2
  182. package/lib/src/ap-form/render/item.vue.d.ts +1 -2
  183. package/lib/src/ap-form/search-form/index.vue.d.ts +5 -1457
  184. package/lib/src/ap-form/set/index.vue.d.ts +1 -2
  185. package/lib/src/ap-info-layout/ApInfoLayout.vue.d.ts +2 -3
  186. package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +2 -6
  187. package/lib/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue.d.ts +2 -3
  188. package/lib/src/ap-list/index.vue.d.ts +5 -3
  189. package/lib/src/ap-table/ap-table.vue.d.ts +10 -3
  190. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  191. package/lib/src/ap-table/components/index/index.vue.d.ts +1 -1
  192. package/lib/src/ap-table/components/paragraph-ellipsis/index.vue.d.ts +1 -1
  193. package/lib/src/ap-table/components/setting/modal/index.vue.d.ts +1 -2
  194. package/lib/src/ap-table/components/setting/select-group/index.vue.d.ts +1 -1
  195. package/lib/src/ap-table/components/setting/sortable/index.vue.d.ts +1 -1
  196. package/lib/src/ap-table/components/setting/sortable/item.vue.d.ts +1 -1
  197. package/lib/src/ap-table/components/setting/sorter/index.vue.d.ts +1 -1
  198. package/lib/src/ap-table/components/setting/tree-select/index.vue.d.ts +1 -1
  199. package/lib/src/ap-table/constants.d.ts +14 -2264
  200. package/lib/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
  201. package/lib/src/ap-table/interface.d.ts +9 -0
  202. package/lib/src/ap-table/utils.d.ts +8 -1180
  203. package/lib/src/ap-tag/ap-tag-group.vue.d.ts +2 -5
  204. package/lib/src/ap-tag/ap-tag.vue.d.ts +1 -1
  205. package/lib/src/ap-upload/apUpload.vue.d.ts +2 -5
  206. package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +2 -453
  207. package/lib/src/ap-upload/components/Picture.vue.d.ts +9 -7
  208. package/lib/src/ap-upload/components/SingleFile.vue.d.ts +1 -3
  209. package/lib/src/business/ap-appendix/ap-appendix.vue.d.ts +3 -5
  210. package/lib/src/business/ap-appendix/icons/file-icon.vue.d.ts +1 -1
  211. package/lib/src/business/ap-appendix/index.d.ts +1 -1
  212. package/lib/src/business/ap-batch-action/ApBatchAction.vue.d.ts +2 -5
  213. package/lib/src/business/ap-batch-action/index.d.ts +1 -3
  214. package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +1 -2
  215. package/lib/src/business/ap-batch-action-group/MenuItemGroup.vue.d.ts +4 -3
  216. package/lib/src/business/ap-batch-action-group/index.d.ts +5 -887
  217. package/lib/src/business/ap-card/ApCard.vue.d.ts +2 -3
  218. package/lib/src/business/ap-card/index.d.ts +1 -1
  219. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +5 -3
  220. package/lib/src/business/ap-expand-alert/index.d.ts +6 -4
  221. package/lib/src/business/ap-group-search/ap-group-search.vue.d.ts +2 -5
  222. package/lib/src/business/ap-group-search/ap-group-search.vue2.js +1 -1
  223. package/lib/src/business/ap-group-search/extension-select/index.vue.d.ts +346 -10
  224. package/lib/src/business/ap-group-search/extension-select/index.vue2.js +1 -1
  225. package/lib/src/business/ap-group-search/images/icon-down.vue.d.ts +1 -1
  226. package/lib/src/business/ap-group-search/images/icon-line-select.vue.d.ts +1 -1
  227. package/lib/src/business/ap-group-search/index.d.ts +4 -418
  228. package/lib/src/business/ap-group-search/popover-select/index.vue.d.ts +340 -412
  229. package/lib/src/business/ap-group-search/popover-select/index.vue2.js +2 -2
  230. package/lib/src/business/ap-image/ApImage.vue.d.ts +1 -2
  231. package/lib/src/business/ap-input-radio/ApInputRadio.vue.d.ts +1 -1
  232. package/lib/src/business/ap-input-radio/index.d.ts +1 -1
  233. package/lib/src/business/ap-ladder/ApLadder.vue.d.ts +2 -6
  234. package/lib/src/business/ap-ladder/HelpMessageIcon.vue.d.ts +1 -1
  235. package/lib/src/business/ap-ladder/index.d.ts +1 -4
  236. package/lib/src/business/ap-select-layout/index.d.ts +4 -2
  237. package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +5 -3
  238. package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +14 -0
  239. package/lib/src/business/ap-table-modal/hooks/use-table-modal.d.ts +14 -0
  240. package/lib/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +14 -0
  241. package/lib/src/business/ap-table-modal/index.d.ts +44 -22
  242. package/lib/src/business/ap-table-modal/modal-title.vue.d.ts +2 -3
  243. package/lib/src/business/ap-table-modal/table-layout/index.vue.d.ts +8 -8
  244. package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +18 -25
  245. package/lib/src/business/ap-title/ApTitle.vue.d.ts +2 -3
  246. package/lib/src/business/ap-title/index.d.ts +1 -1
  247. package/lib/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.d.ts +3 -5
  248. package/lib/src/business/ap-upload-file/icon/delete-icon.vue.d.ts +1 -1
  249. package/lib/src/business/ap-upload-file/icon/file-icon.vue.d.ts +1 -1
  250. package/lib/src/business/batch-input-group/index.vue.d.ts +3 -146
  251. package/lib/src/business/batch-input-group/popover-input/index.vue.d.ts +2 -267
  252. package/lib/src/business/hooks/usePageListApTable.d.ts +14 -0
  253. package/lib/src/business/hooks/useTableRefresh.d.ts +4 -1
  254. package/lib/src/business/hooks/useTableRefresh.js +1 -1
  255. package/lib/src/check-card/group.vue.d.ts +1 -2
  256. package/lib/src/check-card/index.vue.d.ts +2 -3
  257. package/lib/src/config-provider/config-provider-props.d.ts +3 -0
  258. package/lib/src/config-provider/config-provider-props.js +1 -1
  259. package/lib/src/config-provider/config-provider.d.ts +6 -0
  260. package/lib/src/config-provider/config-provider.js +1 -1
  261. package/lib/src/config-provider/hooks/use-global-config.d.ts +3 -0
  262. package/lib/src/config-provider/index.d.ts +9 -0
  263. package/lib/src/editable-table/form-item.vue.d.ts +5 -3
  264. package/lib/src/editable-table/index.vue.d.ts +5 -3
  265. package/lib/src/full-screen/index.vue.d.ts +2 -6
  266. package/lib/src/portal/index.vue.d.ts +1 -2
  267. package/lib/src/resize-observer/index.vue.d.ts +1 -2
  268. package/lib/src/scroll-bar/index.vue.d.ts +4 -43
  269. package/lib/src/scroll-bar/index.vue.js +1 -1
  270. package/lib/src/scroll-bar/internal.vue.d.ts +1 -5
  271. package/lib/src/scroll-view/index.vue.d.ts +9 -97
  272. package/lib/src/tests/wrapper.d.ts +4 -4
  273. package/lib/src/theme/antd-global-overwrite/admin/index.css +20 -20
  274. package/lib/src/theme/antd-global-overwrite/admin/table.css +20 -20
  275. package/lib/src/theme/antd-global-overwrite/aplus/index.css +20 -20
  276. package/lib/src/theme/antd-global-overwrite/aplus/table.css +20 -20
  277. package/lib/src/utils/index.d.ts +8 -0
  278. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +2 -827
  279. package/package.json +3 -3
  280. package/theme/antd-global-overwrite/admin/index.css +20 -20
  281. package/theme/antd-global-overwrite/admin/table.css +20 -20
  282. package/theme/antd-global-overwrite/admin/table.less +3 -3
  283. package/theme/antd-global-overwrite/aplus/index.css +20 -20
  284. package/theme/antd-global-overwrite/aplus/table.css +20 -20
  285. package/theme/antd-global-overwrite/aplus/table.less +3 -3
  286. package/theme/ap-scroll-bar/index.css +0 -31
  287. package/theme/ap-scroll-bar/index.less +0 -39
@@ -1,14 +1,13 @@
1
1
  import { ApFormSetProps } from '../interface';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  declare function __VLS_template(): {
4
- attrs: Partial<{}>;
5
4
  slots: Readonly<{
6
5
  default: any;
7
6
  }> & {
8
7
  default: any;
9
8
  };
10
9
  refs: {};
11
- rootEl: any;
10
+ attrs: Partial<{}>;
12
11
  };
13
12
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
13
  declare const __VLS_component: DefineComponent<ApFormSetProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormSetProps> & Readonly<{}>, {
@@ -1,7 +1,6 @@
1
1
  import { ApInfoLayoutPropsMixed } from './interface';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  declare function __VLS_template(): {
4
- attrs: Partial<{}>;
5
4
  slots: Readonly<{
6
5
  [key: string]: any;
7
6
  /**
@@ -60,10 +59,10 @@ declare function __VLS_template(): {
60
59
  content(): any;
61
60
  };
62
61
  refs: {};
63
- rootEl: HTMLDivElement;
62
+ attrs: Partial<{}>;
64
63
  };
65
64
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
66
- declare const __VLS_component: DefineComponent<ApInfoLayoutPropsMixed, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApInfoLayoutPropsMixed> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
65
+ declare const __VLS_component: DefineComponent<ApInfoLayoutPropsMixed, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApInfoLayoutPropsMixed> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
67
66
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
68
67
  export default _default;
69
68
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,7 +1,6 @@
1
1
  import { CSSProperties, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
2
  import { ApInfoLayoutAdminProps } from '../interface';
3
3
  declare function __VLS_template(): {
4
- attrs: Partial<{}>;
5
4
  slots: {
6
5
  header?(_: {}): any;
7
6
  default?(_: {}): any;
@@ -10,16 +9,13 @@ declare function __VLS_template(): {
10
9
  containerRef: HTMLDivElement;
11
10
  headerRef: HTMLDivElement;
12
11
  };
13
- rootEl: HTMLDivElement;
12
+ attrs: Partial<{}>;
14
13
  };
15
14
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
15
  declare const __VLS_component: DefineComponent<ApInfoLayoutAdminProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApInfoLayoutAdminProps> & Readonly<{}>, {
17
16
  bordered: boolean;
18
17
  headerStyle: CSSProperties;
19
- }, {}, {}, {}, string, ComponentProvideOptions, false, {
20
- containerRef: HTMLDivElement;
21
- headerRef: HTMLDivElement;
22
- }, HTMLDivElement>;
18
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
23
19
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
24
20
  export default _default;
25
21
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,7 +1,6 @@
1
1
  import { ApInfoLayoutAplusProps } from '../interface';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  declare function __VLS_template(): {
4
- attrs: Partial<{}>;
5
4
  slots: {
6
5
  header?(_: {}): any;
7
6
  title?(_: {}): any;
@@ -10,7 +9,7 @@ declare function __VLS_template(): {
10
9
  content?(_: {}): any;
11
10
  };
12
11
  refs: {};
13
- rootEl: HTMLDivElement;
12
+ attrs: Partial<{}>;
14
13
  };
15
14
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
15
  declare const __VLS_component: DefineComponent<ApInfoLayoutAplusProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
@@ -20,7 +19,7 @@ declare const __VLS_component: DefineComponent<ApInfoLayoutAplusProps, {}, {}, {
20
19
  }>, {
21
20
  toEl: string | HTMLElement;
22
21
  telDisabled: boolean;
23
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
22
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
24
23
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
25
24
  export default _default;
26
25
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,9 +1,9 @@
1
1
  import { ApListProps } from './interface';
2
2
  import { Recordable } from '../type';
3
- import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, Ref, VNode } from 'vue';
3
+ import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, Ref, VNode, RendererNode, RendererElement } 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
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & ApListProps<RecordType> & Partial<{}>> & PublicProps;
6
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & ApListProps<RecordType>> & PublicProps;
7
7
  expose(exposed: ShallowUnwrapRef<{
8
8
  submit: () => void;
9
9
  reset: () => void;
@@ -41,7 +41,9 @@ declare const _default: <RecordType extends Recordable>(__VLS_props: NonNullable
41
41
  }): any;
42
42
  };
43
43
  emit: {};
44
- }>) => VNode & {
44
+ }>) => VNode<RendererNode, RendererElement, {
45
+ [key: string]: any;
46
+ }> & {
45
47
  __ctx?: Awaited<typeof __VLS_setup>;
46
48
  };
47
49
  export default _default;
@@ -1,9 +1,10 @@
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, VNode } from 'vue';
4
+ import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, ComputedRef, Ref, VNode, RendererNode, RendererElement } from 'vue';
5
+ import { ScrollBarExpose } from '../scroll-bar';
5
6
  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
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & ApTableProps<RecordType> & Partial<{}>> & PublicProps;
7
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & ApTableProps<RecordType>> & PublicProps;
7
8
  expose(exposed: ShallowUnwrapRef<{
8
9
  submit: () => void;
9
10
  reset: () => void;
@@ -22,6 +23,10 @@ declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __V
22
23
  toggleSelect: (item: RecordType) => void;
23
24
  selectedRows: ComputedRef<RecordType[]>;
24
25
  };
26
+ scrollBar: {
27
+ x: Ref< ScrollBarExpose | undefined, ScrollBarExpose | undefined>;
28
+ y: undefined;
29
+ };
25
30
  }>): void;
26
31
  attrs: any;
27
32
  slots: Readonly<{
@@ -76,7 +81,9 @@ declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __V
76
81
  }) => void;
77
82
  };
78
83
  emit: {};
79
- }>) => VNode & {
84
+ }>) => VNode<RendererNode, RendererElement, {
85
+ [key: string]: any;
86
+ }> & {
80
87
  __ctx?: Awaited<typeof __VLS_setup>;
81
88
  };
82
89
  export default _default;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),L=require("@aplus-frontend/antdv"),ie=require("@aplus-frontend/antdv/es/theme/internal"),fe=require("../ap-form/index.js"),A=require("./constants.js");require("../config-provider/index.js");const pe=require("./hooks/use-table-paging-ng.js"),c=require("lodash-unified"),s=require("./utils.js"),me=require("./hooks/use-table-content-height.js"),ye=require("./hooks/use-table-row-selection.js"),ge=require("../utils/index.js");require("./components/setting/modal/index.vue.js");require("./components/paragraph-ellipsis/index.vue.js");const Se=require("./context.js");require("../scroll-bar/index.js");const be=require("./hooks/use-sticky-scroll.js"),he=require("../config-provider/css-var.js"),we=require("../config-provider/hooks/use-namespace.js"),Ce=require("../config-provider/hooks/use-global-config.js"),ve=require("./components/paragraph-ellipsis/index.vue2.js"),Re=require("./components/setting/modal/index.vue2.js"),Be=require("../scroll-bar/index.vue.js"),ke=e.defineComponent({name:"ApTable",__name:"ap-table",props:{dropdownPrefixCls:{},loading:{type:[Boolean,Object],default:void 0},bordered:{type:Boolean,default:!1},locale:{},onChange:{},onResizeColumn:{},getPopupContainer:{},scroll:{},sortDirections:{default:()=>["ascend","descend"]},showSorterTooltip:{type:[Boolean,Object],default:!1},prefixCls:{},rowKey:{default:"key"},tableLayout:{},rowClassName:{},title:{},footer:{},id:{},showHeader:{type:Boolean,default:!0},components:{},customRow:{},customHeaderRow:{},direction:{},expandFixed:{type:[String,Boolean],default:!1},expandColumnWidth:{},expandedRowKeys:{},defaultExpandedRowKeys:{},expandedRowRender:{},expandRowByClick:{type:Boolean,default:!1},expandIcon:{},onExpand:{},onExpandedRowsChange:{},defaultExpandAllRows:{type:Boolean,default:!1},indentSize:{default:15},expandIconColumnIndex:{},showExpandColumn:{type:Boolean,default:!0},expandedRowClassName:{},childrenColumnName:{default:"children"},rowExpandable:{},sticky:{type:[Boolean,Object]},transformCellText:{},columns:{},rowSelection:{type:[Boolean,Object]},card:{type:Boolean,default:!1},params:{},searchFormRender:{},request:{},onLoad:{},defaultData:{},dataSource:{},onLoadingChange:{},searchForm:{type:[Boolean,Object],default:void 0},beforeSearchSubmit:{},pagination:{type:[Boolean,Object],default:void 0},searchFormWrapperStyle:{},tableWrapperStyle:{},manual:{type:Boolean,default:!1},size:{default:"middle"},adaptive:{type:Boolean,default:!1},columnResizable:{type:Boolean,default:!1},settings:{type:[Boolean,Object],default:void 0}},setup(U,{expose:D}){const t=U;let R=0;const y=e.useSlots(),[,$]=ie.useToken(),{e:h,b:i,be:B,m:j}=we.useNamespace("ap-table"),k=Ce.useGlobalConfig("valueTypeMap"),{height:W,contentRef:H}=me.default(),x=e.ref(),T=e.ref(),{isStickyMode:F,scrollBarRef:M}=be.useStickyScroll(x),w=e.ref(t.size),d=e.ref([]),q=e.ref([]);Se.useProvideApTable({columns:e.computed(()=>d.value),columnsBackup:e.computed(()=>q.value),size:e.computed(()=>w.value),updateColumns(r){d.value=r},updateSize(r){w.value=r},dataSource:e.computed(()=>e.unref(p).records)});const z=e.computed(()=>{var r,a,o;return R++,((o=(a=(r=t.columns)==null?void 0:r.filter(n=>!n.hideInSearch&&n.dataIndex&&(n.valueType||n.customRenderFormItem)&&!A.noRenderAsFormItemValueList.includes(n.valueType)))==null?void 0:a.sort((n,u)=>{let l=s.getColumnOrder(n.order);return s.getColumnOrder(u.order)-l}))==null?void 0:o.map(n=>{const u=s.updateFormProps(n,s.getFieldProps(n.fieldProps,{})),l={...n,fieldProps:{label:n.title,name:n.dataIndex,...u||{},_signal:R},renderNode:void 0};return l.renderNode=s.getSearchFormItemRenderNode(l,e.unref(k)),l}))||[]}),G=e.computed(()=>s.recursionApColumns(e.unref(d),r=>{if(r.sorter===!0)return r.key||r.dataIndex}).filter(Boolean)),J=e.computed(()=>s.recursionApColumns(e.unref(d),r=>{if(r.filters&&!r.onFilter)return r.key||r.dataIndex}).filter(Boolean)),Q=e.computed(()=>c.isUndefined(t.dataSource)?p.records:t.dataSource),{rowSelection:g,selectedRows:S,...b}=ye.default({fixed:!0,...t.rowSelection===!0?{}:t.rowSelection,rowKey:t.rowKey,dataSource:Q}),{formRef:C,submit:N,reset:P,tableProps:_,refresh:X,data:p,setDataSource:Y,getColumnSFConfig:Z}=pe.useTablePaging({async request(r){var o,n;if(!g.value.preserveSelectedRowKeys&&c.isUndefined(t.dataSource)&&b.clearAll(),!c.isUndefined(t.dataSource))return{data:t.dataSource||[],total:t.dataSource.length||0};const a=await((o=t.request)==null?void 0:o.call(t,r));return(n=t.onLoad)==null||n.call(t,(a==null?void 0:a.data)||[]),{data:(a==null?void 0:a.data)||[],total:(a==null?void 0:a.total)||0}},filterFields:J,sortFields:G,defaultParams:t.params,defaultData:t.defaultData,manual:t.manual,formatParams:t.beforeSearchSubmit,pagination:t.pagination}),ee=()=>{var o;let r=((o=t.columns)==null?void 0:o.filter(n=>!n.hideInTable))||[];function a(n,u){return n.map(l=>({resizable:ge.isDef(l.resizable)?l.resizable:t.columnResizable,...c.omit(s.apColumnToColumn(l),["ellipsis"]),...Z(l),fixed:u?u.fixed:l.fixed,title:s.getTableTitle(l,B("table-header","title"),y.headerCell,e.unref($).colorPrimary),customRender({value:f,...m}){var O,K;const E=s.getTableRenderType(l),ue=s.getTableRenderProps({...l,valueType:E},{value:f,...m}),de=s.getTableCellRenderNode(E,ue,m.record,e.unref(k)),I=((O=l.renderText)==null?void 0:O.call(l,{value:f,...m}))||f,ce=l.renderText?e.createVNode(e.Fragment,null,[(K=l.renderText)==null?void 0:K.call(l,{value:f,...m})]):de;let v=ne(l,I,ce);return l.customRender&&(v=l.customRender({value:f,...m,column:l,originalNode:v,originalText:I})),v},children:a(l.children||[],u||l)}))}return a(r)};e.watchEffect(()=>{const r=ee();d.value=r,q.value=r});const re=e.computed(()=>{var a,o;if(t.adaptive&&(p.total>0||((a=t.dataSource)==null?void 0:a.length)))return{y:e.unref(W),x:((o=t.scroll)==null?void 0:o.x)||"100%"};if(t.scroll)return t.scroll}),te=e.computed(()=>{var r;if(t.tableLayout)return t.tableLayout;if((r=t.columns)!=null&&r.some(a=>a.ellipsis))return"fixed"}),V=e.computed(()=>{var o;const r=e.unref(_),a=e.unref(g);return{...t,...r,rowSelection:t.rowSelection===!0||((o=t.rowSelection)==null?void 0:o.mode)==="internal"?{...a,preserveSelectedRowKeys:c.isUndefined(t.dataSource)?a.preserveSelectedRowKeys:!0}:s.falseToUndefined(t.rowSelection),loading:c.isUndefined(t.loading)?r.loading:t.loading,pagination:t.pagination===!1?!1:r.pagination,scroll:e.unref(re)}}),oe=e.computed(()=>[i(),t.card?null:i("wrapper"),t.adaptive?i("adaptive"):null,F?j(`sticky-${he.scrollbarSize===0?"absolute":"relative"}`):null].filter(Boolean));function ne(r,a,o){return A.noRenderAsFormItemValueList.includes(r.valueType)?o:r.copyable||r.ellipsis?e.createVNode(ve.default,{copyable:r.copyable,ellipsis:r.ellipsis?c.isBoolean(r.ellipsis)?{tooltip:o,rows:1}:{...r.ellipsis,tooltip:o}:!1,content:o},null):o}e.watch(()=>e.unref(p).loading,r=>{var a;(a=t.onLoadingChange)==null||a.call(t,r)}),e.watch(()=>t.dataSource,r=>{Y(r)},{immediate:!0});function ae(r){var a,o,n;(n=(o=(a=C.value)==null?void 0:a.apForm)==null?void 0:o.setFieldsValue)==null||n.call(o,r)}function le(r=!1){var o,n,u;const a=r?"getFieldsValueTransformed":"getFieldsValue";return(u=(n=(o=C.value)==null?void 0:o.apForm)==null?void 0:n[a])==null?void 0:u.call(n,!0)}function se(){return e.unref(d)}return D({submit:()=>N(),reset:()=>P(),refresh:()=>X(),setSearchFormValues:ae,getSearchFormValues:le,getShownColumns:se,dataSource:e.computed(()=>e.unref(p).records),rowSelection:{selectedRows:e.computed(()=>e.unref(S)),...b}}),(r,a)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"tableWrapperRef",ref:x,class:e.normalizeClass(oe.value)},[e.unref(c.isUndefined)(r.dataSource)&&r.searchForm!==!1&&z.value.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(r.card?e.unref(h)("search-wrapper"):null),style:e.normalizeStyle(r.searchFormWrapperStyle)},[e.createVNode(e.unref(fe.ApForm).SearchForm,e.mergeProps(r.searchForm||{},{ref_key:"formRef",ref:C,"custom-reset":"","submit-loading":e.unref(_).loading,onSubmit:e.unref(N),onReset:e.unref(P)}),e.createSlots({default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(z.value,o=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.renderNode.Comp),e.mergeProps({key:o.dataIndex,item:o,ref_for:!0},o.fieldProps||{},{span:o.span,"custom-render":o.renderNode.render}),null,16,["item","span","custom-render"]))),128))]),_:2},[y.searchFormExtra?{name:"extra",fn:e.withCtx(()=>[e.renderSlot(r.$slots,"searchFormExtra")]),key:"0"}:void 0]),1040,["submit-loading","onSubmit","onReset"])],6)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"contentRef",ref:H,class:e.normalizeClass([e.unref(h)("table-wrapper"),r.card?e.unref(h)("table-wrapper-card"):null]),style:e.normalizeStyle(r.tableWrapperStyle)},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(i)("header-wrapper"))},[r.settings?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(i)("header"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(B)("header","title"))},[e.renderSlot(r.$slots,"title",e.mergeProps({selectedRows:e.unref(S),selectedRowKeys:e.unref(g).selectedRowKeys,shownColumns:d.value},b))],2),y.title?(e.openBlock(),e.createBlock(e.unref(L.Divider),{key:0,type:"vertical"})):e.createCommentVNode("",!0),e.createVNode(Re.default,{config:r.settings===!0?{}:r.settings},null,8,["config"])],2)):e.renderSlot(r.$slots,"title",e.mergeProps({key:1,selectedRows:e.unref(S),selectedRowKeys:e.unref(g).selectedRowKeys,shownColumns:d.value},b))],2),e.createVNode(e.unref(L.Table),e.mergeProps({ref_key:"antdTableRef",ref:T,class:e.unref(i)("table")},V.value,{size:w.value,"table-layout":te.value,columns:d.value,onResizeColumn:a[0]||(a[0]=(o,n)=>n.width=o)}),e.createSlots({summary:e.withCtx(()=>[e.renderSlot(r.$slots,"summary",{columns:d.value,records:V.value.dataSource,selectedRows:e.unref(S)})]),_:2},[e.unref(F)?{name:"bottomPaginationTop",fn:e.withCtx(()=>{var o,n;return[e.createVNode(e.unref(Be.default),{ref_key:"scrollBarRef",ref:M,"scroll-container":(n=(o=T.value)==null?void 0:o.table)==null?void 0:n.scrollBodyRef,direction:"horizontal"},null,8,["scroll-container"])]}),key:"0"}:void 0,e.renderList(e.unref(c.omit)(y,["title","searchFormExtra","headerCell","summary"]),(o,n)=>({name:n,fn:e.withCtx(u=>[e.renderSlot(r.$slots,n,e.normalizeProps(e.guardReactiveProps(u||{})))])}))]),1040,["class","size","table-layout","columns"])],6)],2))}});exports.default=ke;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),A=require("@aplus-frontend/antdv"),ie=require("@aplus-frontend/antdv/es/theme/internal"),fe=require("../ap-form/index.js"),U=require("./constants.js");require("../config-provider/index.js");const pe=require("./hooks/use-table-paging-ng.js"),c=require("lodash-unified"),s=require("./utils.js"),me=require("./hooks/use-table-content-height.js"),ye=require("./hooks/use-table-row-selection.js"),ge=require("../utils/index.js");require("./components/setting/modal/index.vue.js");require("./components/paragraph-ellipsis/index.vue.js");const Se=require("./context.js");require("../scroll-bar/index.js");const be=require("./hooks/use-sticky-scroll.js"),he=require("../config-provider/css-var.js"),we=require("../config-provider/hooks/use-namespace.js"),Ce=require("../config-provider/hooks/use-global-config.js"),ve=require("./components/paragraph-ellipsis/index.vue2.js"),Re=require("./components/setting/modal/index.vue2.js"),Be=require("../scroll-bar/index.vue.js"),xe=e.defineComponent({name:"ApTable",__name:"ap-table",props:{dropdownPrefixCls:{},loading:{type:[Boolean,Object],default:void 0},bordered:{type:Boolean,default:!1},locale:{},onChange:{},onResizeColumn:{},getPopupContainer:{},scroll:{},sortDirections:{default:()=>["ascend","descend"]},showSorterTooltip:{type:[Boolean,Object],default:!1},prefixCls:{},rowKey:{default:"key"},tableLayout:{},rowClassName:{},title:{},footer:{},id:{},showHeader:{type:Boolean,default:!0},components:{},customRow:{},customHeaderRow:{},direction:{},expandFixed:{type:[String,Boolean],default:!1},expandColumnWidth:{},expandedRowKeys:{},defaultExpandedRowKeys:{},expandedRowRender:{},expandRowByClick:{type:Boolean,default:!1},expandIcon:{},onExpand:{},onExpandedRowsChange:{},defaultExpandAllRows:{type:Boolean,default:!1},indentSize:{default:15},expandIconColumnIndex:{},showExpandColumn:{type:Boolean,default:!0},expandedRowClassName:{},childrenColumnName:{default:"children"},rowExpandable:{},sticky:{type:[Boolean,Object]},transformCellText:{},columns:{},rowSelection:{type:[Boolean,Object]},card:{type:Boolean,default:!1},params:{},searchFormRender:{},request:{},onLoad:{},defaultData:{},dataSource:{},onLoadingChange:{},searchForm:{type:[Boolean,Object],default:void 0},beforeSearchSubmit:{},pagination:{type:[Boolean,Object],default:void 0},searchFormWrapperStyle:{},tableWrapperStyle:{},manual:{type:Boolean,default:!1},size:{default:"middle"},adaptive:{type:Boolean,default:!1},columnResizable:{type:Boolean,default:!1},settings:{type:[Boolean,Object],default:void 0}},setup(D,{expose:$}){const t=D;let R=0;const y=e.useSlots(),[,j]=ie.useToken(),{e:h,b:i,be:B,m:W}=we.useNamespace("ap-table"),x=Ce.useGlobalConfig("valueTypeMap"),{height:H,contentRef:M}=me.default(),k=e.ref(),T=e.ref(),{isStickyMode:F,scrollBarRef:q}=be.useStickyScroll(k),w=e.ref(t.size),d=e.ref([]),z=e.ref([]);Se.useProvideApTable({columns:e.computed(()=>d.value),columnsBackup:e.computed(()=>z.value),size:e.computed(()=>w.value),updateColumns(r){d.value=r},updateSize(r){w.value=r},dataSource:e.computed(()=>e.unref(p).records)});const N=e.computed(()=>{var r,a,o;return R++,((o=(a=(r=t.columns)==null?void 0:r.filter(n=>!n.hideInSearch&&n.dataIndex&&(n.valueType||n.customRenderFormItem)&&!U.noRenderAsFormItemValueList.includes(n.valueType)))==null?void 0:a.sort((n,u)=>{let l=s.getColumnOrder(n.order);return s.getColumnOrder(u.order)-l}))==null?void 0:o.map(n=>{const u=s.updateFormProps(n,s.getFieldProps(n.fieldProps,{})),l={...n,fieldProps:{label:n.title,name:n.dataIndex,...u||{},_signal:R},renderNode:void 0};return l.renderNode=s.getSearchFormItemRenderNode(l,e.unref(x)),l}))||[]}),G=e.computed(()=>s.recursionApColumns(e.unref(d),r=>{if(r.sorter===!0)return r.key||r.dataIndex}).filter(Boolean)),J=e.computed(()=>s.recursionApColumns(e.unref(d),r=>{if(r.filters&&!r.onFilter)return r.key||r.dataIndex}).filter(Boolean)),Q=e.computed(()=>c.isUndefined(t.dataSource)?p.records:t.dataSource),{rowSelection:g,selectedRows:S,...b}=ye.default({fixed:!0,...t.rowSelection===!0?{}:t.rowSelection,rowKey:t.rowKey,dataSource:Q}),{formRef:C,submit:P,reset:_,tableProps:V,refresh:X,data:p,setDataSource:Y,getColumnSFConfig:Z}=pe.useTablePaging({async request(r){var o,n;if(!g.value.preserveSelectedRowKeys&&c.isUndefined(t.dataSource)&&b.clearAll(),!c.isUndefined(t.dataSource))return{data:t.dataSource||[],total:t.dataSource.length||0};const a=await((o=t.request)==null?void 0:o.call(t,r));return(n=t.onLoad)==null||n.call(t,(a==null?void 0:a.data)||[]),{data:(a==null?void 0:a.data)||[],total:(a==null?void 0:a.total)||0}},filterFields:J,sortFields:G,defaultParams:t.params,defaultData:t.defaultData,manual:t.manual,formatParams:t.beforeSearchSubmit,pagination:t.pagination}),ee=()=>{var o;let r=((o=t.columns)==null?void 0:o.filter(n=>!n.hideInTable))||[];function a(n,u){return n.map(l=>({resizable:ge.isDef(l.resizable)?l.resizable:t.columnResizable,...c.omit(s.apColumnToColumn(l),["ellipsis"]),...Z(l),fixed:u?u.fixed:l.fixed,title:s.getTableTitle(l,B("table-header","title"),y.headerCell,e.unref(j).colorPrimary),customRender({value:f,...m}){var K,L;const I=s.getTableRenderType(l),ue=s.getTableRenderProps({...l,valueType:I},{value:f,...m}),de=s.getTableCellRenderNode(I,ue,m.record,e.unref(x)),O=((K=l.renderText)==null?void 0:K.call(l,{value:f,...m}))||f,ce=l.renderText?e.createVNode(e.Fragment,null,[(L=l.renderText)==null?void 0:L.call(l,{value:f,...m})]):de;let v=ne(l,O,ce);return l.customRender&&(v=l.customRender({value:f,...m,column:l,originalNode:v,originalText:O})),v},children:a(l.children||[],u||l)}))}return a(r)};e.watchEffect(()=>{const r=ee();d.value=r,z.value=r});const re=e.computed(()=>{var a,o;if(t.adaptive&&(p.total>0||((a=t.dataSource)==null?void 0:a.length)))return{y:e.unref(H),x:((o=t.scroll)==null?void 0:o.x)||"100%"};if(t.scroll)return t.scroll}),te=e.computed(()=>{var r;if(t.tableLayout)return t.tableLayout;if((r=t.columns)!=null&&r.some(a=>a.ellipsis))return"fixed"}),E=e.computed(()=>{var o;const r=e.unref(V),a=e.unref(g);return{...t,...r,rowSelection:t.rowSelection===!0||((o=t.rowSelection)==null?void 0:o.mode)==="internal"?{...a,preserveSelectedRowKeys:c.isUndefined(t.dataSource)?a.preserveSelectedRowKeys:!0}:s.falseToUndefined(t.rowSelection),loading:c.isUndefined(t.loading)?r.loading:t.loading,pagination:t.pagination===!1?!1:r.pagination,scroll:e.unref(re)}}),oe=e.computed(()=>[i(),t.card?null:i("wrapper"),t.adaptive?i("adaptive"):null,F?W(`sticky-${he.scrollbarSize===0?"absolute":"relative"}`):null].filter(Boolean));function ne(r,a,o){return U.noRenderAsFormItemValueList.includes(r.valueType)?o:r.copyable||r.ellipsis?e.createVNode(ve.default,{copyable:r.copyable,ellipsis:r.ellipsis?c.isBoolean(r.ellipsis)?{tooltip:o,rows:1}:{...r.ellipsis,tooltip:o}:!1,content:o},null):o}e.watch(()=>e.unref(p).loading,r=>{var a;(a=t.onLoadingChange)==null||a.call(t,r)}),e.watch(()=>t.dataSource,r=>{Y(r)},{immediate:!0});function ae(r){var a,o,n;(n=(o=(a=C.value)==null?void 0:a.apForm)==null?void 0:o.setFieldsValue)==null||n.call(o,r)}function le(r=!1){var o,n,u;const a=r?"getFieldsValueTransformed":"getFieldsValue";return(u=(n=(o=C.value)==null?void 0:o.apForm)==null?void 0:n[a])==null?void 0:u.call(n,!0)}function se(){return e.unref(d)}return $({submit:()=>P(),reset:()=>_(),refresh:()=>X(),setSearchFormValues:ae,getSearchFormValues:le,getShownColumns:se,dataSource:e.computed(()=>e.unref(p).records),rowSelection:{selectedRows:e.computed(()=>e.unref(S)),...b},scrollBar:{x:q,y:void 0}}),(r,a)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"tableWrapperRef",ref:k,class:e.normalizeClass(oe.value)},[e.unref(c.isUndefined)(r.dataSource)&&r.searchForm!==!1&&N.value.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(r.card?e.unref(h)("search-wrapper"):null),style:e.normalizeStyle(r.searchFormWrapperStyle)},[e.createVNode(e.unref(fe.ApForm).SearchForm,e.mergeProps(r.searchForm||{},{ref_key:"formRef",ref:C,"custom-reset":"","submit-loading":e.unref(V).loading,onSubmit:e.unref(P),onReset:e.unref(_)}),e.createSlots({default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,o=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.renderNode.Comp),e.mergeProps({key:o.dataIndex,item:o,ref_for:!0},o.fieldProps||{},{span:o.span,"custom-render":o.renderNode.render}),null,16,["item","span","custom-render"]))),128))]),_:2},[y.searchFormExtra?{name:"extra",fn:e.withCtx(()=>[e.renderSlot(r.$slots,"searchFormExtra")]),key:"0"}:void 0]),1040,["submit-loading","onSubmit","onReset"])],6)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"contentRef",ref:M,class:e.normalizeClass([e.unref(h)("table-wrapper"),r.card?e.unref(h)("table-wrapper-card"):null]),style:e.normalizeStyle(r.tableWrapperStyle)},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(i)("header-wrapper"))},[r.settings?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(i)("header"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(B)("header","title"))},[e.renderSlot(r.$slots,"title",e.mergeProps({selectedRows:e.unref(S),selectedRowKeys:e.unref(g).selectedRowKeys,shownColumns:d.value},b))],2),y.title?(e.openBlock(),e.createBlock(e.unref(A.Divider),{key:0,type:"vertical"})):e.createCommentVNode("",!0),e.createVNode(Re.default,{config:r.settings===!0?{}:r.settings},null,8,["config"])],2)):e.renderSlot(r.$slots,"title",e.mergeProps({key:1,selectedRows:e.unref(S),selectedRowKeys:e.unref(g).selectedRowKeys,shownColumns:d.value},b))],2),e.createVNode(e.unref(A.Table),e.mergeProps({ref_key:"antdTableRef",ref:T,class:e.unref(i)("table")},E.value,{size:w.value,"table-layout":te.value,columns:d.value,onResizeColumn:a[0]||(a[0]=(o,n)=>n.width=o)}),e.createSlots({summary:e.withCtx(()=>[e.renderSlot(r.$slots,"summary",{columns:d.value,records:E.value.dataSource,selectedRows:e.unref(S)})]),_:2},[e.unref(F)?{name:"bottomPaginationTop",fn:e.withCtx(()=>{var o,n;return[e.createVNode(e.unref(Be.default),{ref_key:"scrollBarRef",ref:q,"scroll-container":(n=(o=T.value)==null?void 0:o.table)==null?void 0:n.scrollBodyRef,direction:"horizontal"},null,8,["scroll-container"])]}),key:"0"}:void 0,e.renderList(e.unref(c.omit)(y,["title","searchFormExtra","headerCell","summary"]),(o,n)=>({name:n,fn:e.withCtx(u=>[e.renderSlot(r.$slots,n,e.normalizeProps(e.guardReactiveProps(u||{})))])}))]),1040,["class","size","table-layout","columns"])],6)],2))}});exports.default=xe;
@@ -2,5 +2,5 @@ import { ApTableIndexProps } from '../interface';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  declare const _default: DefineComponent<ApTableIndexProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApTableIndexProps> & Readonly<{}>, {
4
4
  bordered: boolean;
5
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
5
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
6
6
  export default _default;
@@ -7,5 +7,5 @@ interface Props {
7
7
  tooltip?: VNodeChild;
8
8
  };
9
9
  }
10
- declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
10
+ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
11
11
  export default _default;
@@ -5,10 +5,9 @@ type TableSettingModalSlots = {
5
5
  trigger?: any;
6
6
  };
7
7
  declare function __VLS_template(): {
8
- attrs: Partial<{}>;
9
8
  slots: Readonly<TableSettingModalSlots> & TableSettingModalSlots;
10
9
  refs: {};
11
- rootEl: any;
10
+ attrs: Partial<{}>;
12
11
  };
13
12
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
13
  declare const __VLS_component: DefineComponent<ApTableSettingModalProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApTableSettingModalProps> & Readonly<{}>, {
@@ -1,4 +1,4 @@
1
1
  import { ApTableSettingSelectGroupProps } from '../../interface';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
- declare const _default: DefineComponent<ApTableSettingSelectGroupProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApTableSettingSelectGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
3
+ declare const _default: DefineComponent<ApTableSettingSelectGroupProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApTableSettingSelectGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
4
4
  export default _default;
@@ -1,4 +1,4 @@
1
1
  import { SortableItemProps } from '../../interface';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
- declare const _default: DefineComponent<SortableItemProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<SortableItemProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
3
+ declare const _default: DefineComponent<SortableItemProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<SortableItemProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
4
4
  export default _default;
@@ -7,5 +7,5 @@ declare const _default: DefineComponent<SortableItemMetaProps, {}, {}, {}, {}, C
7
7
  }, string, PublicProps, Readonly<SortableItemMetaProps> & Readonly<{
8
8
  "onUpdate:open"?: ((open: boolean) => any) | undefined;
9
9
  "onUpdate:value"?: ((open: ApColumnState) => any) | undefined;
10
- }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
10
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
11
11
  export default _default;
@@ -5,5 +5,5 @@ declare const _default: DefineComponent<ApTableSettingSorterProps, {}, {}, {}, {
5
5
  "update:value": (value: ApColumnState[]) => any;
6
6
  }, string, PublicProps, Readonly<ApTableSettingSorterProps> & Readonly<{
7
7
  "onUpdate:value"?: ((value: ApColumnState[]) => any) | undefined;
8
- }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
8
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
9
9
  export default _default;
@@ -1,4 +1,4 @@
1
1
  import { ApTableSettingTreeSelectProps } from '../../interface';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
- declare const _default: DefineComponent<ApTableSettingTreeSelectProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApTableSettingTreeSelectProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
3
+ declare const _default: DefineComponent<ApTableSettingTreeSelectProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApTableSettingTreeSelectProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
4
4
  export default _default;