@aplus-frontend/ui 0.2.0-beta.4 → 0.2.0-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/es/src/ap-field/hooks/use-default-placeholder.mjs +14 -14
  2. package/es/src/ap-form/items/checkbox/index.vue.d.ts +1 -1
  3. package/es/src/ap-form/items/date/index.vue.d.ts +1 -1
  4. package/es/src/ap-form/items/date-range/index.vue.d.ts +1 -1
  5. package/es/src/ap-form/items/number/index.vue.d.ts +1 -1
  6. package/es/src/ap-form/items/radio/index.vue.d.ts +1 -1
  7. package/es/src/ap-form/items/select/index.vue.d.ts +1 -1
  8. package/es/src/ap-form/items/switch/index.vue.d.ts +1 -1
  9. package/es/src/ap-form/items/text/index.vue.d.ts +1 -1
  10. package/es/src/ap-form/items/text/password.vue.d.ts +1 -1
  11. package/es/src/ap-form/items/text-area/index.vue.d.ts +1 -1
  12. package/es/src/ap-table/ap-table.vue.mjs +103 -108
  13. package/es/src/ap-table/constants.d.ts +190 -190
  14. package/es/src/ap-table/utils.d.ts +195 -233
  15. package/es/src/ap-table/utils.mjs +69 -80
  16. package/es/src/ap-upload/apUpload.vue.d.ts +2 -2
  17. package/es/src/ap-upload/apUploadTypes.d.ts +18 -0
  18. package/es/src/ap-upload/components/MultipleFile.vue2.mjs +55 -57
  19. package/es/src/ap-upload/components/Picture.vue.d.ts +41 -1
  20. package/es/src/ap-upload/components/Picture.vue2.mjs +103 -82
  21. package/es/src/editable-table/hooks/use-get-columns.mjs +29 -34
  22. package/es/src/locale/lang/en.mjs +4 -0
  23. package/es/src/locale/lang/zh-cn.mjs +4 -0
  24. package/lib/src/ap-field/hooks/use-default-placeholder.js +1 -1
  25. package/lib/src/ap-form/items/checkbox/index.vue.d.ts +1 -1
  26. package/lib/src/ap-form/items/date/index.vue.d.ts +1 -1
  27. package/lib/src/ap-form/items/date-range/index.vue.d.ts +1 -1
  28. package/lib/src/ap-form/items/number/index.vue.d.ts +1 -1
  29. package/lib/src/ap-form/items/radio/index.vue.d.ts +1 -1
  30. package/lib/src/ap-form/items/select/index.vue.d.ts +1 -1
  31. package/lib/src/ap-form/items/switch/index.vue.d.ts +1 -1
  32. package/lib/src/ap-form/items/text/index.vue.d.ts +1 -1
  33. package/lib/src/ap-form/items/text/password.vue.d.ts +1 -1
  34. package/lib/src/ap-form/items/text-area/index.vue.d.ts +1 -1
  35. package/lib/src/ap-table/ap-table.vue.js +1 -1
  36. package/lib/src/ap-table/constants.d.ts +190 -190
  37. package/lib/src/ap-table/utils.d.ts +195 -233
  38. package/lib/src/ap-table/utils.js +1 -1
  39. package/lib/src/ap-upload/apUpload.vue.d.ts +2 -2
  40. package/lib/src/ap-upload/apUploadTypes.d.ts +18 -0
  41. package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -1
  42. package/lib/src/ap-upload/components/Picture.vue.d.ts +41 -1
  43. package/lib/src/ap-upload/components/Picture.vue2.js +1 -1
  44. package/lib/src/editable-table/hooks/use-get-columns.js +1 -1
  45. package/lib/src/locale/lang/en.js +1 -1
  46. package/lib/src/locale/lang/zh-cn.js +1 -1
  47. package/package.json +4 -4
@@ -1,25 +1,25 @@
1
- import { computed as r } from "vue";
1
+ import { computed as o } from "vue";
2
2
  import "../../config-provider/index.mjs";
3
- import { isDef as c } from "../../utils/index.mjs";
4
- import { useLocale as n } from "../../config-provider/hooks/use-locale.mjs";
5
- const s = ["Select", "Date"], i = [
3
+ import { isDef as n } from "../../utils/index.mjs";
4
+ import { useLocale as i } from "../../config-provider/hooks/use-locale.mjs";
5
+ const c = ["Select", "Date"], a = [
6
6
  "Text",
7
7
  "TextArea",
8
8
  "Number",
9
9
  "TextPassword"
10
- ], p = (o, t) => {
11
- const { t: e } = n();
12
- return r(() => {
13
- if (c(t.placeholder))
14
- return t.placeholder;
15
- if (o === "DateRange")
16
- return [e("ap.common.chooseText"), e("ap.common.chooseText")];
17
- if (s.includes(o))
10
+ ], d = (t, r) => {
11
+ const { t: e } = i();
12
+ return o(() => {
13
+ if (n(r.placeholder))
14
+ return r.placeholder;
15
+ if (t === "DateRange")
16
+ return [e("ap.field.startDateText"), e("ap.field.endDateText")];
17
+ if (c.includes(t))
18
18
  return e("ap.common.chooseText");
19
- if (i.includes(o))
19
+ if (a.includes(t))
20
20
  return e("ap.common.inputText");
21
21
  });
22
22
  };
23
23
  export {
24
- p as useDefaultPlaceholder
24
+ d as useDefaultPlaceholder
25
25
  };
@@ -27,12 +27,12 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
27
27
  field: () => {};
28
28
  }>>>, {
29
29
  disabled: boolean;
30
+ field: Omit< ApFieldCheckboxProps, "value" | "onUpdate:value">;
30
31
  colon: boolean;
31
32
  required: boolean;
32
33
  hasFeedback: boolean;
33
34
  autoLink: boolean;
34
35
  validateFirst: boolean;
35
- field: Omit< ApFieldCheckboxProps, "value" | "onUpdate:value">;
36
36
  }, {}>;
37
37
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
38
38
  export default _default;
@@ -50,12 +50,12 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
50
50
  field: () => {};
51
51
  }>>>, {
52
52
  disabled: boolean;
53
+ field: Omit< ApFieldDateProps, "value" | "onUpdate:value">;
53
54
  colon: boolean;
54
55
  required: boolean;
55
56
  hasFeedback: boolean;
56
57
  autoLink: boolean;
57
58
  validateFirst: boolean;
58
- field: Omit< ApFieldDateProps, "value" | "onUpdate:value">;
59
59
  }, {}>;
60
60
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
61
61
  export default _default;
@@ -48,12 +48,12 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
48
48
  field: () => {};
49
49
  }>>>, {
50
50
  disabled: boolean;
51
+ field: Omit< ApFieldDateRangeProps, "value" | "onUpdate:value">;
51
52
  colon: boolean;
52
53
  required: boolean;
53
54
  hasFeedback: boolean;
54
55
  autoLink: boolean;
55
56
  validateFirst: boolean;
56
- field: Omit< ApFieldDateRangeProps, "value" | "onUpdate:value">;
57
57
  }, {}>;
58
58
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
59
59
  export default _default;
@@ -594,12 +594,12 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
594
594
  field: () => {};
595
595
  }>>>, {
596
596
  disabled: boolean;
597
+ field: Omit< ApFieldNumberProps, "value" | "onUpdate:value">;
597
598
  colon: boolean;
598
599
  required: boolean;
599
600
  hasFeedback: boolean;
600
601
  autoLink: boolean;
601
602
  validateFirst: boolean;
602
- field: Omit< ApFieldNumberProps, "value" | "onUpdate:value">;
603
603
  }, {}>;
604
604
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
605
605
  export default _default;
@@ -229,12 +229,12 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
229
229
  field: () => {};
230
230
  }>>>, {
231
231
  disabled: boolean;
232
+ field: Omit< ApFieldRadioProps, "value" | "onUpdate:value">;
232
233
  colon: boolean;
233
234
  required: boolean;
234
235
  hasFeedback: boolean;
235
236
  autoLink: boolean;
236
237
  validateFirst: boolean;
237
- field: Omit< ApFieldRadioProps, "value" | "onUpdate:value">;
238
238
  }, {}>;
239
239
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
240
240
  export default _default;
@@ -55,12 +55,12 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
55
55
  field: () => {};
56
56
  }>>>, {
57
57
  disabled: boolean;
58
+ field: Omit< ApFieldSelectProps, "value" | "onUpdate:value">;
58
59
  colon: boolean;
59
60
  required: boolean;
60
61
  hasFeedback: boolean;
61
62
  autoLink: boolean;
62
63
  validateFirst: boolean;
63
- field: Omit< ApFieldSelectProps, "value" | "onUpdate:value">;
64
64
  }, {}>;
65
65
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
66
66
  export default _default;
@@ -36,13 +36,13 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
36
36
  field: () => {};
37
37
  }>>>, {
38
38
  disabled: boolean;
39
+ field: Omit< ApFieldSwitchProps, "checked" | "onUpdate:checked">;
39
40
  colon: boolean;
40
41
  required: boolean;
41
42
  hasFeedback: boolean;
42
43
  autoLink: boolean;
43
44
  validateFirst: boolean;
44
45
  valuePropName: string;
45
- field: Omit< ApFieldSwitchProps, "checked" | "onUpdate:checked">;
46
46
  }, {}>;
47
47
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
48
48
  export default _default;
@@ -606,12 +606,12 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
606
606
  field: () => {};
607
607
  }>>>, {
608
608
  disabled: boolean;
609
+ field: Omit< ApFieldTextProps, "value" | "onUpdate:value">;
609
610
  colon: boolean;
610
611
  required: boolean;
611
612
  hasFeedback: boolean;
612
613
  autoLink: boolean;
613
614
  validateFirst: boolean;
614
- field: Omit< ApFieldTextProps, "value" | "onUpdate:value">;
615
615
  }, {}>;
616
616
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
617
617
  export default _default;
@@ -669,12 +669,12 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
669
669
  field: () => {};
670
670
  }>>>, {
671
671
  disabled: boolean;
672
+ field: Omit< ApFieldTextPasswordProps, "value" | "onUpdate:value">;
672
673
  colon: boolean;
673
674
  required: boolean;
674
675
  hasFeedback: boolean;
675
676
  autoLink: boolean;
676
677
  validateFirst: boolean;
677
- field: Omit< ApFieldTextPasswordProps, "value" | "onUpdate:value">;
678
678
  }, {}>;
679
679
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
680
680
  export default _default;
@@ -500,12 +500,12 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
500
500
  field: () => {};
501
501
  }>>>, {
502
502
  disabled: boolean;
503
+ field: Omit< ApFieldTextAreaProps, "value" | "onUpdate:value">;
503
504
  colon: boolean;
504
505
  required: boolean;
505
506
  hasFeedback: boolean;
506
507
  autoLink: boolean;
507
508
  validateFirst: boolean;
508
- field: Omit< ApFieldTextAreaProps, "value" | "onUpdate:value">;
509
509
  }, {}>;
510
510
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
511
511
  export default _default;
@@ -1,24 +1,23 @@
1
- import { defineComponent as Ce, useSlots as Te, ref as P, computed as s, unref as t, createVNode as f, Fragment as U, watchEffect as Fe, watch as G, openBlock as m, createElementBlock as F, normalizeClass as c, normalizeStyle as M, mergeProps as h, createSlots as J, withCtx as w, renderList as Q, createBlock as X, resolveDynamicComponent as xe, renderSlot as S, createCommentVNode as Y, createElementVNode as I, h as Be, normalizeProps as ke, guardReactiveProps as ze } from "vue";
2
- import { Typography as Pe, Divider as Ie, Button as Ne, Table as Le } from "ant-design-vue";
1
+ import { defineComponent as Ce, useSlots as ve, ref as z, computed as s, unref as t, createVNode as f, Fragment as U, watchEffect as Te, watch as G, openBlock as m, createElementBlock as F, normalizeClass as c, normalizeStyle as M, mergeProps as h, createSlots as J, withCtx as w, renderList as Q, createBlock as X, resolveDynamicComponent as Fe, renderSlot as S, createCommentVNode as Y, createElementVNode as I, h as xe, normalizeProps as Be, guardReactiveProps as Pe } from "vue";
2
+ import { Typography as ke, Divider as ze, Button as Ie, Table as Ne } from "ant-design-vue";
3
3
  import { useToken as Ee } from "ant-design-vue/es/theme/internal";
4
4
  import { ApForm as Ke } from "../ap-form/index.mjs";
5
5
  import { noRenderAsFormItemValueList as Z } from "./constants.mjs";
6
6
  import "../config-provider/index.mjs";
7
- import { useTablePaging as Oe } from "./hooks/use-table-paging.mjs";
8
- import { omit as _, isUndefined as g, isBoolean as Ve } from "lodash-unified";
9
- import { apColumnToColumn as De, getTableTitle as je, getTableRenderType as Ae, getTableRenderProps as We, getTableCellRenderNode as $e, getColumnOrder as ee, updateFormProps as He, getFieldProps as qe, getPlaceholder as Ue, getSearchFormItemRenderNode as Ge, objectToString as Me } from "./utils.mjs";
10
- import Je from "./hooks/use-table-content-height.mjs";
11
- import { getRawDisplayValue as Qe } from "../editable-table/utils.mjs";
12
- import Xe from "./hooks/use-table-row-selection.mjs";
13
- import { isDef as Ye } from "../utils/index.mjs";
14
- import { SettingOutlined as Ze } from "@ant-design/icons-vue";
7
+ import { useTablePaging as Le } from "./hooks/use-table-paging.mjs";
8
+ import { omit as _, isUndefined as g, isBoolean as Oe } from "lodash-unified";
9
+ import { apColumnToColumn as Ve, getTableTitle as De, getTableRenderType as je, getTableRenderProps as Ae, getTableCellRenderNode as We, getColumnOrder as ee, updateFormProps as $e, getFieldProps as He, getSearchFormItemRenderNode as qe, objectToString as Ue } from "./utils.mjs";
10
+ import Ge from "./hooks/use-table-content-height.mjs";
11
+ import { getRawDisplayValue as Me } from "../editable-table/utils.mjs";
12
+ import Je from "./hooks/use-table-row-selection.mjs";
13
+ import { isDef as Qe } from "../utils/index.mjs";
14
+ import { SettingOutlined as Xe } from "@ant-design/icons-vue";
15
15
  import "./components/setting/modal/index.vue.mjs";
16
- import { useProvideApTable as _e } from "./context.mjs";
17
- import { useLocale as ea } from "../config-provider/hooks/use-locale.mjs";
18
- import { useNamespace as aa } from "../config-provider/hooks/use-namespace.mjs";
19
- import { useGlobalConfig as oa } from "../config-provider/hooks/use-global-config.mjs";
20
- import ta from "./components/setting/modal/index.vue2.mjs";
21
- const Ta = /* @__PURE__ */ Ce({
16
+ import { useProvideApTable as Ye } from "./context.mjs";
17
+ import { useNamespace as Ze } from "../config-provider/hooks/use-namespace.mjs";
18
+ import { useGlobalConfig as _e } from "../config-provider/hooks/use-global-config.mjs";
19
+ import ea from "./components/setting/modal/index.vue2.mjs";
20
+ const ba = /* @__PURE__ */ Ce({
22
21
  name: "ApTable",
23
22
  __name: "ap-table",
24
23
  props: {
@@ -147,112 +146,108 @@ const Ta = /* @__PURE__ */ Ce({
147
146
  }) {
148
147
  const a = ae;
149
148
  let N = 0;
150
- const b = Te(), [, te] = Ee(), {
151
- t: re
152
- } = ea(), {
149
+ const b = ve(), [, te] = Ee(), {
153
150
  e: x,
154
151
  b: i,
155
- be: L
156
- } = aa("ap-table"), E = oa("valueTypeMap"), {
157
- height: le,
158
- contentRef: ne
159
- } = Je(), B = P(a.size), u = P([]), K = P([]);
160
- _e({
161
- columns: s(() => u.value),
162
- columnsBackup: s(() => K.value),
152
+ be: E
153
+ } = Ze("ap-table"), K = _e("valueTypeMap"), {
154
+ height: re,
155
+ contentRef: le
156
+ } = Ge(), B = z(a.size), d = z([]), L = z([]);
157
+ Ye({
158
+ columns: s(() => d.value),
159
+ columnsBackup: s(() => L.value),
163
160
  size: s(() => B.value),
164
161
  updateColumns(e) {
165
- u.value = e;
162
+ d.value = e;
166
163
  },
167
164
  updateSize(e) {
168
165
  B.value = e;
169
166
  }
170
167
  });
171
- const se = () => {
168
+ const ne = () => {
172
169
  var r;
173
170
  let e = ((r = a.columns) == null ? void 0 : r.filter((l) => !l.hideInTable)) || [];
174
- function o(l, d) {
171
+ function o(l, u) {
175
172
  return l.map((n) => ({
176
- resizable: Ye(n.resizable) ? n.resizable : a.columnResizable,
177
- ..._(De(n), ["ellipsis"]),
178
- fixed: d ? d.fixed : n.fixed,
179
- title: je(n, L("table-header", "title"), b.headerCell, t(te).colorPrimary),
173
+ resizable: Qe(n.resizable) ? n.resizable : a.columnResizable,
174
+ ..._(Ve(n), ["ellipsis"]),
175
+ fixed: u ? u.fixed : n.fixed,
176
+ title: De(n, E("table-header", "title"), b.headerCell, t(te).colorPrimary),
180
177
  customRender({
181
178
  value: p,
182
179
  ...y
183
180
  }) {
184
181
  var H, q;
185
- const W = Ae(n), be = We({
182
+ const W = je(n), Se = Ae({
186
183
  ...n,
187
184
  valueType: W
188
185
  }, {
189
186
  value: p,
190
187
  ...y
191
- }), Re = $e(W, be, y.record, t(E)), $ = ((H = n.renderText) == null ? void 0 : H.call(n, {
188
+ }), be = We(W, Se, y.record, t(K)), $ = ((H = n.renderText) == null ? void 0 : H.call(n, {
192
189
  value: p,
193
190
  ...y
194
- })) || p, ve = n.renderText ? f(U, null, [(q = n.renderText) == null ? void 0 : q.call(n, {
191
+ })) || p, Re = n.renderText ? f(U, null, [(q = n.renderText) == null ? void 0 : q.call(n, {
195
192
  value: p,
196
193
  ...y
197
- })]) : Re;
198
- let z = ye(n, $, ve);
199
- return n.customRender && (z = n.customRender({
194
+ })]) : be;
195
+ let k = ge(n, $, Re);
196
+ return n.customRender && (k = n.customRender({
200
197
  value: p,
201
198
  ...y,
202
199
  column: n,
203
- originalNode: z,
200
+ originalNode: k,
204
201
  originalText: $
205
- })), z;
202
+ })), k;
206
203
  },
207
- children: o(n.children || [], d || n)
204
+ children: o(n.children || [], u || n)
208
205
  }));
209
206
  }
210
207
  return o(e);
211
208
  };
212
- Fe(() => {
213
- const e = se();
214
- u.value = e, K.value = e;
209
+ Te(() => {
210
+ const e = ne();
211
+ d.value = e, L.value = e;
215
212
  });
216
213
  const O = s(() => {
217
214
  var e, o, r;
218
- return N++, ((r = (o = (e = a.columns) == null ? void 0 : e.filter((l) => !l.hideInSearch && l.dataIndex && (l.valueType || l.customRenderFormItem) && !Z.includes(l.valueType))) == null ? void 0 : o.sort((l, d) => {
215
+ return N++, ((r = (o = (e = a.columns) == null ? void 0 : e.filter((l) => !l.hideInSearch && l.dataIndex && (l.valueType || l.customRenderFormItem) && !Z.includes(l.valueType))) == null ? void 0 : o.sort((l, u) => {
219
216
  let n = ee(l.order);
220
- return ee(d.order) - n;
217
+ return ee(u.order) - n;
221
218
  })) == null ? void 0 : r.map((l) => {
222
- const d = He(l, qe(l.fieldProps, {})), n = {
219
+ const u = $e(l, He(l.fieldProps, {})), n = {
223
220
  ...l,
224
221
  fieldProps: {
225
222
  label: l.title,
226
223
  name: l.dataIndex,
227
- ...d || {},
228
- // 格式化placeholder
229
- placeholder: Ue(re, l.valueType, d == null ? void 0 : d.placeholder),
224
+ ...u || {},
230
225
  _signal: N
231
226
  },
232
227
  renderNode: void 0
233
228
  };
234
- return n.renderNode = Ge(n, t(E)), n;
229
+ return n.renderNode = qe(n, t(K)), n;
235
230
  })) || [];
236
- }), de = s(() => t(u).filter((e) => e.sorter === !0).map((e) => e.dataIndex).filter(Boolean)), ue = s(() => t(u).filter((e) => e.filters && !e.onFilter).map((e) => e.dataIndex).filter(Boolean)), ie = s(() => g(a.dataSource) ? T.value.records : a.dataSource), {
231
+ }), se = s(() => t(d).filter((e) => e.sorter === !0).map((e) => e.dataIndex).filter(Boolean)), de = s(() => t(d).filter((e) => e.filters && !e.onFilter).map((e) => e.dataIndex).filter(Boolean)), ue = s(() => g(a.dataSource) ? T.value.records : a.dataSource), {
237
232
  rowSelection: R,
238
- selectedRows: v,
239
- ...C
240
- } = Xe({
233
+ selectedRows: C,
234
+ ...v
235
+ } = Je({
241
236
  ...a.rowSelection === !0 ? {} : a.rowSelection,
242
237
  rowKey: a.rowKey,
243
- dataSource: ie
238
+ dataSource: ue
244
239
  }), {
245
- formRef: k,
240
+ formRef: P,
246
241
  submit: V,
247
242
  reset: D,
248
243
  tableProps: j,
249
- refresh: ce,
244
+ refresh: ie,
250
245
  data: T,
251
- setDataSource: pe
252
- } = Oe({
246
+ setDataSource: ce
247
+ } = Le({
253
248
  async request(e) {
254
249
  var r, l;
255
- if (!R.value.preserveSelectedRowKeys && g(a.dataSource) && C.clearAll(), !g(a.dataSource))
250
+ if (!R.value.preserveSelectedRowKeys && g(a.dataSource) && v.clearAll(), !g(a.dataSource))
256
251
  return {
257
252
  data: a.dataSource || [],
258
253
  total: a.dataSource.length || 0
@@ -263,8 +258,8 @@ const Ta = /* @__PURE__ */ Ce({
263
258
  total: (o == null ? void 0 : o.total) || 0
264
259
  };
265
260
  },
266
- filterFields: ue,
267
- sortFields: de,
261
+ filterFields: de,
262
+ sortFields: se,
268
263
  defaultParams: a.params,
269
264
  defaultData: a.defaultData,
270
265
  manual: a.manual,
@@ -273,16 +268,16 @@ const Ta = /* @__PURE__ */ Ce({
273
268
  formatParams: a.beforeSearchSubmit,
274
269
  showLessItems: a.pagination ? a.pagination.showLessItems : void 0,
275
270
  showTotal: a.pagination ? a.pagination.showTotal : void 0
276
- }), fe = s(() => {
271
+ }), pe = s(() => {
277
272
  var o, r;
278
273
  if (a.adaptive && (T.value.total > 0 || ((o = a.dataSource) == null ? void 0 : o.length)))
279
274
  return {
280
- y: t(le),
275
+ y: t(re),
281
276
  x: ((r = a.scroll) == null ? void 0 : r.x) || "100%"
282
277
  };
283
278
  if (a.scroll)
284
279
  return a.scroll;
285
- }), me = s(() => {
280
+ }), fe = s(() => {
286
281
  var e;
287
282
  if (a.tableLayout)
288
283
  return a.tableLayout;
@@ -301,73 +296,73 @@ const Ta = /* @__PURE__ */ Ce({
301
296
  } : a.rowSelection,
302
297
  loading: g(a.loading) ? e.loading : a.loading,
303
298
  pagination: a.pagination === !1 ? !1 : e.pagination,
304
- scroll: t(fe)
299
+ scroll: t(pe)
305
300
  };
306
- }), ge = s(() => [i(), a.card ? null : i("wrapper"), a.adaptive ? i("adaptive") : null].filter(Boolean));
307
- function ye(e, o, r) {
301
+ }), me = s(() => [i(), a.card ? null : i("wrapper"), a.adaptive ? i("adaptive") : null].filter(Boolean));
302
+ function ge(e, o, r) {
308
303
  if (Z.includes(e.valueType))
309
304
  return r;
310
- const l = Me(o);
311
- return e.copyable || e.ellipsis ? f(Pe.Paragraph, {
305
+ const l = Ue(o);
306
+ return e.copyable || e.ellipsis ? f(ke.Paragraph, {
312
307
  copyable: e.copyable ? {
313
308
  text: l,
314
309
  tooltip: !1
315
310
  } : !1,
316
- ellipsis: e.ellipsis ? Ve(e.ellipsis) ? {
311
+ ellipsis: e.ellipsis ? Oe(e.ellipsis) ? {
317
312
  tooltip: l
318
313
  } : {
319
314
  ...e.ellipsis,
320
315
  tooltip: l
321
316
  } : !1,
322
- content: e.ellipsis ? Qe(e, o) : r
317
+ content: e.ellipsis ? Me(e, o) : r
323
318
  }, null) : r;
324
319
  }
325
320
  G(() => t(T).loading, (e) => {
326
321
  var o;
327
322
  (o = a.onLoadingChange) == null || o.call(a, e);
328
323
  }), G(() => a.dataSource, (e) => {
329
- pe(e);
324
+ ce(e);
330
325
  }, {
331
326
  immediate: !0
332
327
  });
333
- function he(e) {
328
+ function ye(e) {
334
329
  var o, r, l;
335
- (l = (r = (o = k.value) == null ? void 0 : o.apForm) == null ? void 0 : r.setFieldsValue) == null || l.call(r, e);
330
+ (l = (r = (o = P.value) == null ? void 0 : o.apForm) == null ? void 0 : r.setFieldsValue) == null || l.call(r, e);
336
331
  }
337
- function we() {
332
+ function he() {
338
333
  var e, o, r;
339
- return (r = (o = (e = k.value) == null ? void 0 : e.apForm) == null ? void 0 : o.getFieldsValue) == null ? void 0 : r.call(o, !0);
334
+ return (r = (o = (e = P.value) == null ? void 0 : e.apForm) == null ? void 0 : o.getFieldsValue) == null ? void 0 : r.call(o, !0);
340
335
  }
341
- function Se() {
342
- return t(u);
336
+ function we() {
337
+ return t(d);
343
338
  }
344
339
  return oe({
345
340
  submit: () => V(),
346
341
  reset: () => D(),
347
- refresh: () => ce(),
348
- setSearchFormValues: he,
349
- getSearchFormValues: we,
350
- getShownColumns: Se,
342
+ refresh: () => ie(),
343
+ setSearchFormValues: ye,
344
+ getSearchFormValues: he,
345
+ getShownColumns: we,
351
346
  dataSource: s(() => t(T).records),
352
347
  rowSelection: {
353
- selectedRows: s(() => t(v)),
354
- ...C
348
+ selectedRows: s(() => t(C)),
349
+ ...v
355
350
  }
356
351
  }), (e, o) => (m(), F("div", {
357
- class: c(ge.value)
352
+ class: c(me.value)
358
353
  }, [t(g)(e.dataSource) && e.searchForm !== !1 && O.value.length > 0 ? (m(), F("div", {
359
354
  key: 0,
360
355
  class: c(e.card ? t(x)("search-wrapper") : null),
361
356
  style: M(e.searchFormWrapperStyle)
362
357
  }, [f(t(Ke).SearchForm, h(e.searchForm || {}, {
363
358
  ref_key: "formRef",
364
- ref: k,
359
+ ref: P,
365
360
  "custom-reset": "",
366
361
  onSubmit: t(V),
367
362
  onReset: t(D),
368
363
  "submit-loading": t(j).loading
369
364
  }), J({
370
- default: w(() => [(m(!0), F(U, null, Q(O.value, (r) => (m(), X(xe(r.renderNode), h({
365
+ default: w(() => [(m(!0), F(U, null, Q(O.value, (r) => (m(), X(Fe(r.renderNode), h({
371
366
  key: r.dataIndex,
372
367
  ref_for: !0
373
368
  }, r.fieldProps || {}, {
@@ -380,7 +375,7 @@ const Ta = /* @__PURE__ */ Ce({
380
375
  key: "0"
381
376
  } : void 0]), 1040, ["onSubmit", "onReset", "submit-loading"])], 6)) : Y("", !0), I("div", {
382
377
  ref_key: "contentRef",
383
- ref: ne,
378
+ ref: le,
384
379
  class: c([t(x)("table-wrapper"), e.card ? t(x)("table-wrapper-card") : null]),
385
380
  style: M(e.tableWrapperStyle)
386
381
  }, [I("div", {
@@ -389,47 +384,47 @@ const Ta = /* @__PURE__ */ Ce({
389
384
  key: 0,
390
385
  class: c(t(i)("header"))
391
386
  }, [I("div", {
392
- class: c(t(L)("header", "title"))
387
+ class: c(t(E)("header", "title"))
393
388
  }, [S(e.$slots, "title", h({
394
- selectedRows: t(v),
389
+ selectedRows: t(C),
395
390
  selectedRowKeys: t(R).selectedRowKeys,
396
- shownColumns: u.value
397
- }, C))], 2), b.title ? (m(), X(t(Ie), {
391
+ shownColumns: d.value
392
+ }, v))], 2), b.title ? (m(), X(t(ze), {
398
393
  key: 0,
399
394
  type: "vertical"
400
- })) : Y("", !0), f(ta, {
395
+ })) : Y("", !0), f(ea, {
401
396
  config: e.settings === !0 ? {} : e.settings
402
397
  }, {
403
- trigger: w(() => [f(t(Ne), {
398
+ trigger: w(() => [f(t(Ie), {
404
399
  class: c(t(i)("setting-trigger-button")),
405
- icon: Be(t(Ze))
400
+ icon: xe(t(Xe))
406
401
  }, null, 8, ["class", "icon"])]),
407
402
  _: 1
408
403
  }, 8, ["config"])], 2)) : S(e.$slots, "title", h({
409
404
  key: 1,
410
- selectedRows: t(v),
405
+ selectedRows: t(C),
411
406
  selectedRowKeys: t(R).selectedRowKeys,
412
- shownColumns: u.value
413
- }, C))], 2), f(t(Le), h({
407
+ shownColumns: d.value
408
+ }, v))], 2), f(t(Ne), h({
414
409
  class: t(i)("table")
415
410
  }, A.value, {
416
411
  size: B.value,
417
- "table-layout": me.value,
418
- columns: u.value,
412
+ "table-layout": fe.value,
413
+ columns: d.value,
419
414
  onResizeColumn: o[0] || (o[0] = (r, l) => l.width = r)
420
415
  }), J({
421
416
  summary: w(() => [S(e.$slots, "summary", {
422
- columns: u.value,
417
+ columns: d.value,
423
418
  records: A.value.dataSource,
424
- selectedRows: t(v)
419
+ selectedRows: t(C)
425
420
  })]),
426
421
  _: 2
427
422
  }, [Q(t(_)(b, ["title", "searchFormExtra", "headerCell", "summary"]), (r, l) => ({
428
423
  name: l,
429
- fn: w((d) => [S(e.$slots, l, ke(ze(d || {})))])
424
+ fn: w((u) => [S(e.$slots, l, Be(Pe(u || {})))])
430
425
  }))]), 1040, ["class", "size", "table-layout", "columns"])], 6)], 2));
431
426
  }
432
427
  });
433
428
  export {
434
- Ta as default
429
+ ba as default
435
430
  };