@aplus-frontend/ui 7.13.0 → 7.13.2

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 (55) hide show
  1. package/es/src/ag-grid/components/empty/index.vue.d.ts +4 -1
  2. package/es/src/ag-grid/components/empty/index.vue2.mjs +20 -10
  3. package/es/src/ag-grid/editable/form-item.vue.mjs +9 -8
  4. package/es/src/ag-grid/editable/index.vue.mjs +1 -0
  5. package/es/src/ag-grid/index.vue.mjs +47 -45
  6. package/es/src/ag-grid/interface.d.ts +4 -0
  7. package/es/src/ag-grid/style/index.mjs +5 -5
  8. package/es/src/ap-table/components/setting/modal/index.vue2.mjs +140 -130
  9. package/es/src/ap-table/components/setting/template/item.vue2.mjs +40 -39
  10. package/es/src/business/ap-export-group/ApExportGroup.vue.d.ts +2 -1
  11. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +296 -161
  12. package/es/src/business/ap-export-group/index.d.ts +4 -1
  13. package/es/src/business/ap-export-group/interface.d.ts +31 -0
  14. package/es/src/business/ap-export-group/style/index.d.ts +5 -0
  15. package/es/src/business/ap-export-group/style/index.mjs +17 -0
  16. package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +21 -21
  17. package/es/src/business/ap-view/style/index.mjs +3 -2
  18. package/es/src/config-provider/config-provider-props.d.ts +7 -6
  19. package/es/src/config-provider/config-provider-props.mjs +4 -4
  20. package/es/src/config-provider/config-provider.d.ts +35 -11
  21. package/es/src/config-provider/config-provider.mjs +24 -24
  22. package/es/src/config-provider/hooks/use-global-config.d.ts +14 -6
  23. package/es/src/config-provider/index.d.ts +65 -17
  24. package/es/src/locale/lang/en.mjs +5 -2
  25. package/es/src/locale/lang/zh-cn.mjs +4 -1
  26. package/es/src/version.d.ts +1 -1
  27. package/es/src/version.mjs +1 -1
  28. package/lib/src/ag-grid/components/empty/index.vue.d.ts +4 -1
  29. package/lib/src/ag-grid/components/empty/index.vue2.js +1 -1
  30. package/lib/src/ag-grid/editable/form-item.vue.js +1 -1
  31. package/lib/src/ag-grid/editable/index.vue.js +1 -1
  32. package/lib/src/ag-grid/index.vue.js +1 -1
  33. package/lib/src/ag-grid/interface.d.ts +4 -0
  34. package/lib/src/ag-grid/style/index.js +1 -1
  35. package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
  36. package/lib/src/ap-table/components/setting/template/item.vue2.js +1 -1
  37. package/lib/src/business/ap-export-group/ApExportGroup.vue.d.ts +2 -1
  38. package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
  39. package/lib/src/business/ap-export-group/index.d.ts +4 -1
  40. package/lib/src/business/ap-export-group/interface.d.ts +31 -0
  41. package/lib/src/business/ap-export-group/style/index.d.ts +5 -0
  42. package/lib/src/business/ap-export-group/style/index.js +1 -0
  43. package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -1
  44. package/lib/src/business/ap-view/style/index.js +1 -1
  45. package/lib/src/config-provider/config-provider-props.d.ts +7 -6
  46. package/lib/src/config-provider/config-provider-props.js +1 -1
  47. package/lib/src/config-provider/config-provider.d.ts +35 -11
  48. package/lib/src/config-provider/config-provider.js +1 -1
  49. package/lib/src/config-provider/hooks/use-global-config.d.ts +14 -6
  50. package/lib/src/config-provider/index.d.ts +65 -17
  51. package/lib/src/locale/lang/en.js +1 -1
  52. package/lib/src/locale/lang/zh-cn.js +1 -1
  53. package/lib/src/version.d.ts +1 -1
  54. package/lib/src/version.js +1 -1
  55. package/package.json +1 -1
@@ -1,3 +1,6 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
- declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
2
+ type __VLS_Props = {
3
+ params: any;
4
+ };
5
+ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
3
6
  export default _default;
@@ -1,15 +1,25 @@
1
- import { defineComponent as t, createElementBlock as o, openBlock as r, createVNode as m, unref as e } from "vue";
2
- import { Empty as n } from "@aplus-frontend/antdv";
3
- const l = /* @__PURE__ */ t({
1
+ import { defineComponent as n, createElementBlock as t, openBlock as m, normalizeClass as s, unref as o, createBlock as p, resolveDynamicComponent as i } from "vue";
2
+ import { Empty as r } from "@aplus-frontend/antdv";
3
+ import "../../../config-provider/index.mjs";
4
+ import { useNamespace as c } from "../../../config-provider/hooks/use-namespace.mjs";
5
+ const _ = /* @__PURE__ */ n({
4
6
  __name: "index",
5
- setup(_) {
6
- return (a, c) => (r(), o("div", null, [
7
- m(e(n), {
8
- image: e(n).PRESENTED_IMAGE_SIMPLE
9
- }, null, 8, ["image"])
10
- ]));
7
+ props: {
8
+ params: {}
9
+ },
10
+ setup(l) {
11
+ const { b: a } = c("ag-grid");
12
+ return (e, y) => (m(), t("div", {
13
+ class: s(o(a)("empty"))
14
+ }, [
15
+ e.params.emptyComponent ? (m(), p(i(e.params.emptyComponent), { key: 0 })) : (m(), p(o(r), {
16
+ key: 1,
17
+ image: o(r).PRESENTED_IMAGE_SIMPLE,
18
+ description: e.params.emptyText
19
+ }, null, 8, ["image", "description"]))
20
+ ], 2));
11
21
  }
12
22
  });
13
23
  export {
14
- l as default
24
+ _ as default
15
25
  };
@@ -1,6 +1,6 @@
1
- import { defineComponent as A, useSlots as L, ref as g, onMounted as P, watch as G, createElementBlock as W, openBlock as U, Fragment as $, createVNode as p, unref as l, withCtx as h, mergeProps as q, createSlots as J, renderList as Q, renderSlot as X, normalizeProps as Y, guardReactiveProps as Z } from "vue";
1
+ import { defineComponent as A, useSlots as L, ref as y, onMounted as P, watch as G, createElementBlock as W, openBlock as U, Fragment as $, createVNode as p, unref as l, withCtx as g, mergeProps as q, createSlots as J, renderList as Q, renderSlot as X, normalizeProps as Y, guardReactiveProps as Z } from "vue";
2
2
  import { cloneDeep as u, isEqual as ee, omit as oe } from "lodash-unified";
3
- import { ApForm as y } from "../../ap-form/index.mjs";
3
+ import { ApForm as h } from "../../ap-form/index.mjs";
4
4
  import { useInjectForm as te } from "../../ap-form/context.mjs";
5
5
  import { useWatch as ae } from "../../ap-form/hooks/use-watch.mjs";
6
6
  import { getModelValue as ne } from "../../ap-form/utils/get.mjs";
@@ -123,6 +123,7 @@ const _e = /* @__PURE__ */ A({
123
123
  customRow: {},
124
124
  theme: {},
125
125
  emptyComponent: {},
126
+ emptyText: {},
126
127
  columns: {},
127
128
  defaultValue: {},
128
129
  onChange: {},
@@ -137,7 +138,7 @@ const _e = /* @__PURE__ */ A({
137
138
  }) {
138
139
  const B = L(), o = b, {
139
140
  b: v
140
- } = de("editable-aggrid"), x = ie("editable-aggrid"), r = g(), {
141
+ } = de("editable-aggrid"), x = ie("editable-aggrid"), r = y(), {
141
142
  internalInstance: s
142
143
  } = te();
143
144
  function I(e) {
@@ -155,7 +156,7 @@ const _e = /* @__PURE__ */ A({
155
156
  const e = o.formItem?.initialValue ?? ne(s?.getInitialValues() ?? {}, o.name);
156
157
  e && (s?.updateInitialModel(i, C(u(e), o.rowKey)), f = u(e), n.value || _(u(e), "suffix", !0));
157
158
  });
158
- const n = g([]), S = ae(o.name);
159
+ const n = y([]), S = ae(o.name);
159
160
  G(() => S.value, (e) => {
160
161
  ee(e, n.value) || c(e ?? u(f));
161
162
  }, {
@@ -211,15 +212,15 @@ const _e = /* @__PURE__ */ A({
211
212
  scrollToRow: w,
212
213
  scrollToColumn: M,
213
214
  table: r
214
- }), (e, t) => (U(), W($, null, [p(l(y).FormItem, {
215
+ }), (e, t) => (U(), W($, null, [p(l(h).FormItem, {
215
216
  hidden: "",
216
217
  name: e.name,
217
218
  "initial-value": e.formItem?.initialValue,
218
219
  transform: I
219
- }, null, 8, ["name", "initial-value"]), p(l(y).FormItem, {
220
+ }, null, 8, ["name", "initial-value"]), p(l(h).FormItem, {
220
221
  label: e.label
221
222
  }, {
222
- default: h(() => [p(fe, q(l(oe)(o, ["name", "maxLength", "onChange", "defaultValue", "formItem"]), {
223
+ default: g(() => [p(fe, q(l(oe)(o, ["name", "maxLength", "onChange", "defaultValue", "formItem"]), {
223
224
  ref_key: "tableRef",
224
225
  ref: r,
225
226
  class: [l(v)(), l(x)],
@@ -232,7 +233,7 @@ const _e = /* @__PURE__ */ A({
232
233
  _: 2
233
234
  }, [Q(B, (a, m) => ({
234
235
  name: m,
235
- fn: h((z) => [X(e.$slots, m, Y(Z(z || {})))])
236
+ fn: g((z) => [X(e.$slots, m, Y(Z(z || {})))])
236
237
  }))]), 1040, ["class", "columns", "data-source"])]),
237
238
  _: 3
238
239
  }, 8, ["label"])], 64));
@@ -120,6 +120,7 @@ const Fe = /* @__PURE__ */ M({
120
120
  customRow: {},
121
121
  theme: {},
122
122
  emptyComponent: {},
123
+ emptyText: {},
123
124
  columns: {},
124
125
  value: {},
125
126
  defaultValue: {},
@@ -1,10 +1,10 @@
1
- import { defineComponent as po, useSlots as fo, ref as M, toRef as F, unref as t, computed as n, nextTick as x, watch as G, createElementBlock as L, openBlock as C, normalizeStyle as O, normalizeClass as y, createCommentVNode as se, createElementVNode as A, createVNode as go, mergeProps as W, createSlots as wo, withCtx as ie, Fragment as So, renderList as Co, createBlock as H, resolveDynamicComponent as yo, renderSlot as ue } from "vue";
1
+ import { defineComponent as po, useSlots as fo, ref as M, toRef as F, unref as t, computed as n, nextTick as I, watch as G, createElementBlock as L, openBlock as y, normalizeStyle as O, normalizeClass as C, createCommentVNode as se, createElementVNode as A, createVNode as go, mergeProps as W, createSlots as wo, withCtx as ie, Fragment as So, renderList as yo, createBlock as H, resolveDynamicComponent as Co, renderSlot as ue } from "vue";
2
2
  import { AG_GRID_LOCALE_EN as ho, AG_GRID_LOCALE_CN as Ro } from "@ag-grid-community/locale";
3
3
  import { Pagination as vo } from "@aplus-frontend/antdv";
4
4
  import { useToken as bo } from "@aplus-frontend/antdv/es/theme/internal";
5
- import { ModuleRegistry as Mo, ValidationModule as Fo, ColumnAutoSizeModule as Bo, PinnedRowModule as ko, RowAutoHeightModule as Io, RowStyleModule as xo, CellSpanModule as Ao, CellStyleModule as No, TooltipModule as To, RowSelectionModule as Do, LocaleModule as Eo, ValueCacheModule as Po, GridStateModule as Ko, ColumnApiModule as Vo, RowApiModule as zo, CellApiModule as Go, RenderApiModule as Lo, EventApiModule as Oo, ScrollApiModule as Wo, ClientSideRowModelApiModule as Ho, ClientSideRowModelModule as Uo } from "ag-grid-community";
5
+ import { ModuleRegistry as Mo, ValidationModule as Fo, ColumnAutoSizeModule as Bo, PinnedRowModule as ko, RowAutoHeightModule as xo, RowStyleModule as Io, CellSpanModule as Ao, CellStyleModule as To, TooltipModule as No, RowSelectionModule as Do, LocaleModule as Eo, ValueCacheModule as Po, GridStateModule as Ko, ColumnApiModule as Vo, RowApiModule as zo, CellApiModule as Go, RenderApiModule as Lo, EventApiModule as Oo, ScrollApiModule as Wo, ClientSideRowModelApiModule as Ho, ClientSideRowModelModule as Uo } from "ag-grid-community";
6
6
  import { AgGridVue as _o } from "ag-grid-vue3";
7
- import { isUndefined as B, isFunction as N } from "lodash-unified";
7
+ import { isUndefined as B, isFunction as T } from "lodash-unified";
8
8
  import { DEFAULT_ROW_SELECTION_CONFIG as de, sizeReverseMap as jo, sizeMap as $o } from "../ap-grid/constants.mjs";
9
9
  import { useProvideApTable as qo } from "../ap-table/context.mjs";
10
10
  import { useTablePaging as Jo } from "../ap-table/hooks/use-table-paging-ng.mjs";
@@ -110,7 +110,8 @@ const or = /* @__PURE__ */ po({
110
110
  onUpdate: {},
111
111
  customRow: {},
112
112
  theme: {},
113
- emptyComponent: {}
113
+ emptyComponent: {},
114
+ emptyText: {}
114
115
  },
115
116
  setup(ce, { expose: me }) {
116
117
  const pe = {
@@ -121,11 +122,11 @@ const or = /* @__PURE__ */ po({
121
122
  Fo,
122
123
  Bo,
123
124
  ko,
124
- Io,
125
125
  xo,
126
+ Io,
126
127
  Ao,
127
- No,
128
128
  To,
129
+ No,
129
130
  Do,
130
131
  Eo,
131
132
  Po,
@@ -139,15 +140,15 @@ const or = /* @__PURE__ */ po({
139
140
  Ho,
140
141
  Uo
141
142
  ]);
142
- const o = ce, U = fo(), { e: T, b: d, be: fe } = ct("ag-grid"), { lang: _ } = mt(), ge = it("ag-grid"), h = M(o.size), we = ut(
143
+ const o = ce, U = fo(), { e: N, b: d, be: fe } = ct("ag-grid"), { lang: _ } = mt(), ge = it("ag-grid"), h = M(o.size), we = ut(
143
144
  h,
144
145
  F(o, "rowHeight"),
145
146
  F(o, "theme")
146
- ), Se = st(F(o, "virtual")), { rowPinnedGridConfig: j, getRowPinnedCellClass: Ce } = rt(
147
+ ), Se = st(F(o, "virtual")), { rowPinnedGridConfig: j, getRowPinnedCellClass: ye } = rt(
147
148
  F(o, "summary")
148
- ), ye = pt("apGrid"), s = M(), [, he] = bo();
149
+ ), Ce = pt("apGrid"), s = M(), [, he] = bo();
149
150
  let R = !!o.dataSource;
150
- const $ = at(o), { shownColumns: g, columns: q, columnKeys: Re, getTargetColumnByKey: ve } = ot(o), { defaultColDef: be, columnDefs: Me, gridWrapperRef: Fe } = tt(q, o, Ce), k = M({});
151
+ const $ = at(o), { shownColumns: g, columns: q, columnKeys: Re, getTargetColumnByKey: ve } = ot(o), { defaultColDef: be, columnDefs: Me, gridWrapperRef: Fe } = tt(q, o, ye), k = M({});
151
152
  et({
152
153
  sorter: k,
153
154
  setSorter(e) {
@@ -175,10 +176,10 @@ const or = /* @__PURE__ */ po({
175
176
  order: p ? Be[p] : null
176
177
  });
177
178
  }
178
- const Ie = n(() => Qo(t(g), (e) => {
179
+ const xe = n(() => Qo(t(g), (e) => {
179
180
  if (e.sorter === !0)
180
181
  return e.field ?? e.dataIndex ?? e.key;
181
- }).filter(Boolean)), xe = () => {
182
+ }).filter(Boolean)), Ie = () => {
182
183
  k.value = {};
183
184
  const e = s.value;
184
185
  if (!e)
@@ -194,8 +195,8 @@ const or = /* @__PURE__ */ po({
194
195
  handleTableChangeOptional: Q,
195
196
  submitWith: X,
196
197
  refresh: Y,
197
- getPaging: Ne,
198
- setPaging: Te,
198
+ getPaging: Te,
199
+ setPaging: Ne,
199
200
  setDataSource: De,
200
201
  getLastParams: Ee
201
202
  } = Jo({
@@ -220,10 +221,10 @@ const or = /* @__PURE__ */ po({
220
221
  manual: t(Ae),
221
222
  formatParams: o.beforeSearchSubmit,
222
223
  pagination: o.pagination,
223
- sortFields: Ie,
224
- onClickReset: xe
224
+ sortFields: xe,
225
+ onClickReset: Ie
225
226
  }), S = n(() => {
226
- const e = o.rowSelection || ye.value?.rowSelection;
227
+ const e = o.rowSelection || Ce.value?.rowSelection;
227
228
  if (e)
228
229
  return e === !0 ? de : {
229
230
  ...de,
@@ -259,9 +260,9 @@ const or = /* @__PURE__ */ po({
259
260
  };
260
261
  });
261
262
  function V(e) {
262
- return N(o.rowKey) ? o.rowKey(e) : e[o.rowKey];
263
+ return T(o.rowKey) ? o.rowKey(e) : e[o.rowKey];
263
264
  }
264
- const I = ({
265
+ const x = ({
265
266
  api: e = s.value
266
267
  }) => {
267
268
  if (o.onUpdate?.(), !S.value)
@@ -276,7 +277,7 @@ const or = /* @__PURE__ */ po({
276
277
  R = !0;
277
278
  }, 0);
278
279
  }, je = (e) => {
279
- R && (e.node.isSelected() ? Ve(e.data) : ze(e.data), N(S.value?.tooltip) && e.api.refreshCells({
280
+ R && (e.node.isSelected() ? Ve(e.data) : ze(e.data), T(S.value?.tooltip) && e.api.refreshCells({
280
281
  rowNodes: [e.node],
281
282
  // todo: 取消硬编码
282
283
  columns: ["ag-Grid-SelectionColumn"],
@@ -288,8 +289,8 @@ const or = /* @__PURE__ */ po({
288
289
  Le(), s.value?.deselectAll();
289
290
  };
290
291
  function qe(e) {
291
- Oe(e), x(() => {
292
- I({});
292
+ Oe(e), I(() => {
293
+ x({});
293
294
  });
294
295
  }
295
296
  const Je = n(() => {
@@ -303,13 +304,13 @@ const or = /* @__PURE__ */ po({
303
304
  } : {};
304
305
  });
305
306
  function Qe(e) {
306
- We(e), x(() => {
307
- I({});
307
+ We(e), I(() => {
308
+ x({});
308
309
  });
309
310
  }
310
311
  function Xe(e) {
311
- He(e), x(() => {
312
- I({});
312
+ He(e), I(() => {
313
+ x({});
313
314
  });
314
315
  }
315
316
  function Z(e = !1) {
@@ -412,7 +413,7 @@ const or = /* @__PURE__ */ po({
412
413
  return V(r);
413
414
  }
414
415
  function lo(e, r) {
415
- (N(e) ? s.value?.ensureNodeVisible : s.value?.ensureIndexVisible)?.(e, r);
416
+ (T(e) ? s.value?.ensureNodeVisible : s.value?.ensureIndexVisible)?.(e, r);
416
417
  }
417
418
  function ao(e, r) {
418
419
  s.value?.ensureColumnVisible(e, r);
@@ -434,7 +435,7 @@ const or = /* @__PURE__ */ po({
434
435
  j.value.getRowClass?.(e)
435
436
  ];
436
437
  if (!e.node.rowPinned) {
437
- const l = N(o.rowClassName) ? o.rowClassName(e.data, e.rowIndex) : o.rowClassName;
438
+ const l = T(o.rowClassName) ? o.rowClassName(e.data, e.rowIndex) : o.rowClassName;
438
439
  r.push(l);
439
440
  }
440
441
  return r.flat().filter(Boolean);
@@ -442,7 +443,7 @@ const or = /* @__PURE__ */ po({
442
443
  return G(
443
444
  () => o.dataSource,
444
445
  (e) => {
445
- x(() => {
446
+ I(() => {
446
447
  De(e);
447
448
  });
448
449
  },
@@ -475,21 +476,21 @@ const or = /* @__PURE__ */ po({
475
476
  scrollToRow: lo,
476
477
  scrollToColumn: ao,
477
478
  getDataSource: () => t(m.records),
478
- getPaging: Ne,
479
- setPaging: Te,
479
+ getPaging: Te,
480
+ setPaging: Ne,
480
481
  getSearchFormSorterItems: oe,
481
482
  setSearchFormSorterItems: te,
482
483
  resetSearchFormSorterItems: re,
483
484
  refreshCells: io,
484
485
  redrawRows: uo,
485
486
  _internalGridApi: n(() => s.value)
486
- }), (e, r) => (C(), L("div", {
487
- class: y(eo.value),
487
+ }), (e, r) => (y(), L("div", {
488
+ class: C(eo.value),
488
489
  style: O(e.wrapperStyle)
489
490
  }, [
490
- t(B)(e.dataSource) && e.searchForm !== !1 && t($).length > 0 ? (C(), L("div", {
491
+ t(B)(e.dataSource) && e.searchForm !== !1 && t($).length > 0 ? (y(), L("div", {
491
492
  key: 0,
492
- class: y(e.card ? t(T)("search-wrapper") : null),
493
+ class: C(e.card ? t(N)("search-wrapper") : null),
493
494
  style: O(e.searchFormWrapperStyle)
494
495
  }, [
495
496
  go(t(Zo).SearchForm, W(e.searchForm || {}, {
@@ -501,7 +502,7 @@ const or = /* @__PURE__ */ po({
501
502
  onReset: t(P)
502
503
  }), wo({
503
504
  default: ie(() => [
504
- (C(!0), L(So, null, Co(t($), (l) => (C(), H(yo(l.renderNode), {
505
+ (y(!0), L(So, null, yo(t($), (l) => (y(), H(Co(l.renderNode), {
505
506
  key: l.dataIndex
506
507
  }))), 128))
507
508
  ]),
@@ -517,11 +518,11 @@ const or = /* @__PURE__ */ po({
517
518
  ]), 1040, ["submit-loading", "onSubmit", "onReset"])
518
519
  ], 6)) : se("", !0),
519
520
  A("div", {
520
- class: y([t(T)("table-wrapper"), e.card ? t(T)("table-wrapper-card") : null]),
521
+ class: C([t(N)("table-wrapper"), e.card ? t(N)("table-wrapper-card") : null]),
521
522
  style: O(e.tableWrapperStyle)
522
523
  }, [
523
524
  A("div", {
524
- class: y(t(d)("header-wrapper"))
525
+ class: C(t(d)("header-wrapper"))
525
526
  }, [
526
527
  ue(e.$slots, "title", {
527
528
  selectedRows: t(K),
@@ -533,9 +534,9 @@ const or = /* @__PURE__ */ po({
533
534
  A("div", {
534
535
  ref_key: "gridWrapperRef",
535
536
  ref: Fe,
536
- class: y(t(d)("grid-wrapper"))
537
+ class: C(t(d)("grid-wrapper"))
537
538
  }, [
538
- (C(), H(t(_o), W(
539
+ (y(), H(t(_o), W(
539
540
  t(dt)(t(Se), t(j), Je.value),
540
541
  {
541
542
  key: t(_),
@@ -554,7 +555,8 @@ const or = /* @__PURE__ */ po({
554
555
  "enable-browser-tooltips": e.browserTooltips,
555
556
  "tooltip-interaction": "",
556
557
  "row-class-rules": e.rowClassRules,
557
- "no-rows-overlay-component": e.emptyComponent ?? St,
558
+ "no-rows-overlay-component": St,
559
+ "no-rows-overlay-component-params": { emptyComponent: e.emptyComponent, emptyText: e.emptyText },
558
560
  "loading-overlay-component": wt,
559
561
  loading: Ze.value,
560
562
  "suppress-cell-focus": "",
@@ -563,18 +565,18 @@ const or = /* @__PURE__ */ po({
563
565
  "locale-text": pe[t(_)],
564
566
  onSortChanged: ke,
565
567
  onGridReady: r[0] || (r[0] = (l) => s.value = l.api),
566
- onRowDataUpdated: I,
568
+ onRowDataUpdated: x,
567
569
  onRowSelected: je,
568
570
  onFirstDataRendered: $e,
569
571
  onRowClicked: no,
570
572
  onBodyScrollEnd: so
571
573
  }
572
- ), null, 16, ["style", "row-data", "column-defs", "default-col-def", "row-selection", "selection-column-def", "get-row-height", "theme", "enable-browser-tooltips", "row-class-rules", "no-rows-overlay-component", "loading", "dom-layout", "locale-text"]))
574
+ ), null, 16, ["style", "row-data", "column-defs", "default-col-def", "row-selection", "selection-column-def", "get-row-height", "theme", "enable-browser-tooltips", "row-class-rules", "no-rows-overlay-component-params", "loading", "dom-layout", "locale-text"]))
573
575
  ], 2),
574
576
  A("div", {
575
- class: y(t(d)("pagination-wrapper"))
577
+ class: C(t(d)("pagination-wrapper"))
576
578
  }, [
577
- e.pagination !== !1 ? (C(), H(t(vo), W({
579
+ e.pagination !== !1 ? (y(), H(t(vo), W({
578
580
  key: 0,
579
581
  class: t(d)("pagination")
580
582
  }, t(J).pagination, { onChange: to }), null, 16, ["class"])) : se("", !0)
@@ -339,6 +339,10 @@ export type AgGridProps<RecordType = any, ParamsType = any> = Omit<TableProps<Re
339
339
  * 自定义数据为空时展示的组件
340
340
  */
341
341
  emptyComponent?: any;
342
+ /**
343
+ * 自定义数据为空时展示的文本
344
+ */
345
+ emptyText?: string;
342
346
  };
343
347
  export type AgGridExpose<SearchParamsType = Recordable, RecordType = any> = {
344
348
  /**
@@ -1,6 +1,6 @@
1
1
  import { genSettingTriggerBtnStyle as a } from "../../ap-table/style/index.mjs";
2
- import { multiRows as l, resetScrollbar as r } from "../../style/index.mjs";
3
- import { genComponentStyleHook as t } from "../../utils/cssinjs/index.mjs";
2
+ import { multiRows as l, resetScrollbar as t } from "../../style/index.mjs";
3
+ import { genComponentStyleHook as r } from "../../utils/cssinjs/index.mjs";
4
4
  const d = {
5
5
  agGridSearchFormWrapperMarginBlockEnd: 10,
6
6
  agGridCellPaddingBlockMedium: 9,
@@ -12,7 +12,7 @@ const d = {
12
12
  const { componentCls: e } = i;
13
13
  return {
14
14
  [e]: {
15
- ...r(i),
15
+ ...t(i),
16
16
  "&-adaptive": {
17
17
  height: "100%",
18
18
  display: "flex",
@@ -153,12 +153,12 @@ const d = {
153
153
  ".ag-checkbox.ag-labeled[disabled] .ag-input-field-input[disabled]": {
154
154
  cursor: "not-allowed"
155
155
  },
156
- ".ag-overlay": {
156
+ [`${e}-empty`]: {
157
157
  pointerEvents: "auto"
158
158
  }
159
159
  }
160
160
  };
161
- }, s = t(
161
+ }, s = r(
162
162
  "AgGrid",
163
163
  (i) => [n(i)],
164
164
  d,