@aplus-frontend/ui 6.13.1 → 6.13.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,29 +1,29 @@
1
- import { defineComponent as Oe, useSlots as $e, getCurrentInstance as Me, ref as E, computed as n, unref as a, toRef as We, nextTick as je, watch as B, createElementBlock as P, openBlock as d, normalizeStyle as V, normalizeClass as g, createCommentVNode as w, createElementVNode as b, createVNode as _, mergeProps as R, createSlots as ee, withCtx as h, Fragment as te, renderList as K, createBlock as f, resolveDynamicComponent as L, renderSlot as D, normalizeProps as He, guardReactiveProps as qe } from "vue";
2
- import { VxeUI as oe, VxeTable as Ue, VxeColumn as ae } from "vxe-table";
1
+ import { defineComponent as $e, useSlots as We, getCurrentInstance as Me, ref as E, computed as n, unref as a, toRef as je, nextTick as He, watch as B, createElementBlock as P, openBlock as d, normalizeStyle as V, normalizeClass as g, createCommentVNode as w, createElementVNode as b, createVNode as _, mergeProps as R, createSlots as te, withCtx as h, Fragment as oe, renderList as K, createBlock as f, resolveDynamicComponent as L, renderSlot as D, normalizeProps as qe, guardReactiveProps as Ue } from "vue";
2
+ import { VxeUI as ae, VxeTable as Ge, VxeColumn as re } from "vxe-table";
3
3
  import "vxe-table/es/style.css";
4
- import { isUndefined as x, isFunction as re, omit as Ge } from "lodash-unified";
5
- import { ApForm as Xe } from "../ap-form/index.mjs";
4
+ import { isUndefined as x, isFunction as le, omit as Xe } from "lodash-unified";
5
+ import { ApForm as Je } from "../ap-form/index.mjs";
6
6
  import "../config-provider/index.mjs";
7
- import { noRenderAsFormItemValueList as Je } from "../ap-table/constants.mjs";
8
- import { getColumnOrder as le, updateFormProps as Qe, getFieldProps as Ye, getSearchFormItemRenderNode as Ze, recursionApColumns as ne } from "../ap-table/utils.mjs";
9
- import { useTablePaging as et } from "../ap-table/hooks/use-table-paging-ng.mjs";
10
- import { Spin as tt, Empty as se, Pagination as ot } from "@aplus-frontend/antdv";
11
- import { useInnerParams as at } from "./hooks/use-inner-params.mjs";
12
- import { toVxeProps as rt, getRowExpandProps as lt, getRowSelectionProps as nt } from "./utils/table.mjs";
13
- import st from "./hooks/use-row-selection.mjs";
14
- import { useProvideApTable as it } from "../ap-table/context.mjs";
15
- import { sizeReverseMap as dt, sizeMap as ut, ROW_SELECTION_FIELD as ct } from "./constants.mjs";
16
- import { useRenderColumns as ft } from "./hooks/use-render-columns.mjs";
17
- import { useToken as pt } from "@aplus-frontend/antdv/es/theme/internal";
7
+ import { noRenderAsFormItemValueList as Qe } from "../ap-table/constants.mjs";
8
+ import { getColumnOrder as ne, updateFormProps as Ye, getFieldProps as Ze, getSearchFormItemRenderNode as et, recursionApColumns as se } from "../ap-table/utils.mjs";
9
+ import { useTablePaging as tt } from "../ap-table/hooks/use-table-paging-ng.mjs";
10
+ import { Spin as ot, Empty as ie, Pagination as at } from "@aplus-frontend/antdv";
11
+ import { useInnerParams as rt } from "./hooks/use-inner-params.mjs";
12
+ import { toVxeProps as lt, getRowExpandProps as nt, getRowSelectionProps as st } from "./utils/table.mjs";
13
+ import it from "./hooks/use-row-selection.mjs";
14
+ import { useProvideApTable as dt } from "../ap-table/context.mjs";
15
+ import { sizeReverseMap as ut, sizeMap as ct, ROW_SELECTION_FIELD as ft } from "./constants.mjs";
16
+ import { useRenderColumns as pt } from "./hooks/use-render-columns.mjs";
17
+ import { useToken as mt } from "@aplus-frontend/antdv/es/theme/internal";
18
18
  import "../scroll-bar/index.mjs";
19
- import { isDef as mt } from "../utils/index.mjs";
20
- import { getValidVNodeList as gt } from "../utils/slot.mjs";
21
- import { useTableStyle as ht } from "./hooks/use-table-style.mjs";
22
- import { useNamespace as Ct } from "../config-provider/hooks/use-namespace.mjs";
23
- import { useGlobalConfig as vt } from "../config-provider/hooks/use-global-config.mjs";
24
- import { useLocale as yt } from "../config-provider/hooks/use-locale.mjs";
25
- import St from "../scroll-bar/index.vue.mjs";
26
- const Ut = /* @__PURE__ */ Oe({
19
+ import { isDef as gt } from "../utils/index.mjs";
20
+ import { getValidVNodeList as ht } from "../utils/slot.mjs";
21
+ import { useTableStyle as Ct } from "./hooks/use-table-style.mjs";
22
+ import { useNamespace as vt } from "../config-provider/hooks/use-namespace.mjs";
23
+ import { useGlobalConfig as yt } from "../config-provider/hooks/use-global-config.mjs";
24
+ import { useLocale as St } from "../config-provider/hooks/use-locale.mjs";
25
+ import wt from "../scroll-bar/index.vue.mjs";
26
+ const Gt = /* @__PURE__ */ $e({
27
27
  name: "ApGrid",
28
28
  __name: "index",
29
29
  props: {
@@ -114,32 +114,32 @@ const Ut = /* @__PURE__ */ Oe({
114
114
  rowHighlightable: { type: [Boolean, Function], default: !1 },
115
115
  treeConfig: {}
116
116
  },
117
- setup(ie, { expose: de }) {
118
- var Z;
119
- const v = $e(), o = ie, k = (Z = Me()) == null ? void 0 : Z.appContext.app;
120
- k && !k.__VXE_PC_UI_INSTALLED__ && (k.use(oe), k.__VXE_PC_UI_INSTALLED__ = !0);
121
- const { e: F, b: u, be: ue } = Ct("ap-grid"), ce = vt("valueTypeMap"), i = E([]), O = E([]), s = E(), I = E(o.size), fe = ht(), [, pe] = pt(), { t: me } = yt();
122
- oe.setConfig({
123
- i18n: (e, t) => me(`ap.${e}`, t)
117
+ setup(de, { expose: ue }) {
118
+ var ee;
119
+ const v = We(), o = de, k = (ee = Me()) == null ? void 0 : ee.appContext.app;
120
+ k && !k.__VXE_PC_UI_INSTALLED__ && (k.use(ae), k.__VXE_PC_UI_INSTALLED__ = !0);
121
+ const { e: F, b: u, be: ce } = vt("ap-grid"), fe = yt("valueTypeMap"), i = E([]), O = E([]), s = E(), I = E(o.size), pe = Ct(), [, me] = mt(), { t: ge } = St();
122
+ ae.setConfig({
123
+ i18n: (e, t) => ge(`ap.${e}`, t)
124
124
  });
125
- const { renderConfig: ge, updateSignal: he } = ft(i);
125
+ const { renderConfig: he, updateSignal: Ce } = pt(i);
126
126
  let $ = 0;
127
- const Ce = n(() => {
127
+ const ve = n(() => {
128
128
  if (s.value)
129
129
  return s.value.$el.querySelector(
130
130
  ".vxe-table--header-inner-wrapper"
131
131
  );
132
- }), M = n(() => {
132
+ }), W = n(() => {
133
133
  var e, t, l;
134
134
  return $++, ((l = (t = (e = o.columns) == null ? void 0 : e.filter(
135
- (r) => !r.hideInSearch && r.dataIndex && (r.valueType || r.customRenderFormItem) && !Je.includes(r.valueType)
135
+ (r) => !r.hideInSearch && r.dataIndex && (r.valueType || r.customRenderFormItem) && !Qe.includes(r.valueType)
136
136
  )) == null ? void 0 : t.sort((r, c) => {
137
- let S = le(r.order);
138
- return le(c.order) - S;
137
+ let S = ne(r.order);
138
+ return ne(c.order) - S;
139
139
  })) == null ? void 0 : l.map((r) => {
140
- const c = Qe(
140
+ const c = Ye(
141
141
  r,
142
- Ye(r.fieldProps, {})
142
+ Ze(r.fieldProps, {})
143
143
  ), S = {
144
144
  ...r,
145
145
  fieldProps: {
@@ -152,26 +152,26 @@ const Ut = /* @__PURE__ */ Oe({
152
152
  },
153
153
  renderNode: void 0
154
154
  };
155
- return S.renderNode = Ze(
155
+ return S.renderNode = et(
156
156
  S,
157
- a(ce)
157
+ a(fe)
158
158
  ), S;
159
159
  })) || [];
160
- }), ve = n(() => {
160
+ }), ye = n(() => {
161
161
  var t;
162
- return mt(o.manual) ? o.manual : gt(((t = v.searchFormExtra) == null ? void 0 : t.call(v)) || []).some((l) => {
162
+ return gt(o.manual) ? o.manual : ht(((t = v.searchFormExtra) == null ? void 0 : t.call(v)) || []).some((l) => {
163
163
  var r;
164
164
  return ((r = l.type) == null ? void 0 : r.name) === "ApView";
165
165
  });
166
- }), ye = n(() => [
166
+ }), Se = n(() => [
167
167
  u(),
168
168
  o.card ? null : u("wrapper"),
169
169
  o.adaptive ? u("adaptive") : null,
170
170
  o.sticky ? u("sticky") : null
171
- ].filter(Boolean)), W = n(() => ne(a(i), (e) => {
171
+ ].filter(Boolean)), M = n(() => se(a(i), (e) => {
172
172
  if (e.sorter === !0)
173
173
  return e.key || e.dataIndex;
174
- }).filter(Boolean)), j = n(() => ne(a(i), (e) => {
174
+ }).filter(Boolean)), j = n(() => se(a(i), (e) => {
175
175
  if (e.filters && !e.onFilter)
176
176
  return e.key || e.dataIndex;
177
177
  }).filter(Boolean)), {
@@ -181,11 +181,12 @@ const Ut = /* @__PURE__ */ Oe({
181
181
  refresh: H,
182
182
  data: p,
183
183
  tableProps: q,
184
- setDataSource: Se,
185
- handleTableChangeOptional: we,
186
- getPaging: be,
187
- setPaging: Re
188
- } = et({
184
+ setDataSource: we,
185
+ handleTableChangeOptional: be,
186
+ getPaging: Re,
187
+ setPaging: xe,
188
+ submitWith: U
189
+ } = tt({
189
190
  async request(e) {
190
191
  var l;
191
192
  if (!m.value.preserveSelectedRowKeys && x(o.dataSource) && A(), !x(o.dataSource)) {
@@ -203,53 +204,54 @@ const Ut = /* @__PURE__ */ Oe({
203
204
  },
204
205
  namespace: "ap-grid",
205
206
  filterFields: j,
206
- sortFields: W,
207
- params: We(o, "params"),
207
+ sortFields: M,
208
+ params: je(o, "params"),
208
209
  defaultData: o.defaultData,
209
- manual: a(ve),
210
+ manual: a(ye),
210
211
  formatParams: o.beforeSearchSubmit,
211
212
  pagination: o.pagination,
212
- onClickReset: Le,
213
- onAfterRequest: Y
214
- }), { sortChangeEvent: xe, filterChangeEvent: ke, paginationChangeEvent: Fe } = at(we);
215
- it({
213
+ onClickReset: De,
214
+ onAfterRequest: Z
215
+ }), { sortChangeEvent: ke, filterChangeEvent: Fe, paginationChangeEvent: Ie } = rt(be);
216
+ dt({
216
217
  columns: n(() => i.value),
217
218
  columnsBackup: n(() => O.value),
218
- size: n(() => ut[I.value]),
219
+ size: n(() => ct[I.value]),
219
220
  updateColumns(e) {
220
221
  var t;
221
222
  i.value = e, (t = o.onShownColumnsChange) == null || t.call(o, e);
222
223
  },
223
224
  updateSize(e) {
224
- I.value = dt[e];
225
+ I.value = ut[e];
225
226
  },
226
227
  renderConfig: n(() => ({
227
- className: ue("table-header", "title"),
228
- color: pe.value.colorTextTertiary
228
+ className: ce("table-header", "title"),
229
+ color: me.value.colorTextTertiary
229
230
  })),
230
231
  dataSource: n(() => a(p).records),
231
- getSearchFormValues: G,
232
- setSearchFormValues: U,
232
+ getSearchFormValues: X,
233
+ setSearchFormValues: G,
233
234
  submit: T,
235
+ submitWith: U,
234
236
  reset: N,
235
237
  refresh: H,
236
- getSearchFormSorterItems: X,
237
- setSearchFormSorterItems: J,
238
- resetSearchFormSorterItems: Q
238
+ getSearchFormSorterItems: J,
239
+ setSearchFormSorterItems: Q,
240
+ resetSearchFormSorterItems: Y
239
241
  });
240
- const Ie = n(
242
+ const Ee = n(
241
243
  () => i.value.some(
242
244
  (e) => e.fixed === "left" || e.fixed === !0
243
245
  ) ? "left" : void 0
244
- ), Ee = n(
245
- () => x(o.loading) ? p.loading : o.loading
246
246
  ), Be = n(
247
+ () => x(o.loading) ? p.loading : o.loading
248
+ ), Pe = n(
247
249
  () => x(o.dataSource) ? p.records : o.dataSource
248
- ), { selectedRows: z, rowSelection: m, ...y } = st({
250
+ ), { selectedRows: z, rowSelection: m, ...y } = it({
249
251
  ...o.rowSelection === !0 ? {} : o.rowSelection,
250
- dataSource: Be,
252
+ dataSource: Pe,
251
253
  rowKey: o.rowKey
252
- }), Pe = ({
254
+ }), Te = ({
253
255
  checked: e,
254
256
  row: t
255
257
  }) => {
@@ -261,7 +263,7 @@ const Ut = /* @__PURE__ */ Oe({
261
263
  ];
262
264
  y.selectChange(t, e, r);
263
265
  }
264
- }, Te = ({
266
+ }, Ne = ({
265
267
  checked: e
266
268
  }) => {
267
269
  const t = s.value;
@@ -269,43 +271,43 @@ const Ut = /* @__PURE__ */ Oe({
269
271
  ...t.getCheckboxReserveRecords(),
270
272
  ...t.getCheckboxRecords()
271
273
  ]);
272
- }, Ne = () => {
274
+ }, ze = () => {
273
275
  const e = s.value;
274
276
  e && y.selectRangeChange(e.getCheckboxRecords(), [
275
277
  ...e.getCheckboxReserveRecords(),
276
278
  ...e.getCheckboxRecords()
277
279
  ]);
278
- }, ze = () => {
280
+ }, Ae = () => {
279
281
  const e = s.value;
280
282
  e && (z.value = [e.getRadioRecord()]);
281
- }, Ae = ({
283
+ }, Ve = ({
282
284
  row: e
283
285
  }) => {
284
286
  const t = o.rowHighlightable;
285
- re(t) && t(e);
287
+ le(t) && t(e);
286
288
  };
287
- function Ve() {
289
+ function _e() {
288
290
  var e;
289
291
  return ((e = o.columns) == null ? void 0 : e.filter((t) => !t.hideInTable)) || [];
290
292
  }
291
- function U(e) {
293
+ function G(e) {
292
294
  var t, l, r;
293
295
  (r = (l = (t = C.value) == null ? void 0 : t.apForm) == null ? void 0 : l.setFieldsValue) == null || r.call(l, e);
294
296
  }
295
- function G(e = !1) {
297
+ function X(e = !1) {
296
298
  var l, r, c;
297
299
  const t = e ? "getFieldsValueTransformed" : "getFieldsValue";
298
300
  return (c = (r = (l = C.value) == null ? void 0 : l.apForm) == null ? void 0 : r[t]) == null ? void 0 : c.call(r, !0);
299
301
  }
300
- function X() {
302
+ function J() {
301
303
  var e;
302
304
  return ((e = C.value) == null ? void 0 : e.getSorterItems()) || [];
303
305
  }
304
- function J(e) {
306
+ function Q(e) {
305
307
  var t;
306
308
  (t = C.value) == null || t.setSorterItems(e);
307
309
  }
308
- function Q() {
310
+ function Y() {
309
311
  var e;
310
312
  (e = C.value) == null || e.resetSorterItems();
311
313
  }
@@ -314,22 +316,22 @@ const Ut = /* @__PURE__ */ Oe({
314
316
  const e = s.value;
315
317
  e && (m.value.type === "radio" ? (e.clearRadioRow(), e.clearRadioReserve()) : (e.clearCheckboxRow(), e.clearCheckboxReserve()));
316
318
  }
317
- function _e(e) {
318
- re(o.rowKey) || (y.selectMultiByKeys(e), Y());
319
- }
320
319
  function Ke(e) {
320
+ le(o.rowKey) || (y.selectMultiByKeys(e), Z());
321
+ }
322
+ function Le(e) {
321
323
  const t = s.value;
322
324
  if (!t)
323
325
  return;
324
326
  const l = String(e[o.rowKey]), r = t.getRowById(l);
325
327
  t.setCurrentRow(r);
326
328
  }
327
- function Le() {
329
+ function De() {
328
330
  const e = s.value;
329
331
  e && (e.clearSort(), e.clearFilter());
330
332
  }
331
- function Y() {
332
- je(() => {
333
+ function Z() {
334
+ He(() => {
333
335
  var e, t;
334
336
  m.value.type === "radio" ? (e = s.value) == null || e.setRadioRowKey(m.value.selectedRowKeys[0]) : (t = s.value) == null || t.setCheckboxRowKey(
335
337
  m.value.selectedRowKeys,
@@ -337,7 +339,7 @@ const Ut = /* @__PURE__ */ Oe({
337
339
  );
338
340
  });
339
341
  }
340
- async function De(e, t) {
342
+ async function Oe(e, t) {
341
343
  var r;
342
344
  const l = p.records[e];
343
345
  if (l)
@@ -347,7 +349,7 @@ const Ut = /* @__PURE__ */ Oe({
347
349
  () => [o.columnResizable, o.columns],
348
350
  () => {
349
351
  var t;
350
- const e = Ve();
352
+ const e = _e();
351
353
  i.value = e, (t = o.onShownColumnsChange) == null || t.call(o, e), O.value = e;
352
354
  },
353
355
  {
@@ -357,7 +359,7 @@ const Ut = /* @__PURE__ */ Oe({
357
359
  ), B(
358
360
  () => o.dataSource,
359
361
  (e) => {
360
- Se(e);
362
+ we(e);
361
363
  },
362
364
  { immediate: !0, deep: !0 }
363
365
  ), B(
@@ -371,45 +373,46 @@ const Ut = /* @__PURE__ */ Oe({
371
373
  (e) => {
372
374
  I.value = e;
373
375
  }
374
- ), de({
376
+ ), ue({
375
377
  submit: T,
376
378
  reset: N,
377
379
  refresh: H,
378
- setSearchFormValues: U,
379
- getSearchFormValues: G,
380
+ submitWith: U,
381
+ setSearchFormValues: G,
382
+ getSearchFormValues: X,
380
383
  getShowColumns: () => a(i),
381
384
  rowSelection: {
382
385
  selectedRows: n(() => z.value),
383
- setSelectedRowKeys: _e,
386
+ setSelectedRowKeys: Ke,
384
387
  clearAll: A
385
388
  },
386
- scrollToRow: De,
389
+ scrollToRow: Oe,
387
390
  getDataSource: () => a(p.records),
388
- setCurrentRow: Ke,
389
- getPaging: be,
390
- setPaging: Re,
391
- getSearchFormSorterItems: X,
392
- setSearchFormSorterItems: J,
393
- resetSearchFormSorterItems: Q
391
+ setCurrentRow: Le,
392
+ getPaging: Re,
393
+ setPaging: xe,
394
+ getSearchFormSorterItems: J,
395
+ setSearchFormSorterItems: Q,
396
+ resetSearchFormSorterItems: Y
394
397
  }), (e, t) => (d(), P("div", {
395
- class: g(ye.value),
398
+ class: g(Se.value),
396
399
  style: V(e.wrapperStyle)
397
400
  }, [
398
- a(x)(e.dataSource) && e.searchForm !== !1 && M.value.length > 0 ? (d(), P("div", {
401
+ a(x)(e.dataSource) && e.searchForm !== !1 && W.value.length > 0 ? (d(), P("div", {
399
402
  key: 0,
400
403
  class: g(e.card ? a(F)("search-wrapper") : null),
401
404
  style: V(e.searchFormWrapperStyle)
402
405
  }, [
403
- _(a(Xe).SearchForm, R(e.searchForm || {}, {
406
+ _(a(Je).SearchForm, R(e.searchForm || {}, {
404
407
  ref_key: "formRef",
405
408
  ref: C,
406
409
  "custom-reset": "",
407
410
  "submit-loading": a(q).loading,
408
411
  onSubmit: a(T),
409
412
  onReset: a(N)
410
- }), ee({
413
+ }), te({
411
414
  default: h(() => [
412
- (d(!0), P(te, null, K(M.value, (l) => (d(), f(L(l.renderNode), {
415
+ (d(!0), P(oe, null, K(W.value, (l) => (d(), f(L(l.renderNode), {
413
416
  key: l.dataIndex
414
417
  }))), 128))
415
418
  ]),
@@ -441,59 +444,59 @@ const Ut = /* @__PURE__ */ Oe({
441
444
  b("div", {
442
445
  class: g(a(u)("vxe-wrapper"))
443
446
  }, [
444
- (d(), f(a(Ue), R(a(rt)(o), {
447
+ (d(), f(a(Ge), R(a(lt)(o), {
445
448
  ref_key: "tableRef",
446
449
  ref: s,
447
- key: a(he),
450
+ key: a(Ce),
448
451
  data: a(p).records,
449
452
  "sort-config": {
450
- remote: W.value.length > 0,
453
+ remote: M.value.length > 0,
451
454
  trigger: "cell"
452
455
  },
453
456
  "filter-config": {
454
457
  remote: j.value.length > 0
455
458
  },
456
- loading: Ee.value,
457
- style: a(fe),
459
+ loading: Be.value,
460
+ style: a(pe),
458
461
  size: I.value,
459
- onSortChange: a(xe),
460
- onFilterChange: a(ke),
461
- onCheckboxChange: Pe,
462
- onCheckboxRangeChange: Ne,
463
- onCheckboxAll: Te,
464
- onRadioChange: ze,
465
- onCurrentChange: Ae
466
- }), ee({
462
+ onSortChange: a(ke),
463
+ onFilterChange: a(Fe),
464
+ onCheckboxChange: Te,
465
+ onCheckboxRangeChange: ze,
466
+ onCheckboxAll: Ne,
467
+ onRadioChange: Ae,
468
+ onCurrentChange: Ve
469
+ }), te({
467
470
  empty: h(() => [
468
- _(a(se), {
469
- image: a(se).PRESENTED_IMAGE_SIMPLE
471
+ _(a(ie), {
472
+ image: a(ie).PRESENTED_IMAGE_SIMPLE
470
473
  }, null, 8, ["image"])
471
474
  ]),
472
475
  loading: h(() => [
473
476
  b("div", {
474
477
  class: g(a(F)("table-loading-wrapper"))
475
478
  }, [
476
- _(a(tt))
479
+ _(a(ot))
477
480
  ], 2)
478
481
  ]),
479
482
  default: h(() => [
480
- o.expandable && i.value.length ? (d(), f(a(ae), R({ key: 0 }, a(lt)(e.expandable), { fixed: Ie.value }), {
483
+ o.expandable && i.value.length ? (d(), f(a(re), R({ key: 0 }, a(nt)(e.expandable), { fixed: Ee.value }), {
481
484
  content: h((l) => [
482
485
  (d(), f(L(o.expandable.renderContent(l))))
483
486
  ]),
484
487
  _: 1
485
488
  }, 16, ["fixed"])) : w("", !0),
486
- o.rowSelection && i.value.length ? (d(), f(a(ae), R({ key: 1 }, a(nt)(a(m), i.value), { field: a(ct) }), null, 16, ["field"])) : w("", !0),
487
- (d(!0), P(te, null, K(a(ge), (l) => (d(), f(L(l), {
489
+ o.rowSelection && i.value.length ? (d(), f(a(re), R({ key: 1 }, a(st)(a(m), i.value), { field: a(ft) }), null, 16, ["field"])) : w("", !0),
490
+ (d(!0), P(oe, null, K(a(he), (l) => (d(), f(L(l), {
488
491
  key: l.props.colId
489
492
  }))), 128))
490
493
  ]),
491
494
  _: 2
492
495
  }, [
493
- K(a(Ge)(v, ["searchFormExtra"]), (l, r) => ({
496
+ K(a(Xe)(v, ["searchFormExtra"]), (l, r) => ({
494
497
  name: r,
495
498
  fn: h((c) => [
496
- D(e.$slots, r, He(qe(c || {})))
499
+ D(e.$slots, r, qe(Ue(c || {})))
497
500
  ])
498
501
  }))
499
502
  ]), 1040, ["data", "sort-config", "filter-config", "loading", "style", "size", "onSortChange", "onFilterChange"]))
@@ -501,23 +504,23 @@ const Ut = /* @__PURE__ */ Oe({
501
504
  b("div", {
502
505
  class: g(a(u)("pagination-wrapper"))
503
506
  }, [
504
- e.sticky ? (d(), f(a(St), {
507
+ e.sticky ? (d(), f(a(wt), {
505
508
  key: 0,
506
509
  direction: "horizontal",
507
- "scroll-container": Ce.value,
510
+ "scroll-container": ve.value,
508
511
  "extra-size": -4.2,
509
512
  "bar-color": "var(--ap-scrollbar-thumb-color-base)",
510
513
  "track-color": "var(--ap-table-header-bg, #f2f6f9)"
511
514
  }, null, 8, ["scroll-container"])) : w("", !0),
512
- e.pagination !== !1 ? (d(), f(a(ot), R({
515
+ e.pagination !== !1 ? (d(), f(a(at), R({
513
516
  key: 1,
514
517
  class: a(u)("pagination")
515
- }, a(q).pagination, { onChange: a(Fe) }), null, 16, ["class", "onChange"])) : w("", !0)
518
+ }, a(q).pagination, { onChange: a(Ie) }), null, 16, ["class", "onChange"])) : w("", !0)
516
519
  ], 2)
517
520
  ], 6)
518
521
  ], 6));
519
522
  }
520
523
  });
521
524
  export {
522
- Ut as default
525
+ Gt as default
523
526
  };
@@ -284,6 +284,12 @@ export type ApGridExpose<SearchParamsType = Recordable, RecordType = any> = {
284
284
  * @returns
285
285
  */
286
286
  refresh: () => void;
287
+ /**
288
+ * 表格查询提交(重制页码但查询参数不会重置)
289
+ * @param resetCurrent 是否重置当前页码,默认为`false`
290
+ * @returns
291
+ */
292
+ submitWith: (resetCurrent?: boolean) => void;
287
293
  /**
288
294
  * 设置查询表单数据
289
295
  * @param values
@@ -9,6 +9,7 @@ declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __V
9
9
  submit: () => void;
10
10
  reset: () => void;
11
11
  refresh: () => void;
12
+ submitWith: () => void;
12
13
  setSearchFormValues: (fields: any) => void;
13
14
  getSearchFormValues: (transform?: boolean) => Partial<any> | undefined;
14
15
  setPaging: (nextPaging: Partial<{