@aplus-frontend/ui 0.6.0 → 0.6.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 (99) hide show
  1. package/es/src/ap-button/ap-button.vue.mjs +1 -1
  2. package/es/src/ap-form/drawer-form/index.vue.d.ts +4 -0
  3. package/es/src/ap-form/search-form/components/popover-sorter/index.vue2.mjs +4 -1
  4. package/es/src/ap-grid/hooks/use-table-style.d.ts +2 -0
  5. package/es/src/ap-grid/hooks/use-table-style.mjs +8 -6
  6. package/es/src/ap-grid/index.vue.mjs +140 -135
  7. package/es/src/ap-grid/utils/table.mjs +24 -21
  8. package/es/src/ap-table/utils.mjs +3 -3
  9. package/es/src/business/ap-card/ApCard.vue2.mjs +18 -18
  10. package/es/src/version.d.ts +1 -1
  11. package/es/src/version.mjs +1 -1
  12. package/lib/src/ap-button/ap-button.vue.js +1 -1
  13. package/lib/src/ap-form/drawer-form/index.vue.d.ts +4 -0
  14. package/lib/src/ap-form/search-form/components/popover-sorter/index.vue2.js +1 -1
  15. package/lib/src/ap-grid/hooks/use-table-style.d.ts +2 -0
  16. package/lib/src/ap-grid/hooks/use-table-style.js +1 -1
  17. package/lib/src/ap-grid/index.vue.js +1 -1
  18. package/lib/src/ap-grid/utils/table.js +1 -1
  19. package/lib/src/ap-table/utils.js +1 -1
  20. package/lib/src/business/ap-card/ApCard.vue2.js +1 -1
  21. package/lib/src/version.d.ts +1 -1
  22. package/lib/src/version.js +1 -1
  23. package/package.json +1 -2
  24. package/theme/antd-global-overwrite/admin/index.css +1 -291
  25. package/theme/antd-global-overwrite/admin/index.less +1 -7
  26. package/theme/antd-global-overwrite/aplus/index.css +1 -287
  27. package/theme/antd-global-overwrite/aplus/index.less +1 -7
  28. package/theme/antdv-override.css +572 -0
  29. package/theme/antdv-override.less +659 -0
  30. package/theme/ap-download/ap-download.css +1 -1
  31. package/theme/ap-form/index.css +3 -1
  32. package/theme/ap-form/search-form-sorter.css +3 -1
  33. package/theme/ap-form/search-form-sorter.less +3 -1
  34. package/theme/ap-form/search-form.css +3 -1
  35. package/theme/ap-grid/index.css +10 -1
  36. package/theme/ap-grid/index.less +7 -0
  37. package/theme/ap-select-layout/ap-select-layout.css +2 -2
  38. package/theme/ap-table/ap-table.css +4 -1
  39. package/theme/ap-table/setting/index.css +1 -0
  40. package/theme/ap-table/setting/modal.css +1 -0
  41. package/theme/ap-table/setting/modal.less +1 -0
  42. package/theme/ap-table-modal/index.css +4 -1
  43. package/theme/ap-tag/ap-tag.css +1 -1
  44. package/theme/ap-upload/index.css +1 -1
  45. package/theme/ap-upload/single-file.css +1 -1
  46. package/theme/{ui-mode.css → css-var.css} +2 -0
  47. package/theme/{ui-mode.less → css-var.less} +4 -0
  48. package/theme/editable-table/index.css +3 -1
  49. package/theme/index.css +590 -6
  50. package/theme/index.less +2 -1
  51. package/theme/mixins/config.less +1 -1
  52. package/es/src/ap-grid/hooks/use-load-vxe.d.ts +0 -1
  53. package/lib/src/ap-grid/hooks/use-load-vxe.d.ts +0 -1
  54. package/theme/antd-global-overwrite/admin/alert.css +0 -37
  55. package/theme/antd-global-overwrite/admin/alert.less +0 -51
  56. package/theme/antd-global-overwrite/admin/button.css +0 -27
  57. package/theme/antd-global-overwrite/admin/button.less +0 -31
  58. package/theme/antd-global-overwrite/admin/drawer.css +0 -3
  59. package/theme/antd-global-overwrite/admin/drawer.less +0 -5
  60. package/theme/antd-global-overwrite/admin/field.css +0 -42
  61. package/theme/antd-global-overwrite/admin/field.less +0 -43
  62. package/theme/antd-global-overwrite/admin/form.css +0 -57
  63. package/theme/antd-global-overwrite/admin/form.less +0 -97
  64. package/theme/antd-global-overwrite/admin/message.css +0 -10
  65. package/theme/antd-global-overwrite/admin/message.less +0 -13
  66. package/theme/antd-global-overwrite/admin/modal.css +0 -94
  67. package/theme/antd-global-overwrite/admin/modal.less +0 -128
  68. package/theme/antd-global-overwrite/admin/pagination.css +0 -122
  69. package/theme/antd-global-overwrite/admin/pagination.less +0 -91
  70. package/theme/antd-global-overwrite/admin/steps.css +0 -127
  71. package/theme/antd-global-overwrite/admin/steps.less +0 -197
  72. package/theme/antd-global-overwrite/admin/table.css +0 -78
  73. package/theme/antd-global-overwrite/admin/table.less +0 -62
  74. package/theme/antd-global-overwrite/admin/tooltip.css +0 -3
  75. package/theme/antd-global-overwrite/admin/tooltip.less +0 -3
  76. package/theme/antd-global-overwrite/aplus/alert.css +0 -40
  77. package/theme/antd-global-overwrite/aplus/alert.less +0 -55
  78. package/theme/antd-global-overwrite/aplus/button.css +0 -27
  79. package/theme/antd-global-overwrite/aplus/button.less +0 -31
  80. package/theme/antd-global-overwrite/aplus/drawer.css +0 -3
  81. package/theme/antd-global-overwrite/aplus/drawer.less +0 -5
  82. package/theme/antd-global-overwrite/aplus/field.css +0 -42
  83. package/theme/antd-global-overwrite/aplus/field.less +0 -43
  84. package/theme/antd-global-overwrite/aplus/form.css +0 -87
  85. package/theme/antd-global-overwrite/aplus/form.less +0 -133
  86. package/theme/antd-global-overwrite/aplus/message.css +0 -10
  87. package/theme/antd-global-overwrite/aplus/message.less +0 -13
  88. package/theme/antd-global-overwrite/aplus/modal.css +0 -87
  89. package/theme/antd-global-overwrite/aplus/modal.less +0 -120
  90. package/theme/antd-global-overwrite/aplus/pagination.css +0 -147
  91. package/theme/antd-global-overwrite/aplus/pagination.less +0 -108
  92. package/theme/antd-global-overwrite/aplus/steps.css +0 -125
  93. package/theme/antd-global-overwrite/aplus/steps.less +0 -198
  94. package/theme/antd-global-overwrite/aplus/table.css +0 -78
  95. package/theme/antd-global-overwrite/aplus/table.less +0 -61
  96. package/theme/antd-global-overwrite/aplus/tooltip.css +0 -3
  97. package/theme/antd-global-overwrite/aplus/tooltip.less +0 -3
  98. package/theme/ap-table/ap-table-pagination.css +0 -12
  99. package/theme/ap-table/ap-table-pagination.less +0 -14
@@ -36,7 +36,7 @@ const q = 72, E = 300, Y = /* @__PURE__ */ W({
36
36
  }, { b: i } = G("ap-action-button"), b = R("uiMode"), n = L(!1), v = t(
37
37
  () => e.borderLinkColor || a[b.value] || a.aplus
38
38
  ), s = t(
39
- () => e.type === "borderLink" ? v.value : void 0
39
+ () => e.type === "borderLink" && !e.disabled ? v.value : void 0
40
40
  ), u = t(
41
41
  () => O(s.value)
42
42
  ), h = t(() => e.minWidth === !0 ? `${q}px` : typeof e.minWidth == "number" ? `${e.minWidth}px` : typeof e.minWidth == "string" ? e.minWidth : void 0), g = t(
@@ -965,6 +965,10 @@ declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
965
965
  'onUpdate:visible': PropType<(visible: boolean) => void>;
966
966
  'onUpdate:open': PropType<(open: boolean) => void>;
967
967
  onClose: PropType< MouseEventHandler | KeyboardEventHandler>;
968
+ animate: {
969
+ type: BooleanConstructor;
970
+ default: boolean;
971
+ };
968
972
  }>>, "open" | "onUpdate:open">;
969
973
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
970
974
  formRef: ({
@@ -60,7 +60,10 @@ const W = /* @__PURE__ */ S({
60
60
  s("span", {
61
61
  class: r(e(n)("header-title"))
62
62
  }, m(e(i)("ap.apForm.search.sorterTitle")), 3),
63
- o(e(_), { justify: "space-between" }, {
63
+ o(e(_), {
64
+ justify: "space-between",
65
+ align: "center"
66
+ }, {
64
67
  default: a(() => [
65
68
  s("span", {
66
69
  class: r(e(n)("header-desc"))
@@ -13,4 +13,6 @@ export declare const useTableStyle: () => ComputedRef<{
13
13
  '--vxe-ui-font-color': string;
14
14
  '--vxe-ui-table-border-color': string;
15
15
  '--vxe-ui-table-header-font-color': string;
16
+ '--vxe-ui-table-fixed-left-scrolling-box-shadow': string;
17
+ '--vxe-ui-table-fixed-right-scrolling-box-shadow': string;
16
18
  }>;
@@ -1,9 +1,9 @@
1
1
  import { useToken as r } from "@aplus-frontend/antdv/es/theme/internal";
2
- import { computed as c, unref as t } from "vue";
3
- const u = () => {
4
- const [l, o] = r();
2
+ import { computed as c, unref as l } from "vue";
3
+ const x = () => {
4
+ const [t, o] = r();
5
5
  return c(() => {
6
- const e = t(o);
6
+ const e = l(o);
7
7
  return {
8
8
  "--vxe-ui-table-row-checkbox-checked-background-color": e.controlItemBgActive,
9
9
  "--vxe-ui-table-row-hover-checkbox-checked-background-color": e.controlItemBgActiveHover,
@@ -17,10 +17,12 @@ const u = () => {
17
17
  "--vxe-ui-table-row-hover-radio-checked-background-color": e.controlItemBgActiveHover,
18
18
  "--vxe-ui-font-color": e.colorTextBase,
19
19
  "--vxe-ui-table-border-color": e.colorBorderSecondary,
20
- "--vxe-ui-table-header-font-color": e.colorTextBase
20
+ "--vxe-ui-table-header-font-color": e.colorTextBase,
21
+ "--vxe-ui-table-fixed-left-scrolling-box-shadow": "8px 0px 10px -5px var(--ap-grid-fixed-scrolling-box-shadow-color)",
22
+ "--vxe-ui-table-fixed-right-scrolling-box-shadow": "-8px 0px 10px -5px var(--ap-grid-fixed-scrolling-box-shadow-color)"
21
23
  };
22
24
  });
23
25
  };
24
26
  export {
25
- u as useTableStyle
27
+ x as useTableStyle
26
28
  };
@@ -1,31 +1,29 @@
1
- import { defineComponent as Ke, useSlots as Le, getCurrentInstance as De, ref as k, computed as n, unref as a, toRef as Oe, nextTick as $e, watch as F, createElementBlock as E, openBlock as d, normalizeStyle as A, normalizeClass as g, createCommentVNode as S, createElementVNode as B, createVNode as X, mergeProps as h, createSlots as J, withCtx as C, Fragment as Q, renderList as V, createBlock as p, resolveDynamicComponent as K, renderSlot as L, normalizeProps as Me, guardReactiveProps as We } from "vue";
2
- import { VxeTable as je, VxeColumn as Y } from "vxe-table";
1
+ import { defineComponent as Ke, useSlots as Le, getCurrentInstance as De, ref as E, computed as n, unref as t, toRef as Oe, nextTick as $e, watch as B, createElementBlock as I, openBlock as d, normalizeStyle as A, normalizeClass as g, createCommentVNode as S, createElementVNode as b, createVNode as V, mergeProps as C, createSlots as J, withCtx as h, Fragment as Q, renderList as K, createBlock as p, resolveDynamicComponent as L, renderSlot as D, normalizeProps as Me, guardReactiveProps as We } from "vue";
2
+ import { VxeUI as Y, VxeTable as je, VxeColumn as Z } from "vxe-table";
3
3
  import "vxe-table/es/style.css";
4
- import "vxe-pc-ui/es/style.css";
5
- import { VxeUI as Z } from "vxe-pc-ui";
6
4
  import { isUndefined as R, isFunction as ee, omit as He } from "lodash-unified";
7
5
  import { ApForm as qe } from "../ap-form/index.mjs";
8
6
  import "../config-provider/index.mjs";
9
7
  import { noRenderAsFormItemValueList as Ue } from "../ap-table/constants.mjs";
10
- import { getColumnOrder as oe, updateFormProps as Ge, getFieldProps as Xe, getSearchFormItemRenderNode as Je, recursionApColumns as te } from "../ap-table/utils.mjs";
8
+ import { getColumnOrder as oe, updateFormProps as Ge, getFieldProps as Xe, getSearchFormItemRenderNode as Je, recursionApColumns as ae } from "../ap-table/utils.mjs";
11
9
  import { useTablePaging as Qe } from "../ap-table/hooks/use-table-paging-ng.mjs";
12
- import { Empty as ae, Pagination as Ye } from "@aplus-frontend/antdv";
13
- import { useInnerParams as Ze } from "./hooks/use-inner-params.mjs";
14
- import { toVxeProps as eo, getRowExpandProps as oo, getRowSelectionProps as to } from "./utils/table.mjs";
15
- import ao from "./hooks/use-row-selection.mjs";
16
- import { useProvideApTable as ro } from "../ap-table/context.mjs";
17
- import { sizeReverseMap as lo, sizeMap as no, ROW_SELECTION_FIELD as so } from "./constants.mjs";
18
- import { useRenderColumns as io } from "./hooks/use-render-columns.mjs";
19
- import { useToken as uo } from "@aplus-frontend/antdv/es/theme/internal";
10
+ import { Spin as Ye, Empty as te, Pagination as Ze } from "@aplus-frontend/antdv";
11
+ import { useInnerParams as eo } from "./hooks/use-inner-params.mjs";
12
+ import { toVxeProps as oo, getRowExpandProps as ao, getRowSelectionProps as to } from "./utils/table.mjs";
13
+ import ro from "./hooks/use-row-selection.mjs";
14
+ import { useProvideApTable as lo } from "../ap-table/context.mjs";
15
+ import { sizeReverseMap as no, sizeMap as so, ROW_SELECTION_FIELD as io } from "./constants.mjs";
16
+ import { useRenderColumns as uo } from "./hooks/use-render-columns.mjs";
17
+ import { useToken as co } from "@aplus-frontend/antdv/es/theme/internal";
20
18
  import "../scroll-bar/index.mjs";
21
- import { isDef as co } from "../utils/index.mjs";
22
- import { getValidVNodeList as po } from "../utils/slot.mjs";
23
- import { useTableStyle as fo } from "./hooks/use-table-style.mjs";
24
- import { useNamespace as mo } from "../config-provider/hooks/use-namespace.mjs";
25
- import { useGlobalConfig as go } from "../config-provider/hooks/use-global-config.mjs";
26
- import { useLocale as ho } from "../config-provider/hooks/use-locale.mjs";
27
- import Co from "../scroll-bar/index.vue.mjs";
28
- const qo = /* @__PURE__ */ Ke({
19
+ import { isDef as po } from "../utils/index.mjs";
20
+ import { getValidVNodeList as fo } from "../utils/slot.mjs";
21
+ import { useTableStyle as mo } from "./hooks/use-table-style.mjs";
22
+ import { useNamespace as go } from "../config-provider/hooks/use-namespace.mjs";
23
+ import { useGlobalConfig as ho } from "../config-provider/hooks/use-global-config.mjs";
24
+ import { useLocale as Co } from "../config-provider/hooks/use-locale.mjs";
25
+ import yo from "../scroll-bar/index.vue.mjs";
26
+ const Ho = /* @__PURE__ */ Ke({
29
27
  name: "ApGrid",
30
28
  __name: "index",
31
29
  props: {
@@ -116,23 +114,23 @@ const qo = /* @__PURE__ */ Ke({
116
114
  rowHighlightable: { type: [Boolean, Function], default: !1 }
117
115
  },
118
116
  setup(re, { expose: le }) {
119
- var G;
120
- const y = Le(), t = re, b = (G = De()) == null ? void 0 : G.appContext.app;
121
- b && !b.__VXE_PC_UI_INSTALLED__ && (b.use(Z), b.__VXE_PC_UI_INSTALLED__ = !0);
122
- const { e: I, b: u, be: ne } = mo("ap-grid"), se = go("valueTypeMap"), i = k([]), D = k([]), s = k(), x = k(t.size), ie = fo(), [, de] = uo(), { t: ue } = ho();
123
- Z.setConfig({
117
+ var X;
118
+ const y = Le(), a = re, x = (X = De()) == null ? void 0 : X.appContext.app;
119
+ x && !x.__VXE_PC_UI_INSTALLED__ && (x.use(Y), x.__VXE_PC_UI_INSTALLED__ = !0);
120
+ const { e: k, b: u, be: ne } = go("ap-grid"), se = ho("valueTypeMap"), i = E([]), O = E([]), s = E(), F = E(a.size), ie = mo(), [, de] = co(), { t: ue } = Co();
121
+ Y.setConfig({
124
122
  i18n: (e, o) => ue(`ap.${e}`, o)
125
123
  });
126
- const { renderConfig: ce, updateSignal: pe } = io(i);
127
- let O = 0;
124
+ const { renderConfig: ce, updateSignal: pe } = uo(i);
125
+ let $ = 0;
128
126
  const fe = n(() => {
129
127
  if (s.value)
130
128
  return s.value.$el.querySelector(
131
129
  ".vxe-table--header-inner-wrapper"
132
130
  );
133
- }), $ = n(() => {
131
+ }), M = n(() => {
134
132
  var e, o, r;
135
- return O++, ((r = (o = (e = t.columns) == null ? void 0 : e.filter(
133
+ return $++, ((r = (o = (e = a.columns) == null ? void 0 : e.filter(
136
134
  (l) => !l.hideInSearch && l.dataIndex && (l.valueType || l.customRenderFormItem) && !Ue.includes(l.valueType)
137
135
  )) == null ? void 0 : o.sort((l, c) => {
138
136
  let w = oe(l.order);
@@ -149,30 +147,30 @@ const qo = /* @__PURE__ */ Ke({
149
147
  // tips: 在表格中的查询表单项默认是带边框的
150
148
  bordered: !0,
151
149
  ...c || {},
152
- _signal: O
150
+ _signal: $
153
151
  },
154
152
  renderNode: void 0
155
153
  };
156
154
  return w.renderNode = Je(
157
155
  w,
158
- a(se)
156
+ t(se)
159
157
  ), w;
160
158
  })) || [];
161
159
  }), me = n(() => {
162
160
  var o;
163
- return co(t.manual) ? t.manual : po(((o = y.searchFormExtra) == null ? void 0 : o.call(y)) || []).some((r) => {
161
+ return po(a.manual) ? a.manual : fo(((o = y.searchFormExtra) == null ? void 0 : o.call(y)) || []).some((r) => {
164
162
  var l;
165
163
  return ((l = r.type) == null ? void 0 : l.name) === "ApView";
166
164
  });
167
165
  }), ge = n(() => [
168
166
  u(),
169
- t.card ? null : u("wrapper"),
170
- t.adaptive ? u("adaptive") : null,
171
- t.sticky ? u("sticky") : null
172
- ].filter(Boolean)), M = n(() => te(a(i), (e) => {
167
+ a.card ? null : u("wrapper"),
168
+ a.adaptive ? u("adaptive") : null,
169
+ a.sticky ? u("sticky") : null
170
+ ].filter(Boolean)), W = n(() => ae(t(i), (e) => {
173
171
  if (e.sorter === !0)
174
172
  return e.key || e.dataIndex;
175
- }).filter(Boolean)), W = n(() => te(a(i), (e) => {
173
+ }).filter(Boolean)), j = n(() => ae(t(i), (e) => {
176
174
  if (e.filters && !e.onFilter)
177
175
  return e.key || e.dataIndex;
178
176
  }).filter(Boolean)), {
@@ -181,7 +179,7 @@ const qo = /* @__PURE__ */ Ke({
181
179
  reset: T,
182
180
  refresh: he,
183
181
  data: f,
184
- tableProps: j,
182
+ tableProps: H,
185
183
  setDataSource: Ce,
186
184
  handleTableChangeOptional: ye,
187
185
  getPaging: ve,
@@ -189,48 +187,48 @@ const qo = /* @__PURE__ */ Ke({
189
187
  } = Qe({
190
188
  async request(e) {
191
189
  var r;
192
- if (!m.value.preserveSelectedRowKeys && R(t.dataSource) && _(), !R(t.dataSource)) {
190
+ if (!m.value.preserveSelectedRowKeys && R(a.dataSource) && _(), !R(a.dataSource)) {
193
191
  const l = e.pageSize * (e.current - 1);
194
192
  return {
195
- data: (t.pagination === !1 ? t.dataSource : t.dataSource.slice(l, l + e.pageSize)) || [],
196
- total: t.dataSource.length || 0
193
+ data: (a.pagination === !1 ? a.dataSource : a.dataSource.slice(l, l + e.pageSize)) || [],
194
+ total: a.dataSource.length || 0
197
195
  };
198
196
  }
199
- const o = await ((r = t.request) == null ? void 0 : r.call(t, e));
197
+ const o = await ((r = a.request) == null ? void 0 : r.call(a, e));
200
198
  return {
201
199
  data: (o == null ? void 0 : o.data) || [],
202
200
  total: (o == null ? void 0 : o.total) || 0
203
201
  };
204
202
  },
205
203
  namespace: "ap-grid",
206
- filterFields: W,
207
- sortFields: M,
208
- params: Oe(t, "params"),
209
- defaultData: t.defaultData,
210
- manual: a(me),
211
- formatParams: t.beforeSearchSubmit,
212
- pagination: t.pagination,
204
+ filterFields: j,
205
+ sortFields: W,
206
+ params: Oe(a, "params"),
207
+ defaultData: a.defaultData,
208
+ manual: t(me),
209
+ formatParams: a.beforeSearchSubmit,
210
+ pagination: a.pagination,
213
211
  onClickReset: Ae,
214
- onAfterRequest: U
215
- }), { sortChangeEvent: Se, filterChangeEvent: Re, paginationChangeEvent: be } = Ze(ye);
216
- ro({
212
+ onAfterRequest: G
213
+ }), { sortChangeEvent: Se, filterChangeEvent: be, paginationChangeEvent: Re } = eo(ye);
214
+ lo({
217
215
  columns: n(() => i.value),
218
- columnsBackup: n(() => D.value),
219
- size: n(() => no[x.value]),
216
+ columnsBackup: n(() => O.value),
217
+ size: n(() => so[F.value]),
220
218
  updateColumns(e) {
221
219
  var o;
222
- i.value = e, (o = t.onShownColumnsChange) == null || o.call(t, e);
220
+ i.value = e, (o = a.onShownColumnsChange) == null || o.call(a, e);
223
221
  },
224
222
  updateSize(e) {
225
- x.value = lo[e];
223
+ F.value = no[e];
226
224
  },
227
225
  renderConfig: n(() => ({
228
226
  className: ne("table-header", "title"),
229
227
  color: de.value.colorTextTertiary
230
228
  })),
231
- dataSource: n(() => a(f).records),
232
- getSearchFormValues: q,
233
- setSearchFormValues: H,
229
+ dataSource: n(() => t(f).records),
230
+ getSearchFormValues: U,
231
+ setSearchFormValues: q,
234
232
  submit: N,
235
233
  reset: T
236
234
  });
@@ -239,13 +237,13 @@ const qo = /* @__PURE__ */ Ke({
239
237
  (e) => e.fixed === "left" || e.fixed === !0
240
238
  ) ? "left" : void 0
241
239
  ), ke = n(
242
- () => R(t.loading) ? f.loading : t.loading
240
+ () => R(a.loading) ? f.loading : a.loading
243
241
  ), Fe = n(
244
- () => R(t.dataSource) ? f.records : t.dataSource
245
- ), { selectedRows: z, rowSelection: m, ...v } = ao({
246
- ...t.rowSelection === !0 ? {} : t.rowSelection,
242
+ () => R(a.dataSource) ? f.records : a.dataSource
243
+ ), { selectedRows: z, rowSelection: m, ...v } = ro({
244
+ ...a.rowSelection === !0 ? {} : a.rowSelection,
247
245
  dataSource: Fe,
248
- rowKey: t.rowKey
246
+ rowKey: a.rowKey
249
247
  }), Ee = ({
250
248
  checked: e,
251
249
  row: o
@@ -278,18 +276,18 @@ const qo = /* @__PURE__ */ Ke({
278
276
  }, Ne = ({
279
277
  row: e
280
278
  }) => {
281
- const o = t.rowHighlightable;
279
+ const o = a.rowHighlightable;
282
280
  ee(o) && o(e);
283
281
  };
284
282
  function Te() {
285
283
  var e;
286
- return ((e = t.columns) == null ? void 0 : e.filter((o) => !o.hideInTable)) || [];
284
+ return ((e = a.columns) == null ? void 0 : e.filter((o) => !o.hideInTable)) || [];
287
285
  }
288
- function H(e) {
286
+ function q(e) {
289
287
  var o, r, l;
290
288
  (l = (r = (o = P.value) == null ? void 0 : o.apForm) == null ? void 0 : r.setFieldsValue) == null || l.call(r, e);
291
289
  }
292
- function q(e = !1) {
290
+ function U(e = !1) {
293
291
  var r, l, c;
294
292
  const o = e ? "getFieldsValueTransformed" : "getFieldsValue";
295
293
  return (c = (l = (r = P.value) == null ? void 0 : r.apForm) == null ? void 0 : l[o]) == null ? void 0 : c.call(l, !0);
@@ -300,20 +298,20 @@ const qo = /* @__PURE__ */ Ke({
300
298
  e && (m.value.type === "radio" ? (e.clearRadioRow(), e.clearRadioReserve()) : (e.clearCheckboxRow(), e.clearCheckboxReserve()));
301
299
  }
302
300
  function ze(e) {
303
- ee(t.rowKey) || (v.selectMultiByKeys(e), U());
301
+ ee(a.rowKey) || (v.selectMultiByKeys(e), G());
304
302
  }
305
303
  function _e(e) {
306
304
  const o = s.value;
307
305
  if (!o)
308
306
  return;
309
- const r = String(e[t.rowKey]), l = o.getRowById(r);
307
+ const r = String(e[a.rowKey]), l = o.getRowById(r);
310
308
  o.setCurrentRow(l);
311
309
  }
312
310
  function Ae() {
313
311
  const e = s.value;
314
312
  e && (e.clearSort(), e.clearFilter());
315
313
  }
316
- function U() {
314
+ function G() {
317
315
  $e(() => {
318
316
  var e, o;
319
317
  m.value.type === "radio" ? (e = s.value) == null || e.setRadioRowKey(m.value.selectedRowKeys[0]) : (o = s.value) == null || o.setCheckboxRowKey(
@@ -328,70 +326,70 @@ const qo = /* @__PURE__ */ Ke({
328
326
  if (r)
329
327
  return (l = s.value) == null ? void 0 : l.scrollToRow(r, o);
330
328
  }
331
- return F(
332
- () => [t.columnResizable, t.columns],
329
+ return B(
330
+ () => [a.columnResizable, a.columns],
333
331
  () => {
334
332
  var o;
335
333
  const e = Te();
336
- i.value = e, (o = t.onShownColumnsChange) == null || o.call(t, e), D.value = e;
334
+ i.value = e, (o = a.onShownColumnsChange) == null || o.call(a, e), O.value = e;
337
335
  },
338
336
  {
339
337
  deep: !0,
340
338
  immediate: !0
341
339
  }
342
- ), F(
343
- () => t.dataSource,
340
+ ), B(
341
+ () => a.dataSource,
344
342
  (e) => {
345
343
  Ce(e);
346
344
  },
347
345
  { immediate: !0, deep: !0 }
348
- ), F(
349
- () => a(f).loading,
346
+ ), B(
347
+ () => t(f).loading,
350
348
  (e) => {
351
349
  var o;
352
- (o = t.onLoadingChange) == null || o.call(t, e);
350
+ (o = a.onLoadingChange) == null || o.call(a, e);
353
351
  }
354
- ), F(
355
- () => t.size,
352
+ ), B(
353
+ () => a.size,
356
354
  (e) => {
357
- x.value = e;
355
+ F.value = e;
358
356
  }
359
357
  ), le({
360
358
  submit: N,
361
359
  reset: T,
362
360
  refresh: he,
363
- setSearchFormValues: H,
364
- getSearchFormValues: q,
365
- getShowColumns: () => a(i),
361
+ setSearchFormValues: q,
362
+ getSearchFormValues: U,
363
+ getShowColumns: () => t(i),
366
364
  rowSelection: {
367
365
  selectedRows: n(() => z.value),
368
366
  setSelectedRowKeys: ze,
369
367
  clearAll: _
370
368
  },
371
369
  scrollToRow: Ve,
372
- getDataSource: () => a(f.records),
370
+ getDataSource: () => t(f.records),
373
371
  setCurrentRow: _e,
374
372
  getPaging: ve,
375
373
  setPaging: we
376
- }), (e, o) => (d(), E("div", {
374
+ }), (e, o) => (d(), I("div", {
377
375
  class: g(ge.value),
378
376
  style: A(e.wrapperStyle)
379
377
  }, [
380
- a(R)(e.dataSource) && e.searchForm !== !1 && $.value.length > 0 ? (d(), E("div", {
378
+ t(R)(e.dataSource) && e.searchForm !== !1 && M.value.length > 0 ? (d(), I("div", {
381
379
  key: 0,
382
- class: g(e.card ? a(I)("search-wrapper") : null),
380
+ class: g(e.card ? t(k)("search-wrapper") : null),
383
381
  style: A(e.searchFormWrapperStyle)
384
382
  }, [
385
- X(a(qe).SearchForm, h(e.searchForm || {}, {
383
+ V(t(qe).SearchForm, C(e.searchForm || {}, {
386
384
  ref_key: "formRef",
387
385
  ref: P,
388
386
  "custom-reset": "",
389
- "submit-loading": a(j).loading,
390
- onSubmit: a(N),
391
- onReset: a(T)
387
+ "submit-loading": t(H).loading,
388
+ onSubmit: t(N),
389
+ onReset: t(T)
392
390
  }), J({
393
- default: C(() => [
394
- (d(!0), E(Q, null, V($.value, (r) => (d(), p(K(r.renderNode.Comp), h({
391
+ default: h(() => [
392
+ (d(!0), I(Q, null, K(M.value, (r) => (d(), p(L(r.renderNode.Comp), C({
395
393
  key: r.dataIndex,
396
394
  item: r,
397
395
  ref_for: !0
@@ -404,84 +402,91 @@ const qo = /* @__PURE__ */ Ke({
404
402
  }, [
405
403
  y.searchFormExtra ? {
406
404
  name: "extra",
407
- fn: C(() => [
408
- L(e.$slots, "searchFormExtra")
405
+ fn: h(() => [
406
+ D(e.$slots, "searchFormExtra")
409
407
  ]),
410
408
  key: "0"
411
409
  } : void 0
412
410
  ]), 1040, ["submit-loading", "onSubmit", "onReset"])
413
411
  ], 6)) : S("", !0),
414
- B("div", {
415
- class: g([a(I)("table-wrapper"), e.card ? a(I)("table-wrapper-card") : null]),
412
+ b("div", {
413
+ class: g([t(k)("table-wrapper"), e.card ? t(k)("table-wrapper-card") : null]),
416
414
  style: A(e.tableWrapperStyle)
417
415
  }, [
418
- B("div", {
419
- class: g(a(u)("header-wrapper"))
416
+ b("div", {
417
+ class: g(t(u)("header-wrapper"))
420
418
  }, [
421
- L(e.$slots, "title", {
422
- selectedRows: a(z),
423
- selectedRowKeys: a(m).selectedRowKeys,
419
+ D(e.$slots, "title", {
420
+ selectedRows: t(z),
421
+ selectedRowKeys: t(m).selectedRowKeys,
424
422
  shownColumns: i.value,
425
423
  clearAll: _
426
424
  })
427
425
  ], 2),
428
- B("div", {
429
- class: g(a(u)("vxe-wrapper"))
426
+ b("div", {
427
+ class: g(t(u)("vxe-wrapper"))
430
428
  }, [
431
- (d(), p(a(je), h(a(eo)(t), {
429
+ (d(), p(t(je), C(t(oo)(a), {
432
430
  ref_key: "tableRef",
433
431
  ref: s,
434
- key: a(pe),
435
- data: a(f).records,
432
+ key: t(pe),
433
+ data: t(f).records,
436
434
  "sort-config": {
437
- remote: M.value.length > 0,
435
+ remote: W.value.length > 0,
438
436
  trigger: "cell"
439
437
  },
440
438
  "filter-config": {
441
- remote: W.value.length > 0
439
+ remote: j.value.length > 0
442
440
  },
443
441
  loading: ke.value,
444
- style: a(ie),
445
- size: x.value,
446
- onSortChange: a(Se),
447
- onFilterChange: a(Re),
442
+ style: t(ie),
443
+ size: F.value,
444
+ onSortChange: t(Se),
445
+ onFilterChange: t(be),
448
446
  onCheckboxChange: Ee,
449
447
  onCheckboxRangeChange: Ie,
450
448
  onCheckboxAll: Be,
451
449
  onRadioChange: Pe,
452
450
  onCurrentChange: Ne
453
451
  }), J({
454
- empty: C(() => [
455
- X(a(ae), {
456
- image: a(ae).PRESENTED_IMAGE_SIMPLE
452
+ empty: h(() => [
453
+ V(t(te), {
454
+ image: t(te).PRESENTED_IMAGE_SIMPLE
457
455
  }, null, 8, ["image"])
458
456
  ]),
459
- default: C(() => [
460
- t.expandable && i.value.length ? (d(), p(a(Y), h({ key: 0 }, a(oo)(e.expandable), { fixed: xe.value }), {
461
- content: C((r) => [
462
- (d(), p(K(t.expandable.renderContent(r))))
457
+ loading: h(() => [
458
+ b("div", {
459
+ class: g(t(k)("table-loading-wrapper"))
460
+ }, [
461
+ V(t(Ye))
462
+ ], 2)
463
+ ]),
464
+ default: h(() => [
465
+ a.expandable && i.value.length ? (d(), p(t(Z), C({ key: 0 }, t(ao)(e.expandable), { fixed: xe.value }), {
466
+ content: h((r) => [
467
+ (d(), p(L(a.expandable.renderContent(r))))
463
468
  ]),
464
469
  _: 1
465
470
  }, 16, ["fixed"])) : S("", !0),
466
- t.rowSelection && i.value.length ? (d(), p(a(Y), h({ key: 1 }, a(to)(a(m), i.value), { field: a(so) }), null, 16, ["field"])) : S("", !0),
467
- (d(!0), E(Q, null, V(a(ce), (r) => (d(), p(K(r), {
471
+ a.rowSelection && i.value.length ? (d(), p(t(Z), C({ key: 1 }, t(to)(t(m), i.value), { field: t(io) }), null, 16, ["field"])) : S("", !0),
472
+ (d(!0), I(Q, null, K(t(ce), (r) => (d(), p(L(r), {
468
473
  key: r.props.colId
469
474
  }))), 128))
470
475
  ]),
471
476
  _: 2
472
477
  }, [
473
- V(a(He)(y, ["searchFormExtra"]), (r, l) => ({
478
+ K(t(He)(y, ["searchFormExtra"]), (r, l) => ({
474
479
  name: l,
475
- fn: C((c) => [
476
- L(e.$slots, l, Me(We(c || {})))
480
+ fn: h((c) => [
481
+ D(e.$slots, l, Me(We(c || {})))
477
482
  ])
478
483
  }))
479
484
  ]), 1040, ["data", "sort-config", "filter-config", "loading", "style", "size", "onSortChange", "onFilterChange"]))
480
485
  ], 2),
481
- B("div", {
482
- class: g(a(u)("pagination-wrapper"))
486
+ b("div", {
487
+ class: g(t(u)("pagination-wrapper"))
483
488
  }, [
484
- e.sticky ? (d(), p(a(Co), {
489
+ e.sticky ? (d(), p(t(yo), {
485
490
  key: 0,
486
491
  direction: "horizontal",
487
492
  "scroll-container": fe.value,
@@ -489,15 +494,15 @@ const qo = /* @__PURE__ */ Ke({
489
494
  "bar-color": "var(--ap-scrollbar-thumb-color-base)",
490
495
  "track-color": "var(--ap-table-header-bg, #f2f6f9)"
491
496
  }, null, 8, ["scroll-container"])) : S("", !0),
492
- e.pagination !== !1 ? (d(), p(a(Ye), h({
497
+ e.pagination !== !1 ? (d(), p(t(Ze), C({
493
498
  key: 1,
494
- class: a(u)("pagination")
495
- }, a(j).pagination, { onChange: a(be) }), null, 16, ["class", "onChange"])) : S("", !0)
499
+ class: t(u)("pagination")
500
+ }, t(H).pagination, { onChange: t(Re) }), null, 16, ["class", "onChange"])) : S("", !0)
496
501
  ], 2)
497
502
  ], 6)
498
503
  ], 6));
499
504
  }
500
505
  });
501
506
  export {
502
- qo as default
507
+ Ho as default
503
508
  };