@aplus-frontend/ui 0.0.40 → 0.1.1

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 (666) hide show
  1. package/es/index.d.ts +0 -1
  2. package/es/src/ap-action/group/index.vue.d.ts +12 -13
  3. package/es/src/ap-action/index.d.ts +0 -1
  4. package/es/src/ap-action/interface.d.ts +0 -1
  5. package/es/src/ap-action/item/index.vue.d.ts +16 -15
  6. package/es/src/ap-action/item/index.vue2.mjs +24 -26
  7. package/es/src/ap-action/item-dropdown/index.vue.d.ts +19 -18
  8. package/es/src/ap-action/item-modal/index.vue.d.ts +16 -15
  9. package/es/src/ap-action/item-modal/index.vue.mjs +7 -6
  10. package/es/src/ap-action/item-popconfirm/index.vue.d.ts +26 -25
  11. package/es/src/ap-action/style/item.css +10 -25
  12. package/es/src/ap-custom-column/column-select.vue.d.ts +3 -4
  13. package/es/src/ap-custom-column/custom-column.vue.d.ts +3 -4
  14. package/es/src/ap-custom-column/index.d.ts +0 -1
  15. package/es/src/ap-custom-column/interfaces.d.ts +0 -1
  16. package/es/src/ap-custom-column/storage.mjs +11 -11
  17. package/es/src/ap-custom-column/useCacheColumnSetting.d.ts +0 -1
  18. package/es/src/ap-custom-column/utils.d.ts +0 -1
  19. package/es/src/ap-descriptions/ap-descriptions.vue.d.ts +11 -10
  20. package/es/src/ap-descriptions/formatter/index.d.ts +0 -1
  21. package/es/src/ap-descriptions/help-message/index.vue.d.ts +14 -12
  22. package/es/src/ap-descriptions/helper.d.ts +0 -1
  23. package/es/src/ap-descriptions/index.d.ts +0 -1
  24. package/es/src/ap-descriptions/interface.d.ts +0 -1
  25. package/es/src/ap-download/ap-download.vue.d.ts +18 -17
  26. package/es/src/ap-download/ap-download.vue.mjs +4 -1
  27. package/es/src/ap-download/hooks/index.d.ts +0 -1
  28. package/es/src/ap-download/index.d.ts +0 -1
  29. package/es/src/ap-download/interface.d.ts +0 -1
  30. package/es/src/ap-field/checkbox/helper.d.ts +0 -1
  31. package/es/src/ap-field/checkbox/index.vue.d.ts +11 -12
  32. package/es/src/ap-field/checkbox/index.vue.mjs +32 -27
  33. package/es/src/ap-field/checkbox/style.css +7 -0
  34. package/es/src/ap-field/date/constant.d.ts +0 -1
  35. package/es/src/ap-field/date/helper.d.ts +0 -1
  36. package/es/src/ap-field/date/index.vue.d.ts +25 -24
  37. package/es/src/ap-field/date/index.vue.mjs +4 -1
  38. package/es/src/ap-field/date-range/index.vue.d.ts +23 -22
  39. package/es/src/ap-field/date-range/index.vue.mjs +7 -1
  40. package/es/src/ap-field/hooks/use-default-placeholder.d.ts +3 -3
  41. package/es/src/ap-field/index.d.ts +0 -1
  42. package/es/src/ap-field/interface.d.ts +2 -1
  43. package/es/src/ap-field/number/helper.d.ts +0 -1
  44. package/es/src/ap-field/number/index.vue.d.ts +14 -13
  45. package/es/src/ap-field/radio/helper.d.ts +0 -1
  46. package/es/src/ap-field/radio/index.vue.d.ts +14 -12
  47. package/es/src/ap-field/radio/index.vue.mjs +44 -29
  48. package/es/src/ap-field/radio/style.css +4 -0
  49. package/es/src/ap-field/rate/index.vue.d.ts +19 -18
  50. package/es/src/ap-field/segmented/index.vue.d.ts +23 -22
  51. package/es/src/ap-field/select/index.vue.d.ts +20 -19
  52. package/es/src/ap-field/slider/index.vue.d.ts +14 -13
  53. package/es/src/ap-field/slider/index.vue.mjs +1 -4
  54. package/es/src/ap-field/switch/index.vue.d.ts +15 -14
  55. package/es/src/ap-field/text/index.d.ts +0 -1
  56. package/es/src/ap-field/text/index.vue.d.ts +17 -16
  57. package/es/src/ap-field/text/input-password-props.d.ts +0 -1
  58. package/es/src/ap-field/text/password.vue.d.ts +18 -17
  59. package/es/src/ap-field/text-area/index.vue.d.ts +13 -14
  60. package/es/src/ap-form/ap-form-item-group/helper.d.ts +0 -1
  61. package/es/src/ap-form/ap-form-item-group/index.vue.d.ts +19 -18
  62. package/es/src/ap-form/ap-form-item.vue.d.ts +15 -14
  63. package/es/src/ap-form/ap-form-list.vue.d.ts +9 -8
  64. package/es/src/ap-form/ap-form.vue.d.ts +22 -21
  65. package/es/src/ap-form/constant.d.ts +0 -1
  66. package/es/src/ap-form/context.d.ts +0 -1
  67. package/es/src/ap-form/hooks/use-watch.d.ts +0 -1
  68. package/es/src/ap-form/hooks/use-watch.mjs +7 -7
  69. package/es/src/ap-form/index.d.ts +0 -1
  70. package/es/src/ap-form/interface.d.ts +0 -1
  71. package/es/src/ap-form/items/checkbox/index.vue.d.ts +17 -16
  72. package/es/src/ap-form/items/date/index.vue.d.ts +38 -37
  73. package/es/src/ap-form/items/date-range/index.vue.d.ts +38 -37
  74. package/es/src/ap-form/items/index.d.ts +0 -1
  75. package/es/src/ap-form/items/interface.d.ts +0 -1
  76. package/es/src/ap-form/items/number/index.vue.d.ts +31 -30
  77. package/es/src/ap-form/items/radio/index.vue.d.ts +17 -16
  78. package/es/src/ap-form/items/select/index.vue.d.ts +41 -40
  79. package/es/src/ap-form/items/switch/index.vue.d.ts +25 -24
  80. package/es/src/ap-form/items/text/index.d.ts +0 -1
  81. package/es/src/ap-form/items/text/index.vue.d.ts +31 -30
  82. package/es/src/ap-form/items/text/password.vue.d.ts +31 -30
  83. package/es/src/ap-form/items/text-area/index.vue.d.ts +18 -17
  84. package/es/src/ap-form/modal-form/index.vue.d.ts +30 -29
  85. package/es/src/ap-form/search-form/index.vue.d.ts +23 -22
  86. package/es/src/ap-form/search-form/utils.d.ts +0 -1
  87. package/es/src/ap-form/search-form/utils.mjs +1 -2
  88. package/es/src/ap-form/style/ap-form-item.css +6 -6
  89. package/es/src/ap-layout/ap-info-layout/ap-info-layout.vue.d.ts +20 -19
  90. package/es/src/ap-layout/index.d.ts +0 -1
  91. package/es/src/ap-list/hooks/use-offline-list.d.ts +0 -1
  92. package/es/src/ap-list/index.d.ts +0 -1
  93. package/es/src/ap-list/index.vue.d.ts +9 -122
  94. package/es/src/ap-list/interface.d.ts +0 -1
  95. package/es/src/ap-modal/index.d.ts +0 -1
  96. package/es/src/ap-modal/type.d.ts +0 -1
  97. package/es/src/ap-modal/utils/createModal.d.ts +0 -1
  98. package/es/src/ap-table/ap-table.vue.d.ts +16 -2222
  99. package/es/src/ap-table/ap-table.vue.mjs +125 -126
  100. package/es/src/ap-table/components/index/index.vue.d.ts +11 -12
  101. package/es/src/ap-table/components/interface.d.ts +0 -1
  102. package/es/src/ap-table/components/status/index.vue.d.ts +2 -3
  103. package/es/src/ap-table/constants.d.ts +4816 -6356
  104. package/es/src/ap-table/hooks/use-table-paging.d.ts +0 -1
  105. package/es/src/ap-table/hooks/use-table-row-selection.d.ts +0 -1
  106. package/es/src/ap-table/index.d.ts +0 -1
  107. package/es/src/ap-table/interface.d.ts +0 -1
  108. package/es/src/ap-table/style/ap-table.css +1 -21
  109. package/es/src/ap-table/utils.d.ts +1 -2
  110. package/es/src/ap-tag/ap-tag-group.vue.d.ts +14 -13
  111. package/es/src/ap-tag/ap-tag-group.vue.mjs +8 -7
  112. package/es/src/ap-tag/ap-tag.vue.d.ts +13 -14
  113. package/es/src/ap-tag/index.d.ts +0 -1
  114. package/es/src/ap-tag/interface.d.ts +0 -1
  115. package/es/src/ap-upload/apUpload.vue.d.ts +2 -3
  116. package/es/src/ap-upload/apUpload.vue.mjs +4 -1
  117. package/es/src/ap-upload/apUploadTypes.d.ts +0 -1
  118. package/es/src/ap-upload/components/MultipleFile.vue.d.ts +0 -1
  119. package/es/src/ap-upload/components/Picture.vue.d.ts +0 -1
  120. package/es/src/ap-upload/components/Picture.vue2.mjs +15 -5
  121. package/es/src/ap-upload/components/SingleFile.vue.d.ts +0 -1
  122. package/es/src/ap-upload/components/SingleFile.vue2.mjs +5 -1
  123. package/es/src/ap-upload/hooks/useOss.d.ts +0 -1
  124. package/es/src/ap-upload/index.d.ts +0 -1
  125. package/es/src/ap-upload/utils/accept.d.ts +0 -1
  126. package/es/src/ap-upload/utils/accept.mjs +1 -2
  127. package/es/src/base-button/button.vue.d.ts +17 -16
  128. package/es/src/base-button/constants.d.ts +0 -1
  129. package/es/src/base-button/index.d.ts +55 -55
  130. package/es/src/base-button/interface.d.ts +0 -1
  131. package/es/src/basic/arrow.vue.d.ts +2 -3
  132. package/es/src/basic/help.vue.d.ts +4 -9
  133. package/es/src/basic/index.d.ts +27 -35
  134. package/es/src/basic/interface.d.ts +0 -1
  135. package/es/src/basic/title.vue.d.ts +16 -15
  136. package/es/src/business/ap-export-group/ApExportGroup.vue.d.ts +2 -3
  137. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +1 -2
  138. package/es/src/business/ap-export-group/interface.d.ts +0 -1
  139. package/es/src/business/ap-label/ApLabel.vue.d.ts +17 -16
  140. package/es/src/business/ap-label/index.d.ts +0 -1
  141. package/es/src/business/ap-label/interface.d.ts +0 -1
  142. package/es/src/business/ap-select-layout/index.css +8 -0
  143. package/es/src/business/ap-select-layout/index.d.ts +0 -1
  144. package/es/src/business/ap-select-layout/select-layout.vue.d.ts +16 -58
  145. package/es/src/business/ap-status/ApStatus.vue.d.ts +11 -12
  146. package/es/src/business/ap-status/ApStatusGroup.vue.d.ts +14 -17
  147. package/es/src/business/ap-status/ApStatusGroup.vue2.mjs +10 -9
  148. package/es/src/business/ap-status/index.d.ts +0 -1
  149. package/es/src/business/expandAlert/ApExpandAlert.vue.d.ts +18 -17
  150. package/es/src/business/index.d.ts +213 -248
  151. package/es/src/business/title/ApTitle.vue.d.ts +19 -18
  152. package/es/src/button/button.vue.d.ts +25 -0
  153. package/es/src/button/index.d.ts +7 -7
  154. package/es/src/check-card/checked.svg.mjs +2 -2
  155. package/es/src/check-card/context.d.ts +0 -1
  156. package/es/src/check-card/group.vue.d.ts +21 -20
  157. package/es/src/check-card/index.d.ts +0 -1
  158. package/es/src/check-card/index.vue.d.ts +16 -15
  159. package/es/src/check-card/index.vue2.mjs +45 -49
  160. package/es/src/check-card/interface.d.ts +0 -1
  161. package/es/src/check-card/style/index.css +10 -42
  162. package/es/src/config-provider/config-provider-props.d.ts +22 -23
  163. package/es/src/config-provider/config-provider.d.ts +59 -204
  164. package/es/src/config-provider/constants.d.ts +0 -1
  165. package/es/src/config-provider/hooks/use-global-config.d.ts +24 -25
  166. package/es/src/config-provider/hooks/use-locale.d.ts +0 -1
  167. package/es/src/config-provider/hooks/use-namespace.d.ts +0 -1
  168. package/es/src/config-provider/index.d.ts +129 -130
  169. package/es/src/container/collapse/header.vue.d.ts +4 -5
  170. package/es/src/container/collapse/index.vue.d.ts +5 -6
  171. package/es/src/container/index.d.ts +26 -26
  172. package/es/src/container/scroll-container.vue.d.ts +13 -12
  173. package/es/src/count-down/button.vue.d.ts +11 -12
  174. package/es/src/count-down/index.d.ts +13 -13
  175. package/es/src/count-down/input.vue.d.ts +14 -13
  176. package/es/src/count-down/interface.d.ts +0 -1
  177. package/es/src/cropper/cropper-avatar.vue.d.ts +12 -13
  178. package/es/src/cropper/cropper-image.vue.d.ts +12 -13
  179. package/es/src/cropper/cropper-modal.vue.d.ts +0 -1
  180. package/es/src/cropper/index.d.ts +63 -63
  181. package/es/src/cropper/interface.d.ts +0 -1
  182. package/es/src/description/description.vue.d.ts +1 -2
  183. package/es/src/description/index.d.ts +10 -10
  184. package/es/src/description/interface.d.ts +0 -1
  185. package/es/src/description/use-description.d.ts +0 -1
  186. package/es/src/design-token/index.d.ts +0 -1
  187. package/es/src/design-token/index.mjs +4 -2
  188. package/es/src/dropdown/dropdown.vue.d.ts +18 -17
  189. package/es/src/dropdown/index.d.ts +18 -18
  190. package/es/src/dropdown/interface.d.ts +0 -1
  191. package/es/src/editable-table/form-item.vue.d.ts +14 -915
  192. package/es/src/editable-table/form-item.vue.mjs +57 -58
  193. package/es/src/editable-table/hooks/use-get-columns.d.ts +0 -1
  194. package/es/src/editable-table/index.d.ts +0 -1
  195. package/es/src/editable-table/index.vue.d.ts +18 -568
  196. package/es/src/editable-table/index.vue.mjs +54 -55
  197. package/es/src/editable-table/interface.d.ts +0 -1
  198. package/es/src/editable-table/style/index.css +1 -21
  199. package/es/src/editable-table/utils.d.ts +0 -1
  200. package/es/src/hooks/useControllableValue.d.ts +0 -1
  201. package/es/src/hooks/useMessage.d.ts +0 -1
  202. package/es/src/icon/icon.vue.d.ts +12 -12
  203. package/es/src/icon/icon.vue2.mjs +3 -6
  204. package/es/src/icon/index.d.ts +36 -36
  205. package/es/src/icon/svg-icon.vue.d.ts +11 -12
  206. package/es/src/icon-picker/icon-picker.vue.d.ts +12 -13
  207. package/es/src/icon-picker/index.d.ts +25 -25
  208. package/es/src/locale/index.d.ts +0 -1
  209. package/es/src/locale/lang/en.d.ts +0 -1
  210. package/es/src/locale/lang/en.mjs +1 -1
  211. package/es/src/locale/lang/zh-cn.d.ts +0 -1
  212. package/es/src/locale/lang/zh-cn.mjs +22 -22
  213. package/es/src/modal/basic.vue.d.ts +18 -206
  214. package/es/src/modal/components/modal-close.vue.d.ts +11 -12
  215. package/es/src/modal/components/modal-footer.vue.d.ts +20 -209
  216. package/es/src/modal/components/modal-header.vue.d.ts +2 -3
  217. package/es/src/modal/components/modal-wrapper.vue.d.ts +7 -5
  218. package/es/src/modal/components/modal-wrapper.vue2.mjs +4 -8
  219. package/es/src/modal/components/modal.d.ts +11 -201
  220. package/es/src/modal/hooks/use-moda-full-screen.d.ts +0 -1
  221. package/es/src/modal/hooks/use-modal-drag.d.ts +0 -1
  222. package/es/src/modal/hooks/use-modal-drag.mjs +3 -6
  223. package/es/src/modal/hooks/use-modal.d.ts +0 -1
  224. package/es/src/modal/hooks/use-modal.mjs +1 -2
  225. package/es/src/modal/index.d.ts +37 -130
  226. package/es/src/modal/interface.d.ts +0 -1
  227. package/es/src/modal/props.d.ts +6 -103
  228. package/es/src/pro-form/component-map.d.ts +0 -1
  229. package/es/src/pro-form/components/api-cascader.vue.d.ts +11 -12
  230. package/es/src/pro-form/components/api-radio-group.vue.d.ts +12 -13
  231. package/es/src/pro-form/components/api-select.vue.d.ts +15 -14
  232. package/es/src/pro-form/components/api-transfer.vue.d.ts +14 -15
  233. package/es/src/pro-form/components/api-tree-select.vue.d.ts +14 -13
  234. package/es/src/pro-form/components/api-tree-select.vue.mjs +1 -2
  235. package/es/src/pro-form/components/api-tree.vue.d.ts +15 -14
  236. package/es/src/pro-form/components/api-tree.vue.mjs +1 -2
  237. package/es/src/pro-form/components/form-action.vue.d.ts +19 -18
  238. package/es/src/pro-form/components/form-item.vue.d.ts +0 -1
  239. package/es/src/pro-form/components/interface.d.ts +0 -1
  240. package/es/src/pro-form/components/radio-button-group.vue.d.ts +11 -12
  241. package/es/src/pro-form/helper.d.ts +1 -2
  242. package/es/src/pro-form/helper.mjs +4 -4
  243. package/es/src/pro-form/hooks/use-advanced.d.ts +0 -1
  244. package/es/src/pro-form/hooks/use-auto-focus.d.ts +0 -1
  245. package/es/src/pro-form/hooks/use-component-register.d.ts +0 -1
  246. package/es/src/pro-form/hooks/use-form-events.d.ts +0 -1
  247. package/es/src/pro-form/hooks/use-form-events.mjs +11 -11
  248. package/es/src/pro-form/hooks/use-form-item.d.ts +0 -1
  249. package/es/src/pro-form/hooks/use-form-values.d.ts +0 -1
  250. package/es/src/pro-form/hooks/use-form.d.ts +0 -1
  251. package/es/src/pro-form/hooks/use-label-width.d.ts +122 -123
  252. package/es/src/pro-form/index.d.ts +0 -1
  253. package/es/src/pro-form/pro-form.vue.d.ts +24 -23
  254. package/es/src/pro-form/table-form-inner.vue.d.ts +13 -14
  255. package/es/src/pro-form/table-form.vue.d.ts +12 -13
  256. package/es/src/pro-form/types/form-item.d.ts +0 -1
  257. package/es/src/pro-form/types/form.d.ts +0 -1
  258. package/es/src/pro-form/types/index.d.ts +37 -38
  259. package/es/src/pro-form/types/table-form.d.ts +0 -1
  260. package/es/src/pro-table/component-map.d.ts +0 -1
  261. package/es/src/pro-table/components/edit-table-header-icon.vue.d.ts +6 -4
  262. package/es/src/pro-table/components/editable/cell-component.d.ts +0 -1
  263. package/es/src/pro-table/components/editable/editable-cell.vue.d.ts +7 -8
  264. package/es/src/pro-table/components/editable/editable-cell.vue2.mjs +38 -42
  265. package/es/src/pro-table/components/editable/helper.d.ts +0 -1
  266. package/es/src/pro-table/components/editable/index.d.ts +0 -1
  267. package/es/src/pro-table/components/header-cell.vue.d.ts +0 -1
  268. package/es/src/pro-table/components/settings/column-setting.vue.d.ts +0 -1
  269. package/es/src/pro-table/components/settings/index.vue.d.ts +0 -1
  270. package/es/src/pro-table/components/table-action.vue.d.ts +7 -6
  271. package/es/src/pro-table/components/table-action.vue.mjs +4 -3
  272. package/es/src/pro-table/components/table-footer.vue.d.ts +19 -20
  273. package/es/src/pro-table/components/table-header.vue.d.ts +11 -10
  274. package/es/src/pro-table/components/table-image.vue.d.ts +12 -13
  275. package/es/src/pro-table/components/table-selection-bar.vue.d.ts +15 -16
  276. package/es/src/pro-table/components/table-title.vue.d.ts +0 -1
  277. package/es/src/pro-table/const.d.ts +0 -1
  278. package/es/src/pro-table/directives/click-outside.d.ts +0 -1
  279. package/es/src/pro-table/helper.d.ts +0 -1
  280. package/es/src/pro-table/hooks/use-columns.d.ts +0 -1
  281. package/es/src/pro-table/hooks/use-columns.mjs +3 -6
  282. package/es/src/pro-table/hooks/use-custom-row.d.ts +0 -1
  283. package/es/src/pro-table/hooks/use-custom-row.mjs +4 -8
  284. package/es/src/pro-table/hooks/use-data-source.d.ts +1 -2
  285. package/es/src/pro-table/hooks/use-data-source.mjs +2 -4
  286. package/es/src/pro-table/hooks/use-loading.d.ts +0 -1
  287. package/es/src/pro-table/hooks/use-pagination.d.ts +0 -1
  288. package/es/src/pro-table/hooks/use-row-selection.d.ts +0 -1
  289. package/es/src/pro-table/hooks/use-scroll-to.d.ts +0 -1
  290. package/es/src/pro-table/hooks/use-scroll-to.mjs +1 -2
  291. package/es/src/pro-table/hooks/use-table-context.d.ts +0 -1
  292. package/es/src/pro-table/hooks/use-table-expand.d.ts +0 -1
  293. package/es/src/pro-table/hooks/use-table-footer.d.ts +0 -1
  294. package/es/src/pro-table/hooks/use-table-footer.mjs +1 -2
  295. package/es/src/pro-table/hooks/use-table-form.d.ts +0 -1
  296. package/es/src/pro-table/hooks/use-table-header.d.ts +0 -1
  297. package/es/src/pro-table/hooks/use-table-scroll.d.ts +3 -4
  298. package/es/src/pro-table/hooks/use-table-scroll.mjs +25 -27
  299. package/es/src/pro-table/hooks/use-table-style.d.ts +0 -1
  300. package/es/src/pro-table/hooks/use-table.d.ts +0 -1
  301. package/es/src/pro-table/interface.d.ts +0 -1
  302. package/es/src/pro-table/pro-table.vue.d.ts +43 -42
  303. package/es/src/pro-table/types/pagination.d.ts +0 -1
  304. package/es/src/pro-table/types/table-action.d.ts +0 -1
  305. package/es/src/pro-table/types/table.d.ts +0 -1
  306. package/es/src/prompt/dialog.vue.d.ts +2 -3
  307. package/es/src/prompt/index.d.ts +0 -1
  308. package/es/src/prompt/interface.d.ts +0 -1
  309. package/es/src/prompt/utils.d.ts +2 -2
  310. package/es/src/scroll-bar/bar-item.d.ts +0 -1
  311. package/es/src/scroll-bar/bar-item.mjs +2 -4
  312. package/es/src/scroll-bar/index.d.ts +27 -27
  313. package/es/src/scroll-bar/interface.d.ts +0 -1
  314. package/es/src/scroll-bar/scroll-bar.vue.d.ts +18 -17
  315. package/es/src/scroll-bar/scroll-bar.vue2.mjs +1 -2
  316. package/es/src/scroll-bar/utils.d.ts +0 -1
  317. package/es/src/strength-meter/index.d.ts +19 -19
  318. package/es/src/strength-meter/strength-meter.vue.d.ts +14 -13
  319. package/es/src/strength-meter/strength-meter.vue2.mjs +1 -2
  320. package/es/src/tests/wrapper.d.ts +8 -0
  321. package/es/src/theme/antd-global-overwrite/admin/index.css +5 -5
  322. package/es/src/theme/antd-global-overwrite/admin/steps.css +5 -5
  323. package/es/src/theme/antd-global-overwrite/aplus/form.css +1 -1
  324. package/es/src/theme/antd-global-overwrite/aplus/index.css +6 -6
  325. package/es/src/theme/antd-global-overwrite/aplus/steps.css +5 -5
  326. package/es/src/theme/ap-action/item.css +10 -25
  327. package/es/src/theme/ap-field/checkbox.css +7 -0
  328. package/es/src/theme/ap-field/radio.css +4 -0
  329. package/es/src/theme/ap-form/ap-form-item.css +6 -6
  330. package/es/src/theme/ap-select-layout/ap-select-layout.css +8 -0
  331. package/es/src/theme/ap-table/ap-table.css +1 -21
  332. package/es/src/theme/check-card/index.css +10 -42
  333. package/es/src/theme/css-var/index.mjs +83 -19
  334. package/es/src/theme/editable-table/index.css +1 -21
  335. package/es/src/transition/collapse-transition.vue.d.ts +4 -3
  336. package/es/src/transition/create-transition.d.ts +0 -1
  337. package/es/src/type.d.ts +0 -1
  338. package/es/src/utils/config-provider-preset.d.ts +16 -17
  339. package/es/src/utils/index.d.ts +0 -1
  340. package/es/src/utils/slot.d.ts +0 -1
  341. package/es/src/utils/slot.mjs +1 -2
  342. package/es/src/utils/tree.d.ts +0 -1
  343. package/es/src/utils/tree.mjs +1 -2
  344. package/es/src/work-order-modal/createWorkOrder.d.ts +0 -1
  345. package/es/src/work-order-modal/index.d.ts +0 -1
  346. package/es/src/work-order-modal/interfaces.d.ts +0 -1
  347. package/es/src/work-order-modal/work-order-modal.vue.d.ts +3 -4
  348. package/lib/index.d.ts +0 -1
  349. package/lib/src/ap-action/group/index.vue.d.ts +12 -13
  350. package/lib/src/ap-action/index.d.ts +0 -1
  351. package/lib/src/ap-action/interface.d.ts +0 -1
  352. package/lib/src/ap-action/item/index.vue.d.ts +16 -15
  353. package/lib/src/ap-action/item/index.vue2.js +1 -1
  354. package/lib/src/ap-action/item-dropdown/index.vue.d.ts +19 -18
  355. package/lib/src/ap-action/item-modal/index.vue.d.ts +16 -15
  356. package/lib/src/ap-action/item-modal/index.vue.js +1 -1
  357. package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +26 -25
  358. package/lib/src/ap-action/style/item.css +10 -25
  359. package/lib/src/ap-custom-column/column-select.vue.d.ts +3 -4
  360. package/lib/src/ap-custom-column/custom-column.vue.d.ts +3 -4
  361. package/lib/src/ap-custom-column/index.d.ts +0 -1
  362. package/lib/src/ap-custom-column/interfaces.d.ts +0 -1
  363. package/lib/src/ap-custom-column/storage.js +1 -1
  364. package/lib/src/ap-custom-column/useCacheColumnSetting.d.ts +0 -1
  365. package/lib/src/ap-custom-column/utils.d.ts +0 -1
  366. package/lib/src/ap-descriptions/ap-descriptions.vue.d.ts +11 -10
  367. package/lib/src/ap-descriptions/formatter/index.d.ts +0 -1
  368. package/lib/src/ap-descriptions/help-message/index.vue.d.ts +14 -12
  369. package/lib/src/ap-descriptions/helper.d.ts +0 -1
  370. package/lib/src/ap-descriptions/index.d.ts +0 -1
  371. package/lib/src/ap-descriptions/interface.d.ts +0 -1
  372. package/lib/src/ap-download/ap-download.vue.d.ts +18 -17
  373. package/lib/src/ap-download/hooks/index.d.ts +0 -1
  374. package/lib/src/ap-download/index.d.ts +0 -1
  375. package/lib/src/ap-download/interface.d.ts +0 -1
  376. package/lib/src/ap-field/checkbox/helper.d.ts +0 -1
  377. package/lib/src/ap-field/checkbox/index.vue.d.ts +11 -12
  378. package/lib/src/ap-field/checkbox/index.vue.js +1 -1
  379. package/lib/src/ap-field/checkbox/style.css +7 -0
  380. package/lib/src/ap-field/date/constant.d.ts +0 -1
  381. package/lib/src/ap-field/date/helper.d.ts +0 -1
  382. package/lib/src/ap-field/date/index.vue.d.ts +25 -24
  383. package/lib/src/ap-field/date-range/index.vue.d.ts +23 -22
  384. package/lib/src/ap-field/hooks/use-default-placeholder.d.ts +3 -3
  385. package/lib/src/ap-field/index.d.ts +0 -1
  386. package/lib/src/ap-field/interface.d.ts +2 -1
  387. package/lib/src/ap-field/number/helper.d.ts +0 -1
  388. package/lib/src/ap-field/number/index.vue.d.ts +14 -13
  389. package/lib/src/ap-field/radio/helper.d.ts +0 -1
  390. package/lib/src/ap-field/radio/index.vue.d.ts +14 -12
  391. package/lib/src/ap-field/radio/index.vue.js +1 -1
  392. package/lib/src/ap-field/radio/style.css +4 -0
  393. package/lib/src/ap-field/rate/index.vue.d.ts +19 -18
  394. package/lib/src/ap-field/segmented/index.vue.d.ts +23 -22
  395. package/lib/src/ap-field/select/index.vue.d.ts +20 -19
  396. package/lib/src/ap-field/slider/index.vue.d.ts +14 -13
  397. package/lib/src/ap-field/switch/index.vue.d.ts +15 -14
  398. package/lib/src/ap-field/text/index.d.ts +0 -1
  399. package/lib/src/ap-field/text/index.vue.d.ts +17 -16
  400. package/lib/src/ap-field/text/input-password-props.d.ts +0 -1
  401. package/lib/src/ap-field/text/password.vue.d.ts +18 -17
  402. package/lib/src/ap-field/text-area/index.vue.d.ts +13 -14
  403. package/lib/src/ap-form/ap-form-item-group/helper.d.ts +0 -1
  404. package/lib/src/ap-form/ap-form-item-group/index.vue.d.ts +19 -18
  405. package/lib/src/ap-form/ap-form-item.vue.d.ts +15 -14
  406. package/lib/src/ap-form/ap-form-list.vue.d.ts +9 -8
  407. package/lib/src/ap-form/ap-form.vue.d.ts +22 -21
  408. package/lib/src/ap-form/constant.d.ts +0 -1
  409. package/lib/src/ap-form/context.d.ts +0 -1
  410. package/lib/src/ap-form/hooks/use-watch.d.ts +0 -1
  411. package/lib/src/ap-form/index.d.ts +0 -1
  412. package/lib/src/ap-form/interface.d.ts +0 -1
  413. package/lib/src/ap-form/items/checkbox/index.vue.d.ts +17 -16
  414. package/lib/src/ap-form/items/date/index.vue.d.ts +38 -37
  415. package/lib/src/ap-form/items/date-range/index.vue.d.ts +38 -37
  416. package/lib/src/ap-form/items/index.d.ts +0 -1
  417. package/lib/src/ap-form/items/interface.d.ts +0 -1
  418. package/lib/src/ap-form/items/number/index.vue.d.ts +31 -30
  419. package/lib/src/ap-form/items/radio/index.vue.d.ts +17 -16
  420. package/lib/src/ap-form/items/select/index.vue.d.ts +41 -40
  421. package/lib/src/ap-form/items/switch/index.vue.d.ts +25 -24
  422. package/lib/src/ap-form/items/text/index.d.ts +0 -1
  423. package/lib/src/ap-form/items/text/index.vue.d.ts +31 -30
  424. package/lib/src/ap-form/items/text/password.vue.d.ts +31 -30
  425. package/lib/src/ap-form/items/text-area/index.vue.d.ts +18 -17
  426. package/lib/src/ap-form/modal-form/index.vue.d.ts +30 -29
  427. package/lib/src/ap-form/search-form/index.vue.d.ts +23 -22
  428. package/lib/src/ap-form/search-form/utils.d.ts +0 -1
  429. package/lib/src/ap-form/style/ap-form-item.css +6 -6
  430. package/lib/src/ap-layout/ap-info-layout/ap-info-layout.vue.d.ts +20 -19
  431. package/lib/src/ap-layout/index.d.ts +0 -1
  432. package/lib/src/ap-list/hooks/use-offline-list.d.ts +0 -1
  433. package/lib/src/ap-list/index.d.ts +0 -1
  434. package/lib/src/ap-list/index.vue.d.ts +9 -122
  435. package/lib/src/ap-list/interface.d.ts +0 -1
  436. package/lib/src/ap-modal/index.d.ts +0 -1
  437. package/lib/src/ap-modal/type.d.ts +0 -1
  438. package/lib/src/ap-modal/utils/createModal.d.ts +0 -1
  439. package/lib/src/ap-table/ap-table.vue.d.ts +16 -2222
  440. package/lib/src/ap-table/ap-table.vue.js +1 -1
  441. package/lib/src/ap-table/components/index/index.vue.d.ts +11 -12
  442. package/lib/src/ap-table/components/interface.d.ts +0 -1
  443. package/lib/src/ap-table/components/status/index.vue.d.ts +2 -3
  444. package/lib/src/ap-table/constants.d.ts +4816 -6356
  445. package/lib/src/ap-table/hooks/use-table-paging.d.ts +0 -1
  446. package/lib/src/ap-table/hooks/use-table-row-selection.d.ts +0 -1
  447. package/lib/src/ap-table/index.d.ts +0 -1
  448. package/lib/src/ap-table/interface.d.ts +0 -1
  449. package/lib/src/ap-table/style/ap-table.css +1 -21
  450. package/lib/src/ap-table/utils.d.ts +1 -2
  451. package/lib/src/ap-tag/ap-tag-group.vue.d.ts +14 -13
  452. package/lib/src/ap-tag/ap-tag.vue.d.ts +13 -14
  453. package/lib/src/ap-tag/index.d.ts +0 -1
  454. package/lib/src/ap-tag/interface.d.ts +0 -1
  455. package/lib/src/ap-upload/apUpload.vue.d.ts +2 -3
  456. package/lib/src/ap-upload/apUploadTypes.d.ts +0 -1
  457. package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +0 -1
  458. package/lib/src/ap-upload/components/Picture.vue.d.ts +0 -1
  459. package/lib/src/ap-upload/components/SingleFile.vue.d.ts +0 -1
  460. package/lib/src/ap-upload/hooks/useOss.d.ts +0 -1
  461. package/lib/src/ap-upload/index.d.ts +0 -1
  462. package/lib/src/ap-upload/utils/accept.d.ts +0 -1
  463. package/lib/src/base-button/button.vue.d.ts +17 -16
  464. package/lib/src/base-button/constants.d.ts +0 -1
  465. package/lib/src/base-button/index.d.ts +55 -55
  466. package/lib/src/base-button/interface.d.ts +0 -1
  467. package/lib/src/basic/arrow.vue.d.ts +2 -3
  468. package/lib/src/basic/help.vue.d.ts +4 -9
  469. package/lib/src/basic/index.d.ts +27 -35
  470. package/lib/src/basic/interface.d.ts +0 -1
  471. package/lib/src/basic/title.vue.d.ts +16 -15
  472. package/lib/src/business/ap-export-group/ApExportGroup.vue.d.ts +2 -3
  473. package/lib/src/business/ap-export-group/interface.d.ts +0 -1
  474. package/lib/src/business/ap-label/ApLabel.vue.d.ts +17 -16
  475. package/lib/src/business/ap-label/index.d.ts +0 -1
  476. package/lib/src/business/ap-label/interface.d.ts +0 -1
  477. package/lib/src/business/ap-select-layout/index.css +8 -0
  478. package/lib/src/business/ap-select-layout/index.d.ts +0 -1
  479. package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +16 -58
  480. package/lib/src/business/ap-status/ApStatus.vue.d.ts +11 -12
  481. package/lib/src/business/ap-status/ApStatusGroup.vue.d.ts +14 -17
  482. package/lib/src/business/ap-status/ApStatusGroup.vue2.js +1 -1
  483. package/lib/src/business/ap-status/index.d.ts +0 -1
  484. package/lib/src/business/expandAlert/ApExpandAlert.vue.d.ts +18 -17
  485. package/lib/src/business/index.d.ts +213 -248
  486. package/lib/src/business/title/ApTitle.vue.d.ts +19 -18
  487. package/lib/src/button/button.vue.d.ts +25 -0
  488. package/lib/src/button/index.d.ts +7 -7
  489. package/lib/src/check-card/checked.svg.js +1 -1
  490. package/lib/src/check-card/context.d.ts +0 -1
  491. package/lib/src/check-card/group.vue.d.ts +21 -20
  492. package/lib/src/check-card/index.d.ts +0 -1
  493. package/lib/src/check-card/index.vue.d.ts +16 -15
  494. package/lib/src/check-card/index.vue2.js +1 -1
  495. package/lib/src/check-card/interface.d.ts +0 -1
  496. package/lib/src/check-card/style/index.css +10 -42
  497. package/lib/src/config-provider/config-provider-props.d.ts +22 -23
  498. package/lib/src/config-provider/config-provider.d.ts +59 -204
  499. package/lib/src/config-provider/constants.d.ts +0 -1
  500. package/lib/src/config-provider/hooks/use-global-config.d.ts +24 -25
  501. package/lib/src/config-provider/hooks/use-locale.d.ts +0 -1
  502. package/lib/src/config-provider/hooks/use-namespace.d.ts +0 -1
  503. package/lib/src/config-provider/index.d.ts +129 -130
  504. package/lib/src/container/collapse/header.vue.d.ts +4 -5
  505. package/lib/src/container/collapse/index.vue.d.ts +5 -6
  506. package/lib/src/container/index.d.ts +26 -26
  507. package/lib/src/container/scroll-container.vue.d.ts +13 -12
  508. package/lib/src/count-down/button.vue.d.ts +11 -12
  509. package/lib/src/count-down/index.d.ts +13 -13
  510. package/lib/src/count-down/input.vue.d.ts +14 -13
  511. package/lib/src/count-down/interface.d.ts +0 -1
  512. package/lib/src/cropper/cropper-avatar.vue.d.ts +12 -13
  513. package/lib/src/cropper/cropper-image.vue.d.ts +12 -13
  514. package/lib/src/cropper/cropper-modal.vue.d.ts +0 -1
  515. package/lib/src/cropper/index.d.ts +63 -63
  516. package/lib/src/cropper/interface.d.ts +0 -1
  517. package/lib/src/description/description.vue.d.ts +1 -2
  518. package/lib/src/description/index.d.ts +10 -10
  519. package/lib/src/description/interface.d.ts +0 -1
  520. package/lib/src/description/use-description.d.ts +0 -1
  521. package/lib/src/design-token/index.d.ts +0 -1
  522. package/lib/src/design-token/index.js +1 -1
  523. package/lib/src/dropdown/dropdown.vue.d.ts +18 -17
  524. package/lib/src/dropdown/index.d.ts +18 -18
  525. package/lib/src/dropdown/interface.d.ts +0 -1
  526. package/lib/src/editable-table/form-item.vue.d.ts +14 -915
  527. package/lib/src/editable-table/form-item.vue.js +1 -1
  528. package/lib/src/editable-table/hooks/use-get-columns.d.ts +0 -1
  529. package/lib/src/editable-table/index.d.ts +0 -1
  530. package/lib/src/editable-table/index.vue.d.ts +18 -568
  531. package/lib/src/editable-table/index.vue.js +1 -1
  532. package/lib/src/editable-table/interface.d.ts +0 -1
  533. package/lib/src/editable-table/style/index.css +1 -21
  534. package/lib/src/editable-table/utils.d.ts +0 -1
  535. package/lib/src/hooks/useControllableValue.d.ts +0 -1
  536. package/lib/src/hooks/useMessage.d.ts +0 -1
  537. package/lib/src/icon/icon.vue.d.ts +12 -12
  538. package/lib/src/icon/index.d.ts +36 -36
  539. package/lib/src/icon/svg-icon.vue.d.ts +11 -12
  540. package/lib/src/icon-picker/icon-picker.vue.d.ts +12 -13
  541. package/lib/src/icon-picker/index.d.ts +25 -25
  542. package/lib/src/locale/index.d.ts +0 -1
  543. package/lib/src/locale/lang/en.d.ts +0 -1
  544. package/lib/src/locale/lang/en.js +1 -1
  545. package/lib/src/locale/lang/zh-cn.d.ts +0 -1
  546. package/lib/src/locale/lang/zh-cn.js +1 -1
  547. package/lib/src/modal/basic.vue.d.ts +18 -206
  548. package/lib/src/modal/components/modal-close.vue.d.ts +11 -12
  549. package/lib/src/modal/components/modal-footer.vue.d.ts +20 -209
  550. package/lib/src/modal/components/modal-header.vue.d.ts +2 -3
  551. package/lib/src/modal/components/modal-wrapper.vue.d.ts +7 -5
  552. package/lib/src/modal/components/modal.d.ts +11 -201
  553. package/lib/src/modal/hooks/use-moda-full-screen.d.ts +0 -1
  554. package/lib/src/modal/hooks/use-modal-drag.d.ts +0 -1
  555. package/lib/src/modal/hooks/use-modal.d.ts +0 -1
  556. package/lib/src/modal/index.d.ts +37 -130
  557. package/lib/src/modal/interface.d.ts +0 -1
  558. package/lib/src/modal/props.d.ts +6 -103
  559. package/lib/src/pro-form/component-map.d.ts +0 -1
  560. package/lib/src/pro-form/components/api-cascader.vue.d.ts +11 -12
  561. package/lib/src/pro-form/components/api-radio-group.vue.d.ts +12 -13
  562. package/lib/src/pro-form/components/api-select.vue.d.ts +15 -14
  563. package/lib/src/pro-form/components/api-transfer.vue.d.ts +14 -15
  564. package/lib/src/pro-form/components/api-tree-select.vue.d.ts +14 -13
  565. package/lib/src/pro-form/components/api-tree.vue.d.ts +15 -14
  566. package/lib/src/pro-form/components/form-action.vue.d.ts +19 -18
  567. package/lib/src/pro-form/components/form-item.vue.d.ts +0 -1
  568. package/lib/src/pro-form/components/interface.d.ts +0 -1
  569. package/lib/src/pro-form/components/radio-button-group.vue.d.ts +11 -12
  570. package/lib/src/pro-form/helper.d.ts +1 -2
  571. package/lib/src/pro-form/helper.js +1 -1
  572. package/lib/src/pro-form/hooks/use-advanced.d.ts +0 -1
  573. package/lib/src/pro-form/hooks/use-auto-focus.d.ts +0 -1
  574. package/lib/src/pro-form/hooks/use-component-register.d.ts +0 -1
  575. package/lib/src/pro-form/hooks/use-form-events.d.ts +0 -1
  576. package/lib/src/pro-form/hooks/use-form-events.js +1 -1
  577. package/lib/src/pro-form/hooks/use-form-item.d.ts +0 -1
  578. package/lib/src/pro-form/hooks/use-form-values.d.ts +0 -1
  579. package/lib/src/pro-form/hooks/use-form.d.ts +0 -1
  580. package/lib/src/pro-form/hooks/use-label-width.d.ts +122 -123
  581. package/lib/src/pro-form/index.d.ts +0 -1
  582. package/lib/src/pro-form/pro-form.vue.d.ts +24 -23
  583. package/lib/src/pro-form/table-form-inner.vue.d.ts +13 -14
  584. package/lib/src/pro-form/table-form.vue.d.ts +12 -13
  585. package/lib/src/pro-form/types/form-item.d.ts +0 -1
  586. package/lib/src/pro-form/types/form.d.ts +0 -1
  587. package/lib/src/pro-form/types/index.d.ts +37 -38
  588. package/lib/src/pro-form/types/table-form.d.ts +0 -1
  589. package/lib/src/pro-table/component-map.d.ts +0 -1
  590. package/lib/src/pro-table/components/edit-table-header-icon.vue.d.ts +6 -4
  591. package/lib/src/pro-table/components/editable/cell-component.d.ts +0 -1
  592. package/lib/src/pro-table/components/editable/editable-cell.vue.d.ts +7 -8
  593. package/lib/src/pro-table/components/editable/editable-cell.vue2.js +1 -1
  594. package/lib/src/pro-table/components/editable/helper.d.ts +0 -1
  595. package/lib/src/pro-table/components/editable/index.d.ts +0 -1
  596. package/lib/src/pro-table/components/header-cell.vue.d.ts +0 -1
  597. package/lib/src/pro-table/components/settings/column-setting.vue.d.ts +0 -1
  598. package/lib/src/pro-table/components/settings/index.vue.d.ts +0 -1
  599. package/lib/src/pro-table/components/table-action.vue.d.ts +7 -6
  600. package/lib/src/pro-table/components/table-footer.vue.d.ts +19 -20
  601. package/lib/src/pro-table/components/table-header.vue.d.ts +11 -10
  602. package/lib/src/pro-table/components/table-image.vue.d.ts +12 -13
  603. package/lib/src/pro-table/components/table-selection-bar.vue.d.ts +15 -16
  604. package/lib/src/pro-table/components/table-title.vue.d.ts +0 -1
  605. package/lib/src/pro-table/const.d.ts +0 -1
  606. package/lib/src/pro-table/directives/click-outside.d.ts +0 -1
  607. package/lib/src/pro-table/helper.d.ts +0 -1
  608. package/lib/src/pro-table/hooks/use-columns.d.ts +0 -1
  609. package/lib/src/pro-table/hooks/use-custom-row.d.ts +0 -1
  610. package/lib/src/pro-table/hooks/use-data-source.d.ts +1 -2
  611. package/lib/src/pro-table/hooks/use-loading.d.ts +0 -1
  612. package/lib/src/pro-table/hooks/use-pagination.d.ts +0 -1
  613. package/lib/src/pro-table/hooks/use-row-selection.d.ts +0 -1
  614. package/lib/src/pro-table/hooks/use-scroll-to.d.ts +0 -1
  615. package/lib/src/pro-table/hooks/use-table-context.d.ts +0 -1
  616. package/lib/src/pro-table/hooks/use-table-expand.d.ts +0 -1
  617. package/lib/src/pro-table/hooks/use-table-footer.d.ts +0 -1
  618. package/lib/src/pro-table/hooks/use-table-form.d.ts +0 -1
  619. package/lib/src/pro-table/hooks/use-table-header.d.ts +0 -1
  620. package/lib/src/pro-table/hooks/use-table-scroll.d.ts +3 -4
  621. package/lib/src/pro-table/hooks/use-table-scroll.js +1 -1
  622. package/lib/src/pro-table/hooks/use-table-style.d.ts +0 -1
  623. package/lib/src/pro-table/hooks/use-table.d.ts +0 -1
  624. package/lib/src/pro-table/interface.d.ts +0 -1
  625. package/lib/src/pro-table/pro-table.vue.d.ts +43 -42
  626. package/lib/src/pro-table/types/pagination.d.ts +0 -1
  627. package/lib/src/pro-table/types/table-action.d.ts +0 -1
  628. package/lib/src/pro-table/types/table.d.ts +0 -1
  629. package/lib/src/prompt/dialog.vue.d.ts +2 -3
  630. package/lib/src/prompt/index.d.ts +0 -1
  631. package/lib/src/prompt/interface.d.ts +0 -1
  632. package/lib/src/prompt/utils.d.ts +2 -2
  633. package/lib/src/scroll-bar/bar-item.d.ts +0 -1
  634. package/lib/src/scroll-bar/index.d.ts +27 -27
  635. package/lib/src/scroll-bar/interface.d.ts +0 -1
  636. package/lib/src/scroll-bar/scroll-bar.vue.d.ts +18 -17
  637. package/lib/src/scroll-bar/utils.d.ts +0 -1
  638. package/lib/src/strength-meter/index.d.ts +19 -19
  639. package/lib/src/strength-meter/strength-meter.vue.d.ts +14 -13
  640. package/lib/src/tests/wrapper.d.ts +8 -0
  641. package/lib/src/theme/antd-global-overwrite/admin/index.css +5 -5
  642. package/lib/src/theme/antd-global-overwrite/admin/steps.css +5 -5
  643. package/lib/src/theme/antd-global-overwrite/aplus/form.css +1 -1
  644. package/lib/src/theme/antd-global-overwrite/aplus/index.css +6 -6
  645. package/lib/src/theme/antd-global-overwrite/aplus/steps.css +5 -5
  646. package/lib/src/theme/ap-action/item.css +10 -25
  647. package/lib/src/theme/ap-field/checkbox.css +7 -0
  648. package/lib/src/theme/ap-field/radio.css +4 -0
  649. package/lib/src/theme/ap-form/ap-form-item.css +6 -6
  650. package/lib/src/theme/ap-select-layout/ap-select-layout.css +8 -0
  651. package/lib/src/theme/ap-table/ap-table.css +1 -21
  652. package/lib/src/theme/check-card/index.css +10 -42
  653. package/lib/src/theme/css-var/index.js +1 -1
  654. package/lib/src/theme/editable-table/index.css +1 -21
  655. package/lib/src/transition/collapse-transition.vue.d.ts +4 -3
  656. package/lib/src/transition/create-transition.d.ts +0 -1
  657. package/lib/src/type.d.ts +0 -1
  658. package/lib/src/utils/config-provider-preset.d.ts +16 -17
  659. package/lib/src/utils/index.d.ts +0 -1
  660. package/lib/src/utils/slot.d.ts +0 -1
  661. package/lib/src/utils/tree.d.ts +0 -1
  662. package/lib/src/work-order-modal/createWorkOrder.d.ts +0 -1
  663. package/lib/src/work-order-modal/index.d.ts +0 -1
  664. package/lib/src/work-order-modal/interfaces.d.ts +0 -1
  665. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +3 -4
  666. package/package.json +3 -3
@@ -1,5 +1,4 @@
1
1
  import { Component, VNodeProps } from 'vue';
2
-
3
2
  type ColSpanType = number | string;
4
3
  export interface ColEx {
5
4
  style?: any;
@@ -95,58 +94,58 @@ type MethodsNameTransform<T> = {
95
94
  };
96
95
  type ExtractPropTypes<T extends Component> = T extends new (...args: any) => any ? Omit<InstanceType<T>['$props'], keyof VNodeProps> : never;
97
96
  interface _CustomComponents {
98
- ApiSelect: ExtractPropTypes<typeof import('../components/api-select.vue')['default']>;
99
- ApiTree: ExtractPropTypes<typeof import('../components/api-tree.vue')['default']>;
100
- ApiTreeSelect: ExtractPropTypes<typeof import('../components/api-tree-select.vue')['default']>;
101
- ApiRadioGroup: ExtractPropTypes<typeof import('../components/api-radio-group.vue')['default']>;
102
- RadioButtonGroup: ExtractPropTypes<typeof import('../components/radio-button-group.vue')['default']>;
103
- ApiCascader: ExtractPropTypes<typeof import('../components/api-cascader.vue')['default']>;
104
- StrengthMeter: ExtractPropTypes<typeof import('../../strength-meter/strength-meter.vue')['default']>;
105
- IconPicker: ExtractPropTypes<typeof import('../../icon-picker/icon-picker.vue')['default']>;
106
- ApiTransfer: ExtractPropTypes<typeof import('../components/api-transfer.vue')['default']>;
107
- CropperAvatar: ExtractPropTypes<typeof import('../../cropper/cropper-avatar.vue')['default']>;
108
- BasicTitle: ExtractPropTypes<typeof import('../../basic/title.vue')['default']>;
109
- InputCountDown: ExtractPropTypes<typeof import('../../count-down/input.vue')['default']>;
97
+ ApiSelect: ExtractPropTypes<(typeof import('../components/api-select.vue'))['default']>;
98
+ ApiTree: ExtractPropTypes<(typeof import('../components/api-tree.vue'))['default']>;
99
+ ApiTreeSelect: ExtractPropTypes<(typeof import('../components/api-tree-select.vue'))['default']>;
100
+ ApiRadioGroup: ExtractPropTypes<(typeof import('../components/api-radio-group.vue'))['default']>;
101
+ RadioButtonGroup: ExtractPropTypes<(typeof import('../components/radio-button-group.vue'))['default']>;
102
+ ApiCascader: ExtractPropTypes<(typeof import('../components/api-cascader.vue'))['default']>;
103
+ StrengthMeter: ExtractPropTypes<(typeof import('../../strength-meter/strength-meter.vue'))['default']>;
104
+ IconPicker: ExtractPropTypes<(typeof import('../../icon-picker/icon-picker.vue'))['default']>;
105
+ ApiTransfer: ExtractPropTypes<(typeof import('../components/api-transfer.vue'))['default']>;
106
+ CropperAvatar: ExtractPropTypes<(typeof import('../../cropper/cropper-avatar.vue'))['default']>;
107
+ BasicTitle: ExtractPropTypes<(typeof import('../../basic/title.vue'))['default']>;
108
+ InputCountDown: ExtractPropTypes<(typeof import('../../count-down/input.vue'))['default']>;
110
109
  }
111
110
  type CustomComponents<T = _CustomComponents> = {
112
111
  [K in keyof T]: T[K] & MethodsNameTransform<T[K]>;
113
112
  };
114
113
  export interface ComponentProps {
115
- Input: ExtractPropTypes<typeof import('ant-design-vue/es/input')['default']>;
116
- InputGroup: ExtractPropTypes<typeof import('ant-design-vue/es/input')['InputGroup']>;
117
- InputPassword: ExtractPropTypes<typeof import('ant-design-vue/es/input')['InputPassword']>;
118
- InputSearch: ExtractPropTypes<typeof import('ant-design-vue/es/input')['InputSearch']>;
119
- InputTextArea: ExtractPropTypes<typeof import('ant-design-vue/es/input')['Textarea']>;
120
- InputNumber: ExtractPropTypes<typeof import('ant-design-vue/es/input-number')['default']>;
114
+ Input: ExtractPropTypes<(typeof import('ant-design-vue/es/input'))['default']>;
115
+ InputGroup: ExtractPropTypes<(typeof import('ant-design-vue/es/input'))['InputGroup']>;
116
+ InputPassword: ExtractPropTypes<(typeof import('ant-design-vue/es/input'))['InputPassword']>;
117
+ InputSearch: ExtractPropTypes<(typeof import('ant-design-vue/es/input'))['InputSearch']>;
118
+ InputTextArea: ExtractPropTypes<(typeof import('ant-design-vue/es/input'))['Textarea']>;
119
+ InputNumber: ExtractPropTypes<(typeof import('ant-design-vue/es/input-number'))['default']>;
121
120
  InputCountDown: CustomComponents['InputCountDown'] & ComponentProps['Input'];
122
- Select: ExtractPropTypes<typeof import('ant-design-vue/es/select')['default']>;
121
+ Select: ExtractPropTypes<(typeof import('ant-design-vue/es/select'))['default']>;
123
122
  ApiSelect: CustomComponents['ApiSelect'] & ComponentProps['Select'];
124
- TreeSelect: ExtractPropTypes<typeof import('ant-design-vue/es/tree-select')['default']>;
125
- ApiTree: CustomComponents['ApiTree'] & ExtractPropTypes<typeof import('ant-design-vue/es/tree')['default']>;
123
+ TreeSelect: ExtractPropTypes<(typeof import('ant-design-vue/es/tree-select'))['default']>;
124
+ ApiTree: CustomComponents['ApiTree'] & ExtractPropTypes<(typeof import('ant-design-vue/es/tree'))['default']>;
126
125
  ApiTreeSelect: CustomComponents['ApiTreeSelect'] & ComponentProps['TreeSelect'];
127
126
  ApiRadioGroup: CustomComponents['ApiRadioGroup'] & ComponentProps['RadioGroup'];
128
127
  RadioButtonGroup: CustomComponents['RadioButtonGroup'] & ComponentProps['RadioGroup'];
129
- RadioGroup: ExtractPropTypes<typeof import('ant-design-vue/es/radio')['RadioGroup']>;
130
- Checkbox: ExtractPropTypes<typeof import('ant-design-vue/es/checkbox')['default']>;
131
- CheckboxGroup: ExtractPropTypes<typeof import('ant-design-vue/es/checkbox')['CheckboxGroup']>;
132
- AutoComplete: ExtractPropTypes<typeof import('ant-design-vue/es/auto-complete')['default']>;
128
+ RadioGroup: ExtractPropTypes<(typeof import('ant-design-vue/es/radio'))['RadioGroup']>;
129
+ Checkbox: ExtractPropTypes<(typeof import('ant-design-vue/es/checkbox'))['default']>;
130
+ CheckboxGroup: ExtractPropTypes<(typeof import('ant-design-vue/es/checkbox'))['CheckboxGroup']>;
131
+ AutoComplete: ExtractPropTypes<(typeof import('ant-design-vue/es/auto-complete'))['default']>;
133
132
  ApiCascader: CustomComponents['ApiCascader'] & ComponentProps['Cascader'];
134
- Cascader: ExtractPropTypes<typeof import('ant-design-vue/es/cascader')['default']>;
135
- DatePicker: ExtractPropTypes<typeof import('ant-design-vue/es/date-picker')['default']>;
136
- MonthPicker: ExtractPropTypes<typeof import('ant-design-vue/es/date-picker')['MonthPicker']>;
137
- RangePicker: ExtractPropTypes<typeof import('ant-design-vue/es/date-picker')['RangePicker']>;
138
- WeekPicker: ExtractPropTypes<typeof import('ant-design-vue/es/date-picker')['WeekPicker']>;
139
- TimePicker: ExtractPropTypes<typeof import('ant-design-vue/es/time-picker')['TimePicker']>;
140
- TimeRangePicker: ExtractPropTypes<typeof import('ant-design-vue/es/time-picker')['TimeRangePicker']>;
141
- Switch: ExtractPropTypes<typeof import('ant-design-vue/es/switch')['default']>;
133
+ Cascader: ExtractPropTypes<(typeof import('ant-design-vue/es/cascader'))['default']>;
134
+ DatePicker: ExtractPropTypes<(typeof import('ant-design-vue/es/date-picker'))['default']>;
135
+ MonthPicker: ExtractPropTypes<(typeof import('ant-design-vue/es/date-picker'))['MonthPicker']>;
136
+ RangePicker: ExtractPropTypes<(typeof import('ant-design-vue/es/date-picker'))['RangePicker']>;
137
+ WeekPicker: ExtractPropTypes<(typeof import('ant-design-vue/es/date-picker'))['WeekPicker']>;
138
+ TimePicker: ExtractPropTypes<(typeof import('ant-design-vue/es/time-picker'))['TimePicker']>;
139
+ TimeRangePicker: ExtractPropTypes<(typeof import('ant-design-vue/es/time-picker'))['TimeRangePicker']>;
140
+ Switch: ExtractPropTypes<(typeof import('ant-design-vue/es/switch'))['default']>;
142
141
  StrengthMeter: CustomComponents['StrengthMeter'] & ComponentProps['InputPassword'];
143
142
  IconPicker: CustomComponents['IconPicker'];
144
143
  Render: Record<string, any>;
145
- Slider: ExtractPropTypes<typeof import('ant-design-vue/es/slider')['default']>;
146
- Rate: ExtractPropTypes<typeof import('ant-design-vue/es/rate')['default']>;
147
- Divider: ExtractPropTypes<typeof import('ant-design-vue/es/divider')['default']>;
144
+ Slider: ExtractPropTypes<(typeof import('ant-design-vue/es/slider'))['default']>;
145
+ Rate: ExtractPropTypes<(typeof import('ant-design-vue/es/rate'))['default']>;
146
+ Divider: ExtractPropTypes<(typeof import('ant-design-vue/es/divider'))['default']>;
148
147
  ApiTransfer: CustomComponents['ApiTransfer'] & ComponentProps['Transfer'];
149
- Transfer: ExtractPropTypes<typeof import('ant-design-vue/es/transfer')['default']>;
148
+ Transfer: ExtractPropTypes<(typeof import('ant-design-vue/es/transfer'))['default']>;
150
149
  CropperAvatar: CustomComponents['CropperAvatar'];
151
150
  BasicTitle: CustomComponents['BasicTitle'];
152
151
  }
@@ -3,7 +3,6 @@ import { ComponentType } from './';
3
3
  import { Rule } from 'ant-design-vue/es/form';
4
4
  import { GroupActionTypes } from '../../ap-action';
5
5
  import { ColumnProps } from 'ant-design-vue/es/table';
6
-
7
6
  export type Recordable = {
8
7
  [key: string]: any;
9
8
  };
@@ -1,5 +1,4 @@
1
1
  import { Component } from 'vue';
2
-
3
2
  export type ComponentType = 'Input' | 'InputNumber' | 'Select' | 'ApiSelect' | 'AutoComplete' | 'ApiTreeSelect' | 'Checkbox' | 'Switch' | 'DatePicker' | 'TimePicker' | 'RadioGroup' | 'RadioButtonGroup' | 'ApiRadioGroup';
4
3
  declare const componentMap: Map<ComponentType, Component>;
5
4
  export declare function add(compName: ComponentType, component: Component): void;
@@ -1,5 +1,8 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
2
- declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
2
+ declare function __VLS_template(): {
3
+ default?(_: {}): any;
4
+ };
5
+ declare const __VLS_component: DefineComponent<{
3
6
  title: {
4
7
  type: StringConstructor;
5
8
  default: string;
@@ -11,9 +14,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
11
14
  };
12
15
  }>>, {
13
16
  title: string;
14
- }, {}>, {
15
- default?(_: {}): any;
16
- }>;
17
+ }, {}>;
18
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
17
19
  export default _default;
18
20
  type __VLS_WithTemplateSlots<T, S> = T & {
19
21
  new (): {
@@ -1,7 +1,6 @@
1
1
  import { ComponentType } from '../../component-map';
2
2
  import { Fn, Recordable } from '../../../type';
3
3
  import { VNode, RendererNode, RendererElement } from 'vue';
4
-
5
4
  export interface ComponentProps {
6
5
  component: ComponentType;
7
6
  rule: boolean;
@@ -1,8 +1,7 @@
1
1
  import { CSSProperties, PropType, DefineComponent, Ref, ComputedRef, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
2
2
  import { BasicColumn } from '../../types/table';
3
3
  import { Recordable } from '../../../type';
4
- import { ComponentType } from 'src/pro-table/component-map';
5
-
4
+ import { ComponentType } from '../../component-map';
6
5
  declare const _default: DefineComponent<{
7
6
  value: {
8
7
  type: PropType<string | number | boolean | Record<string, any>>;
@@ -24,12 +23,12 @@ declare const _default: DefineComponent<{
24
23
  ns: {
25
24
  namespace: ComputedRef<string>;
26
25
  b: (blockSuffix?: string) => string;
27
- e: (element?: string | undefined) => string;
28
- m: (modifier?: string | undefined) => string;
29
- be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
30
- em: (element?: string | undefined, modifier?: string | undefined) => string;
31
- bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
32
- bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
26
+ e: (element?: string) => string;
27
+ m: (modifier?: string) => string;
28
+ be: (blockSuffix?: string, element?: string) => string;
29
+ em: (element?: string, modifier?: string) => string;
30
+ bm: (blockSuffix?: string, modifier?: string) => string;
31
+ bem: (blockSuffix?: string, element?: string, modifier?: string) => string;
33
32
  is: {
34
33
  (name: string, state: boolean | undefined): string;
35
34
  (name: string): string;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),y=require("@ant-design/icons-vue"),K=require("./cell-component.js");require("../../../config-provider/index.js");const ce=require("../../hooks/use-table-context.js"),le=require("../../directives/click-outside.js"),j=require("./helper.js"),h=require("lodash-unified"),ue=require("../../../utils/tree.js"),W=require("ant-design-vue"),se=require("../../helper.js"),d=require("@fruits-chain/utils");require("../style/editable-cell.css");const oe=require("../../../config-provider/hooks/use-locale.js"),re=require("../../../config-provider/hooks/use-namespace.js"),ae=e.defineComponent({name:"EditableCell",components:{FormOutlined:y.FormOutlined,CloseOutlined:y.CloseOutlined,CheckOutlined:y.CheckOutlined,CellComponent:K.CellComponent,Spin:W.Spin},directives:{clickOutside:le.default},props:{value:{type:[String,Number,Boolean,Object],default:""},record:{type:Object},column:{type:Object,default:()=>({})},index:{type:Number,required:!0}},setup(i){const o=ce.useTableContext(),p=e.ref(!1),I=e.ref(),O=e.ref(!1),C=e.ref(""),E=e.ref([]),r=e.ref(i.value),B=e.ref(i.value),N=e.ref(!1),{t:M}=oe.useLocale(),_=re.useNamespace("editable-cell"),m=e.computed(()=>{var t;return((t=i.column)==null?void 0:t.editComponent)||"Input"}),$=e.computed(()=>{var t;return(t=i.column)==null?void 0:t.editRule}),L=e.computed(()=>e.unref(C)&&e.unref(O)),A=e.computed(()=>{const t=e.unref(m);return["Checkbox","Switch"].includes(t)}),V=e.computed(()=>{var S;const t=e.unref(A);let n=((S=i.column)==null?void 0:S.editComponentProps)??{};const{checkedValue:c,unCheckedValue:u}=n,l=t?"checked":"value",s=e.unref(r);let a=s;t&&(typeof c<"u"?a=s===c?c:u:typeof u<"u"?a=s===u?u:c:a=d.isType("Number")(s)||h.isBoolean(s)?s:!!s);const{record:f,column:g,index:R}=i;d.isFunction(n)&&(n=n({text:s,record:f,column:g,index:R})??{}),n.onChangeTemp=n.onChange,delete n.onChange;const w=e.unref(m),b={};return w==="ApiSelect"&&(b.cache=!0),z(f,g,a),{size:"small",getPopupContainer:()=>e.unref(o==null?void 0:o.wrapRef.value)??document.body,placeholder:j.createPlaceholderMessage(e.unref(m),M),...b,...n,[l]:a,disabled:e.unref(q)}});function z(t,n,c){if(!t)return!1;const{key:u,dataIndex:l}=n;if(!u&&!l)return;const s=l||u;h.set(t,s,c)}const q=e.computed(()=>{const{editDynamicDisabled:t}=i.column;let n=!1;if(h.isBoolean(t)&&(n=t),d.isFunction(t)){const{record:c}=i;n=t({record:c,currentValue:r.value})}return n}),U=e.computed(()=>{var s;const{editValueMap:t}=i.column,n=e.unref(r);if(t&&d.isFunction(t))return t(n);const c=e.unref(m);if(!c.includes("Select")&&!c.includes("Radio"))return n;const l=(((s=e.unref(V))==null?void 0:s.options)??(e.unref(E)||[])).find(a=>`${a.value}`==`${n}`);return(l==null?void 0:l.label)??n}),G=e.computed(()=>e.unref(A)||e.unref(v)?{}:{width:"calc(100% - 48px)"}),H=e.computed(()=>{const{align:t="center"}=i.column;return`edit-cell-align-${t}`}),v=e.computed(()=>{const{editable:t}=i.record||{};return!!t});e.watchEffect(()=>{r.value=i.value}),e.watchEffect(()=>{const{editable:t}=i.column;(h.isBoolean(t)||h.isBoolean(e.unref(v)))&&(p.value=!!t||e.unref(v))});function J(t){var n;t.stopPropagation(),!(e.unref(v)||e.unref((n=i.column)==null?void 0:n.editRow)||e.unref(q))&&(C.value="",p.value=!0,e.nextTick(()=>{var u;const c=e.unref(I);(u=c==null?void 0:c.focus)==null||u.call(c)}))}async function Q(t){var u,l;const n=e.unref(m);t?n==="Checkbox"?r.value=t.target.checked:n==="Switch"?r.value=t:t!=null&&t.target&&Reflect.has(t.target,"value")?r.value=t.target.value:(d.isType("String")(t)||h.isBoolean(t)||d.isType("Number")(t)||d.isArray(t))&&(r.value=t):r.value=t;const c=(u=e.unref(V))==null?void 0:u.onChangeTemp;c&&d.isFunction(c)&&c(...arguments),(l=o.emit)==null||l.call(o,"edit-change",{column:i.column,value:e.unref(r),record:e.toRaw(i.record)}),P()}async function P(){const{column:t,record:n}=i,{editRule:c}=t,u=e.unref(r);if(c){if(h.isBoolean(c)&&!u&&!d.isType("Number")(u)){O.value=!0;const l=e.unref(m);return C.value=j.createPlaceholderMessage(l,M),!1}if(d.isFunction(c)){const l=await c(u,n);return l?(C.value=l,O.value=!0,!1):(C.value="",!0)}}return C.value="",!0}async function k(t=!0,n=!0){var R;if(n&&!await P())return!1;const{column:c,index:u,record:l}=i;if(!l)return!1;const{key:s,dataIndex:a}=c,f=e.unref(r);if(!s&&!a)return;const g=a||s;if(!l.editable){const{getBindValues:w}=o,{beforeEditSubmit:b,columns:S,rowKey:te}=e.unref(w),ne=se.parseRowKey(te,l);if(b&&d.isFunction(b)){N.value=!0;const ie=S.map(x=>x.dataIndex).filter(x=>!!x);let D=!0;try{D=await b({record:h.pick(l,[ne,...ie]),index:u,key:g,value:f})}catch{D=!1}finally{N.value=!1}if(D===!1)return}}h.set(l,g,f),B.value=f,t&&((R=o.emit)==null||R.call(o,"edit-end",{record:l,index:u,key:g,value:f})),p.value=!1}async function X(){var t;(t=i.column)!=null&&t.editRow||k()}function Y(){k()}function F(){var s;p.value=!1,r.value=B.value;const{column:t,index:n,record:c}=i,{key:u,dataIndex:l}=t;(s=o.emit)==null||s.call(o,"edit-cancel",{record:c,index:n,key:l||u,value:e.unref(r)})}function Z(){var n;if((n=i.column)!=null&&n.editable||e.unref(v))return;e.unref(m).includes("Input")&&F()}function ee(t){const{replaceFields:n}=e.unref(V);if(e.unref(m)==="ApiTreeSelect"){const{title:u="title",value:l="value",children:s="children"}=n||{};let a=ue.treeToList(t,{children:s});a=a.map(f=>({label:f[u],value:f[l]})),E.value=a}else E.value=t}function T(t,n){var c;i.record&&(d.isArray(i.record[t])?(c=i.record[t])==null||c.push(n):i.record[t]=[n])}return i.record&&(T("submitCbs",k),T("validCbs",P),T("cancelCbs",F),i.column.dataIndex&&(i.record.editValueRefs||(i.record.editValueRefs={}),i.record.editValueRefs[i.column.dataIndex]=r),i.record.onCancelEdit=()=>{var t,n;d.isArray((t=i.record)==null?void 0:t.cancelCbs)&&((n=i.record)==null||n.cancelCbs.forEach(c=>c()))},i.record.onSubmitEdit=async()=>{var t,n,c,u,l;if(d.isArray((t=i.record)==null?void 0:t.submitCbs))return(c=(n=i.record)==null?void 0:n.onValid)!=null&&c.call(n)?((((u=i.record)==null?void 0:u.submitCbs)||[]).forEach(a=>a(!1,!1)),(l=o.emit)==null||l.call(o,"edit-row-end"),!0):void 0}),{isEdit:p,ns:_,handleEdit:J,currentValueRef:r,handleSubmit:k,handleChange:Q,handleCancel:F,elRef:I,getComponent:m,getRule:$,onClickOutside:Z,ruleMessage:C,getRuleVisible:L,getComponentProps:V,handleOptionsChange:ee,getWrapperStyle:G,getWrapperClass:H,getRowEditable:v,getValues:U,handleEnter:X,handleSubmitClick:Y,spinning:N,getDisable:q}},render(){return e.createVNode("div",{class:this.ns.b()},[e.withDirectives(e.createVNode("div",{class:{[this.ns.e("normal")]:!0,"ellipsis-cell":this.column.ellipsis},onClick:this.handleEdit},[e.createVNode("div",{class:"cell-content",title:this.column.ellipsis?this.getValues??"":""},[this.column.editRender?this.column.editRender({text:this.value,record:this.record,column:this.column,index:this.index,currentValue:this.currentValueRef}):this.getValues??" "]),!this.column.editRow&&!this.getDisable&&e.createVNode(y.FormOutlined,{class:this.ns.e("normal-icon")},null)]),[[e.vShow,!this.isEdit]]),this.isEdit&&e.createVNode(W.Spin,{spinning:this.spinning},{default:()=>[e.withDirectives(e.createVNode("div",{class:this.ns.e("wrapper"),onClick:i=>i.stopPropagation()},[e.createVNode(K.CellComponent,e.mergeProps(this.getComponentProps,{component:this.getComponent,style:this.getWrapperStyle,popoverVisible:this.getRuleVisible,rule:this.getRule,ruleMessage:this.ruleMessage,class:this.getWrapperClass,ref:"elRef",onChange:this.handleChange,onOptionsChange:this.handleOptionsChange,onPressEnter:this.handleEnter}),null),!this.getRowEditable&&e.createVNode("div",{class:this.ns.e("action")},[e.createVNode(y.CheckOutlined,{class:[this.ns.e("icon"),"mx-2"],onClick:this.handleSubmitClick},null),e.createVNode(y.CloseOutlined,{class:this.ns.e("icon"),onClick:this.handleCancel},null)])]),[[e.resolveDirective("click-outside"),this.onClickOutside]])]})])}});exports.default=ae;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),y=require("@ant-design/icons-vue"),K=require("./cell-component.js");require("../../../config-provider/index.js");const ce=require("../../hooks/use-table-context.js"),le=require("../../directives/click-outside.js"),j=require("./helper.js"),h=require("lodash-unified"),ue=require("../../../utils/tree.js"),W=require("ant-design-vue"),se=require("../../helper.js"),d=require("@fruits-chain/utils");require("../style/editable-cell.css");const oe=require("../../../config-provider/hooks/use-locale.js"),re=require("../../../config-provider/hooks/use-namespace.js"),ae=e.defineComponent({name:"EditableCell",components:{FormOutlined:y.FormOutlined,CloseOutlined:y.CloseOutlined,CheckOutlined:y.CheckOutlined,CellComponent:K.CellComponent,Spin:W.Spin},directives:{clickOutside:le.default},props:{value:{type:[String,Number,Boolean,Object],default:""},record:{type:Object},column:{type:Object,default:()=>({})},index:{type:Number,required:!0}},setup(i){const o=ce.useTableContext(),p=e.ref(!1),I=e.ref(),x=e.ref(!1),C=e.ref(""),O=e.ref([]),r=e.ref(i.value),B=e.ref(i.value),E=e.ref(!1),{t:M}=oe.useLocale(),_=re.useNamespace("editable-cell"),m=e.computed(()=>{var t;return((t=i.column)==null?void 0:t.editComponent)||"Input"}),$=e.computed(()=>{var t;return(t=i.column)==null?void 0:t.editRule}),L=e.computed(()=>e.unref(C)&&e.unref(x)),A=e.computed(()=>{const t=e.unref(m);return["Checkbox","Switch"].includes(t)}),V=e.computed(()=>{var S;const t=e.unref(A);let n=((S=i.column)==null?void 0:S.editComponentProps)??{};const{checkedValue:c,unCheckedValue:u}=n,l=t?"checked":"value",s=e.unref(r);let a=s;t&&(typeof c<"u"?a=s===c?c:u:typeof u<"u"?a=s===u?u:c:a=d.isType("Number")(s)||h.isBoolean(s)?s:!!s);const{record:f,column:g,index:R}=i;d.isFunction(n)&&(n=n({text:s,record:f,column:g,index:R})??{}),n.onChangeTemp=n.onChange,delete n.onChange;const w=e.unref(m),b={};return w==="ApiSelect"&&(b.cache=!0),z(f,g,a),{size:"small",getPopupContainer:()=>e.unref(o==null?void 0:o.wrapRef.value)??document.body,placeholder:j.createPlaceholderMessage(e.unref(m),M),...b,...n,[l]:a,disabled:e.unref(N)}});function z(t,n,c){if(!t)return!1;const{key:u,dataIndex:l}=n;if(!u&&!l)return;const s=l||u;h.set(t,s,c)}const N=e.computed(()=>{const{editDynamicDisabled:t}=i.column;let n=!1;if(h.isBoolean(t)&&(n=t),d.isFunction(t)){const{record:c}=i;n=t({record:c,currentValue:r.value})}return n}),U=e.computed(()=>{var s;const{editValueMap:t}=i.column,n=e.unref(r);if(t&&d.isFunction(t))return t(n);const c=e.unref(m);if(!c.includes("Select")&&!c.includes("Radio"))return n;const l=(((s=e.unref(V))==null?void 0:s.options)??(e.unref(O)||[])).find(a=>`${a.value}`==`${n}`);return(l==null?void 0:l.label)??n}),G=e.computed(()=>e.unref(A)||e.unref(v)?{}:{width:"calc(100% - 48px)"}),H=e.computed(()=>{const{align:t="center"}=i.column;return`edit-cell-align-${t}`}),v=e.computed(()=>{const{editable:t}=i.record||{};return!!t});e.watchEffect(()=>{r.value=i.value}),e.watchEffect(()=>{const{editable:t}=i.column;(h.isBoolean(t)||h.isBoolean(e.unref(v)))&&(p.value=!!t||e.unref(v))});function J(t){var n;t.stopPropagation(),!(e.unref(v)||e.unref((n=i.column)==null?void 0:n.editRow)||e.unref(N))&&(C.value="",p.value=!0,e.nextTick(()=>{var u;const c=e.unref(I);(u=c==null?void 0:c.focus)==null||u.call(c)}))}async function Q(t){var u,l;const n=e.unref(m);t?n==="Checkbox"?r.value=t.target.checked:n==="Switch"?r.value=t:t!=null&&t.target&&Reflect.has(t.target,"value")?r.value=t.target.value:(d.isType("String")(t)||h.isBoolean(t)||d.isType("Number")(t)||d.isArray(t))&&(r.value=t):r.value=t;const c=(u=e.unref(V))==null?void 0:u.onChangeTemp;c&&d.isFunction(c)&&c(...arguments),(l=o.emit)==null||l.call(o,"edit-change",{column:i.column,value:e.unref(r),record:e.toRaw(i.record)}),q()}async function q(){const{column:t,record:n}=i,{editRule:c}=t,u=e.unref(r);if(c){if(h.isBoolean(c)&&!u&&!d.isType("Number")(u)){x.value=!0;const l=e.unref(m);return C.value=j.createPlaceholderMessage(l,M),!1}if(d.isFunction(c)){const l=await c(u,n);return l?(C.value=l,x.value=!0,!1):(C.value="",!0)}}return C.value="",!0}async function k(t=!0,n=!0){var R;if(n&&!await q())return!1;const{column:c,index:u,record:l}=i;if(!l)return!1;const{key:s,dataIndex:a}=c,f=e.unref(r);if(!s&&!a)return;const g=a||s;if(!l.editable){const{getBindValues:w}=o,{beforeEditSubmit:b,columns:S,rowKey:te}=e.unref(w),ne=se.parseRowKey(te,l);if(b&&d.isFunction(b)){E.value=!0;const ie=S.map(D=>D.dataIndex).filter(D=>!!D);let T=!0;try{T=await b({record:h.pick(l,[ne,...ie]),index:u,key:g,value:f})}catch{T=!1}finally{E.value=!1}if(T===!1)return}}h.set(l,g,f),B.value=f,t&&((R=o.emit)==null||R.call(o,"edit-end",{record:l,index:u,key:g,value:f})),p.value=!1}async function X(){var t;(t=i.column)!=null&&t.editRow||k()}function Y(){k()}function P(){var s;p.value=!1,r.value=B.value;const{column:t,index:n,record:c}=i,{key:u,dataIndex:l}=t;(s=o.emit)==null||s.call(o,"edit-cancel",{record:c,index:n,key:l||u,value:e.unref(r)})}function Z(){var n;if((n=i.column)!=null&&n.editable||e.unref(v))return;e.unref(m).includes("Input")&&P()}function ee(t){const{replaceFields:n}=e.unref(V);if(e.unref(m)==="ApiTreeSelect"){const{title:u="title",value:l="value",children:s="children"}=n||{};let a=ue.treeToList(t,{children:s});a=a.map(f=>({label:f[u],value:f[l]})),O.value=a}else O.value=t}function F(t,n){var c;i.record&&(d.isArray(i.record[t])?(c=i.record[t])==null||c.push(n):i.record[t]=[n])}return i.record&&(F("submitCbs",k),F("validCbs",q),F("cancelCbs",P),i.column.dataIndex&&(i.record.editValueRefs||(i.record.editValueRefs={}),i.record.editValueRefs[i.column.dataIndex]=r),i.record.onCancelEdit=()=>{var t,n;d.isArray((t=i.record)==null?void 0:t.cancelCbs)&&((n=i.record)==null||n.cancelCbs.forEach(c=>c()))},i.record.onSubmitEdit=async()=>{var t,n,c,u,l;if(d.isArray((t=i.record)==null?void 0:t.submitCbs))return(c=(n=i.record)==null?void 0:n.onValid)!=null&&c.call(n)?((((u=i.record)==null?void 0:u.submitCbs)||[]).forEach(a=>a(!1,!1)),(l=o.emit)==null||l.call(o,"edit-row-end"),!0):void 0}),{isEdit:p,ns:_,handleEdit:J,currentValueRef:r,handleSubmit:k,handleChange:Q,handleCancel:P,elRef:I,getComponent:m,getRule:$,onClickOutside:Z,ruleMessage:C,getRuleVisible:L,getComponentProps:V,handleOptionsChange:ee,getWrapperStyle:G,getWrapperClass:H,getRowEditable:v,getValues:U,handleEnter:X,handleSubmitClick:Y,spinning:E,getDisable:N}},render(){return e.createVNode("div",{class:this.ns.b()},[e.withDirectives(e.createVNode("div",{class:{[this.ns.e("normal")]:!0,"ellipsis-cell":this.column.ellipsis},onClick:this.handleEdit},[e.createVNode("div",{class:"cell-content",title:this.column.ellipsis?this.getValues??"":""},[this.column.editRender?this.column.editRender({text:this.value,record:this.record,column:this.column,index:this.index,currentValue:this.currentValueRef}):this.getValues??" "]),!this.column.editRow&&!this.getDisable&&e.createVNode(y.FormOutlined,{class:this.ns.e("normal-icon")},null)]),[[e.vShow,!this.isEdit]]),this.isEdit&&e.createVNode(W.Spin,{spinning:this.spinning},{default:()=>[e.withDirectives(e.createVNode("div",{class:this.ns.e("wrapper"),onClick:i=>i.stopPropagation()},[e.createVNode(K.CellComponent,e.mergeProps(this.getComponentProps,{component:this.getComponent,style:this.getWrapperStyle,popoverVisible:this.getRuleVisible,rule:this.getRule,ruleMessage:this.ruleMessage,class:this.getWrapperClass,ref:"elRef",onChange:this.handleChange,onOptionsChange:this.handleOptionsChange,onPressEnter:this.handleEnter}),null),!this.getRowEditable&&e.createVNode("div",{class:this.ns.e("action")},[e.createVNode(y.CheckOutlined,{class:[this.ns.e("icon"),"mx-2"],onClick:this.handleSubmitClick},null),e.createVNode(y.CloseOutlined,{class:this.ns.e("icon"),onClick:this.handleCancel},null)])]),[[e.resolveDirective("click-outside"),this.onClickOutside]])]})])}});exports.default=ae;
@@ -1,6 +1,5 @@
1
1
  import { Translator } from '../../../config-provider';
2
2
  import { ComponentType } from '../../component-map';
3
-
4
3
  /**
5
4
  * @description: 生成placeholder
6
5
  */
@@ -1,7 +1,6 @@
1
1
  import { BasicColumn } from '../../types/table';
2
2
  import { Ref, VNode, RendererNode, RendererElement } from 'vue';
3
3
  import { Fn, Recordable } from '../../../type';
4
-
5
4
  interface Params {
6
5
  text: string;
7
6
  record: Recordable;
@@ -1,6 +1,5 @@
1
1
  import { PropType, DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
2
2
  import { ColumnType } from 'ant-design-vue/lib/table/interface';
3
-
4
3
  declare const _default: DefineComponent<{
5
4
  column: {
6
5
  type: PropType<ColumnType<any>>;
@@ -1,5 +1,4 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
2
-
3
2
  declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
4
3
  "columns-change": (...args: any[]) => void;
5
4
  }, string, PublicProps, Readonly< ExtractPropTypes<{}>> & {
@@ -1,6 +1,5 @@
1
1
  import { PropType, DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
2
2
  import { TableSetting } from '../../types/table';
3
-
4
3
  declare const _default: DefineComponent<{
5
4
  setting: {
6
5
  type: PropType<TableSetting>;
@@ -1,7 +1,9 @@
1
1
  import { PropType, DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
2
2
  import { ActionItem } from '../types/table-action';
3
-
4
- declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
3
+ declare function __VLS_template(): {
4
+ more?(_: {}): any;
5
+ };
6
+ declare const __VLS_component: DefineComponent<{
5
7
  actions: {
6
8
  type: PropType<ActionItem[]>;
7
9
  default: null;
@@ -42,14 +44,13 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
42
44
  default: boolean;
43
45
  };
44
46
  }>>, {
45
- actions: ActionItem[];
46
47
  outside: boolean;
48
+ actions: ActionItem[];
47
49
  dropDownActions: ActionItem[];
48
50
  divider: boolean;
49
51
  stopButtonPropagation: boolean;
50
- }, {}>, {
51
- more?(_: {}): any;
52
- }>;
52
+ }, {}>;
53
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
53
54
  export default _default;
54
55
  type __VLS_WithTemplateSlots<T, S> = T & {
55
56
  new (): {
@@ -2,21 +2,20 @@ import { BasicTableProps } from '../types/table';
2
2
  import { Fn, Recordable } from '../../type';
3
3
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
4
4
  import { GetRowKey } from 'ant-design-vue/es/vc-table/interface';
5
-
6
- declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
7
- summaryFunc?: Fn<any, any> | null | undefined;
8
- summaryData?: Recordable[] | null | undefined;
9
- scroll?: BasicTableProps['scroll'];
10
- rowKey?: BasicTableProps['rowKey'];
5
+ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
6
+ summaryFunc?: Fn | null;
7
+ summaryData?: Recordable[] | null;
8
+ scroll?: BasicTableProps["scroll"];
9
+ rowKey?: BasicTableProps["rowKey"];
11
10
  }>, {
12
11
  summaryFunc: null;
13
12
  summaryData: null;
14
13
  rowKey: string;
15
- }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
16
- summaryFunc?: Fn<any, any> | null | undefined;
17
- summaryData?: Recordable[] | null | undefined;
18
- scroll?: BasicTableProps['scroll'];
19
- rowKey?: BasicTableProps['rowKey'];
14
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
15
+ summaryFunc?: Fn | null;
16
+ summaryData?: Recordable[] | null;
17
+ scroll?: BasicTableProps["scroll"];
18
+ rowKey?: BasicTableProps["rowKey"];
20
19
  }>, {
21
20
  summaryFunc: null;
22
21
  summaryData: null;
@@ -27,15 +26,6 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
27
26
  summaryData: Recordable[] | null;
28
27
  }, {}>;
29
28
  export default _default;
30
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
31
- type __VLS_TypePropsToRuntimeProps<T> = {
32
- [K in keyof T]-?: {} extends Pick<T, K> ? {
33
- type: PropType<__VLS_NonUndefinedable<T[K]>>;
34
- } : {
35
- type: PropType<T[K]>;
36
- required: true;
37
- };
38
- };
39
29
  type __VLS_WithDefaults<P, D> = {
40
30
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
41
31
  default: D[K];
@@ -44,3 +34,12 @@ type __VLS_WithDefaults<P, D> = {
44
34
  type __VLS_Prettify<T> = {
45
35
  [K in keyof T]: T[K];
46
36
  } & {};
37
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
38
+ type __VLS_TypePropsToOption<T> = {
39
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
40
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
41
+ } : {
42
+ type: PropType<T[K]>;
43
+ required: true;
44
+ };
45
+ };
@@ -1,7 +1,11 @@
1
- import { TableSetting } from '../types/table';
1
+ import { TableSetting, TableActionType } from '../types/table';
2
2
  import { PropType, DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
3
-
4
- declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
3
+ declare function __VLS_template(): {
4
+ headerTop?(_: {}): any;
5
+ tableTitle?(_: {}): any;
6
+ toolbar?(_: {}): any;
7
+ };
8
+ declare const __VLS_component: DefineComponent<{
5
9
  title: {
6
10
  type: PropType<string | ((data: any) => string)>;
7
11
  };
@@ -16,7 +20,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
16
20
  default: string;
17
21
  };
18
22
  clearSelectedRowKeys: {
19
- type: PropType<() => void>;
23
+ type: PropType<TableActionType["clearSelectedRowKeys"]>;
20
24
  };
21
25
  count: {
22
26
  type: NumberConstructor;
@@ -43,7 +47,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
43
47
  default: string;
44
48
  };
45
49
  clearSelectedRowKeys: {
46
- type: PropType<() => void>;
50
+ type: PropType<TableActionType["clearSelectedRowKeys"]>;
47
51
  };
48
52
  count: {
49
53
  type: NumberConstructor;
@@ -60,11 +64,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
60
64
  showTableSetting: boolean;
61
65
  titleHelpMessage: string | string[];
62
66
  showSelectionBar: boolean;
63
- }, {}>, {
64
- headerTop?(_: {}): any;
65
- tableTitle?(_: {}): any;
66
- toolbar?(_: {}): any;
67
- }>;
67
+ }, {}>;
68
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
68
69
  export default _default;
69
70
  type __VLS_WithTemplateSlots<T, S> = T & {
70
71
  new (): {
@@ -1,5 +1,4 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
-
3
2
  type TableImageProps = {
4
3
  imgList?: string[];
5
4
  size?: number;
@@ -9,13 +8,13 @@ type TableImageProps = {
9
8
  srcPrefix?: string;
10
9
  fallback?: string;
11
10
  };
12
- declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TableImageProps>, {
11
+ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<TableImageProps>, {
13
12
  size: number;
14
13
  showBadge: boolean;
15
14
  margin: number;
16
15
  srcPrefix: string;
17
16
  fallback: string;
18
- }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TableImageProps>, {
17
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<TableImageProps>, {
19
18
  size: number;
20
19
  showBadge: boolean;
21
20
  margin: number;
@@ -24,20 +23,11 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
24
23
  }>>>, {
25
24
  size: number;
26
25
  margin: number;
27
- fallback: string;
28
26
  showBadge: boolean;
29
27
  srcPrefix: string;
28
+ fallback: string;
30
29
  }, {}>;
31
30
  export default _default;
32
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
33
- type __VLS_TypePropsToRuntimeProps<T> = {
34
- [K in keyof T]-?: {} extends Pick<T, K> ? {
35
- type: PropType<__VLS_NonUndefinedable<T[K]>>;
36
- } : {
37
- type: PropType<T[K]>;
38
- required: true;
39
- };
40
- };
41
31
  type __VLS_WithDefaults<P, D> = {
42
32
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
43
33
  default: D[K];
@@ -46,3 +36,12 @@ type __VLS_WithDefaults<P, D> = {
46
36
  type __VLS_Prettify<T> = {
47
37
  [K in keyof T]: T[K];
48
38
  } & {};
39
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
40
+ type __VLS_TypePropsToOption<T> = {
41
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
42
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
43
+ } : {
44
+ type: PropType<T[K]>;
45
+ required: true;
46
+ };
47
+ };
@@ -1,29 +1,19 @@
1
1
  import { TableActionType } from '../types/table';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
3
-
4
- declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
5
- count?: number | undefined;
6
- clearSelectedRowKeys: TableActionType['clearSelectedRowKeys'];
3
+ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
4
+ count?: number;
5
+ clearSelectedRowKeys: TableActionType["clearSelectedRowKeys"];
7
6
  }>, {
8
7
  count: () => 0;
9
- }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
10
- count?: number | undefined;
11
- clearSelectedRowKeys: TableActionType['clearSelectedRowKeys'];
8
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
9
+ count?: number;
10
+ clearSelectedRowKeys: TableActionType["clearSelectedRowKeys"];
12
11
  }>, {
13
12
  count: () => 0;
14
13
  }>>>, {
15
14
  count: number;
16
15
  }, {}>;
17
16
  export default _default;
18
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
19
- type __VLS_TypePropsToRuntimeProps<T> = {
20
- [K in keyof T]-?: {} extends Pick<T, K> ? {
21
- type: PropType<__VLS_NonUndefinedable<T[K]>>;
22
- } : {
23
- type: PropType<T[K]>;
24
- required: true;
25
- };
26
- };
27
17
  type __VLS_WithDefaults<P, D> = {
28
18
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
29
19
  default: D[K];
@@ -32,3 +22,12 @@ type __VLS_WithDefaults<P, D> = {
32
22
  type __VLS_Prettify<T> = {
33
23
  [K in keyof T]: T[K];
34
24
  } & {};
25
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
26
+ type __VLS_TypePropsToOption<T> = {
27
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
28
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
29
+ } : {
30
+ type: PropType<T[K]>;
31
+ required: true;
32
+ };
33
+ };
@@ -1,5 +1,4 @@
1
1
  import { PropType, DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
2
-
3
2
  declare const _default: DefineComponent<{
4
3
  title: {
5
4
  type: PropType<string | ((data: any) => string)>;
@@ -1,5 +1,4 @@
1
1
  import { SizeType } from './types/table';
2
-
3
2
  export declare const ROW_KEY = "key";
4
3
  export declare const DEFAULT_ALIGN = "left";
5
4
  export declare const INDEX_COLUMN_FLAG = "INDEX";
@@ -1,4 +1,3 @@
1
1
  import { ObjectDirective } from 'vue';
2
-
3
2
  declare const ClickOutside: ObjectDirective;
4
3
  export default ClickOutside;
@@ -1,4 +1,3 @@
1
1
  import { BasicTableProps } from './types/table';
2
-
3
2
  export declare function parseRowKey<RecordType = any>(rowKey: BasicTableProps['rowKey'], record: RecordType, autoCreateKey?: boolean): number | string;
4
3
  export declare function parseRowKeyValue<RecordType = any>(rowKey: BasicTableProps['rowKey'], record: RecordType, autoCreateKey?: boolean): number | string;
@@ -3,7 +3,6 @@ import { PaginationProps } from '../types/pagination';
3
3
  import { ComputedRef } from 'vue';
4
4
  import { ColumnType } from 'ant-design-vue/es/table';
5
5
  import { Recordable } from '../../type';
6
-
7
6
  export declare function useColumns(propsRef: ComputedRef<BasicTableProps>, getPaginationRef: ComputedRef<boolean | PaginationProps>): {
8
7
  getColumnsRef: ComputedRef<BasicColumn[]>;
9
8
  getCacheColumns: () => BasicColumn[];
@@ -2,7 +2,6 @@ import { ComputedRef } from 'vue';
2
2
  import { BasicTableProps } from '../types/table';
3
3
  import { Key } from 'ant-design-vue/lib/table/interface';
4
4
  import { EmitType, Recordable } from '../../type';
5
-
6
5
  interface Options {
7
6
  setSelectedRowKeys: (keyValues: Key[]) => void;
8
7
  getSelectRowKeys: () => Key[];
@@ -4,7 +4,6 @@ import { ComputedRef, Ref } from 'vue';
4
4
  import { Key } from 'ant-design-vue/lib/table/interface';
5
5
  import { EmitType, Recordable } from '../../type';
6
6
  import { GetRowKey } from 'ant-design-vue/es/vc-table/interface';
7
-
8
7
  interface ActionType {
9
8
  getPaginationInfo: ComputedRef<boolean | PaginationProps>;
10
9
  setPagination: (info: Partial<PaginationProps>) => void;
@@ -16,7 +15,7 @@ interface ActionType {
16
15
  export declare function useDataSource(propsRef: ComputedRef<BasicTableProps>, { getPaginationInfo, setPagination, setLoading, getFieldsValue, clearSelectedRowKeys, tableData }: ActionType, emit: EmitType): {
17
16
  getDataSourceRef: ComputedRef<Recordable[]>;
18
17
  getDataSource: <T = Recordable>() => T[];
19
- getRawDataSource: <T_1 = Recordable>() => T_1;
18
+ getRawDataSource: <T = Recordable>() => T;
20
19
  getRowKey: ComputedRef<string | GetRowKey<any> | undefined>;
21
20
  setTableData: <T = Recordable>(values: T[]) => void;
22
21
  getAutoCreateKey: ComputedRef<boolean | undefined>;
@@ -1,6 +1,5 @@
1
1
  import { ComputedRef } from 'vue';
2
2
  import { BasicTableProps } from '../types/table';
3
-
4
3
  export declare function useLoading(props: ComputedRef<BasicTableProps>): {
5
4
  getLoading: ComputedRef<boolean | undefined>;
6
5
  setLoading: (loading: boolean) => void;
@@ -1,7 +1,6 @@
1
1
  import { PaginationProps } from '../types/pagination';
2
2
  import { BasicTableProps } from '../types/table';
3
3
  import { ComputedRef } from 'vue';
4
-
5
4
  export declare function usePagination(refProps: ComputedRef<BasicTableProps>): {
6
5
  getPagination: () => boolean | PaginationProps;
7
6
  getPaginationInfo: ComputedRef<boolean | PaginationProps>;
@@ -2,7 +2,6 @@ import { BasicTableProps, TableRowSelection } from '../types/table';
2
2
  import { ComputedRef, Ref } from 'vue';
3
3
  import { Key } from 'ant-design-vue/lib/table/interface';
4
4
  import { EmitType, Recordable } from '../../type';
5
-
6
5
  export declare function useRowSelection(propsRef: ComputedRef<BasicTableProps>, tableData: Ref<Recordable[]>, emit: EmitType): {
7
6
  getRowSelection: () => TableRowSelection<any>;
8
7
  getRowSelectionRef: ComputedRef<TableRowSelection<any> | null>;
@@ -1,6 +1,5 @@
1
1
  import { ComputedRef, Ref } from 'vue';
2
2
  import { ComponentRef, Recordable } from '../../type';
3
-
4
3
  export declare function useTableScrollTo(tableElRef: Ref<ComponentRef>, getDataSourceRef: ComputedRef<Recordable[]>): {
5
4
  scrollTo: (pos: string) => void;
6
5
  };
@@ -1,7 +1,6 @@
1
1
  import { Ref, ComputedRef } from 'vue';
2
2
  import { BasicTableProps, TableActionType } from '../types/table';
3
3
  import { Nullable, Recordable } from '../../type';
4
-
5
4
  type Instance = TableActionType & {
6
5
  wrapRef: Ref<Nullable<HTMLElement>>;
7
6
  getBindValues: ComputedRef<Recordable>;