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

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 (289) hide show
  1. package/es/index.mjs +74 -72
  2. package/es/src/ap-field/select/index.vue.d.ts +2 -2
  3. package/es/src/ap-field/tree-select/index.vue.d.ts +3 -3
  4. package/es/src/ap-form/drawer-form/index.vue.d.ts +10 -10
  5. package/es/src/ap-form/interface.d.ts +31 -1
  6. package/es/src/ap-form/item/index.vue.d.ts +22 -22
  7. package/es/src/ap-form/items/checkbox/index.vue.d.ts +3 -3
  8. package/es/src/ap-form/items/date/index.vue.d.ts +3 -3
  9. package/es/src/ap-form/items/date-range/index.vue.d.ts +3 -3
  10. package/es/src/ap-form/items/number/index.vue.d.ts +13 -13
  11. package/es/src/ap-form/items/radio/index.vue.d.ts +3 -3
  12. package/es/src/ap-form/items/select/index.vue.d.ts +31 -31
  13. package/es/src/ap-form/items/switch/index.vue.d.ts +3 -3
  14. package/es/src/ap-form/items/text/index.vue.d.ts +15 -15
  15. package/es/src/ap-form/items/text/password.vue.d.ts +15 -15
  16. package/es/src/ap-form/items/text-area/index.vue.d.ts +3 -3
  17. package/es/src/ap-form/items/tree-select/index.vue.d.ts +35 -35
  18. package/es/src/ap-form/modal-form/index.vue.d.ts +10 -10
  19. package/es/src/ap-form/render/item.vue.d.ts +2 -2
  20. package/es/src/ap-form/search-form/components/popover-filter.vue.d.ts +4 -0
  21. package/es/src/ap-form/search-form/components/popover-filter.vue.mjs +4 -0
  22. package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +102 -0
  23. package/es/src/ap-form/search-form/components/popover-sorter/index.vue.d.ts +4 -0
  24. package/es/src/ap-form/search-form/components/popover-sorter/index.vue.mjs +4 -0
  25. package/es/src/ap-form/search-form/components/popover-sorter/index.vue2.mjs +128 -0
  26. package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue.d.ts +6 -0
  27. package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue.mjs +4 -0
  28. package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.mjs +39 -0
  29. package/es/src/ap-form/search-form/hooks/use-count-per-row.d.ts +3 -0
  30. package/es/src/ap-form/search-form/hooks/use-count-per-row.mjs +17 -0
  31. package/es/src/ap-form/search-form/index.vue.d.ts +14 -16
  32. package/es/src/ap-form/search-form/index.vue.mjs +127 -127
  33. package/es/src/ap-grid/editable/form-item.vue.mjs +62 -56
  34. package/es/src/ap-grid/editable/index.vue.mjs +82 -76
  35. package/es/src/ap-grid/index.vue.mjs +97 -93
  36. package/es/src/ap-info-layout/ApInfoLayout.vue.mjs +21 -16
  37. package/es/src/ap-list/index.vue.mjs +145 -138
  38. package/es/src/ap-list/interface.d.ts +4 -0
  39. package/es/src/ap-table/ap-table.vue2.mjs +108 -104
  40. package/es/src/ap-table/constants.d.ts +161 -161
  41. package/es/src/ap-table/context.d.ts +5 -0
  42. package/es/src/ap-table/context.mjs +13 -5
  43. package/es/src/ap-table/hooks/use-table-paging-ng.mjs +28 -30
  44. package/es/src/ap-table/utils.d.ts +147 -147
  45. package/es/src/ap-upload/apUpload.vue.d.ts +8 -8
  46. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +14 -1
  47. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +65 -51
  48. package/es/src/business/ap-batch-action-group/index.d.ts +3 -1
  49. package/es/src/business/ap-size-input/ApSizeInput.d.ts +1 -1
  50. package/es/src/business/ap-size-input/index.d.ts +3 -3
  51. package/es/src/business/ap-table-modal/index.d.ts +15 -15
  52. package/es/src/business/ap-table-modal/table-modal.vue.d.ts +5 -5
  53. package/es/src/business/ap-view/ap-view.vue.d.ts +6 -0
  54. package/es/src/business/ap-view/ap-view.vue.mjs +4 -0
  55. package/es/src/business/ap-view/ap-view.vue2.mjs +171 -0
  56. package/es/src/business/ap-view/components/main-button-content.vue.d.ts +831 -0
  57. package/es/src/business/ap-view/components/main-button-content.vue.mjs +4 -0
  58. package/es/src/business/ap-view/components/main-button-content.vue2.mjs +175 -0
  59. package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +832 -0
  60. package/es/src/business/ap-view/components/menu-list-content.vue.mjs +4 -0
  61. package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +156 -0
  62. package/es/src/business/ap-view/hooks/use-view-provide.d.ts +14 -0
  63. package/es/src/business/ap-view/hooks/use-view-provide.mjs +8 -0
  64. package/es/src/business/ap-view/icons/line-delete.vue.d.ts +3 -0
  65. package/es/src/business/ap-view/icons/line-delete.vue.mjs +29 -0
  66. package/es/src/business/ap-view/icons/line-down.vue.d.ts +3 -0
  67. package/es/src/business/ap-view/icons/line-down.vue.mjs +29 -0
  68. package/es/src/business/ap-view/icons/line-eye.vue.d.ts +3 -0
  69. package/es/src/business/ap-view/icons/line-eye.vue.mjs +29 -0
  70. package/es/src/business/ap-view/index.d.ts +27 -0
  71. package/es/src/business/ap-view/index.mjs +8 -0
  72. package/es/src/business/ap-view/interface.d.ts +54 -0
  73. package/es/src/business/ap-view/interface.mjs +1 -0
  74. package/es/src/business/ap-view/style/css.d.ts +0 -0
  75. package/es/src/business/ap-view/style/css.js +1 -0
  76. package/es/src/business/ap-view/style/index.d.ts +0 -0
  77. package/es/src/business/ap-view/style/index.js +1 -0
  78. package/es/src/business/ap-view/utils/enum.d.ts +1 -0
  79. package/es/src/business/ap-view/utils/enum.mjs +4 -0
  80. package/es/src/business/ap-view/utils/uuid.d.ts +5 -0
  81. package/es/src/business/ap-view/utils/uuid.mjs +22 -0
  82. package/es/src/business/batch-input-group/form-item.vue.d.ts +3 -3
  83. package/es/src/business/batch-input-group/index.vue.d.ts +6 -6
  84. package/es/src/business/index.d.ts +1 -0
  85. package/es/src/business/index.mjs +25 -23
  86. package/es/src/config-provider/config-provider-props.d.ts +5 -0
  87. package/es/src/config-provider/config-provider-props.mjs +4 -0
  88. package/es/src/config-provider/config-provider.d.ts +25 -1
  89. package/es/src/config-provider/config-provider.mjs +21 -20
  90. package/es/src/config-provider/css-var.d.ts +14 -0
  91. package/es/src/config-provider/css-var.mjs +40 -12
  92. package/es/src/config-provider/hooks/use-global-config.d.ts +5 -0
  93. package/es/src/config-provider/index.d.ts +89 -3
  94. package/es/src/full-screen/interface.d.ts +1 -1
  95. package/es/src/index.mjs +61 -59
  96. package/es/src/locale/lang/en.mjs +22 -1
  97. package/es/src/locale/lang/zh-cn.mjs +22 -1
  98. package/es/src/path-map.mjs +2 -1
  99. package/es/src/utils/config-provider-preset.d.ts +4 -4
  100. package/es/src/work-order-modal/work-order-modal.vue.d.ts +6 -6
  101. package/lib/index.js +1 -1
  102. package/lib/src/ap-field/select/index.vue.d.ts +2 -2
  103. package/lib/src/ap-field/tree-select/index.vue.d.ts +3 -3
  104. package/lib/src/ap-form/drawer-form/index.vue.d.ts +10 -10
  105. package/lib/src/ap-form/interface.d.ts +31 -1
  106. package/lib/src/ap-form/item/index.vue.d.ts +22 -22
  107. package/lib/src/ap-form/items/checkbox/index.vue.d.ts +3 -3
  108. package/lib/src/ap-form/items/date/index.vue.d.ts +3 -3
  109. package/lib/src/ap-form/items/date-range/index.vue.d.ts +3 -3
  110. package/lib/src/ap-form/items/number/index.vue.d.ts +13 -13
  111. package/lib/src/ap-form/items/radio/index.vue.d.ts +3 -3
  112. package/lib/src/ap-form/items/select/index.vue.d.ts +31 -31
  113. package/lib/src/ap-form/items/switch/index.vue.d.ts +3 -3
  114. package/lib/src/ap-form/items/text/index.vue.d.ts +15 -15
  115. package/lib/src/ap-form/items/text/password.vue.d.ts +15 -15
  116. package/lib/src/ap-form/items/text-area/index.vue.d.ts +3 -3
  117. package/lib/src/ap-form/items/tree-select/index.vue.d.ts +35 -35
  118. package/lib/src/ap-form/modal-form/index.vue.d.ts +10 -10
  119. package/lib/src/ap-form/render/item.vue.d.ts +2 -2
  120. package/lib/src/ap-form/search-form/components/popover-filter.vue.d.ts +4 -0
  121. package/lib/src/ap-form/search-form/components/popover-filter.vue.js +1 -0
  122. package/lib/src/ap-form/search-form/components/popover-filter.vue2.js +1 -0
  123. package/lib/src/ap-form/search-form/components/popover-sorter/index.vue.d.ts +4 -0
  124. package/lib/src/ap-form/search-form/components/popover-sorter/index.vue.js +1 -0
  125. package/lib/src/ap-form/search-form/components/popover-sorter/index.vue2.js +1 -0
  126. package/lib/src/ap-form/search-form/components/popover-sorter/sortable-item.vue.d.ts +6 -0
  127. package/lib/src/ap-form/search-form/components/popover-sorter/sortable-item.vue.js +1 -0
  128. package/lib/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.js +1 -0
  129. package/lib/src/ap-form/search-form/hooks/use-count-per-row.d.ts +3 -0
  130. package/lib/src/ap-form/search-form/hooks/use-count-per-row.js +1 -0
  131. package/lib/src/ap-form/search-form/index.vue.d.ts +14 -16
  132. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  133. package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
  134. package/lib/src/ap-grid/editable/index.vue.js +1 -1
  135. package/lib/src/ap-grid/index.vue.js +1 -1
  136. package/lib/src/ap-info-layout/ApInfoLayout.vue.js +1 -1
  137. package/lib/src/ap-list/index.vue.js +1 -1
  138. package/lib/src/ap-list/interface.d.ts +4 -0
  139. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  140. package/lib/src/ap-table/constants.d.ts +161 -161
  141. package/lib/src/ap-table/context.d.ts +5 -0
  142. package/lib/src/ap-table/context.js +1 -1
  143. package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
  144. package/lib/src/ap-table/utils.d.ts +147 -147
  145. package/lib/src/ap-upload/apUpload.vue.d.ts +8 -8
  146. package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +14 -1
  147. package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
  148. package/lib/src/business/ap-batch-action-group/index.d.ts +3 -1
  149. package/lib/src/business/ap-size-input/ApSizeInput.d.ts +1 -1
  150. package/lib/src/business/ap-size-input/index.d.ts +3 -3
  151. package/lib/src/business/ap-table-modal/index.d.ts +15 -15
  152. package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +5 -5
  153. package/lib/src/business/ap-view/ap-view.vue.d.ts +6 -0
  154. package/lib/src/business/ap-view/ap-view.vue.js +1 -0
  155. package/lib/src/business/ap-view/ap-view.vue2.js +1 -0
  156. package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +831 -0
  157. package/lib/src/business/ap-view/components/main-button-content.vue.js +1 -0
  158. package/lib/src/business/ap-view/components/main-button-content.vue2.js +1 -0
  159. package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +832 -0
  160. package/lib/src/business/ap-view/components/menu-list-content.vue.js +1 -0
  161. package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -0
  162. package/lib/src/business/ap-view/hooks/use-view-provide.d.ts +14 -0
  163. package/lib/src/business/ap-view/hooks/use-view-provide.js +1 -0
  164. package/lib/src/business/ap-view/icons/line-delete.vue.d.ts +3 -0
  165. package/lib/src/business/ap-view/icons/line-delete.vue.js +1 -0
  166. package/lib/src/business/ap-view/icons/line-down.vue.d.ts +3 -0
  167. package/lib/src/business/ap-view/icons/line-down.vue.js +1 -0
  168. package/lib/src/business/ap-view/icons/line-eye.vue.d.ts +3 -0
  169. package/lib/src/business/ap-view/icons/line-eye.vue.js +1 -0
  170. package/lib/src/business/ap-view/index.d.ts +27 -0
  171. package/lib/src/business/ap-view/index.js +1 -0
  172. package/lib/src/business/ap-view/interface.d.ts +54 -0
  173. package/lib/src/business/ap-view/interface.js +1 -0
  174. package/lib/src/business/ap-view/style/css.cjs +1 -0
  175. package/lib/src/business/ap-view/style/css.d.ts +0 -0
  176. package/lib/src/business/ap-view/style/index.cjs +1 -0
  177. package/lib/src/business/ap-view/style/index.d.ts +0 -0
  178. package/lib/src/business/ap-view/utils/enum.d.ts +1 -0
  179. package/lib/src/business/ap-view/utils/enum.js +1 -0
  180. package/lib/src/business/ap-view/utils/uuid.d.ts +5 -0
  181. package/lib/src/business/ap-view/utils/uuid.js +1 -0
  182. package/lib/src/business/batch-input-group/form-item.vue.d.ts +3 -3
  183. package/lib/src/business/batch-input-group/index.vue.d.ts +6 -6
  184. package/lib/src/business/index.d.ts +1 -0
  185. package/lib/src/business/index.js +1 -1
  186. package/lib/src/config-provider/config-provider-props.d.ts +5 -0
  187. package/lib/src/config-provider/config-provider-props.js +1 -1
  188. package/lib/src/config-provider/config-provider.d.ts +25 -1
  189. package/lib/src/config-provider/config-provider.js +1 -1
  190. package/lib/src/config-provider/css-var.d.ts +14 -0
  191. package/lib/src/config-provider/css-var.js +1 -1
  192. package/lib/src/config-provider/hooks/use-global-config.d.ts +5 -0
  193. package/lib/src/config-provider/index.d.ts +89 -3
  194. package/lib/src/full-screen/interface.d.ts +1 -1
  195. package/lib/src/index.js +1 -1
  196. package/lib/src/locale/lang/en.js +1 -1
  197. package/lib/src/locale/lang/zh-cn.js +1 -1
  198. package/lib/src/path-map.js +1 -1
  199. package/lib/src/utils/config-provider-preset.d.ts +4 -4
  200. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +6 -6
  201. package/package.json +7 -7
  202. package/theme/ap-action/item-dropdown.css +28 -0
  203. package/theme/ap-action/item-dropdown.less +1 -1
  204. package/theme/ap-action/item.css +35 -1
  205. package/theme/ap-action/item.less +1 -2
  206. package/theme/ap-appendix/ap-appendix.css +28 -0
  207. package/theme/ap-attachment/ap-attachment.css +28 -0
  208. package/theme/ap-batch-action/ap-batch-action.css +28 -0
  209. package/theme/ap-button/ap-button.css +28 -0
  210. package/theme/ap-card/ap-card.css +28 -0
  211. package/theme/ap-descriptions/ap-descriptions.css +28 -0
  212. package/theme/ap-download/ap-download.css +28 -0
  213. package/theme/ap-expand-alert/ap-expand-alert.css +28 -0
  214. package/theme/ap-field/checkbox.css +28 -0
  215. package/theme/ap-field/index.css +28 -0
  216. package/theme/ap-field/number.css +28 -0
  217. package/theme/ap-field/radio.css +28 -0
  218. package/theme/ap-field/text-area.css +28 -0
  219. package/theme/ap-form/ap-form-item-group.css +28 -0
  220. package/theme/ap-form/ap-form-item.css +28 -0
  221. package/theme/ap-form/drawer-form.css +28 -0
  222. package/theme/ap-form/index.css +169 -0
  223. package/theme/ap-form/item-text-group.css +28 -0
  224. package/theme/ap-form/item-text.css +28 -0
  225. package/theme/ap-form/modal-form.css +28 -0
  226. package/theme/ap-form/search-form-sorter.css +120 -0
  227. package/theme/ap-form/search-form-sorter.less +71 -0
  228. package/theme/ap-form/search-form.css +169 -0
  229. package/theme/ap-form/search-form.less +56 -0
  230. package/theme/ap-grid/editable.css +28 -0
  231. package/theme/ap-grid/index.css +176 -1
  232. package/theme/ap-group-search/ap-extension-select.css +28 -0
  233. package/theme/ap-group-search/ap-group-search.css +28 -0
  234. package/theme/ap-group-search/ap-popover-select.css +28 -0
  235. package/theme/ap-image/ap-image.css +28 -0
  236. package/theme/ap-input-radio/ap-input-radio.css +28 -0
  237. package/theme/ap-label/ap-label.css +28 -0
  238. package/theme/ap-ladder/ap-ladder.css +28 -0
  239. package/theme/ap-layout/ap-info-layout.css +28 -0
  240. package/theme/ap-list/index.css +66 -4
  241. package/theme/ap-list/index.less +41 -3
  242. package/theme/ap-product-info/ap-product-info.css +28 -0
  243. package/theme/ap-select-layout/ap-select-layout.css +28 -0
  244. package/theme/ap-size-input/ap-size-input.css +28 -0
  245. package/theme/ap-status/ap-status.css +28 -0
  246. package/theme/ap-summary/index.css +28 -0
  247. package/theme/ap-table/ap-table-index.css +28 -0
  248. package/theme/ap-table/ap-table-paragraph-ellipsis.css +28 -0
  249. package/theme/ap-table/ap-table.css +190 -13
  250. package/theme/ap-table/ap-table.less +0 -1
  251. package/theme/ap-table/setting/index.css +42 -0
  252. package/theme/ap-table/setting/modal.css +36 -0
  253. package/theme/ap-table/setting/modal.less +1 -0
  254. package/theme/ap-table/setting/select-group.css +28 -0
  255. package/theme/ap-table/setting/sortable-item-meta.css +28 -0
  256. package/theme/ap-table/setting/sortable-item.css +28 -0
  257. package/theme/ap-table/setting/sorter.css +34 -0
  258. package/theme/ap-table/setting/sorter.less +1 -2
  259. package/theme/ap-table-modal/index.css +190 -13
  260. package/theme/ap-tag/ap-tag-group.css +28 -0
  261. package/theme/ap-tag/ap-tag.css +28 -0
  262. package/theme/ap-title/ap-title.css +28 -0
  263. package/theme/ap-upload/index.css +28 -0
  264. package/theme/ap-upload/multiple-file.css +28 -0
  265. package/theme/ap-upload/picture.css +28 -0
  266. package/theme/ap-upload/single-file.css +28 -0
  267. package/theme/ap-upload/upload.css +28 -0
  268. package/theme/ap-upload-single/index.css +28 -0
  269. package/theme/ap-view/ap-view.css +149 -0
  270. package/theme/ap-view/ap-view.less +128 -0
  271. package/theme/batch-input-group/index.css +28 -0
  272. package/theme/batch-input-group/popover-input.css +28 -0
  273. package/theme/check-card/index.css +49 -1
  274. package/theme/check-card/index.less +3 -4
  275. package/theme/editable-table/index.css +176 -1
  276. package/theme/full-screen/index.css +28 -0
  277. package/theme/index.css +378 -19
  278. package/theme/index.less +1 -0
  279. package/theme/mask/index.css +28 -0
  280. package/theme/mixins/config.less +1 -0
  281. package/theme/mixins/mixins.css +28 -0
  282. package/theme/mixins/mixins.less +35 -0
  283. package/theme/scroll-bar/index.css +28 -0
  284. package/theme/scroll-view/index.css +28 -0
  285. package/theme/splitter/index.css +28 -0
  286. package/theme/text/group.css +28 -0
  287. package/theme/text/index.css +36 -1
  288. package/theme/text/index.less +1 -1
  289. package/theme/work-order-modal/index.css +28 -0
@@ -1,6 +1,7 @@
1
1
  import { ColumnsType } from '@aplus-frontend/antdv/es/table';
2
2
  import { ComputedRef, InjectionKey } from 'vue';
3
3
  import { ApTableContextRenderConfig, ApTableProps } from './interface';
4
+ import { Recordable } from '../type';
4
5
  type TableSize = ApTableProps['size'];
5
6
  type ApTableContextProps<RecordType> = {
6
7
  /**
@@ -26,6 +27,10 @@ type ApTableContextProps<RecordType> = {
26
27
  updateSize?: (nextSize: TableSize) => void;
27
28
  dataSource?: ComputedRef<RecordType[]>;
28
29
  renderConfig?: ComputedRef<ApTableContextRenderConfig>;
30
+ getSearchFormValues?: (transform?: boolean) => (Partial<Recordable> & Recordable<any>) | undefined;
31
+ setSearchFormValues?: (values: Partial<Recordable>) => void;
32
+ submit?: () => void;
33
+ reset?: () => void;
29
34
  };
30
35
  export declare const ApTableContextKey: InjectionKey<ApTableContextProps<any>>;
31
36
  export declare function useProvideApTable<ModelType>(state: ApTableContextProps<ModelType>): void;
@@ -1,9 +1,9 @@
1
- import { provide as n, inject as i, computed as e } from "vue";
1
+ import { provide as r, inject as i, computed as e } from "vue";
2
2
  const o = Symbol("apTableContextKey");
3
3
  function u(t) {
4
- n(o, t);
4
+ r(o, t);
5
5
  }
6
- function p() {
6
+ function a() {
7
7
  return i(o, {
8
8
  columns: e(() => []),
9
9
  updateColumns: () => {
@@ -12,11 +12,19 @@ function p() {
12
12
  updateSize: () => {
13
13
  },
14
14
  dataSource: void 0,
15
- renderConfig: void 0
15
+ renderConfig: void 0,
16
+ getSearchFormValues: () => {
17
+ },
18
+ setSearchFormValues: () => {
19
+ },
20
+ submit: () => {
21
+ },
22
+ reset: () => {
23
+ }
16
24
  });
17
25
  }
18
26
  export {
19
27
  o as ApTableContextKey,
20
- p as useInjectApTable,
28
+ a as useInjectApTable,
21
29
  u as useProvideApTable
22
30
  };
@@ -27,16 +27,16 @@ const Ae = ({
27
27
  request: f,
28
28
  defaultParams: L = {},
29
29
  defaultData: v = [],
30
- formatParams: y,
31
- paramsValueTypeMap: O,
32
- resetFieldsIgnores: R,
30
+ formatParams: O,
31
+ paramsValueTypeMap: R,
32
+ resetFieldsIgnores: y,
33
33
  filterFields: J,
34
34
  sortFields: K,
35
35
  namespace: M = "ap-table",
36
36
  pagination: S
37
37
  }) => {
38
38
  let b = 0, i = {};
39
- const Q = Se(S), $ = (e) => y ? y(e) : e, z = ae(), c = j(ze(S)), {
39
+ const Q = Se(S), $ = (e) => O ? O(e) : e, z = ae(), c = j(ze(S)), {
40
40
  getColumnSFConfig: G,
41
41
  setSF: W,
42
42
  clearAll: Z,
@@ -46,7 +46,7 @@ const Ae = ({
46
46
  t: T
47
47
  } = me(), {
48
48
  b: P
49
- } = he(M), a = j({
49
+ } = he(M), o = j({
50
50
  total: v.length,
51
51
  records: v,
52
52
  loading: !1
@@ -56,32 +56,30 @@ const Ae = ({
56
56
  }, I = async (e) => {
57
57
  var r;
58
58
  const t = $(e), n = Date.now();
59
- b = n, a.loading = !0;
59
+ b = n, o.loading = !0;
60
60
  try {
61
- const o = await f({
61
+ const a = await f({
62
62
  ...m(L),
63
63
  ...t
64
64
  });
65
- b === n && (a.total = o.total || ((r = o.data) == null ? void 0 : r.length) || 0, a.records = [...o.data || []]);
65
+ b === n && (o.total = a.total || ((r = a.data) == null ? void 0 : r.length) || 0, o.records = [...a.data || []], o.loading = !1);
66
66
  } catch {
67
- b === n && (a.records = [], a.total = 0);
68
- } finally {
69
- a.loading = !1;
67
+ b === n && (o.records = [], o.total = 0, o.loading = !1);
70
68
  }
71
69
  }, V = (e) => {
72
70
  const t = {};
73
71
  return Object.entries(e).forEach(([n, r]) => {
74
- if (t[n] = r, O && r) {
75
- const o = O[n];
76
- o && (t[n] = le(o, r));
72
+ if (t[n] = r, R && r) {
73
+ const a = R[n];
74
+ a && (t[n] = le(a, r));
77
75
  }
78
76
  }), t;
79
77
  }, Y = async (e) => {
80
- var r, o, l, g, d;
78
+ var r, a, l, g, d;
81
79
  const t = w(), n = {};
82
80
  Object.entries(t).forEach(([p, F]) => {
83
- R && R.indexOf(p) > -1 && (n[p] = F);
84
- }), await ((o = (r = z.value) == null ? void 0 : r.apForm) == null ? void 0 : o.resetFields()), (d = (g = (l = z.value) == null ? void 0 : l.apForm) == null ? void 0 : g.setFieldsValue) == null || d.call(g, n), se(() => {
81
+ y && y.indexOf(p) > -1 && (n[p] = F);
82
+ }), await ((a = (r = z.value) == null ? void 0 : r.apForm) == null ? void 0 : a.resetFields()), (d = (g = (l = z.value) == null ? void 0 : l.apForm) == null ? void 0 : g.setFieldsValue) == null || d.call(g, n), se(() => {
85
83
  e == null || e();
86
84
  });
87
85
  }, C = (e) => {
@@ -113,7 +111,7 @@ const Ae = ({
113
111
  const {
114
112
  current: t,
115
113
  pageSize: n
116
- } = c, r = a.total - e, o = Math.ceil(r / n), l = t > o ? o : t;
114
+ } = c, r = o.total - e, a = Math.ceil(r / n), l = t > a ? a : t;
117
115
  k({
118
116
  current: l > 0 ? l : 1
119
117
  });
@@ -122,8 +120,8 @@ const Ae = ({
122
120
  var p, F;
123
121
  const r = w();
124
122
  c.current = e.current, c.pageSize = e.pageSize, W(t, n);
125
- const o = q(n) ? [...n] : [n], l = {};
126
- for (const u of o)
123
+ const a = q(n) ? [...n] : [n], l = {};
124
+ for (const u of a)
127
125
  (p = m(K)) != null && p.includes(u.columnKey || u.field) && u.order && (l[fe(u.columnKey || u.field)] = u.order);
128
126
  const g = {};
129
127
  for (const u of Object.keys(t))
@@ -158,16 +156,16 @@ const Ae = ({
158
156
  deep: !0
159
157
  });
160
158
  const ne = A(() => {
161
- if (a.total === 0)
159
+ if (o.total === 0)
162
160
  return "-";
163
161
  const {
164
162
  current: e,
165
163
  pageSize: t
166
164
  } = c;
167
- return `${e}/${Math.ceil(a.total / t)}`;
165
+ return `${e}/${Math.ceil(o.total / t)}`;
168
166
  });
169
167
  function re(e) {
170
- q(e) && (a.records = e, a.total = e.length);
168
+ q(e) && (o.records = e, o.total = e.length);
171
169
  }
172
170
  const oe = A(() => {
173
171
  const {
@@ -175,19 +173,19 @@ const Ae = ({
175
173
  showTotal: t,
176
174
  showQuickJumper: n,
177
175
  showSizeChanger: r,
178
- pageSizeOptions: o
176
+ pageSizeOptions: a
179
177
  } = Q;
180
178
  return {
181
- loading: a.loading,
179
+ loading: o.loading,
182
180
  pagination: {
183
181
  current: c.current,
184
182
  pageSize: c.pageSize,
185
- total: a.total,
183
+ total: o.total,
186
184
  showSizeChanger: N(r) ? r : !e,
187
185
  showQuickJumper: N(n) ? n : !e,
188
186
  showLessItems: e,
189
187
  size: "default",
190
- pageSizeOptions: pe(o) ? ["10", "20", "50", "100"] : o,
188
+ pageSizeOptions: pe(a) ? ["10", "20", "50", "100"] : a,
191
189
  showTotal: t ? (l) => x("span", {
192
190
  class: P("pagination-total-wrapper")
193
191
  }, [T("ap.apTable.pagination.totalLeftPrefix"), " ", x("span", {
@@ -199,7 +197,7 @@ const Ae = ({
199
197
  }, [m(ne)]), " ", T("ap.apTable.pagination.totalRightSuffix")])]) : void 0
200
198
  },
201
199
  onChange: _,
202
- dataSource: a.records
200
+ dataSource: o.records
203
201
  };
204
202
  });
205
203
  return {
@@ -208,12 +206,12 @@ const Ae = ({
208
206
  reset: ee,
209
207
  refresh: U,
210
208
  refreshByDelete: te,
211
- data: a,
209
+ data: o,
212
210
  current: c.current,
213
211
  pageSize: c.pageSize,
214
212
  handleTableChange: _,
215
213
  tableProps: oe,
216
- dataSource: A(() => a.records),
214
+ dataSource: A(() => o.records),
217
215
  setDataSource: re,
218
216
  getColumnSFConfig: G,
219
217
  sortedInfo: H,