@aplus-frontend/ui 0.5.19 → 0.5.21

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 (83) hide show
  1. package/es/index.mjs +231 -227
  2. package/es/src/ap-field/index.d.ts +3 -1
  3. package/es/src/ap-field/index.mjs +34 -30
  4. package/es/src/ap-field/interface.d.ts +39 -1
  5. package/es/src/ap-field/text/index.vue2.mjs +45 -39
  6. package/es/src/ap-field/tree-select/index.vue.d.ts +1155 -0
  7. package/es/src/ap-field/tree-select/index.vue.mjs +251 -0
  8. package/es/src/ap-field/tree-select/index.vue2.mjs +4 -0
  9. package/es/src/ap-field/tree-select/style/css.d.ts +1 -0
  10. package/es/src/ap-field/tree-select/style/css.js +1 -0
  11. package/es/src/ap-field/tree-select/style/index.d.ts +1 -0
  12. package/es/src/ap-field/tree-select/style/index.js +1 -0
  13. package/es/src/ap-field/tree-select/use-request.d.ts +41 -0
  14. package/es/src/ap-field/tree-select/use-request.mjs +66 -0
  15. package/es/src/ap-form/item-tree-select/style/css.d.ts +1 -0
  16. package/es/src/ap-form/item-tree-select/style/css.js +1 -0
  17. package/es/src/ap-form/item-tree-select/style/index.d.ts +1 -0
  18. package/es/src/ap-form/item-tree-select/style/index.js +1 -0
  19. package/es/src/ap-form/items/index.d.ts +2 -1
  20. package/es/src/ap-form/items/index.mjs +3 -2
  21. package/es/src/ap-form/items/interface.d.ts +6 -1
  22. package/es/src/ap-form/items/select/index.vue.d.ts +1244 -4
  23. package/es/src/ap-form/items/select/index.vue.mjs +25 -22
  24. package/es/src/ap-form/items/text/index.vue.d.ts +2 -0
  25. package/es/src/ap-form/items/tree-select/index.vue.d.ts +1589 -0
  26. package/es/src/ap-form/items/tree-select/index.vue.mjs +107 -0
  27. package/es/src/ap-form/items/tree-select/index.vue2.mjs +4 -0
  28. package/es/src/ap-grid/editable/form-item.vue.mjs +32 -31
  29. package/es/src/ap-grid/editable/index.vue.mjs +9 -8
  30. package/es/src/ap-grid/index.vue.mjs +102 -99
  31. package/es/src/ap-grid/interface.d.ts +1 -1
  32. package/es/src/ap-table/constants.d.ts +4056 -1945
  33. package/es/src/ap-table/constants.mjs +47 -43
  34. package/es/src/ap-table/interface.d.ts +5 -1
  35. package/es/src/ap-table/utils.d.ts +1463 -6
  36. package/es/src/business/ap-ladder/components/ValueGroupMode.vue2.mjs +51 -47
  37. package/es/src/business/ap-ladder/interface.d.ts +4 -0
  38. package/es/src/business/batch-input-group/index.vue.d.ts +1 -0
  39. package/es/src/business/batch-input-group/index.vue.mjs +2 -1
  40. package/es/src/index.mjs +230 -226
  41. package/es/src/path-map.mjs +2 -0
  42. package/lib/index.js +1 -1
  43. package/lib/src/ap-field/index.d.ts +3 -1
  44. package/lib/src/ap-field/index.js +1 -1
  45. package/lib/src/ap-field/interface.d.ts +39 -1
  46. package/lib/src/ap-field/text/index.vue2.js +1 -1
  47. package/lib/src/ap-field/tree-select/index.vue.d.ts +1155 -0
  48. package/lib/src/ap-field/tree-select/index.vue.js +1 -0
  49. package/lib/src/ap-field/tree-select/index.vue2.js +1 -0
  50. package/lib/src/ap-field/tree-select/style/css.cjs +1 -0
  51. package/lib/src/ap-field/tree-select/style/css.d.ts +1 -0
  52. package/lib/src/ap-field/tree-select/style/index.cjs +1 -0
  53. package/lib/src/ap-field/tree-select/style/index.d.ts +1 -0
  54. package/lib/src/ap-field/tree-select/use-request.d.ts +41 -0
  55. package/lib/src/ap-field/tree-select/use-request.js +1 -0
  56. package/lib/src/ap-form/item-tree-select/style/css.cjs +1 -0
  57. package/lib/src/ap-form/item-tree-select/style/css.d.ts +1 -0
  58. package/lib/src/ap-form/item-tree-select/style/index.cjs +1 -0
  59. package/lib/src/ap-form/item-tree-select/style/index.d.ts +1 -0
  60. package/lib/src/ap-form/items/index.d.ts +2 -1
  61. package/lib/src/ap-form/items/index.js +1 -1
  62. package/lib/src/ap-form/items/interface.d.ts +6 -1
  63. package/lib/src/ap-form/items/select/index.vue.d.ts +1244 -4
  64. package/lib/src/ap-form/items/select/index.vue.js +1 -1
  65. package/lib/src/ap-form/items/text/index.vue.d.ts +2 -0
  66. package/lib/src/ap-form/items/tree-select/index.vue.d.ts +1589 -0
  67. package/lib/src/ap-form/items/tree-select/index.vue.js +1 -0
  68. package/lib/src/ap-form/items/tree-select/index.vue2.js +1 -0
  69. package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
  70. package/lib/src/ap-grid/editable/index.vue.js +1 -1
  71. package/lib/src/ap-grid/index.vue.js +1 -1
  72. package/lib/src/ap-grid/interface.d.ts +1 -1
  73. package/lib/src/ap-table/constants.d.ts +4056 -1945
  74. package/lib/src/ap-table/constants.js +1 -1
  75. package/lib/src/ap-table/interface.d.ts +5 -1
  76. package/lib/src/ap-table/utils.d.ts +1463 -6
  77. package/lib/src/business/ap-ladder/components/ValueGroupMode.vue2.js +1 -1
  78. package/lib/src/business/ap-ladder/interface.d.ts +4 -0
  79. package/lib/src/business/batch-input-group/index.vue.d.ts +1 -0
  80. package/lib/src/business/batch-input-group/index.vue.js +2 -2
  81. package/lib/src/index.js +1 -1
  82. package/lib/src/path-map.js +1 -1
  83. package/package.json +1 -1
@@ -1,33 +1,32 @@
1
- import { defineComponent as ke, useSlots as Fe, getCurrentInstance as Be, ref as R, computed as n, unref as o, watch as z, createElementBlock as k, openBlock as s, normalizeStyle as T, normalizeClass as f, createCommentVNode as C, createElementVNode as F, createVNode as U, mergeProps as g, createSlots as G, withCtx as h, Fragment as X, renderList as A, createBlock as u, resolveDynamicComponent as _, renderSlot as V, normalizeProps as J, guardReactiveProps as Ie } from "vue";
2
- import { VxeTable as Pe, VxeColumn as Q } from "vxe-table";
1
+ import { defineComponent as Fe, useSlots as Be, getCurrentInstance as Ie, ref as k, computed as n, unref as o, watch as T, createElementBlock as F, openBlock as s, normalizeStyle as z, normalizeClass as f, createCommentVNode as C, createElementVNode as B, createVNode as U, mergeProps as g, createSlots as G, withCtx as v, Fragment as X, renderList as A, createBlock as u, resolveDynamicComponent as _, renderSlot as V, normalizeProps as J, guardReactiveProps as Pe } from "vue";
2
+ import { VxeTable as Ee, VxeColumn as Q } from "vxe-table";
3
3
  import "vxe-table/es/style.css";
4
4
  import "vxe-pc-ui/es/style.css";
5
5
  import { VxeUI as Y } from "vxe-pc-ui";
6
- import { isUndefined as B, omit as Ee } from "lodash-unified";
7
- import { ApForm as Ne } from "../ap-form/index.mjs";
6
+ import { isUndefined as b, omit as Ne } from "lodash-unified";
7
+ import { ApForm as Te } from "../ap-form/index.mjs";
8
8
  import "../config-provider/index.mjs";
9
9
  import { noRenderAsFormItemValueList as ze } from "../ap-table/constants.mjs";
10
- import { getColumnOrder as Z, updateFormProps as Te, getFieldProps as Ae, getSearchFormItemRenderNode as _e, recursionApColumns as ee } from "../ap-table/utils.mjs";
11
- import { useTablePaging as Ve } from "../ap-table/hooks/use-table-paging-ng.mjs";
12
- import { Empty as oe, Pagination as Le } from "@aplus-frontend/antdv";
10
+ import { getColumnOrder as Z, updateFormProps as Ae, getFieldProps as _e, getSearchFormItemRenderNode as Ve, recursionApColumns as ee } from "../ap-table/utils.mjs";
11
+ import { useTablePaging as Le } from "../ap-table/hooks/use-table-paging-ng.mjs";
12
+ import { Empty as oe, Pagination as De } from "@aplus-frontend/antdv";
13
13
  import { useInnerParams as Oe } from "./hooks/use-inner-params.mjs";
14
- import { toVxeProps as De, getRowExpandProps as Ke, getRowSelectionProps as $e } from "./utils/table.mjs";
14
+ import { toVxeProps as Ke, getRowExpandProps as $e, getRowSelectionProps as He } from "./utils/table.mjs";
15
15
  import je from "../ap-table/hooks/use-table-row-selection.mjs";
16
- import { useProvideApTable as He } from "../ap-table/context.mjs";
17
- import { sizeReverseMap as We, sizeMap as Me } from "./constants.mjs";
18
- import { useRenderColumns as qe } from "./hooks/use-render-columns.mjs";
19
- import { useToken as Ue } from "@aplus-frontend/antdv/es/theme/internal";
16
+ import { useProvideApTable as We } from "../ap-table/context.mjs";
17
+ import { sizeReverseMap as Me, sizeMap as qe } from "./constants.mjs";
18
+ import { useRenderColumns as Ue } from "./hooks/use-render-columns.mjs";
19
+ import { useToken as Ge } from "@aplus-frontend/antdv/es/theme/internal";
20
20
  import "../scroll-bar/index.mjs";
21
- import { useNamespace as Ge } from "../config-provider/hooks/use-namespace.mjs";
22
- import { useGlobalConfig as Xe } from "../config-provider/hooks/use-global-config.mjs";
23
- import { useLocale as Je } from "../config-provider/hooks/use-locale.mjs";
24
- import Qe from "../scroll-bar/index.vue.mjs";
25
- const Ro = /* @__PURE__ */ ke({
21
+ import { useNamespace as Xe } from "../config-provider/hooks/use-namespace.mjs";
22
+ import { useGlobalConfig as Je } from "../config-provider/hooks/use-global-config.mjs";
23
+ import { useLocale as Qe } from "../config-provider/hooks/use-locale.mjs";
24
+ import Ye from "../scroll-bar/index.vue.mjs";
25
+ const ko = /* @__PURE__ */ Fe({
26
26
  name: "ApGrid",
27
27
  __name: "index",
28
28
  props: {
29
29
  dropdownPrefixCls: {},
30
- loading: { type: [Boolean, Object], default: void 0 },
31
30
  bordered: { type: Boolean, default: !1 },
32
31
  locale: {},
33
32
  onChange: {},
@@ -82,6 +81,8 @@ const Ro = /* @__PURE__ */ ke({
82
81
  mergeCells: {},
83
82
  mergeFooterItems: {},
84
83
  cellConfig: {},
84
+ loading: { type: Boolean, default: void 0 },
85
+ loadingConfig: {},
85
86
  columns: {},
86
87
  rowSelection: { type: Boolean },
87
88
  card: { type: Boolean, default: !1 },
@@ -108,14 +109,14 @@ const Ro = /* @__PURE__ */ ke({
108
109
  },
109
110
  setup(ae, { expose: re }) {
110
111
  var q;
111
- const L = Fe(), a = ae, b = (q = Be()) == null ? void 0 : q.appContext.app;
112
- b && !b.__VXE_PC_UI_INSTALLED__ && (b.use(Y), b.__VXE_PC_UI_INSTALLED__ = !0);
113
- const { e: I, b: d, be: te } = Ge("ap-grid"), le = Xe("valueTypeMap"), i = R([]), O = R([]), p = R(), w = R(a.size), [, m] = Ue(), { t: ne } = Je();
112
+ const L = Be(), a = ae, w = (q = Ie()) == null ? void 0 : q.appContext.app;
113
+ w && !w.__VXE_PC_UI_INSTALLED__ && (w.use(Y), w.__VXE_PC_UI_INSTALLED__ = !0);
114
+ const { e: I, b: d, be: te } = Xe("ap-grid"), le = Je("valueTypeMap"), i = k([]), D = k([]), p = k(), S = k(a.size), [, m] = Ge(), { t: ne } = Qe();
114
115
  Y.setConfig({
115
116
  i18n: (e, l) => ne(`ap.${e}`, l)
116
117
  });
117
- const { renderConfig: se, updateSignal: ie } = qe(i);
118
- let D = 0;
118
+ const { renderConfig: se, updateSignal: ie } = Ue(i);
119
+ let O = 0;
119
120
  const de = n(() => {
120
121
  if (p.value)
121
122
  return p.value.$el.querySelector(
@@ -123,26 +124,26 @@ const Ro = /* @__PURE__ */ ke({
123
124
  );
124
125
  }), K = n(() => {
125
126
  var e, l, t;
126
- return D++, ((t = (l = (e = a.columns) == null ? void 0 : e.filter(
127
+ return O++, ((t = (l = (e = a.columns) == null ? void 0 : e.filter(
127
128
  (r) => !r.hideInSearch && r.dataIndex && (r.valueType || r.customRenderFormItem) && !ze.includes(r.valueType)
128
129
  )) == null ? void 0 : l.sort((r, c) => {
129
130
  let y = Z(r.order);
130
131
  return Z(c.order) - y;
131
132
  })) == null ? void 0 : t.map((r) => {
132
- const c = Te(
133
+ const c = Ae(
133
134
  r,
134
- Ae(r.fieldProps, {})
135
+ _e(r.fieldProps, {})
135
136
  ), y = {
136
137
  ...r,
137
138
  fieldProps: {
138
139
  label: r.title,
139
140
  name: r.dataIndex,
140
141
  ...c || {},
141
- _signal: D
142
+ _signal: O
142
143
  },
143
144
  renderNode: void 0
144
145
  };
145
- return y.renderNode = _e(
146
+ return y.renderNode = Ve(
146
147
  y,
147
148
  o(le)
148
149
  ), y;
@@ -155,22 +156,22 @@ const Ro = /* @__PURE__ */ ke({
155
156
  ].filter(Boolean)), $ = n(() => ee(o(i), (e) => {
156
157
  if (e.sorter === !0)
157
158
  return e.key || e.dataIndex;
158
- }).filter(Boolean)), j = n(() => ee(o(i), (e) => {
159
+ }).filter(Boolean)), H = n(() => ee(o(i), (e) => {
159
160
  if (e.filters && !e.onFilter)
160
161
  return e.key || e.dataIndex;
161
162
  }).filter(Boolean)), {
162
163
  formRef: P,
163
- submit: H,
164
+ submit: j,
164
165
  reset: W,
165
166
  refresh: ue,
166
- data: v,
167
+ data: h,
167
168
  tableProps: M,
168
169
  setDataSource: pe,
169
170
  handleTableChange: me
170
- } = Ve({
171
+ } = Le({
171
172
  async request(e) {
172
173
  var t;
173
- if (!x.value.preserveSelectedRowKeys && B(a.dataSource) && N(), !B(a.dataSource)) {
174
+ if (!R.value.preserveSelectedRowKeys && b(a.dataSource) && N(), !b(a.dataSource)) {
174
175
  const r = e.pageSize * (e.current - 1);
175
176
  return {
176
177
  data: (a.pagination === !1 ? a.dataSource : a.dataSource.slice(r, r + e.pageSize)) || [],
@@ -184,126 +185,128 @@ const Ro = /* @__PURE__ */ ke({
184
185
  };
185
186
  },
186
187
  namespace: "ap-grid",
187
- filterFields: j,
188
+ filterFields: H,
188
189
  sortFields: $,
189
190
  defaultParams: a.params,
190
191
  defaultData: a.defaultData,
191
192
  manual: a.manual,
192
193
  formatParams: a.beforeSearchSubmit,
193
194
  pagination: a.pagination
194
- }), { sortChangeEvent: fe, filterChangeEvent: ge, paginationChangeEvent: he } = Oe(me);
195
- He({
195
+ }), { sortChangeEvent: fe, filterChangeEvent: ge, paginationChangeEvent: ve } = Oe(me);
196
+ We({
196
197
  columns: n(() => i.value),
197
- columnsBackup: n(() => O.value),
198
- size: n(() => w.value ? Me[w.value] : "middle"),
198
+ columnsBackup: n(() => D.value),
199
+ size: n(() => S.value ? qe[S.value] : "middle"),
199
200
  updateColumns(e) {
200
201
  i.value = e;
201
202
  },
202
203
  updateSize(e) {
203
- w.value = We[e];
204
+ S.value = Me[e];
204
205
  },
205
206
  renderConfig: n(() => ({
206
207
  className: te("table-header", "title"),
207
208
  color: m.value.colorPrimary
208
209
  }))
209
210
  });
210
- const ve = n(
211
+ const he = n(
211
212
  () => i.value.some(
212
213
  (e) => e.fixed === "left" || e.fixed === !0
213
214
  ) ? "left" : void 0
214
215
  ), ye = n(
215
- () => B(a.dataSource) ? v.records : a.dataSource
216
- ), { selectedRows: S, rowSelection: x, ...Ce } = je({
216
+ () => b(a.loading) ? h.loading : a.loading
217
+ ), Ce = n(
218
+ () => b(a.dataSource) ? h.records : a.dataSource
219
+ ), { selectedRows: x, rowSelection: R, ...be } = je({
217
220
  ...a.rowSelection === !0 ? {} : a.rowSelection,
218
- dataSource: ye,
221
+ dataSource: Ce,
219
222
  rowKey: a.rowKey
220
223
  }), E = () => {
221
224
  const e = p.value;
222
- e && (S.value = [
225
+ e && (x.value = [
223
226
  ...e.getCheckboxReserveRecords(),
224
227
  ...e.getCheckboxRecords()
225
228
  ]);
226
- }, be = () => {
229
+ }, we = () => {
227
230
  const e = p.value;
228
- e && (S.value = [e.getRadioRecord()]);
231
+ e && (x.value = [e.getRadioRecord()]);
229
232
  };
230
- function we() {
233
+ function Se() {
231
234
  var e;
232
235
  return ((e = a.columns) == null ? void 0 : e.filter((l) => !l.hideInTable)) || [];
233
236
  }
234
- function Se(e) {
237
+ function xe(e) {
235
238
  var l, t, r;
236
239
  (r = (t = (l = P.value) == null ? void 0 : l.apForm) == null ? void 0 : t.setFieldsValue) == null || r.call(t, e);
237
240
  }
238
- function xe(e = !1) {
241
+ function Re(e = !1) {
239
242
  var t, r, c;
240
243
  const l = e ? "getFieldsValueTransformed" : "getFieldsValue";
241
244
  return (c = (r = (t = P.value) == null ? void 0 : t.apForm) == null ? void 0 : r[l]) == null ? void 0 : c.call(r, !0);
242
245
  }
243
246
  function N() {
244
- Ce.clearAll();
247
+ be.clearAll();
245
248
  const e = p.value;
246
- e && (x.value.type === "radio" ? (e.clearRadioRow(), e.clearRadioReserve()) : (e.clearCheckboxRow(), e.clearCheckboxReserve()));
249
+ e && (R.value.type === "radio" ? (e.clearRadioRow(), e.clearRadioReserve()) : (e.clearCheckboxRow(), e.clearCheckboxReserve()));
247
250
  }
248
- async function Re(e, l) {
251
+ async function ke(e, l) {
249
252
  var r;
250
- const t = v.records[e];
253
+ const t = h.records[e];
251
254
  if (t)
252
255
  return (r = p.value) == null ? void 0 : r.scrollToRow(t, l);
253
256
  }
254
- return z(
257
+ return T(
255
258
  () => [a.columnResizable, a.columns],
256
259
  () => {
257
- const e = we();
258
- i.value = e, O.value = e;
260
+ const e = Se();
261
+ i.value = e, D.value = e;
259
262
  },
260
263
  {
261
264
  deep: !0,
262
265
  immediate: !0
263
266
  }
264
- ), z(
267
+ ), T(
265
268
  () => a.dataSource,
266
269
  (e) => {
267
270
  pe(e);
268
271
  },
269
272
  { immediate: !0 }
270
- ), z(
271
- () => o(v).loading,
273
+ ), T(
274
+ () => o(h).loading,
272
275
  (e) => {
273
276
  var l;
274
277
  (l = a.onLoadingChange) == null || l.call(a, e);
275
278
  }
276
279
  ), re({
277
- submit: H,
280
+ submit: j,
278
281
  reset: W,
279
282
  refresh: ue,
280
- setSearchFormValues: Se,
281
- getSearchFormValues: xe,
283
+ setSearchFormValues: xe,
284
+ getSearchFormValues: Re,
282
285
  getShowColumns: () => o(i),
283
286
  rowSelection: {
284
- selectedRows: n(() => S.value),
287
+ selectedRows: n(() => x.value),
285
288
  clearAll: N
286
289
  },
287
- scrollToRow: Re
288
- }), (e, l) => (s(), k("div", {
290
+ scrollToRow: ke
291
+ }), (e, l) => (s(), F("div", {
289
292
  class: f(ce.value),
290
- style: T(e.wrapperStyle)
293
+ style: z(e.wrapperStyle)
291
294
  }, [
292
- o(B)(e.dataSource) && e.searchForm !== !1 && K.value.length > 0 ? (s(), k("div", {
295
+ o(b)(e.dataSource) && e.searchForm !== !1 && K.value.length > 0 ? (s(), F("div", {
293
296
  key: 0,
294
297
  class: f(e.card ? o(I)("search-wrapper") : null),
295
- style: T(e.searchFormWrapperStyle)
298
+ style: z(e.searchFormWrapperStyle)
296
299
  }, [
297
- U(o(Ne).SearchForm, g(e.searchForm || {}, {
300
+ U(o(Te).SearchForm, g(e.searchForm || {}, {
298
301
  ref_key: "formRef",
299
302
  ref: P,
300
303
  "custom-reset": "",
301
304
  "submit-loading": o(M).loading,
302
- onSubmit: o(H),
305
+ onSubmit: o(j),
303
306
  onReset: o(W)
304
307
  }), G({
305
- default: h(() => [
306
- (s(!0), k(X, null, A(K.value, (t) => (s(), u(_(t.renderNode.Comp), g({
308
+ default: v(() => [
309
+ (s(!0), F(X, null, A(K.value, (t) => (s(), u(_(t.renderNode.Comp), g({
307
310
  key: t.dataIndex,
308
311
  item: t,
309
312
  ref_for: !0
@@ -316,38 +319,38 @@ const Ro = /* @__PURE__ */ ke({
316
319
  }, [
317
320
  L.searchFormExtra ? {
318
321
  name: "extra",
319
- fn: h(() => [
322
+ fn: v(() => [
320
323
  V(e.$slots, "searchFormExtra")
321
324
  ]),
322
325
  key: "0"
323
326
  } : void 0
324
327
  ]), 1040, ["submit-loading", "onSubmit", "onReset"])
325
328
  ], 6)) : C("", !0),
326
- F("div", {
329
+ B("div", {
327
330
  class: f([o(I)("table-wrapper"), e.card ? o(I)("table-wrapper-card") : null]),
328
- style: T(e.tableWrapperStyle)
331
+ style: z(e.tableWrapperStyle)
329
332
  }, [
330
- F("div", {
333
+ B("div", {
331
334
  class: f(o(d)("header-wrapper"))
332
335
  }, [
333
336
  V(e.$slots, "title", {
334
- selectedRows: o(S),
335
- selectedRowKeys: o(x).selectedRowKeys,
337
+ selectedRows: o(x),
338
+ selectedRowKeys: o(R).selectedRowKeys,
336
339
  shownColumns: i.value,
337
340
  clearAll: N
338
341
  })
339
342
  ], 2),
340
- F("div", {
343
+ B("div", {
341
344
  class: f(o(d)("vxe-wrapper"))
342
345
  }, [
343
- (s(), u(o(Pe), g(o(De)(a), {
346
+ (s(), u(o(Ee), g(o(Ke)(a), {
344
347
  ref_key: "tableRef",
345
348
  ref: p,
346
349
  key: o(ie),
347
- data: o(v).records,
350
+ data: o(h).records,
348
351
  "sort-config": { remote: $.value.length > 0 },
349
- "filter-config": { remote: j.value.length > 0 },
350
- loading: o(v).loading,
352
+ "filter-config": { remote: H.value.length > 0 },
353
+ loading: ye.value,
351
354
  "row-config": {
352
355
  isHover: !0,
353
356
  keyField: a.rowKey
@@ -362,58 +365,58 @@ const Ro = /* @__PURE__ */ ke({
362
365
  "--vxe-ui-table-row-radio-checked-background-color": o(m).controlItemBgActive,
363
366
  "--vxe-ui-table-row-hover-radio-checked-background-color": o(m).controlItemBgActiveHover
364
367
  },
365
- size: w.value,
368
+ size: S.value,
366
369
  onSortChange: o(fe),
367
370
  onFilterChange: o(ge),
368
371
  onCheckboxChange: E,
369
372
  onCheckboxRangeChange: E,
370
373
  onCheckboxAll: E,
371
- onRadioChange: be
374
+ onRadioChange: we
372
375
  }), G({
373
- empty: h(() => [
376
+ empty: v(() => [
374
377
  U(o(oe), {
375
378
  image: o(oe).PRESENTED_IMAGE_SIMPLE
376
379
  }, null, 8, ["image"])
377
380
  ]),
378
- default: h(() => [
379
- a.expandable ? (s(), u(o(Q), g({ key: 0 }, o(Ke)(e.expandable), { fixed: ve.value }), {
380
- content: h((t) => [
381
+ default: v(() => [
382
+ a.expandable ? (s(), u(o(Q), g({ key: 0 }, o($e)(e.expandable), { fixed: he.value }), {
383
+ content: v((t) => [
381
384
  (s(), u(_(a.expandable.renderContent(t))))
382
385
  ]),
383
386
  _: 1
384
387
  }, 16, ["fixed"])) : C("", !0),
385
- a.rowSelection ? (s(), u(o(Q), J(g({ key: 1 }, o($e)(o(x), i.value))), null, 16)) : C("", !0),
386
- (s(!0), k(X, null, A(o(se), (t) => (s(), u(_(t), {
388
+ a.rowSelection ? (s(), u(o(Q), J(g({ key: 1 }, o(He)(o(R), i.value))), null, 16)) : C("", !0),
389
+ (s(!0), F(X, null, A(o(se), (t) => (s(), u(_(t), {
387
390
  key: t.props.colId
388
391
  }))), 128))
389
392
  ]),
390
393
  _: 2
391
394
  }, [
392
- A(o(Ee)(L, ["searchFormExtra"]), (t, r) => ({
395
+ A(o(Ne)(L, ["searchFormExtra"]), (t, r) => ({
393
396
  name: r,
394
- fn: h((c) => [
395
- V(e.$slots, r, J(Ie(c || {})))
397
+ fn: v((c) => [
398
+ V(e.$slots, r, J(Pe(c || {})))
396
399
  ])
397
400
  }))
398
401
  ]), 1040, ["data", "sort-config", "filter-config", "loading", "row-config", "style", "size", "onSortChange", "onFilterChange"]))
399
402
  ], 2),
400
- F("div", {
403
+ B("div", {
401
404
  class: f(o(d)("pagination-wrapper"))
402
405
  }, [
403
- e.sticky ? (s(), u(o(Qe), {
406
+ e.sticky ? (s(), u(o(Ye), {
404
407
  key: 0,
405
408
  direction: "horizontal",
406
409
  "scroll-container": de.value
407
410
  }, null, 8, ["scroll-container"])) : C("", !0),
408
- e.pagination !== !1 ? (s(), u(o(Le), g({
411
+ e.pagination !== !1 ? (s(), u(o(De), g({
409
412
  key: 1,
410
413
  class: o(d)("pagination")
411
- }, o(M).pagination, { onChange: o(he) }), null, 16, ["class", "onChange"])) : C("", !0)
414
+ }, o(M).pagination, { onChange: o(ve) }), null, 16, ["class", "onChange"])) : C("", !0)
412
415
  ], 2)
413
416
  ], 6)
414
417
  ], 6));
415
418
  }
416
419
  });
417
420
  export {
418
- Ro as default
421
+ ko as default
419
422
  };
@@ -115,7 +115,7 @@ export type ApGridRowSelection<RecordType> = Pick<TableRowSelection<RecordType>,
115
115
  */
116
116
  range?: boolean;
117
117
  };
118
- export type ApGridProps<RecordType = any, ParamsType = any> = Omit<TableProps<RecordType>, 'columns' | 'pagination' | 'dataSource' | 'size' | 'rowSelection' | 'rowKey' | 'rowClassName' | 'footer'> & Pick<VxeTableProps<RecordType>, 'rowClassName' | 'stripe' | 'headerRowClassName' | 'footerRowClassName' | 'cellClassName' | 'headerCellClassName' | 'footerCellClassName' | 'rowStyle' | 'headerRowStyle' | 'footerRowStyle' | 'cellStyle' | 'headerCellStyle' | 'footerCellStyle' | 'height' | 'minHeight' | 'maxHeight' | 'mergeCells' | 'mergeFooterItems' | 'cellConfig'> & {
118
+ export type ApGridProps<RecordType = any, ParamsType = any> = Omit<TableProps<RecordType>, 'columns' | 'pagination' | 'dataSource' | 'size' | 'rowSelection' | 'rowKey' | 'rowClassName' | 'footer' | 'loading'> & Pick<VxeTableProps<RecordType>, 'rowClassName' | 'stripe' | 'headerRowClassName' | 'footerRowClassName' | 'cellClassName' | 'headerCellClassName' | 'footerCellClassName' | 'rowStyle' | 'headerRowStyle' | 'footerRowStyle' | 'cellStyle' | 'headerCellStyle' | 'footerCellStyle' | 'height' | 'minHeight' | 'maxHeight' | 'mergeCells' | 'mergeFooterItems' | 'cellConfig' | 'loading' | 'loadingConfig'> & {
119
119
  /**
120
120
  * 列配置
121
121
  */