@dazhicheng/ui 1.5.229 → 1.5.231
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/dist/components/tt-form/src/components/ExpandableArrow.vue.d.ts +2 -2
- package/dist/components/tt-form/src/components/ExpandableArrow.vue2.js +29 -23
- package/dist/components/tt-form/src/index.vue2.js +32 -29
- package/dist/components/tt-table/src/Table.vue.js +471 -393
- package/dist/components/tt-table/src/components/TableAction.vue.js +134 -105
- package/dist/components/tt-table/src/components/TableToobalTools.vue.js +49 -44
- package/dist/style.css +1 -1
- package/package.json +3 -3
|
@@ -1,190 +1,267 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useLoading as
|
|
1
|
+
import { defineComponent as Pt, useAttrs as Rt, useSlots as $t, ref as _, getCurrentInstance as Et, computed as T, provide as $e, reactive as Ot, toValue as K, toRaw as I, unref as t, watch as J, nextTick as B, onMounted as _t, onUnmounted as It, createElementBlock as y, openBlock as p, normalizeClass as A, createVNode as F, mergeProps as re, toHandlers as Dt, createSlots as Nt, withCtx as g, renderSlot as S, createBlock as ne, createCommentVNode as V, normalizeStyle as $, createElementVNode as P, normalizeProps as j, guardReactiveProps as X, Fragment as Ee, toDisplayString as M, renderList as se, withModifiers as zt, createTextVNode as le } from "vue";
|
|
2
|
+
import { useLoading as Bt } from "../../../hooks/useLoading.js";
|
|
3
3
|
import "../../../node_modules/.pnpm/vue-types@5.1.3_vue@3.5.21_typescript@5.9.3_/node_modules/vue-types/shim/index.modern.js";
|
|
4
|
-
import { useDesign as
|
|
5
|
-
import { kebabToCamelCase as
|
|
4
|
+
import { useDesign as Ft } from "../../../packages/hooks/src/useDesign.js";
|
|
5
|
+
import { kebabToCamelCase as Vt } from "../../../packages/utils/src/string.js";
|
|
6
6
|
import "axios";
|
|
7
|
-
import { ElScrollbar as
|
|
8
|
-
import { isBoolean as
|
|
9
|
-
import { extractResourceFromApi as
|
|
10
|
-
import { getDifference as
|
|
7
|
+
import { ElScrollbar as Oe } from "element-plus";
|
|
8
|
+
import { isBoolean as Ht, isString as Lt } from "../../../packages/utils/src/is.js";
|
|
9
|
+
import { extractResourceFromApi as Kt, generateTestId as _e } from "../../../packages/utils/src/testid-helper.js";
|
|
10
|
+
import { getDifference as At } from "../../../packages/utils/src/tool.js";
|
|
11
11
|
import "../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
|
|
12
12
|
import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
|
|
13
13
|
import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
|
|
14
14
|
import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
|
|
15
15
|
import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
|
|
16
|
-
import { checkVersion as
|
|
17
|
-
import { omit as
|
|
18
|
-
import { TtErrorTooltip as
|
|
19
|
-
import { useStore as
|
|
20
|
-
import { VxeUI as
|
|
21
|
-
import { VxeGrid as
|
|
22
|
-
import { tableProps as
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import { TtImage as
|
|
28
|
-
import { TtText as
|
|
29
|
-
import { RowContext as
|
|
30
|
-
import { basicTableEmits as
|
|
31
|
-
import { useCellArea as
|
|
32
|
-
import { useColumns as
|
|
33
|
-
import { useDataSource as
|
|
34
|
-
import { useLeftRightSlot as
|
|
35
|
-
import { usePagination as
|
|
36
|
-
import { useRowSelection as
|
|
37
|
-
import { createTableContext as
|
|
38
|
-
import { useTableEvents as
|
|
39
|
-
import { tableOtherProps as
|
|
40
|
-
import { TableApi as
|
|
41
|
-
const
|
|
16
|
+
import { checkVersion as jt } from "../../../packages/utils/src/check.js";
|
|
17
|
+
import { omit as G, cloneDeep as Mt } from "lodash-es";
|
|
18
|
+
import { TtErrorTooltip as Gt } from "../../tt-form-item-error-tooltip/index.js";
|
|
19
|
+
import { useStore as Ut } from "@tanstack/vue-store";
|
|
20
|
+
import { VxeUI as Wt, VxePager as qt } from "vxe-pc-ui";
|
|
21
|
+
import { VxeGrid as Yt } from "vxe-table";
|
|
22
|
+
import { tableProps as Jt } from "vxe-table/es/table/src/props";
|
|
23
|
+
import Xt from "xe-utils";
|
|
24
|
+
import Qt from "../../../assets/svg/paixu-jiangxu.svg.js";
|
|
25
|
+
import Zt from "../../../assets/svg/paixu-moren.svg.js";
|
|
26
|
+
import eo from "../../../assets/svg/paixu-shengxu.svg.js";
|
|
27
|
+
import { TtImage as Ie } from "../../tt-image/index.js";
|
|
28
|
+
import { TtText as to } from "../../tt-text/index.js";
|
|
29
|
+
import { RowContext as oo } from "./components/RowContext.js";
|
|
30
|
+
import { basicTableEmits as De } from "./emits.js";
|
|
31
|
+
import { useCellArea as ro } from "./hooks/useCellArea.js";
|
|
32
|
+
import { useColumns as no } from "./hooks/useColumns.js";
|
|
33
|
+
import { useDataSource as so } from "./hooks/useDataSource.js";
|
|
34
|
+
import { useLeftRightSlot as lo } from "./hooks/useLeftRightSlot.js";
|
|
35
|
+
import { usePagination as ao } from "./hooks/usePagination.js";
|
|
36
|
+
import { useRowSelection as io } from "./hooks/useRowSelection.js";
|
|
37
|
+
import { createTableContext as co } from "./hooks/useTableContext.js";
|
|
38
|
+
import { useTableEvents as uo } from "./hooks/useTableEvent.js";
|
|
39
|
+
import { tableOtherProps as fo, tableProps as Ne } from "./props.js";
|
|
40
|
+
import { TableApi as po } from "./utils/table-api.js";
|
|
41
|
+
const go = ["data-testid", "data-table-columns"], mo = ["onClick"], bo = {
|
|
42
42
|
class: "mr-4px flex-1 overflow-hidden"
|
|
43
|
-
},
|
|
43
|
+
}, ho = ["src"], yo = ["src"], So = ["src"], xo = {
|
|
44
44
|
style: {
|
|
45
45
|
color: "#009ffa"
|
|
46
46
|
}
|
|
47
|
-
},
|
|
47
|
+
}, vo = {
|
|
48
48
|
key: 0
|
|
49
|
-
},
|
|
49
|
+
}, Co = {
|
|
50
50
|
key: 0
|
|
51
|
-
},
|
|
51
|
+
}, U = 'button:not([disabled]):not([tabindex="-1"]),input:not([disabled]),select:not([disabled]),textarea:not([disabled])', cr = /* @__PURE__ */ Pt({
|
|
52
52
|
name: "TtTable",
|
|
53
53
|
__name: "Table",
|
|
54
54
|
props: {
|
|
55
|
-
...
|
|
56
|
-
...
|
|
57
|
-
...
|
|
55
|
+
...Jt,
|
|
56
|
+
...Ne,
|
|
57
|
+
...fo
|
|
58
58
|
},
|
|
59
|
-
emits: ["register", "fetch-success", "fetch-error", "selection-change", "update:modelValue", ...
|
|
60
|
-
setup(
|
|
61
|
-
expose:
|
|
62
|
-
emit:
|
|
59
|
+
emits: ["register", "fetch-success", "fetch-error", "selection-change", "update:modelValue", ...De],
|
|
60
|
+
setup(ze, {
|
|
61
|
+
expose: Be,
|
|
62
|
+
emit: Fe
|
|
63
63
|
}) {
|
|
64
|
-
var
|
|
65
|
-
const
|
|
66
|
-
prefixCls:
|
|
67
|
-
} =
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
64
|
+
var Re;
|
|
65
|
+
const v = ze, f = Fe, ae = Rt(), D = $t(), {
|
|
66
|
+
prefixCls: E
|
|
67
|
+
} = Ft("table"), ie = _(), Ve = _({}), k = _(null), b = _(), ce = _([]), ue = {};
|
|
68
|
+
function Q(e = k.value) {
|
|
69
|
+
const o = e == null ? void 0 : e.querySelector(".vxe-table");
|
|
70
|
+
return o ? Array.from(o.querySelectorAll(U)).filter((n) => {
|
|
71
|
+
const s = window.getComputedStyle(n);
|
|
72
|
+
return s.display !== "none" && s.visibility !== "hidden" && !!n.offsetParent;
|
|
73
|
+
}).filter((n, s, l) => {
|
|
74
|
+
const a = n.closest('[class*="table-action"]');
|
|
75
|
+
if (!a) return !0;
|
|
76
|
+
const c = a.getBoundingClientRect();
|
|
77
|
+
return !l.some((u) => {
|
|
78
|
+
const m = u.closest('[class*="table-action"]');
|
|
79
|
+
if (!m || m === a) return !1;
|
|
80
|
+
const w = m.getBoundingClientRect();
|
|
81
|
+
return Math.abs(w.top - c.top) <= 2 && w.left > c.left;
|
|
82
|
+
});
|
|
83
|
+
}).sort((n, s) => {
|
|
84
|
+
const l = n.closest(".vxe-body--column") || n, a = s.closest(".vxe-body--column") || s, c = l.getBoundingClientRect(), u = a.getBoundingClientRect();
|
|
85
|
+
return Math.abs(c.top - u.top) > 2 ? c.top - u.top : Math.abs(c.left - u.left) > 2 ? c.left - u.left : n.getBoundingClientRect().top - s.getBoundingClientRect().top;
|
|
86
|
+
}) : [];
|
|
87
|
+
}
|
|
88
|
+
function He(e) {
|
|
89
|
+
const o = k.value;
|
|
90
|
+
if (o)
|
|
91
|
+
return Array.from(document.querySelectorAll(U)).find((r) => {
|
|
92
|
+
const n = window.getComputedStyle(r);
|
|
93
|
+
if (n.display === "none" || n.visibility === "hidden" || !r.offsetParent || o.contains(r) || r.closest(".tt-table"))
|
|
94
|
+
return !1;
|
|
95
|
+
const s = o.compareDocumentPosition(r);
|
|
96
|
+
return e ? !!(s & Node.DOCUMENT_POSITION_FOLLOWING) : !!(s & Node.DOCUMENT_POSITION_PRECEDING);
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
function Le(e) {
|
|
100
|
+
const o = k.value;
|
|
101
|
+
if (!o) return;
|
|
102
|
+
const r = Array.from(document.querySelectorAll(".tt-table")), n = r.indexOf(o), s = r[n + (e ? 1 : -1)], l = s ? Q(s) : [];
|
|
103
|
+
if (!(!s || !l.length))
|
|
104
|
+
return e ? l[0] : l[l.length - 1];
|
|
105
|
+
}
|
|
106
|
+
function Ke() {
|
|
107
|
+
const e = k.value;
|
|
108
|
+
return e ? Array.from(e.querySelectorAll(U)).filter((o) => {
|
|
109
|
+
const r = window.getComputedStyle(o);
|
|
110
|
+
return !o.closest(".vxe-table") && r.display !== "none" && r.visibility !== "hidden" && !!o.offsetParent;
|
|
111
|
+
}) : [];
|
|
112
|
+
}
|
|
113
|
+
function de(e) {
|
|
114
|
+
if (e.key !== "Tab") return;
|
|
115
|
+
const o = e.target;
|
|
116
|
+
if (!(o instanceof HTMLElement)) return;
|
|
117
|
+
const r = Q(), n = o.closest(U), s = n ? r.indexOf(n) : -1;
|
|
118
|
+
if (s < 0) return;
|
|
119
|
+
const l = !e.shiftKey, a = He(l), c = Le(l), u = a && c ? a.compareDocumentPosition(c) & Node.DOCUMENT_POSITION_FOLLOWING ? a : c : a || c, m = r[s + (e.shiftKey ? -1 : 1)] || u;
|
|
120
|
+
m && (e.preventDefault(), e.stopPropagation(), B(() => {
|
|
121
|
+
m.focus();
|
|
122
|
+
}));
|
|
123
|
+
}
|
|
124
|
+
function fe(e) {
|
|
125
|
+
if (e.key !== "Tab") return;
|
|
126
|
+
const o = e.target, r = k.value;
|
|
127
|
+
if (!(o instanceof HTMLElement) || !r) return;
|
|
128
|
+
const n = o.closest(".tt-table");
|
|
129
|
+
if (n && n !== r) return;
|
|
130
|
+
if (r.contains(o)) {
|
|
131
|
+
de(e);
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
const s = Q(), l = Ke(), a = l.length ? l : s, c = e.shiftKey ? a[a.length - 1] : a[0];
|
|
135
|
+
if (!c) return;
|
|
136
|
+
const u = Array.from(document.querySelectorAll(U)).filter((h) => {
|
|
137
|
+
const Y = window.getComputedStyle(h);
|
|
138
|
+
return !h.closest('[class*="table-action"]') && Y.display !== "none" && Y.visibility !== "hidden" && !!h.offsetParent;
|
|
139
|
+
}), m = u.indexOf(o);
|
|
140
|
+
if (m < 0) return;
|
|
141
|
+
const w = u[m + (e.shiftKey ? -1 : 1)];
|
|
142
|
+
!w || !r.contains(w) || (e.preventDefault(), e.stopPropagation(), c.focus());
|
|
143
|
+
}
|
|
144
|
+
const pe = _({}), x = Et();
|
|
145
|
+
let i = v.tableApi;
|
|
146
|
+
if (!i) {
|
|
147
|
+
i = new po(v);
|
|
148
|
+
const e = i;
|
|
149
|
+
e.useStore = (o) => Ut(i.store, o), i = e;
|
|
73
150
|
}
|
|
74
|
-
const
|
|
75
|
-
|
|
76
|
-
const
|
|
77
|
-
emptyText:
|
|
78
|
-
noSearchText:
|
|
151
|
+
const H = (Re = i == null ? void 0 : i.useStore) == null ? void 0 : Re.call(i), Z = T(() => v.testId ? v.testId : v.api ? Kt(v.api) : "table"), Ae = T(() => _e(Z.value, "table"));
|
|
152
|
+
$e("tableIdContext", Z);
|
|
153
|
+
const R = Ot({
|
|
154
|
+
emptyText: K(H).emptyText,
|
|
155
|
+
noSearchText: K(H).noSearchText,
|
|
79
156
|
isFirstLoad: !0,
|
|
80
|
-
emptyImageStatus:
|
|
81
|
-
}),
|
|
157
|
+
emptyImageStatus: K(H).emptyImageStatus
|
|
158
|
+
}), ge = _({}), d = T(() => {
|
|
82
159
|
const {
|
|
83
160
|
toolTipErrorPlacement: e,
|
|
84
161
|
...o
|
|
85
|
-
} =
|
|
162
|
+
} = I(K(H)) || {};
|
|
86
163
|
return {
|
|
87
164
|
...o,
|
|
88
165
|
toolTipErrorPlacement: e
|
|
89
166
|
};
|
|
90
167
|
});
|
|
91
|
-
|
|
168
|
+
$e(`${E}-props`, d);
|
|
92
169
|
const {
|
|
93
170
|
getLoading: W,
|
|
94
|
-
setLoading:
|
|
95
|
-
} =
|
|
96
|
-
configRef:
|
|
97
|
-
getPaginationInfo:
|
|
98
|
-
getPagination:
|
|
99
|
-
setPagination:
|
|
100
|
-
handlePageChange:
|
|
101
|
-
} =
|
|
102
|
-
selectedKeys:
|
|
103
|
-
selectedRows:
|
|
104
|
-
getCheckboxSelectedKeys:
|
|
105
|
-
onCheckboxChange:
|
|
106
|
-
onCheckboxAll:
|
|
107
|
-
getSelectRowKeys:
|
|
108
|
-
getSelectRows:
|
|
109
|
-
clearSelectedRowKeys:
|
|
110
|
-
setSelectedRowKeys:
|
|
111
|
-
onCellAreaSelectionEndSetCheckbox:
|
|
112
|
-
onCheckboxRangeChange:
|
|
113
|
-
onRadioChange:
|
|
114
|
-
} =
|
|
115
|
-
handleLeftRightSlotInit:
|
|
116
|
-
handleLeftRightSlotScroll:
|
|
117
|
-
leftRightSlotRows:
|
|
171
|
+
setLoading: me
|
|
172
|
+
} = Bt(T(() => t(d).loading || !1)), {
|
|
173
|
+
configRef: L,
|
|
174
|
+
getPaginationInfo: N,
|
|
175
|
+
getPagination: je,
|
|
176
|
+
setPagination: ee,
|
|
177
|
+
handlePageChange: Me
|
|
178
|
+
} = ao(d, f), {
|
|
179
|
+
selectedKeys: te,
|
|
180
|
+
selectedRows: be,
|
|
181
|
+
getCheckboxSelectedKeys: Ge,
|
|
182
|
+
onCheckboxChange: Ue,
|
|
183
|
+
onCheckboxAll: We,
|
|
184
|
+
getSelectRowKeys: qe,
|
|
185
|
+
getSelectRows: Ye,
|
|
186
|
+
clearSelectedRowKeys: oe,
|
|
187
|
+
setSelectedRowKeys: Je,
|
|
188
|
+
onCellAreaSelectionEndSetCheckbox: Xe,
|
|
189
|
+
onCheckboxRangeChange: he,
|
|
190
|
+
onRadioChange: Qe
|
|
191
|
+
} = io(d, f, b), {
|
|
192
|
+
handleLeftRightSlotInit: Ze,
|
|
193
|
+
handleLeftRightSlotScroll: et,
|
|
194
|
+
leftRightSlotRows: ye,
|
|
118
195
|
tableBodyWrapHeight: z,
|
|
119
|
-
tableHeaderHight:
|
|
120
|
-
tableBodyScrollHeight:
|
|
121
|
-
tableBodyHeight:
|
|
122
|
-
leftSlotScrollbarRef:
|
|
123
|
-
rightSlotScrollbarRef:
|
|
124
|
-
tableBodyScrollTop:
|
|
125
|
-
} =
|
|
126
|
-
reload:
|
|
127
|
-
reloadFilter:
|
|
128
|
-
getDataSource:
|
|
129
|
-
dataSource:
|
|
130
|
-
isloaded:
|
|
131
|
-
} =
|
|
132
|
-
xGrid:
|
|
133
|
-
tableData:
|
|
134
|
-
paginationRef:
|
|
135
|
-
getPaginationInfo:
|
|
136
|
-
setLoading:
|
|
137
|
-
setPagination:
|
|
138
|
-
clearSelectedRowKeys:
|
|
139
|
-
getIsTableEvent:
|
|
140
|
-
},
|
|
141
|
-
titleSolts:
|
|
142
|
-
validSolts:
|
|
196
|
+
tableHeaderHight: Se,
|
|
197
|
+
tableBodyScrollHeight: xe,
|
|
198
|
+
tableBodyHeight: q,
|
|
199
|
+
leftSlotScrollbarRef: tt,
|
|
200
|
+
rightSlotScrollbarRef: ot,
|
|
201
|
+
tableBodyScrollTop: ve
|
|
202
|
+
} = lo(d, b, ce), {
|
|
203
|
+
reload: rt,
|
|
204
|
+
reloadFilter: Ce,
|
|
205
|
+
getDataSource: nt,
|
|
206
|
+
dataSource: st,
|
|
207
|
+
isloaded: lt
|
|
208
|
+
} = so(d, {
|
|
209
|
+
xGrid: b,
|
|
210
|
+
tableData: ce,
|
|
211
|
+
paginationRef: L,
|
|
212
|
+
getPaginationInfo: N,
|
|
213
|
+
setLoading: me,
|
|
214
|
+
setPagination: ee,
|
|
215
|
+
clearSelectedRowKeys: oe,
|
|
216
|
+
getIsTableEvent: i.getIsTableEvent
|
|
217
|
+
}, f), {
|
|
218
|
+
titleSolts: at,
|
|
219
|
+
validSolts: it,
|
|
143
220
|
// httpFieldSolts,
|
|
144
221
|
// httpFieldEditSolts,
|
|
145
|
-
setTableColumns:
|
|
146
|
-
getTableColumns:
|
|
222
|
+
setTableColumns: ct,
|
|
223
|
+
getTableColumns: we,
|
|
147
224
|
// setCacheColumns,
|
|
148
|
-
onResizableChange:
|
|
149
|
-
onColumnDragend:
|
|
150
|
-
} =
|
|
151
|
-
xGrid:
|
|
152
|
-
tableWidth:
|
|
153
|
-
},
|
|
225
|
+
onResizableChange: ut,
|
|
226
|
+
onColumnDragend: dt
|
|
227
|
+
} = no(d, {
|
|
228
|
+
xGrid: b,
|
|
229
|
+
tableWidth: T(() => t(k).offsetWidth)
|
|
230
|
+
}, f), C = T(() => {
|
|
154
231
|
const {
|
|
155
232
|
tableRowId: e,
|
|
156
233
|
checkboxConfig: o,
|
|
157
234
|
rowConfig: r,
|
|
158
|
-
columnConfig:
|
|
159
|
-
scrollY:
|
|
160
|
-
showToolbar:
|
|
161
|
-
toolbarConfig:
|
|
162
|
-
showPager:
|
|
163
|
-
autoHeight:
|
|
164
|
-
virtualYConfig:
|
|
165
|
-
expandConfig:
|
|
166
|
-
} = t(
|
|
167
|
-
return
|
|
168
|
-
slots:
|
|
169
|
-
tools:
|
|
170
|
-
buttons:
|
|
235
|
+
columnConfig: n,
|
|
236
|
+
scrollY: s = {},
|
|
237
|
+
showToolbar: l,
|
|
238
|
+
toolbarConfig: a = {},
|
|
239
|
+
showPager: c,
|
|
240
|
+
autoHeight: u,
|
|
241
|
+
virtualYConfig: m = {},
|
|
242
|
+
expandConfig: w = {}
|
|
243
|
+
} = t(d), h = {}, Y = G(t(d), ["data", "columns"]);
|
|
244
|
+
return l && (h.toolbarConfig = {
|
|
245
|
+
slots: D.toolbar_tools || D.toolbar_buttons ? {
|
|
246
|
+
tools: D.toolbar_tools ? "toolbar_tools" : void 0,
|
|
247
|
+
buttons: D.toolbar_buttons ? "toolbar_buttons" : void 0
|
|
171
248
|
} : void 0,
|
|
172
|
-
...
|
|
173
|
-
}),
|
|
249
|
+
...a
|
|
250
|
+
}), c || (h.pagerConfig = void 0), u && (h.height = "auto", h.autoResize = !0, h.syncResize = !0), jt(Wt.tableVersion, 4, 16) ? h.virtualYConfig = {
|
|
174
251
|
enabled: !0,
|
|
175
252
|
mode: "wheel",
|
|
176
|
-
...
|
|
177
|
-
} :
|
|
253
|
+
...m
|
|
254
|
+
} : h.scrollY = {
|
|
178
255
|
enabled: !0,
|
|
179
256
|
mode: "wheel",
|
|
180
|
-
...
|
|
257
|
+
...s
|
|
181
258
|
}, {
|
|
182
|
-
...
|
|
183
|
-
...
|
|
259
|
+
...Y,
|
|
260
|
+
...h,
|
|
184
261
|
columnConfig: {
|
|
185
262
|
useKey: !0,
|
|
186
263
|
resizable: !1,
|
|
187
|
-
...
|
|
264
|
+
...n
|
|
188
265
|
},
|
|
189
266
|
rowConfig: {
|
|
190
267
|
useKey: !0,
|
|
@@ -205,7 +282,7 @@ const no = ["data-testid", "data-table-columns"], ao = ["onClick"], io = {
|
|
|
205
282
|
padding: !0,
|
|
206
283
|
iconClose: "vxe-icon-caret-down",
|
|
207
284
|
iconOpen: "vxe-icon-caret-up",
|
|
208
|
-
...
|
|
285
|
+
...w
|
|
209
286
|
},
|
|
210
287
|
// data: unref(dataSource),
|
|
211
288
|
// height: unref(tableHeight),
|
|
@@ -213,85 +290,85 @@ const no = ["data-testid", "data-table-columns"], ao = ["onClick"], io = {
|
|
|
213
290
|
round: !0,
|
|
214
291
|
loading: !1
|
|
215
292
|
};
|
|
216
|
-
}),
|
|
217
|
-
onCellAreaSelectionEnd:
|
|
218
|
-
} =
|
|
219
|
-
onCellAreaSelectionEndSetCheckbox:
|
|
220
|
-
onCheckboxRangeChange:
|
|
221
|
-
}),
|
|
222
|
-
clearSelectedRowKeys:
|
|
293
|
+
}), ft = T(() => Ht(t(C).showHeaderOverflow) ? t(C).showHeaderOverflow : Lt(t(C).showHeaderOverflow) ? t(C).showHeaderOverflow === "tooltip" : !1), {
|
|
294
|
+
onCellAreaSelectionEnd: pt
|
|
295
|
+
} = ro(C, f, b, {
|
|
296
|
+
onCellAreaSelectionEndSetCheckbox: Xe,
|
|
297
|
+
onCheckboxRangeChange: he
|
|
298
|
+
}), Te = uo(b, R, f, i, d, {
|
|
299
|
+
clearSelectedRowKeys: oe
|
|
223
300
|
});
|
|
224
|
-
|
|
225
|
-
const r = Object.keys(
|
|
301
|
+
J(() => C.value, (e, o) => {
|
|
302
|
+
const r = Object.keys(Ne), n = At(e, o || {}, {
|
|
226
303
|
exclude: r
|
|
227
304
|
});
|
|
228
|
-
if (Object.keys(
|
|
229
|
-
const
|
|
230
|
-
...
|
|
231
|
-
...t(
|
|
232
|
-
},
|
|
233
|
-
|
|
305
|
+
if (Object.keys(n).length) {
|
|
306
|
+
const s = {
|
|
307
|
+
...ae,
|
|
308
|
+
...t(C)
|
|
309
|
+
}, l = G(s, [...r, "showFullscreen", "data", "columns"]);
|
|
310
|
+
pe.value = l, Te.setEmptyText(e.emptyText || "");
|
|
234
311
|
}
|
|
235
312
|
}, {
|
|
236
313
|
deep: !0,
|
|
237
314
|
immediate: !0
|
|
238
315
|
});
|
|
239
|
-
const
|
|
316
|
+
const ke = T(() => {
|
|
240
317
|
const {
|
|
241
318
|
emptyImageStyle: e
|
|
242
|
-
} =
|
|
319
|
+
} = K(H);
|
|
243
320
|
return {
|
|
244
321
|
...e
|
|
245
322
|
};
|
|
246
323
|
});
|
|
247
|
-
|
|
248
|
-
const o =
|
|
249
|
-
|
|
324
|
+
De.forEach((e) => {
|
|
325
|
+
const o = Xt.camelCase(e);
|
|
326
|
+
ue[o] = (...r) => f(e, ...r);
|
|
250
327
|
});
|
|
251
|
-
const
|
|
252
|
-
...
|
|
253
|
-
radioChange:
|
|
254
|
-
checkboxChange:
|
|
255
|
-
checkboxAll:
|
|
256
|
-
resizableChange:
|
|
257
|
-
cellAreaSelectionEnd:
|
|
258
|
-
scroll:
|
|
259
|
-
toggleRowExpand:
|
|
260
|
-
checkboxRangeChange:
|
|
261
|
-
columnDragend:
|
|
328
|
+
const gt = T(() => ({
|
|
329
|
+
...ue,
|
|
330
|
+
radioChange: Qe,
|
|
331
|
+
checkboxChange: Ue,
|
|
332
|
+
checkboxAll: We,
|
|
333
|
+
resizableChange: ut,
|
|
334
|
+
cellAreaSelectionEnd: pt,
|
|
335
|
+
scroll: yt,
|
|
336
|
+
toggleRowExpand: xt,
|
|
337
|
+
checkboxRangeChange: he,
|
|
338
|
+
columnDragend: dt,
|
|
262
339
|
// columnResizableChange: onColumnResizableChange,
|
|
263
|
-
scrollBoundary:
|
|
340
|
+
scrollBoundary: St,
|
|
264
341
|
editClosed: (e) => {
|
|
265
342
|
const {
|
|
266
343
|
fullData: o = []
|
|
267
344
|
} = e.$grid.getTableData(), {
|
|
268
345
|
isDataCloneDeep: r
|
|
269
|
-
} = t(
|
|
270
|
-
|
|
346
|
+
} = t(d);
|
|
347
|
+
f("update:modelValue", r ? Mt(o) : o), f("edit-closed", e);
|
|
271
348
|
}
|
|
272
349
|
}));
|
|
273
|
-
async function
|
|
274
|
-
|
|
350
|
+
async function mt(e) {
|
|
351
|
+
i.setState(e);
|
|
275
352
|
}
|
|
276
|
-
function
|
|
277
|
-
|
|
353
|
+
function Pe() {
|
|
354
|
+
B(() => {
|
|
278
355
|
var e;
|
|
279
|
-
(e = t(
|
|
356
|
+
(e = t(b)) == null || e.recalculate(!0);
|
|
280
357
|
});
|
|
281
358
|
}
|
|
282
|
-
function
|
|
283
|
-
e && (
|
|
359
|
+
function bt(e, o) {
|
|
360
|
+
e && (ge.value[o] = e);
|
|
284
361
|
}
|
|
285
|
-
async function
|
|
362
|
+
async function ht(e) {
|
|
286
363
|
if (!e.sortable) {
|
|
287
|
-
|
|
288
|
-
order:
|
|
289
|
-
originOrder:
|
|
290
|
-
...
|
|
364
|
+
f("sort-change", {
|
|
365
|
+
order: I(e).order || "desc",
|
|
366
|
+
originOrder: I(e).order,
|
|
367
|
+
...G(I(e), ["order"])
|
|
291
368
|
});
|
|
292
369
|
return;
|
|
293
370
|
}
|
|
294
|
-
const o =
|
|
371
|
+
const o = b.value;
|
|
295
372
|
switch (e.order) {
|
|
296
373
|
case "desc":
|
|
297
374
|
await (o == null ? void 0 : o.sort(e.field, "asc"));
|
|
@@ -302,333 +379,334 @@ const no = ["data-testid", "data-table-columns"], ao = ["onClick"], io = {
|
|
|
302
379
|
default:
|
|
303
380
|
await (o == null ? void 0 : o.sort(e.field, "desc"));
|
|
304
381
|
}
|
|
305
|
-
|
|
306
|
-
order:
|
|
307
|
-
originOrder:
|
|
308
|
-
...
|
|
309
|
-
}),
|
|
382
|
+
f("sort-change", {
|
|
383
|
+
order: I(e).order || "desc",
|
|
384
|
+
originOrder: I(e).order,
|
|
385
|
+
...G(I(e), ["order"])
|
|
386
|
+
}), Ce();
|
|
310
387
|
}
|
|
311
|
-
function
|
|
312
|
-
|
|
388
|
+
function yt(e) {
|
|
389
|
+
f("scroll", e), ((e == null ? void 0 : e.type) === "body" || (e == null ? void 0 : e.type) === "table") && et(e == null ? void 0 : e.scrollTop);
|
|
313
390
|
}
|
|
314
|
-
function
|
|
315
|
-
var
|
|
316
|
-
|
|
391
|
+
function St(e) {
|
|
392
|
+
var a;
|
|
393
|
+
f("scroll-boundary", e);
|
|
317
394
|
const {
|
|
318
395
|
isScrollFetch: o
|
|
319
|
-
} = t(
|
|
396
|
+
} = t(d), {
|
|
320
397
|
isBottom: r
|
|
321
398
|
} = e;
|
|
322
399
|
if (!o || !r || W.value) return;
|
|
323
400
|
const {
|
|
324
|
-
currentPage:
|
|
325
|
-
total:
|
|
326
|
-
} = t(
|
|
327
|
-
fullData:
|
|
328
|
-
} = ((
|
|
329
|
-
|
|
330
|
-
currentPage:
|
|
401
|
+
currentPage: n = 0,
|
|
402
|
+
total: s = 0
|
|
403
|
+
} = t(N), {
|
|
404
|
+
fullData: l = []
|
|
405
|
+
} = ((a = t(b)) == null ? void 0 : a.getTableData()) || {};
|
|
406
|
+
s <= l.length || ee({
|
|
407
|
+
currentPage: n + 1
|
|
331
408
|
});
|
|
332
409
|
}
|
|
333
|
-
function
|
|
334
|
-
|
|
335
|
-
|
|
410
|
+
function xt(e) {
|
|
411
|
+
f("toggle-row-expand", e), setTimeout(() => {
|
|
412
|
+
Ze(!1);
|
|
336
413
|
}, 30);
|
|
337
414
|
}
|
|
338
|
-
const
|
|
339
|
-
var
|
|
415
|
+
const vt = (e) => {
|
|
416
|
+
var s;
|
|
340
417
|
const {
|
|
341
418
|
visible: o,
|
|
342
419
|
column: r
|
|
343
420
|
} = e, {
|
|
344
|
-
filterExclude:
|
|
421
|
+
filterExclude: n = []
|
|
345
422
|
} = r.filterRender.props || {};
|
|
346
|
-
o && ((
|
|
347
|
-
var
|
|
348
|
-
const
|
|
349
|
-
(
|
|
423
|
+
o && ((s = t(ie)) == null || s.hidePopper(), B(() => {
|
|
424
|
+
var c, u, m, w;
|
|
425
|
+
const l = (c = e == null ? void 0 : e.$event) == null ? void 0 : c.target, a = (m = (u = l == null ? void 0 : l.parentNode) == null ? void 0 : u.parentNode) == null ? void 0 : m.parentNode;
|
|
426
|
+
(w = t(ie)) == null || w.showPopper(a), Object.assign(Ve.value, {
|
|
350
427
|
column: e.column,
|
|
351
428
|
$event: e.$event,
|
|
352
429
|
$table: e.$table,
|
|
353
430
|
$grid: e.$grid,
|
|
354
|
-
filterExclude:
|
|
431
|
+
filterExclude: n
|
|
355
432
|
});
|
|
356
|
-
})),
|
|
433
|
+
})), f("filter-visible", e);
|
|
357
434
|
};
|
|
358
|
-
|
|
435
|
+
B(() => {
|
|
359
436
|
const {
|
|
360
437
|
autoHeight: e
|
|
361
|
-
} = t(
|
|
362
|
-
e &&
|
|
438
|
+
} = t(d);
|
|
439
|
+
e && Pe();
|
|
363
440
|
});
|
|
364
|
-
const
|
|
365
|
-
reload:
|
|
366
|
-
setProps:
|
|
367
|
-
setTableColumns:
|
|
368
|
-
setPagination:
|
|
369
|
-
setLoading:
|
|
370
|
-
redoHeight:
|
|
371
|
-
getDataSource:
|
|
372
|
-
getPagination:
|
|
373
|
-
getSelectRowKeys:
|
|
374
|
-
getSelectRows:
|
|
375
|
-
getTableInstance: () => t(
|
|
441
|
+
const O = {
|
|
442
|
+
reload: rt,
|
|
443
|
+
setProps: mt,
|
|
444
|
+
setTableColumns: ct,
|
|
445
|
+
setPagination: ee,
|
|
446
|
+
setLoading: me,
|
|
447
|
+
redoHeight: Pe,
|
|
448
|
+
getDataSource: nt,
|
|
449
|
+
getPagination: je,
|
|
450
|
+
getSelectRowKeys: qe,
|
|
451
|
+
getSelectRows: Ye,
|
|
452
|
+
getTableInstance: () => t(b),
|
|
376
453
|
getLoading: W,
|
|
377
|
-
getTableColumns:
|
|
378
|
-
setSelectedRowKeys:
|
|
379
|
-
clearSelectedRowKeys:
|
|
380
|
-
selectedKeys:
|
|
381
|
-
selectedRows:
|
|
382
|
-
...
|
|
454
|
+
getTableColumns: we,
|
|
455
|
+
setSelectedRowKeys: Je,
|
|
456
|
+
clearSelectedRowKeys: oe,
|
|
457
|
+
selectedKeys: te,
|
|
458
|
+
selectedRows: be,
|
|
459
|
+
...Te
|
|
383
460
|
};
|
|
384
|
-
|
|
385
|
-
...
|
|
386
|
-
wrapRef:
|
|
387
|
-
getBindValues:
|
|
388
|
-
}),
|
|
389
|
-
...
|
|
390
|
-
xGrid:
|
|
391
|
-
}),
|
|
392
|
-
|
|
461
|
+
co({
|
|
462
|
+
...O,
|
|
463
|
+
wrapRef: k,
|
|
464
|
+
getBindValues: C
|
|
465
|
+
}), Be({
|
|
466
|
+
...O,
|
|
467
|
+
xGrid: b
|
|
468
|
+
}), x && f("register", O, `${x == null ? void 0 : x.uid}`), J(() => W.value, (e) => {
|
|
469
|
+
i.setProxyState({
|
|
393
470
|
loading: e
|
|
394
|
-
}),
|
|
471
|
+
}), B(() => {
|
|
395
472
|
var o;
|
|
396
|
-
|
|
473
|
+
x && ((o = O.emitLoading) == null || o.call(O, e, x == null ? void 0 : x.uid));
|
|
397
474
|
});
|
|
398
475
|
});
|
|
399
|
-
function
|
|
476
|
+
function Ct(e) {
|
|
400
477
|
return Object.fromEntries(Object.entries(e).filter(([o]) => !o.startsWith("on")));
|
|
401
478
|
}
|
|
402
|
-
function
|
|
479
|
+
function wt(e, o) {
|
|
403
480
|
return Object.fromEntries(Object.keys(e).map((r) => [r, o[r]]));
|
|
404
481
|
}
|
|
405
|
-
function
|
|
482
|
+
function Tt(e) {
|
|
406
483
|
return e.column.slots.title;
|
|
407
484
|
}
|
|
408
|
-
|
|
409
|
-
var
|
|
410
|
-
const e = {}, o = ((
|
|
411
|
-
for (const [
|
|
412
|
-
const
|
|
413
|
-
r.has(
|
|
485
|
+
J(() => G(v, ["tableApi", "formApi"]), () => {
|
|
486
|
+
var l;
|
|
487
|
+
const e = {}, o = ((l = x == null ? void 0 : x.vnode) == null ? void 0 : l.props) || {}, r = new Set(Object.keys(v));
|
|
488
|
+
for (const [a, c] of Object.entries(o)) {
|
|
489
|
+
const u = Vt(a);
|
|
490
|
+
r.has(u) && (e[u] = c);
|
|
414
491
|
}
|
|
415
|
-
const
|
|
416
|
-
|
|
492
|
+
const n = Ct(e), s = wt(n, v);
|
|
493
|
+
i.setState(s);
|
|
417
494
|
}, {
|
|
418
495
|
deep: !0
|
|
419
|
-
}),
|
|
420
|
-
|
|
496
|
+
}), J(() => te.value, (e) => {
|
|
497
|
+
i.setProxyState({
|
|
421
498
|
selectedKeys: e,
|
|
422
|
-
selectedRows: t(
|
|
499
|
+
selectedRows: t(be)
|
|
423
500
|
});
|
|
424
501
|
});
|
|
425
|
-
const
|
|
426
|
-
return
|
|
502
|
+
const kt = T(() => _e(Z.value, "table-toolbar"));
|
|
503
|
+
return _t(() => {
|
|
427
504
|
var e;
|
|
428
|
-
|
|
429
|
-
modelValue:
|
|
430
|
-
}), (e =
|
|
505
|
+
i.setState({
|
|
506
|
+
modelValue: v.modelValue
|
|
507
|
+
}), (e = i.mount) == null || e.call(i, b.value, O), document.addEventListener("keydown", fe, !0), B(() => {
|
|
431
508
|
var r;
|
|
432
|
-
const o = (r =
|
|
433
|
-
o && o.setAttribute("data-testid", t(
|
|
509
|
+
const o = (r = k.value) == null ? void 0 : r.querySelector(".vxe-toolbar");
|
|
510
|
+
o && o.setAttribute("data-testid", t(kt));
|
|
434
511
|
});
|
|
435
|
-
}),
|
|
512
|
+
}), It(() => {
|
|
436
513
|
var e;
|
|
437
|
-
(e =
|
|
438
|
-
}), (e, o) => (
|
|
514
|
+
document.removeEventListener("keydown", fe, !0), (e = i == null ? void 0 : i.unmount) == null || e.call(i);
|
|
515
|
+
}), (e, o) => (p(), y("div", {
|
|
439
516
|
ref_key: "wrapRef",
|
|
440
|
-
ref:
|
|
441
|
-
class:
|
|
442
|
-
"data-testid":
|
|
443
|
-
"data-table-columns": JSON.stringify(t(
|
|
517
|
+
ref: k,
|
|
518
|
+
class: A([t(E), t(ae).class]),
|
|
519
|
+
"data-testid": Ae.value,
|
|
520
|
+
"data-table-columns": JSON.stringify(t(we)().map((r) => ({
|
|
444
521
|
title: r.title,
|
|
445
522
|
field: r.field
|
|
446
|
-
})))
|
|
447
|
-
|
|
523
|
+
}))),
|
|
524
|
+
onKeydownCapture: de
|
|
525
|
+
}, [F(t(Yt), re({
|
|
448
526
|
ref_key: "xGrid",
|
|
449
|
-
ref:
|
|
450
|
-
},
|
|
451
|
-
onFilterChange: o[2] || (o[2] = (r) => t(
|
|
452
|
-
},
|
|
453
|
-
onFilterVisible:
|
|
454
|
-
}),
|
|
455
|
-
empty:
|
|
527
|
+
ref: b
|
|
528
|
+
}, pe.value, {
|
|
529
|
+
onFilterChange: o[2] || (o[2] = (r) => t(Ce)())
|
|
530
|
+
}, Dt(gt.value), {
|
|
531
|
+
onFilterVisible: vt
|
|
532
|
+
}), Nt({
|
|
533
|
+
empty: g(() => [t(W) ? (p(), y("div", {
|
|
456
534
|
key: 1,
|
|
457
|
-
class:
|
|
458
|
-
}, [
|
|
535
|
+
class: A(`${t(E)}-empty-image`)
|
|
536
|
+
}, [P("span", null, M(R.emptyText || ""), 1)], 2)) : (p(), y("div", {
|
|
459
537
|
key: 0,
|
|
460
|
-
class:
|
|
461
|
-
}, [t(
|
|
538
|
+
class: A(`${t(E)}-empty-image`)
|
|
539
|
+
}, [t(lt) || !d.value.api ? (p(), y(Ee, {
|
|
462
540
|
key: 0
|
|
463
|
-
}, [
|
|
464
|
-
style:
|
|
465
|
-
status:
|
|
466
|
-
}, null, 8, ["style", "status"]),
|
|
541
|
+
}, [F(t(Ie), {
|
|
542
|
+
style: $(ke.value),
|
|
543
|
+
status: R.emptyImageStatus
|
|
544
|
+
}, null, 8, ["style", "status"]), R.emptyText ? (p(), y("span", vo, M(R.emptyText), 1)) : V("", !0)], 64)) : (p(), y(Ee, {
|
|
467
545
|
key: 1
|
|
468
|
-
}, [
|
|
469
|
-
style:
|
|
470
|
-
status:
|
|
471
|
-
}, null, 8, ["style", "status"]),
|
|
472
|
-
left:
|
|
546
|
+
}, [F(t(Ie), {
|
|
547
|
+
style: $(ke.value),
|
|
548
|
+
status: R.emptyImageStatus
|
|
549
|
+
}, null, 8, ["style", "status"]), R.noSearchText ? (p(), y("span", Co, M(R.noSearchText), 1)) : V("", !0)], 64))], 2))]),
|
|
550
|
+
left: g(() => [S(e.$slots, "left", {}, () => [t(z) ? (p(), ne(t(Oe), {
|
|
473
551
|
key: 0,
|
|
474
552
|
ref_key: "leftSlotScrollbarRef",
|
|
475
|
-
ref:
|
|
553
|
+
ref: tt,
|
|
476
554
|
"wrap-class": "overflow-hidden",
|
|
477
555
|
class: "tt-table-left-right-scroll",
|
|
478
556
|
height: `${t(z)}px`,
|
|
479
|
-
style:
|
|
480
|
-
width: `${
|
|
557
|
+
style: $({
|
|
558
|
+
width: `${d.value.leftSlotWidth}px`,
|
|
481
559
|
height: `${t(z)}px`,
|
|
482
|
-
marginTop: `${t(
|
|
560
|
+
marginTop: `${t(Se)}px`
|
|
483
561
|
})
|
|
484
562
|
}, {
|
|
485
|
-
default:
|
|
563
|
+
default: g(() => [P("div", {
|
|
486
564
|
class: "float-left w-0",
|
|
487
|
-
style:
|
|
488
|
-
height: `${t(
|
|
565
|
+
style: $({
|
|
566
|
+
height: `${t(xe)}px`
|
|
489
567
|
})
|
|
490
|
-
}, null, 4),
|
|
491
|
-
style:
|
|
568
|
+
}, null, 4), P("div", {
|
|
569
|
+
style: $({
|
|
492
570
|
width: "100%",
|
|
493
|
-
height: `${t(
|
|
494
|
-
marginTop: `${t(
|
|
571
|
+
height: `${t(q)}px`,
|
|
572
|
+
marginTop: `${t(ve)}`
|
|
495
573
|
}),
|
|
496
574
|
class: "relative"
|
|
497
|
-
}, [
|
|
498
|
-
rowNodes: t(
|
|
499
|
-
height: t(
|
|
575
|
+
}, [S(e.$slots, "tableLeft", j(X({
|
|
576
|
+
rowNodes: t(ye),
|
|
577
|
+
height: t(q)
|
|
500
578
|
})))], 4)]),
|
|
501
579
|
_: 3
|
|
502
580
|
}, 8, ["height", "style"])) : V("", !0)])]),
|
|
503
|
-
right:
|
|
581
|
+
right: g(() => [S(e.$slots, "right", {}, () => [t(z) ? (p(), ne(t(Oe), {
|
|
504
582
|
key: 0,
|
|
505
583
|
ref_key: "rightSlotScrollbarRef",
|
|
506
|
-
ref:
|
|
584
|
+
ref: ot,
|
|
507
585
|
"wrap-class": "overflow-hidden",
|
|
508
586
|
class: "tt-table-left-right-scroll",
|
|
509
587
|
always: "",
|
|
510
588
|
height: `${t(z)}px`,
|
|
511
|
-
style:
|
|
512
|
-
width: `${
|
|
589
|
+
style: $({
|
|
590
|
+
width: `${d.value.rightSlotWidth}px`,
|
|
513
591
|
height: `${t(z)}px`,
|
|
514
|
-
marginTop: `${t(
|
|
592
|
+
marginTop: `${t(Se)}px`
|
|
515
593
|
})
|
|
516
594
|
}, {
|
|
517
|
-
default:
|
|
595
|
+
default: g(() => [P("div", {
|
|
518
596
|
class: "float-left w-0",
|
|
519
|
-
style:
|
|
520
|
-
height: `${t(
|
|
597
|
+
style: $({
|
|
598
|
+
height: `${t(xe)}px`
|
|
521
599
|
})
|
|
522
|
-
}, null, 4),
|
|
523
|
-
style:
|
|
600
|
+
}, null, 4), P("div", {
|
|
601
|
+
style: $({
|
|
524
602
|
width: "100%",
|
|
525
|
-
height: `${t(
|
|
526
|
-
marginTop: `${t(
|
|
603
|
+
height: `${t(q)}px`,
|
|
604
|
+
marginTop: `${t(ve)}`
|
|
527
605
|
}),
|
|
528
606
|
class: "relative"
|
|
529
|
-
}, [
|
|
530
|
-
rowNodes: t(
|
|
531
|
-
height: t(
|
|
607
|
+
}, [S(e.$slots, "tableRight", j(X({
|
|
608
|
+
rowNodes: t(ye),
|
|
609
|
+
height: t(q)
|
|
532
610
|
})))], 4)]),
|
|
533
611
|
_: 3
|
|
534
612
|
}, 8, ["height", "style"])) : V("", !0)])]),
|
|
535
613
|
_: 2
|
|
536
|
-
}, [
|
|
614
|
+
}, [se(t(at), (r) => ({
|
|
537
615
|
name: r,
|
|
538
|
-
fn:
|
|
616
|
+
fn: g((n) => [P("div", {
|
|
539
617
|
class: "flex items-center",
|
|
540
|
-
onClick:
|
|
541
|
-
}, [
|
|
542
|
-
"tool-tip":
|
|
618
|
+
onClick: zt((s) => ht(n.column), ["stop"])
|
|
619
|
+
}, [P("div", bo, [S(e.$slots, Tt(n), j(X(n)), () => [F(t(to), {
|
|
620
|
+
"tool-tip": ft.value
|
|
543
621
|
}, {
|
|
544
|
-
default:
|
|
622
|
+
default: g(() => [le(M(n.column.title), 1)]),
|
|
545
623
|
_: 2
|
|
546
|
-
}, 1032, ["tool-tip"])])]),
|
|
624
|
+
}, 1032, ["tool-tip"])])]), n.column.sortable ? (p(), y("div", {
|
|
547
625
|
key: 0,
|
|
548
|
-
class:
|
|
549
|
-
"is-order":
|
|
550
|
-
[`${t(
|
|
626
|
+
class: A(["flex-x", {
|
|
627
|
+
"is-order": n.column.order,
|
|
628
|
+
[`${t(E)}-custom-sort`]: !0
|
|
551
629
|
}])
|
|
552
|
-
}, [
|
|
630
|
+
}, [n.column.order === "asc" ? (p(), y("img", {
|
|
553
631
|
key: 0,
|
|
554
|
-
src: t(
|
|
555
|
-
}, null, 8,
|
|
632
|
+
src: t(eo)
|
|
633
|
+
}, null, 8, ho)) : n.column.order === "desc" ? (p(), y("img", {
|
|
556
634
|
key: 1,
|
|
557
|
-
src: t(
|
|
558
|
-
}, null, 8,
|
|
635
|
+
src: t(Qt)
|
|
636
|
+
}, null, 8, yo)) : (p(), y("img", {
|
|
559
637
|
key: 2,
|
|
560
|
-
src: t(
|
|
561
|
-
}, null, 8,
|
|
562
|
-
})),
|
|
638
|
+
src: t(Zt)
|
|
639
|
+
}, null, 8, So))], 2)) : V("", !0)], 8, mo)])
|
|
640
|
+
})), se(Object.keys(e.$slots), (r) => ({
|
|
563
641
|
name: r,
|
|
564
|
-
fn:
|
|
642
|
+
fn: g((n) => [r.includes("action") ? (p(), ne(t(oo), {
|
|
565
643
|
key: 0,
|
|
566
|
-
"row-index":
|
|
644
|
+
"row-index": n.$rowIndex
|
|
567
645
|
}, {
|
|
568
|
-
default:
|
|
569
|
-
rowIndex:
|
|
646
|
+
default: g(() => [S(e.$slots, r, re(n, {
|
|
647
|
+
rowIndex: n.$rowIndex
|
|
570
648
|
}))]),
|
|
571
649
|
_: 2
|
|
572
|
-
}, 1032, ["row-index"])) :
|
|
650
|
+
}, 1032, ["row-index"])) : S(e.$slots, r, j(re({
|
|
573
651
|
key: 1
|
|
574
|
-
},
|
|
575
|
-
})),
|
|
652
|
+
}, n)))])
|
|
653
|
+
})), C.value.showTableAlert ? {
|
|
576
654
|
name: "top",
|
|
577
|
-
fn:
|
|
578
|
-
class:
|
|
579
|
-
}, [o[3] || (o[3] =
|
|
655
|
+
fn: g(() => [P("div", {
|
|
656
|
+
class: A(`${t(E)}-top-alert`)
|
|
657
|
+
}, [o[3] || (o[3] = le(" 已选中 ", -1)), P("span", xo, M(t(Ge).length), 1), o[4] || (o[4] = le(" 条 ", -1)), S(e.$slots, "top_title")], 2)]),
|
|
580
658
|
key: "0"
|
|
581
|
-
} : void 0, t(
|
|
659
|
+
} : void 0, t(D).toolbar_buttons ? {
|
|
582
660
|
name: "toolbar_buttons",
|
|
583
|
-
fn:
|
|
661
|
+
fn: g(() => [S(e.$slots, "toolbar_buttons")]),
|
|
584
662
|
key: "1"
|
|
585
|
-
} : void 0, t(
|
|
663
|
+
} : void 0, t(D).toolbar_tools ? {
|
|
586
664
|
name: "toolbar_tools",
|
|
587
|
-
fn:
|
|
665
|
+
fn: g(() => [S(e.$slots, "toolbar_tools")]),
|
|
588
666
|
key: "2"
|
|
589
|
-
} : void 0,
|
|
667
|
+
} : void 0, se(t(it), (r) => ({
|
|
590
668
|
name: r,
|
|
591
|
-
fn:
|
|
592
|
-
content:
|
|
593
|
-
rowIndex:
|
|
594
|
-
columnIndex:
|
|
595
|
-
column:
|
|
596
|
-
fixed:
|
|
597
|
-
}) => [!
|
|
669
|
+
fn: g(({
|
|
670
|
+
content: n,
|
|
671
|
+
rowIndex: s,
|
|
672
|
+
columnIndex: l,
|
|
673
|
+
column: a,
|
|
674
|
+
fixed: c
|
|
675
|
+
}) => [!c || c === a.fixed ? (p(), y("div", {
|
|
598
676
|
key: 0,
|
|
599
|
-
ref: (
|
|
677
|
+
ref: (u) => bt(u, `valid_${s}_${l}`),
|
|
600
678
|
class: "h-full w-full"
|
|
601
|
-
}, [
|
|
602
|
-
placement:
|
|
603
|
-
"err-msg":
|
|
604
|
-
"ref-dom":
|
|
679
|
+
}, [F(t(Gt), {
|
|
680
|
+
placement: d.value.toolTipErrorPlacement,
|
|
681
|
+
"err-msg": n,
|
|
682
|
+
"ref-dom": ge.value[`valid_${s}_${l}`]
|
|
605
683
|
}, null, 8, ["placement", "err-msg", "ref-dom"])], 512)) : V("", !0)])
|
|
606
|
-
})),
|
|
684
|
+
})), C.value.showPager ? {
|
|
607
685
|
name: "pager",
|
|
608
|
-
fn:
|
|
609
|
-
var r,
|
|
610
|
-
return [
|
|
611
|
-
"current-page": t(
|
|
612
|
-
"onUpdate:currentPage": o[0] || (o[0] = (
|
|
613
|
-
"page-size": t(
|
|
614
|
-
"onUpdate:pageSize": o[1] || (o[1] = (
|
|
615
|
-
"page-sizes": (r = t(
|
|
616
|
-
layouts: (
|
|
617
|
-
total: ((
|
|
618
|
-
size: (
|
|
619
|
-
"class-name": `${t(
|
|
620
|
-
onPageChange: t(
|
|
686
|
+
fn: g(() => {
|
|
687
|
+
var r, n, s, l;
|
|
688
|
+
return [F(t(qt), {
|
|
689
|
+
"current-page": t(L).currentPage,
|
|
690
|
+
"onUpdate:currentPage": o[0] || (o[0] = (a) => t(L).currentPage = a),
|
|
691
|
+
"page-size": t(L).pageSize,
|
|
692
|
+
"onUpdate:pageSize": o[1] || (o[1] = (a) => t(L).pageSize = a),
|
|
693
|
+
"page-sizes": (r = t(N)) == null ? void 0 : r.pageSizes,
|
|
694
|
+
layouts: (n = t(N)) == null ? void 0 : n.layouts,
|
|
695
|
+
total: ((s = t(N)) == null ? void 0 : s.total) || t(st).length,
|
|
696
|
+
size: (l = t(N)) == null ? void 0 : l.size,
|
|
697
|
+
"class-name": `${t(E)}-vxe-pager`,
|
|
698
|
+
onPageChange: t(Me)
|
|
621
699
|
}, {
|
|
622
|
-
left:
|
|
623
|
-
selectedKeys: t(
|
|
624
|
-
}))),
|
|
700
|
+
left: g(() => [S(e.$slots, "pager_left", j(X({
|
|
701
|
+
selectedKeys: t(te)
|
|
702
|
+
}))), S(e.$slots, "buttom_left")]),
|
|
625
703
|
_: 3
|
|
626
704
|
}, 8, ["current-page", "page-size", "page-sizes", "layouts", "total", "size", "class-name", "onPageChange"])];
|
|
627
705
|
}),
|
|
628
706
|
key: "3"
|
|
629
|
-
} : void 0]), 1040)],
|
|
707
|
+
} : void 0]), 1040)], 42, go));
|
|
630
708
|
}
|
|
631
709
|
});
|
|
632
710
|
export {
|
|
633
|
-
|
|
711
|
+
cr as default
|
|
634
712
|
};
|