@aplus-frontend/ui 0.6.4 → 0.6.5

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 (70) hide show
  1. package/es/src/ap-form/interface.d.ts +23 -3
  2. package/es/src/ap-form/item-group/index.vue.mjs +33 -27
  3. package/es/src/ap-form/items/text/index.vue.d.ts +2 -2
  4. package/es/src/ap-form/items/text/password.vue.d.ts +2 -2
  5. package/es/src/ap-form/search-form/components/popover-sorter/index.vue.d.ts +4 -2
  6. package/es/src/ap-form/search-form/components/popover-sorter/index.vue2.mjs +70 -72
  7. package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue.d.ts +3 -2
  8. package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.mjs +16 -24
  9. package/es/src/ap-form/search-form/hooks/use-sorter.d.ts +7 -0
  10. package/es/src/ap-form/search-form/hooks/use-sorter.mjs +42 -0
  11. package/es/src/ap-form/search-form/index.vue.d.ts +6 -3
  12. package/es/src/ap-form/search-form/index.vue.mjs +101 -91
  13. package/es/src/ap-grid/index.vue.mjs +219 -201
  14. package/es/src/ap-grid/interface.d.ts +17 -1
  15. package/es/src/ap-table/ap-table.vue.d.ts +4 -0
  16. package/es/src/ap-table/ap-table.vue2.mjs +223 -205
  17. package/es/src/ap-table/constants.d.ts +2 -2
  18. package/es/src/ap-table/context.d.ts +4 -0
  19. package/es/src/ap-table/context.mjs +21 -21
  20. package/es/src/ap-table/interface.d.ts +17 -1
  21. package/es/src/ap-table/utils.d.ts +2 -2
  22. package/es/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +4 -0
  23. package/es/src/business/ap-table-modal/hooks/use-table-modal.d.ts +4 -0
  24. package/es/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +4 -0
  25. package/es/src/business/ap-table-modal/index.d.ts +13 -0
  26. package/es/src/business/ap-table-modal/table-modal.vue.d.ts +7 -0
  27. package/es/src/business/ap-view/ap-view.vue2.mjs +107 -109
  28. package/es/src/business/ap-view/components/main-button-content.vue2.mjs +72 -71
  29. package/es/src/business/ap-view/interface.d.ts +4 -0
  30. package/es/src/business/batch-input-group/index.vue.d.ts +1 -1
  31. package/es/src/business/hooks/usePageListApTable.d.ts +4 -0
  32. package/es/src/version.d.ts +1 -1
  33. package/es/src/version.mjs +1 -1
  34. package/lib/src/ap-form/interface.d.ts +23 -3
  35. package/lib/src/ap-form/item-group/index.vue.js +1 -1
  36. package/lib/src/ap-form/items/text/index.vue.d.ts +2 -2
  37. package/lib/src/ap-form/items/text/password.vue.d.ts +2 -2
  38. package/lib/src/ap-form/search-form/components/popover-sorter/index.vue.d.ts +4 -2
  39. package/lib/src/ap-form/search-form/components/popover-sorter/index.vue2.js +1 -1
  40. package/lib/src/ap-form/search-form/components/popover-sorter/sortable-item.vue.d.ts +3 -2
  41. package/lib/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.js +1 -1
  42. package/lib/src/ap-form/search-form/hooks/use-sorter.d.ts +7 -0
  43. package/lib/src/ap-form/search-form/hooks/use-sorter.js +1 -0
  44. package/lib/src/ap-form/search-form/index.vue.d.ts +6 -3
  45. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  46. package/lib/src/ap-grid/index.vue.js +1 -1
  47. package/lib/src/ap-grid/interface.d.ts +17 -1
  48. package/lib/src/ap-table/ap-table.vue.d.ts +4 -0
  49. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  50. package/lib/src/ap-table/constants.d.ts +2 -2
  51. package/lib/src/ap-table/context.d.ts +4 -0
  52. package/lib/src/ap-table/context.js +1 -1
  53. package/lib/src/ap-table/interface.d.ts +17 -1
  54. package/lib/src/ap-table/utils.d.ts +2 -2
  55. package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +4 -0
  56. package/lib/src/business/ap-table-modal/hooks/use-table-modal.d.ts +4 -0
  57. package/lib/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +4 -0
  58. package/lib/src/business/ap-table-modal/index.d.ts +13 -0
  59. package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +7 -0
  60. package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
  61. package/lib/src/business/ap-view/components/main-button-content.vue2.js +1 -1
  62. package/lib/src/business/ap-view/interface.d.ts +4 -0
  63. package/lib/src/business/batch-input-group/index.vue.d.ts +1 -1
  64. package/lib/src/business/hooks/usePageListApTable.d.ts +4 -0
  65. package/lib/src/version.d.ts +1 -1
  66. package/lib/src/version.js +1 -1
  67. package/package.json +1 -1
  68. package/theme/ap-grid/index.css +15 -0
  69. package/theme/ap-grid/index.less +14 -0
  70. package/theme/index.css +15 -0
@@ -1,27 +1,27 @@
1
- import { defineComponent as Ae, useSlots as $e, ref as w, computed as s, unref as l, toRef as De, createVNode as m, Fragment as re, watch as k, createElementBlock as B, openBlock as y, normalizeStyle as K, normalizeClass as g, createCommentVNode as oe, createElementVNode as L, mergeProps as v, createSlots as ae, withCtx as R, renderList as te, createBlock as le, resolveDynamicComponent as je, renderSlot as C, normalizeProps as We, guardReactiveProps as _e } from "vue";
2
- import { Divider as He, Table as Ue } from "@aplus-frontend/antdv";
3
- import { useToken as qe } from "@aplus-frontend/antdv/es/theme/internal";
4
- import { ApForm as Me } from "../ap-form/index.mjs";
5
- import { noRenderAsFormItemValueList as ne } from "./constants.mjs";
1
+ import { defineComponent as je, useSlots as We, ref as v, computed as s, unref as l, toRef as _e, createVNode as y, Fragment as ae, watch as B, createElementBlock as I, openBlock as g, normalizeStyle as K, normalizeClass as b, createCommentVNode as le, createElementVNode as L, mergeProps as R, createSlots as ne, withCtx as C, renderList as se, createBlock as de, resolveDynamicComponent as He, renderSlot as T, normalizeProps as Ue, guardReactiveProps as qe } from "vue";
2
+ import { Divider as Me, Table as Ge } from "@aplus-frontend/antdv";
3
+ import { useToken as Je } from "@aplus-frontend/antdv/es/theme/internal";
4
+ import { ApForm as Qe } from "../ap-form/index.mjs";
5
+ import { noRenderAsFormItemValueList as ue } from "./constants.mjs";
6
6
  import "../config-provider/index.mjs";
7
- import { useTablePaging as Ge } from "./hooks/use-table-paging-ng.mjs";
8
- import { isUndefined as b, omit as se, isBoolean as Je } from "lodash-unified";
9
- import { getColumnOrder as de, updateFormProps as Qe, getFieldProps as Xe, getSearchFormItemRenderNode as Ye, recursionApColumns as ue, getTableTitle as Ze, getTableRenderType as er, getTableRenderProps as rr, getTableCellRenderNode as or, apColumnToColumn as ar, falseToUndefined as tr, objectToString as lr } from "./utils.mjs";
10
- import nr from "./hooks/use-table-content-height.mjs";
11
- import sr from "./hooks/use-table-row-selection.mjs";
12
- import { getScrollbarSize as dr, isDef as ie } from "../utils/index.mjs";
7
+ import { useTablePaging as Xe } from "./hooks/use-table-paging-ng.mjs";
8
+ import { isUndefined as S, omit as ie, isBoolean as Ye } from "lodash-unified";
9
+ import { getColumnOrder as ce, updateFormProps as Ze, getFieldProps as er, getSearchFormItemRenderNode as rr, recursionApColumns as fe, getTableTitle as or, getTableRenderType as tr, getTableRenderProps as ar, getTableCellRenderNode as lr, apColumnToColumn as nr, falseToUndefined as sr, objectToString as dr } from "./utils.mjs";
10
+ import ur from "./hooks/use-table-content-height.mjs";
11
+ import ir from "./hooks/use-table-row-selection.mjs";
12
+ import { getScrollbarSize as cr, isDef as pe } 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 ur } from "./context.mjs";
15
+ import { useProvideApTable as fr } from "./context.mjs";
16
16
  import "../scroll-bar/index.mjs";
17
- import { useStickyScroll as ir } from "./hooks/use-sticky-scroll.mjs";
18
- import { getValidVNodeList as cr } from "../utils/slot.mjs";
19
- import { useNamespace as fr } from "../config-provider/hooks/use-namespace.mjs";
20
- import { useGlobalConfig as pr } from "../config-provider/hooks/use-global-config.mjs";
21
- import mr from "./components/paragraph-ellipsis/index.vue2.mjs";
22
- import yr from "./components/setting/modal/index.vue2.mjs";
23
- import gr from "../scroll-bar/index.vue.mjs";
24
- const Dr = /* @__PURE__ */ Ae({
17
+ import { useStickyScroll as pr } from "./hooks/use-sticky-scroll.mjs";
18
+ import { getValidVNodeList as mr } from "../utils/slot.mjs";
19
+ import { useNamespace as yr } from "../config-provider/hooks/use-namespace.mjs";
20
+ import { useGlobalConfig as gr } from "../config-provider/hooks/use-global-config.mjs";
21
+ import br from "./components/paragraph-ellipsis/index.vue2.mjs";
22
+ import Sr from "./components/setting/modal/index.vue2.mjs";
23
+ import hr from "../scroll-bar/index.vue.mjs";
24
+ const _r = /* @__PURE__ */ je({
25
25
  name: "ApTable",
26
26
  __name: "ap-table",
27
27
  props: {
@@ -145,25 +145,25 @@ const Dr = /* @__PURE__ */ Ae({
145
145
  default: void 0
146
146
  }
147
147
  },
148
- setup(ce, {
149
- expose: fe
148
+ setup(me, {
149
+ expose: ye
150
150
  }) {
151
- const r = ce;
151
+ const r = me;
152
152
  let O = 0;
153
- const c = $e(), [, pe] = qe(), {
153
+ const c = We(), [, ge] = Je(), {
154
154
  e: z,
155
155
  b: f,
156
156
  be: A,
157
- m: me,
158
- cssVar: ye
159
- } = fr("ap-table"), $ = pr("valueTypeMap"), {
160
- height: ge,
161
- contentRef: be
162
- } = nr(), D = w(), j = w(), {
157
+ m: be,
158
+ cssVar: Se
159
+ } = yr("ap-table"), $ = gr("valueTypeMap"), {
160
+ height: he,
161
+ contentRef: we
162
+ } = ur(), D = v(), j = v(), {
163
163
  isStickyMode: W,
164
164
  scrollBarRef: i
165
- } = ir(D), N = w(r.size), u = w([]), _ = w([]), H = dr();
166
- ur({
165
+ } = pr(D), N = v(r.size), u = v([]), _ = v([]), H = cr();
166
+ fr({
167
167
  columns: s(() => u.value),
168
168
  columnsBackup: s(() => _.value),
169
169
  size: s(() => N.value),
@@ -173,23 +173,26 @@ const Dr = /* @__PURE__ */ Ae({
173
173
  updateSize(e) {
174
174
  N.value = e;
175
175
  },
176
- dataSource: s(() => l(S).records),
176
+ dataSource: s(() => l(h).records),
177
177
  getSearchFormValues: Q,
178
178
  setSearchFormValues: J,
179
- submit: () => I(),
180
- reset: () => V()
179
+ submit: () => P(),
180
+ reset: () => V(),
181
+ getSearchFormSorterItems: X,
182
+ setSearchFormSorterItems: Y,
183
+ resetSearchFormSorterItems: Z
181
184
  });
182
185
  const U = s(() => {
183
- var e, a, o;
184
- return O++, ((o = (a = (e = r.columns) == null ? void 0 : e.filter((t) => !t.hideInSearch && t.dataIndex && (t.valueType || t.customRenderFormItem) && !ne.includes(t.valueType))) == null ? void 0 : a.sort((t, d) => {
185
- let n = de(t.order);
186
- return de(d.order) - n;
187
- })) == null ? void 0 : o.map((t) => {
188
- const d = Qe(t, Xe(t.fieldProps, {})), n = {
189
- ...t,
186
+ var e, o, t;
187
+ return O++, ((t = (o = (e = r.columns) == null ? void 0 : e.filter((a) => !a.hideInSearch && a.dataIndex && (a.valueType || a.customRenderFormItem) && !ue.includes(a.valueType))) == null ? void 0 : o.sort((a, d) => {
188
+ let n = ce(a.order);
189
+ return ce(d.order) - n;
190
+ })) == null ? void 0 : t.map((a) => {
191
+ const d = Ze(a, er(a.fieldProps, {})), n = {
192
+ ...a,
190
193
  fieldProps: {
191
- label: t.title,
192
- name: t.dataIndex,
194
+ label: a.title,
195
+ name: a.dataIndex,
193
196
  // tips: 在表格中的查询表单项默认是带边框的
194
197
  bordered: !0,
195
198
  ...d || {},
@@ -197,208 +200,220 @@ const Dr = /* @__PURE__ */ Ae({
197
200
  },
198
201
  renderNode: void 0
199
202
  };
200
- return n.renderNode = Ye(n, l($)), n;
203
+ return n.renderNode = rr(n, l($)), n;
201
204
  })) || [];
202
- }), Se = s(() => ue(l(u), (e) => {
205
+ }), ve = s(() => fe(l(u), (e) => {
203
206
  if (e.sorter === !0)
204
207
  return e.key || (e == null ? void 0 : e.dataIndex);
205
- }).filter(Boolean)), he = s(() => ue(l(u), (e) => {
208
+ }).filter(Boolean)), Re = s(() => fe(l(u), (e) => {
206
209
  if (e.filters && !e.onFilter)
207
210
  return e.key || (e == null ? void 0 : e.dataIndex);
208
- }).filter(Boolean)), we = s(() => b(r.dataSource) ? S.records : r.dataSource), ve = s(() => {
209
- var a;
210
- return ie(r.manual) ? r.manual : cr(((a = c.searchFormExtra) == null ? void 0 : a.call(c)) || []).some((o) => {
211
- var t;
212
- return ((t = o.type) == null ? void 0 : t.name) === "ApView";
211
+ }).filter(Boolean)), Ce = s(() => S(r.dataSource) ? h.records : r.dataSource), Te = s(() => {
212
+ var o;
213
+ return pe(r.manual) ? r.manual : mr(((o = c.searchFormExtra) == null ? void 0 : o.call(c)) || []).some((t) => {
214
+ var a;
215
+ return ((a = t.type) == null ? void 0 : a.name) === "ApView";
213
216
  });
214
217
  }), {
215
- rowSelection: T,
218
+ rowSelection: F,
216
219
  selectedRows: x,
217
- ...F
218
- } = sr({
220
+ ...k
221
+ } = ir({
219
222
  fixed: !0,
220
223
  ...r.rowSelection === !0 ? {} : r.rowSelection,
221
224
  rowKey: r.rowKey,
222
- dataSource: we
225
+ dataSource: Ce
223
226
  }), {
224
- formRef: P,
225
- submit: I,
227
+ formRef: p,
228
+ submit: P,
226
229
  reset: V,
227
230
  tableProps: q,
228
- refresh: Re,
229
- data: S,
230
- setDataSource: Ce,
231
+ refresh: Fe,
232
+ data: h,
233
+ setDataSource: xe,
231
234
  getColumnSFConfig: M,
232
- sortedInfo: Te,
233
- filteredInfo: xe,
234
- setPaging: Fe,
235
- getPaging: ke
236
- } = Ge({
235
+ sortedInfo: ke,
236
+ filteredInfo: Be,
237
+ setPaging: Ie,
238
+ getPaging: ze
239
+ } = Xe({
237
240
  async request(e) {
238
- var o, t;
239
- if (!T.value.preserveSelectedRowKeys && b(r.dataSource) && F.clearAll(), !b(r.dataSource))
241
+ var t, a;
242
+ if (!F.value.preserveSelectedRowKeys && S(r.dataSource) && k.clearAll(), !S(r.dataSource))
240
243
  return {
241
244
  data: r.dataSource || [],
242
245
  total: r.dataSource.length || 0
243
246
  };
244
- const a = await ((o = r.request) == null ? void 0 : o.call(r, e));
245
- return (t = r.onLoad) == null || t.call(r, (a == null ? void 0 : a.data) || []), {
246
- data: (a == null ? void 0 : a.data) || [],
247
- total: (a == null ? void 0 : a.total) || 0
247
+ const o = await ((t = r.request) == null ? void 0 : t.call(r, e));
248
+ return (a = r.onLoad) == null || a.call(r, (o == null ? void 0 : o.data) || []), {
249
+ data: (o == null ? void 0 : o.data) || [],
250
+ total: (o == null ? void 0 : o.total) || 0
248
251
  };
249
252
  },
250
- filterFields: he,
251
- sortFields: Se,
252
- params: De(r, "params"),
253
+ filterFields: Re,
254
+ sortFields: ve,
255
+ params: _e(r, "params"),
253
256
  defaultData: r.defaultData,
254
- manual: l(ve),
257
+ manual: l(Te),
255
258
  formatParams: r.beforeSearchSubmit,
256
259
  pagination: r.pagination
257
- }), Be = () => {
258
- var o;
259
- let e = ((o = r.columns) == null ? void 0 : o.filter((t) => !t.hideInTable)) || [];
260
- function a(t, d) {
261
- return t.map((n) => ({
262
- resizable: ie(n.resizable) ? n.resizable : r.columnResizable,
263
- ...se(ar(n), ["ellipsis"]),
260
+ }), Ne = () => {
261
+ var t;
262
+ let e = ((t = r.columns) == null ? void 0 : t.filter((a) => !a.hideInTable)) || [];
263
+ function o(a, d) {
264
+ return a.map((n) => ({
265
+ resizable: pe(n.resizable) ? n.resizable : r.columnResizable,
266
+ ...ie(nr(n), ["ellipsis"]),
264
267
  // tips: 此函数内部依赖查询&筛选的相应式值
265
268
  ...M(n),
266
269
  fixed: d ? d.fixed : n.fixed,
267
- title: Ze(n, A("table-header", "title"), c.headerCell, l(pe).colorTextTertiary),
270
+ title: or(n, A("table-header", "title"), c.headerCell, l(ge).colorTextTertiary),
268
271
  customRender({
269
- value: p,
270
- ...h
272
+ value: m,
273
+ ...w
271
274
  }) {
272
- var Z, ee;
273
- const X = er(n), Ke = rr({
275
+ var oe, te;
276
+ const ee = tr(n), Ae = ar({
274
277
  ...n,
275
- valueType: X
278
+ valueType: ee
276
279
  }, {
277
- value: p,
278
- ...h
279
- }), Le = or(X, Ke, h.record, l($)), Y = ((Z = n.renderText) == null ? void 0 : Z.call(n, {
280
- value: p,
281
- ...h
282
- })) || p, Oe = n.renderText ? m(re, null, [(ee = n.renderText) == null ? void 0 : ee.call(n, {
283
- value: p,
284
- ...h
285
- })]) : Le;
286
- let E = Ve(n, Y, Oe);
280
+ value: m,
281
+ ...w
282
+ }), $e = lr(ee, Ae, w.record, l($)), re = ((oe = n.renderText) == null ? void 0 : oe.call(n, {
283
+ value: m,
284
+ ...w
285
+ })) || m, De = n.renderText ? y(ae, null, [(te = n.renderText) == null ? void 0 : te.call(n, {
286
+ value: m,
287
+ ...w
288
+ })]) : $e;
289
+ let E = Le(n, re, De);
287
290
  return n.customRender && (E = n.customRender({
288
- value: p,
289
- ...h,
291
+ value: m,
292
+ ...w,
290
293
  column: n,
291
294
  originalNode: E,
292
- originalText: Y
295
+ originalText: re
293
296
  })), E;
294
297
  },
295
- children: a(n.children || [], d || n)
298
+ children: o(n.children || [], d || n)
296
299
  }));
297
300
  }
298
- return a(e);
299
- }, ze = () => {
300
- function e(a) {
301
- var o;
302
- for (const t of a)
303
- (o = t.children) != null && o.length ? e(t.children) : M(t, !0);
301
+ return o(e);
302
+ }, Pe = () => {
303
+ function e(o) {
304
+ var t;
305
+ for (const a of o)
306
+ (t = a.children) != null && t.length ? e(a.children) : M(a, !0);
304
307
  }
305
308
  e(u.value);
306
309
  };
307
- k(() => [r.columns, r.columnResizable], () => {
308
- const e = Be();
310
+ B(() => [r.columns, r.columnResizable], () => {
311
+ const e = Ne();
309
312
  u.value = e, _.value = e;
310
313
  }, {
311
314
  deep: !0,
312
315
  immediate: !0
313
- }), k(() => [Te.value, xe.value], () => {
314
- ze();
316
+ }), B(() => [ke.value, Be.value], () => {
317
+ Pe();
315
318
  }, {
316
319
  deep: !0
317
320
  });
318
- const Ne = s(() => {
319
- var a, o;
320
- if (r.adaptive && (S.total > 0 || ((a = r.dataSource) == null ? void 0 : a.length)))
321
+ const Ve = s(() => {
322
+ var o, t;
323
+ if (r.adaptive && (h.total > 0 || ((o = r.dataSource) == null ? void 0 : o.length)))
321
324
  return {
322
- y: l(ge),
323
- x: ((o = r.scroll) == null ? void 0 : o.x) || "100%"
325
+ y: l(he),
326
+ x: ((t = r.scroll) == null ? void 0 : t.x) || "100%"
324
327
  };
325
328
  if (r.scroll)
326
329
  return r.scroll;
327
- }), Pe = s(() => {
330
+ }), Ee = s(() => {
328
331
  var e;
329
332
  if (r.tableLayout)
330
333
  return r.tableLayout;
331
- if ((e = r.columns) != null && e.some((a) => a.ellipsis))
334
+ if ((e = r.columns) != null && e.some((o) => o.ellipsis))
332
335
  return "fixed";
333
336
  }), G = s(() => {
334
- var o;
335
- const e = l(q), a = l(T);
337
+ var t;
338
+ const e = l(q), o = l(F);
336
339
  return {
337
340
  ...r,
338
341
  ...e,
339
- rowSelection: r.rowSelection === !0 || ((o = r.rowSelection) == null ? void 0 : o.mode) === "internal" ? {
340
- ...a,
342
+ rowSelection: r.rowSelection === !0 || ((t = r.rowSelection) == null ? void 0 : t.mode) === "internal" ? {
343
+ ...o,
341
344
  // tips 如果是前端分页,则默认会走缓存
342
- preserveSelectedRowKeys: b(r.dataSource) ? a.preserveSelectedRowKeys : !0
343
- } : tr(r.rowSelection),
344
- loading: b(r.loading) ? e.loading : r.loading,
345
+ preserveSelectedRowKeys: S(r.dataSource) ? o.preserveSelectedRowKeys : !0
346
+ } : sr(r.rowSelection),
347
+ loading: S(r.loading) ? e.loading : r.loading,
345
348
  pagination: r.pagination === !1 ? !1 : e.pagination,
346
- scroll: l(Ne)
349
+ scroll: l(Ve)
347
350
  };
348
- }), Ie = s(() => {
351
+ }), Ke = s(() => {
349
352
  var e;
350
- return [f(), r.card ? null : f("wrapper"), r.adaptive ? f("adaptive") : null, W.value && ((e = i.value) != null && e.visible) ? me(`sticky-${H === 0 ? "absolute" : "relative"}`) : null].filter(Boolean);
353
+ return [f(), r.card ? null : f("wrapper"), r.adaptive ? f("adaptive") : null, W.value && ((e = i.value) != null && e.visible) ? be(`sticky-${H === 0 ? "absolute" : "relative"}`) : null].filter(Boolean);
351
354
  });
352
- function Ve(e, a, o) {
353
- if (ne.includes(e.valueType))
354
- return o;
355
- const t = lr(a);
356
- return e.copyable || e.ellipsis ? m(mr, {
355
+ function Le(e, o, t) {
356
+ if (ue.includes(e.valueType))
357
+ return t;
358
+ const a = dr(o);
359
+ return e.copyable || e.ellipsis ? y(br, {
357
360
  copyable: e.copyable,
358
- rawValue: t,
359
- ellipsis: e.ellipsis ? Je(e.ellipsis) ? {
360
- tooltip: o,
361
+ rawValue: a,
362
+ ellipsis: e.ellipsis ? Ye(e.ellipsis) ? {
363
+ tooltip: t,
361
364
  rows: 1
362
365
  } : {
363
366
  ...e.ellipsis,
364
- tooltip: o
367
+ tooltip: t
365
368
  } : !1,
366
- content: o
367
- }, null) : o;
369
+ content: t
370
+ }, null) : t;
368
371
  }
369
- k(() => l(S).loading, (e) => {
370
- var a;
371
- (a = r.onLoadingChange) == null || a.call(r, e);
372
- }), k(() => r.dataSource, (e) => {
373
- Ce(e);
372
+ B(() => l(h).loading, (e) => {
373
+ var o;
374
+ (o = r.onLoadingChange) == null || o.call(r, e);
375
+ }), B(() => r.dataSource, (e) => {
376
+ xe(e);
374
377
  }, {
375
378
  immediate: !0
376
379
  });
377
380
  function J(e) {
378
- var a, o, t;
379
- (t = (o = (a = P.value) == null ? void 0 : a.apForm) == null ? void 0 : o.setFieldsValue) == null || t.call(o, e);
381
+ var o, t, a;
382
+ (a = (t = (o = p.value) == null ? void 0 : o.apForm) == null ? void 0 : t.setFieldsValue) == null || a.call(t, e);
380
383
  }
381
384
  function Q(e = !1) {
382
- var o, t, d;
383
- const a = e ? "getFieldsValueTransformed" : "getFieldsValue";
384
- return (d = (t = (o = P.value) == null ? void 0 : o.apForm) == null ? void 0 : t[a]) == null ? void 0 : d.call(t, !0);
385
+ var t, a, d;
386
+ const o = e ? "getFieldsValueTransformed" : "getFieldsValue";
387
+ return (d = (a = (t = p.value) == null ? void 0 : t.apForm) == null ? void 0 : a[o]) == null ? void 0 : d.call(a, !0);
385
388
  }
386
- function Ee() {
389
+ function X() {
390
+ var e;
391
+ return ((e = p.value) == null ? void 0 : e.getSorterItems()) || [];
392
+ }
393
+ function Y(e) {
394
+ var o;
395
+ (o = p.value) == null || o.setSorterItems(e);
396
+ }
397
+ function Z() {
398
+ var e;
399
+ (e = p.value) == null || e.resetSorterItems();
400
+ }
401
+ function Oe() {
387
402
  return l(u);
388
403
  }
389
- return fe({
390
- submit: () => I(),
404
+ return ye({
405
+ submit: () => P(),
391
406
  reset: () => V(),
392
- refresh: () => Re(),
407
+ refresh: () => Fe(),
393
408
  setSearchFormValues: J,
394
409
  getSearchFormValues: Q,
395
- setPaging: Fe,
396
- getPaging: ke,
397
- getShownColumns: Ee,
398
- dataSource: s(() => l(S).records),
410
+ setPaging: Ie,
411
+ getPaging: ze,
412
+ getShownColumns: Oe,
413
+ dataSource: s(() => l(h).records),
399
414
  rowSelection: {
400
415
  selectedRows: s(() => l(x)),
401
- ...F
416
+ ...k
402
417
  },
403
418
  scrollBar: {
404
419
  x: {
@@ -407,81 +422,84 @@ const Dr = /* @__PURE__ */ Ae({
407
422
  return ((e = i == null ? void 0 : i.value) == null ? void 0 : e.currentScroll) ?? 0;
408
423
  },
409
424
  scroll: (e) => {
410
- var a, o;
411
- return (o = (a = i == null ? void 0 : i.value) == null ? void 0 : a.scroll) == null ? void 0 : o.call(a, e);
425
+ var o, t;
426
+ return (t = (o = i == null ? void 0 : i.value) == null ? void 0 : o.scroll) == null ? void 0 : t.call(o, e);
412
427
  }
413
428
  },
414
429
  y: void 0
415
- }
416
- }), (e, a) => (y(), B("div", {
430
+ },
431
+ getSearchFormSorterItems: X,
432
+ setSearchFormSorterItems: Y,
433
+ resetSearchFormSorterItems: Z
434
+ }), (e, o) => (g(), I("div", {
417
435
  ref_key: "tableWrapperRef",
418
436
  ref: D,
419
- class: g(Ie.value),
420
- style: K(l(ye)({
437
+ class: b(Ke.value),
438
+ style: K(l(Se)({
421
439
  "scroll-bar-width": `${l(H)}px`
422
440
  }))
423
- }, [l(b)(e.dataSource) && e.searchForm !== !1 && U.value.length > 0 ? (y(), B("div", {
441
+ }, [l(S)(e.dataSource) && e.searchForm !== !1 && U.value.length > 0 ? (g(), I("div", {
424
442
  key: 0,
425
- class: g(e.card ? l(z)("search-wrapper") : null),
443
+ class: b(e.card ? l(z)("search-wrapper") : null),
426
444
  style: K(e.searchFormWrapperStyle)
427
- }, [m(l(Me).SearchForm, v(e.searchForm || {}, {
445
+ }, [y(l(Qe).SearchForm, R(e.searchForm || {}, {
428
446
  ref_key: "formRef",
429
- ref: P,
447
+ ref: p,
430
448
  "custom-reset": "",
431
449
  "submit-loading": l(q).loading,
432
- onSubmit: l(I),
450
+ onSubmit: l(P),
433
451
  onReset: l(V)
434
- }), ae({
435
- default: R(() => [(y(!0), B(re, null, te(U.value, (o) => (y(), le(je(o.renderNode.Comp), v({
436
- key: o.dataIndex,
437
- item: o,
452
+ }), ne({
453
+ default: C(() => [(g(!0), I(ae, null, se(U.value, (t) => (g(), de(He(t.renderNode.Comp), R({
454
+ key: t.dataIndex,
455
+ item: t,
438
456
  ref_for: !0
439
- }, o.fieldProps || {}, {
440
- span: o.span,
441
- "custom-render": o.renderNode.render
457
+ }, t.fieldProps || {}, {
458
+ span: t.span,
459
+ "custom-render": t.renderNode.render
442
460
  }), null, 16, ["item", "span", "custom-render"]))), 128))]),
443
461
  _: 2
444
462
  }, [c.searchFormExtra ? {
445
463
  name: "extra",
446
- fn: R(() => [C(e.$slots, "searchFormExtra")]),
464
+ fn: C(() => [T(e.$slots, "searchFormExtra")]),
447
465
  key: "0"
448
- } : void 0]), 1040, ["submit-loading", "onSubmit", "onReset"])], 6)) : oe("", !0), L("div", {
466
+ } : void 0]), 1040, ["submit-loading", "onSubmit", "onReset"])], 6)) : le("", !0), L("div", {
449
467
  ref_key: "contentRef",
450
- ref: be,
451
- class: g([l(z)("table-wrapper"), e.card ? l(z)("table-wrapper-card") : null]),
468
+ ref: we,
469
+ class: b([l(z)("table-wrapper"), e.card ? l(z)("table-wrapper-card") : null]),
452
470
  style: K(e.tableWrapperStyle)
453
471
  }, [L("div", {
454
- class: g(l(f)("header-wrapper"))
455
- }, [e.settings ? (y(), B("div", {
472
+ class: b(l(f)("header-wrapper"))
473
+ }, [e.settings ? (g(), I("div", {
456
474
  key: 0,
457
- class: g(l(f)("header"))
475
+ class: b(l(f)("header"))
458
476
  }, [L("div", {
459
- class: g(l(A)("header", "title"))
460
- }, [C(e.$slots, "title", v({
477
+ class: b(l(A)("header", "title"))
478
+ }, [T(e.$slots, "title", R({
461
479
  selectedRows: l(x),
462
- selectedRowKeys: l(T).selectedRowKeys,
480
+ selectedRowKeys: l(F).selectedRowKeys,
463
481
  shownColumns: u.value
464
- }, F))], 2), c.title ? (y(), le(l(He), {
482
+ }, k))], 2), c.title ? (g(), de(l(Me), {
465
483
  key: 0,
466
484
  type: "vertical"
467
- })) : oe("", !0), m(yr, {
485
+ })) : le("", !0), y(Sr, {
468
486
  config: e.settings === !0 ? {} : e.settings
469
- }, null, 8, ["config"])], 2)) : C(e.$slots, "title", v({
487
+ }, null, 8, ["config"])], 2)) : T(e.$slots, "title", R({
470
488
  key: 1,
471
489
  selectedRows: l(x),
472
- selectedRowKeys: l(T).selectedRowKeys,
490
+ selectedRowKeys: l(F).selectedRowKeys,
473
491
  shownColumns: u.value
474
- }, F))], 2), m(l(Ue), v({
492
+ }, k))], 2), y(l(Ge), R({
475
493
  ref_key: "antdTableRef",
476
494
  ref: j,
477
495
  class: l(f)("table")
478
496
  }, G.value, {
479
497
  size: N.value,
480
- "table-layout": Pe.value,
498
+ "table-layout": Ee.value,
481
499
  columns: u.value,
482
- onResizeColumn: a[0] || (a[0] = (o, t) => t.width = o)
483
- }), ae({
484
- summary: R(() => [C(e.$slots, "summary", {
500
+ onResizeColumn: o[0] || (o[0] = (t, a) => a.width = t)
501
+ }), ne({
502
+ summary: C(() => [T(e.$slots, "summary", {
485
503
  columns: u.value,
486
504
  records: G.value.dataSource,
487
505
  selectedRows: l(x)
@@ -489,24 +507,24 @@ const Dr = /* @__PURE__ */ Ae({
489
507
  _: 2
490
508
  }, [l(W) ? {
491
509
  name: "bottomPaginationTop",
492
- fn: R(() => {
493
- var o, t;
494
- return [m(l(gr), {
510
+ fn: C(() => {
511
+ var t, a;
512
+ return [y(l(hr), {
495
513
  ref_key: "scrollBarRef",
496
514
  ref: i,
497
- "scroll-container": (t = (o = j.value) == null ? void 0 : o.table) == null ? void 0 : t.scrollBodyRef,
515
+ "scroll-container": (a = (t = j.value) == null ? void 0 : t.table) == null ? void 0 : a.scrollBodyRef,
498
516
  direction: "horizontal",
499
517
  "bar-color": "var(--ap-scrollbar-thumb-color-base)",
500
518
  "track-color": "var(--ap-table-header-bg, #f2f6f9)"
501
519
  }, null, 8, ["scroll-container"])];
502
520
  }),
503
521
  key: "0"
504
- } : void 0, te(l(se)(c, ["title", "searchFormExtra", "headerCell", "summary"]), (o, t) => ({
505
- name: t,
506
- fn: R((d) => [C(e.$slots, t, We(_e(d || {})))])
522
+ } : void 0, se(l(ie)(c, ["title", "searchFormExtra", "headerCell", "summary"]), (t, a) => ({
523
+ name: a,
524
+ fn: C((d) => [T(e.$slots, a, Ue(qe(d || {})))])
507
525
  }))]), 1040, ["class", "size", "table-layout", "columns"])], 6)], 6));
508
526
  }
509
527
  });
510
528
  export {
511
- Dr as default
529
+ _r as default
512
530
  };
@@ -1644,8 +1644,8 @@ export declare const apTableFormItemMap: {
1644
1644
  readonly bordered?: boolean | undefined;
1645
1645
  readonly suffix?: any;
1646
1646
  readonly focused?: boolean | undefined;
1647
- readonly placeholder?: string | number | undefined;
1648
1647
  readonly handleReset?: MouseEventHandler | undefined;
1648
+ readonly placeholder?: string | number | undefined;
1649
1649
  readonly defaultValue?: string | number | undefined;
1650
1650
  readonly id?: string | undefined;
1651
1651
  readonly autocomplete?: string | undefined;
@@ -2255,8 +2255,8 @@ export declare const apTableFormItemMap: {
2255
2255
  readonly bordered?: boolean | undefined;
2256
2256
  readonly suffix?: any;
2257
2257
  readonly focused?: boolean | undefined;
2258
- readonly placeholder?: string | number | undefined;
2259
2258
  readonly handleReset?: MouseEventHandler | undefined;
2259
+ readonly placeholder?: string | number | undefined;
2260
2260
  readonly defaultValue?: string | number | undefined;
2261
2261
  readonly id?: string | undefined;
2262
2262
  readonly autocomplete?: string | undefined;