@aplus-frontend/ui 0.5.0-beta.0 → 0.5.0-beta.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 (48) hide show
  1. package/es/src/ap-form/hooks/use-watch.d.ts +4 -1
  2. package/es/src/ap-form/hooks/use-watch.mjs +31 -29
  3. package/es/src/ap-form/index.mjs +1 -1
  4. package/es/src/ap-form/search-form/index.vue.mjs +14 -15
  5. package/es/src/ap-grid/index.vue.d.ts +44 -0
  6. package/es/src/ap-grid/index.vue.mjs +261 -279
  7. package/es/src/ap-grid/interface.d.ts +2 -18
  8. package/es/src/ap-grid/utils/table.mjs +12 -12
  9. package/es/src/ap-modal/enums/modalMessage.d.ts +6 -0
  10. package/es/src/ap-modal/enums/modalMessage.mjs +4 -0
  11. package/es/src/ap-modal/index.d.ts +2 -1
  12. package/es/src/ap-modal/index.mjs +2 -0
  13. package/es/src/ap-modal/interface.d.ts +126 -1
  14. package/es/src/ap-modal/utils/createModalStream.d.ts +2 -0
  15. package/es/src/ap-modal/utils/createModalStream.mjs +99 -0
  16. package/es/src/ap-modal/utils/index.d.ts +1 -0
  17. package/es/src/ap-modal/utils/index.mjs +4 -2
  18. package/es/src/ap-table/components/dynamic-component/index.vue2.mjs +4 -7
  19. package/es/src/ap-table/utils.d.ts +1 -4
  20. package/es/src/ap-table/utils.mjs +43 -41
  21. package/es/src/business/ap-attachment/ApAttachment.mjs +13 -13
  22. package/es/src/business/ap-batch-action-group/MenuItemGroup.vue2.mjs +13 -13
  23. package/lib/src/ap-form/hooks/use-watch.d.ts +4 -1
  24. package/lib/src/ap-form/hooks/use-watch.js +1 -1
  25. package/lib/src/ap-form/index.js +1 -1
  26. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  27. package/lib/src/ap-grid/index.vue.d.ts +44 -0
  28. package/lib/src/ap-grid/index.vue.js +1 -1
  29. package/lib/src/ap-grid/interface.d.ts +2 -18
  30. package/lib/src/ap-grid/utils/table.js +1 -1
  31. package/lib/src/ap-modal/enums/modalMessage.d.ts +6 -0
  32. package/lib/src/ap-modal/enums/modalMessage.js +1 -0
  33. package/lib/src/ap-modal/index.d.ts +2 -1
  34. package/lib/src/ap-modal/index.js +1 -1
  35. package/lib/src/ap-modal/interface.d.ts +126 -1
  36. package/lib/src/ap-modal/utils/createModalStream.d.ts +2 -0
  37. package/lib/src/ap-modal/utils/createModalStream.js +1 -0
  38. package/lib/src/ap-modal/utils/index.d.ts +1 -0
  39. package/lib/src/ap-modal/utils/index.js +1 -1
  40. package/lib/src/ap-table/components/dynamic-component/index.vue2.js +1 -1
  41. package/lib/src/ap-table/utils.d.ts +1 -4
  42. package/lib/src/ap-table/utils.js +1 -1
  43. package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
  44. package/lib/src/business/ap-batch-action-group/MenuItemGroup.vue2.js +1 -1
  45. package/package.json +4 -4
  46. package/theme/ap-grid/index.css +31 -0
  47. package/theme/ap-grid/index.less +41 -0
  48. package/theme/index.css +31 -0
@@ -1,101 +1,69 @@
1
- import { defineComponent as ye, getCurrentInstance as Se, useSlots as we, ref as w, computed as l, unref as a, watchEffect as ve, watch as $, createElementBlock as v, openBlock as s, normalizeClass as b, createCommentVNode as R, createElementVNode as H, normalizeStyle as U, createVNode as be, mergeProps as c, createSlots as q, withCtx as f, Fragment as M, renderList as P, createBlock as u, resolveDynamicComponent as E, renderSlot as N, normalizeProps as Re, guardReactiveProps as xe } from "vue";
1
+ import { defineComponent as ve, getCurrentInstance as Se, useSlots as we, ref as b, computed as n, unref as a, watchEffect as be, watch as H, createElementBlock as R, openBlock as s, normalizeClass as f, createCommentVNode as h, createElementVNode as x, normalizeStyle as q, createVNode as Re, mergeProps as m, createSlots as U, withCtx as C, Fragment as M, renderList as E, createBlock as c, resolveDynamicComponent as N, renderSlot as z, normalizeProps as xe, guardReactiveProps as ke } from "vue";
2
2
  import { VxeTable as Fe, VxeColumn as G } from "vxe-table";
3
- import ke from "vxe-pc-ui";
4
- import "/Users/limoer/www/aplus/aplus-ui/node_modules/.pnpm/vxe-table@4.10.14_vue@3.5.13_typescript@5.7.3_/node_modules/vxe-table/lib/style.css";
5
- import "/Users/limoer/www/aplus/aplus-ui/node_modules/.pnpm/vxe-pc-ui@4.3.95_vue@3.5.13_typescript@5.7.3_/node_modules/vxe-pc-ui/lib/style.css";
6
- import { isUndefined as x, omit as Be } from "lodash-unified";
7
- import { ApForm as Ie } from "../ap-form/index.mjs";
3
+ import Be from "vxe-pc-ui";
4
+ import "vxe-table/lib/style.css";
5
+ import "vxe-pc-ui/lib/style.css";
6
+ import { isUndefined as k, omit as Ie } from "lodash-unified";
7
+ import { ApForm as Pe } from "../ap-form/index.mjs";
8
8
  import "../config-provider/index.mjs";
9
- import { noRenderAsFormItemValueList as Pe } from "../ap-table/constants.mjs";
10
- import { getColumnOrder as X, updateFormProps as Ee, getFieldProps as Ne, getSearchFormItemRenderNode as ze, recursionApColumns as J } from "../ap-table/utils.mjs";
9
+ import { noRenderAsFormItemValueList as Ee } from "../ap-table/constants.mjs";
10
+ import { getColumnOrder as X, updateFormProps as Ne, getFieldProps as ze, getSearchFormItemRenderNode as _e, recursionApColumns as J } from "../ap-table/utils.mjs";
11
11
  import { useTablePaging as Te } from "../ap-table/hooks/use-table-paging-ng.mjs";
12
12
  import { Pagination as Ve } from "@aplus-frontend/antdv";
13
- import { useInnerParams as _e } from "./hooks/use-inner-params.mjs";
14
- import { toVxeProps as Ae, getRowExpandProps as Oe, getRowSelectionProps as Le } from "./utils/table.mjs";
15
- import De from "../ap-table/hooks/use-table-row-selection.mjs";
16
- import { useProvideApTable as Ke } from "../ap-table/context.mjs";
13
+ import { useInnerParams as Ae } from "./hooks/use-inner-params.mjs";
14
+ import { toVxeProps as Oe, getRowExpandProps as Le, getRowSelectionProps as De } from "./utils/table.mjs";
15
+ import Ke from "../ap-table/hooks/use-table-row-selection.mjs";
16
+ import { useProvideApTable as $e } from "../ap-table/context.mjs";
17
17
  import { sizeReverseMap as je, sizeMap as We } from "./constants.mjs";
18
- import { useRenderColumns as $e } from "./hooks/use-render-columns.mjs";
19
- import { useToken as He } from "@aplus-frontend/antdv/es/theme/internal";
18
+ import { useRenderColumns as He } from "./hooks/use-render-columns.mjs";
19
+ import { useToken as qe } from "@aplus-frontend/antdv/es/theme/internal";
20
+ import "../scroll-bar/index.mjs";
20
21
  import { useNamespace as Ue } from "../config-provider/hooks/use-namespace.mjs";
21
- import { useGlobalConfig as qe } from "../config-provider/hooks/use-global-config.mjs";
22
- const ga = /* @__PURE__ */ ye({
22
+ import { useGlobalConfig as Me } from "../config-provider/hooks/use-global-config.mjs";
23
+ import Ge from "../scroll-bar/index.vue.mjs";
24
+ const va = /* @__PURE__ */ ve({
23
25
  name: "ApGrid",
24
26
  __name: "index",
25
27
  props: {
26
28
  dropdownPrefixCls: {},
27
- loading: {
28
- type: [Boolean, Object],
29
- default: void 0
30
- },
31
- bordered: {
32
- type: Boolean,
33
- default: !1
34
- },
29
+ loading: { type: [Boolean, Object], default: void 0 },
30
+ bordered: { type: Boolean, default: !1 },
35
31
  locale: {},
36
32
  onChange: {},
37
33
  onResizeColumn: {},
38
34
  getPopupContainer: {},
39
35
  scroll: {},
40
- sortDirections: {
41
- default: () => ["ascend", "descend"]
42
- },
43
- showSorterTooltip: {
44
- type: [Boolean, Object],
45
- default: !1
46
- },
36
+ sortDirections: { default: () => ["ascend", "descend"] },
37
+ showSorterTooltip: { type: [Boolean, Object], default: !1 },
47
38
  prefixCls: {},
48
39
  tableLayout: {},
49
40
  title: {},
50
41
  id: {},
51
- showHeader: {
52
- type: Boolean,
53
- default: !0
54
- },
42
+ showHeader: { type: Boolean, default: !0 },
55
43
  components: {},
56
44
  customRow: {},
57
45
  customHeaderRow: {},
58
46
  direction: {},
59
- expandFixed: {
60
- type: [String, Boolean],
61
- default: !1
62
- },
47
+ expandFixed: { type: [String, Boolean], default: !1 },
63
48
  expandColumnWidth: {},
64
49
  expandedRowKeys: {},
65
50
  defaultExpandedRowKeys: {},
66
51
  expandedRowRender: {},
67
- expandRowByClick: {
68
- type: Boolean,
69
- default: !1
70
- },
52
+ expandRowByClick: { type: Boolean, default: !1 },
71
53
  expandIcon: {},
72
54
  onExpand: {},
73
55
  onExpandedRowsChange: {},
74
- defaultExpandAllRows: {
75
- type: Boolean,
76
- default: !1
77
- },
78
- indentSize: {
79
- default: 15
80
- },
56
+ defaultExpandAllRows: { type: Boolean, default: !1 },
57
+ indentSize: { default: 15 },
81
58
  expandIconColumnIndex: {},
82
- showExpandColumn: {
83
- type: Boolean,
84
- default: !0
85
- },
59
+ showExpandColumn: { type: Boolean, default: !0 },
86
60
  expandedRowClassName: {},
87
- childrenColumnName: {
88
- default: "children"
89
- },
61
+ childrenColumnName: { default: "children" },
90
62
  rowExpandable: {},
91
- sticky: {
92
- type: [Boolean, Object]
93
- },
63
+ sticky: { type: [Boolean, Object], default: !1 },
94
64
  transformCellText: {},
95
65
  rowClassName: {},
96
- stripe: {
97
- type: Boolean
98
- },
66
+ stripe: { type: Boolean },
99
67
  headerRowClassName: {},
100
68
  footerRowClassName: {},
101
69
  cellClassName: {},
@@ -114,286 +82,300 @@ const ga = /* @__PURE__ */ ye({
114
82
  mergeFooterItems: {},
115
83
  cellConfig: {},
116
84
  columns: {},
117
- rowSelection: {
118
- type: Boolean
119
- },
120
- card: {
121
- type: Boolean,
122
- default: !1
123
- },
85
+ rowSelection: { type: Boolean },
86
+ card: { type: Boolean, default: !1 },
124
87
  params: {},
125
88
  request: {},
126
89
  defaultData: {},
127
90
  dataSource: {},
128
91
  onLoadingChange: {},
129
- searchForm: {
130
- type: [Boolean, Object],
131
- default: void 0
132
- },
92
+ searchForm: { type: [Boolean, Object], default: void 0 },
133
93
  beforeSearchSubmit: {},
134
- pagination: {
135
- type: [Boolean, Object],
136
- default: void 0
137
- },
94
+ pagination: { type: [Boolean, Object], default: void 0 },
138
95
  searchFormWrapperStyle: {},
139
96
  tableWrapperStyle: {},
140
- manual: {
141
- type: Boolean,
142
- default: !1
143
- },
144
- size: {
145
- default: "medium"
146
- },
147
- adaptive: {
148
- type: Boolean,
149
- default: !1
150
- },
151
- columnResizable: {
152
- type: [Boolean, Object],
153
- default: !1
154
- },
155
- rowKey: {
156
- default: "key"
157
- },
97
+ manual: { type: Boolean, default: !1 },
98
+ size: { default: "medium" },
99
+ adaptive: { type: Boolean, default: !1 },
100
+ columnResizable: { type: [Boolean, Object], default: !1 },
101
+ rowKey: { default: "key" },
158
102
  footer: {},
159
- virtual: {
160
- type: [Boolean, Object],
161
- default: void 0
162
- },
103
+ virtual: { type: [Boolean, Object], default: void 0 },
163
104
  expandable: {}
164
105
  },
165
- setup(Q, {
166
- expose: Y
167
- }) {
106
+ setup(Q, { expose: Y }) {
168
107
  var W;
169
- const m = (W = Se()) == null ? void 0 : W.appContext.app;
170
- m && !m.__VXE_PC_UI_INSTALLED__ && (m.use(ke), m.__VXE_PC_UI_INSTALLED__ = !0);
171
- const z = we(), o = Q, {
172
- e: F,
173
- b: g,
174
- be: Z
175
- } = Ue("ap-grid"), ee = qe("valueTypeMap"), d = w([]), T = w([]), h = w(), k = w(o.size), [, ae] = He(), {
176
- renderConfig: oe,
177
- updateSignal: te
178
- } = $e(d);
108
+ const y = (W = Se()) == null ? void 0 : W.appContext.app;
109
+ y && !y.__VXE_PC_UI_INSTALLED__ && (y.use(Be), y.__VXE_PC_UI_INSTALLED__ = !0);
110
+ const _ = we(), o = Q, { e: F, b: i, be: Z } = Ue("ap-grid"), ee = Me("valueTypeMap"), d = b([]), T = b([]), p = b(), B = b(o.size), [, ae] = qe(), { renderConfig: oe, updateSignal: re } = He(d);
179
111
  let V = 0;
180
- const _ = l(() => {
181
- var e, n, r;
182
- return V++, ((r = (n = (e = o.columns) == null ? void 0 : e.filter((t) => !t.hideInSearch && t.dataIndex && (t.valueType || t.customRenderFormItem) && !Pe.includes(t.valueType))) == null ? void 0 : n.sort((t, i) => {
183
- let p = X(t.order);
184
- return X(i.order) - p;
185
- })) == null ? void 0 : r.map((t) => {
186
- const i = Ee(t, Ne(t.fieldProps, {})), p = {
187
- ...t,
112
+ const te = n(() => {
113
+ if (p.value)
114
+ return p.value.$el.querySelector(
115
+ ".vxe-table--header-inner-wrapper"
116
+ );
117
+ }), A = n(() => {
118
+ var e, l, t;
119
+ return V++, ((t = (l = (e = o.columns) == null ? void 0 : e.filter(
120
+ (r) => !r.hideInSearch && r.dataIndex && (r.valueType || r.customRenderFormItem) && !Ee.includes(r.valueType)
121
+ )) == null ? void 0 : l.sort((r, u) => {
122
+ let g = X(r.order);
123
+ return X(u.order) - g;
124
+ })) == null ? void 0 : t.map((r) => {
125
+ const u = Ne(
126
+ r,
127
+ ze(r.fieldProps, {})
128
+ ), g = {
129
+ ...r,
188
130
  fieldProps: {
189
- label: t.title,
190
- name: t.dataIndex,
191
- ...i || {},
131
+ label: r.title,
132
+ name: r.dataIndex,
133
+ ...u || {},
192
134
  _signal: V
193
135
  },
194
136
  renderNode: void 0
195
137
  };
196
- return p.renderNode = ze(p, a(ee)), p;
138
+ return g.renderNode = _e(
139
+ g,
140
+ a(ee)
141
+ ), g;
197
142
  })) || [];
198
- }), re = l(() => [g(), o.card ? null : g("wrapper")].filter(Boolean)), A = l(() => J(a(d), (e) => {
143
+ }), le = n(() => [
144
+ i(),
145
+ o.card ? null : i("wrapper"),
146
+ o.adaptive ? i("adaptive") : null,
147
+ o.sticky ? i("sticky") : null
148
+ ].filter(Boolean)), O = n(() => J(a(d), (e) => {
199
149
  if (e.sorter === !0)
200
150
  return e.key || e.dataIndex;
201
- }).filter(Boolean)), O = l(() => J(a(d), (e) => {
151
+ }).filter(Boolean)), L = n(() => J(a(d), (e) => {
202
152
  if (e.filters && !e.onFilter)
203
153
  return e.key || e.dataIndex;
204
154
  }).filter(Boolean)), {
205
- formRef: B,
206
- submit: L,
207
- reset: D,
155
+ formRef: I,
156
+ submit: D,
157
+ reset: K,
208
158
  refresh: ne,
209
- data: C,
210
- tableProps: le,
211
- setDataSource: se,
212
- handleTableChange: de
159
+ data: v,
160
+ tableProps: se,
161
+ setDataSource: de,
162
+ handleTableChange: ie
213
163
  } = Te({
214
164
  async request(e) {
215
- var r;
216
- if (!S.value.preserveSelectedRowKeys && x(o.dataSource) && I(), !x(o.dataSource)) {
217
- const t = e.pageSize * (e.current - 1);
165
+ var t;
166
+ if (!w.value.preserveSelectedRowKeys && k(o.dataSource) && P(), !k(o.dataSource)) {
167
+ const r = e.pageSize * (e.current - 1);
218
168
  return {
219
- data: (o.pagination === !1 ? o.dataSource : o.dataSource.slice(t, t + e.pageSize)) || [],
169
+ data: (o.pagination === !1 ? o.dataSource : o.dataSource.slice(r, r + e.pageSize)) || [],
220
170
  total: o.dataSource.length || 0
221
171
  };
222
172
  }
223
- const n = await ((r = o.request) == null ? void 0 : r.call(o, e));
173
+ const l = await ((t = o.request) == null ? void 0 : t.call(o, e));
224
174
  return {
225
- data: (n == null ? void 0 : n.data) || [],
226
- total: (n == null ? void 0 : n.total) || 0
175
+ data: (l == null ? void 0 : l.data) || [],
176
+ total: (l == null ? void 0 : l.total) || 0
227
177
  };
228
178
  },
229
179
  namespace: "ap-grid",
230
- filterFields: O,
231
- sortFields: A,
180
+ filterFields: L,
181
+ sortFields: O,
232
182
  defaultParams: o.params,
233
183
  defaultData: o.defaultData,
234
184
  manual: o.manual,
235
185
  formatParams: o.beforeSearchSubmit,
236
186
  pagination: o.pagination
237
- }), {
238
- sortChangeEvent: ie,
239
- filterChangeEvent: ue,
240
- paginationChangeEvent: ce
241
- } = _e(de);
242
- Ke({
243
- columns: l(() => d.value),
244
- columnsBackup: l(() => T.value),
245
- size: l(() => We[k.value]),
187
+ }), { sortChangeEvent: ue, filterChangeEvent: ce, paginationChangeEvent: pe } = Ae(ie);
188
+ $e({
189
+ columns: n(() => d.value),
190
+ columnsBackup: n(() => T.value),
191
+ size: n(() => We[B.value]),
246
192
  updateColumns(e) {
247
193
  d.value = e;
248
194
  },
249
195
  updateSize(e) {
250
- k.value = je[e];
196
+ B.value = je[e];
251
197
  },
252
- renderConfig: l(() => ({
198
+ renderConfig: n(() => ({
253
199
  className: Z("table-header", "title"),
254
200
  color: ae.value.colorPrimary
255
201
  }))
256
202
  });
257
- const K = l(() => d.value.some((e) => e.fixed === "left" || e.fixed === !0) ? "left" : void 0), pe = l(() => x(o.dataSource) ? C.records : o.dataSource), {
258
- selectedRows: y,
259
- rowSelection: S,
260
- ...fe
261
- } = De({
203
+ const $ = n(
204
+ () => d.value.some(
205
+ (e) => e.fixed === "left" || e.fixed === !0
206
+ ) ? "left" : void 0
207
+ ), fe = n(
208
+ () => k(o.dataSource) ? v.records : o.dataSource
209
+ ), { selectedRows: S, rowSelection: w, ...me } = Ke({
262
210
  ...o.rowSelection === !0 ? {} : o.rowSelection,
263
- dataSource: pe,
211
+ dataSource: fe,
264
212
  rowKey: o.rowKey
265
213
  }), j = () => {
266
- const e = h.value;
267
- e && (y.value = [...e.getCheckboxReserveRecords(), ...e.getCheckboxRecords()]);
268
- }, me = () => {
269
- const e = h.value;
270
- e && (y.value = [e.getRadioRecord()]);
214
+ const e = p.value;
215
+ e && (S.value = [
216
+ ...e.getCheckboxReserveRecords(),
217
+ ...e.getCheckboxRecords()
218
+ ]);
219
+ }, ge = () => {
220
+ const e = p.value;
221
+ e && (S.value = [e.getRadioRecord()]);
271
222
  };
272
- function ge() {
223
+ function he() {
273
224
  var e;
274
- return ((e = o.columns) == null ? void 0 : e.filter((n) => !n.hideInTable)) || [];
225
+ return ((e = o.columns) == null ? void 0 : e.filter((l) => !l.hideInTable)) || [];
275
226
  }
276
- function he(e) {
277
- var n, r, t;
278
- (t = (r = (n = B.value) == null ? void 0 : n.apForm) == null ? void 0 : r.setFieldsValue) == null || t.call(r, e);
227
+ function Ce(e) {
228
+ var l, t, r;
229
+ (r = (t = (l = I.value) == null ? void 0 : l.apForm) == null ? void 0 : t.setFieldsValue) == null || r.call(t, e);
279
230
  }
280
- function Ce(e = !1) {
281
- var r, t, i;
282
- const n = e ? "getFieldsValueTransformed" : "getFieldsValue";
283
- return (i = (t = (r = B.value) == null ? void 0 : r.apForm) == null ? void 0 : t[n]) == null ? void 0 : i.call(t, !0);
231
+ function ye(e = !1) {
232
+ var t, r, u;
233
+ const l = e ? "getFieldsValueTransformed" : "getFieldsValue";
234
+ return (u = (r = (t = I.value) == null ? void 0 : t.apForm) == null ? void 0 : r[l]) == null ? void 0 : u.call(r, !0);
284
235
  }
285
- function I() {
286
- fe.clearAll();
287
- const e = h.value;
288
- e && (S.value.type === "radio" ? (e.clearRadioRow(), e.clearRadioReserve()) : (e.clearCheckboxRow(), e.clearCheckboxReserve()));
236
+ function P() {
237
+ me.clearAll();
238
+ const e = p.value;
239
+ e && (w.value.type === "radio" ? (e.clearRadioRow(), e.clearRadioReserve()) : (e.clearCheckboxRow(), e.clearCheckboxReserve()));
289
240
  }
290
- return ve(() => {
291
- const e = ge();
241
+ return be(() => {
242
+ const e = he();
292
243
  d.value = e, T.value = e;
293
- }), $(() => o.dataSource, (e) => {
294
- se(e);
295
- }, {
296
- immediate: !0
297
- }), $(() => a(C).loading, (e) => {
298
- var n;
299
- (n = o.onLoadingChange) == null || n.call(o, e);
300
- }), Y({
301
- submit: L,
302
- reset: D,
244
+ }), H(
245
+ () => o.dataSource,
246
+ (e) => {
247
+ de(e);
248
+ },
249
+ { immediate: !0 }
250
+ ), H(
251
+ () => a(v).loading,
252
+ (e) => {
253
+ var l;
254
+ (l = o.onLoadingChange) == null || l.call(o, e);
255
+ }
256
+ ), Y({
257
+ submit: D,
258
+ reset: K,
303
259
  refresh: ne,
304
- setSearchFormValues: he,
305
- getSearchFormValues: Ce,
260
+ setSearchFormValues: Ce,
261
+ getSearchFormValues: ye,
306
262
  getShowColumns: () => a(d),
307
263
  rowSelection: {
308
- selectedRows: l(() => y.value),
309
- clearAll: I
264
+ selectedRows: n(() => S.value),
265
+ clearAll: P
310
266
  }
311
- }), (e, n) => (s(), v("div", {
312
- class: b(re.value)
313
- }, [a(x)(e.dataSource) && e.searchForm !== !1 && _.value.length > 0 ? (s(), v("div", {
314
- key: 0,
315
- class: b(e.card ? a(F)("search-wrapper") : null),
316
- style: U(e.searchFormWrapperStyle)
317
- }, [be(a(Ie).SearchForm, c(e.searchForm || {}, {
318
- ref_key: "formRef",
319
- ref: B,
320
- "custom-reset": "",
321
- "submit-loading": !1,
322
- onSubmit: a(L),
323
- onReset: a(D)
324
- }), q({
325
- default: f(() => [(s(!0), v(M, null, P(_.value, (r) => (s(), u(E(r.renderNode.Comp), c({
326
- key: r.dataIndex,
327
- item: r,
328
- ref_for: !0
329
- }, r.fieldProps || {}, {
330
- span: r.span,
331
- "custom-render": r.renderNode.render
332
- }), null, 16, ["item", "span", "custom-render"]))), 128))]),
333
- _: 2
334
- }, [z.searchFormExtra ? {
335
- name: "extra",
336
- fn: f(() => [N(e.$slots, "searchFormExtra")]),
337
- key: "0"
338
- } : void 0]), 1040, ["onSubmit", "onReset"])], 6)) : R("", !0), H("div", {
339
- class: b([a(F)("table-wrapper"), e.card ? a(F)("table-wrapper-card") : null]),
340
- style: U(e.tableWrapperStyle)
341
- }, [H("div", {
342
- class: b(a(g)("header-wrapper"))
343
- }, [N(e.$slots, "title", {
344
- selectedRows: a(y),
345
- selectedRowKeys: a(S).selectedRowKeys,
346
- shownColumns: d.value,
347
- clearAll: I
348
- })], 2), (s(), u(a(Fe), c(a(Ae)(o), {
349
- ref_key: "tableRef",
350
- ref: h,
351
- key: a(te),
352
- data: a(C).records,
353
- "sort-config": {
354
- remote: A.value.length > 0
355
- },
356
- "filter-config": {
357
- remote: O.value.length > 0
358
- },
359
- loading: a(C).loading,
360
- "row-config": {
361
- isHover: !0,
362
- keyField: o.rowKey
363
- },
364
- size: k.value,
365
- onSortChange: a(ie),
366
- onFilterChange: a(ue),
367
- onCheckboxChange: j,
368
- onCheckboxAll: j,
369
- onRadioChange: me
370
- }), q({
371
- default: f(() => [o.expandable ? (s(), u(a(G), c({
372
- key: 0
373
- }, a(Oe)(e.expandable), {
374
- fixed: K.value
375
- }), {
376
- content: f((r) => [(s(), u(E(o.expandable.renderContent(r))))]),
377
- _: 1
378
- }, 16, ["fixed"])) : R("", !0), o.rowSelection ? (s(), u(a(G), c({
379
- key: 1
380
- }, a(Le)(a(S)), {
381
- fixed: K.value
382
- }), null, 16, ["fixed"])) : R("", !0), (s(!0), v(M, null, P(a(oe), (r) => (s(), u(E(r), {
383
- key: r.props.colId
384
- }))), 128))]),
385
- _: 2
386
- }, [P(a(Be)(z, ["searchFormExtra"]), (r, t) => ({
387
- name: t,
388
- fn: f((i) => [N(e.$slots, t, Re(xe(i || {})))])
389
- }))]), 1040, ["data", "sort-config", "filter-config", "loading", "row-config", "size", "onSortChange", "onFilterChange"])), e.pagination !== !1 ? (s(), u(a(Ve), c({
390
- key: 0,
391
- class: a(g)("pagination")
392
- }, a(le).pagination, {
393
- onChange: a(ce)
394
- }), null, 16, ["class", "onChange"])) : R("", !0)], 6)], 2));
267
+ }), (e, l) => (s(), R("div", {
268
+ class: f(le.value)
269
+ }, [
270
+ a(k)(e.dataSource) && e.searchForm !== !1 && A.value.length > 0 ? (s(), R("div", {
271
+ key: 0,
272
+ class: f(e.card ? a(F)("search-wrapper") : null),
273
+ style: q(e.searchFormWrapperStyle)
274
+ }, [
275
+ Re(a(Pe).SearchForm, m(e.searchForm || {}, {
276
+ ref_key: "formRef",
277
+ ref: I,
278
+ "custom-reset": "",
279
+ "submit-loading": !1,
280
+ onSubmit: a(D),
281
+ onReset: a(K)
282
+ }), U({
283
+ default: C(() => [
284
+ (s(!0), R(M, null, E(A.value, (t) => (s(), c(N(t.renderNode.Comp), m({
285
+ key: t.dataIndex,
286
+ item: t,
287
+ ref_for: !0
288
+ }, t.fieldProps || {}, {
289
+ span: t.span,
290
+ "custom-render": t.renderNode.render
291
+ }), null, 16, ["item", "span", "custom-render"]))), 128))
292
+ ]),
293
+ _: 2
294
+ }, [
295
+ _.searchFormExtra ? {
296
+ name: "extra",
297
+ fn: C(() => [
298
+ z(e.$slots, "searchFormExtra")
299
+ ]),
300
+ key: "0"
301
+ } : void 0
302
+ ]), 1040, ["onSubmit", "onReset"])
303
+ ], 6)) : h("", !0),
304
+ x("div", {
305
+ class: f([a(F)("table-wrapper"), e.card ? a(F)("table-wrapper-card") : null]),
306
+ style: q(e.tableWrapperStyle)
307
+ }, [
308
+ x("div", {
309
+ class: f(a(i)("header-wrapper"))
310
+ }, [
311
+ z(e.$slots, "title", {
312
+ selectedRows: a(S),
313
+ selectedRowKeys: a(w).selectedRowKeys,
314
+ shownColumns: d.value,
315
+ clearAll: P
316
+ })
317
+ ], 2),
318
+ x("div", {
319
+ class: f(a(i)("vxe-wrapper"))
320
+ }, [
321
+ (s(), c(a(Fe), m(a(Oe)(o), {
322
+ ref_key: "tableRef",
323
+ ref: p,
324
+ key: a(re),
325
+ data: a(v).records,
326
+ "sort-config": { remote: O.value.length > 0 },
327
+ "filter-config": { remote: L.value.length > 0 },
328
+ loading: a(v).loading,
329
+ "row-config": {
330
+ isHover: !0,
331
+ keyField: o.rowKey
332
+ },
333
+ size: B.value,
334
+ onSortChange: a(ue),
335
+ onFilterChange: a(ce),
336
+ onCheckboxChange: j,
337
+ onCheckboxAll: j,
338
+ onRadioChange: ge
339
+ }), U({
340
+ default: C(() => [
341
+ o.expandable ? (s(), c(a(G), m({ key: 0 }, a(Le)(e.expandable), { fixed: $.value }), {
342
+ content: C((t) => [
343
+ (s(), c(N(o.expandable.renderContent(t))))
344
+ ]),
345
+ _: 1
346
+ }, 16, ["fixed"])) : h("", !0),
347
+ o.rowSelection ? (s(), c(a(G), m({ key: 1 }, a(De)(a(w)), { fixed: $.value }), null, 16, ["fixed"])) : h("", !0),
348
+ (s(!0), R(M, null, E(a(oe), (t) => (s(), c(N(t), {
349
+ key: t.props.colId
350
+ }))), 128))
351
+ ]),
352
+ _: 2
353
+ }, [
354
+ E(a(Ie)(_, ["searchFormExtra"]), (t, r) => ({
355
+ name: r,
356
+ fn: C((u) => [
357
+ z(e.$slots, r, xe(ke(u || {})))
358
+ ])
359
+ }))
360
+ ]), 1040, ["data", "sort-config", "filter-config", "loading", "row-config", "size", "onSortChange", "onFilterChange"]))
361
+ ], 2),
362
+ x("div", {
363
+ class: f(a(i)("pagination-wrapper"))
364
+ }, [
365
+ e.sticky ? (s(), c(a(Ge), {
366
+ key: 0,
367
+ direction: "horizontal",
368
+ "scroll-container": te.value
369
+ }, null, 8, ["scroll-container"])) : h("", !0),
370
+ e.pagination !== !1 ? (s(), c(a(Ve), m({
371
+ key: 1,
372
+ class: a(i)("pagination")
373
+ }, a(se).pagination, { onChange: a(pe) }), null, 16, ["class", "onChange"])) : h("", !0)
374
+ ], 2)
375
+ ], 6)
376
+ ], 2));
395
377
  }
396
378
  });
397
379
  export {
398
- ga as default
380
+ va as default
399
381
  };