@aplus-frontend/ui 0.0.1-beta.1 → 0.0.1-beta.3

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 (253) hide show
  1. package/es/index.mjs +124 -118
  2. package/es/src/ap-field/checkbox/helper.d.ts +6 -0
  3. package/es/src/ap-field/date/constant.d.ts +1 -0
  4. package/es/src/ap-field/index.d.ts +5 -0
  5. package/es/src/ap-field/interface.d.ts +29 -0
  6. package/es/src/ap-form/ap-form-item-group/helper.d.ts +8 -0
  7. package/es/src/ap-form/ap-form-item-group/helper.mjs +14 -0
  8. package/es/src/ap-form/ap-form-item-group/index.vue.d.ts +45 -0
  9. package/es/src/ap-form/ap-form-item-group/index.vue.mjs +58 -0
  10. package/es/src/ap-form/ap-form-item-group/index.vue2.mjs +4 -0
  11. package/es/src/ap-form/ap-form-item.vue.d.ts +47 -0
  12. package/es/src/ap-form/ap-form-item.vue.mjs +76 -0
  13. package/es/src/ap-form/ap-form-item.vue2.mjs +4 -0
  14. package/es/src/ap-form/ap-form.d.ts +1681 -0
  15. package/es/src/ap-form/ap-form.mjs +5 -0
  16. package/es/src/ap-form/constant.d.ts +3 -0
  17. package/es/src/ap-form/constant.mjs +17 -0
  18. package/es/src/ap-form/index.d.ts +2593 -0
  19. package/es/src/ap-form/index.mjs +10 -0
  20. package/es/src/ap-form/interface.d.ts +7 -0
  21. package/es/src/ap-form/style/ap-form-item-group.css +9 -0
  22. package/es/src/base-button/button.vue.d.ts +5 -5
  23. package/es/src/base-button/index.d.ts +53 -48
  24. package/es/src/base-button/modal-button.vue.d.ts +8 -6
  25. package/es/src/base-button/pop-confirm-button.vue.d.ts +4 -3
  26. package/es/src/basic/arrow.vue.d.ts +4 -3
  27. package/es/src/basic/help.vue.d.ts +6 -6
  28. package/es/src/basic/index.d.ts +196 -70
  29. package/es/src/basic/title.vue.d.ts +5 -4
  30. package/es/src/button/index.d.ts +20 -15
  31. package/es/src/config-provider/config-provider-props.d.ts +28 -16
  32. package/es/src/config-provider/config-provider-props.mjs +8 -4
  33. package/es/src/config-provider/config-provider.d.ts +92 -68
  34. package/es/src/config-provider/constants.d.ts +3 -0
  35. package/es/src/config-provider/hooks/use-global-config.d.ts +47 -32
  36. package/es/src/config-provider/hooks/use-namespace.d.ts +3 -3
  37. package/es/src/config-provider/index.d.ts +532 -156
  38. package/es/src/container/collapse/header.vue.d.ts +3 -3
  39. package/es/src/container/collapse/index.vue.d.ts +4 -4
  40. package/es/src/container/index.d.ts +119 -38
  41. package/es/src/container/scroll-container.vue.d.ts +5 -4
  42. package/es/src/count-down/button.vue.d.ts +5 -4
  43. package/es/src/count-down/index.d.ts +88 -41
  44. package/es/src/count-down/input.vue.d.ts +5 -4
  45. package/es/src/cropper/cropper-avatar.vue.d.ts +6 -5
  46. package/es/src/cropper/cropper-image.vue.d.ts +7 -7
  47. package/es/src/cropper/cropper-modal.vue.d.ts +4 -4
  48. package/es/src/cropper/index.d.ts +308 -93
  49. package/es/src/description/description.vue.d.ts +6 -6
  50. package/es/src/description/index.d.ts +169 -48
  51. package/es/src/dropdown/dropdown.vue.d.ts +6 -5
  52. package/es/src/dropdown/index.d.ts +35 -28
  53. package/es/src/hooks/index.d.ts +1 -0
  54. package/es/src/hooks/useControllableValue.d.ts +13 -0
  55. package/es/src/hooks/useControllableValue.mjs +24 -0
  56. package/es/src/hooks/useMessage.d.ts +9 -7
  57. package/es/src/icon/icon.vue.d.ts +5 -4
  58. package/es/src/icon/index.d.ts +175 -52
  59. package/es/src/icon/svg-icon.vue.d.ts +5 -4
  60. package/es/src/icon-picker/icon-picker.vue.d.ts +9 -8
  61. package/es/src/icon-picker/index.d.ts +160 -51
  62. package/es/src/index.d.ts +1 -0
  63. package/es/src/index.mjs +79 -75
  64. package/es/src/modal/basic.vue.d.ts +70 -64
  65. package/es/src/modal/components/modal-close.vue.d.ts +6 -5
  66. package/es/src/modal/components/modal-footer.vue.d.ts +69 -64
  67. package/es/src/modal/components/modal-header.vue.d.ts +4 -3
  68. package/es/src/modal/components/modal-wrapper.vue.d.ts +5 -4
  69. package/es/src/modal/components/modal.d.ts +69 -63
  70. package/es/src/modal/hooks/use-moda-full-screen.d.ts +2 -2
  71. package/es/src/modal/index.d.ts +144 -134
  72. package/es/src/modal/props.d.ts +19 -16
  73. package/es/src/pro-form/component-map.d.ts +2 -2
  74. package/es/src/pro-form/components/api-cascader.vue.d.ts +6 -5
  75. package/es/src/pro-form/components/api-radio-group.vue.d.ts +7 -6
  76. package/es/src/pro-form/components/api-select.vue.d.ts +8 -7
  77. package/es/src/pro-form/components/api-transfer.vue.d.ts +6 -5
  78. package/es/src/pro-form/components/api-tree-select.vue.d.ts +6 -5
  79. package/es/src/pro-form/components/api-tree.vue.d.ts +7 -6
  80. package/es/src/pro-form/components/form-action.vue.d.ts +6 -5
  81. package/es/src/pro-form/components/form-item.vue.d.ts +3 -3
  82. package/es/src/pro-form/components/radio-button-group.vue.d.ts +5 -4
  83. package/es/src/pro-form/hooks/use-advanced.d.ts +2 -2
  84. package/es/src/pro-form/hooks/use-break-point.d.ts +4 -3
  85. package/es/src/pro-form/hooks/use-label-width.d.ts +51 -50
  86. package/es/src/pro-form/pro-form.vue.d.ts +16 -13
  87. package/es/src/pro-table/component-map.d.ts +2 -2
  88. package/es/src/pro-table/components/edit-table-header-icon.vue.d.ts +3 -2
  89. package/es/src/pro-table/components/editable/cell-component.d.ts +2 -1
  90. package/es/src/pro-table/components/editable/editable-cell.vue.d.ts +19 -18
  91. package/es/src/pro-table/components/editable/index.d.ts +2 -2
  92. package/es/src/pro-table/components/header-cell.vue.d.ts +3 -3
  93. package/es/src/pro-table/components/settings/column-setting.vue.d.ts +3 -2
  94. package/es/src/pro-table/components/settings/full-screen-setting.vue.d.ts +2 -1
  95. package/es/src/pro-table/components/settings/index.vue.d.ts +4 -4
  96. package/es/src/pro-table/components/settings/redo-setting.vue.d.ts +2 -1
  97. package/es/src/pro-table/components/settings/size-setting.vue.d.ts +2 -1
  98. package/es/src/pro-table/components/table-action.vue.d.ts +3 -3
  99. package/es/src/pro-table/components/table-footer.vue.d.ts +7 -5
  100. package/es/src/pro-table/components/table-header.vue.d.ts +4 -4
  101. package/es/src/pro-table/components/table-image.vue.d.ts +5 -4
  102. package/es/src/pro-table/components/table-selection-bar.vue.d.ts +5 -4
  103. package/es/src/pro-table/components/table-title.vue.d.ts +3 -3
  104. package/es/src/pro-table/const.d.ts +3 -0
  105. package/es/src/pro-table/const.mjs +10 -4
  106. package/es/src/pro-table/hooks/use-data-source.d.ts +2 -1
  107. package/es/src/pro-table/interface.d.ts +4 -0
  108. package/es/src/pro-table/pro-table.vue.d.ts +45 -36
  109. package/es/src/pro-table/pro-table.vue.mjs +221 -211
  110. package/es/src/pro-table/style/pro-table.css +10 -5
  111. package/es/src/prompt/dialog.vue.d.ts +4 -3
  112. package/es/src/prompt/index.d.ts +2 -2
  113. package/es/src/scroll-bar/bar-item.d.ts +4 -3
  114. package/es/src/scroll-bar/index.d.ts +52 -53
  115. package/es/src/scroll-bar/scroll-bar.vue.d.ts +8 -9
  116. package/es/src/scroll-bar/scroll-bar.vue.mjs +44 -44
  117. package/es/src/strength-meter/index.d.ts +26 -21
  118. package/es/src/strength-meter/strength-meter.vue.d.ts +6 -5
  119. package/es/src/theme/ap-form/ap-form-item-group.css +9 -0
  120. package/es/src/theme/pro-table/pro-table.css +10 -5
  121. package/es/src/transition/collapse-transition.vue.d.ts +2 -1
  122. package/es/src/transition/create-transition.d.ts +5 -5
  123. package/es/src/transition/index.d.ts +97 -96
  124. package/es/src/utils/slot.d.ts +2 -2
  125. package/lib/index.js +1 -1
  126. package/lib/src/ap-field/checkbox/helper.d.ts +6 -0
  127. package/lib/src/ap-field/date/constant.d.ts +1 -0
  128. package/lib/src/ap-field/index.d.ts +5 -0
  129. package/lib/src/ap-field/interface.d.ts +29 -0
  130. package/lib/src/ap-form/ap-form-item-group/helper.d.ts +8 -0
  131. package/lib/src/ap-form/ap-form-item-group/helper.js +1 -0
  132. package/lib/src/ap-form/ap-form-item-group/index.vue.d.ts +45 -0
  133. package/lib/src/ap-form/ap-form-item-group/index.vue.js +1 -0
  134. package/lib/src/ap-form/ap-form-item-group/index.vue2.js +1 -0
  135. package/lib/src/ap-form/ap-form-item.vue.d.ts +47 -0
  136. package/lib/src/ap-form/ap-form-item.vue.js +1 -0
  137. package/lib/src/ap-form/ap-form-item.vue2.js +1 -0
  138. package/lib/src/ap-form/ap-form.d.ts +1681 -0
  139. package/lib/src/ap-form/ap-form.js +1 -0
  140. package/lib/src/ap-form/constant.d.ts +3 -0
  141. package/lib/src/ap-form/constant.js +1 -0
  142. package/lib/src/ap-form/index.d.ts +2593 -0
  143. package/lib/src/ap-form/index.js +1 -0
  144. package/lib/src/ap-form/interface.d.ts +7 -0
  145. package/lib/src/ap-form/style/ap-form-item-group.css +9 -0
  146. package/lib/src/base-button/button.vue.d.ts +5 -5
  147. package/lib/src/base-button/index.d.ts +53 -48
  148. package/lib/src/base-button/modal-button.vue.d.ts +8 -6
  149. package/lib/src/base-button/pop-confirm-button.vue.d.ts +4 -3
  150. package/lib/src/basic/arrow.vue.d.ts +4 -3
  151. package/lib/src/basic/help.vue.d.ts +6 -6
  152. package/lib/src/basic/index.d.ts +196 -70
  153. package/lib/src/basic/title.vue.d.ts +5 -4
  154. package/lib/src/button/index.d.ts +20 -15
  155. package/lib/src/config-provider/config-provider-props.d.ts +28 -16
  156. package/lib/src/config-provider/config-provider-props.js +1 -1
  157. package/lib/src/config-provider/config-provider.d.ts +92 -68
  158. package/lib/src/config-provider/constants.d.ts +3 -0
  159. package/lib/src/config-provider/hooks/use-global-config.d.ts +47 -32
  160. package/lib/src/config-provider/hooks/use-namespace.d.ts +3 -3
  161. package/lib/src/config-provider/index.d.ts +532 -156
  162. package/lib/src/container/collapse/header.vue.d.ts +3 -3
  163. package/lib/src/container/collapse/index.vue.d.ts +4 -4
  164. package/lib/src/container/index.d.ts +119 -38
  165. package/lib/src/container/scroll-container.vue.d.ts +5 -4
  166. package/lib/src/count-down/button.vue.d.ts +5 -4
  167. package/lib/src/count-down/index.d.ts +88 -41
  168. package/lib/src/count-down/input.vue.d.ts +5 -4
  169. package/lib/src/cropper/cropper-avatar.vue.d.ts +6 -5
  170. package/lib/src/cropper/cropper-image.vue.d.ts +7 -7
  171. package/lib/src/cropper/cropper-modal.vue.d.ts +4 -4
  172. package/lib/src/cropper/index.d.ts +308 -93
  173. package/lib/src/description/description.vue.d.ts +6 -6
  174. package/lib/src/description/index.d.ts +169 -48
  175. package/lib/src/dropdown/dropdown.vue.d.ts +6 -5
  176. package/lib/src/dropdown/index.d.ts +35 -28
  177. package/lib/src/hooks/index.d.ts +1 -0
  178. package/lib/src/hooks/useControllableValue.d.ts +13 -0
  179. package/lib/src/hooks/useControllableValue.js +1 -0
  180. package/lib/src/hooks/useMessage.d.ts +9 -7
  181. package/lib/src/icon/icon.vue.d.ts +5 -4
  182. package/lib/src/icon/index.d.ts +175 -52
  183. package/lib/src/icon/svg-icon.vue.d.ts +5 -4
  184. package/lib/src/icon-picker/icon-picker.vue.d.ts +9 -8
  185. package/lib/src/icon-picker/index.d.ts +160 -51
  186. package/lib/src/index.d.ts +1 -0
  187. package/lib/src/index.js +1 -1
  188. package/lib/src/modal/basic.vue.d.ts +70 -64
  189. package/lib/src/modal/components/modal-close.vue.d.ts +6 -5
  190. package/lib/src/modal/components/modal-footer.vue.d.ts +69 -64
  191. package/lib/src/modal/components/modal-header.vue.d.ts +4 -3
  192. package/lib/src/modal/components/modal-wrapper.vue.d.ts +5 -4
  193. package/lib/src/modal/components/modal.d.ts +69 -63
  194. package/lib/src/modal/hooks/use-moda-full-screen.d.ts +2 -2
  195. package/lib/src/modal/index.d.ts +144 -134
  196. package/lib/src/modal/props.d.ts +19 -16
  197. package/lib/src/pro-form/component-map.d.ts +2 -2
  198. package/lib/src/pro-form/components/api-cascader.vue.d.ts +6 -5
  199. package/lib/src/pro-form/components/api-radio-group.vue.d.ts +7 -6
  200. package/lib/src/pro-form/components/api-select.vue.d.ts +8 -7
  201. package/lib/src/pro-form/components/api-transfer.vue.d.ts +6 -5
  202. package/lib/src/pro-form/components/api-tree-select.vue.d.ts +6 -5
  203. package/lib/src/pro-form/components/api-tree.vue.d.ts +7 -6
  204. package/lib/src/pro-form/components/form-action.vue.d.ts +6 -5
  205. package/lib/src/pro-form/components/form-item.vue.d.ts +3 -3
  206. package/lib/src/pro-form/components/radio-button-group.vue.d.ts +5 -4
  207. package/lib/src/pro-form/hooks/use-advanced.d.ts +2 -2
  208. package/lib/src/pro-form/hooks/use-break-point.d.ts +4 -3
  209. package/lib/src/pro-form/hooks/use-label-width.d.ts +51 -50
  210. package/lib/src/pro-form/pro-form.vue.d.ts +16 -13
  211. package/lib/src/pro-table/component-map.d.ts +2 -2
  212. package/lib/src/pro-table/components/edit-table-header-icon.vue.d.ts +3 -2
  213. package/lib/src/pro-table/components/editable/cell-component.d.ts +2 -1
  214. package/lib/src/pro-table/components/editable/editable-cell.vue.d.ts +19 -18
  215. package/lib/src/pro-table/components/editable/index.d.ts +2 -2
  216. package/lib/src/pro-table/components/header-cell.vue.d.ts +3 -3
  217. package/lib/src/pro-table/components/settings/column-setting.vue.d.ts +3 -2
  218. package/lib/src/pro-table/components/settings/full-screen-setting.vue.d.ts +2 -1
  219. package/lib/src/pro-table/components/settings/index.vue.d.ts +4 -4
  220. package/lib/src/pro-table/components/settings/redo-setting.vue.d.ts +2 -1
  221. package/lib/src/pro-table/components/settings/size-setting.vue.d.ts +2 -1
  222. package/lib/src/pro-table/components/table-action.vue.d.ts +3 -3
  223. package/lib/src/pro-table/components/table-footer.vue.d.ts +7 -5
  224. package/lib/src/pro-table/components/table-header.vue.d.ts +4 -4
  225. package/lib/src/pro-table/components/table-image.vue.d.ts +5 -4
  226. package/lib/src/pro-table/components/table-selection-bar.vue.d.ts +5 -4
  227. package/lib/src/pro-table/components/table-title.vue.d.ts +3 -3
  228. package/lib/src/pro-table/const.d.ts +3 -0
  229. package/lib/src/pro-table/const.js +1 -1
  230. package/lib/src/pro-table/hooks/use-data-source.d.ts +2 -1
  231. package/lib/src/pro-table/interface.d.ts +4 -0
  232. package/lib/src/pro-table/pro-table.vue.d.ts +45 -36
  233. package/lib/src/pro-table/pro-table.vue.js +1 -1
  234. package/lib/src/pro-table/style/pro-table.css +10 -5
  235. package/lib/src/prompt/dialog.vue.d.ts +4 -3
  236. package/lib/src/prompt/index.d.ts +2 -2
  237. package/lib/src/scroll-bar/bar-item.d.ts +4 -3
  238. package/lib/src/scroll-bar/index.d.ts +52 -53
  239. package/lib/src/scroll-bar/scroll-bar.vue.d.ts +8 -9
  240. package/lib/src/scroll-bar/scroll-bar.vue.js +1 -1
  241. package/lib/src/strength-meter/index.d.ts +26 -21
  242. package/lib/src/strength-meter/strength-meter.vue.d.ts +6 -5
  243. package/lib/src/theme/ap-form/ap-form-item-group.css +9 -0
  244. package/lib/src/theme/pro-table/pro-table.css +10 -5
  245. package/lib/src/transition/collapse-transition.vue.d.ts +2 -1
  246. package/lib/src/transition/create-transition.d.ts +5 -5
  247. package/lib/src/transition/index.d.ts +97 -96
  248. package/lib/src/utils/slot.d.ts +2 -2
  249. package/package.json +2 -2
  250. package/es/src/constants/component-setting.d.ts +0 -74
  251. package/es/src/constants/component-setting.mjs +0 -90
  252. package/lib/src/constants/component-setting.d.ts +0 -74
  253. package/lib/src/constants/component-setting.js +0 -1
@@ -1,31 +1,32 @@
1
- import { defineComponent as Ge, useAttrs as Me, useSlots as qe, ref as u, computed as g, unref as e, inject as Je, watchEffect as Qe, toRaw as N, openBlock as $, createElementBlock as Ue, normalizeClass as Xe, createBlock as Ye, mergeProps as O, createSlots as V, renderList as L, withCtx as h, renderSlot as S, normalizeProps as C, guardReactiveProps as b, createCommentVNode as Ze, withDirectives as et, createVNode as W, vShow as tt } from "vue";
2
- import { Table as ot } from "ant-design-vue";
3
- import { omit as at, isFunction as nt } from "lodash-unified";
1
+ import { defineComponent as Je, useAttrs as Qe, useSlots as Ue, ref as d, computed as p, unref as e, inject as Xe, watchEffect as Ye, toRaw as O, openBlock as V, createElementBlock as L, normalizeClass as W, normalizeStyle as Ze, createVNode as D, mergeProps as j, createSlots as M, renderList as G, withCtx as S, renderSlot as C, normalizeProps as y, guardReactiveProps as b, createCommentVNode as et, withDirectives as tt, vShow as ot } from "vue";
2
+ import { Table as at } from "ant-design-vue";
3
+ import { isString as nt, omit as rt, isFunction as lt } from "lodash-unified";
4
4
  import "@ant-design/icons-vue";
5
5
  import "../config-provider/index.mjs";
6
6
  import "@fruits-chain/utils";
7
7
  import "@aplus-frontend/hooks";
8
- import rt from "../pro-form/pro-form.vue.mjs";
9
- import { useForm as lt } from "../pro-form/hooks/use-form.mjs";
10
- import st from "./components/header-cell.vue.mjs";
11
- import { usePagination as it } from "./hooks/use-pagination.mjs";
12
- import { useColumns as ct } from "./hooks/use-columns.mjs";
13
- import { useDataSource as mt } from "./hooks/use-data-source.mjs";
14
- import { useLoading as ut } from "./hooks/use-loading.mjs";
8
+ import st from "../pro-form/pro-form.vue.mjs";
9
+ import { useForm as it } from "../pro-form/hooks/use-form.mjs";
10
+ import ct from "./components/header-cell.vue.mjs";
11
+ import { usePagination as mt } from "./hooks/use-pagination.mjs";
12
+ import { useColumns as ut } from "./hooks/use-columns.mjs";
13
+ import { useDataSource as dt } from "./hooks/use-data-source.mjs";
14
+ import { useLoading as pt } from "./hooks/use-loading.mjs";
15
15
  import { useRowSelection as ft } from "./hooks/use-row-selection.mjs";
16
- import { useTableScroll as pt } from "./hooks/use-table-scroll.mjs";
17
- import { useTableScrollTo as dt } from "./hooks/use-scroll-to.mjs";
18
- import { useCustomRow as gt } from "./hooks/use-custom-row.mjs";
19
- import { useTableStyle as ht } from "./hooks/use-table-style.mjs";
20
- import { useTableHeader as St } from "./hooks/use-table-header.mjs";
21
- import { useTableExpand as Ct } from "./hooks/use-table-expand.mjs";
22
- import { createTableContext as bt } from "./hooks/use-table-context.mjs";
23
- import { useTableFooter as yt } from "./hooks/use-table-footer.mjs";
24
- import { useTableForm as wt } from "./hooks/use-table-form.mjs";
16
+ import { useTableScroll as gt } from "./hooks/use-table-scroll.mjs";
17
+ import { useTableScrollTo as ht } from "./hooks/use-scroll-to.mjs";
18
+ import { useCustomRow as St } from "./hooks/use-custom-row.mjs";
19
+ import { useTableStyle as Ct } from "./hooks/use-table-style.mjs";
20
+ import { useTableHeader as yt } from "./hooks/use-table-header.mjs";
21
+ import { useTableExpand as bt } from "./hooks/use-table-expand.mjs";
22
+ import { createTableContext as wt } from "./hooks/use-table-context.mjs";
23
+ import { useTableFooter as Rt } from "./hooks/use-table-footer.mjs";
24
+ import { useTableForm as Ft } from "./hooks/use-table-form.mjs";
25
25
  import "./style/pro-table.css";
26
- import { useGlobalConfig as Rt } from "../config-provider/hooks/use-global-config.mjs";
27
- import { useNamespace as Ft } from "../config-provider/hooks/use-namespace.mjs";
28
- const Tt = "PageWrapperFixedHeight", Zt = /* @__PURE__ */ Ge({
26
+ import { formTableDivideSpaceMap as Tt } from "./const.mjs";
27
+ import { useGlobalConfig as Bt } from "../config-provider/hooks/use-global-config.mjs";
28
+ import { useNamespace as vt } from "../config-provider/hooks/use-namespace.mjs";
29
+ const Pt = "PageWrapperFixedHeight", ao = /* @__PURE__ */ Je({
29
30
  name: "BasicTable",
30
31
  __name: "pro-table",
31
32
  props: {
@@ -76,7 +77,8 @@ const Tt = "PageWrapperFixedHeight", Zt = /* @__PURE__ */ Ge({
76
77
  rowClassName: {},
77
78
  scroll: {},
78
79
  beforeEditSubmit: {},
79
- size: {}
80
+ size: {},
81
+ divideSpace: { default: "default" }
80
82
  },
81
83
  emits: [
82
84
  "fetch-success",
@@ -96,242 +98,250 @@ const Tt = "PageWrapperFixedHeight", Zt = /* @__PURE__ */ Ge({
96
98
  "change",
97
99
  "columns-change"
98
100
  ],
99
- setup(j, { expose: G, emit: M }) {
100
- const f = Rt().value.table, l = j, r = M, D = Me(), x = qe(), s = u(null), y = u([]), w = u(null), z = u(null), R = u(), { b: F, m: q } = Ft("pro-table"), [J, v] = lt(), a = g(() => ({
101
- ...l,
102
- sortFn: l.sortFn || f.defaultSortFn,
103
- filterFn: l.filterFn || f.defaultFilterFn,
104
- fetchSetting: l.fetchSetting || f.fetchSetting,
105
- size: l.size || f.defaultSize,
106
- ...e(R)
107
- })), Q = Je(Tt, !1);
108
- Qe(() => {
109
- e(Q) && l.canResize && console.warn(
101
+ setup(q, { expose: J, emit: Q }) {
102
+ const f = Bt().value.table, r = q, l = Q, z = Qe(), x = Ue(), s = d(null), w = d([]), R = d(null), K = d(null), F = d(), { b: i, m: U } = vt("pro-table"), [X, k] = it(), T = p(() => nt(r.divideSpace) ? Tt[r.divideSpace] : r.divideSpace), a = p(() => ({
103
+ ...r,
104
+ sortFn: r.sortFn || f.defaultSortFn,
105
+ filterFn: r.filterFn || f.defaultFilterFn,
106
+ fetchSetting: r.fetchSetting || f.fetchSetting,
107
+ size: r.size || f.defaultSize,
108
+ ...e(F)
109
+ })), Y = Xe(Pt, !1);
110
+ Ye(() => {
111
+ e(Y) && r.canResize && console.warn(
110
112
  "'canResize' of BasicTable may not work in PageWrapper with 'fixedHeight' (especially in hot updates)"
111
113
  );
112
114
  });
113
- const { getLoading: k, setLoading: K } = ut(a), {
114
- getPaginationInfo: T,
115
- getPagination: U,
116
- setPagination: E,
117
- setShowPagination: X,
118
- getShowPagination: Y
119
- } = it(a), {
120
- getRowSelection: Z,
121
- getRowSelectionRef: H,
122
- getSelectRows: ee,
123
- setSelectedRows: te,
124
- clearSelectedRowKeys: p,
125
- getSelectRowKeys: B,
126
- deleteSelectRowByKey: oe,
127
- setSelectedRowKeys: _
128
- } = ft(a, y, r), {
129
- handleTableChange: ae,
130
- getDataSourceRef: i,
131
- getDataSource: ne,
132
- getRawDataSource: re,
133
- setTableData: le,
134
- updateTableDataRecord: se,
135
- deleteTableDataRecord: ie,
136
- insertTableDataRecord: ce,
137
- findTableDataRecord: me,
138
- fetch: ue,
139
- getRowKey: fe,
140
- reload: pe,
141
- getAutoCreateKey: de,
142
- updateTableData: ge
143
- } = mt(
115
+ const { getLoading: E, setLoading: H } = pt(a), {
116
+ getPaginationInfo: B,
117
+ getPagination: Z,
118
+ setPagination: _,
119
+ setShowPagination: ee,
120
+ getShowPagination: te
121
+ } = mt(a), {
122
+ getRowSelection: oe,
123
+ getRowSelectionRef: A,
124
+ getSelectRows: ae,
125
+ setSelectedRows: ne,
126
+ clearSelectedRowKeys: g,
127
+ getSelectRowKeys: v,
128
+ deleteSelectRowByKey: re,
129
+ setSelectedRowKeys: I
130
+ } = ft(a, w, l), {
131
+ handleTableChange: le,
132
+ getDataSourceRef: c,
133
+ getDataSource: se,
134
+ getRawDataSource: ie,
135
+ setTableData: ce,
136
+ updateTableDataRecord: me,
137
+ deleteTableDataRecord: ue,
138
+ insertTableDataRecord: de,
139
+ findTableDataRecord: pe,
140
+ fetch: fe,
141
+ getRowKey: ge,
142
+ reload: he,
143
+ getAutoCreateKey: Se,
144
+ updateTableData: Ce
145
+ } = dt(
144
146
  a,
145
147
  {
146
- tableData: y,
147
- getPaginationInfo: T,
148
- setLoading: K,
149
- setPagination: E,
150
- getFieldsValue: v.getFieldsValue,
151
- clearSelectedRowKeys: p
148
+ tableData: w,
149
+ getPaginationInfo: B,
150
+ setLoading: H,
151
+ setPagination: _,
152
+ getFieldsValue: k.getFieldsValue,
153
+ clearSelectedRowKeys: g
152
154
  },
153
- r
155
+ l
154
156
  );
155
- function he(t, n, o, m) {
156
- ae(t, n, o), r("change", t, n, o);
157
+ function ye(t, n, o, u) {
158
+ le(t, n, o), l("change", t, n, o);
157
159
  const { onChange: P } = e(a);
158
- P && nt(P) && P(t, n, o, m);
160
+ P && lt(P) && P(t, n, o, u);
159
161
  }
160
162
  const {
161
- getViewColumns: Se,
162
- getColumns: Ce,
163
- setCacheColumnsByField: be,
164
- setCacheColumns: ye,
165
- setColumnWidth: we,
166
- setColumns: Re,
167
- getColumnsRef: Fe,
168
- getCacheColumns: Te
169
- } = ct(a, T), { getScrollRef: A, redoHeight: I } = pt(
163
+ getViewColumns: be,
164
+ getColumns: we,
165
+ setCacheColumnsByField: Re,
166
+ setCacheColumns: Fe,
167
+ setColumnWidth: Te,
168
+ setColumns: Be,
169
+ getColumnsRef: ve,
170
+ getCacheColumns: Pe
171
+ } = ut(a, B), { getScrollRef: N, redoHeight: $ } = gt(
170
172
  a,
171
173
  s,
172
- Fe,
173
- H,
174
- i,
175
- w,
176
- z
177
- ), { scrollTo: Be } = dt(s, i), { customRow: Pe } = gt(a, {
178
- setSelectedRowKeys: _,
179
- getSelectRowKeys: B,
180
- clearSelectedRowKeys: p,
181
- getAutoCreateKey: de,
182
- emit: r
183
- }), { getRowClassName: De } = ht(a, F()), {
184
- getExpandOption: xe,
185
- expandAll: ze,
186
- expandRows: ve,
187
- collapseRows: ke,
188
- collapseAll: Ke,
189
- handleTableExpand: Ee
190
- } = Ct(a, y, r), He = {
174
+ ve,
175
+ A,
176
+ c,
177
+ R,
178
+ K
179
+ ), { scrollTo: De } = ht(s, c), { customRow: ze } = St(a, {
180
+ setSelectedRowKeys: I,
181
+ getSelectRowKeys: v,
182
+ clearSelectedRowKeys: g,
183
+ getAutoCreateKey: Se,
184
+ emit: l
185
+ }), { getRowClassName: xe } = Ct(a, i()), {
186
+ getExpandOption: Ke,
187
+ expandAll: ke,
188
+ expandRows: Ee,
189
+ collapseRows: He,
190
+ collapseAll: _e,
191
+ handleTableExpand: Ae
192
+ } = bt(a, w, l), Ie = {
191
193
  onColumnsChange: (t) => {
192
194
  var n, o;
193
- r("columns-change", t), (o = (n = e(a)).onColumnsChange) == null || o.call(n, t);
195
+ l("columns-change", t), (o = (n = e(a)).onColumnsChange) == null || o.call(n, t);
194
196
  }
195
- }, _e = {
196
- clearSelectedRowKeys: p,
197
- getSelectRowKeys: B
198
- }, { getHeaderProps: Ae } = St(a, x, He, _e), { getFooterProps: Ie } = yt(
197
+ }, Ne = {
198
+ clearSelectedRowKeys: g,
199
+ getSelectRowKeys: v
200
+ }, { getHeaderProps: $e } = yt(a, x, Ie, Ne), { getFooterProps: Oe } = Rt(
199
201
  a,
200
- A,
202
+ N,
201
203
  s,
202
- i
204
+ c
203
205
  ), {
204
- getFormProps: Ne,
205
- replaceFormSlotKey: $e,
206
- getFormSlotKeys: Oe,
207
- handleSearchInfoChange: Ve
208
- } = wt(a, x, ue, k), c = g(() => {
209
- const t = e(i);
206
+ getFormProps: Ve,
207
+ replaceFormSlotKey: Le,
208
+ getFormSlotKeys: We,
209
+ handleSearchInfoChange: je
210
+ } = Ft(a, x, fe, E), m = p(() => {
211
+ const t = e(c);
210
212
  let n = {
211
- ...D,
212
- customRow: Pe,
213
+ ...z,
214
+ customRow: ze,
213
215
  ...e(a),
214
- ...e(Ae),
215
- scroll: e(A),
216
- loading: e(k),
216
+ ...e($e),
217
+ scroll: e(N),
218
+ loading: e(E),
217
219
  tableLayout: "fixed",
218
- rowSelection: e(H),
219
- rowKey: e(fe),
220
- columns: N(e(Se)),
221
- pagination: N(e(T)),
220
+ rowSelection: e(A),
221
+ rowKey: e(ge),
222
+ columns: O(e(be)),
223
+ pagination: O(e(B)),
222
224
  dataSource: t,
223
- footer: e(Ie),
224
- ...e(xe)
225
+ footer: e(Oe),
226
+ ...e(Ke)
225
227
  };
226
- return n = at(n, ["class", "style", "onChange"]), n;
227
- }), Le = g(() => {
228
- const t = e(c);
228
+ return n = rt(n, ["class", "style", "onChange"]), n;
229
+ }), Me = p(() => {
230
+ const t = e(m);
229
231
  return [
230
- F(),
231
- D.class,
232
+ i(),
233
+ z.class,
232
234
  {
233
- [F("form-container")]: t.useSearchForm,
234
- [q("inset")]: t.inset
235
+ [U("inset")]: t.inset,
236
+ [i("no-divide")]: T.value === 0
235
237
  }
236
238
  ];
237
- }), We = g(() => {
239
+ }), Ge = p(() => {
238
240
  const { emptyDataIsShowTable: t, useSearchForm: n } = e(a);
239
- return t || !n ? !0 : !!e(i).length;
241
+ return t || !n ? !0 : !!e(c).length;
240
242
  });
241
- function je(t) {
242
- R.value = { ...e(R), ...t };
243
+ function qe(t) {
244
+ F.value = { ...e(F), ...t };
243
245
  }
244
- const d = {
245
- reload: pe,
246
- getSelectRows: ee,
247
- setSelectedRows: te,
248
- clearSelectedRowKeys: p,
249
- getSelectRowKeys: B,
250
- deleteSelectRowByKey: oe,
251
- setPagination: E,
252
- setTableData: le,
253
- updateTableDataRecord: se,
254
- deleteTableDataRecord: ie,
255
- insertTableDataRecord: ce,
256
- findTableDataRecord: me,
257
- redoHeight: I,
258
- setSelectedRowKeys: _,
259
- setColumns: Re,
260
- setLoading: K,
261
- getDataSource: ne,
262
- getRawDataSource: re,
263
- setProps: je,
264
- getRowSelection: Z,
265
- getPaginationRef: U,
266
- getColumns: Ce,
267
- getCacheColumns: Te,
268
- emit: r,
269
- updateTableData: ge,
270
- setShowPagination: X,
271
- getShowPagination: Y,
272
- setCacheColumnsByField: be,
273
- expandAll: ze,
274
- collapseAll: Ke,
275
- expandRows: ve,
276
- collapseRows: ke,
277
- scrollTo: Be,
278
- getSize: () => e(c).size,
279
- setCacheColumns: ye
246
+ const h = {
247
+ reload: he,
248
+ getSelectRows: ae,
249
+ setSelectedRows: ne,
250
+ clearSelectedRowKeys: g,
251
+ getSelectRowKeys: v,
252
+ deleteSelectRowByKey: re,
253
+ setPagination: _,
254
+ setTableData: ce,
255
+ updateTableDataRecord: me,
256
+ deleteTableDataRecord: ue,
257
+ insertTableDataRecord: de,
258
+ findTableDataRecord: pe,
259
+ redoHeight: $,
260
+ setSelectedRowKeys: I,
261
+ setColumns: Be,
262
+ setLoading: H,
263
+ getDataSource: se,
264
+ getRawDataSource: ie,
265
+ setProps: qe,
266
+ getRowSelection: oe,
267
+ getPaginationRef: Z,
268
+ getColumns: we,
269
+ getCacheColumns: Pe,
270
+ emit: l,
271
+ updateTableData: Ce,
272
+ setShowPagination: ee,
273
+ getShowPagination: te,
274
+ setCacheColumnsByField: Re,
275
+ expandAll: ke,
276
+ collapseAll: _e,
277
+ expandRows: Ee,
278
+ collapseRows: He,
279
+ scrollTo: De,
280
+ getSize: () => e(m).size,
281
+ setCacheColumns: Fe
280
282
  };
281
- return bt({ ...d, wrapRef: w, getBindValues: c }), r("register", d, v), G({ tableElRef: s, ...d }), (t, n) => ($(), Ue("div", {
283
+ return wt({ ...h, wrapRef: R, getBindValues: m }), l("register", h, k), J({ tableElRef: s, ...h }), (t, n) => (V(), L("div", {
282
284
  ref_key: "wrapRef",
283
- ref: w,
284
- class: Xe(Le.value)
285
+ ref: R,
286
+ class: W(Me.value)
285
287
  }, [
286
- c.value.useSearchForm ? ($(), Ye(e(rt), O({
288
+ m.value.useSearchForm ? (V(), L("div", {
287
289
  key: 0,
288
- ref_key: "formRef",
289
- ref: z,
290
- submitOnReset: ""
291
- }, e(Ne), {
292
- tableAction: d,
293
- onRegister: e(J),
294
- onSubmit: e(Ve),
295
- onAdvancedChange: e(I)
296
- }), V({ _: 2 }, [
297
- L(e(Oe), (o) => ({
298
- name: e($e)(o),
299
- fn: h((m) => [
300
- S(t.$slots, o, C(b(m || {})))
301
- ])
302
- }))
303
- ]), 1040, ["onRegister", "onSubmit", "onAdvancedChange"])) : Ze("", !0),
304
- et(W(e(ot), O({
290
+ class: W([
291
+ e(i)("form-container"),
292
+ T.value === 0 ? e(i)("form-container-no-divide") : ""
293
+ ]),
294
+ style: Ze({ marginBottom: T.value + "px" })
295
+ }, [
296
+ D(e(st), j({
297
+ ref_key: "formRef",
298
+ ref: K,
299
+ submitOnReset: ""
300
+ }, e(Ve), {
301
+ tableAction: h,
302
+ onRegister: e(X),
303
+ onSubmit: e(je),
304
+ onAdvancedChange: e($)
305
+ }), M({ _: 2 }, [
306
+ G(e(We), (o) => ({
307
+ name: e(Le)(o),
308
+ fn: S((u) => [
309
+ C(t.$slots, o, y(b(u || {})))
310
+ ])
311
+ }))
312
+ ]), 1040, ["onRegister", "onSubmit", "onAdvancedChange"])
313
+ ], 6)) : et("", !0),
314
+ tt(D(e(at), j({
305
315
  ref_key: "tableElRef",
306
316
  ref: s
307
- }, c.value, {
308
- rowClassName: e(De),
309
- onChange: he,
310
- onResizeColumn: e(we),
311
- onExpand: e(Ee)
312
- }), V({
313
- headerCell: h(({ column: o }) => [
314
- S(t.$slots, "headerCell", C(b({ column: o })), () => [
315
- W(st, { column: o }, null, 8, ["column"])
317
+ }, m.value, {
318
+ rowClassName: e(xe),
319
+ onChange: ye,
320
+ onResizeColumn: e(Te),
321
+ onExpand: e(Ae)
322
+ }), M({
323
+ headerCell: S(({ column: o }) => [
324
+ C(t.$slots, "headerCell", y(b({ column: o })), () => [
325
+ D(ct, { column: o }, null, 8, ["column"])
316
326
  ])
317
327
  ]),
318
- bodyCell: h((o) => [
319
- S(t.$slots, "bodyCell", C(b(o || {})))
328
+ bodyCell: S((o) => [
329
+ C(t.$slots, "bodyCell", y(b(o || {})))
320
330
  ]),
321
331
  _: 2
322
332
  }, [
323
- L(Object.keys(t.$slots), (o) => ({
333
+ G(Object.keys(t.$slots), (o) => ({
324
334
  name: o,
325
- fn: h((m) => [
326
- S(t.$slots, o, C(b(m || {})))
335
+ fn: S((u) => [
336
+ C(t.$slots, o, y(b(u || {})))
327
337
  ])
328
338
  }))
329
339
  ]), 1040, ["rowClassName", "onResizeColumn", "onExpand"]), [
330
- [tt, We.value]
340
+ [ot, Ge.value]
331
341
  ])
332
342
  ], 2));
333
343
  }
334
344
  });
335
345
  export {
336
- Zt as default
346
+ ao as default
337
347
  };
@@ -1,20 +1,25 @@
1
1
  .aplus-pro-table {
2
2
  max-width: 100%;
3
3
  height: 100%;
4
+ padding: 16px;
5
+ }
6
+ .aplus-pro-table-no-divide .ant-table-wrapper {
7
+ border-top-left-radius: 0 !important;
8
+ border-top-right-radius: 0 !important;
4
9
  }
5
10
  .aplus-pro-table-row__striped td {
6
11
  background-color: #fafafa !important;
7
12
  }
8
- .aplus-pro-table-form-container {
9
- padding: 16px;
10
- }
11
13
  .aplus-pro-table-form-container .ant-form {
12
14
  width: 100%;
13
- margin-bottom: 16px;
14
- padding: 16px 16px 4px;
15
+ padding: 16px 16px 8px;
15
16
  border-radius: 2px;
16
17
  background-color: #fff;
17
18
  }
19
+ .aplus-pro-table-form-container-no-divide .ant-form {
20
+ border-bottom-left-radius: 0 !important;
21
+ border-bottom-right-radius: 0 !important;
22
+ }
18
23
  .aplus-pro-table .ant-table-cell .ant-tag {
19
24
  margin-right: 0;
20
25
  }
@@ -1,13 +1,14 @@
1
1
  import { PromptDialogProps } from './interface';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
3
 
3
- declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<PromptDialogProps>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<PromptDialogProps>>>, {}, {}>;
4
+ declare const _default: DefineComponent<__VLS_TypePropsToRuntimeProps<PromptDialogProps>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToRuntimeProps<PromptDialogProps>>>, {}, {}>;
4
5
  export default _default;
5
6
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
6
7
  type __VLS_TypePropsToRuntimeProps<T> = {
7
8
  [K in keyof T]-?: {} extends Pick<T, K> ? {
8
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
9
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
9
10
  } : {
10
- type: import('vue').PropType<T[K]>;
11
+ type: PropType<T[K]>;
11
12
  required: true;
12
13
  };
13
14
  };
@@ -1,8 +1,8 @@
1
- import { VNode } from 'vue';
1
+ import { VNode, RendererNode, RendererElement } from 'vue';
2
2
  import { PromptProps } from './interface';
3
3
 
4
4
  export declare function createPrompt(props: PromptProps): {
5
- vm: VNode<import('vue').RendererNode, import('vue').RendererElement, {
5
+ vm: VNode< RendererNode, RendererElement, {
6
6
  [key: string]: any;
7
7
  }>;
8
8
  close: () => void;
@@ -1,11 +1,12 @@
1
+ import { DefineComponent, VNode, RendererNode, RendererElement, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
1
2
 
2
- declare const _default: import('vue').DefineComponent<{
3
+ declare const _default: DefineComponent<{
3
4
  vertical: BooleanConstructor;
4
5
  size: StringConstructor;
5
6
  move: NumberConstructor;
6
- }, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
7
+ }, () => VNode<RendererNode, RendererElement, {
7
8
  [key: string]: any;
8
- }>, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
9
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
9
10
  vertical: BooleanConstructor;
10
11
  size: StringConstructor;
11
12
  move: NumberConstructor;