@aplus-frontend/ui 0.4.0 → 0.4.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 (118) hide show
  1. package/es/src/ap-field/number/index.vue.d.ts +322 -1
  2. package/es/src/ap-field/radio/index.vue.d.ts +98 -2
  3. package/es/src/ap-field/rate/index.vue.d.ts +82 -1
  4. package/es/src/ap-field/segmented/index.vue.d.ts +1 -7
  5. package/es/src/ap-field/select/index.vue.d.ts +423 -1
  6. package/es/src/ap-field/select/index.vue.mjs +4 -3
  7. package/es/src/ap-field/slider/index.vue.d.ts +257 -1
  8. package/es/src/ap-field/text/index.vue.d.ts +1 -13
  9. package/es/src/ap-field/text-area/index.vue.d.ts +267 -2
  10. package/es/src/ap-form/ap-form.vue.d.ts +636 -1
  11. package/es/src/ap-form/drawer-form/index.vue.d.ts +1454 -4
  12. package/es/src/ap-form/item/index.vue.d.ts +777 -1
  13. package/es/src/ap-form/items/number/index.vue.d.ts +783 -2
  14. package/es/src/ap-form/items/radio/index.vue.d.ts +221 -3
  15. package/es/src/ap-form/items/text/index.vue.d.ts +128 -15
  16. package/es/src/ap-form/items/text/password.vue.d.ts +148 -1
  17. package/es/src/ap-form/items/text-area/index.vue.d.ts +566 -3
  18. package/es/src/ap-form/modal-form/index.vue.d.ts +1454 -5
  19. package/es/src/ap-form/modal-form/index.vue.mjs +77 -75
  20. package/es/src/ap-form/search-form/index.vue.d.ts +1454 -3
  21. package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +4 -1
  22. package/es/src/ap-list/index.vue.d.ts +1 -1
  23. package/es/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +3 -1
  24. package/es/src/ap-scroll-bar/index.d.ts +3 -1
  25. package/es/src/ap-table/ap-table.vue.d.ts +1 -1
  26. package/es/src/ap-table/ap-table.vue2.mjs +98 -97
  27. package/es/src/ap-table/constants.d.ts +2260 -26
  28. package/es/src/ap-table/context.d.ts +1 -0
  29. package/es/src/ap-table/context.mjs +11 -10
  30. package/es/src/ap-table/utils.d.ts +1168 -8
  31. package/es/src/ap-tag/ap-tag-group.vue.d.ts +3 -1
  32. package/es/src/ap-upload/apUpload.vue.d.ts +3 -1
  33. package/es/src/ap-upload/components/MultipleFile.vue.d.ts +453 -2
  34. package/es/src/ap-upload/components/Picture.vue.d.ts +3 -1
  35. package/es/src/ap-upload/components/SingleFile.vue.d.ts +3 -1
  36. package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +1 -1
  37. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +66 -61
  38. package/es/src/business/ap-group-search/ap-group-search.vue.d.ts +3 -1
  39. package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +5 -4
  40. package/es/src/business/ap-group-search/extension-select/index.vue.d.ts +3 -1
  41. package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +8 -7
  42. package/es/src/business/ap-group-search/index.d.ts +444 -4
  43. package/es/src/business/ap-group-search/popover-select/index.vue.d.ts +421 -3
  44. package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +1 -0
  45. package/es/src/business/ap-select-layout/select-layout.vue.d.ts +1 -1
  46. package/es/src/business/ap-table-modal/index.d.ts +22 -2
  47. package/es/src/business/ap-table-modal/interface.d.ts +2 -2
  48. package/es/src/business/ap-table-modal/table-modal.vue.d.ts +22 -2
  49. package/es/src/business/batch-input-group/index.vue.d.ts +134 -3
  50. package/es/src/business/batch-input-group/popover-input/index.vue.d.ts +267 -2
  51. package/es/src/business/hooks/usePageListApTable.d.ts +2 -2
  52. package/es/src/business/hooks/usePageListApTable.mjs +35 -33
  53. package/es/src/editable-table/form-item.vue.d.ts +1 -1
  54. package/es/src/editable-table/index.vue.d.ts +1 -1
  55. package/es/src/work-order-modal/work-order-modal.vue.d.ts +827 -2
  56. package/lib/src/ap-field/number/index.vue.d.ts +322 -1
  57. package/lib/src/ap-field/radio/index.vue.d.ts +98 -2
  58. package/lib/src/ap-field/rate/index.vue.d.ts +82 -1
  59. package/lib/src/ap-field/segmented/index.vue.d.ts +1 -7
  60. package/lib/src/ap-field/select/index.vue.d.ts +423 -1
  61. package/lib/src/ap-field/select/index.vue.js +1 -1
  62. package/lib/src/ap-field/slider/index.vue.d.ts +257 -1
  63. package/lib/src/ap-field/text/index.vue.d.ts +1 -13
  64. package/lib/src/ap-field/text-area/index.vue.d.ts +267 -2
  65. package/lib/src/ap-form/ap-form.vue.d.ts +636 -1
  66. package/lib/src/ap-form/drawer-form/index.vue.d.ts +1454 -4
  67. package/lib/src/ap-form/item/index.vue.d.ts +777 -1
  68. package/lib/src/ap-form/items/number/index.vue.d.ts +783 -2
  69. package/lib/src/ap-form/items/radio/index.vue.d.ts +221 -3
  70. package/lib/src/ap-form/items/text/index.vue.d.ts +128 -15
  71. package/lib/src/ap-form/items/text/password.vue.d.ts +148 -1
  72. package/lib/src/ap-form/items/text-area/index.vue.d.ts +566 -3
  73. package/lib/src/ap-form/modal-form/index.vue.d.ts +1454 -5
  74. package/lib/src/ap-form/modal-form/index.vue.js +1 -1
  75. package/lib/src/ap-form/search-form/index.vue.d.ts +1454 -3
  76. package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +4 -1
  77. package/lib/src/ap-list/index.vue.d.ts +1 -1
  78. package/lib/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +3 -1
  79. package/lib/src/ap-scroll-bar/index.d.ts +3 -1
  80. package/lib/src/ap-table/ap-table.vue.d.ts +1 -1
  81. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  82. package/lib/src/ap-table/constants.d.ts +2260 -26
  83. package/lib/src/ap-table/context.d.ts +1 -0
  84. package/lib/src/ap-table/context.js +1 -1
  85. package/lib/src/ap-table/utils.d.ts +1168 -8
  86. package/lib/src/ap-tag/ap-tag-group.vue.d.ts +3 -1
  87. package/lib/src/ap-upload/apUpload.vue.d.ts +3 -1
  88. package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +453 -2
  89. package/lib/src/ap-upload/components/Picture.vue.d.ts +3 -1
  90. package/lib/src/ap-upload/components/SingleFile.vue.d.ts +3 -1
  91. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +1 -1
  92. package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
  93. package/lib/src/business/ap-group-search/ap-group-search.vue.d.ts +3 -1
  94. package/lib/src/business/ap-group-search/ap-group-search.vue2.js +1 -1
  95. package/lib/src/business/ap-group-search/extension-select/index.vue.d.ts +3 -1
  96. package/lib/src/business/ap-group-search/extension-select/index.vue2.js +1 -1
  97. package/lib/src/business/ap-group-search/index.d.ts +444 -4
  98. package/lib/src/business/ap-group-search/popover-select/index.vue.d.ts +421 -3
  99. package/lib/src/business/ap-group-search/popover-select/index.vue2.js +1 -1
  100. package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +1 -1
  101. package/lib/src/business/ap-table-modal/index.d.ts +22 -2
  102. package/lib/src/business/ap-table-modal/interface.d.ts +2 -2
  103. package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +22 -2
  104. package/lib/src/business/batch-input-group/index.vue.d.ts +134 -3
  105. package/lib/src/business/batch-input-group/popover-input/index.vue.d.ts +267 -2
  106. package/lib/src/business/hooks/usePageListApTable.d.ts +2 -2
  107. package/lib/src/business/hooks/usePageListApTable.js +1 -1
  108. package/lib/src/editable-table/form-item.vue.d.ts +1 -1
  109. package/lib/src/editable-table/index.vue.d.ts +1 -1
  110. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +827 -2
  111. package/package.json +5 -5
  112. package/theme/ap-form/index.css +3 -4
  113. package/theme/ap-form/modal-form.css +3 -4
  114. package/theme/ap-form/modal-form.less +3 -4
  115. package/theme/ap-table/ap-table.css +3 -4
  116. package/theme/ap-table-modal/index.css +3 -4
  117. package/theme/editable-table/index.css +3 -4
  118. package/theme/index.css +3 -4
@@ -16,7 +16,10 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
16
  declare const __VLS_component: DefineComponent<ApInfoLayoutAdminProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApInfoLayoutAdminProps> & Readonly<{}>, {
17
17
  bordered: boolean;
18
18
  headerStyle: CSSProperties;
19
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
19
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
20
+ containerRef: HTMLDivElement;
21
+ headerRef: HTMLDivElement;
22
+ }, HTMLDivElement>;
20
23
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
21
24
  export default _default;
22
25
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -3,7 +3,7 @@ import { Recordable } from '../type';
3
3
  import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, Ref, VNode } from 'vue';
4
4
  import { ApFormSearchFormExpose } from '..';
5
5
  declare const _default: <RecordType extends Recordable>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
6
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & Partial<{}> & ApListProps<RecordType>> & PublicProps;
6
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & ApListProps<RecordType> & Partial<{}>> & PublicProps;
7
7
  expose(exposed: ShallowUnwrapRef<{
8
8
  submit: () => void;
9
9
  reset: () => void;
@@ -2,5 +2,7 @@ import { ApScrollBarProps } from './interface';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  declare const _default: DefineComponent<ApScrollBarProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApScrollBarProps> & Readonly<{}>, {
4
4
  type: "horizontal" | "vertical";
5
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
5
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
6
+ containerRef: HTMLDivElement;
7
+ }, HTMLDivElement>;
6
8
  export default _default;
@@ -4,7 +4,9 @@ export * from './interface';
4
4
  declare const ApScrollBar: {
5
5
  new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApScrollBarProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
6
6
  type: "horizontal" | "vertical";
7
- }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
7
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
8
+ containerRef: HTMLDivElement;
9
+ }, HTMLDivElement, ComponentProvideOptions, {
8
10
  P: {};
9
11
  B: {};
10
12
  D: {};
@@ -3,7 +3,7 @@ import { ColumnsType, ColumnType } from '@aplus-frontend/antdv/es/table';
3
3
  import { RowSelectionReturnType } from './hooks/use-table-row-selection';
4
4
  import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, ComputedRef, VNode } from 'vue';
5
5
  declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
6
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & Partial<{}> & ApTableProps<RecordType>> & PublicProps;
6
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & ApTableProps<RecordType> & Partial<{}>> & PublicProps;
7
7
  expose(exposed: ShallowUnwrapRef<{
8
8
  submit: () => void;
9
9
  reset: () => void;
@@ -1,4 +1,4 @@
1
- import { defineComponent as Te, useSlots as Fe, ref as P, computed as s, unref as l, createVNode as g, Fragment as q, watchEffect as xe, watch as G, openBlock as p, createElementBlock as T, normalizeClass as f, normalizeStyle as M, mergeProps as w, createSlots as _, withCtx as F, renderList as J, createBlock as Q, resolveDynamicComponent as Be, renderSlot as b, createCommentVNode as X, createElementVNode as I, normalizeProps as ke, guardReactiveProps as ze } from "vue";
1
+ import { defineComponent as Te, useSlots as Fe, ref as P, computed as s, unref as t, createVNode as w, Fragment as q, watchEffect as xe, watch as G, openBlock as p, createElementBlock as T, normalizeClass as f, normalizeStyle as M, mergeProps as S, createSlots as _, withCtx as F, renderList as J, createBlock as Q, resolveDynamicComponent as Be, renderSlot as b, createCommentVNode as X, createElementVNode as I, normalizeProps as ke, guardReactiveProps as ze } from "vue";
2
2
  import { Divider as Pe, Table as Ie } from "@aplus-frontend/antdv";
3
3
  import { useToken as Ne } from "@aplus-frontend/antdv/es/theme/internal";
4
4
  import { ApForm as Ee } from "../ap-form/index.mjs";
@@ -17,7 +17,7 @@ import { useNamespace as Je } from "../config-provider/hooks/use-namespace.mjs";
17
17
  import { useGlobalConfig as Qe } from "../config-provider/hooks/use-global-config.mjs";
18
18
  import Xe from "./components/paragraph-ellipsis/index.vue2.mjs";
19
19
  import Ye from "./components/setting/modal/index.vue2.mjs";
20
- const ba = /* @__PURE__ */ Te({
20
+ const Sa = /* @__PURE__ */ Te({
21
21
  name: "ApTable",
22
22
  __name: "ap-table",
23
23
  props: {
@@ -142,11 +142,11 @@ const ba = /* @__PURE__ */ Te({
142
142
  }
143
143
  },
144
144
  setup(oe, {
145
- expose: te
145
+ expose: re
146
146
  }) {
147
147
  const a = oe;
148
148
  let N = 0;
149
- const h = Fe(), [, re] = Ne(), {
149
+ const h = Fe(), [, te] = Ne(), {
150
150
  e: x,
151
151
  b: i,
152
152
  be: E
@@ -163,36 +163,37 @@ const ba = /* @__PURE__ */ Te({
163
163
  },
164
164
  updateSize(e) {
165
165
  B.value = e;
166
- }
166
+ },
167
+ dataSource: s(() => t(y).records)
167
168
  });
168
169
  const L = s(() => {
169
- var e, t, o;
170
- return N++, ((o = (t = (e = a.columns) == null ? void 0 : e.filter((r) => !r.hideInSearch && r.dataIndex && (r.valueType || r.customRenderFormItem) && !Y.includes(r.valueType))) == null ? void 0 : t.sort((r, d) => {
171
- let n = ee(r.order);
170
+ var e, r, o;
171
+ return N++, ((o = (r = (e = a.columns) == null ? void 0 : e.filter((l) => !l.hideInSearch && l.dataIndex && (l.valueType || l.customRenderFormItem) && !Y.includes(l.valueType))) == null ? void 0 : r.sort((l, d) => {
172
+ let n = ee(l.order);
172
173
  return ee(d.order) - n;
173
- })) == null ? void 0 : o.map((r) => {
174
- const d = Le(r, Ve(r.fieldProps, {})), n = {
175
- ...r,
174
+ })) == null ? void 0 : o.map((l) => {
175
+ const d = Le(l, Ve(l.fieldProps, {})), n = {
176
+ ...l,
176
177
  fieldProps: {
177
- label: r.title,
178
- name: r.dataIndex,
178
+ label: l.title,
179
+ name: l.dataIndex,
179
180
  ...d || {},
180
181
  _signal: N
181
182
  },
182
183
  renderNode: void 0
183
184
  };
184
- return n.renderNode = Ae(n, l(K)), n;
185
+ return n.renderNode = Ae(n, t(K)), n;
185
186
  })) || [];
186
- }), se = s(() => ae(l(u), (e) => {
187
+ }), se = s(() => ae(t(u), (e) => {
187
188
  if (e.sorter === !0)
188
189
  return e.key || e.dataIndex;
189
- }).filter(Boolean)), de = s(() => ae(l(u), (e) => {
190
+ }).filter(Boolean)), de = s(() => ae(t(u), (e) => {
190
191
  if (e.filters && !e.onFilter)
191
192
  return e.key || e.dataIndex;
192
- }).filter(Boolean)), ue = s(() => m(a.dataSource) ? v.records : a.dataSource), {
193
- rowSelection: S,
194
- selectedRows: R,
195
- ...C
193
+ }).filter(Boolean)), ue = s(() => m(a.dataSource) ? y.records : a.dataSource), {
194
+ rowSelection: R,
195
+ selectedRows: C,
196
+ ...v
196
197
  } = Ge({
197
198
  fixed: !0,
198
199
  ...a.rowSelection === !0 ? {} : a.rowSelection,
@@ -204,21 +205,21 @@ const ba = /* @__PURE__ */ Te({
204
205
  reset: A,
205
206
  tableProps: D,
206
207
  refresh: ie,
207
- data: v,
208
+ data: y,
208
209
  setDataSource: ce,
209
210
  getColumnSFConfig: pe
210
211
  } = Ke({
211
212
  async request(e) {
212
- var o, r;
213
- if (!S.value.preserveSelectedRowKeys && m(a.dataSource) && C.clearAll(), !m(a.dataSource))
213
+ var o, l;
214
+ if (!R.value.preserveSelectedRowKeys && m(a.dataSource) && v.clearAll(), !m(a.dataSource))
214
215
  return {
215
216
  data: a.dataSource || [],
216
217
  total: a.dataSource.length || 0
217
218
  };
218
- const t = await ((o = a.request) == null ? void 0 : o.call(a, e));
219
- return (r = a.onLoad) == null || r.call(a, (t == null ? void 0 : t.data) || []), {
220
- data: (t == null ? void 0 : t.data) || [],
221
- total: (t == null ? void 0 : t.total) || 0
219
+ const r = await ((o = a.request) == null ? void 0 : o.call(a, e));
220
+ return (l = a.onLoad) == null || l.call(a, (r == null ? void 0 : r.data) || []), {
221
+ data: (r == null ? void 0 : r.data) || [],
222
+ total: (r == null ? void 0 : r.total) || 0
222
223
  };
223
224
  },
224
225
  filterFields: de,
@@ -230,17 +231,17 @@ const ba = /* @__PURE__ */ Te({
230
231
  pagination: a.pagination
231
232
  }), fe = () => {
232
233
  var o;
233
- let e = ((o = a.columns) == null ? void 0 : o.filter((r) => !r.hideInTable)) || [];
234
- function t(r, d) {
235
- return r.map((n) => ({
234
+ let e = ((o = a.columns) == null ? void 0 : o.filter((l) => !l.hideInTable)) || [];
235
+ function r(l, d) {
236
+ return l.map((n) => ({
236
237
  resizable: Me(n.resizable) ? n.resizable : a.columnResizable,
237
238
  ...Z(De(n), ["ellipsis"]),
238
239
  ...pe(n),
239
240
  fixed: d ? d.fixed : n.fixed,
240
- title: je(n, E("table-header", "title"), h.headerCell, l(re).colorPrimary),
241
+ title: je(n, E("table-header", "title"), h.headerCell, t(te).colorPrimary),
241
242
  customRender({
242
243
  value: c,
243
- ...y
244
+ ...g
244
245
  }) {
245
246
  var H, U;
246
247
  const $ = $e(n), Re = We({
@@ -248,37 +249,37 @@ const ba = /* @__PURE__ */ Te({
248
249
  valueType: $
249
250
  }, {
250
251
  value: c,
251
- ...y
252
- }), Ce = He($, Re, y.record, l(K)), W = ((H = n.renderText) == null ? void 0 : H.call(n, {
252
+ ...g
253
+ }), Ce = He($, Re, g.record, t(K)), W = ((H = n.renderText) == null ? void 0 : H.call(n, {
253
254
  value: c,
254
- ...y
255
- })) || c, ve = n.renderText ? g(q, null, [(U = n.renderText) == null ? void 0 : U.call(n, {
255
+ ...g
256
+ })) || c, ve = n.renderText ? w(q, null, [(U = n.renderText) == null ? void 0 : U.call(n, {
256
257
  value: c,
257
- ...y
258
+ ...g
258
259
  })]) : Ce;
259
260
  let z = we(n, W, ve);
260
261
  return n.customRender && (z = n.customRender({
261
262
  value: c,
262
- ...y,
263
+ ...g,
263
264
  column: n,
264
265
  originalNode: z,
265
266
  originalText: W
266
267
  })), z;
267
268
  },
268
- children: t(n.children || [], d || n)
269
+ children: r(n.children || [], d || n)
269
270
  }));
270
271
  }
271
- return t(e);
272
+ return r(e);
272
273
  };
273
274
  xe(() => {
274
275
  const e = fe();
275
276
  u.value = e, O.value = e;
276
277
  });
277
278
  const me = s(() => {
278
- var t, o;
279
- if (a.adaptive && (v.total > 0 || ((t = a.dataSource) == null ? void 0 : t.length)))
279
+ var r, o;
280
+ if (a.adaptive && (y.total > 0 || ((r = a.dataSource) == null ? void 0 : r.length)))
280
281
  return {
281
- y: l(le),
282
+ y: t(le),
282
283
  x: ((o = a.scroll) == null ? void 0 : o.x) || "100%"
283
284
  };
284
285
  if (a.scroll)
@@ -287,26 +288,26 @@ const ba = /* @__PURE__ */ Te({
287
288
  var e;
288
289
  if (a.tableLayout)
289
290
  return a.tableLayout;
290
- if ((e = a.columns) != null && e.some((t) => t.ellipsis))
291
+ if ((e = a.columns) != null && e.some((r) => r.ellipsis))
291
292
  return "fixed";
292
293
  }), j = s(() => {
293
294
  var o;
294
- const e = l(D), t = l(S);
295
+ const e = t(D), r = t(R);
295
296
  return {
296
297
  ...a,
297
298
  ...e,
298
299
  rowSelection: a.rowSelection === !0 || ((o = a.rowSelection) == null ? void 0 : o.mode) === "internal" ? {
299
- ...t,
300
+ ...r,
300
301
  // tips 如果是前端分页,则默认会走缓存
301
- preserveSelectedRowKeys: m(a.dataSource) ? t.preserveSelectedRowKeys : !0
302
+ preserveSelectedRowKeys: m(a.dataSource) ? r.preserveSelectedRowKeys : !0
302
303
  } : Ue(a.rowSelection),
303
304
  loading: m(a.loading) ? e.loading : a.loading,
304
305
  pagination: a.pagination === !1 ? !1 : e.pagination,
305
- scroll: l(me)
306
+ scroll: t(me)
306
307
  };
307
308
  }), ge = s(() => [i(), a.card ? null : i("wrapper"), a.adaptive ? i("adaptive") : null].filter(Boolean));
308
- function we(e, t, o) {
309
- return Y.includes(e.valueType) ? o : e.copyable || e.ellipsis ? g(Xe, {
309
+ function we(e, r, o) {
310
+ return Y.includes(e.valueType) ? o : e.copyable || e.ellipsis ? w(Xe, {
310
311
  copyable: e.copyable,
311
312
  ellipsis: e.ellipsis ? Oe(e.ellipsis) ? {
312
313
  tooltip: o,
@@ -318,53 +319,53 @@ const ba = /* @__PURE__ */ Te({
318
319
  content: o
319
320
  }, null) : o;
320
321
  }
321
- G(() => l(v).loading, (e) => {
322
- var t;
323
- (t = a.onLoadingChange) == null || t.call(a, e);
322
+ G(() => t(y).loading, (e) => {
323
+ var r;
324
+ (r = a.onLoadingChange) == null || r.call(a, e);
324
325
  }), G(() => a.dataSource, (e) => {
325
326
  ce(e);
326
327
  }, {
327
328
  immediate: !0
328
329
  });
329
- function be(e) {
330
- var t, o, r;
331
- (r = (o = (t = k.value) == null ? void 0 : t.apForm) == null ? void 0 : o.setFieldsValue) == null || r.call(o, e);
330
+ function Se(e) {
331
+ var r, o, l;
332
+ (l = (o = (r = k.value) == null ? void 0 : r.apForm) == null ? void 0 : o.setFieldsValue) == null || l.call(o, e);
332
333
  }
333
- function he(e = !1) {
334
- var o, r, d;
335
- const t = e ? "getFieldsValueTransformed" : "getFieldsValue";
336
- return (d = (r = (o = k.value) == null ? void 0 : o.apForm) == null ? void 0 : r[t]) == null ? void 0 : d.call(r, !0);
334
+ function be(e = !1) {
335
+ var o, l, d;
336
+ const r = e ? "getFieldsValueTransformed" : "getFieldsValue";
337
+ return (d = (l = (o = k.value) == null ? void 0 : o.apForm) == null ? void 0 : l[r]) == null ? void 0 : d.call(l, !0);
337
338
  }
338
- function Se() {
339
- return l(u);
339
+ function he() {
340
+ return t(u);
340
341
  }
341
- return te({
342
+ return re({
342
343
  submit: () => V(),
343
344
  reset: () => A(),
344
345
  refresh: () => ie(),
345
- setSearchFormValues: be,
346
- getSearchFormValues: he,
347
- getShownColumns: Se,
348
- dataSource: s(() => l(v).records),
346
+ setSearchFormValues: Se,
347
+ getSearchFormValues: be,
348
+ getShownColumns: he,
349
+ dataSource: s(() => t(y).records),
349
350
  rowSelection: {
350
- selectedRows: s(() => l(R)),
351
- ...C
351
+ selectedRows: s(() => t(C)),
352
+ ...v
352
353
  }
353
- }), (e, t) => (p(), T("div", {
354
+ }), (e, r) => (p(), T("div", {
354
355
  class: f(ge.value)
355
- }, [l(m)(e.dataSource) && e.searchForm !== !1 && L.value.length > 0 ? (p(), T("div", {
356
+ }, [t(m)(e.dataSource) && e.searchForm !== !1 && L.value.length > 0 ? (p(), T("div", {
356
357
  key: 0,
357
- class: f(e.card ? l(x)("search-wrapper") : null),
358
+ class: f(e.card ? t(x)("search-wrapper") : null),
358
359
  style: M(e.searchFormWrapperStyle)
359
- }, [g(l(Ee).SearchForm, w(e.searchForm || {}, {
360
+ }, [w(t(Ee).SearchForm, S(e.searchForm || {}, {
360
361
  ref_key: "formRef",
361
362
  ref: k,
362
363
  "custom-reset": "",
363
- "submit-loading": l(D).loading,
364
- onSubmit: l(V),
365
- onReset: l(A)
364
+ "submit-loading": t(D).loading,
365
+ onSubmit: t(V),
366
+ onReset: t(A)
366
367
  }), _({
367
- default: F(() => [(p(!0), T(q, null, J(L.value, (o) => (p(), Q(Be(o.renderNode), w({
368
+ default: F(() => [(p(!0), T(q, null, J(L.value, (o) => (p(), Q(Be(o.renderNode), S({
368
369
  key: o.dataIndex,
369
370
  ref_for: !0
370
371
  }, o.fieldProps || {}, {
@@ -378,49 +379,49 @@ const ba = /* @__PURE__ */ Te({
378
379
  } : void 0]), 1040, ["submit-loading", "onSubmit", "onReset"])], 6)) : X("", !0), I("div", {
379
380
  ref_key: "contentRef",
380
381
  ref: ne,
381
- class: f([l(x)("table-wrapper"), e.card ? l(x)("table-wrapper-card") : null]),
382
+ class: f([t(x)("table-wrapper"), e.card ? t(x)("table-wrapper-card") : null]),
382
383
  style: M(e.tableWrapperStyle)
383
384
  }, [I("div", {
384
- class: f(l(i)("header-wrapper"))
385
+ class: f(t(i)("header-wrapper"))
385
386
  }, [e.settings ? (p(), T("div", {
386
387
  key: 0,
387
- class: f(l(i)("header"))
388
+ class: f(t(i)("header"))
388
389
  }, [I("div", {
389
- class: f(l(E)("header", "title"))
390
- }, [b(e.$slots, "title", w({
391
- selectedRows: l(R),
392
- selectedRowKeys: l(S).selectedRowKeys,
390
+ class: f(t(E)("header", "title"))
391
+ }, [b(e.$slots, "title", S({
392
+ selectedRows: t(C),
393
+ selectedRowKeys: t(R).selectedRowKeys,
393
394
  shownColumns: u.value
394
- }, C))], 2), h.title ? (p(), Q(l(Pe), {
395
+ }, v))], 2), h.title ? (p(), Q(t(Pe), {
395
396
  key: 0,
396
397
  type: "vertical"
397
- })) : X("", !0), g(Ye, {
398
+ })) : X("", !0), w(Ye, {
398
399
  config: e.settings === !0 ? {} : e.settings
399
- }, null, 8, ["config"])], 2)) : b(e.$slots, "title", w({
400
+ }, null, 8, ["config"])], 2)) : b(e.$slots, "title", S({
400
401
  key: 1,
401
- selectedRows: l(R),
402
- selectedRowKeys: l(S).selectedRowKeys,
402
+ selectedRows: t(C),
403
+ selectedRowKeys: t(R).selectedRowKeys,
403
404
  shownColumns: u.value
404
- }, C))], 2), g(l(Ie), w({
405
- class: l(i)("table")
405
+ }, v))], 2), w(t(Ie), S({
406
+ class: t(i)("table")
406
407
  }, j.value, {
407
408
  size: B.value,
408
409
  "table-layout": ye.value,
409
410
  columns: u.value,
410
- onResizeColumn: t[0] || (t[0] = (o, r) => r.width = o)
411
+ onResizeColumn: r[0] || (r[0] = (o, l) => l.width = o)
411
412
  }), _({
412
413
  summary: F(() => [b(e.$slots, "summary", {
413
414
  columns: u.value,
414
415
  records: j.value.dataSource,
415
- selectedRows: l(R)
416
+ selectedRows: t(C)
416
417
  })]),
417
418
  _: 2
418
- }, [J(l(Z)(h, ["title", "searchFormExtra", "headerCell", "summary"]), (o, r) => ({
419
- name: r,
420
- fn: F((d) => [b(e.$slots, r, ke(ze(d || {})))])
419
+ }, [J(t(Z)(h, ["title", "searchFormExtra", "headerCell", "summary"]), (o, l) => ({
420
+ name: l,
421
+ fn: F((d) => [b(e.$slots, l, ke(ze(d || {})))])
421
422
  }))]), 1040, ["class", "size", "table-layout", "columns"])], 6)], 2));
422
423
  }
423
424
  });
424
425
  export {
425
- ba as default
426
+ Sa as default
426
427
  };