@aplus-frontend/ui 0.0.1-beta.15 → 0.0.1-beta.17

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 (459) hide show
  1. package/es/index.d.ts +7 -7
  2. package/es/src/ap-action/group/index.vue.d.ts +35 -35
  3. package/es/src/ap-action/index.d.ts +9 -9
  4. package/es/src/ap-action/interface.d.ts +80 -80
  5. package/es/src/ap-action/item/index.vue.d.ts +42 -42
  6. package/es/src/ap-action/item-dropdown/index.vue.d.ts +54 -54
  7. package/es/src/ap-action/item-modal/index.vue.d.ts +38 -38
  8. package/es/src/ap-action/item-popconfirm/index.vue.d.ts +332 -332
  9. package/es/src/ap-custom-column/column-select.vue.d.ts +16 -16
  10. package/es/src/ap-custom-column/custom-column.vue.d.ts +16 -16
  11. package/es/src/ap-custom-column/index.d.ts +5 -5
  12. package/es/src/ap-custom-column/interfaces.d.ts +40 -40
  13. package/es/src/ap-custom-column/storage.d.ts +8 -8
  14. package/es/src/ap-custom-column/useCacheColumnSetting.d.ts +9 -9
  15. package/es/src/ap-custom-column/utils.d.ts +2 -2
  16. package/es/src/ap-field/checkbox/helper.d.ts +3 -3
  17. package/es/src/ap-field/checkbox/index.vue.d.ts +36 -36
  18. package/es/src/ap-field/date/constant.d.ts +9 -9
  19. package/es/src/ap-field/date/helper.d.ts +3 -3
  20. package/es/src/ap-field/date/index.vue.d.ts +54 -54
  21. package/es/src/ap-field/date/interface.d.ts +2 -2
  22. package/es/src/ap-field/date-range/index.vue.d.ts +56 -56
  23. package/es/src/ap-field/index.d.ts +15 -15
  24. package/es/src/ap-field/interface.d.ts +86 -86
  25. package/es/src/ap-field/number/helper.d.ts +1 -1
  26. package/es/src/ap-field/number/index.vue.d.ts +69 -69
  27. package/es/src/ap-field/radio/helper.d.ts +3 -3
  28. package/es/src/ap-field/radio/index.vue.d.ts +38 -38
  29. package/es/src/ap-field/select/index.vue.d.ts +226 -226
  30. package/es/src/ap-field/switch/index.vue.d.ts +52 -52
  31. package/es/src/ap-field/text/index.vue.d.ts +63 -63
  32. package/es/src/ap-field/text-area/index.vue.d.ts +46 -46
  33. package/es/src/ap-form/ap-form-item-group/helper.d.ts +17 -17
  34. package/es/src/ap-form/ap-form-item-group/index.vue.d.ts +41 -41
  35. package/es/src/ap-form/ap-form-item.vue.d.ts +66 -66
  36. package/es/src/ap-form/ap-form-list.vue.d.ts +33 -33
  37. package/es/src/ap-form/ap-form.vue.d.ts +63 -63
  38. package/es/src/ap-form/constant.d.ts +2 -2
  39. package/es/src/ap-form/context.d.ts +9 -9
  40. package/es/src/ap-form/index.d.ts +11 -11
  41. package/es/src/ap-form/interface.d.ts +46 -46
  42. package/es/src/ap-form/items/date/index.vue.d.ts +62 -62
  43. package/es/src/ap-form/items/date-range/index.vue.d.ts +61 -61
  44. package/es/src/ap-form/items/index.d.ts +2 -2
  45. package/es/src/ap-form/items/interface.d.ts +39 -39
  46. package/es/src/ap-form/items/number/index.vue.d.ts +60 -60
  47. package/es/src/ap-form/items/radio/index.vue.d.ts +47 -47
  48. package/es/src/ap-form/items/select/index.vue.d.ts +66 -66
  49. package/es/src/ap-form/items/switch/index.vue.d.ts +57 -57
  50. package/es/src/ap-form/items/text/index.vue.d.ts +62 -62
  51. package/es/src/ap-form/items/text-area/index.vue.d.ts +48 -48
  52. package/es/src/ap-form/search-form/index.vue.d.ts +73 -73
  53. package/es/src/ap-tag/ap-tag-group.vue.d.ts +32 -32
  54. package/es/src/ap-tag/ap-tag.vue.d.ts +32 -32
  55. package/es/src/ap-tag/index.d.ts +3 -3
  56. package/es/src/ap-tag/interface.d.ts +35 -35
  57. package/es/src/ap-upload/apUpload.vue.d.ts +109 -109
  58. package/es/src/ap-upload/apUpload.vue.mjs +1 -1
  59. package/es/src/ap-upload/apUploadTypes.d.ts +89 -89
  60. package/es/src/ap-upload/components/MultipleFile.vue.d.ts +3 -3
  61. package/es/src/ap-upload/components/Picture.vue.d.ts +3 -3
  62. package/es/src/ap-upload/components/SingleFile.vue.d.ts +3 -3
  63. package/es/src/ap-upload/hooks/useOss.d.ts +18 -18
  64. package/es/src/ap-upload/index.d.ts +4 -4
  65. package/es/src/ap-upload/utils/accept.d.ts +13 -13
  66. package/es/src/ap-upload/utils/returnData.d.ts +19 -19
  67. package/es/src/base-button/button.vue.d.ts +34 -34
  68. package/es/src/base-button/constants.d.ts +25 -25
  69. package/es/src/base-button/index.d.ts +134 -134
  70. package/es/src/base-button/interface.d.ts +15 -15
  71. package/es/src/base-button/modal-button.vue.d.ts +25 -25
  72. package/es/src/base-button/pop-confirm-button.vue.d.ts +16 -16
  73. package/es/src/basic/arrow.vue.d.ts +12 -12
  74. package/es/src/basic/help.vue.d.ts +103 -103
  75. package/es/src/basic/index.d.ts +276 -276
  76. package/es/src/basic/interface.d.ts +20 -20
  77. package/es/src/basic/title.vue.d.ts +33 -33
  78. package/es/src/button/__tests__/button.test.d.ts +1 -1
  79. package/es/src/button/index.d.ts +50 -50
  80. package/es/src/config-provider/config-provider-props.d.ts +143 -143
  81. package/es/src/config-provider/config-provider.d.ts +312 -312
  82. package/es/src/config-provider/constants.d.ts +27 -27
  83. package/es/src/config-provider/hooks/use-global-config.d.ts +142 -142
  84. package/es/src/config-provider/hooks/use-locale.d.ts +13 -13
  85. package/es/src/config-provider/hooks/use-namespace.d.ts +23 -23
  86. package/es/src/config-provider/index.d.ts +680 -680
  87. package/es/src/container/collapse/header.vue.d.ts +35 -35
  88. package/es/src/container/collapse/index.vue.d.ts +120 -120
  89. package/es/src/container/index.d.ts +177 -177
  90. package/es/src/container/interface.d.ts +18 -18
  91. package/es/src/container/scroll-container.vue.d.ts +22 -22
  92. package/es/src/count-down/button.vue.d.ts +26 -26
  93. package/es/src/count-down/index.d.ts +149 -149
  94. package/es/src/count-down/input.vue.d.ts +31 -31
  95. package/es/src/count-down/interface.d.ts +12 -12
  96. package/es/src/cropper/cropper-avatar.vue.d.ts +44 -44
  97. package/es/src/cropper/cropper-image.vue.d.ts +49 -49
  98. package/es/src/cropper/cropper-modal.vue.d.ts +46 -46
  99. package/es/src/cropper/index.d.ts +366 -366
  100. package/es/src/cropper/interface.d.ts +29 -29
  101. package/es/src/description/description.vue.d.ts +93 -93
  102. package/es/src/description/index.d.ts +211 -211
  103. package/es/src/description/interface.d.ts +37 -37
  104. package/es/src/description/use-description.d.ts +2 -2
  105. package/es/src/design-token/index.d.ts +3 -3
  106. package/es/src/dropdown/dropdown.vue.d.ts +43 -43
  107. package/es/src/dropdown/index.d.ts +110 -110
  108. package/es/src/dropdown/interface.d.ts +16 -16
  109. package/es/src/hooks/index.d.ts +2 -2
  110. package/es/src/hooks/useControllableValue.d.ts +11 -11
  111. package/es/src/hooks/useMessage.d.ts +59 -59
  112. package/es/src/icon/icon.vue.d.ts +32 -32
  113. package/es/src/icon/index.d.ts +207 -207
  114. package/es/src/icon/interface.d.ts +28 -28
  115. package/es/src/icon/svg-icon.vue.d.ts +32 -32
  116. package/es/src/icon-picker/data.d.ts +5 -5
  117. package/es/src/icon-picker/icon-picker.vue.d.ts +50 -50
  118. package/es/src/icon-picker/index.d.ts +189 -189
  119. package/es/src/icon-picker/interface.d.ts +13 -13
  120. package/es/src/index.d.ts +25 -25
  121. package/es/src/locale/index.d.ts +3 -3
  122. package/es/src/locale/interface.d.ts +8 -8
  123. package/es/src/locale/lang/en.d.ts +3 -3
  124. package/es/src/locale/lang/zh-cn.d.ts +3 -3
  125. package/es/src/modal/basic.vue.d.ts +459 -459
  126. package/es/src/modal/components/modal-close.vue.d.ts +32 -32
  127. package/es/src/modal/components/modal-footer.vue.d.ts +451 -451
  128. package/es/src/modal/components/modal-header.vue.d.ts +12 -12
  129. package/es/src/modal/components/modal-wrapper.vue.d.ts +101 -101
  130. package/es/src/modal/components/modal.d.ts +437 -437
  131. package/es/src/modal/hooks/use-moda-full-screen.d.ts +11 -11
  132. package/es/src/modal/hooks/use-modal-context.d.ts +7 -7
  133. package/es/src/modal/hooks/use-modal-drag.d.ts +7 -7
  134. package/es/src/modal/hooks/use-modal.d.ts +6 -6
  135. package/es/src/modal/index.d.ts +957 -957
  136. package/es/src/modal/interface.d.ts +180 -180
  137. package/es/src/modal/props.d.ts +277 -277
  138. package/es/src/pro-form/component-map.d.ts +5 -5
  139. package/es/src/pro-form/components/api-cascader.vue.d.ts +50 -50
  140. package/es/src/pro-form/components/api-radio-group.vue.d.ts +49 -49
  141. package/es/src/pro-form/components/api-select.vue.d.ts +71 -71
  142. package/es/src/pro-form/components/api-transfer.vue.d.ts +53 -53
  143. package/es/src/pro-form/components/api-tree-select.vue.d.ts +55 -55
  144. package/es/src/pro-form/components/api-tree.vue.d.ts +43 -43
  145. package/es/src/pro-form/components/form-action.vue.d.ts +58 -58
  146. package/es/src/pro-form/components/form-item.vue.d.ts +70 -70
  147. package/es/src/pro-form/components/interface.d.ts +113 -113
  148. package/es/src/pro-form/components/radio-button-group.vue.d.ts +26 -26
  149. package/es/src/pro-form/helper.d.ts +9 -9
  150. package/es/src/pro-form/hooks/use-advanced.d.ts +14 -14
  151. package/es/src/pro-form/hooks/use-auto-focus.d.ts +9 -9
  152. package/es/src/pro-form/hooks/use-break-point.d.ts +23 -23
  153. package/es/src/pro-form/hooks/use-component-register.d.ts +2 -2
  154. package/es/src/pro-form/hooks/use-form-context.d.ts +8 -8
  155. package/es/src/pro-form/hooks/use-form-events.d.ts +26 -26
  156. package/es/src/pro-form/hooks/use-form-item.d.ts +2 -2
  157. package/es/src/pro-form/hooks/use-form-values.d.ts +12 -12
  158. package/es/src/pro-form/hooks/use-form.d.ts +8 -8
  159. package/es/src/pro-form/hooks/use-label-width.d.ts +309 -309
  160. package/es/src/pro-form/index.d.ts +17 -17
  161. package/es/src/pro-form/interface.d.ts +4 -4
  162. package/es/src/pro-form/pro-form.vue.d.ts +106 -106
  163. package/es/src/pro-form/types/form-item.d.ts +80 -80
  164. package/es/src/pro-form/types/form.d.ts +147 -147
  165. package/es/src/pro-form/types/index.d.ts +158 -158
  166. package/es/src/pro-table/component-map.d.ts +6 -6
  167. package/es/src/pro-table/components/edit-table-header-icon.vue.d.ts +21 -21
  168. package/es/src/pro-table/components/editable/cell-component.d.ts +11 -11
  169. package/es/src/pro-table/components/editable/editable-cell.vue.d.ts +80 -80
  170. package/es/src/pro-table/components/editable/helper.d.ts +5 -5
  171. package/es/src/pro-table/components/editable/index.d.ts +21 -21
  172. package/es/src/pro-table/components/header-cell.vue.d.ts +15 -15
  173. package/es/src/pro-table/components/settings/column-setting.vue.d.ts +7 -7
  174. package/es/src/pro-table/components/settings/full-screen-setting.vue.d.ts +2 -2
  175. package/es/src/pro-table/components/settings/index.vue.d.ts +19 -19
  176. package/es/src/pro-table/components/settings/redo-setting.vue.d.ts +2 -2
  177. package/es/src/pro-table/components/settings/size-setting.vue.d.ts +2 -2
  178. package/es/src/pro-table/components/table-action.vue.d.ts +56 -56
  179. package/es/src/pro-table/components/table-footer.vue.d.ts +42 -42
  180. package/es/src/pro-table/components/table-header.vue.d.ts +71 -71
  181. package/es/src/pro-table/components/table-image.vue.d.ts +47 -47
  182. package/es/src/pro-table/components/table-selection-bar.vue.d.ts +32 -32
  183. package/es/src/pro-table/components/table-title.vue.d.ts +23 -23
  184. package/es/src/pro-table/const.d.ts +6 -6
  185. package/es/src/pro-table/directives/click-outside.d.ts +3 -3
  186. package/es/src/pro-table/helper.d.ts +3 -3
  187. package/es/src/pro-table/hooks/use-columns.d.ts +12 -12
  188. package/es/src/pro-table/hooks/use-custom-row.d.ts +18 -18
  189. package/es/src/pro-table/hooks/use-data-source.d.ts +26 -26
  190. package/es/src/pro-table/hooks/use-loading.d.ts +5 -5
  191. package/es/src/pro-table/hooks/use-pagination.d.ts +8 -8
  192. package/es/src/pro-table/hooks/use-row-selection.d.ts +11 -11
  193. package/es/src/pro-table/hooks/use-scroll-to.d.ts +4 -4
  194. package/es/src/pro-table/hooks/use-table-context.d.ts +11 -11
  195. package/es/src/pro-table/hooks/use-table-expand.d.ts +16 -16
  196. package/es/src/pro-table/hooks/use-table-footer.d.ts +4 -4
  197. package/es/src/pro-table/hooks/use-table-form.d.ts +7 -7
  198. package/es/src/pro-table/hooks/use-table-header.d.ts +4 -4
  199. package/es/src/pro-table/hooks/use-table-scroll.d.ts +10 -10
  200. package/es/src/pro-table/hooks/use-table-style.d.ts +4 -4
  201. package/es/src/pro-table/hooks/use-table.d.ts +15 -15
  202. package/es/src/pro-table/index.d.ts +10 -10
  203. package/es/src/pro-table/interface.d.ts +62 -62
  204. package/es/src/pro-table/pro-table.vue.d.ts +162 -162
  205. package/es/src/pro-table/types/pagination.d.ts +92 -92
  206. package/es/src/pro-table/types/table-action.d.ts +22 -22
  207. package/es/src/pro-table/types/table.d.ts +376 -376
  208. package/es/src/prompt/dialog.vue.d.ts +12 -12
  209. package/es/src/prompt/index.d.ts +9 -9
  210. package/es/src/prompt/interface.d.ts +22 -22
  211. package/es/src/prompt/utils.d.ts +9 -9
  212. package/es/src/scroll-bar/bar-item.d.ts +15 -15
  213. package/es/src/scroll-bar/index.d.ts +174 -174
  214. package/es/src/scroll-bar/interface.d.ts +31 -31
  215. package/es/src/scroll-bar/scroll-bar.vue.d.ts +50 -50
  216. package/es/src/scroll-bar/utils.d.ts +9 -9
  217. package/es/src/strength-meter/index.d.ts +88 -88
  218. package/es/src/strength-meter/interface.d.ts +5 -5
  219. package/es/src/strength-meter/strength-meter.vue.d.ts +37 -37
  220. package/es/src/transition/collapse-transition.vue.d.ts +10 -10
  221. package/es/src/transition/create-transition.d.ts +47 -47
  222. package/es/src/transition/expand-transition.d.ts +19 -19
  223. package/es/src/transition/index.d.ts +368 -368
  224. package/es/src/type.d.ts +29 -29
  225. package/es/src/utils/copy-text-to-clipboard.d.ts +1 -1
  226. package/es/src/utils/index.d.ts +14 -14
  227. package/es/src/utils/slot.d.ts +15 -15
  228. package/es/src/utils/tree.d.ts +38 -38
  229. package/es/src/utils/uuid.d.ts +2 -2
  230. package/lib/index.d.ts +7 -7
  231. package/lib/src/ap-action/group/index.vue.d.ts +35 -35
  232. package/lib/src/ap-action/index.d.ts +9 -9
  233. package/lib/src/ap-action/interface.d.ts +80 -80
  234. package/lib/src/ap-action/item/index.vue.d.ts +42 -42
  235. package/lib/src/ap-action/item-dropdown/index.vue.d.ts +54 -54
  236. package/lib/src/ap-action/item-modal/index.vue.d.ts +38 -38
  237. package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +332 -332
  238. package/lib/src/ap-custom-column/column-select.vue.d.ts +16 -16
  239. package/lib/src/ap-custom-column/custom-column.vue.d.ts +16 -16
  240. package/lib/src/ap-custom-column/index.d.ts +5 -5
  241. package/lib/src/ap-custom-column/interfaces.d.ts +40 -40
  242. package/lib/src/ap-custom-column/storage.d.ts +8 -8
  243. package/lib/src/ap-custom-column/useCacheColumnSetting.d.ts +9 -9
  244. package/lib/src/ap-custom-column/utils.d.ts +2 -2
  245. package/lib/src/ap-field/checkbox/helper.d.ts +3 -3
  246. package/lib/src/ap-field/checkbox/index.vue.d.ts +36 -36
  247. package/lib/src/ap-field/date/constant.d.ts +9 -9
  248. package/lib/src/ap-field/date/helper.d.ts +3 -3
  249. package/lib/src/ap-field/date/index.vue.d.ts +54 -54
  250. package/lib/src/ap-field/date/interface.d.ts +2 -2
  251. package/lib/src/ap-field/date-range/index.vue.d.ts +56 -56
  252. package/lib/src/ap-field/index.d.ts +15 -15
  253. package/lib/src/ap-field/interface.d.ts +86 -86
  254. package/lib/src/ap-field/number/helper.d.ts +1 -1
  255. package/lib/src/ap-field/number/index.vue.d.ts +69 -69
  256. package/lib/src/ap-field/radio/helper.d.ts +3 -3
  257. package/lib/src/ap-field/radio/index.vue.d.ts +38 -38
  258. package/lib/src/ap-field/select/index.vue.d.ts +226 -226
  259. package/lib/src/ap-field/switch/index.vue.d.ts +52 -52
  260. package/lib/src/ap-field/text/index.vue.d.ts +63 -63
  261. package/lib/src/ap-field/text-area/index.vue.d.ts +46 -46
  262. package/lib/src/ap-form/ap-form-item-group/helper.d.ts +17 -17
  263. package/lib/src/ap-form/ap-form-item-group/index.vue.d.ts +41 -41
  264. package/lib/src/ap-form/ap-form-item.vue.d.ts +66 -66
  265. package/lib/src/ap-form/ap-form-list.vue.d.ts +33 -33
  266. package/lib/src/ap-form/ap-form.vue.d.ts +63 -63
  267. package/lib/src/ap-form/constant.d.ts +2 -2
  268. package/lib/src/ap-form/context.d.ts +9 -9
  269. package/lib/src/ap-form/index.d.ts +11 -11
  270. package/lib/src/ap-form/interface.d.ts +46 -46
  271. package/lib/src/ap-form/items/date/index.vue.d.ts +62 -62
  272. package/lib/src/ap-form/items/date-range/index.vue.d.ts +61 -61
  273. package/lib/src/ap-form/items/index.d.ts +2 -2
  274. package/lib/src/ap-form/items/interface.d.ts +39 -39
  275. package/lib/src/ap-form/items/number/index.vue.d.ts +60 -60
  276. package/lib/src/ap-form/items/radio/index.vue.d.ts +47 -47
  277. package/lib/src/ap-form/items/select/index.vue.d.ts +66 -66
  278. package/lib/src/ap-form/items/switch/index.vue.d.ts +57 -57
  279. package/lib/src/ap-form/items/text/index.vue.d.ts +62 -62
  280. package/lib/src/ap-form/items/text-area/index.vue.d.ts +48 -48
  281. package/lib/src/ap-form/search-form/index.vue.d.ts +73 -73
  282. package/lib/src/ap-tag/ap-tag-group.vue.d.ts +32 -32
  283. package/lib/src/ap-tag/ap-tag.vue.d.ts +32 -32
  284. package/lib/src/ap-tag/index.d.ts +3 -3
  285. package/lib/src/ap-tag/interface.d.ts +35 -35
  286. package/lib/src/ap-upload/apUpload.vue.d.ts +109 -109
  287. package/lib/src/ap-upload/apUpload.vue.js +1 -1
  288. package/lib/src/ap-upload/apUploadTypes.d.ts +89 -89
  289. package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +3 -3
  290. package/lib/src/ap-upload/components/Picture.vue.d.ts +3 -3
  291. package/lib/src/ap-upload/components/SingleFile.vue.d.ts +3 -3
  292. package/lib/src/ap-upload/hooks/useOss.d.ts +18 -18
  293. package/lib/src/ap-upload/index.d.ts +4 -4
  294. package/lib/src/ap-upload/utils/accept.d.ts +13 -13
  295. package/lib/src/ap-upload/utils/returnData.d.ts +19 -19
  296. package/lib/src/base-button/button.vue.d.ts +34 -34
  297. package/lib/src/base-button/constants.d.ts +25 -25
  298. package/lib/src/base-button/index.d.ts +134 -134
  299. package/lib/src/base-button/interface.d.ts +15 -15
  300. package/lib/src/base-button/modal-button.vue.d.ts +25 -25
  301. package/lib/src/base-button/pop-confirm-button.vue.d.ts +16 -16
  302. package/lib/src/basic/arrow.vue.d.ts +12 -12
  303. package/lib/src/basic/help.vue.d.ts +103 -103
  304. package/lib/src/basic/index.d.ts +276 -276
  305. package/lib/src/basic/interface.d.ts +20 -20
  306. package/lib/src/basic/title.vue.d.ts +33 -33
  307. package/lib/src/button/__tests__/button.test.d.ts +1 -1
  308. package/lib/src/button/index.d.ts +50 -50
  309. package/lib/src/config-provider/config-provider-props.d.ts +143 -143
  310. package/lib/src/config-provider/config-provider.d.ts +312 -312
  311. package/lib/src/config-provider/constants.d.ts +27 -27
  312. package/lib/src/config-provider/hooks/use-global-config.d.ts +142 -142
  313. package/lib/src/config-provider/hooks/use-locale.d.ts +13 -13
  314. package/lib/src/config-provider/hooks/use-namespace.d.ts +23 -23
  315. package/lib/src/config-provider/index.d.ts +680 -680
  316. package/lib/src/container/collapse/header.vue.d.ts +35 -35
  317. package/lib/src/container/collapse/index.vue.d.ts +120 -120
  318. package/lib/src/container/index.d.ts +177 -177
  319. package/lib/src/container/interface.d.ts +18 -18
  320. package/lib/src/container/scroll-container.vue.d.ts +22 -22
  321. package/lib/src/count-down/button.vue.d.ts +26 -26
  322. package/lib/src/count-down/index.d.ts +149 -149
  323. package/lib/src/count-down/input.vue.d.ts +31 -31
  324. package/lib/src/count-down/interface.d.ts +12 -12
  325. package/lib/src/cropper/cropper-avatar.vue.d.ts +44 -44
  326. package/lib/src/cropper/cropper-image.vue.d.ts +49 -49
  327. package/lib/src/cropper/cropper-modal.vue.d.ts +46 -46
  328. package/lib/src/cropper/index.d.ts +366 -366
  329. package/lib/src/cropper/interface.d.ts +29 -29
  330. package/lib/src/description/description.vue.d.ts +93 -93
  331. package/lib/src/description/index.d.ts +211 -211
  332. package/lib/src/description/interface.d.ts +37 -37
  333. package/lib/src/description/use-description.d.ts +2 -2
  334. package/lib/src/design-token/index.d.ts +3 -3
  335. package/lib/src/dropdown/dropdown.vue.d.ts +43 -43
  336. package/lib/src/dropdown/index.d.ts +110 -110
  337. package/lib/src/dropdown/interface.d.ts +16 -16
  338. package/lib/src/hooks/index.d.ts +2 -2
  339. package/lib/src/hooks/useControllableValue.d.ts +11 -11
  340. package/lib/src/hooks/useMessage.d.ts +59 -59
  341. package/lib/src/icon/icon.vue.d.ts +32 -32
  342. package/lib/src/icon/index.d.ts +207 -207
  343. package/lib/src/icon/interface.d.ts +28 -28
  344. package/lib/src/icon/svg-icon.vue.d.ts +32 -32
  345. package/lib/src/icon-picker/data.d.ts +5 -5
  346. package/lib/src/icon-picker/icon-picker.vue.d.ts +50 -50
  347. package/lib/src/icon-picker/index.d.ts +189 -189
  348. package/lib/src/icon-picker/interface.d.ts +13 -13
  349. package/lib/src/index.d.ts +25 -25
  350. package/lib/src/locale/index.d.ts +3 -3
  351. package/lib/src/locale/interface.d.ts +8 -8
  352. package/lib/src/locale/lang/en.d.ts +3 -3
  353. package/lib/src/locale/lang/zh-cn.d.ts +3 -3
  354. package/lib/src/modal/basic.vue.d.ts +459 -459
  355. package/lib/src/modal/components/modal-close.vue.d.ts +32 -32
  356. package/lib/src/modal/components/modal-footer.vue.d.ts +451 -451
  357. package/lib/src/modal/components/modal-header.vue.d.ts +12 -12
  358. package/lib/src/modal/components/modal-wrapper.vue.d.ts +101 -101
  359. package/lib/src/modal/components/modal.d.ts +437 -437
  360. package/lib/src/modal/hooks/use-moda-full-screen.d.ts +11 -11
  361. package/lib/src/modal/hooks/use-modal-context.d.ts +7 -7
  362. package/lib/src/modal/hooks/use-modal-drag.d.ts +7 -7
  363. package/lib/src/modal/hooks/use-modal.d.ts +6 -6
  364. package/lib/src/modal/index.d.ts +957 -957
  365. package/lib/src/modal/interface.d.ts +180 -180
  366. package/lib/src/modal/props.d.ts +277 -277
  367. package/lib/src/pro-form/component-map.d.ts +5 -5
  368. package/lib/src/pro-form/components/api-cascader.vue.d.ts +50 -50
  369. package/lib/src/pro-form/components/api-radio-group.vue.d.ts +49 -49
  370. package/lib/src/pro-form/components/api-select.vue.d.ts +71 -71
  371. package/lib/src/pro-form/components/api-transfer.vue.d.ts +53 -53
  372. package/lib/src/pro-form/components/api-tree-select.vue.d.ts +55 -55
  373. package/lib/src/pro-form/components/api-tree.vue.d.ts +43 -43
  374. package/lib/src/pro-form/components/form-action.vue.d.ts +58 -58
  375. package/lib/src/pro-form/components/form-item.vue.d.ts +70 -70
  376. package/lib/src/pro-form/components/interface.d.ts +113 -113
  377. package/lib/src/pro-form/components/radio-button-group.vue.d.ts +26 -26
  378. package/lib/src/pro-form/helper.d.ts +9 -9
  379. package/lib/src/pro-form/hooks/use-advanced.d.ts +14 -14
  380. package/lib/src/pro-form/hooks/use-auto-focus.d.ts +9 -9
  381. package/lib/src/pro-form/hooks/use-break-point.d.ts +23 -23
  382. package/lib/src/pro-form/hooks/use-component-register.d.ts +2 -2
  383. package/lib/src/pro-form/hooks/use-form-context.d.ts +8 -8
  384. package/lib/src/pro-form/hooks/use-form-events.d.ts +26 -26
  385. package/lib/src/pro-form/hooks/use-form-item.d.ts +2 -2
  386. package/lib/src/pro-form/hooks/use-form-values.d.ts +12 -12
  387. package/lib/src/pro-form/hooks/use-form.d.ts +8 -8
  388. package/lib/src/pro-form/hooks/use-label-width.d.ts +309 -309
  389. package/lib/src/pro-form/index.d.ts +17 -17
  390. package/lib/src/pro-form/interface.d.ts +4 -4
  391. package/lib/src/pro-form/pro-form.vue.d.ts +106 -106
  392. package/lib/src/pro-form/types/form-item.d.ts +80 -80
  393. package/lib/src/pro-form/types/form.d.ts +147 -147
  394. package/lib/src/pro-form/types/index.d.ts +158 -158
  395. package/lib/src/pro-table/component-map.d.ts +6 -6
  396. package/lib/src/pro-table/components/edit-table-header-icon.vue.d.ts +21 -21
  397. package/lib/src/pro-table/components/editable/cell-component.d.ts +11 -11
  398. package/lib/src/pro-table/components/editable/editable-cell.vue.d.ts +80 -80
  399. package/lib/src/pro-table/components/editable/helper.d.ts +5 -5
  400. package/lib/src/pro-table/components/editable/index.d.ts +21 -21
  401. package/lib/src/pro-table/components/header-cell.vue.d.ts +15 -15
  402. package/lib/src/pro-table/components/settings/column-setting.vue.d.ts +7 -7
  403. package/lib/src/pro-table/components/settings/full-screen-setting.vue.d.ts +2 -2
  404. package/lib/src/pro-table/components/settings/index.vue.d.ts +19 -19
  405. package/lib/src/pro-table/components/settings/redo-setting.vue.d.ts +2 -2
  406. package/lib/src/pro-table/components/settings/size-setting.vue.d.ts +2 -2
  407. package/lib/src/pro-table/components/table-action.vue.d.ts +56 -56
  408. package/lib/src/pro-table/components/table-footer.vue.d.ts +42 -42
  409. package/lib/src/pro-table/components/table-header.vue.d.ts +71 -71
  410. package/lib/src/pro-table/components/table-image.vue.d.ts +47 -47
  411. package/lib/src/pro-table/components/table-selection-bar.vue.d.ts +32 -32
  412. package/lib/src/pro-table/components/table-title.vue.d.ts +23 -23
  413. package/lib/src/pro-table/const.d.ts +6 -6
  414. package/lib/src/pro-table/directives/click-outside.d.ts +3 -3
  415. package/lib/src/pro-table/helper.d.ts +3 -3
  416. package/lib/src/pro-table/hooks/use-columns.d.ts +12 -12
  417. package/lib/src/pro-table/hooks/use-custom-row.d.ts +18 -18
  418. package/lib/src/pro-table/hooks/use-data-source.d.ts +26 -26
  419. package/lib/src/pro-table/hooks/use-loading.d.ts +5 -5
  420. package/lib/src/pro-table/hooks/use-pagination.d.ts +8 -8
  421. package/lib/src/pro-table/hooks/use-row-selection.d.ts +11 -11
  422. package/lib/src/pro-table/hooks/use-scroll-to.d.ts +4 -4
  423. package/lib/src/pro-table/hooks/use-table-context.d.ts +11 -11
  424. package/lib/src/pro-table/hooks/use-table-expand.d.ts +16 -16
  425. package/lib/src/pro-table/hooks/use-table-footer.d.ts +4 -4
  426. package/lib/src/pro-table/hooks/use-table-form.d.ts +7 -7
  427. package/lib/src/pro-table/hooks/use-table-header.d.ts +4 -4
  428. package/lib/src/pro-table/hooks/use-table-scroll.d.ts +10 -10
  429. package/lib/src/pro-table/hooks/use-table-style.d.ts +4 -4
  430. package/lib/src/pro-table/hooks/use-table.d.ts +15 -15
  431. package/lib/src/pro-table/index.d.ts +10 -10
  432. package/lib/src/pro-table/interface.d.ts +62 -62
  433. package/lib/src/pro-table/pro-table.vue.d.ts +162 -162
  434. package/lib/src/pro-table/types/pagination.d.ts +92 -92
  435. package/lib/src/pro-table/types/table-action.d.ts +22 -22
  436. package/lib/src/pro-table/types/table.d.ts +376 -376
  437. package/lib/src/prompt/dialog.vue.d.ts +12 -12
  438. package/lib/src/prompt/index.d.ts +9 -9
  439. package/lib/src/prompt/interface.d.ts +22 -22
  440. package/lib/src/prompt/utils.d.ts +9 -9
  441. package/lib/src/scroll-bar/bar-item.d.ts +15 -15
  442. package/lib/src/scroll-bar/index.d.ts +174 -174
  443. package/lib/src/scroll-bar/interface.d.ts +31 -31
  444. package/lib/src/scroll-bar/scroll-bar.vue.d.ts +50 -50
  445. package/lib/src/scroll-bar/utils.d.ts +9 -9
  446. package/lib/src/strength-meter/index.d.ts +88 -88
  447. package/lib/src/strength-meter/interface.d.ts +5 -5
  448. package/lib/src/strength-meter/strength-meter.vue.d.ts +37 -37
  449. package/lib/src/transition/collapse-transition.vue.d.ts +10 -10
  450. package/lib/src/transition/create-transition.d.ts +47 -47
  451. package/lib/src/transition/expand-transition.d.ts +19 -19
  452. package/lib/src/transition/index.d.ts +368 -368
  453. package/lib/src/type.d.ts +29 -29
  454. package/lib/src/utils/copy-text-to-clipboard.d.ts +1 -1
  455. package/lib/src/utils/index.d.ts +14 -14
  456. package/lib/src/utils/slot.d.ts +15 -15
  457. package/lib/src/utils/tree.d.ts +38 -38
  458. package/lib/src/utils/uuid.d.ts +2 -2
  459. package/package.json +5 -3
@@ -6,379 +6,379 @@ import { ProFormProps } from '../../pro-form';
6
6
  import { PaginationProps } from './pagination';
7
7
  import { TableRowSelection as AntdTableRowSelection, Key } from 'ant-design-vue/es/table/interface';
8
8
  import { FixedType } from 'ant-design-vue/es/vc-table/interface';
9
-
10
- export type CellFormat = string | ((text: string, record: Recordable, index: number) => string | number) | Map<string | number, any>;
11
- export interface BasicColumn extends Omit<ColumnProps<Recordable>, 'filters'> {
12
- children?: BasicColumn[];
13
- filters?: {
14
- text: string;
15
- value: string;
16
- children?: unknown[] | (((props: Record<string, unknown>) => unknown[]) & (() => unknown[]) & (() => unknown[]));
17
- }[];
18
- flag?: 'INDEX' | 'DEFAULT' | 'CHECKBOX' | 'RADIO' | 'ACTION';
19
- customTitle?: VNode | VNodeChild;
20
- slots?: Recordable;
21
- customHeaderRender?: (column: BasicColumn) => string | VNodeChild | VNode;
22
- defaultHidden?: boolean;
23
- helpMessage?: string | string[] | VNodeChild | VNode;
24
- format?: CellFormat;
25
- edit?: boolean;
26
- editRow?: boolean;
27
- editable?: boolean;
28
- editComponent?: ComponentType;
29
- editComponentProps?: ((opt: {
30
- text: string | number | boolean | Recordable;
31
- record: Recordable;
32
- column: BasicColumn;
33
- index: number;
34
- }) => Recordable) | Recordable;
35
- editRule?: boolean | ((text: string, record: Recordable) => Promise<string>);
36
- editValueMap?: (value: any) => string;
37
- onEditRow?: () => void;
38
- auth?: string | string[];
39
- ifShow?: boolean | ((column: BasicColumn) => boolean);
40
- editRender?: (opt: {
41
- text: string | number | boolean | Recordable;
42
- record: Recordable;
43
- column: BasicColumn;
44
- index: number;
45
- currentValue: string | number | boolean | Recordable;
46
- }) => VNodeChild | VNode;
47
- editDynamicDisabled?: boolean | ((record: Recordable) => boolean);
48
- }
49
- export interface SorterResult {
50
- column: ColumnProps;
51
- order: SortOrder;
52
- field: string;
53
- columnKey: string;
54
- }
55
- export type SortOrder = 'ascend' | 'descend';
56
- export interface TableSetting {
57
- redo?: boolean;
58
- size?: boolean;
59
- setting?: boolean;
60
- settingCache?: boolean;
61
- fullScreen?: boolean;
62
- }
63
- export interface FetchSetting {
64
- pageField: string;
65
- sizeField: string;
66
- listField: string;
67
- totalField: string;
68
- }
69
- export interface TableCustomRecord<T> {
70
- record?: T;
71
- index?: number;
72
- }
73
- export interface ExpandedRowRenderRecord<T> extends TableCustomRecord<T> {
74
- indent?: number;
75
- expanded?: boolean;
76
- }
77
- export interface TableRowSelection<T = any> extends AntdTableRowSelection {
78
- /**
79
- * Callback executed when selected rows change
80
- * @param selectedRowKeys 已选的 keyValues
81
- * @param selectedRows 已选的 records
82
- * @param isClickCustomRow 是否是点击行触发(反之,就是点击checkbox/radiobox)
83
- * @returns void
84
- */
85
- onChange?: (selectedRowKeys: Key[], selectedRows: T[], isClickCustomRow?: boolean) => void;
86
- /**
87
- * Callback executed when select/deselect one row
88
- * @type Function
89
- */
90
- onSelect?: (record: T, selected: boolean, selectedRows: object[], nativeEvent: Event) => any;
91
- /**
92
- * Callback executed when select/deselect all rows
93
- * @type Function
94
- */
95
- onSelectAll?: (selected: boolean, selectedRows: T[], changeRows: T[]) => any;
96
- /**
97
- * Callback executed when row selection is inverted
98
- * @type Function
99
- */
100
- onSelectInvert?: (selectedRows: Key[]) => any;
101
- }
102
- export type SizeType = 'default' | 'middle' | 'small' | 'large';
103
- export type ColumnChangeParam = {
104
- dataIndex: string;
105
- fixed: boolean | 'left' | 'right' | undefined;
106
- visible: boolean;
107
- };
108
- export interface BasicTableProps<T = any> {
109
- clickToRowSelect?: boolean;
110
- isTreeTable?: boolean;
111
- accordion?: boolean;
112
- sortFn?: (sortInfo: SorterResult) => any;
113
- filterFn?: (data: Partial<Recordable<string[]>>) => any;
114
- inset?: boolean;
115
- showTableSetting?: boolean;
116
- tableSetting?: TableSetting;
117
- striped?: boolean;
118
- autoCreateKey?: boolean;
119
- summaryFunc?: (...arg: any) => Recordable[];
120
- summaryData?: Recordable[];
121
- showSummary?: boolean;
122
- canColDrag?: boolean;
123
- api?: (...arg: any) => Promise<any>;
124
- beforeFetch?: Fn;
125
- afterFetch?: Fn;
126
- handleSearchInfoFn?: Fn;
127
- fetchSetting?: Partial<FetchSetting>;
128
- immediate?: boolean;
129
- emptyDataIsShowTable?: boolean;
130
- searchInfo?: Recordable;
131
- defSort?: Recordable;
132
- useSearchForm?: boolean;
133
- formConfig?: Partial<ProFormProps>;
134
- columns: BasicColumn[];
135
- showIndexColumn?: boolean;
136
- indexColumnProps?: BasicColumn;
137
- actionColumn?: BasicColumn;
138
- ellipsis?: boolean;
139
- isCanResizeParent?: boolean;
140
- canResize?: boolean;
141
- resizeHeightOffset?: number;
142
- clearSelectOnPageChange?: boolean;
143
- rowKey?: InstanceType<typeof AntDesignVueTable>['$props']['rowKey'];
144
- dataSource?: Recordable[];
145
- titleHelpMessage?: string | string[];
146
- maxHeight?: number;
147
- bordered?: boolean;
148
- pagination?: PaginationProps | boolean;
149
- loading?: boolean;
150
- /**
151
- * The column contains children to display
152
- * @default 'children'
153
- * @type string | string[]
154
- */
155
- childrenColumnName?: string;
156
- /**
157
- * Override default table elements
158
- * @type object
159
- */
160
- components?: object;
161
- /**
162
- * Expand all rows initially
163
- * @default false
164
- * @type boolean
165
- */
166
- defaultExpandAllRows?: boolean;
167
- /**
168
- * Initial expanded row keys
169
- * @type string[]
170
- */
171
- defaultExpandedRowKeys?: string[];
172
- /**
173
- * Current expanded row keys
174
- * @type string[]
175
- */
176
- expandedRowKeys?: string[];
177
- /**
178
- * Expanded container render for each row
179
- * @type Function
180
- */
181
- expandedRowRender?: (record?: ExpandedRowRenderRecord<T>) => VNodeChild | VNode;
182
- /**
183
- * Customize row expand Icon.
184
- * @type Function | VNodeChild
185
- */
186
- expandIcon?: Fn | VNodeChild | VNode;
187
- /**
188
- * Whether to expand row by clicking anywhere in the whole row
189
- * @default false
190
- * @type boolean
191
- */
192
- expandRowByClick?: boolean;
193
- /**
194
- * The index of `expandIcon` which column will be inserted when `expandIconAsCell` is false. default 0
195
- */
196
- expandIconColumnIndex?: number;
197
- /**
198
- * Table footer renderer
199
- * @type Function | VNodeChild
200
- */
201
- footer?: Fn | VNodeChild | VNode;
202
- /**
203
- * Indent size in pixels of tree data
204
- * @default 15
205
- * @type number
206
- */
207
- indentSize?: number;
208
- /**
209
- * i18n text including filter, sort, empty text, etc
210
- * @default { filterConfirm: 'Ok', filterReset: 'Reset', emptyText: 'No Data' }
211
- * @type object
212
- */
213
- locale?: object;
214
- /**
215
- * Row's className
216
- * @type Function
217
- */
218
- rowClassName?: (record: TableCustomRecord<T>, index: number) => string;
219
- /**
220
- * Row selection config
221
- * @type object
222
- */
223
- rowSelection?: TableRowSelection;
224
- /**
225
- * Show table selection bar(显示多选状态栏)
226
- * @type boolean
227
- */
228
- showSelectionBar?: boolean;
229
- /**
230
- * Set horizontal or vertical scrolling, can also be used to specify the width and height of the scroll area.
231
- * It is recommended to set a number for x, if you want to set it to true,
232
- * you need to add style .ant-table td { white-space: nowrap; }.
233
- * @type object
234
- */
235
- scroll?: InstanceType<typeof AntDesignVueTable>['$props']['scroll'];
236
- /**
237
- * Whether to show table header
238
- * @default true
239
- * @type boolean
240
- */
241
- showHeader?: boolean;
242
- /**
243
- * Size of table
244
- * @default 'default'
245
- * @type string
246
- */
247
- size?: SizeType;
248
- /**
249
- * Table title renderer
250
- * @type Function | ScopedSlot
251
- */
252
- title?: VNodeChild | VNode | string | ((data: Recordable) => string);
253
- /**
254
- * Set props on per header row
255
- * @type Function
256
- */
257
- customHeaderRow?: (column: ColumnProps, index: number) => object;
258
- /**
259
- * Set props on per row
260
- * @type Function
261
- */
262
- customRow?: (record: T, index: number) => object;
263
- /**
264
- * `table-layout` attribute of table element
265
- * `fixed` when header/columns are fixed, or using `column.ellipsis`
266
- *
267
- * @see https://developer.mozilla.org/en-US/docs/Web/CSS/table-layout
268
- * @version 1.5.0
269
- */
270
- tableLayout?: 'auto' | 'fixed' | string;
271
- /**
272
- * the render container of dropdowns in table
273
- * @param triggerNode
274
- * @version 1.5.0
275
- */
276
- getPopupContainer?: (triggerNode?: HTMLElement) => HTMLElement;
277
- /**
278
- * Data can be changed again before rendering.
279
- * The default configuration of general user empty data.
280
- * You can configured globally through [ConfigProvider](https://antdv.com/components/config-provider-cn/)
281
- *
282
- * @version 1.5.4
283
- */
284
- transformCellText?: Fn;
285
- /**
286
- * Callback executed before editable cell submit value, not for row-editor
287
- *
288
- * The cell will not submit data while callback return false
289
- */
290
- beforeEditSubmit?: (data: {
291
- record: Recordable;
292
- index: number;
293
- key: Key;
294
- value: any;
295
- }) => Promise<any>;
296
- /**
297
- * Callback executed when pagination, filters or sorter is changed
298
- * @param pagination
299
- * @param filters
300
- * @param sorter
301
- * @param currentDataSource
302
- */
303
- onChange?: (pagination: any, filters: any, sorter: any, extra: any) => void;
304
- /**
305
- * Callback executed when the row expand icon is clicked
306
- *
307
- * @param expanded
308
- * @param record
309
- */
310
- onExpand?: (expanded: boolean, record: T) => void;
311
- /**
312
- * Callback executed when the expanded rows change
313
- * @param expandedRows
314
- */
315
- onExpandedRowsChange?: (expandedRows: string[] | number[]) => void;
316
- onColumnsChange?: (data: ColumnChangeParam[]) => void;
317
- }
318
- export interface FetchParams {
319
- searchInfo?: Recordable;
320
- page?: number;
321
- sortInfo?: Recordable;
322
- filterInfo?: Recordable;
323
- }
324
- export interface GetColumnsParams {
325
- ignoreIndex?: boolean;
326
- ignoreAction?: boolean;
327
- sort?: boolean;
328
- }
329
- export interface TableActionType {
330
- reload: (opt?: FetchParams) => Promise<Recordable<any>[] | undefined>;
331
- setSelectedRows: (rows: Recordable[]) => void;
332
- getSelectRows: <T = Recordable>() => T[];
333
- clearSelectedRowKeys: () => void;
334
- expandAll: () => void;
335
- collapseAll: () => void;
336
- expandRows: (keyValues: Key[]) => void;
337
- collapseRows: (keyValues: Key[]) => void;
338
- scrollTo: (pos: string) => void;
339
- getSelectRowKeys: () => Key[];
340
- deleteSelectRowByKey: (keyValue: Key) => void;
341
- setPagination: (info: Partial<PaginationProps>) => void;
342
- setTableData: <T = Recordable>(values: T[]) => void;
343
- updateTableDataRecord: (keyValue: Key, record: Recordable) => Recordable | void;
344
- deleteTableDataRecord: (keyValues: Key | Key[]) => void;
345
- insertTableDataRecord: (record: Recordable | Recordable[], index?: number) => Recordable[] | void;
346
- findTableDataRecord: (keyValue: Key) => Recordable | void;
347
- getColumns: (opt?: GetColumnsParams) => BasicColumn[];
348
- setColumns: (columns: BasicColumn[] | string[]) => void;
349
- getDataSource: <T = Recordable>() => T[];
350
- getRawDataSource: <T = Recordable>() => T;
351
- setLoading: (loading: boolean) => void;
352
- setProps: (props: Partial<BasicTableProps>) => void;
353
- redoHeight: () => void;
354
- setSelectedRowKeys: (keyValues: Key[]) => void;
355
- getPaginationRef: () => PaginationProps | boolean;
356
- getSize: () => SizeType;
357
- getRowSelection: () => TableRowSelection<Recordable>;
358
- getCacheColumns: () => BasicColumn[];
359
- emit?: ReturnType<typeof defineEmits>;
360
- updateTableData: (index: number, key: string, value: any) => Recordable;
361
- setShowPagination: (show: boolean) => Promise<void>;
362
- getShowPagination: () => boolean;
363
- setCacheColumnsByField?: (dataIndex: string | undefined, value: BasicColumn) => void;
364
- setCacheColumns?: (columns: BasicColumn[]) => void;
365
- }
366
- export interface ColumnOptionsType {
367
- value: string;
368
- label: string;
369
- column: {
370
- defaultHidden?: boolean;
371
- };
372
- fixed?: FixedType;
373
- }
374
- export interface InnerHandlers {
375
- onColumnsChange: (data: ColumnChangeParam[]) => void;
376
- }
377
- export interface InnerMethods {
378
- clearSelectedRowKeys: TableActionType['clearSelectedRowKeys'];
379
- getSelectRowKeys: TableActionType['getSelectRowKeys'];
380
- }
381
- export interface TableCustomRecord<T> {
382
- record?: T;
383
- index?: number;
384
- }
9
+
10
+ export type CellFormat = string | ((text: string, record: Recordable, index: number) => string | number) | Map<string | number, any>;
11
+ export interface BasicColumn extends Omit<ColumnProps<Recordable>, 'filters'> {
12
+ children?: BasicColumn[];
13
+ filters?: {
14
+ text: string;
15
+ value: string;
16
+ children?: unknown[] | (((props: Record<string, unknown>) => unknown[]) & (() => unknown[]) & (() => unknown[]));
17
+ }[];
18
+ flag?: 'INDEX' | 'DEFAULT' | 'CHECKBOX' | 'RADIO' | 'ACTION';
19
+ customTitle?: VNode | VNodeChild;
20
+ slots?: Recordable;
21
+ customHeaderRender?: (column: BasicColumn) => string | VNodeChild | VNode;
22
+ defaultHidden?: boolean;
23
+ helpMessage?: string | string[] | VNodeChild | VNode;
24
+ format?: CellFormat;
25
+ edit?: boolean;
26
+ editRow?: boolean;
27
+ editable?: boolean;
28
+ editComponent?: ComponentType;
29
+ editComponentProps?: ((opt: {
30
+ text: string | number | boolean | Recordable;
31
+ record: Recordable;
32
+ column: BasicColumn;
33
+ index: number;
34
+ }) => Recordable) | Recordable;
35
+ editRule?: boolean | ((text: string, record: Recordable) => Promise<string>);
36
+ editValueMap?: (value: any) => string;
37
+ onEditRow?: () => void;
38
+ auth?: string | string[];
39
+ ifShow?: boolean | ((column: BasicColumn) => boolean);
40
+ editRender?: (opt: {
41
+ text: string | number | boolean | Recordable;
42
+ record: Recordable;
43
+ column: BasicColumn;
44
+ index: number;
45
+ currentValue: string | number | boolean | Recordable;
46
+ }) => VNodeChild | VNode;
47
+ editDynamicDisabled?: boolean | ((record: Recordable) => boolean);
48
+ }
49
+ export interface SorterResult {
50
+ column: ColumnProps;
51
+ order: SortOrder;
52
+ field: string;
53
+ columnKey: string;
54
+ }
55
+ export type SortOrder = 'ascend' | 'descend';
56
+ export interface TableSetting {
57
+ redo?: boolean;
58
+ size?: boolean;
59
+ setting?: boolean;
60
+ settingCache?: boolean;
61
+ fullScreen?: boolean;
62
+ }
63
+ export interface FetchSetting {
64
+ pageField: string;
65
+ sizeField: string;
66
+ listField: string;
67
+ totalField: string;
68
+ }
69
+ export interface TableCustomRecord<T> {
70
+ record?: T;
71
+ index?: number;
72
+ }
73
+ export interface ExpandedRowRenderRecord<T> extends TableCustomRecord<T> {
74
+ indent?: number;
75
+ expanded?: boolean;
76
+ }
77
+ export interface TableRowSelection<T = any> extends AntdTableRowSelection {
78
+ /**
79
+ * Callback executed when selected rows change
80
+ * @param selectedRowKeys 已选的 keyValues
81
+ * @param selectedRows 已选的 records
82
+ * @param isClickCustomRow 是否是点击行触发(反之,就是点击checkbox/radiobox)
83
+ * @returns void
84
+ */
85
+ onChange?: (selectedRowKeys: Key[], selectedRows: T[], isClickCustomRow?: boolean) => void;
86
+ /**
87
+ * Callback executed when select/deselect one row
88
+ * @type Function
89
+ */
90
+ onSelect?: (record: T, selected: boolean, selectedRows: object[], nativeEvent: Event) => any;
91
+ /**
92
+ * Callback executed when select/deselect all rows
93
+ * @type Function
94
+ */
95
+ onSelectAll?: (selected: boolean, selectedRows: T[], changeRows: T[]) => any;
96
+ /**
97
+ * Callback executed when row selection is inverted
98
+ * @type Function
99
+ */
100
+ onSelectInvert?: (selectedRows: Key[]) => any;
101
+ }
102
+ export type SizeType = 'default' | 'middle' | 'small' | 'large';
103
+ export type ColumnChangeParam = {
104
+ dataIndex: string;
105
+ fixed: boolean | 'left' | 'right' | undefined;
106
+ visible: boolean;
107
+ };
108
+ export interface BasicTableProps<T = any> {
109
+ clickToRowSelect?: boolean;
110
+ isTreeTable?: boolean;
111
+ accordion?: boolean;
112
+ sortFn?: (sortInfo: SorterResult) => any;
113
+ filterFn?: (data: Partial<Recordable<string[]>>) => any;
114
+ inset?: boolean;
115
+ showTableSetting?: boolean;
116
+ tableSetting?: TableSetting;
117
+ striped?: boolean;
118
+ autoCreateKey?: boolean;
119
+ summaryFunc?: (...arg: any) => Recordable[];
120
+ summaryData?: Recordable[];
121
+ showSummary?: boolean;
122
+ canColDrag?: boolean;
123
+ api?: (...arg: any) => Promise<any>;
124
+ beforeFetch?: Fn;
125
+ afterFetch?: Fn;
126
+ handleSearchInfoFn?: Fn;
127
+ fetchSetting?: Partial<FetchSetting>;
128
+ immediate?: boolean;
129
+ emptyDataIsShowTable?: boolean;
130
+ searchInfo?: Recordable;
131
+ defSort?: Recordable;
132
+ useSearchForm?: boolean;
133
+ formConfig?: Partial<ProFormProps>;
134
+ columns: BasicColumn[];
135
+ showIndexColumn?: boolean;
136
+ indexColumnProps?: BasicColumn;
137
+ actionColumn?: BasicColumn;
138
+ ellipsis?: boolean;
139
+ isCanResizeParent?: boolean;
140
+ canResize?: boolean;
141
+ resizeHeightOffset?: number;
142
+ clearSelectOnPageChange?: boolean;
143
+ rowKey?: InstanceType<typeof AntDesignVueTable>['$props']['rowKey'];
144
+ dataSource?: Recordable[];
145
+ titleHelpMessage?: string | string[];
146
+ maxHeight?: number;
147
+ bordered?: boolean;
148
+ pagination?: PaginationProps | boolean;
149
+ loading?: boolean;
150
+ /**
151
+ * The column contains children to display
152
+ * @default 'children'
153
+ * @type string | string[]
154
+ */
155
+ childrenColumnName?: string;
156
+ /**
157
+ * Override default table elements
158
+ * @type object
159
+ */
160
+ components?: object;
161
+ /**
162
+ * Expand all rows initially
163
+ * @default false
164
+ * @type boolean
165
+ */
166
+ defaultExpandAllRows?: boolean;
167
+ /**
168
+ * Initial expanded row keys
169
+ * @type string[]
170
+ */
171
+ defaultExpandedRowKeys?: string[];
172
+ /**
173
+ * Current expanded row keys
174
+ * @type string[]
175
+ */
176
+ expandedRowKeys?: string[];
177
+ /**
178
+ * Expanded container render for each row
179
+ * @type Function
180
+ */
181
+ expandedRowRender?: (record?: ExpandedRowRenderRecord<T>) => VNodeChild | VNode;
182
+ /**
183
+ * Customize row expand Icon.
184
+ * @type Function | VNodeChild
185
+ */
186
+ expandIcon?: Fn | VNodeChild | VNode;
187
+ /**
188
+ * Whether to expand row by clicking anywhere in the whole row
189
+ * @default false
190
+ * @type boolean
191
+ */
192
+ expandRowByClick?: boolean;
193
+ /**
194
+ * The index of `expandIcon` which column will be inserted when `expandIconAsCell` is false. default 0
195
+ */
196
+ expandIconColumnIndex?: number;
197
+ /**
198
+ * Table footer renderer
199
+ * @type Function | VNodeChild
200
+ */
201
+ footer?: Fn | VNodeChild | VNode;
202
+ /**
203
+ * Indent size in pixels of tree data
204
+ * @default 15
205
+ * @type number
206
+ */
207
+ indentSize?: number;
208
+ /**
209
+ * i18n text including filter, sort, empty text, etc
210
+ * @default { filterConfirm: 'Ok', filterReset: 'Reset', emptyText: 'No Data' }
211
+ * @type object
212
+ */
213
+ locale?: object;
214
+ /**
215
+ * Row's className
216
+ * @type Function
217
+ */
218
+ rowClassName?: (record: TableCustomRecord<T>, index: number) => string;
219
+ /**
220
+ * Row selection config
221
+ * @type object
222
+ */
223
+ rowSelection?: TableRowSelection;
224
+ /**
225
+ * Show table selection bar(显示多选状态栏)
226
+ * @type boolean
227
+ */
228
+ showSelectionBar?: boolean;
229
+ /**
230
+ * Set horizontal or vertical scrolling, can also be used to specify the width and height of the scroll area.
231
+ * It is recommended to set a number for x, if you want to set it to true,
232
+ * you need to add style .ant-table td { white-space: nowrap; }.
233
+ * @type object
234
+ */
235
+ scroll?: InstanceType<typeof AntDesignVueTable>['$props']['scroll'];
236
+ /**
237
+ * Whether to show table header
238
+ * @default true
239
+ * @type boolean
240
+ */
241
+ showHeader?: boolean;
242
+ /**
243
+ * Size of table
244
+ * @default 'default'
245
+ * @type string
246
+ */
247
+ size?: SizeType;
248
+ /**
249
+ * Table title renderer
250
+ * @type Function | ScopedSlot
251
+ */
252
+ title?: VNodeChild | VNode | string | ((data: Recordable) => string);
253
+ /**
254
+ * Set props on per header row
255
+ * @type Function
256
+ */
257
+ customHeaderRow?: (column: ColumnProps, index: number) => object;
258
+ /**
259
+ * Set props on per row
260
+ * @type Function
261
+ */
262
+ customRow?: (record: T, index: number) => object;
263
+ /**
264
+ * `table-layout` attribute of table element
265
+ * `fixed` when header/columns are fixed, or using `column.ellipsis`
266
+ *
267
+ * @see https://developer.mozilla.org/en-US/docs/Web/CSS/table-layout
268
+ * @version 1.5.0
269
+ */
270
+ tableLayout?: 'auto' | 'fixed' | string;
271
+ /**
272
+ * the render container of dropdowns in table
273
+ * @param triggerNode
274
+ * @version 1.5.0
275
+ */
276
+ getPopupContainer?: (triggerNode?: HTMLElement) => HTMLElement;
277
+ /**
278
+ * Data can be changed again before rendering.
279
+ * The default configuration of general user empty data.
280
+ * You can configured globally through [ConfigProvider](https://antdv.com/components/config-provider-cn/)
281
+ *
282
+ * @version 1.5.4
283
+ */
284
+ transformCellText?: Fn;
285
+ /**
286
+ * Callback executed before editable cell submit value, not for row-editor
287
+ *
288
+ * The cell will not submit data while callback return false
289
+ */
290
+ beforeEditSubmit?: (data: {
291
+ record: Recordable;
292
+ index: number;
293
+ key: Key;
294
+ value: any;
295
+ }) => Promise<any>;
296
+ /**
297
+ * Callback executed when pagination, filters or sorter is changed
298
+ * @param pagination
299
+ * @param filters
300
+ * @param sorter
301
+ * @param currentDataSource
302
+ */
303
+ onChange?: (pagination: any, filters: any, sorter: any, extra: any) => void;
304
+ /**
305
+ * Callback executed when the row expand icon is clicked
306
+ *
307
+ * @param expanded
308
+ * @param record
309
+ */
310
+ onExpand?: (expanded: boolean, record: T) => void;
311
+ /**
312
+ * Callback executed when the expanded rows change
313
+ * @param expandedRows
314
+ */
315
+ onExpandedRowsChange?: (expandedRows: string[] | number[]) => void;
316
+ onColumnsChange?: (data: ColumnChangeParam[]) => void;
317
+ }
318
+ export interface FetchParams {
319
+ searchInfo?: Recordable;
320
+ page?: number;
321
+ sortInfo?: Recordable;
322
+ filterInfo?: Recordable;
323
+ }
324
+ export interface GetColumnsParams {
325
+ ignoreIndex?: boolean;
326
+ ignoreAction?: boolean;
327
+ sort?: boolean;
328
+ }
329
+ export interface TableActionType {
330
+ reload: (opt?: FetchParams) => Promise<Recordable<any>[] | undefined>;
331
+ setSelectedRows: (rows: Recordable[]) => void;
332
+ getSelectRows: <T = Recordable>() => T[];
333
+ clearSelectedRowKeys: () => void;
334
+ expandAll: () => void;
335
+ collapseAll: () => void;
336
+ expandRows: (keyValues: Key[]) => void;
337
+ collapseRows: (keyValues: Key[]) => void;
338
+ scrollTo: (pos: string) => void;
339
+ getSelectRowKeys: () => Key[];
340
+ deleteSelectRowByKey: (keyValue: Key) => void;
341
+ setPagination: (info: Partial<PaginationProps>) => void;
342
+ setTableData: <T = Recordable>(values: T[]) => void;
343
+ updateTableDataRecord: (keyValue: Key, record: Recordable) => Recordable | void;
344
+ deleteTableDataRecord: (keyValues: Key | Key[]) => void;
345
+ insertTableDataRecord: (record: Recordable | Recordable[], index?: number) => Recordable[] | void;
346
+ findTableDataRecord: (keyValue: Key) => Recordable | void;
347
+ getColumns: (opt?: GetColumnsParams) => BasicColumn[];
348
+ setColumns: (columns: BasicColumn[] | string[]) => void;
349
+ getDataSource: <T = Recordable>() => T[];
350
+ getRawDataSource: <T = Recordable>() => T;
351
+ setLoading: (loading: boolean) => void;
352
+ setProps: (props: Partial<BasicTableProps>) => void;
353
+ redoHeight: () => void;
354
+ setSelectedRowKeys: (keyValues: Key[]) => void;
355
+ getPaginationRef: () => PaginationProps | boolean;
356
+ getSize: () => SizeType;
357
+ getRowSelection: () => TableRowSelection<Recordable>;
358
+ getCacheColumns: () => BasicColumn[];
359
+ emit?: ReturnType<typeof defineEmits>;
360
+ updateTableData: (index: number, key: string, value: any) => Recordable;
361
+ setShowPagination: (show: boolean) => Promise<void>;
362
+ getShowPagination: () => boolean;
363
+ setCacheColumnsByField?: (dataIndex: string | undefined, value: BasicColumn) => void;
364
+ setCacheColumns?: (columns: BasicColumn[]) => void;
365
+ }
366
+ export interface ColumnOptionsType {
367
+ value: string;
368
+ label: string;
369
+ column: {
370
+ defaultHidden?: boolean;
371
+ };
372
+ fixed?: FixedType;
373
+ }
374
+ export interface InnerHandlers {
375
+ onColumnsChange: (data: ColumnChangeParam[]) => void;
376
+ }
377
+ export interface InnerMethods {
378
+ clearSelectedRowKeys: TableActionType['clearSelectedRowKeys'];
379
+ getSelectRowKeys: TableActionType['getSelectRowKeys'];
380
+ }
381
+ export interface TableCustomRecord<T> {
382
+ record?: T;
383
+ index?: number;
384
+ }