@aplus-frontend/ui 7.12.0 → 7.12.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.
- package/es/src/ag-grid/editable/form-item.vue.mjs +1 -1
- package/es/src/ag-grid/index.vue.mjs +124 -122
- package/es/src/ap-form/drawer-form/index.vue.d.ts +4 -1
- package/es/src/ap-grid/index.vue.mjs +95 -93
- package/es/src/ap-table/ap-table.vue2.mjs +73 -71
- package/es/src/ap-table/context.d.ts +1 -0
- package/es/src/ap-table/context.mjs +7 -6
- package/es/src/ap-table/hooks/use-table-paging-ng.d.ts +1 -0
- package/es/src/ap-table/hooks/use-table-paging-ng.mjs +60 -59
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +117 -97
- package/es/src/business/ap-upload/apUpload.vue.d.ts +3 -3
- package/es/src/business/ap-upload/apUpload.vue.mjs +1 -1
- package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +13 -12
- package/es/src/config-provider/config-provider-props.d.ts +13 -1
- package/es/src/config-provider/config-provider.d.ts +28 -1
- package/es/src/config-provider/hooks/use-global-config.d.ts +13 -1
- package/es/src/config-provider/index.d.ts +46 -1
- package/es/src/utils/config-provider-preset.d.ts +7 -1
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/src/ag-grid/editable/form-item.vue.js +1 -1
- package/lib/src/ag-grid/index.vue.js +1 -1
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +4 -1
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/context.d.ts +1 -0
- package/lib/src/ap-table/context.js +1 -1
- package/lib/src/ap-table/hooks/use-table-paging-ng.d.ts +1 -0
- package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
- package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
- package/lib/src/business/ap-upload/apUpload.vue.d.ts +3 -3
- package/lib/src/business/ap-upload/apUpload.vue.js +1 -1
- package/lib/src/business/batch-input-group/popover-input/index.vue2.js +3 -2
- package/lib/src/config-provider/config-provider-props.d.ts +13 -1
- package/lib/src/config-provider/config-provider.d.ts +28 -1
- package/lib/src/config-provider/hooks/use-global-config.d.ts +13 -1
- package/lib/src/config-provider/index.d.ts +46 -1
- package/lib/src/utils/config-provider-preset.d.ts +7 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +5 -5
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Spin as
|
|
3
|
-
import { useToken as
|
|
4
|
-
import { isUndefined as b, isFunction as $, isArray as
|
|
5
|
-
import { VxeUI as le, VxeTable as
|
|
1
|
+
import { defineComponent as Ye, useSlots as Ze, getCurrentInstance as et, ref as y, computed as n, unref as t, toRef as tt, nextTick as ae, watch as E, createElementBlock as I, openBlock as s, normalizeStyle as L, normalizeClass as m, createCommentVNode as w, createElementVNode as S, createVNode as K, mergeProps as R, createSlots as V, withCtx as c, Fragment as re, renderList as O, createBlock as d, resolveDynamicComponent as B, renderSlot as D, normalizeProps as ot, guardReactiveProps as at } from "vue";
|
|
2
|
+
import { Spin as rt, Empty as ne, Pagination as nt } from "@aplus-frontend/antdv";
|
|
3
|
+
import { useToken as lt } from "@aplus-frontend/antdv/es/theme/internal";
|
|
4
|
+
import { isUndefined as b, isFunction as $, isArray as st, omit as it } from "lodash-unified";
|
|
5
|
+
import { VxeUI as le, VxeTable as dt, VxeColumn as se } from "vxe-table";
|
|
6
6
|
import "vxe-table/es/style.css";
|
|
7
|
-
import { noRenderAsFormItemValueList as
|
|
8
|
-
import { useProvideApTable as
|
|
9
|
-
import { useTablePaging as
|
|
10
|
-
import { getColumnOrder as ie, updateFormProps as
|
|
7
|
+
import { noRenderAsFormItemValueList as ut } from "../ap-table/constants.mjs";
|
|
8
|
+
import { useProvideApTable as ct } from "../ap-table/context.mjs";
|
|
9
|
+
import { useTablePaging as pt } from "../ap-table/hooks/use-table-paging-ng.mjs";
|
|
10
|
+
import { getColumnOrder as ie, updateFormProps as ft, getFieldProps as mt, getSearchFormItemRenderNode as gt, recursionApColumns as de } from "../ap-table/utils.mjs";
|
|
11
11
|
import "../config-provider/index.mjs";
|
|
12
12
|
import "../scroll-bar/index.mjs";
|
|
13
13
|
import "../utils/index.mjs";
|
|
14
|
-
import { getValidVNodeList as
|
|
15
|
-
import { useDevWarning as
|
|
16
|
-
import { ApForm as
|
|
17
|
-
import { DEFAULT_ROW_SELECTION_CONFIG as ue, sizeReverseMap as
|
|
18
|
-
import { useInnerParams as
|
|
19
|
-
import { useRenderColumns as
|
|
20
|
-
import
|
|
21
|
-
import { useTableStyle as
|
|
22
|
-
import
|
|
23
|
-
import { toVxeProps as
|
|
24
|
-
import { useNamespace as
|
|
14
|
+
import { getValidVNodeList as ht } from "../utils/slot.mjs";
|
|
15
|
+
import { useDevWarning as Ct } from "../utils/warning.mjs";
|
|
16
|
+
import { ApForm as vt } from "../ap-form/index.mjs";
|
|
17
|
+
import { DEFAULT_ROW_SELECTION_CONFIG as ue, sizeReverseMap as yt, sizeMap as wt, ROW_SELECTION_FIELD as St } from "./constants.mjs";
|
|
18
|
+
import { useInnerParams as Rt } from "./hooks/use-inner-params.mjs";
|
|
19
|
+
import { useRenderColumns as bt } from "./hooks/use-render-columns.mjs";
|
|
20
|
+
import xt from "./hooks/use-row-selection.mjs";
|
|
21
|
+
import { useTableStyle as kt } from "./hooks/use-table-style.mjs";
|
|
22
|
+
import Ft from "./style/index.mjs";
|
|
23
|
+
import { toVxeProps as Et, getRowExpandProps as It, getRowSelectionProps as Bt } from "./utils/table.mjs";
|
|
24
|
+
import { useNamespace as Pt } from "../config-provider/hooks/use-namespace.mjs";
|
|
25
25
|
import { useGlobalConfig as ce } from "../config-provider/hooks/use-global-config.mjs";
|
|
26
26
|
import { useLocale as Tt } from "../config-provider/hooks/use-locale.mjs";
|
|
27
27
|
import { isDef as Nt } from "../utils/is.mjs";
|
|
28
|
-
import
|
|
29
|
-
const
|
|
28
|
+
import At from "../scroll-bar/index.vue.mjs";
|
|
29
|
+
const uo = /* @__PURE__ */ Ye({
|
|
30
30
|
name: "ApGrid",
|
|
31
31
|
__name: "index",
|
|
32
32
|
props: {
|
|
@@ -120,17 +120,17 @@ const io = /* @__PURE__ */ Qe({
|
|
|
120
120
|
onReady: {}
|
|
121
121
|
},
|
|
122
122
|
setup(pe, { expose: fe }) {
|
|
123
|
-
const
|
|
124
|
-
x && !x.__VXE_PC_UI_INSTALLED__ && (x.use(le), x.__VXE_PC_UI_INSTALLED__ = !0),
|
|
123
|
+
const P = Ze(), o = pe, x = et()?.appContext.app;
|
|
124
|
+
x && !x.__VXE_PC_UI_INSTALLED__ && (x.use(le), x.__VXE_PC_UI_INSTALLED__ = !0), Ct("ApGrid")(
|
|
125
125
|
!1,
|
|
126
126
|
"breaking",
|
|
127
127
|
"AgGrid has been EOL, Please use AgGrid(https://aplus.aplnk.com/aplus-ui/components/ag-grid/) instead."
|
|
128
128
|
);
|
|
129
|
-
const { e: k, b: u, be: me } =
|
|
129
|
+
const { e: k, b: u, be: me } = Pt("ap-grid"), ge = Ft("ap-grid"), he = ce("valueTypeMap"), Ce = ce("apGrid"), i = y([]), W = y([]), l = y(), F = y(o.size), ve = kt(), [, ye] = lt(), { t: we } = Tt(), T = y(!0);
|
|
130
130
|
le.setConfig({
|
|
131
131
|
i18n: (e, a) => we(`ap.${e}`, a)
|
|
132
132
|
});
|
|
133
|
-
const { renderConfig: Se, updateSignal: Re } =
|
|
133
|
+
const { renderConfig: Se, updateSignal: Re } = bt(i);
|
|
134
134
|
let G = 0;
|
|
135
135
|
const C = n(() => {
|
|
136
136
|
let e = o.rowSelection || Ce.value?.rowSelection;
|
|
@@ -145,14 +145,14 @@ const io = /* @__PURE__ */ Qe({
|
|
|
145
145
|
".vxe-table--header-inner-wrapper"
|
|
146
146
|
);
|
|
147
147
|
}), M = n(() => (G++, o.columns?.filter(
|
|
148
|
-
(e) => !e.hideInSearch && e.dataIndex && (e.valueType || e.customRenderFormItem) && !
|
|
148
|
+
(e) => !e.hideInSearch && e.dataIndex && (e.valueType || e.customRenderFormItem) && !ut.includes(e.valueType)
|
|
149
149
|
)?.sort((e, a) => {
|
|
150
150
|
let r = ie(e.order);
|
|
151
151
|
return ie(a.order) - r;
|
|
152
152
|
})?.map((e) => {
|
|
153
|
-
const a =
|
|
153
|
+
const a = ft(
|
|
154
154
|
e,
|
|
155
|
-
|
|
155
|
+
mt(e.fieldProps, {})
|
|
156
156
|
), r = {
|
|
157
157
|
...e,
|
|
158
158
|
fieldProps: {
|
|
@@ -165,11 +165,11 @@ const io = /* @__PURE__ */ Qe({
|
|
|
165
165
|
},
|
|
166
166
|
renderNode: void 0
|
|
167
167
|
};
|
|
168
|
-
return r.renderNode =
|
|
168
|
+
return r.renderNode = gt(
|
|
169
169
|
r,
|
|
170
170
|
t(he)
|
|
171
171
|
), r;
|
|
172
|
-
}) || [])), xe = n(() => Nt(o.manual) ? o.manual :
|
|
172
|
+
}) || [])), xe = n(() => Nt(o.manual) ? o.manual : ht(P.searchFormExtra?.() || []).some((a) => a.type?.name === "ApView")), ke = n(() => [
|
|
173
173
|
u(),
|
|
174
174
|
o.card ? null : u("wrapper"),
|
|
175
175
|
o.adaptive ? u("adaptive") : null,
|
|
@@ -183,7 +183,7 @@ const io = /* @__PURE__ */ Qe({
|
|
|
183
183
|
return e.key || e.dataIndex;
|
|
184
184
|
}).filter(Boolean)), {
|
|
185
185
|
formRef: g,
|
|
186
|
-
submit:
|
|
186
|
+
submit: N,
|
|
187
187
|
reset: A,
|
|
188
188
|
refresh: q,
|
|
189
189
|
data: p,
|
|
@@ -192,10 +192,11 @@ const io = /* @__PURE__ */ Qe({
|
|
|
192
192
|
handleTableChangeOptional: Ee,
|
|
193
193
|
getPaging: Ie,
|
|
194
194
|
setPaging: Be,
|
|
195
|
-
submitWith: X
|
|
196
|
-
|
|
195
|
+
submitWith: X,
|
|
196
|
+
getLastParams: Pe
|
|
197
|
+
} = pt({
|
|
197
198
|
async request(e) {
|
|
198
|
-
if (C.value && !C.value.preserveSelectedRowKeys && b(o.dataSource) && !
|
|
199
|
+
if (C.value && !C.value.preserveSelectedRowKeys && b(o.dataSource) && !T.value && _(), T.value && (T.value = !1), !b(o.dataSource)) {
|
|
199
200
|
const r = e.pageSize * (e.current - 1);
|
|
200
201
|
return {
|
|
201
202
|
data: (o.pagination === !1 ? o.dataSource : o.dataSource.slice(r, r + e.pageSize)) || [],
|
|
@@ -211,23 +212,23 @@ const io = /* @__PURE__ */ Qe({
|
|
|
211
212
|
namespace: "ap-grid",
|
|
212
213
|
filterFields: H,
|
|
213
214
|
sortFields: j,
|
|
214
|
-
params:
|
|
215
|
+
params: tt(o, "params"),
|
|
215
216
|
defaultData: o.defaultData,
|
|
216
217
|
manual: t(xe),
|
|
217
218
|
formatParams: o.beforeSearchSubmit,
|
|
218
219
|
pagination: o.pagination,
|
|
219
|
-
onClickReset:
|
|
220
|
-
onAfterRequest:
|
|
221
|
-
}), { sortChangeEvent: Te, filterChangeEvent: Ne, paginationChangeEvent:
|
|
222
|
-
|
|
220
|
+
onClickReset: je,
|
|
221
|
+
onAfterRequest: He
|
|
222
|
+
}), { sortChangeEvent: Te, filterChangeEvent: Ne, paginationChangeEvent: Ae } = Rt(Ee);
|
|
223
|
+
ct({
|
|
223
224
|
columns: n(() => i.value),
|
|
224
225
|
columnsBackup: n(() => W.value),
|
|
225
|
-
size: n(() =>
|
|
226
|
+
size: n(() => wt[F.value]),
|
|
226
227
|
updateColumns(e) {
|
|
227
228
|
i.value = e, o.onShownColumnsChange?.(e);
|
|
228
229
|
},
|
|
229
230
|
updateSize(e) {
|
|
230
|
-
F.value =
|
|
231
|
+
F.value = yt[e];
|
|
231
232
|
},
|
|
232
233
|
renderConfig: n(() => ({
|
|
233
234
|
className: me("table-header", "title"),
|
|
@@ -236,25 +237,26 @@ const io = /* @__PURE__ */ Qe({
|
|
|
236
237
|
dataSource: n(() => t(p).records),
|
|
237
238
|
getSearchFormValues: Q,
|
|
238
239
|
setSearchFormValues: J,
|
|
239
|
-
submit:
|
|
240
|
+
submit: N,
|
|
240
241
|
submitWith: X,
|
|
241
242
|
reset: A,
|
|
242
243
|
refresh: q,
|
|
243
244
|
getSearchFormSorterItems: Y,
|
|
244
245
|
setSearchFormSorterItems: Z,
|
|
245
|
-
resetSearchFormSorterItems: ee
|
|
246
|
+
resetSearchFormSorterItems: ee,
|
|
247
|
+
getLastParams: Pe
|
|
246
248
|
});
|
|
247
|
-
const
|
|
249
|
+
const ze = n(
|
|
248
250
|
() => i.value.some(
|
|
249
251
|
(e) => e.fixed === "left" || e.fixed === !0
|
|
250
252
|
) ? "left" : void 0
|
|
251
|
-
), ze = n(
|
|
252
|
-
() => b(o.loading) ? p.loading : o.loading
|
|
253
253
|
), _e = n(
|
|
254
|
+
() => b(o.loading) ? p.loading : o.loading
|
|
255
|
+
), Le = n(
|
|
254
256
|
() => b(o.dataSource) ? p.records : o.dataSource
|
|
255
|
-
), { selectedRows: z, rowSelection: h, ...v } =
|
|
257
|
+
), { selectedRows: z, rowSelection: h, ...v } = xt({
|
|
256
258
|
...C.value,
|
|
257
|
-
dataSource:
|
|
259
|
+
dataSource: Le,
|
|
258
260
|
rowKey: o.rowKey
|
|
259
261
|
}), Ke = ({
|
|
260
262
|
checked: e
|
|
@@ -265,7 +267,7 @@ const io = /* @__PURE__ */ Qe({
|
|
|
265
267
|
a.getCheckboxRecords(),
|
|
266
268
|
a.getCheckboxReserveRecords()
|
|
267
269
|
);
|
|
268
|
-
},
|
|
270
|
+
}, Ve = ({
|
|
269
271
|
checked: e
|
|
270
272
|
}) => {
|
|
271
273
|
const a = l.value;
|
|
@@ -273,22 +275,22 @@ const io = /* @__PURE__ */ Qe({
|
|
|
273
275
|
...a.getCheckboxReserveRecords(),
|
|
274
276
|
...a.getCheckboxRecords()
|
|
275
277
|
]);
|
|
276
|
-
},
|
|
278
|
+
}, Oe = () => {
|
|
277
279
|
const e = l.value;
|
|
278
280
|
e && v.selectRangeChange(e.getCheckboxRecords(), [
|
|
279
281
|
...e.getCheckboxReserveRecords(),
|
|
280
282
|
...e.getCheckboxRecords()
|
|
281
283
|
]);
|
|
282
|
-
},
|
|
284
|
+
}, De = () => {
|
|
283
285
|
const e = l.value;
|
|
284
286
|
e && (z.value = [e.getRadioRecord()]);
|
|
285
|
-
},
|
|
287
|
+
}, $e = ({
|
|
286
288
|
row: e
|
|
287
289
|
}) => {
|
|
288
290
|
const a = o.rowHighlightable;
|
|
289
291
|
$(a) && a(e);
|
|
290
292
|
};
|
|
291
|
-
function
|
|
293
|
+
function We() {
|
|
292
294
|
return o.columns?.filter((e) => !e.hideInTable) || [];
|
|
293
295
|
}
|
|
294
296
|
function J(e) {
|
|
@@ -312,17 +314,17 @@ const io = /* @__PURE__ */ Qe({
|
|
|
312
314
|
const e = l.value;
|
|
313
315
|
e && (h.value.type === "radio" ? (e.clearRadioRow(), e.clearRadioReserve()) : (e.clearCheckboxRow(), e.clearCheckboxReserve()));
|
|
314
316
|
}
|
|
315
|
-
function
|
|
317
|
+
function Ge(e) {
|
|
316
318
|
$(o.rowKey) || (v.selectMultiByKeys(e), te());
|
|
317
319
|
}
|
|
318
|
-
function
|
|
320
|
+
function Me(e) {
|
|
319
321
|
const a = l.value;
|
|
320
322
|
if (!a)
|
|
321
323
|
return;
|
|
322
324
|
const r = String(e[o.rowKey]), f = a.getRowById(r);
|
|
323
325
|
a.setCurrentRow(f);
|
|
324
326
|
}
|
|
325
|
-
function
|
|
327
|
+
function je() {
|
|
326
328
|
const e = l.value;
|
|
327
329
|
e && (e.clearSort(), e.clearFilter());
|
|
328
330
|
}
|
|
@@ -334,30 +336,30 @@ const io = /* @__PURE__ */ Qe({
|
|
|
334
336
|
);
|
|
335
337
|
});
|
|
336
338
|
}
|
|
337
|
-
function
|
|
339
|
+
function He(e) {
|
|
338
340
|
te(), o.onReady && ae(() => {
|
|
339
341
|
o.onReady(e);
|
|
340
342
|
});
|
|
341
343
|
}
|
|
342
|
-
async function
|
|
344
|
+
async function qe(e, a) {
|
|
343
345
|
const r = p.records[e];
|
|
344
346
|
if (r)
|
|
345
347
|
return l.value?.scrollToRow(r, a);
|
|
346
348
|
}
|
|
347
|
-
const
|
|
348
|
-
async function
|
|
349
|
+
const Ue = (e) => $(o.rowKey) ? o.rowKey(e) : e[o.rowKey];
|
|
350
|
+
async function Xe(e, a = !0) {
|
|
349
351
|
const r = l.value;
|
|
350
352
|
if (!r)
|
|
351
353
|
return;
|
|
352
|
-
const f =
|
|
353
|
-
(
|
|
354
|
+
const f = st(e) ? e : [e], Je = (r.getData() || []).filter(
|
|
355
|
+
(Qe) => f.includes(Ue(Qe))
|
|
354
356
|
);
|
|
355
|
-
r.setRowExpand(
|
|
357
|
+
r.setRowExpand(Je, a);
|
|
356
358
|
}
|
|
357
359
|
return E(
|
|
358
360
|
() => [o.columnResizable, o.columns],
|
|
359
361
|
() => {
|
|
360
|
-
const e =
|
|
362
|
+
const e = We();
|
|
361
363
|
i.value = e, o.onShownColumnsChange?.(e), W.value = e;
|
|
362
364
|
},
|
|
363
365
|
{
|
|
@@ -381,7 +383,7 @@ const io = /* @__PURE__ */ Qe({
|
|
|
381
383
|
F.value = e;
|
|
382
384
|
}
|
|
383
385
|
), fe({
|
|
384
|
-
submit:
|
|
386
|
+
submit: N,
|
|
385
387
|
reset: A,
|
|
386
388
|
refresh: q,
|
|
387
389
|
submitWith: X,
|
|
@@ -390,33 +392,33 @@ const io = /* @__PURE__ */ Qe({
|
|
|
390
392
|
getShowColumns: () => t(i),
|
|
391
393
|
rowSelection: {
|
|
392
394
|
selectedRows: n(() => z.value),
|
|
393
|
-
setSelectedRowKeys:
|
|
395
|
+
setSelectedRowKeys: Ge,
|
|
394
396
|
clearAll: _
|
|
395
397
|
},
|
|
396
|
-
scrollToRow:
|
|
398
|
+
scrollToRow: qe,
|
|
397
399
|
getDataSource: () => t(p.records),
|
|
398
|
-
setCurrentRow:
|
|
400
|
+
setCurrentRow: Me,
|
|
399
401
|
getPaging: Ie,
|
|
400
402
|
setPaging: Be,
|
|
401
403
|
getSearchFormSorterItems: Y,
|
|
402
404
|
setSearchFormSorterItems: Z,
|
|
403
405
|
resetSearchFormSorterItems: ee,
|
|
404
|
-
setRowExpand:
|
|
406
|
+
setRowExpand: Xe
|
|
405
407
|
}), (e, a) => (s(), I("div", {
|
|
406
408
|
class: m(ke.value),
|
|
407
|
-
style:
|
|
409
|
+
style: L(e.wrapperStyle)
|
|
408
410
|
}, [
|
|
409
411
|
t(b)(e.dataSource) && e.searchForm !== !1 && M.value.length > 0 ? (s(), I("div", {
|
|
410
412
|
key: 0,
|
|
411
413
|
class: m(e.card ? t(k)("search-wrapper") : null),
|
|
412
|
-
style:
|
|
414
|
+
style: L(e.searchFormWrapperStyle)
|
|
413
415
|
}, [
|
|
414
|
-
|
|
416
|
+
K(t(vt).SearchForm, R(e.searchForm || {}, {
|
|
415
417
|
ref_key: "formRef",
|
|
416
418
|
ref: g,
|
|
417
419
|
"custom-reset": "",
|
|
418
420
|
"submit-loading": t(U).loading,
|
|
419
|
-
onSubmit: t(
|
|
421
|
+
onSubmit: t(N),
|
|
420
422
|
onReset: t(A)
|
|
421
423
|
}), V({
|
|
422
424
|
default: c(() => [
|
|
@@ -426,7 +428,7 @@ const io = /* @__PURE__ */ Qe({
|
|
|
426
428
|
]),
|
|
427
429
|
_: 2
|
|
428
430
|
}, [
|
|
429
|
-
|
|
431
|
+
P.searchFormExtra ? {
|
|
430
432
|
name: "extra",
|
|
431
433
|
fn: c(() => [
|
|
432
434
|
D(e.$slots, "searchFormExtra")
|
|
@@ -437,7 +439,7 @@ const io = /* @__PURE__ */ Qe({
|
|
|
437
439
|
], 6)) : w("", !0),
|
|
438
440
|
S("div", {
|
|
439
441
|
class: m([t(k)("table-wrapper"), e.card ? t(k)("table-wrapper-card") : null]),
|
|
440
|
-
style:
|
|
442
|
+
style: L(e.tableWrapperStyle)
|
|
441
443
|
}, [
|
|
442
444
|
S("div", {
|
|
443
445
|
class: m(t(u)("header-wrapper"))
|
|
@@ -452,7 +454,7 @@ const io = /* @__PURE__ */ Qe({
|
|
|
452
454
|
S("div", {
|
|
453
455
|
class: m(t(u)("vxe-wrapper"))
|
|
454
456
|
}, [
|
|
455
|
-
(s(), d(t(
|
|
457
|
+
(s(), d(t(dt), R(t(Et)(o, C.value), {
|
|
456
458
|
ref_key: "tableRef",
|
|
457
459
|
ref: l,
|
|
458
460
|
key: t(Re),
|
|
@@ -464,19 +466,19 @@ const io = /* @__PURE__ */ Qe({
|
|
|
464
466
|
"filter-config": {
|
|
465
467
|
remote: H.value.length > 0
|
|
466
468
|
},
|
|
467
|
-
loading:
|
|
469
|
+
loading: _e.value,
|
|
468
470
|
style: t(ve),
|
|
469
471
|
size: F.value,
|
|
470
472
|
onSortChange: t(Te),
|
|
471
473
|
onFilterChange: t(Ne),
|
|
472
474
|
onCheckboxChange: Ke,
|
|
473
|
-
onCheckboxRangeChange:
|
|
474
|
-
onCheckboxAll:
|
|
475
|
-
onRadioChange:
|
|
476
|
-
onCurrentRowChange:
|
|
475
|
+
onCheckboxRangeChange: Oe,
|
|
476
|
+
onCheckboxAll: Ve,
|
|
477
|
+
onRadioChange: De,
|
|
478
|
+
onCurrentRowChange: $e
|
|
477
479
|
}), V({
|
|
478
480
|
empty: c(() => [
|
|
479
|
-
|
|
481
|
+
K(t(ne), {
|
|
480
482
|
image: t(ne).PRESENTED_IMAGE_SIMPLE
|
|
481
483
|
}, null, 8, ["image"])
|
|
482
484
|
]),
|
|
@@ -484,11 +486,11 @@ const io = /* @__PURE__ */ Qe({
|
|
|
484
486
|
S("div", {
|
|
485
487
|
class: m(t(k)("table-loading-wrapper"))
|
|
486
488
|
}, [
|
|
487
|
-
|
|
489
|
+
K(t(rt))
|
|
488
490
|
], 2)
|
|
489
491
|
]),
|
|
490
492
|
default: c(() => [
|
|
491
|
-
o.expandable && i.value.length ? (s(), d(t(se), R({ key: 0 }, t(
|
|
493
|
+
o.expandable && i.value.length ? (s(), d(t(se), R({ key: 0 }, t(It)(e.expandable), { fixed: ze.value }), V({
|
|
492
494
|
content: c((r) => [
|
|
493
495
|
(s(), d(B(o.expandable.renderContent(r))))
|
|
494
496
|
]),
|
|
@@ -509,10 +511,10 @@ const io = /* @__PURE__ */ Qe({
|
|
|
509
511
|
]), 1040, ["fixed"])) : w("", !0),
|
|
510
512
|
C.value && i.value.length ? (s(), d(t(se), R(
|
|
511
513
|
{ key: 1 },
|
|
512
|
-
t(
|
|
514
|
+
t(Bt)(t(h), i.value, o.size),
|
|
513
515
|
{
|
|
514
516
|
resizable: !1,
|
|
515
|
-
field: t(
|
|
517
|
+
field: t(St)
|
|
516
518
|
}
|
|
517
519
|
), null, 16, ["field"])) : w("", !0),
|
|
518
520
|
(s(!0), I(re, null, O(t(Se), (r) => (s(), d(B(r), {
|
|
@@ -521,10 +523,10 @@ const io = /* @__PURE__ */ Qe({
|
|
|
521
523
|
]),
|
|
522
524
|
_: 2
|
|
523
525
|
}, [
|
|
524
|
-
O(t(
|
|
526
|
+
O(t(it)(P, ["searchFormExtra"]), (r, f) => ({
|
|
525
527
|
name: f,
|
|
526
528
|
fn: c((oe) => [
|
|
527
|
-
D(e.$slots, f,
|
|
529
|
+
D(e.$slots, f, ot(at(oe || {})))
|
|
528
530
|
])
|
|
529
531
|
}))
|
|
530
532
|
]), 1040, ["data", "sort-config", "filter-config", "loading", "style", "size", "onSortChange", "onFilterChange"]))
|
|
@@ -532,7 +534,7 @@ const io = /* @__PURE__ */ Qe({
|
|
|
532
534
|
S("div", {
|
|
533
535
|
class: m(t(u)("pagination-wrapper"))
|
|
534
536
|
}, [
|
|
535
|
-
e.sticky ? (s(), d(t(
|
|
537
|
+
e.sticky ? (s(), d(t(At), {
|
|
536
538
|
key: 0,
|
|
537
539
|
direction: "horizontal",
|
|
538
540
|
"scroll-container": be.value,
|
|
@@ -540,15 +542,15 @@ const io = /* @__PURE__ */ Qe({
|
|
|
540
542
|
"bar-color": "var(--scrollbar-thumb-color-base)",
|
|
541
543
|
"track-color": "var(--table-header-bg, #f2f6f9)"
|
|
542
544
|
}, null, 8, ["scroll-container"])) : w("", !0),
|
|
543
|
-
e.pagination !== !1 ? (s(), d(t(
|
|
545
|
+
e.pagination !== !1 ? (s(), d(t(nt), R({
|
|
544
546
|
key: 1,
|
|
545
547
|
class: t(u)("pagination")
|
|
546
|
-
}, t(U).pagination, { onChange: t(
|
|
548
|
+
}, t(U).pagination, { onChange: t(Ae) }), null, 16, ["class", "onChange"])) : w("", !0)
|
|
547
549
|
], 2)
|
|
548
550
|
], 6)
|
|
549
551
|
], 6));
|
|
550
552
|
}
|
|
551
553
|
});
|
|
552
554
|
export {
|
|
553
|
-
|
|
555
|
+
uo as default
|
|
554
556
|
};
|