@aplus-frontend/ui 0.4.13 → 0.4.15

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 (97) hide show
  1. package/es/index.mjs +84 -80
  2. package/es/src/ap-descriptions/help-message/index.vue2.mjs +17 -12
  3. package/es/src/ap-field/date/helper.mjs +9 -9
  4. package/es/src/ap-table/ap-table.vue2.mjs +206 -181
  5. package/es/src/ap-table/hooks/use-table-paging-ng.mjs +62 -62
  6. package/es/src/ap-upload/apUpload.vue.d.ts +9 -0
  7. package/es/src/ap-upload/apUpload.vue.mjs +22 -18
  8. package/es/src/ap-upload/components/MultipleFile.vue2.mjs +66 -66
  9. package/es/src/ap-upload/components/Picture.vue2.mjs +82 -82
  10. package/es/src/ap-upload/components/SingleFile.vue2.mjs +114 -114
  11. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +79 -67
  12. package/es/src/config-provider/config-provider.d.ts +3 -0
  13. package/es/src/config-provider/css-var.d.ts +3 -0
  14. package/es/src/config-provider/css-var.mjs +21 -14
  15. package/es/src/config-provider/index.d.ts +15 -0
  16. package/es/src/hooks/index.d.ts +1 -0
  17. package/es/src/hooks/index.mjs +6 -4
  18. package/es/src/hooks/useResize.d.ts +8 -0
  19. package/es/src/hooks/useResize.mjs +23 -0
  20. package/es/src/index.d.ts +1 -0
  21. package/es/src/index.mjs +212 -209
  22. package/es/src/path-map.mjs +2 -1
  23. package/es/src/resize-observer/index.d.ts +3 -0
  24. package/es/src/resize-observer/index.mjs +2 -0
  25. package/es/src/resize-observer/index.vue.d.ts +25 -0
  26. package/es/src/resize-observer/index.vue.mjs +45 -0
  27. package/es/src/resize-observer/index.vue2.mjs +4 -0
  28. package/es/src/resize-observer/interface.d.ts +27 -0
  29. package/es/src/resize-observer/interface.mjs +1 -0
  30. package/es/src/resize-observer/style/css.d.ts +1 -0
  31. package/es/src/resize-observer/style/css.js +1 -0
  32. package/es/src/resize-observer/style/index.d.ts +1 -0
  33. package/es/src/resize-observer/style/index.js +1 -0
  34. package/es/src/scroll-bar/index.vue.d.ts +1 -0
  35. package/es/src/scroll-bar/index.vue.mjs +31 -30
  36. package/es/src/scroll-bar/interface.d.ts +3 -1
  37. package/es/src/theme/antd-global-overwrite/admin/index.css +24 -2
  38. package/es/src/theme/antd-global-overwrite/admin/table.css +24 -2
  39. package/es/src/theme/antd-global-overwrite/aplus/index.css +24 -2
  40. package/es/src/theme/antd-global-overwrite/aplus/table.css +24 -2
  41. package/es/src/utils/index.d.ts +1 -0
  42. package/es/src/utils/index.mjs +40 -30
  43. package/lib/index.js +1 -1
  44. package/lib/src/ap-descriptions/help-message/index.vue2.js +1 -1
  45. package/lib/src/ap-field/date/helper.js +1 -1
  46. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  47. package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
  48. package/lib/src/ap-upload/apUpload.vue.d.ts +9 -0
  49. package/lib/src/ap-upload/apUpload.vue.js +1 -1
  50. package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -1
  51. package/lib/src/ap-upload/components/Picture.vue2.js +1 -1
  52. package/lib/src/ap-upload/components/SingleFile.vue2.js +1 -1
  53. package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
  54. package/lib/src/config-provider/config-provider.d.ts +3 -0
  55. package/lib/src/config-provider/css-var.d.ts +3 -0
  56. package/lib/src/config-provider/css-var.js +1 -1
  57. package/lib/src/config-provider/index.d.ts +15 -0
  58. package/lib/src/hooks/index.d.ts +1 -0
  59. package/lib/src/hooks/index.js +1 -1
  60. package/lib/src/hooks/useResize.d.ts +8 -0
  61. package/lib/src/hooks/useResize.js +1 -0
  62. package/lib/src/index.d.ts +1 -0
  63. package/lib/src/index.js +1 -1
  64. package/lib/src/path-map.js +1 -1
  65. package/lib/src/resize-observer/index.d.ts +3 -0
  66. package/lib/src/resize-observer/index.js +1 -0
  67. package/lib/src/resize-observer/index.vue.d.ts +25 -0
  68. package/lib/src/resize-observer/index.vue.js +1 -0
  69. package/lib/src/resize-observer/index.vue2.js +1 -0
  70. package/lib/src/resize-observer/interface.d.ts +27 -0
  71. package/lib/src/resize-observer/interface.js +1 -0
  72. package/lib/src/resize-observer/style/css.cjs +1 -0
  73. package/lib/src/resize-observer/style/css.d.ts +1 -0
  74. package/lib/src/resize-observer/style/index.cjs +1 -0
  75. package/lib/src/resize-observer/style/index.d.ts +1 -0
  76. package/lib/src/scroll-bar/index.vue.d.ts +1 -0
  77. package/lib/src/scroll-bar/index.vue.js +1 -1
  78. package/lib/src/scroll-bar/interface.d.ts +3 -1
  79. package/lib/src/theme/antd-global-overwrite/admin/index.css +24 -2
  80. package/lib/src/theme/antd-global-overwrite/admin/table.css +24 -2
  81. package/lib/src/theme/antd-global-overwrite/aplus/index.css +24 -2
  82. package/lib/src/theme/antd-global-overwrite/aplus/table.css +24 -2
  83. package/lib/src/utils/index.d.ts +1 -0
  84. package/lib/src/utils/index.js +1 -1
  85. package/package.json +3 -3
  86. package/theme/antd-global-overwrite/admin/index.css +24 -2
  87. package/theme/antd-global-overwrite/admin/table.css +24 -2
  88. package/theme/antd-global-overwrite/admin/table.less +8 -2
  89. package/theme/antd-global-overwrite/aplus/index.css +24 -2
  90. package/theme/antd-global-overwrite/aplus/table.css +24 -2
  91. package/theme/antd-global-overwrite/aplus/table.less +7 -2
  92. package/theme/ap-descriptions/ap-descriptions.css +3 -0
  93. package/theme/ap-descriptions/ap-descriptions.less +7 -0
  94. package/theme/ap-table/ap-table.css +8 -1
  95. package/theme/ap-table/ap-table.less +11 -9
  96. package/theme/ap-table-modal/index.css +8 -1
  97. package/theme/index.css +11 -1
@@ -1,23 +1,25 @@
1
- import { defineComponent as Te, useSlots as Fe, ref as P, computed as s, unref as t, createVNode as w, Fragment as q, watchEffect as xe, watch as G, openBlock as p, createElementBlock as T, normalizeClass as f, normalizeStyle as M, mergeProps as S, createSlots as _, withCtx as F, renderList as J, createBlock as Q, resolveDynamicComponent as Be, renderSlot as b, createCommentVNode as X, createElementVNode as N, normalizeProps as ke, guardReactiveProps as ze } from "vue";
2
- import { Divider as Pe, Table as Ne } from "@aplus-frontend/antdv";
3
- import { useToken as Ie } from "@aplus-frontend/antdv/es/theme/internal";
4
- import { ApForm as Ee } from "../ap-form/index.mjs";
5
- import { noRenderAsFormItemValueList as Y } from "./constants.mjs";
1
+ import { defineComponent as ze, useSlots as Pe, ref as f, computed as s, unref as r, createVNode as m, Fragment as J, watchEffect as Ne, watch as I, openBlock as y, createElementBlock as x, normalizeClass as g, normalizeStyle as Q, mergeProps as S, createSlots as X, withCtx as w, renderList as Y, createBlock as Z, resolveDynamicComponent as Ie, renderSlot as R, createCommentVNode as ee, createElementVNode as E, normalizeProps as Ee, guardReactiveProps as Ke } from "vue";
2
+ import { Divider as Oe, Table as Le } from "@aplus-frontend/antdv";
3
+ import { useToken as Ve } from "@aplus-frontend/antdv/es/theme/internal";
4
+ import { ApForm as Ae } from "../ap-form/index.mjs";
5
+ import { noRenderAsFormItemValueList as oe } from "./constants.mjs";
6
6
  import "../config-provider/index.mjs";
7
- import { useTablePaging as Ke } from "./hooks/use-table-paging-ng.mjs";
8
- import { isUndefined as m, omit as Z, isBoolean as Oe } from "lodash-unified";
9
- import { getColumnOrder as ee, updateFormProps as Le, getFieldProps as Ve, getSearchFormItemRenderNode as Ae, recursionApColumns as oe, apColumnToColumn as De, getTableTitle as je, getTableRenderType as $e, getTableRenderProps as We, getTableCellRenderNode as He, falseToUndefined as Ue } from "./utils.mjs";
10
- import qe from "./hooks/use-table-content-height.mjs";
11
- import Ge from "./hooks/use-table-row-selection.mjs";
12
- import { isDef as Me } from "../utils/index.mjs";
7
+ import { useTablePaging as De } from "./hooks/use-table-paging-ng.mjs";
8
+ import { isUndefined as b, omit as ae, isBoolean as $e } from "lodash-unified";
9
+ import { getColumnOrder as re, updateFormProps as je, getFieldProps as We, getSearchFormItemRenderNode as He, recursionApColumns as te, apColumnToColumn as _e, getTableTitle as qe, getTableRenderType as Ue, getTableRenderProps as Ge, getTableCellRenderNode as Me, falseToUndefined as Je } from "./utils.mjs";
10
+ import Qe from "./hooks/use-table-content-height.mjs";
11
+ import Xe from "./hooks/use-table-row-selection.mjs";
12
+ import { getScrollbarSize as Ye, isDef as Ze } 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 _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 bo = /* @__PURE__ */ Te({
15
+ import { useProvideApTable as eo } from "./context.mjs";
16
+ import "../scroll-bar/index.mjs";
17
+ import { useNamespace as oo } from "../config-provider/hooks/use-namespace.mjs";
18
+ import { useGlobalConfig as ao } from "../config-provider/hooks/use-global-config.mjs";
19
+ import ro from "./components/paragraph-ellipsis/index.vue2.mjs";
20
+ import to from "./components/setting/modal/index.vue2.mjs";
21
+ import lo from "../scroll-bar/index.vue.mjs";
22
+ const ko = /* @__PURE__ */ ze({
21
23
  name: "ApTable",
22
24
  __name: "ap-table",
23
25
  props: {
@@ -141,175 +143,179 @@ const bo = /* @__PURE__ */ Te({
141
143
  default: void 0
142
144
  }
143
145
  },
144
- setup(ae, {
145
- expose: re
146
+ setup(le, {
147
+ expose: ne
146
148
  }) {
147
- const o = ae;
148
- let I = 0;
149
- const h = Fe(), [, te] = Ie(), {
150
- e: x,
149
+ const o = le;
150
+ let K = 0;
151
+ const se = Ye(), v = Pe(), [, de] = Ve(), {
152
+ e: B,
151
153
  b: i,
152
- be: E
153
- } = Je("ap-table"), K = Qe("valueTypeMap"), {
154
- height: le,
155
- contentRef: ne
156
- } = qe(), B = P(o.size), u = P([]), O = P([]);
157
- _e({
154
+ be: O,
155
+ bm: ue
156
+ } = oo("ap-table"), L = ao("valueTypeMap"), {
157
+ height: ie,
158
+ contentRef: ce
159
+ } = Qe(), k = f(o.size), u = f([]), V = f([]), A = f(), D = f(), $ = f();
160
+ eo({
158
161
  columns: s(() => u.value),
159
- columnsBackup: s(() => O.value),
160
- size: s(() => B.value),
162
+ columnsBackup: s(() => V.value),
163
+ size: s(() => k.value),
161
164
  updateColumns(e) {
162
165
  u.value = e;
163
166
  },
164
167
  updateSize(e) {
165
- B.value = e;
168
+ k.value = e;
166
169
  },
167
- dataSource: s(() => t(y).records)
170
+ dataSource: s(() => r(c).records)
168
171
  });
169
- const L = s(() => {
170
- var e, r, a;
171
- return I++, ((a = (r = (e = o.columns) == null ? void 0 : e.filter((l) => !l.hideInSearch && l.dataIndex && (l.valueType || l.customRenderFormItem) && !Y.includes(l.valueType))) == null ? void 0 : r.sort((l, d) => {
172
- let n = ee(l.order);
173
- return ee(d.order) - n;
172
+ const j = s(() => {
173
+ var e, t, a;
174
+ return K++, ((a = (t = (e = o.columns) == null ? void 0 : e.filter((l) => !l.hideInSearch && l.dataIndex && (l.valueType || l.customRenderFormItem) && !oe.includes(l.valueType))) == null ? void 0 : t.sort((l, d) => {
175
+ let n = re(l.order);
176
+ return re(d.order) - n;
174
177
  })) == null ? void 0 : a.map((l) => {
175
- const d = Le(l, Ve(l.fieldProps, {})), n = {
178
+ const d = je(l, We(l.fieldProps, {})), n = {
176
179
  ...l,
177
180
  fieldProps: {
178
181
  label: l.title,
179
182
  name: l.dataIndex,
180
183
  ...d || {},
181
- _signal: I
184
+ _signal: K
182
185
  },
183
186
  renderNode: void 0
184
187
  };
185
- return n.renderNode = Ae(n, t(K)), n;
188
+ return n.renderNode = He(n, r(L)), n;
186
189
  })) || [];
187
- }), se = s(() => oe(t(u), (e) => {
190
+ }), pe = s(() => te(r(u), (e) => {
188
191
  if (e.sorter === !0)
189
192
  return e.key || e.dataIndex;
190
- }).filter(Boolean)), de = s(() => oe(t(u), (e) => {
193
+ }).filter(Boolean)), fe = s(() => te(r(u), (e) => {
191
194
  if (e.filters && !e.onFilter)
192
195
  return e.key || e.dataIndex;
193
- }).filter(Boolean)), ue = s(() => m(o.dataSource) ? y.records : o.dataSource), {
196
+ }).filter(Boolean)), me = s(() => b(o.dataSource) ? c.records : o.dataSource), {
194
197
  rowSelection: C,
195
- selectedRows: R,
196
- ...v
197
- } = Ge({
198
+ selectedRows: T,
199
+ ...F
200
+ } = Xe({
198
201
  fixed: !0,
199
202
  ...o.rowSelection === !0 ? {} : o.rowSelection,
200
203
  rowKey: o.rowKey,
201
- dataSource: ue
204
+ dataSource: me
202
205
  }), {
203
- formRef: k,
204
- submit: V,
205
- reset: A,
206
- tableProps: D,
207
- refresh: ie,
208
- data: y,
209
- setDataSource: ce,
210
- getColumnSFConfig: pe
211
- } = Ke({
206
+ formRef: z,
207
+ submit: W,
208
+ reset: H,
209
+ tableProps: _,
210
+ refresh: ye,
211
+ data: c,
212
+ setDataSource: ge,
213
+ getColumnSFConfig: be
214
+ } = De({
212
215
  async request(e) {
213
216
  var a, l;
214
- if (!C.value.preserveSelectedRowKeys && m(o.dataSource) && v.clearAll(), !m(o.dataSource))
217
+ if (!C.value.preserveSelectedRowKeys && b(o.dataSource) && F.clearAll(), !b(o.dataSource))
215
218
  return {
216
219
  data: o.dataSource || [],
217
220
  total: o.dataSource.length || 0
218
221
  };
219
- const r = await ((a = o.request) == null ? void 0 : a.call(o, e));
220
- return (l = o.onLoad) == null || l.call(o, (r == null ? void 0 : r.data) || []), {
221
- data: (r == null ? void 0 : r.data) || [],
222
- total: (r == null ? void 0 : r.total) || 0
222
+ const t = await ((a = o.request) == null ? void 0 : a.call(o, e));
223
+ return (l = o.onLoad) == null || l.call(o, (t == null ? void 0 : t.data) || []), {
224
+ data: (t == null ? void 0 : t.data) || [],
225
+ total: (t == null ? void 0 : t.total) || 0
223
226
  };
224
227
  },
225
- filterFields: de,
226
- sortFields: se,
228
+ filterFields: fe,
229
+ sortFields: pe,
227
230
  defaultParams: o.params,
228
231
  defaultData: o.defaultData,
229
232
  manual: o.manual,
230
233
  formatParams: o.beforeSearchSubmit,
231
234
  pagination: o.pagination
232
- }), fe = () => {
235
+ }), he = () => {
233
236
  var a;
234
237
  let e = ((a = o.columns) == null ? void 0 : a.filter((l) => !l.hideInTable)) || [];
235
- function r(l, d) {
238
+ function t(l, d) {
236
239
  return l.map((n) => ({
237
- resizable: Me(n.resizable) ? n.resizable : o.columnResizable,
238
- ...Z(De(n), ["ellipsis"]),
239
- ...pe(n),
240
+ resizable: Ze(n.resizable) ? n.resizable : o.columnResizable,
241
+ ...ae(_e(n), ["ellipsis"]),
242
+ ...be(n),
240
243
  fixed: d ? d.fixed : n.fixed,
241
- title: je(n, E("table-header", "title"), h.headerCell, t(te).colorPrimary),
244
+ title: qe(n, O("table-header", "title"), v.headerCell, r(de).colorPrimary),
242
245
  customRender({
243
- value: c,
244
- ...g
246
+ value: p,
247
+ ...h
245
248
  }) {
246
- var H, U;
247
- const $ = $e(n), Ce = We({
249
+ var G, M;
250
+ const q = Ue(n), xe = Ge({
248
251
  ...n,
249
- valueType: $
252
+ valueType: q
250
253
  }, {
251
- value: c,
252
- ...g
253
- }), Re = He($, Ce, g.record, t(K)), W = ((H = n.renderText) == null ? void 0 : H.call(n, {
254
- value: c,
255
- ...g
256
- })) || c, ve = n.renderText ? w(q, null, [(U = n.renderText) == null ? void 0 : U.call(n, {
257
- value: c,
258
- ...g
259
- })]) : Re;
260
- let z = we(n, W, ve);
261
- return n.customRender && (z = n.customRender({
262
- value: c,
263
- ...g,
254
+ value: p,
255
+ ...h
256
+ }), Be = Me(q, xe, h.record, r(L)), U = ((G = n.renderText) == null ? void 0 : G.call(n, {
257
+ value: p,
258
+ ...h
259
+ })) || p, ke = n.renderText ? m(J, null, [(M = n.renderText) == null ? void 0 : M.call(n, {
260
+ value: p,
261
+ ...h
262
+ })]) : Be;
263
+ let N = ve(n, U, ke);
264
+ return n.customRender && (N = n.customRender({
265
+ value: p,
266
+ ...h,
264
267
  column: n,
265
- originalNode: z,
266
- originalText: W
267
- })), z;
268
+ originalNode: N,
269
+ originalText: U
270
+ })), N;
268
271
  },
269
- children: r(n.children || [], d || n)
272
+ children: t(n.children || [], d || n)
270
273
  }));
271
274
  }
272
- return r(e);
275
+ return t(e);
273
276
  };
274
- xe(() => {
275
- const e = fe();
276
- u.value = e, O.value = e;
277
+ Ne(() => {
278
+ const e = he();
279
+ u.value = e, V.value = e;
277
280
  });
278
- const me = s(() => {
279
- var r, a;
280
- if (o.adaptive && (y.total > 0 || ((r = o.dataSource) == null ? void 0 : r.length)))
281
+ const Se = s(() => {
282
+ var t, a;
283
+ if (o.adaptive && (c.total > 0 || ((t = o.dataSource) == null ? void 0 : t.length)))
281
284
  return {
282
- y: t(le),
285
+ y: r(ie),
283
286
  x: ((a = o.scroll) == null ? void 0 : a.x) || "100%"
284
287
  };
285
288
  if (o.scroll)
286
289
  return o.scroll;
287
- }), ye = s(() => {
290
+ }), we = s(() => {
288
291
  var e;
289
292
  if (o.tableLayout)
290
293
  return o.tableLayout;
291
- if ((e = o.columns) != null && e.some((r) => r.ellipsis))
294
+ if ((e = o.columns) != null && e.some((t) => t.ellipsis))
292
295
  return "fixed";
293
- }), j = s(() => {
296
+ }), P = s(() => {
294
297
  var a;
295
- const e = t(D), r = t(C);
298
+ const e = r(_), t = r(C);
296
299
  return {
297
300
  ...o,
298
301
  ...e,
299
302
  rowSelection: o.rowSelection === !0 || ((a = o.rowSelection) == null ? void 0 : a.mode) === "internal" ? {
300
- ...r,
303
+ ...t,
301
304
  // tips 如果是前端分页,则默认会走缓存
302
- preserveSelectedRowKeys: m(o.dataSource) ? r.preserveSelectedRowKeys : !0
303
- } : Ue(o.rowSelection),
304
- loading: m(o.loading) ? e.loading : o.loading,
305
+ preserveSelectedRowKeys: b(o.dataSource) ? t.preserveSelectedRowKeys : !0
306
+ } : Je(o.rowSelection),
307
+ loading: b(o.loading) ? e.loading : o.loading,
305
308
  pagination: o.pagination === !1 ? !1 : e.pagination,
306
- scroll: t(me)
309
+ scroll: r(Se)
307
310
  };
308
- }), ge = s(() => [i(), o.card ? null : i("wrapper"), o.adaptive ? i("adaptive") : null].filter(Boolean));
309
- function we(e, r, a) {
310
- return Y.includes(e.valueType) ? a : e.copyable || e.ellipsis ? w(Xe, {
311
+ }), Re = s(() => {
312
+ var e;
313
+ return [i(), o.card ? null : i("wrapper"), o.adaptive ? i("adaptive") : null, (e = D.value) != null && e.visible ? ue("horizontal", "scrollable") : null].filter(Boolean);
314
+ });
315
+ function ve(e, t, a) {
316
+ return oe.includes(e.valueType) ? a : e.copyable || e.ellipsis ? m(ro, {
311
317
  copyable: e.copyable,
312
- ellipsis: e.ellipsis ? Oe(e.ellipsis) ? {
318
+ ellipsis: e.ellipsis ? $e(e.ellipsis) ? {
313
319
  tooltip: a,
314
320
  rows: 1
315
321
  } : {
@@ -319,53 +325,62 @@ const bo = /* @__PURE__ */ Te({
319
325
  content: a
320
326
  }, null) : a;
321
327
  }
322
- G(() => t(y).loading, (e) => {
323
- var r;
324
- (r = o.onLoadingChange) == null || r.call(o, e);
325
- }), G(() => o.dataSource, (e) => {
326
- ce(e);
328
+ I(() => r(c).loading, (e) => {
329
+ var t;
330
+ (t = o.onLoadingChange) == null || t.call(o, e);
331
+ }), I(() => r(c).records, () => {
332
+ var e;
333
+ $.value = (e = A.value) == null ? void 0 : e.querySelector(".ant-table-container > div:last-child");
334
+ }, {
335
+ flush: "post",
336
+ immediate: !0,
337
+ deep: !0
338
+ }), I(() => o.dataSource, (e) => {
339
+ ge(e);
327
340
  }, {
328
341
  immediate: !0
329
342
  });
330
- function Se(e) {
331
- var r, a, l;
332
- (l = (a = (r = k.value) == null ? void 0 : r.apForm) == null ? void 0 : a.setFieldsValue) == null || l.call(a, e);
343
+ function Ce(e) {
344
+ var t, a, l;
345
+ (l = (a = (t = z.value) == null ? void 0 : t.apForm) == null ? void 0 : a.setFieldsValue) == null || l.call(a, e);
333
346
  }
334
- function be(e = !1) {
347
+ function Te(e = !1) {
335
348
  var a, l, d;
336
- const r = e ? "getFieldsValueTransformed" : "getFieldsValue";
337
- return (d = (l = (a = k.value) == null ? void 0 : a.apForm) == null ? void 0 : l[r]) == null ? void 0 : d.call(l, !0);
349
+ const t = e ? "getFieldsValueTransformed" : "getFieldsValue";
350
+ return (d = (l = (a = z.value) == null ? void 0 : a.apForm) == null ? void 0 : l[t]) == null ? void 0 : d.call(l, !0);
338
351
  }
339
- function he() {
340
- return t(u);
352
+ function Fe() {
353
+ return r(u);
341
354
  }
342
- return re({
343
- submit: () => V(),
344
- reset: () => A(),
345
- refresh: () => ie(),
346
- setSearchFormValues: Se,
347
- getSearchFormValues: be,
348
- getShownColumns: he,
349
- dataSource: s(() => t(y).records),
355
+ return ne({
356
+ submit: () => W(),
357
+ reset: () => H(),
358
+ refresh: () => ye(),
359
+ setSearchFormValues: Ce,
360
+ getSearchFormValues: Te,
361
+ getShownColumns: Fe,
362
+ dataSource: s(() => r(c).records),
350
363
  rowSelection: {
351
- selectedRows: s(() => t(R)),
352
- ...v
364
+ selectedRows: s(() => r(T)),
365
+ ...F
353
366
  }
354
- }), (e, r) => (p(), T("div", {
355
- class: f(ge.value)
356
- }, [t(m)(e.dataSource) && e.searchForm !== !1 && L.value.length > 0 ? (p(), T("div", {
367
+ }), (e, t) => (y(), x("div", {
368
+ ref_key: "apTableRef",
369
+ ref: A,
370
+ class: g(Re.value)
371
+ }, [r(b)(e.dataSource) && e.searchForm !== !1 && j.value.length > 0 ? (y(), x("div", {
357
372
  key: 0,
358
- class: f(e.card ? t(x)("search-wrapper") : null),
359
- style: M(e.searchFormWrapperStyle)
360
- }, [w(t(Ee).SearchForm, S(e.searchForm || {}, {
373
+ class: g(e.card ? r(B)("search-wrapper") : null),
374
+ style: Q(e.searchFormWrapperStyle)
375
+ }, [m(r(Ae).SearchForm, S(e.searchForm || {}, {
361
376
  ref_key: "formRef",
362
- ref: k,
377
+ ref: z,
363
378
  "custom-reset": "",
364
- "submit-loading": t(D).loading,
365
- onSubmit: t(V),
366
- onReset: t(A)
367
- }), _({
368
- default: F(() => [(p(!0), T(q, null, J(L.value, (a) => (p(), Q(Be(a.renderNode.Comp), S({
379
+ "submit-loading": r(_).loading,
380
+ onSubmit: r(W),
381
+ onReset: r(H)
382
+ }), X({
383
+ default: w(() => [(y(!0), x(J, null, Y(j.value, (a) => (y(), Z(Ie(a.renderNode.Comp), S({
369
384
  key: a.dataIndex,
370
385
  item: a,
371
386
  ref_for: !0
@@ -374,56 +389,66 @@ const bo = /* @__PURE__ */ Te({
374
389
  "custom-render": a.renderNode.render
375
390
  }), null, 16, ["item", "span", "custom-render"]))), 128))]),
376
391
  _: 2
377
- }, [h.searchFormExtra ? {
392
+ }, [v.searchFormExtra ? {
378
393
  name: "extra",
379
- fn: F(() => [b(e.$slots, "searchFormExtra")]),
394
+ fn: w(() => [R(e.$slots, "searchFormExtra")]),
380
395
  key: "0"
381
- } : void 0]), 1040, ["submit-loading", "onSubmit", "onReset"])], 6)) : X("", !0), N("div", {
396
+ } : void 0]), 1040, ["submit-loading", "onSubmit", "onReset"])], 6)) : ee("", !0), E("div", {
382
397
  ref_key: "contentRef",
383
- ref: ne,
384
- class: f([t(x)("table-wrapper"), e.card ? t(x)("table-wrapper-card") : null]),
385
- style: M(e.tableWrapperStyle)
386
- }, [N("div", {
387
- class: f(t(i)("header-wrapper"))
388
- }, [e.settings ? (p(), T("div", {
398
+ ref: ce,
399
+ class: g([r(B)("table-wrapper"), e.card ? r(B)("table-wrapper-card") : null]),
400
+ style: Q(e.tableWrapperStyle)
401
+ }, [E("div", {
402
+ class: g(r(i)("header-wrapper"))
403
+ }, [e.settings ? (y(), x("div", {
389
404
  key: 0,
390
- class: f(t(i)("header"))
391
- }, [N("div", {
392
- class: f(t(E)("header", "title"))
393
- }, [b(e.$slots, "title", S({
394
- selectedRows: t(R),
395
- selectedRowKeys: t(C).selectedRowKeys,
405
+ class: g(r(i)("header"))
406
+ }, [E("div", {
407
+ class: g(r(O)("header", "title"))
408
+ }, [R(e.$slots, "title", S({
409
+ selectedRows: r(T),
410
+ selectedRowKeys: r(C).selectedRowKeys,
396
411
  shownColumns: u.value
397
- }, v))], 2), h.title ? (p(), Q(t(Pe), {
412
+ }, F))], 2), v.title ? (y(), Z(r(Oe), {
398
413
  key: 0,
399
414
  type: "vertical"
400
- })) : X("", !0), w(Ye, {
415
+ })) : ee("", !0), m(to, {
401
416
  config: e.settings === !0 ? {} : e.settings
402
- }, null, 8, ["config"])], 2)) : b(e.$slots, "title", S({
417
+ }, null, 8, ["config"])], 2)) : R(e.$slots, "title", S({
403
418
  key: 1,
404
- selectedRows: t(R),
405
- selectedRowKeys: t(C).selectedRowKeys,
419
+ selectedRows: r(T),
420
+ selectedRowKeys: r(C).selectedRowKeys,
406
421
  shownColumns: u.value
407
- }, v))], 2), w(t(Ne), S({
408
- class: t(i)("table")
409
- }, j.value, {
410
- size: B.value,
411
- "table-layout": ye.value,
422
+ }, F))], 2), m(r(Le), S({
423
+ class: r(i)("table")
424
+ }, P.value, {
425
+ size: k.value,
426
+ "table-layout": we.value,
412
427
  columns: u.value,
413
- onResizeColumn: r[0] || (r[0] = (a, l) => l.width = a)
414
- }), _({
415
- summary: F(() => [b(e.$slots, "summary", {
428
+ onResizeColumn: t[0] || (t[0] = (a, l) => l.width = a)
429
+ }), X({
430
+ summary: w(() => [R(e.$slots, "summary", {
416
431
  columns: u.value,
417
- records: j.value.dataSource,
418
- selectedRows: t(R)
432
+ records: P.value.dataSource,
433
+ selectedRows: r(T)
419
434
  })]),
435
+ bottomPaginationTop: w(() => {
436
+ var a;
437
+ return [m(r(lo), {
438
+ ref_key: "scrollBarRef",
439
+ ref: D,
440
+ "scroll-container": $.value,
441
+ direction: "horizontal",
442
+ "extra-size": (a = P.value.scroll) != null && a.y ? r(se) : 0
443
+ }, null, 8, ["scroll-container", "extra-size"])];
444
+ }),
420
445
  _: 2
421
- }, [J(t(Z)(h, ["title", "searchFormExtra", "headerCell", "summary"]), (a, l) => ({
446
+ }, [Y(r(ae)(v, ["title", "searchFormExtra", "headerCell", "summary"]), (a, l) => ({
422
447
  name: l,
423
- fn: F((d) => [b(e.$slots, l, ke(ze(d || {})))])
448
+ fn: w((d) => [R(e.$slots, l, Ee(Ke(d || {})))])
424
449
  }))]), 1040, ["class", "size", "table-layout", "columns"])], 6)], 2));
425
450
  }
426
451
  });
427
452
  export {
428
- bo as default
453
+ ko as default
429
454
  };