@aplus-frontend/ui 0.3.8 → 0.3.9

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 (230) hide show
  1. package/es/src/ap-action/item/index.vue.d.ts +2 -1
  2. package/es/src/ap-action/item-dropdown/index.vue.d.ts +2 -1
  3. package/es/src/ap-action/item-modal/index.vue.d.ts +2 -1
  4. package/es/src/ap-action/item-popconfirm/index.vue.d.ts +2 -1
  5. package/es/src/ap-button/ap-action-button.vue.d.ts +4 -3
  6. package/es/src/ap-button/ap-action-button.vue.mjs +11 -11
  7. package/es/src/ap-button/ap-button.vue.d.ts +4 -3
  8. package/es/src/ap-button/ap-button.vue.mjs +36 -36
  9. package/es/src/ap-button/interface.d.ts +4 -0
  10. package/es/src/ap-descriptions/ap-descriptions.vue.d.ts +3 -2
  11. package/es/src/ap-descriptions/help-message/index.vue.d.ts +3 -5
  12. package/es/src/ap-download/ap-download.vue.d.ts +5 -3
  13. package/es/src/ap-field/date/index.vue.d.ts +2 -1
  14. package/es/src/ap-field/date-range/index.vue.d.ts +2 -1
  15. package/es/src/ap-field/number/index.vue.d.ts +2 -1
  16. package/es/src/ap-field/rate/index.vue.d.ts +2 -1
  17. package/es/src/ap-field/segmented/index.vue.d.ts +2 -1
  18. package/es/src/ap-field/select/index.vue.d.ts +2 -1
  19. package/es/src/ap-field/slider/index.vue.d.ts +2 -1
  20. package/es/src/ap-field/switch/index.vue.d.ts +2 -1
  21. package/es/src/ap-field/text/index.vue.d.ts +2 -1
  22. package/es/src/ap-field/text/password.vue.d.ts +2 -1
  23. package/es/src/ap-form/ap-form.vue.d.ts +6 -4
  24. package/es/src/ap-form/dependency/index.vue.d.ts +2 -1
  25. package/es/src/ap-form/drawer-form/index.vue.d.ts +3 -2
  26. package/es/src/ap-form/item/index.vue.d.ts +2 -1
  27. package/es/src/ap-form/item-group/index.vue.d.ts +2 -1
  28. package/es/src/ap-form/items/checkbox/index.vue.d.ts +2 -1
  29. package/es/src/ap-form/items/date/index.vue.d.ts +2 -1
  30. package/es/src/ap-form/items/date-range/index.vue.d.ts +2 -1
  31. package/es/src/ap-form/items/number/index.vue.d.ts +2 -1
  32. package/es/src/ap-form/items/radio/index.vue.d.ts +2 -1
  33. package/es/src/ap-form/items/select/index.vue.d.ts +2 -1
  34. package/es/src/ap-form/items/switch/index.vue.d.ts +2 -1
  35. package/es/src/ap-form/items/text/group.vue.d.ts +2 -1
  36. package/es/src/ap-form/items/text/index.vue.d.ts +2 -1
  37. package/es/src/ap-form/items/text/password.vue.d.ts +2 -1
  38. package/es/src/ap-form/items/text-area/index.vue.d.ts +2 -1
  39. package/es/src/ap-form/list/index.vue.d.ts +2 -1
  40. package/es/src/ap-form/modal-form/index.vue.d.ts +3 -2
  41. package/es/src/ap-form/modal-form/index.vue.mjs +61 -57
  42. package/es/src/ap-form/render/control.vue.d.ts +2 -1
  43. package/es/src/ap-form/render/item.vue.d.ts +2 -1
  44. package/es/src/ap-form/search-form/index.vue.d.ts +3 -2
  45. package/es/src/ap-form/set/index.vue.d.ts +2 -1
  46. package/es/src/ap-info-layout/ApInfoLayout.vue.d.ts +3 -2
  47. package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +3 -2
  48. package/es/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue.d.ts +3 -2
  49. package/es/src/ap-list/index.vue.d.ts +3 -5
  50. package/es/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +1 -1
  51. package/es/src/ap-scroll-bar/index.d.ts +1 -1
  52. package/es/src/ap-table/ap-table.vue.d.ts +3 -5
  53. package/es/src/ap-table/ap-table.vue2.mjs +23 -22
  54. package/es/src/ap-table/components/index/index.vue.d.ts +1 -1
  55. package/es/src/ap-table/components/paragraph-ellipsis/index.vue.d.ts +1 -1
  56. package/es/src/ap-table/components/setting/modal/index.vue.d.ts +2 -1
  57. package/es/src/ap-table/components/setting/select-group/index.vue.d.ts +1 -1
  58. package/es/src/ap-table/components/setting/sortable/index.vue.d.ts +1 -1
  59. package/es/src/ap-table/components/setting/sortable/item.vue.d.ts +1 -1
  60. package/es/src/ap-table/components/setting/sorter/index.vue.d.ts +1 -1
  61. package/es/src/ap-table/components/setting/tree-select/index.vue.d.ts +1 -1
  62. package/es/src/ap-table/constants.d.ts +1 -1
  63. package/es/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
  64. package/es/src/ap-table/hooks/use-table-paging.d.ts +7 -3
  65. package/es/src/ap-table/hooks/use-table-paging.mjs +131 -126
  66. package/es/src/ap-table/utils.d.ts +1 -0
  67. package/es/src/ap-table/utils.mjs +10 -5
  68. package/es/src/ap-tag/ap-tag-group.vue.d.ts +2 -1
  69. package/es/src/ap-tag/ap-tag.vue.d.ts +1 -1
  70. package/es/src/ap-upload/apUpload.vue.d.ts +3 -2
  71. package/es/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
  72. package/es/src/ap-upload/components/Picture.vue.d.ts +5 -9
  73. package/es/src/ap-upload/components/SingleFile.vue.d.ts +1 -1
  74. package/es/src/business/ap-appendix/ap-appendix.vue.d.ts +5 -3
  75. package/es/src/business/ap-appendix/icons/file-icon.vue.d.ts +1 -1
  76. package/es/src/business/ap-appendix/index.d.ts +1 -1
  77. package/es/src/business/ap-batch-action/ApBatchAction.vue.d.ts +3 -2
  78. package/es/src/business/ap-batch-action/index.d.ts +1 -1
  79. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +2 -1
  80. package/es/src/business/ap-batch-action-group/MenuItemGroup.vue.d.ts +3 -4
  81. package/es/src/business/ap-batch-action-group/index.d.ts +887 -5
  82. package/es/src/business/ap-card/ApCard.vue.d.ts +3 -2
  83. package/es/src/business/ap-card/index.d.ts +1 -1
  84. package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +3 -5
  85. package/es/src/business/ap-expand-alert/index.d.ts +4 -6
  86. package/es/src/business/ap-group-search/ap-group-search.vue.d.ts +3 -2
  87. package/es/src/business/ap-group-search/extension-select/index.vue.d.ts +8 -346
  88. package/es/src/business/ap-group-search/images/icon-down.vue.d.ts +1 -1
  89. package/es/src/business/ap-group-search/images/icon-line-select.vue.d.ts +1 -1
  90. package/es/src/business/ap-group-search/index.d.ts +3 -3
  91. package/es/src/business/ap-group-search/popover-select/index.vue.d.ts +8 -346
  92. package/es/src/business/ap-image/ApImage.vue.d.ts +2 -1
  93. package/es/src/business/ap-input-radio/ApInputRadio.vue.d.ts +1 -1
  94. package/es/src/business/ap-input-radio/index.d.ts +1 -1
  95. package/es/src/business/ap-ladder/ApLadder.vue.d.ts +3 -2
  96. package/es/src/business/ap-ladder/index.d.ts +1 -1
  97. package/es/src/business/ap-select-layout/index.d.ts +2 -4
  98. package/es/src/business/ap-select-layout/select-layout.vue.d.ts +3 -5
  99. package/es/src/business/ap-table-modal/modal-title.vue.d.ts +3 -2
  100. package/es/src/business/ap-table-modal/table-layout/index.vue.d.ts +8 -8
  101. package/es/src/business/ap-table-modal/table-modal.vue.d.ts +3 -2
  102. package/es/src/business/ap-title/ApTitle.vue.d.ts +3 -2
  103. package/es/src/business/ap-title/index.d.ts +1 -1
  104. package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.d.ts +5 -3
  105. package/es/src/business/ap-upload-file/icon/delete-icon.vue.d.ts +1 -1
  106. package/es/src/business/ap-upload-file/icon/file-icon.vue.d.ts +1 -1
  107. package/es/src/business/batch-input-group/index.vue.d.ts +1 -1
  108. package/es/src/business/batch-input-group/popover-input/index.vue.d.ts +1 -1
  109. package/es/src/check-card/group.vue.d.ts +2 -1
  110. package/es/src/check-card/index.vue.d.ts +3 -2
  111. package/es/src/editable-table/form-item.vue.d.ts +3 -5
  112. package/es/src/editable-table/index.vue.d.ts +3 -5
  113. package/es/src/tests/wrapper.d.ts +4 -4
  114. package/es/src/work-order-modal/work-order-modal.vue.d.ts +1 -1
  115. package/lib/src/ap-action/item/index.vue.d.ts +2 -1
  116. package/lib/src/ap-action/item-dropdown/index.vue.d.ts +2 -1
  117. package/lib/src/ap-action/item-modal/index.vue.d.ts +2 -1
  118. package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +2 -1
  119. package/lib/src/ap-button/ap-action-button.vue.d.ts +4 -3
  120. package/lib/src/ap-button/ap-action-button.vue.js +1 -1
  121. package/lib/src/ap-button/ap-button.vue.d.ts +4 -3
  122. package/lib/src/ap-button/ap-button.vue.js +1 -1
  123. package/lib/src/ap-button/interface.d.ts +4 -0
  124. package/lib/src/ap-descriptions/ap-descriptions.vue.d.ts +3 -2
  125. package/lib/src/ap-descriptions/help-message/index.vue.d.ts +3 -5
  126. package/lib/src/ap-download/ap-download.vue.d.ts +5 -3
  127. package/lib/src/ap-field/date/index.vue.d.ts +2 -1
  128. package/lib/src/ap-field/date-range/index.vue.d.ts +2 -1
  129. package/lib/src/ap-field/number/index.vue.d.ts +2 -1
  130. package/lib/src/ap-field/rate/index.vue.d.ts +2 -1
  131. package/lib/src/ap-field/segmented/index.vue.d.ts +2 -1
  132. package/lib/src/ap-field/select/index.vue.d.ts +2 -1
  133. package/lib/src/ap-field/slider/index.vue.d.ts +2 -1
  134. package/lib/src/ap-field/switch/index.vue.d.ts +2 -1
  135. package/lib/src/ap-field/text/index.vue.d.ts +2 -1
  136. package/lib/src/ap-field/text/password.vue.d.ts +2 -1
  137. package/lib/src/ap-form/ap-form.vue.d.ts +6 -4
  138. package/lib/src/ap-form/dependency/index.vue.d.ts +2 -1
  139. package/lib/src/ap-form/drawer-form/index.vue.d.ts +3 -2
  140. package/lib/src/ap-form/item/index.vue.d.ts +2 -1
  141. package/lib/src/ap-form/item-group/index.vue.d.ts +2 -1
  142. package/lib/src/ap-form/items/checkbox/index.vue.d.ts +2 -1
  143. package/lib/src/ap-form/items/date/index.vue.d.ts +2 -1
  144. package/lib/src/ap-form/items/date-range/index.vue.d.ts +2 -1
  145. package/lib/src/ap-form/items/number/index.vue.d.ts +2 -1
  146. package/lib/src/ap-form/items/radio/index.vue.d.ts +2 -1
  147. package/lib/src/ap-form/items/select/index.vue.d.ts +2 -1
  148. package/lib/src/ap-form/items/switch/index.vue.d.ts +2 -1
  149. package/lib/src/ap-form/items/text/group.vue.d.ts +2 -1
  150. package/lib/src/ap-form/items/text/index.vue.d.ts +2 -1
  151. package/lib/src/ap-form/items/text/password.vue.d.ts +2 -1
  152. package/lib/src/ap-form/items/text-area/index.vue.d.ts +2 -1
  153. package/lib/src/ap-form/list/index.vue.d.ts +2 -1
  154. package/lib/src/ap-form/modal-form/index.vue.d.ts +3 -2
  155. package/lib/src/ap-form/modal-form/index.vue.js +1 -1
  156. package/lib/src/ap-form/render/control.vue.d.ts +2 -1
  157. package/lib/src/ap-form/render/item.vue.d.ts +2 -1
  158. package/lib/src/ap-form/search-form/index.vue.d.ts +3 -2
  159. package/lib/src/ap-form/set/index.vue.d.ts +2 -1
  160. package/lib/src/ap-info-layout/ApInfoLayout.vue.d.ts +3 -2
  161. package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +3 -2
  162. package/lib/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue.d.ts +3 -2
  163. package/lib/src/ap-list/index.vue.d.ts +3 -5
  164. package/lib/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +1 -1
  165. package/lib/src/ap-scroll-bar/index.d.ts +1 -1
  166. package/lib/src/ap-table/ap-table.vue.d.ts +3 -5
  167. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  168. package/lib/src/ap-table/components/index/index.vue.d.ts +1 -1
  169. package/lib/src/ap-table/components/paragraph-ellipsis/index.vue.d.ts +1 -1
  170. package/lib/src/ap-table/components/setting/modal/index.vue.d.ts +2 -1
  171. package/lib/src/ap-table/components/setting/select-group/index.vue.d.ts +1 -1
  172. package/lib/src/ap-table/components/setting/sortable/index.vue.d.ts +1 -1
  173. package/lib/src/ap-table/components/setting/sortable/item.vue.d.ts +1 -1
  174. package/lib/src/ap-table/components/setting/sorter/index.vue.d.ts +1 -1
  175. package/lib/src/ap-table/components/setting/tree-select/index.vue.d.ts +1 -1
  176. package/lib/src/ap-table/constants.d.ts +1 -1
  177. package/lib/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
  178. package/lib/src/ap-table/hooks/use-table-paging.d.ts +7 -3
  179. package/lib/src/ap-table/hooks/use-table-paging.js +1 -1
  180. package/lib/src/ap-table/utils.d.ts +1 -0
  181. package/lib/src/ap-table/utils.js +1 -1
  182. package/lib/src/ap-tag/ap-tag-group.vue.d.ts +2 -1
  183. package/lib/src/ap-tag/ap-tag.vue.d.ts +1 -1
  184. package/lib/src/ap-upload/apUpload.vue.d.ts +3 -2
  185. package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
  186. package/lib/src/ap-upload/components/Picture.vue.d.ts +5 -9
  187. package/lib/src/ap-upload/components/SingleFile.vue.d.ts +1 -1
  188. package/lib/src/business/ap-appendix/ap-appendix.vue.d.ts +5 -3
  189. package/lib/src/business/ap-appendix/icons/file-icon.vue.d.ts +1 -1
  190. package/lib/src/business/ap-appendix/index.d.ts +1 -1
  191. package/lib/src/business/ap-batch-action/ApBatchAction.vue.d.ts +3 -2
  192. package/lib/src/business/ap-batch-action/index.d.ts +1 -1
  193. package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +2 -1
  194. package/lib/src/business/ap-batch-action-group/MenuItemGroup.vue.d.ts +3 -4
  195. package/lib/src/business/ap-batch-action-group/index.d.ts +887 -5
  196. package/lib/src/business/ap-card/ApCard.vue.d.ts +3 -2
  197. package/lib/src/business/ap-card/index.d.ts +1 -1
  198. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +3 -5
  199. package/lib/src/business/ap-expand-alert/index.d.ts +4 -6
  200. package/lib/src/business/ap-group-search/ap-group-search.vue.d.ts +3 -2
  201. package/lib/src/business/ap-group-search/extension-select/index.vue.d.ts +8 -346
  202. package/lib/src/business/ap-group-search/images/icon-down.vue.d.ts +1 -1
  203. package/lib/src/business/ap-group-search/images/icon-line-select.vue.d.ts +1 -1
  204. package/lib/src/business/ap-group-search/index.d.ts +3 -3
  205. package/lib/src/business/ap-group-search/popover-select/index.vue.d.ts +8 -346
  206. package/lib/src/business/ap-image/ApImage.vue.d.ts +2 -1
  207. package/lib/src/business/ap-input-radio/ApInputRadio.vue.d.ts +1 -1
  208. package/lib/src/business/ap-input-radio/index.d.ts +1 -1
  209. package/lib/src/business/ap-ladder/ApLadder.vue.d.ts +3 -2
  210. package/lib/src/business/ap-ladder/index.d.ts +1 -1
  211. package/lib/src/business/ap-select-layout/index.d.ts +2 -4
  212. package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +3 -5
  213. package/lib/src/business/ap-table-modal/modal-title.vue.d.ts +3 -2
  214. package/lib/src/business/ap-table-modal/table-layout/index.vue.d.ts +8 -8
  215. package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +3 -2
  216. package/lib/src/business/ap-title/ApTitle.vue.d.ts +3 -2
  217. package/lib/src/business/ap-title/index.d.ts +1 -1
  218. package/lib/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.d.ts +5 -3
  219. package/lib/src/business/ap-upload-file/icon/delete-icon.vue.d.ts +1 -1
  220. package/lib/src/business/ap-upload-file/icon/file-icon.vue.d.ts +1 -1
  221. package/lib/src/business/batch-input-group/index.vue.d.ts +1 -1
  222. package/lib/src/business/batch-input-group/popover-input/index.vue.d.ts +1 -1
  223. package/lib/src/check-card/group.vue.d.ts +2 -1
  224. package/lib/src/check-card/index.vue.d.ts +3 -2
  225. package/lib/src/editable-table/form-item.vue.d.ts +3 -5
  226. package/lib/src/editable-table/index.vue.d.ts +3 -5
  227. package/lib/src/tests/wrapper.d.ts +4 -4
  228. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +1 -1
  229. package/package.json +1 -1
  230. package/index.ts +0 -19
@@ -1,4 +1,4 @@
1
- import { defineComponent as Te, useSlots as Fe, ref as P, computed as s, unref as l, createVNode as y, Fragment as U, watchEffect as xe, watch as G, openBlock as p, createElementBlock as T, normalizeClass as f, normalizeStyle as M, mergeProps as w, createSlots as _, withCtx as F, renderList as J, createBlock as Q, resolveDynamicComponent as Be, renderSlot as h, createCommentVNode as X, createElementVNode as I, normalizeProps as ke, guardReactiveProps as ze } from "vue";
1
+ import { defineComponent as Te, useSlots as Fe, ref as P, computed as s, unref as l, createVNode as y, Fragment as q, watchEffect as xe, watch as G, openBlock as p, createElementBlock as T, normalizeClass as f, normalizeStyle as M, mergeProps as w, createSlots as _, withCtx as F, renderList as J, createBlock as Q, resolveDynamicComponent as Be, renderSlot as h, createCommentVNode as X, createElementVNode as I, normalizeProps as ke, guardReactiveProps as ze } from "vue";
2
2
  import { Divider as Pe, Table as Ie } from "@aplus-frontend/antdv";
3
3
  import { useToken as Ne } from "@aplus-frontend/antdv/es/theme/internal";
4
4
  import { ApForm as Ee } from "../ap-form/index.mjs";
@@ -6,18 +6,18 @@ import { noRenderAsFormItemValueList as Y } from "./constants.mjs";
6
6
  import "../config-provider/index.mjs";
7
7
  import { useTablePaging as Ke } from "./hooks/use-table-paging.mjs";
8
8
  import { isUndefined as m, omit as Z, isBoolean as Le } from "lodash-unified";
9
- import { getColumnOrder as ee, updateFormProps as Oe, getFieldProps as Ve, getSearchFormItemRenderNode as Ae, recursionApColumns as ae, apColumnToColumn as De, getTableTitle as je, getTableRenderType as $e, getTableRenderProps as We, getTableCellRenderNode as He } from "./utils.mjs";
9
+ import { getColumnOrder as ee, updateFormProps as Oe, getFieldProps as Ve, getSearchFormItemRenderNode as Ae, recursionApColumns as ae, apColumnToColumn as De, getTableTitle as je, getTableRenderType as $e, getTableRenderProps as We, getTableCellRenderNode as He, falseToUndefined as Ue } from "./utils.mjs";
10
10
  import qe from "./hooks/use-table-content-height.mjs";
11
- import Ue from "./hooks/use-table-row-selection.mjs";
12
- import { isDef as Ge } from "../utils/index.mjs";
11
+ import Ge from "./hooks/use-table-row-selection.mjs";
12
+ import { isDef as Me } from "../utils/index.mjs";
13
13
  import "./components/setting/modal/index.vue.mjs";
14
14
  import "./components/paragraph-ellipsis/index.vue.mjs";
15
- import { useProvideApTable as Me } from "./context.mjs";
16
- import { useNamespace as _e } from "../config-provider/hooks/use-namespace.mjs";
17
- import { useGlobalConfig as Je } from "../config-provider/hooks/use-global-config.mjs";
18
- import Qe from "./components/paragraph-ellipsis/index.vue2.mjs";
19
- import Xe from "./components/setting/modal/index.vue2.mjs";
20
- const wa = /* @__PURE__ */ Te({
15
+ import { useProvideApTable as _e } from "./context.mjs";
16
+ import { useNamespace as Je } from "../config-provider/hooks/use-namespace.mjs";
17
+ import { useGlobalConfig as Qe } from "../config-provider/hooks/use-global-config.mjs";
18
+ import Xe from "./components/paragraph-ellipsis/index.vue2.mjs";
19
+ import Ye from "./components/setting/modal/index.vue2.mjs";
20
+ const ha = /* @__PURE__ */ Te({
21
21
  name: "ApTable",
22
22
  __name: "ap-table",
23
23
  props: {
@@ -150,11 +150,11 @@ const wa = /* @__PURE__ */ Te({
150
150
  e: x,
151
151
  b: i,
152
152
  be: E
153
- } = _e("ap-table"), K = Je("valueTypeMap"), {
153
+ } = Je("ap-table"), K = Qe("valueTypeMap"), {
154
154
  height: le,
155
155
  contentRef: ne
156
156
  } = qe(), B = P(a.size), u = P([]), L = P([]);
157
- Me({
157
+ _e({
158
158
  columns: s(() => u.value),
159
159
  columnsBackup: s(() => L.value),
160
160
  size: s(() => B.value),
@@ -193,7 +193,7 @@ const wa = /* @__PURE__ */ Te({
193
193
  rowSelection: b,
194
194
  selectedRows: C,
195
195
  ...R
196
- } = Ue({
196
+ } = Ge({
197
197
  fixed: !0,
198
198
  ...a.rowSelection === !0 ? {} : a.rowSelection,
199
199
  rowKey: a.rowKey,
@@ -230,13 +230,14 @@ const wa = /* @__PURE__ */ Te({
230
230
  defaultPageSize: a.pagination ? a.pagination.defaultPageSize : void 0,
231
231
  formatParams: a.beforeSearchSubmit,
232
232
  showLessItems: a.pagination ? a.pagination.showLessItems : void 0,
233
- showTotal: a.pagination ? a.pagination.showTotal : void 0
233
+ showTotal: a.pagination ? a.pagination.showTotal : void 0,
234
+ pagination: a.pagination !== !1
234
235
  }), fe = () => {
235
236
  var o;
236
237
  let e = ((o = a.columns) == null ? void 0 : o.filter((r) => !r.hideInTable)) || [];
237
238
  function t(r, d) {
238
239
  return r.map((n) => ({
239
- resizable: Ge(n.resizable) ? n.resizable : a.columnResizable,
240
+ resizable: Me(n.resizable) ? n.resizable : a.columnResizable,
240
241
  ...Z(De(n), ["ellipsis"]),
241
242
  ...pe(n),
242
243
  fixed: d ? d.fixed : n.fixed,
@@ -245,7 +246,7 @@ const wa = /* @__PURE__ */ Te({
245
246
  value: c,
246
247
  ...g
247
248
  }) {
248
- var H, q;
249
+ var H, U;
249
250
  const $ = $e(n), Ce = We({
250
251
  ...n,
251
252
  valueType: $
@@ -255,7 +256,7 @@ const wa = /* @__PURE__ */ Te({
255
256
  }), Re = He($, Ce, g.record, l(K)), W = ((H = n.renderText) == null ? void 0 : H.call(n, {
256
257
  value: c,
257
258
  ...g
258
- })) || c, ve = n.renderText ? y(U, null, [(q = n.renderText) == null ? void 0 : q.call(n, {
259
+ })) || c, ve = n.renderText ? y(q, null, [(U = n.renderText) == null ? void 0 : U.call(n, {
259
260
  value: c,
260
261
  ...g
261
262
  })]) : Re;
@@ -302,14 +303,14 @@ const wa = /* @__PURE__ */ Te({
302
303
  ...t,
303
304
  // tips 如果是前端分页,则默认会走缓存
304
305
  preserveSelectedRowKeys: m(a.dataSource) ? t.preserveSelectedRowKeys : !0
305
- } : a.rowSelection,
306
+ } : Ue(a.rowSelection),
306
307
  loading: m(a.loading) ? e.loading : a.loading,
307
308
  pagination: a.pagination === !1 ? !1 : e.pagination,
308
309
  scroll: l(me)
309
310
  };
310
311
  }), ye = s(() => [i(), a.card ? null : i("wrapper"), a.adaptive ? i("adaptive") : null].filter(Boolean));
311
312
  function we(e, t, o) {
312
- return Y.includes(e.valueType) ? o : e.copyable || e.ellipsis ? y(Qe, {
313
+ return Y.includes(e.valueType) ? o : e.copyable || e.ellipsis ? y(Xe, {
313
314
  copyable: e.copyable,
314
315
  ellipsis: e.ellipsis ? Le(e.ellipsis) ? {
315
316
  tooltip: o,
@@ -367,7 +368,7 @@ const wa = /* @__PURE__ */ Te({
367
368
  onSubmit: l(V),
368
369
  onReset: l(A)
369
370
  }), _({
370
- default: F(() => [(p(!0), T(U, null, J(O.value, (o) => (p(), Q(Be(o.renderNode), w({
371
+ default: F(() => [(p(!0), T(q, null, J(O.value, (o) => (p(), Q(Be(o.renderNode), w({
371
372
  key: o.dataIndex,
372
373
  ref_for: !0
373
374
  }, o.fieldProps || {}, {
@@ -397,7 +398,7 @@ const wa = /* @__PURE__ */ Te({
397
398
  }, R))], 2), S.title ? (p(), Q(l(Pe), {
398
399
  key: 0,
399
400
  type: "vertical"
400
- })) : X("", !0), y(Xe, {
401
+ })) : X("", !0), y(Ye, {
401
402
  config: e.settings === !0 ? {} : e.settings
402
403
  }, null, 8, ["config"])], 2)) : h(e.$slots, "title", w({
403
404
  key: 1,
@@ -425,5 +426,5 @@ const wa = /* @__PURE__ */ Te({
425
426
  }
426
427
  });
427
428
  export {
428
- wa as default
429
+ ha as default
429
430
  };
@@ -2,5 +2,5 @@ import { ApTableIndexProps } from '../interface';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  declare const _default: DefineComponent<ApTableIndexProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApTableIndexProps> & Readonly<{}>, {
4
4
  bordered: boolean;
5
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
5
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
6
6
  export default _default;
@@ -7,5 +7,5 @@ interface Props {
7
7
  tooltip?: VNodeChild;
8
8
  };
9
9
  }
10
- declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
10
+ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
11
11
  export default _default;
@@ -5,9 +5,10 @@ type TableSettingModalSlots = {
5
5
  trigger?: any;
6
6
  };
7
7
  declare function __VLS_template(): {
8
+ attrs: Partial<{}>;
8
9
  slots: Readonly<TableSettingModalSlots> & TableSettingModalSlots;
9
10
  refs: {};
10
- attrs: Partial<{}>;
11
+ rootEl: any;
11
12
  };
12
13
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
14
  declare const __VLS_component: DefineComponent<ApTableSettingModalProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApTableSettingModalProps> & Readonly<{}>, {
@@ -1,4 +1,4 @@
1
1
  import { ApTableSettingSelectGroupProps } from '../../interface';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
- declare const _default: DefineComponent<ApTableSettingSelectGroupProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApTableSettingSelectGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
3
+ declare const _default: DefineComponent<ApTableSettingSelectGroupProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApTableSettingSelectGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
4
4
  export default _default;
@@ -1,4 +1,4 @@
1
1
  import { SortableItemProps } from '../../interface';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
- declare const _default: DefineComponent<SortableItemProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<SortableItemProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
3
+ declare const _default: DefineComponent<SortableItemProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<SortableItemProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
4
4
  export default _default;
@@ -7,5 +7,5 @@ declare const _default: DefineComponent<SortableItemMetaProps, {}, {}, {}, {}, C
7
7
  }, string, PublicProps, Readonly<SortableItemMetaProps> & Readonly<{
8
8
  "onUpdate:open"?: ((open: boolean) => any) | undefined;
9
9
  "onUpdate:value"?: ((open: ApColumnState) => any) | undefined;
10
- }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
10
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
11
11
  export default _default;
@@ -5,5 +5,5 @@ declare const _default: DefineComponent<ApTableSettingSorterProps, {}, {}, {}, {
5
5
  "update:value": (value: ApColumnState[]) => any;
6
6
  }, string, PublicProps, Readonly<ApTableSettingSorterProps> & Readonly<{
7
7
  "onUpdate:value"?: ((value: ApColumnState[]) => any) | undefined;
8
- }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
8
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
9
9
  export default _default;
@@ -1,4 +1,4 @@
1
1
  import { ApTableSettingTreeSelectProps } from '../../interface';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
- declare const _default: DefineComponent<ApTableSettingTreeSelectProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApTableSettingTreeSelectProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
3
+ declare const _default: DefineComponent<ApTableSettingTreeSelectProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApTableSettingTreeSelectProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
4
4
  export default _default;
@@ -1290,7 +1290,7 @@ export declare const apTableRenderItemMap: {
1290
1290
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1291
1291
  index: DefineComponent<ApTableIndexProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ApTableIndexProps> & Readonly<{}>, {
1292
1292
  bordered: boolean;
1293
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1293
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1294
1294
  status: DefineComponent<ApTableStatusProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ApTableStatusProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1295
1295
  password: {
1296
1296
  new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApFieldTextPasswordProps> & Readonly<{
@@ -4,18 +4,18 @@ export declare const useTableColumnState: (columnSetting: ApTableSettingType, in
4
4
  columnState: Ref<{
5
5
  key: string | number;
6
6
  show?: boolean | undefined;
7
- fixed?: ("left" | "right") | undefined;
7
+ fixed?: "left" | "right" | undefined;
8
8
  disabled?: boolean | undefined;
9
9
  label?: any;
10
- children?: any[] | undefined;
10
+ children?: /*elided*/ any[] | undefined;
11
11
  order?: number | undefined;
12
12
  }[], ApColumnState[] | {
13
13
  key: string | number;
14
14
  show?: boolean | undefined;
15
- fixed?: ("left" | "right") | undefined;
15
+ fixed?: "left" | "right" | undefined;
16
16
  disabled?: boolean | undefined;
17
17
  label?: any;
18
- children?: any[] | undefined;
18
+ children?: /*elided*/ any[] | undefined;
19
19
  order?: number | undefined;
20
20
  }[]>;
21
21
  selectAll: () => void;
@@ -62,8 +62,12 @@ export type UseTablePagingParams<DataType, ParamsType> = {
62
62
  * 用于显示数据总量和当前数据顺序
63
63
  */
64
64
  showTotal?: boolean;
65
+ /**
66
+ * 是否分页
67
+ */
68
+ pagination?: boolean;
65
69
  };
66
- export declare const useTablePaging: <DataType = any, ParamsType = Record<string, any>>({ manual, defaultCurrent, defaultPageSize, request, defaultParams, defaultData, formatParams, paramsValueTypeMap, resetFieldsIgnores, filterFields, sortFields, showLessItems, showTotal }: UseTablePagingParams<DataType, ParamsType>) => {
70
+ export declare const useTablePaging: <DataType = any, ParamsType = Record<string, any>>({ manual, defaultCurrent, defaultPageSize, request, defaultParams, defaultData, formatParams, paramsValueTypeMap, resetFieldsIgnores, filterFields, sortFields, showLessItems, showTotal, pagination }: UseTablePagingParams<DataType, ParamsType>) => {
67
71
  formRef: Ref<ApFormSearchFormExpose | undefined, ApFormSearchFormExpose | undefined>;
68
72
  submit: () => void;
69
73
  reset: () => void;
@@ -78,8 +82,8 @@ export declare const useTablePaging: <DataType = any, ParamsType = Record<string
78
82
  records: DataType[];
79
83
  loading: boolean;
80
84
  }>;
81
- current: Ref<number, number>;
82
- pageSize: Ref<number, number>;
85
+ current: Ref<number | undefined, number | undefined>;
86
+ pageSize: Ref<number | undefined, number | undefined>;
83
87
  handleTableChange: (pagination: TablePaginationConfig, filters: Record<string, FilterValue | null>, sorter: SorterResult<any> | SorterResult<any>[], extra: TableCurrentDataSource<any>) => void;
84
88
  tableProps: ComputedRef<{
85
89
  loading: boolean;
@@ -1,171 +1,176 @@
1
- import { ref as P, nextTick as ae, unref as o, onMounted as oe, computed as V, createVNode as b } from "vue";
2
- import { parseFieldValue as re, dataIndexToStr as ne, isEqualCustom as se } from "../utils.mjs";
3
- import { isArray as q, isEqualWith as ie } from "lodash-unified";
1
+ import { ref as b, nextTick as re, unref as r, onMounted as oe, computed as y, createVNode as z } from "vue";
2
+ import { parseFieldValue as ne, dataIndexToStr as se, isEqualCustom as ie } from "../utils.mjs";
3
+ import { isArray as K, isEqualWith as le } from "lodash-unified";
4
4
  import "../../config-provider/index.mjs";
5
- import { useTableSortedAndFiltered as le } from "./use-sorted-filtered.mjs";
6
- import { useLocale as ce } from "../../config-provider/hooks/use-locale.mjs";
7
- import { useNamespace as ue } from "../../config-provider/hooks/use-namespace.mjs";
5
+ import { useTableSortedAndFiltered as ce } from "./use-sorted-filtered.mjs";
6
+ import { useLocale as ue } from "../../config-provider/hooks/use-locale.mjs";
7
+ import { useNamespace as fe } from "../../config-provider/hooks/use-namespace.mjs";
8
8
  const Te = ({
9
- manual: B = !1,
10
- defaultCurrent: K = 1,
11
- defaultPageSize: y = 10,
12
- request: M,
13
- defaultParams: N = {},
14
- defaultData: $ = [],
15
- formatParams: w,
16
- paramsValueTypeMap: A,
17
- resetFieldsIgnores: D,
18
- filterFields: J,
19
- sortFields: L,
20
- showLessItems: z = !1,
21
- showTotal: Q = !0
9
+ manual: M = !1,
10
+ defaultCurrent: N = 1,
11
+ defaultPageSize: w = 10,
12
+ request: _,
13
+ defaultParams: $ = {},
14
+ defaultData: J = [],
15
+ formatParams: A,
16
+ paramsValueTypeMap: D,
17
+ resetFieldsIgnores: E,
18
+ filterFields: L,
19
+ sortFields: Q,
20
+ showLessItems: C = !1,
21
+ showTotal: W = !0,
22
+ pagination: p = !0
22
23
  }) => {
23
- let C = 0, s = {};
24
- const W = (e) => w ? w(e) : e, u = P(), c = P(K), p = P(y), {
25
- getColumnSFConfig: G,
26
- setSF: H,
27
- clearAll: U
28
- } = le(), {
29
- t: T
24
+ let V = 0, i = {};
25
+ const G = (e) => A ? A(e) : e, u = b(), f = b(p ? N : void 0), g = b(p ? w : void 0), {
26
+ getColumnSFConfig: H,
27
+ setSF: U,
28
+ clearAll: X
30
29
  } = ce(), {
30
+ t: T
31
+ } = ue(), {
31
32
  b: F
32
- } = ue("ap-table"), r = P({
33
+ } = fe("ap-table"), o = b({
33
34
  total: 0,
34
- records: $,
35
+ records: J,
35
36
  loading: !1
36
- }), E = async (e) => {
37
+ }), O = async (e) => {
37
38
  var n;
38
- const a = W(e), t = Date.now();
39
- C = t, r.value.loading = !0;
39
+ const t = G(e), a = Date.now();
40
+ V = a, o.value.loading = !0;
40
41
  try {
41
- const i = await M({
42
- ...N,
43
- ...a
42
+ const s = await _({
43
+ ...$,
44
+ ...t
44
45
  });
45
- C === t && (r.value.total = i.total || ((n = i.data) == null ? void 0 : n.length) || 0, r.value.records = [...i.data || []]);
46
+ V === a && (o.value.total = s.total || ((n = s.data) == null ? void 0 : n.length) || 0, o.value.records = [...s.data || []]);
46
47
  } catch {
47
- C === t && (r.value.records = [], r.value.total = 0);
48
+ V === a && (o.value.records = [], o.value.total = 0);
48
49
  } finally {
49
- r.value.loading = !1;
50
+ o.value.loading = !1;
50
51
  }
51
- }, O = (e) => {
52
- const a = {};
53
- return Object.entries(e).forEach(([t, n]) => {
54
- if (a[t] = n, A && n) {
55
- const i = A[t];
56
- i && (a[t] = re(i, n));
52
+ }, R = (e) => {
53
+ const t = {};
54
+ return Object.entries(e).forEach(([a, n]) => {
55
+ if (t[a] = n, D && n) {
56
+ const s = D[a];
57
+ s && (t[a] = ne(s, n));
57
58
  }
58
- }), a;
59
- }, X = async (e) => {
60
- var n, i, d, g, m, f, h;
61
- const a = ((i = (n = u.value) == null ? void 0 : n.apForm) == null ? void 0 : i.getFieldsValueTransformed(!0)) || {}, t = {};
62
- Object.entries(a).forEach(([v, x]) => {
63
- D && D.indexOf(v) > -1 && (t[v] = x);
64
- }), await ((g = (d = u.value) == null ? void 0 : d.apForm) == null ? void 0 : g.resetFields()), (h = (f = (m = u.value) == null ? void 0 : m.apForm) == null ? void 0 : f.setFieldsValue) == null || h.call(f, t), ae(() => {
59
+ }), t;
60
+ }, Y = async (e) => {
61
+ var n, s, c, m, h, d, v;
62
+ const t = ((s = (n = u.value) == null ? void 0 : n.apForm) == null ? void 0 : s.getFieldsValueTransformed(!0)) || {}, a = {};
63
+ Object.entries(t).forEach(([S, P]) => {
64
+ E && E.indexOf(S) > -1 && (a[S] = P);
65
+ }), await ((m = (c = u.value) == null ? void 0 : c.apForm) == null ? void 0 : m.resetFields()), (v = (d = (h = u.value) == null ? void 0 : h.apForm) == null ? void 0 : d.setFieldsValue) == null || v.call(d, a), re(() => {
65
66
  e == null || e();
66
67
  });
67
- }, S = (e) => {
68
- s = e;
69
- const a = O(e);
70
- E(a);
71
- }, Y = (e) => {
72
- S({
73
- ...s,
68
+ }, x = (e) => {
69
+ i = e;
70
+ const t = R(e);
71
+ O(t);
72
+ }, Z = (e) => {
73
+ x({
74
+ ...i,
74
75
  ...e
75
76
  });
76
- }, R = () => {
77
- var a, t;
78
- const e = ((t = (a = u.value) == null ? void 0 : a.apForm) == null ? void 0 : t.getFieldsValueTransformed(!0)) || {};
79
- c.value = 1, S({
77
+ }, j = () => {
78
+ var t, a;
79
+ const e = ((a = (t = u.value) == null ? void 0 : t.apForm) == null ? void 0 : a.getFieldsValueTransformed(!0)) || {};
80
+ p && (f.value = 1), x({
80
81
  ...e,
81
- filter: s.filter,
82
- sort: s.sort,
83
- current: 1,
84
- pageSize: s.pageSize || y
85
- });
86
- }, Z = () => {
87
- U(), s.sort = {}, s.filter = {}, X(R);
88
- }, _ = () => {
89
- S(s);
90
- }, I = (e) => {
91
- const a = o(r).total - e, t = Math.ceil(a / o(p)), n = o(c) > t ? t : o(c);
92
- Y({
93
- current: n > 0 ? n : 1
82
+ filter: i.filter,
83
+ sort: i.sort,
84
+ current: p ? 1 : void 0,
85
+ pageSize: p ? i.pageSize || w : void 0
94
86
  });
95
- }, j = (e, a, t) => {
96
- var f, h, v, x;
97
- const n = ((h = (f = u.value) == null ? void 0 : f.apForm) == null ? void 0 : h.getFieldsValueTransformed(!0)) || {};
98
- c.value = e.current, p.value = e.pageSize, H(a, t);
99
- const i = q(t) ? [...t] : [t], d = {};
100
- for (const l of i)
101
- (v = o(L)) != null && v.includes(l.columnKey || l.field) && l.order && (d[ne(l.columnKey || l.field)] = l.order);
102
- const g = {};
103
- for (const l of Object.keys(a))
104
- (x = o(J)) != null && x.includes(l) && a[l] && (g[l] = a[l]);
105
- const m = {
87
+ }, I = () => {
88
+ X(), i.sort = {}, i.filter = {}, Y(j);
89
+ }, q = () => {
90
+ x(i);
91
+ }, k = (e) => {
92
+ if (!p)
93
+ q();
94
+ else {
95
+ const t = r(f), a = r(g), n = r(o).total - e, s = Math.ceil(n / a), c = t > s ? s : t;
96
+ Z({
97
+ current: c > 0 ? c : 1
98
+ });
99
+ }
100
+ }, B = (e, t, a) => {
101
+ var d, v, S, P;
102
+ const n = ((v = (d = u.value) == null ? void 0 : d.apForm) == null ? void 0 : v.getFieldsValueTransformed(!0)) || {};
103
+ f.value = e.current, g.value = e.pageSize, U(t, a);
104
+ const s = K(a) ? [...a] : [a], c = {};
105
+ for (const l of s)
106
+ (S = r(Q)) != null && S.includes(l.columnKey || l.field) && l.order && (c[se(l.columnKey || l.field)] = l.order);
107
+ const m = {};
108
+ for (const l of Object.keys(t))
109
+ (P = r(L)) != null && P.includes(l) && t[l] && (m[l] = t[l]);
110
+ const h = {
106
111
  ...n,
107
- filter: g,
108
- sort: d,
112
+ filter: m,
113
+ sort: c,
109
114
  current: e.current,
110
115
  pageSize: e.pageSize
111
116
  };
112
- ie(s, m, se) || S(m);
117
+ le(i, h, ie) || x(h);
113
118
  };
114
119
  oe(() => {
115
- var a, t;
116
- const e = ((t = (a = u.value) == null ? void 0 : a.apForm) == null ? void 0 : t.getFieldsValueTransformed(!0)) || {};
117
- if (s = {
118
- current: o(c),
119
- pageSize: o(p),
120
+ var t, a;
121
+ const e = ((a = (t = u.value) == null ? void 0 : t.apForm) == null ? void 0 : a.getFieldsValueTransformed(!0)) || {};
122
+ if (i = {
123
+ current: r(f),
124
+ pageSize: r(g),
120
125
  filter: {},
121
126
  sort: {},
122
127
  ...e
123
- }, !B) {
124
- const n = O(s);
125
- E(n);
128
+ }, !M) {
129
+ const n = R(i);
130
+ O(n);
126
131
  }
127
132
  });
128
- const k = V(() => o(r).total === 0 ? "-" : `${o(c.value)}/${Math.ceil(o(r).total / o(p))}`);
129
- function ee(e) {
130
- q(e) && (r.value.records = e, r.value.total = e.length);
133
+ const ee = y(() => r(o).total === 0 ? "-" : `${r(f.value)}/${Math.ceil(r(o).total / r(g))}`);
134
+ function te(e) {
135
+ K(e) && (o.value.records = e, o.value.total = e.length);
131
136
  }
132
- const te = V(() => ({
133
- loading: o(r).loading,
137
+ const ae = y(() => ({
138
+ loading: r(o).loading,
134
139
  pagination: {
135
- current: o(c),
136
- pageSize: o(p),
137
- total: o(r).total,
138
- showSizeChanger: !z,
139
- showQuickJumper: !z,
140
- showLessItems: z,
140
+ current: r(f),
141
+ pageSize: r(g),
142
+ total: r(o).total,
143
+ showSizeChanger: !C,
144
+ showQuickJumper: !C,
145
+ showLessItems: C,
141
146
  size: "default",
142
- showTotal: Q ? (e) => b("span", {
147
+ showTotal: W ? (e) => z("span", {
143
148
  class: F("pagination-total-wrapper")
144
- }, [T("ap.apTable.pagination.totalLeftPrefix"), " ", b("span", {
149
+ }, [T("ap.apTable.pagination.totalLeftPrefix"), " ", z("span", {
145
150
  class: F("pagination-count-text")
146
- }, [e]), " ", T("ap.apTable.pagination.totalLeftSuffix"), b("span", {
151
+ }, [e]), " ", T("ap.apTable.pagination.totalLeftSuffix"), z("span", {
147
152
  class: F("pagination--total-right")
148
- }, [T("ap.apTable.pagination.totalRightPrefix"), " ", b("span", {
153
+ }, [T("ap.apTable.pagination.totalRightPrefix"), " ", z("span", {
149
154
  class: F("pagination-count-text")
150
- }, [o(k)]), " ", T("ap.apTable.pagination.totalRightSuffix")])]) : void 0
155
+ }, [r(ee)]), " ", T("ap.apTable.pagination.totalRightSuffix")])]) : void 0
151
156
  },
152
- onChange: j,
153
- dataSource: o(r).records
157
+ onChange: B,
158
+ dataSource: r(o).records
154
159
  }));
155
160
  return {
156
161
  formRef: u,
157
- submit: R,
158
- reset: Z,
159
- refresh: _,
160
- refreshByDelete: I,
161
- data: r,
162
- current: c,
163
- pageSize: p,
164
- handleTableChange: j,
165
- tableProps: te,
166
- dataSource: V(() => o(r).records),
167
- setDataSource: ee,
168
- getColumnSFConfig: G
162
+ submit: j,
163
+ reset: I,
164
+ refresh: q,
165
+ refreshByDelete: k,
166
+ data: o,
167
+ current: f,
168
+ pageSize: g,
169
+ handleTableChange: B,
170
+ tableProps: ae,
171
+ dataSource: y(() => r(o).records),
172
+ setDataSource: te,
173
+ getColumnSFConfig: H
169
174
  };
170
175
  };
171
176
  export {
@@ -708,4 +708,5 @@ export declare function getTableTitle(column: ApColumnType<any>, titleNodeClassN
708
708
  }> | ((props: ColumnTitleProps<any>) => VNodeArrayChildren | VueNode) | null;
709
709
  export declare function recursionApColumns<ReturnType = any>(columns: (ColumnType | ColumnGroupType<any>)[], handler: (column: ColumnType) => ReturnType): ReturnType[];
710
710
  export declare function isEqualCustom(value: any, other: any): boolean | undefined;
711
+ export declare function falseToUndefined(obj: any): any;
711
712
  export {};
@@ -42,7 +42,7 @@ function W(t) {
42
42
  const e = Object.prototype.toString.call(t).match(/^\[object (.*)\]$/)[1].toLowerCase();
43
43
  return e === "string" && typeof t == "object" ? "object" : t === null ? "null" : t === void 0 ? "undefined" : e;
44
44
  }
45
- const B = (t) => W(t) === "map" ? t : new Map(Object.entries(t || {})), b = (t) => {
45
+ const B = (t) => W(t) === "map" ? t : new Map(Object.entries(t || {})), T = (t) => {
46
46
  const e = [], n = B(t);
47
47
  return n.forEach((o, r) => {
48
48
  const i = n.get(r) || n.get(`${r}`);
@@ -120,14 +120,14 @@ function et(t) {
120
120
  const e = {
121
121
  ...t
122
122
  };
123
- return F(t.filters) && t.filters && t.valueEnum && (e.filters = b(t.valueEnum)), e;
123
+ return F(t.filters) && t.filters && t.valueEnum && (e.filters = T(t.valueEnum)), e;
124
124
  }
125
125
  function nt(t, e) {
126
126
  var o;
127
127
  const n = e || {};
128
128
  return t.valueEnum && !((o = n.field) != null && o.options) && (n.field = {
129
129
  ...n.field,
130
- options: b(t.valueEnum)
130
+ options: T(t.valueEnum)
131
131
  }), n;
132
132
  }
133
133
  function rt(t) {
@@ -143,7 +143,7 @@ function ot(t, e, n, o) {
143
143
  const r = n == null ? void 0 : n({
144
144
  title: t.title,
145
145
  column: t
146
- }), i = (r == null ? void 0 : r.filter((T) => T.type !== Symbol.for("v-cmt"))) || [];
146
+ }), i = (r == null ? void 0 : r.filter((b) => b.type !== Symbol.for("v-cmt"))) || [];
147
147
  if (r && i.length > 0)
148
148
  return r;
149
149
  const c = N(t.title) ? u("span", {
@@ -187,9 +187,14 @@ function st(t, e) {
187
187
  return !0;
188
188
  }
189
189
  }
190
+ function ut(t) {
191
+ if (t !== !1)
192
+ return t;
193
+ }
190
194
  export {
191
195
  et as apColumnToColumn,
192
196
  Y as dataIndexToStr,
197
+ ut as falseToUndefined,
193
198
  q as formatParamsValueType,
194
199
  Z as getColumnOrder,
195
200
  R as getFieldProps,
@@ -204,5 +209,5 @@ export {
204
209
  X as parseFieldValue,
205
210
  it as recursionApColumns,
206
211
  nt as updateFormProps,
207
- b as valueEnumToArray
212
+ T as valueEnumToArray
208
213
  };