zhihao-ui 1.3.62 → 1.3.63-alpha.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/dist/es/{BaseInfo-aiVRbjTP.js → BaseInfo-CNiBnhcM.js} +1 -1
- package/dist/es/{BaseItem-B_4mwWHs.js → BaseItem-BA35OqoH.js} +1 -1
- package/dist/es/{DatePicker-DyqXtiRa.js → DatePicker-BqHlmV2R.js} +1 -1
- package/dist/es/{DetailHeader-pQXMyG5I.js → DetailHeader-BM4-4ODB.js} +1 -1
- package/dist/es/{DetailSubTitle-B-DcaPqI.js → DetailSubTitle-BJKuh02w.js} +1 -1
- package/dist/es/{DiyDataTable-Bt-ZrRFy.js → DiyDataTable-BpzGH5zk.js} +115 -115
- package/dist/es/{EditInfoPair-DCjZGPkz.js → EditInfoPair-Ymyo3dLK.js} +1 -1
- package/dist/es/{FileWrapper-xu2XFTT8.js → FileWrapper-5WNiaTvu.js} +1 -1
- package/dist/es/{Grid-DEbsTV3v.js → Grid-CM5rjucl.js} +1 -1
- package/dist/es/{InfoPair-B9nTZ_iX.js → InfoPair-B-N9iStl.js} +1 -1
- package/dist/es/{MoneyInput-DJ5g8rhm.js → MoneyInput-CWF973mw.js} +1 -1
- package/dist/es/{Table-D49FFXP7.js → Table-sy10EfjN.js} +430 -414
- package/dist/es/index.js +13 -13
- package/dist/index.css +1 -1
- package/dist/types/components/DiyDataTable/DiyDataTable.vue.d.ts +1 -1
- package/dist/types/components/DiyDataTable/index.d.ts +3 -3
- package/dist/umd/index.css +1 -1
- package/dist/umd/index.umd.cjs +33 -33
- package/package.json +1 -1
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
import { reactive as te, computed as U, toRefs as
|
|
2
|
-
import { a6 as
|
|
3
|
-
import { Z as
|
|
4
|
-
import { _ as se, Z as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { D as ae, C as
|
|
7
|
-
import { w as
|
|
8
|
-
const
|
|
9
|
-
function
|
|
1
|
+
import { reactive as te, computed as U, toRefs as We, ref as B, defineComponent as le, useCssVars as ft, inject as Ke, openBlock as S, createElementBlock as F, createBlock as R, resolveDynamicComponent as fe, mergeProps as G, withKeys as mt, unref as i, createSlots as me, withCtx as w, Fragment as Y, renderList as ge, renderSlot as N, createElementVNode as z, toDisplayString as X, createCommentVNode as I, createVNode as k, withModifiers as gt, normalizeClass as je, createTextVNode as Q, useSlots as Ne, isVNode as vt, normalizeProps as qe, guardReactiveProps as xe, nextTick as ve, onMounted as De, onActivated as Ct, onDeactivated as bt, onUnmounted as yt, watch as St, provide as wt, resolveDirective as kt, withDirectives as ke, vShow as _t, toHandlers as Pt } from "vue";
|
|
2
|
+
import { a6 as He, a7 as Tt, a8 as Et, a9 as Je, aa as $t, n as Bt, ab as zt, q as Mt, ac as It, a5 as Ce, b as Ee, a as be, ad as Ft, ae as Lt, p as re, af as Rt, ag as Dt, ah as Vt, ai as Ye, aj as Ge, e as J, o as Qe, ak as Ve, al as Ot, am as Xe, an as At, ao as Zt, ap as Ut, aq as Wt, E as _e, ar as Kt, m as jt, as as Nt, at as Oe, au as Ae } from "./vendor-CbeG2C4c.js";
|
|
3
|
+
import { Z as qt } from "./CascaderLoadMore-C6micaqI.js";
|
|
4
|
+
import { _ as se, Z as Pe } from "./Button-BFA52ivn.js";
|
|
5
|
+
import { _ as xt } from "./Dialog-BptDzN8n.js";
|
|
6
|
+
import { D as ae, C as Ht } from "./BaseItem-BA35OqoH.js";
|
|
7
|
+
import { w as Jt } from "./utils-COxKH46Q.js";
|
|
8
|
+
const Yt = 12;
|
|
9
|
+
function $e(g, d, n, h) {
|
|
10
10
|
return g.reduce((f, y) => {
|
|
11
11
|
if (f) return f;
|
|
12
|
-
if (y[
|
|
13
|
-
if (y[h]) return
|
|
12
|
+
if (y[n] === d) return y;
|
|
13
|
+
if (y[h]) return $e(y[h], d, n, h);
|
|
14
14
|
}, null);
|
|
15
15
|
}
|
|
16
|
-
function
|
|
17
|
-
const h =
|
|
18
|
-
return
|
|
16
|
+
function Gt(g, d, n) {
|
|
17
|
+
const h = Et(n) ? ae : n, f = He(g, d);
|
|
18
|
+
return Tt(f) || f === "" ? h : f;
|
|
19
19
|
}
|
|
20
|
-
const
|
|
20
|
+
const Ze = Gt;
|
|
21
21
|
function W(g) {
|
|
22
22
|
const d = g.split(".");
|
|
23
23
|
return d.length == 1 ? g : d[d.length - 1];
|
|
24
24
|
}
|
|
25
|
-
function
|
|
26
|
-
const f = (
|
|
25
|
+
function Ue(g, d, n, h) {
|
|
26
|
+
const f = (n == null ? void 0 : n.value) ?? "value", y = (n == null ? void 0 : n.label) ?? "label", t = (n == null ? void 0 : n.children) ?? "children";
|
|
27
27
|
let C = {};
|
|
28
|
-
return Array.isArray(d) && (C =
|
|
28
|
+
return Array.isArray(d) && (C = $e(d, g, f, t)), h == "tag" ? C != null && C.tagType ? C.tagType : "" : C ? C[y] : ae;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function Qt(g, d, n) {
|
|
31
31
|
const h = "value", f = "children";
|
|
32
32
|
let y = {};
|
|
33
|
-
return Array.isArray(d) && (y =
|
|
33
|
+
return Array.isArray(d) && (y = $e(d, g, h, f)), y;
|
|
34
34
|
}
|
|
35
|
-
function
|
|
36
|
-
return
|
|
35
|
+
function Xt(g) {
|
|
36
|
+
return Je(g) ? g.length ? g.join(" / ") : ae : g ?? ae;
|
|
37
37
|
}
|
|
38
38
|
function he(g, d) {
|
|
39
|
-
return d.includes(".") ? (d.split(".").forEach((
|
|
39
|
+
return d.includes(".") ? (d.split(".").forEach((n) => g = g[n] ?? ae), g) : g[d] ?? ae;
|
|
40
40
|
}
|
|
41
41
|
const oe = (g, d) => {
|
|
42
|
-
const
|
|
43
|
-
return f.font = `${
|
|
44
|
-
},
|
|
45
|
-
const d = g || "zhihao-col-setting",
|
|
42
|
+
const n = d || Yt, f = document.createElement("canvas").getContext("2d");
|
|
43
|
+
return f.font = `${n}px Microsoft YaHei`, f.measureText(g).width;
|
|
44
|
+
}, ea = (g) => {
|
|
45
|
+
const d = g || "zhihao-col-setting", n = () => {
|
|
46
46
|
const C = localStorage.getItem(d);
|
|
47
47
|
return C ? JSON.parse(C) : {};
|
|
48
48
|
}, h = (C) => {
|
|
49
49
|
localStorage.setItem(d, JSON.stringify(C));
|
|
50
50
|
};
|
|
51
51
|
return {
|
|
52
|
-
getMap:
|
|
52
|
+
getMap: n,
|
|
53
53
|
setMap: h,
|
|
54
|
-
getColumnCache: (C) =>
|
|
54
|
+
getColumnCache: (C) => n()[C] || [],
|
|
55
55
|
setColumnCache: (C, o) => {
|
|
56
|
-
const p =
|
|
56
|
+
const p = n();
|
|
57
57
|
p[C] = o, h(p);
|
|
58
58
|
},
|
|
59
59
|
removeColumnCache: (C) => {
|
|
60
|
-
const o =
|
|
60
|
+
const o = n();
|
|
61
61
|
delete o[C], h(o);
|
|
62
62
|
}
|
|
63
63
|
};
|
|
64
|
-
},
|
|
64
|
+
}, ta = `<g clip-path="url(#clip0_94_5585)">
|
|
65
65
|
<path d="M9.48792 55.1851C11.0631 55.1851 12.3401 53.9081 12.3401 52.3329C12.3401 50.7577 11.0631 49.4807 9.48792 49.4807C7.91271 49.4807 6.63574 50.7577 6.63574 52.3329C6.63574 53.9081 7.91271 55.1851 9.48792 55.1851Z" fill="#9CBEFC"/>
|
|
66
66
|
<path d="M2.44202 35.4087C4.01723 35.4087 5.2942 34.1317 5.2942 32.5565C5.2942 30.9813 4.01723 29.7043 2.44202 29.7043C0.866808 29.7043 -0.410156 30.9813 -0.410156 32.5565C-0.410156 34.1317 0.866808 35.4087 2.44202 35.4087Z" fill="#9CBEFC"/>
|
|
67
67
|
<path d="M9.48799 16.7354C11.859 16.7354 13.7812 14.8133 13.7812 12.4422C13.7812 10.0712 11.859 8.14907 9.48799 8.14907C7.11694 8.14907 5.19482 10.0712 5.19482 12.4422C5.19482 14.8133 7.11694 16.7354 9.48799 16.7354Z" fill="#9CBEFC"/>
|
|
@@ -75,7 +75,7 @@ const oe = (g, d) => {
|
|
|
75
75
|
<clipPath id="clip0_94_5585">
|
|
76
76
|
<rect width="64" height="64" fill="white"/>
|
|
77
77
|
</clipPath>
|
|
78
|
-
</defs>`,
|
|
78
|
+
</defs>`, aa = (g, d = {}, n = !0, h, f, y = (t) => t) => {
|
|
79
79
|
const t = te({
|
|
80
80
|
// 表格数据
|
|
81
81
|
tableData: [],
|
|
@@ -111,11 +111,11 @@ const oe = (g, d) => {
|
|
|
111
111
|
return;
|
|
112
112
|
}
|
|
113
113
|
try {
|
|
114
|
-
Object.assign(t.totalParam, d,
|
|
114
|
+
Object.assign(t.totalParam, d, n ? C.value : {});
|
|
115
115
|
for (const e in t.searchParam)
|
|
116
116
|
t.searchParam[e] === "" && delete t.searchParam[e];
|
|
117
117
|
let E = await g(y({ ...t.searchInitParam, ...t.totalParam }));
|
|
118
|
-
if (h && (E = await h(E)), t.tableData =
|
|
118
|
+
if (h && (E = await h(E)), t.tableData = n ? E.list : E, n) {
|
|
119
119
|
const { currentPage: e, pageSize: v, total: _ } = E;
|
|
120
120
|
O({ page: e, size: v, total: _ });
|
|
121
121
|
}
|
|
@@ -130,10 +130,10 @@ const oe = (g, d) => {
|
|
|
130
130
|
const E = {};
|
|
131
131
|
for (const e in t.searchParam)
|
|
132
132
|
(t.searchParam[e] || t.searchParam[e] === !1 || t.searchParam[e] === 0) && (E[e] = t.searchParam[e]);
|
|
133
|
-
Object.assign(t.totalParam, E,
|
|
133
|
+
Object.assign(t.totalParam, E, n ? C.value : {});
|
|
134
134
|
}, O = (E) => {
|
|
135
135
|
Object.assign(t.pageable, E);
|
|
136
|
-
},
|
|
136
|
+
}, A = () => {
|
|
137
137
|
t.pageable.page = 1, p(), o().then();
|
|
138
138
|
}, x = () => {
|
|
139
139
|
t.pageable.page = 1, t.searchParam = { ...t.searchInitParam }, p(), o().then();
|
|
@@ -143,28 +143,28 @@ const oe = (g, d) => {
|
|
|
143
143
|
t.pageable.page = E, o().then();
|
|
144
144
|
};
|
|
145
145
|
return {
|
|
146
|
-
...
|
|
146
|
+
...We(t),
|
|
147
147
|
getTableList: o,
|
|
148
|
-
search:
|
|
148
|
+
search: A,
|
|
149
149
|
reset: x,
|
|
150
150
|
handleSizeChange: H,
|
|
151
151
|
handleCurrentChange: j,
|
|
152
152
|
updatedTotalParam: p
|
|
153
153
|
};
|
|
154
|
-
},
|
|
155
|
-
const
|
|
154
|
+
}, na = (g = "id", d) => {
|
|
155
|
+
const n = B(!1), h = B([]), f = U(() => {
|
|
156
156
|
const t = [];
|
|
157
|
-
return h.value.forEach((C) => t.push(
|
|
157
|
+
return h.value.forEach((C) => t.push(He(C, g))), t;
|
|
158
158
|
});
|
|
159
159
|
return {
|
|
160
|
-
isSelected:
|
|
160
|
+
isSelected: n,
|
|
161
161
|
selectedList: h,
|
|
162
162
|
selectedListIds: f,
|
|
163
163
|
selectionChange: (t) => {
|
|
164
|
-
t.length ?
|
|
164
|
+
t.length ? n.value = !0 : n.value = !1, h.value = t, d && d(t);
|
|
165
165
|
}
|
|
166
166
|
};
|
|
167
|
-
},
|
|
167
|
+
}, oa = { class: "search-form-item" }, la = /* @__PURE__ */ le({
|
|
168
168
|
name: "SearchFormItem",
|
|
169
169
|
__name: "SearchFormItem",
|
|
170
170
|
props: {
|
|
@@ -173,55 +173,55 @@ const oe = (g, d) => {
|
|
|
173
173
|
},
|
|
174
174
|
emits: ["search"],
|
|
175
175
|
setup(g, { emit: d }) {
|
|
176
|
-
|
|
177
|
-
"6720d772":
|
|
176
|
+
ft((e) => ({
|
|
177
|
+
"6720d772": A.value
|
|
178
178
|
}));
|
|
179
|
-
const
|
|
179
|
+
const n = g, h = d, f = U(() => n.searchParam), y = U(() => {
|
|
180
180
|
var e, v, _;
|
|
181
181
|
return {
|
|
182
|
-
label: ((e =
|
|
183
|
-
value: ((v =
|
|
184
|
-
children: ((_ =
|
|
182
|
+
label: ((e = n.column.fieldNames) == null ? void 0 : e.label) ?? "label",
|
|
183
|
+
value: ((v = n.column.fieldNames) == null ? void 0 : v.value) ?? "value",
|
|
184
|
+
children: ((_ = n.column.fieldNames) == null ? void 0 : _.children) ?? "children"
|
|
185
185
|
};
|
|
186
|
-
}), t =
|
|
186
|
+
}), t = Ke("enumMap", B(/* @__PURE__ */ new Map())), C = U(() => {
|
|
187
187
|
var v;
|
|
188
|
-
let e = t.value.get(
|
|
189
|
-
return e ? (((v =
|
|
188
|
+
let e = t.value.get(n.column.prop);
|
|
189
|
+
return e ? (((v = n.column.search) == null ? void 0 : v.el) === "select-v2" && n.column.fieldNames && (e = e.map((_) => ({ ..._, label: _[y.value.label], value: _[y.value.value] }))), e) : [];
|
|
190
190
|
}), o = U(() => {
|
|
191
191
|
var e, v;
|
|
192
|
-
return ((v = (e =
|
|
192
|
+
return ((v = (e = n.column.search) == null ? void 0 : e.props) == null ? void 0 : v.options) ?? C.value ?? [];
|
|
193
193
|
}), p = U(() => {
|
|
194
|
-
var
|
|
195
|
-
const e = y.value.label, v = y.value.value, _ = y.value.children, b = (
|
|
196
|
-
let
|
|
197
|
-
return b === "tree-select" && (
|
|
194
|
+
var c, P;
|
|
195
|
+
const e = y.value.label, v = y.value.value, _ = y.value.children, b = (c = n.column.search) == null ? void 0 : c.el;
|
|
196
|
+
let s = ((P = n.column.search) == null ? void 0 : P.props) ?? {};
|
|
197
|
+
return b === "tree-select" && (s = { ...s, props: { ...s.props, label: e, children: _ }, nodeKey: v }), b === "cascader" && (s = { ...s, props: { ...s.props, label: e, value: v, children: _ } }), s;
|
|
198
198
|
}), O = U(() => {
|
|
199
|
-
var _, b,
|
|
200
|
-
const e =
|
|
199
|
+
var _, b, s, c, P, T, m;
|
|
200
|
+
const e = n.column.search;
|
|
201
201
|
return ["datetimerange", "daterange", "monthrange"].includes((_ = e == null ? void 0 : e.props) == null ? void 0 : _.type) || (b = e == null ? void 0 : e.props) != null && b.isRange ? {
|
|
202
|
-
rangeSeparator: ((
|
|
203
|
-
startPlaceholder: ((
|
|
202
|
+
rangeSeparator: ((s = e == null ? void 0 : e.props) == null ? void 0 : s.rangeSeparator) ?? "-",
|
|
203
|
+
startPlaceholder: ((c = e == null ? void 0 : e.props) == null ? void 0 : c.startPlaceholder) ?? "开始时间",
|
|
204
204
|
endPlaceholder: ((P = e == null ? void 0 : e.props) == null ? void 0 : P.endPlaceholder) ?? "结束时间"
|
|
205
205
|
} : { placeholder: ((T = e == null ? void 0 : e.props) == null ? void 0 : T.placeholder) ?? ((m = e == null ? void 0 : e.el) != null && m.includes("input") ? "请输入" : "请选择") };
|
|
206
|
-
}),
|
|
207
|
-
var
|
|
208
|
-
const e =
|
|
206
|
+
}), A = U(() => {
|
|
207
|
+
var s, c;
|
|
208
|
+
const e = n.column.search, v = f.value[(e == null ? void 0 : e.key) ?? W(n.column.prop)], _ = e == null ? void 0 : e.el, b = (s = e == null ? void 0 : e.props) == null ? void 0 : s.placeholder;
|
|
209
209
|
if (e != null && e.width)
|
|
210
|
-
if (
|
|
210
|
+
if ($t(e == null ? void 0 : e.width)) {
|
|
211
211
|
if (e == null ? void 0 : e.width(v))
|
|
212
212
|
return (e == null ? void 0 : e.width(v)) + "px";
|
|
213
213
|
} else
|
|
214
214
|
return (e == null ? void 0 : e.width) + "px";
|
|
215
215
|
if (v && v.length !== 0 && ["select", "select-v2", "tree-select", "cascader"].includes(_ || "")) {
|
|
216
|
-
if (
|
|
216
|
+
if (Je(v)) {
|
|
217
217
|
let m = o.value;
|
|
218
218
|
const M = [];
|
|
219
219
|
if (v.forEach((L) => {
|
|
220
|
-
const
|
|
221
|
-
M.push(
|
|
222
|
-
const K =
|
|
223
|
-
m =
|
|
224
|
-
}), (
|
|
220
|
+
const D = m.find((V) => V[y.value.value] === L);
|
|
221
|
+
M.push(D ? D[y.value.label] : L);
|
|
222
|
+
const K = D[y.value.children] ?? o.value;
|
|
223
|
+
m = D ? K : [];
|
|
224
|
+
}), (c = e == null ? void 0 : e.props) != null && c.multiple) {
|
|
225
225
|
const K = oe(M[0]) + 42;
|
|
226
226
|
return v.length > 1 ? K + 26 + oe("+ " + (v.length - 1)) + "px" : K + "px";
|
|
227
227
|
}
|
|
@@ -232,53 +232,53 @@ const oe = (g, d) => {
|
|
|
232
232
|
return oe(T) + "px";
|
|
233
233
|
} else return b ? oe(b) + "px" : ["date-picker", "time-picker", "time-select"].includes(_ || "") ? "210px" : "100px";
|
|
234
234
|
}), x = U(() => {
|
|
235
|
-
var e, v, _, b,
|
|
236
|
-
return (_ = (v = (e =
|
|
235
|
+
var e, v, _, b, s;
|
|
236
|
+
return (_ = (v = (e = n.column) == null ? void 0 : e.search) == null ? void 0 : v.props) != null && _.multiple && ((s = (b = n.column) == null ? void 0 : b.search) == null ? void 0 : s.el) === "select" ? {
|
|
237
237
|
collapseTags: !0,
|
|
238
238
|
collapseTagsTooltip: !0
|
|
239
239
|
} : {};
|
|
240
240
|
}), H = U(() => {
|
|
241
241
|
var v;
|
|
242
|
-
const e =
|
|
242
|
+
const e = n.column.search;
|
|
243
243
|
return ((v = e == null ? void 0 : e.props) == null ? void 0 : v.clearable) ?? ((e == null ? void 0 : e.defaultValue) == null || !1);
|
|
244
244
|
}), j = (e) => {
|
|
245
|
-
var v, _, b,
|
|
246
|
-
if (((b = (_ = (v =
|
|
247
|
-
const { searchParam: L } =
|
|
245
|
+
var v, _, b, s, c, P, T, m, M;
|
|
246
|
+
if (((b = (_ = (v = n.column) == null ? void 0 : v.search) == null ? void 0 : _.props) == null ? void 0 : b.type) === "daterange") {
|
|
247
|
+
const { searchParam: L } = We(n);
|
|
248
248
|
if (e != null && e.length) {
|
|
249
|
-
const
|
|
250
|
-
L.value[
|
|
249
|
+
const D = ((P = (c = (s = n.column) == null ? void 0 : s.search) == null ? void 0 : c.props) == null ? void 0 : P.beginTime) || "beginTime", K = ((M = (m = (T = n.column) == null ? void 0 : T.search) == null ? void 0 : m.props) == null ? void 0 : M.endTime) || "endTime";
|
|
250
|
+
L.value[D] = e[0], L.value[K] = e[1];
|
|
251
251
|
} else
|
|
252
252
|
delete L.value.beginTime, delete L.value.endTime;
|
|
253
253
|
}
|
|
254
254
|
(e == null || e === "") && h("search"), e instanceof Array && !e.length && h("search");
|
|
255
255
|
}, E = () => {
|
|
256
256
|
var e;
|
|
257
|
-
["input", "input-number"].includes(((e =
|
|
257
|
+
["input", "input-number"].includes(((e = n.column.search) == null ? void 0 : e.el) || "") && h("search");
|
|
258
258
|
};
|
|
259
259
|
return (e, v) => {
|
|
260
|
-
var _, b,
|
|
261
|
-
return S(), F("div",
|
|
262
|
-
((_ = e.column.search) == null ? void 0 : _.type) !== "custom" ? (S(),
|
|
263
|
-
modelValue: f.value[((
|
|
264
|
-
"onUpdate:modelValue": v[0] || (v[0] = (
|
|
265
|
-
var
|
|
266
|
-
return f.value[((
|
|
260
|
+
var _, b, s, c, P, T, m, M, L, D, K;
|
|
261
|
+
return S(), F("div", oa, [
|
|
262
|
+
((_ = e.column.search) == null ? void 0 : _.type) !== "custom" ? (S(), R(fe(((b = e.column.search) == null ? void 0 : b.render) ?? `el-${(s = e.column.search) == null ? void 0 : s.el}`), G({ key: 0 }, { ...p.value, ...O.value, searchParam: f.value, clearable: H.value, ...x.value }, {
|
|
263
|
+
modelValue: f.value[((c = e.column.search) == null ? void 0 : c.key) ?? i(W)(e.column.prop)],
|
|
264
|
+
"onUpdate:modelValue": v[0] || (v[0] = (V) => {
|
|
265
|
+
var Z;
|
|
266
|
+
return f.value[((Z = e.column.search) == null ? void 0 : Z.key) ?? i(W)(e.column.prop)] = V;
|
|
267
267
|
}),
|
|
268
268
|
modelModifiers: { trim: !0 },
|
|
269
269
|
data: ((P = e.column.search) == null ? void 0 : P.el) === "tree-select" ? C.value : [],
|
|
270
270
|
options: o.value,
|
|
271
271
|
"prefix-icon": (m = (T = e.column.search) == null ? void 0 : T.props) == null ? void 0 : m.prefixIcon,
|
|
272
272
|
onChange: j,
|
|
273
|
-
onKeyup:
|
|
273
|
+
onKeyup: mt(E, ["enter"])
|
|
274
274
|
}), me({
|
|
275
275
|
default: w(() => {
|
|
276
|
-
var
|
|
276
|
+
var V;
|
|
277
277
|
return [
|
|
278
|
-
((
|
|
278
|
+
((V = e.column.search) == null ? void 0 : V.el) === "select" ? (S(!0), F(Y, { key: 0 }, ge(C.value, (Z, ue) => (S(), R(fe("el-option"), {
|
|
279
279
|
key: ue,
|
|
280
|
-
label:
|
|
281
|
-
value:
|
|
280
|
+
label: Z[y.value.label] ?? "",
|
|
281
|
+
value: Z[y.value.value]
|
|
282
282
|
}, null, 8, ["label", "value"]))), 128)) : N(e.$slots, "default", { key: 1 }, void 0, !0)
|
|
283
283
|
];
|
|
284
284
|
}),
|
|
@@ -286,18 +286,18 @@ const oe = (g, d) => {
|
|
|
286
286
|
}, [
|
|
287
287
|
((M = e.column.search) == null ? void 0 : M.el) === "cascader" ? {
|
|
288
288
|
name: "default",
|
|
289
|
-
fn: w(({ data:
|
|
290
|
-
|
|
289
|
+
fn: w(({ data: V }) => [
|
|
290
|
+
z("span", null, X(V[y.value.label]), 1)
|
|
291
291
|
]),
|
|
292
292
|
key: "0"
|
|
293
293
|
} : void 0
|
|
294
294
|
]), 1040, ["modelValue", "data", "options", "prefix-icon"])) : (S(), F(Y, { key: 1 }, [
|
|
295
|
-
((L = e.column.search) == null ? void 0 : L.el) === "zhCascaderLoadMore" ? (S(),
|
|
295
|
+
((L = e.column.search) == null ? void 0 : L.el) === "zhCascaderLoadMore" ? (S(), R(i(qt), G({
|
|
296
296
|
key: 0,
|
|
297
|
-
modelValue: f.value[((
|
|
298
|
-
"onUpdate:modelValue": v[1] || (v[1] = (
|
|
299
|
-
var
|
|
300
|
-
return f.value[((
|
|
297
|
+
modelValue: f.value[((D = e.column.search) == null ? void 0 : D.key) ?? i(W)(e.column.prop)],
|
|
298
|
+
"onUpdate:modelValue": v[1] || (v[1] = (V) => {
|
|
299
|
+
var Z;
|
|
300
|
+
return f.value[((Z = e.column.search) == null ? void 0 : Z.key) ?? i(W)(e.column.prop)] = V;
|
|
301
301
|
}),
|
|
302
302
|
modelModifiers: { trim: !0 }
|
|
303
303
|
}, (K = e.column.search) == null ? void 0 : K.props), null, 16, ["modelValue"])) : I("", !0)
|
|
@@ -305,10 +305,10 @@ const oe = (g, d) => {
|
|
|
305
305
|
]);
|
|
306
306
|
};
|
|
307
307
|
}
|
|
308
|
-
}),
|
|
308
|
+
}), ra = /* @__PURE__ */ se(la, [["__scopeId", "data-v-5c18e8bc"]]), sa = { class: "table-search" }, ua = { key: 0 }, ia = {
|
|
309
309
|
key: 0,
|
|
310
310
|
class: "operation"
|
|
311
|
-
},
|
|
311
|
+
}, ca = /* @__PURE__ */ le({
|
|
312
312
|
name: "SearchForm",
|
|
313
313
|
__name: "SearchForm",
|
|
314
314
|
props: {
|
|
@@ -321,29 +321,29 @@ const oe = (g, d) => {
|
|
|
321
321
|
},
|
|
322
322
|
setup(g) {
|
|
323
323
|
const d = g;
|
|
324
|
-
return (
|
|
325
|
-
k(
|
|
324
|
+
return (n, h) => (S(), F("div", sa, [
|
|
325
|
+
k(i(Bt), {
|
|
326
326
|
ref: "formRef",
|
|
327
|
-
model:
|
|
327
|
+
model: n.searchParam,
|
|
328
328
|
class: "table-search--left",
|
|
329
|
-
onSubmit: h[0] || (h[0] =
|
|
329
|
+
onSubmit: h[0] || (h[0] = gt(() => {
|
|
330
330
|
}, ["prevent"]))
|
|
331
331
|
}, {
|
|
332
332
|
default: w(() => [
|
|
333
|
-
N(
|
|
334
|
-
|
|
335
|
-
(S(!0), F(Y, null, ge(
|
|
333
|
+
N(n.$slots, "default", {}, void 0, !0),
|
|
334
|
+
n.columns.length ? (S(), F(Y, { key: 0 }, [
|
|
335
|
+
(S(!0), F(Y, null, ge(n.columns, (f) => {
|
|
336
336
|
var y, t, C;
|
|
337
337
|
return S(), F(Y, {
|
|
338
338
|
key: f.prop
|
|
339
339
|
}, [
|
|
340
|
-
!
|
|
341
|
-
k(
|
|
340
|
+
!i(zt)((y = f.search) == null ? void 0 : y.isShow) || (t = f.search) != null && t.isShow ? (S(), F("div", ua, [
|
|
341
|
+
k(i(Mt), null, me({
|
|
342
342
|
default: w(() => [
|
|
343
|
-
k(
|
|
343
|
+
k(ra, {
|
|
344
344
|
column: f,
|
|
345
|
-
"search-param":
|
|
346
|
-
onSearch:
|
|
345
|
+
"search-param": n.searchParam,
|
|
346
|
+
onSearch: n.search
|
|
347
347
|
}, null, 8, ["column", "search-param", "onSearch"])
|
|
348
348
|
]),
|
|
349
349
|
_: 2
|
|
@@ -351,20 +351,20 @@ const oe = (g, d) => {
|
|
|
351
351
|
(C = f.search) != null && C.label ? {
|
|
352
352
|
name: "label",
|
|
353
353
|
fn: w(() => [
|
|
354
|
-
k(
|
|
354
|
+
k(i(It), { size: 4 }, {
|
|
355
355
|
default: w(() => {
|
|
356
356
|
var o, p;
|
|
357
357
|
return [
|
|
358
|
-
|
|
359
|
-
(o = f.search) != null && o.tooltip ? (S(),
|
|
358
|
+
z("span", null, X(`${f.search.label}`), 1),
|
|
359
|
+
(o = f.search) != null && o.tooltip ? (S(), R(i(Ce), {
|
|
360
360
|
key: 0,
|
|
361
361
|
effect: "dark",
|
|
362
362
|
content: (p = f.search) == null ? void 0 : p.tooltip,
|
|
363
363
|
placement: "top"
|
|
364
364
|
}, {
|
|
365
365
|
default: w(() => h[1] || (h[1] = [
|
|
366
|
-
|
|
367
|
-
class:
|
|
366
|
+
z("i", {
|
|
367
|
+
class: je("iconfont icon-yiwen")
|
|
368
368
|
}, null, -1)
|
|
369
369
|
])),
|
|
370
370
|
_: 2
|
|
@@ -373,7 +373,7 @@ const oe = (g, d) => {
|
|
|
373
373
|
}),
|
|
374
374
|
_: 2
|
|
375
375
|
}, 1024),
|
|
376
|
-
h[2] || (h[2] =
|
|
376
|
+
h[2] || (h[2] = z("span", null, ":", -1))
|
|
377
377
|
]),
|
|
378
378
|
key: "0"
|
|
379
379
|
} : void 0
|
|
@@ -381,14 +381,14 @@ const oe = (g, d) => {
|
|
|
381
381
|
])) : I("", !0)
|
|
382
382
|
], 64);
|
|
383
383
|
}), 128)),
|
|
384
|
-
d.isShowSearchBtn ? (S(),
|
|
384
|
+
d.isShowSearchBtn ? (S(), R(i(Ee), {
|
|
385
385
|
key: 0,
|
|
386
386
|
type: "primary",
|
|
387
387
|
class: "table-search--search-btn",
|
|
388
|
-
onClick:
|
|
388
|
+
onClick: n.search
|
|
389
389
|
}, {
|
|
390
390
|
icon: w(() => h[3] || (h[3] = [
|
|
391
|
-
|
|
391
|
+
z("i", { class: "ztable-iconfont icon-zhihao-table-search" }, null, -1)
|
|
392
392
|
])),
|
|
393
393
|
default: w(() => [
|
|
394
394
|
h[4] || (h[4] = Q(" 搜索 "))
|
|
@@ -399,22 +399,22 @@ const oe = (g, d) => {
|
|
|
399
399
|
]),
|
|
400
400
|
_: 3
|
|
401
401
|
}, 8, ["model"]),
|
|
402
|
-
d.isShowResetBtn &&
|
|
403
|
-
k(
|
|
402
|
+
d.isShowResetBtn && n.columns.length ? (S(), F("div", ia, [
|
|
403
|
+
k(i(Ce), {
|
|
404
404
|
class: "box-item",
|
|
405
405
|
effect: "light",
|
|
406
406
|
content: "重置",
|
|
407
407
|
placement: "top"
|
|
408
408
|
}, {
|
|
409
409
|
default: w(() => [
|
|
410
|
-
k(
|
|
410
|
+
k(i(Ee), {
|
|
411
411
|
class: "table-search--reset-btn",
|
|
412
|
-
onClick:
|
|
412
|
+
onClick: n.reset
|
|
413
413
|
}, {
|
|
414
414
|
icon: w(() => [
|
|
415
|
-
k(
|
|
415
|
+
k(i(be), { size: 14 }, {
|
|
416
416
|
default: w(() => [
|
|
417
|
-
k(
|
|
417
|
+
k(i(Ft))
|
|
418
418
|
]),
|
|
419
419
|
_: 1
|
|
420
420
|
})
|
|
@@ -427,7 +427,7 @@ const oe = (g, d) => {
|
|
|
427
427
|
])) : I("", !0)
|
|
428
428
|
]));
|
|
429
429
|
}
|
|
430
|
-
}),
|
|
430
|
+
}), da = /* @__PURE__ */ se(ca, [["__scopeId", "data-v-e524e82e"]]), pa = { class: "el-pagination__total zh-page-total" }, ha = /* @__PURE__ */ le({
|
|
431
431
|
name: "Pagination",
|
|
432
432
|
__name: "tablePagination",
|
|
433
433
|
props: {
|
|
@@ -436,7 +436,7 @@ const oe = (g, d) => {
|
|
|
436
436
|
handleCurrentChange: { type: Function }
|
|
437
437
|
},
|
|
438
438
|
setup(g) {
|
|
439
|
-
return (d,
|
|
439
|
+
return (d, n) => d.pageable.total ? (S(), R(i(Lt), {
|
|
440
440
|
key: 0,
|
|
441
441
|
class: "zh-pagination",
|
|
442
442
|
background: !0,
|
|
@@ -450,17 +450,17 @@ const oe = (g, d) => {
|
|
|
450
450
|
}, {
|
|
451
451
|
default: w(() => [
|
|
452
452
|
N(d.$slots, "zhPaginationLeftSlot", { pageable: d.pageable }, () => [
|
|
453
|
-
|
|
453
|
+
z("div", pa, "共" + X(d.pageable.total) + "条数据", 1)
|
|
454
454
|
], !0)
|
|
455
455
|
]),
|
|
456
456
|
_: 3
|
|
457
457
|
}, 8, ["current-page", "page-size", "total", "onSizeChange", "onCurrentChange"])) : I("", !0);
|
|
458
458
|
}
|
|
459
|
-
}),
|
|
460
|
-
function
|
|
461
|
-
return typeof g == "function" || Object.prototype.toString.call(g) === "[object Object]" && !
|
|
459
|
+
}), fa = /* @__PURE__ */ se(ha, [["__scopeId", "data-v-5965b30c"]]);
|
|
460
|
+
function Te(g) {
|
|
461
|
+
return typeof g == "function" || Object.prototype.toString.call(g) === "[object Object]" && !vt(g);
|
|
462
462
|
}
|
|
463
|
-
const
|
|
463
|
+
const ma = /* @__PURE__ */ le({
|
|
464
464
|
name: "TableColumn",
|
|
465
465
|
__name: "TableColumn",
|
|
466
466
|
props: {
|
|
@@ -470,37 +470,37 @@ const ha = /* @__PURE__ */ le({
|
|
|
470
470
|
}
|
|
471
471
|
},
|
|
472
472
|
setup(g) {
|
|
473
|
-
const d = g,
|
|
473
|
+
const d = g, n = B(d.column), h = Ne(), f = Ke("enumMap", B(/* @__PURE__ */ new Map())), y = (o, p) => f.value.get(o.prop) && o.isFilterEnum ? Ue(he(p.row, o.prop), f.value.get(o.prop), o.fieldNames) : Xt(he(p.row, o.prop)), t = (o, p) => Ue(he(p.row, o.prop), f.value.get(o.prop), o.fieldNames, "tag"), C = (o) => k(Y, null, [o.isShow && k(re, G(o, {
|
|
474
474
|
"class-name": o.wrap && "table-column--wrap",
|
|
475
475
|
showOverflowTooltip: o.showOverflowTooltip ?? o.prop !== "operation"
|
|
476
476
|
}), {
|
|
477
477
|
default: (p) => {
|
|
478
|
-
var
|
|
478
|
+
var A, x, H;
|
|
479
479
|
let O;
|
|
480
480
|
if (o._children) return o._children.map((j) => C(j));
|
|
481
481
|
if (o.render) return o.render(p);
|
|
482
482
|
if (o.prop === "operation") {
|
|
483
483
|
if (!h[W(o.prop)]) {
|
|
484
|
-
|
|
484
|
+
n.value.width = 0;
|
|
485
485
|
return;
|
|
486
486
|
}
|
|
487
|
-
const j = ((x = (
|
|
488
|
-
var M, L,
|
|
489
|
-
return (((M = m.type) == null ? void 0 : M.name) === "ElButton" || ((L = m.type) == null ? void 0 : L.name) === "ZhButton") && m.children !== "v-if" ? m : (
|
|
487
|
+
const j = ((x = (A = h[W(o.prop)](p)) == null ? void 0 : A.at(0)) == null ? void 0 : x.children) || [], E = (T) => Array.from(T).map((m) => {
|
|
488
|
+
var M, L, D;
|
|
489
|
+
return (((M = m.type) == null ? void 0 : M.name) === "ElButton" || ((L = m.type) == null ? void 0 : L.name) === "ZhButton") && m.children !== "v-if" ? m : (D = m.children) != null && D.length ? E(m.children) : null;
|
|
490
490
|
}).filter(Boolean).flat(), e = E(j), v = (T) => {
|
|
491
491
|
let m = "", M = 0;
|
|
492
|
-
T.forEach((
|
|
493
|
-
m +=
|
|
494
|
-
const
|
|
495
|
-
(
|
|
492
|
+
T.forEach((V) => {
|
|
493
|
+
m += V.children.default()[0].children;
|
|
494
|
+
const Z = V.props || {};
|
|
495
|
+
(Z.loading === !0 || Z.loading === "") && M++;
|
|
496
496
|
});
|
|
497
|
-
const L = oe(m, 14),
|
|
498
|
-
return L +
|
|
497
|
+
const L = oe(m, 14), D = 16 * (T.length > 0 ? T.length - 1 : 0), K = M * 20;
|
|
498
|
+
return L + D + K;
|
|
499
499
|
}, _ = (T) => {
|
|
500
|
-
|
|
501
|
-
const m =
|
|
500
|
+
n.value.hasOperationMaxWidth || (n.value.width = 0, n.value.hasOperationMaxWidth = !0);
|
|
501
|
+
const m = n.value.width;
|
|
502
502
|
let M = 0;
|
|
503
|
-
T > 0 && (M = Math.round(T) + 32), M > Number.parseInt((m == null ? void 0 : m.toString()) || "0") && (
|
|
503
|
+
T > 0 && (M = Math.round(T) + 32), M > Number.parseInt((m == null ? void 0 : m.toString()) || "0") && (n.value.width = M, n.value.hasOperationMaxWidth = !0);
|
|
504
504
|
};
|
|
505
505
|
if (e.length <= 3 || o.expandOperationButtons) {
|
|
506
506
|
const T = Math.ceil(v(e));
|
|
@@ -509,31 +509,31 @@ const ha = /* @__PURE__ */ le({
|
|
|
509
509
|
class: "operation-container all-action"
|
|
510
510
|
}, [h[W(o.prop)](p)]);
|
|
511
511
|
}
|
|
512
|
-
const b = [],
|
|
512
|
+
const b = [], s = e.slice(0, 2), c = k(Ee, {
|
|
513
513
|
link: !0,
|
|
514
514
|
type: "primary"
|
|
515
515
|
}, {
|
|
516
516
|
default: () => [Q("更多")]
|
|
517
517
|
});
|
|
518
|
-
b.push(...
|
|
519
|
-
default: () =>
|
|
518
|
+
b.push(...s), b[3] = k(Rt, null, {
|
|
519
|
+
default: () => c,
|
|
520
520
|
dropdown: () => {
|
|
521
521
|
let T;
|
|
522
|
-
return k(
|
|
522
|
+
return k(Dt, null, Te(T = e.slice(2).map((m) => k(Vt, null, Te(m) ? m : {
|
|
523
523
|
default: () => [m]
|
|
524
524
|
}))) ? T : {
|
|
525
525
|
default: () => [T]
|
|
526
526
|
});
|
|
527
527
|
}
|
|
528
528
|
});
|
|
529
|
-
const P = v([...
|
|
529
|
+
const P = v([...s, c]);
|
|
530
530
|
return _(P), k("div", {
|
|
531
531
|
class: "operation-container"
|
|
532
532
|
}, [b]);
|
|
533
533
|
}
|
|
534
|
-
return h[W(o.prop)] ? h[W(o.prop)](p) : o.tag ? k(
|
|
534
|
+
return h[W(o.prop)] ? h[W(o.prop)](p) : o.tag ? k(Ye, {
|
|
535
535
|
type: t(o, p)
|
|
536
|
-
},
|
|
536
|
+
}, Te(O = y(o, p)) ? O : {
|
|
537
537
|
default: () => [O]
|
|
538
538
|
}) : o.click && y(o, p) !== ae ? k("span", {
|
|
539
539
|
class: "el-link el-link--primary scan-link",
|
|
@@ -541,96 +541,96 @@ const ha = /* @__PURE__ */ le({
|
|
|
541
541
|
o.click(p == null ? void 0 : p.row, p == null ? void 0 : p.$index);
|
|
542
542
|
}
|
|
543
543
|
}, [o.formatter ? o.formatter(p.row, p.column, p.row[o.prop], p.$index) : y(o, p)]) : k("span", {
|
|
544
|
-
class: ((H =
|
|
544
|
+
class: ((H = Qt(he(p.row, o.prop), f.value.get(o.prop))) == null ? void 0 : H.state) || "text"
|
|
545
545
|
}, [o.formatter ? o.formatter(p.row, p.column, p.row[o.prop], p.$index) : y(o, p)]);
|
|
546
546
|
},
|
|
547
547
|
header: (p) => o.headerRender ? o.headerRender(p) : h[`${W(o.prop)}Header`] ? h[`${W(o.prop)}Header`](p) : o.label
|
|
548
548
|
})]);
|
|
549
|
-
return (o, p) => (S(),
|
|
549
|
+
return (o, p) => (S(), R(C, qe(xe(n.value)), null, 16));
|
|
550
550
|
}
|
|
551
|
-
}),
|
|
551
|
+
}), ga = { class: "custom-column-dialog" }, va = { class: "table-body" }, Ca = { class: "name" }, ba = {
|
|
552
552
|
key: 0,
|
|
553
553
|
class: "ml-10"
|
|
554
|
-
},
|
|
554
|
+
}, ya = { class: "custom-width-label text" }, Sa = {
|
|
555
555
|
key: 0,
|
|
556
556
|
class: "custom-width-input-box"
|
|
557
|
-
},
|
|
557
|
+
}, wa = { class: "custom-column-footer" }, ka = { class: "flex-1" }, _a = /* @__PURE__ */ le({
|
|
558
558
|
name: "ColSetting",
|
|
559
559
|
__name: "ColSetting",
|
|
560
560
|
props: {
|
|
561
561
|
originTableColumns: { default: () => [] }
|
|
562
562
|
},
|
|
563
563
|
emits: ["close", "submit", "dragSort"],
|
|
564
|
-
setup(g, { expose: d, emit:
|
|
565
|
-
const h =
|
|
566
|
-
let O =
|
|
564
|
+
setup(g, { expose: d, emit: n }) {
|
|
565
|
+
const h = B(), f = B(!1), y = g, t = B([]), C = B((/* @__PURE__ */ new Date()).getTime()), o = B(!1), p = B();
|
|
566
|
+
let O = B([]), A = B([]);
|
|
567
567
|
const x = (b) => {
|
|
568
|
-
|
|
568
|
+
A.value = b, O.value = [], t.value = b.filter((s) => (s.hideInCustomColumn && O.value.push(s), !s.hideInCustomColumn)), o.value = !0, ve(() => {
|
|
569
569
|
e();
|
|
570
570
|
});
|
|
571
571
|
}, H = (b) => {
|
|
572
572
|
f.value = b;
|
|
573
|
-
}, j =
|
|
574
|
-
|
|
573
|
+
}, j = n, E = async () => {
|
|
574
|
+
A.value = J([...O.value, ...t.value]), j("submit", A.value), o.value = !1;
|
|
575
575
|
}, e = () => {
|
|
576
576
|
p.value && (p.value.destroy(), C.value = (/* @__PURE__ */ new Date()).getTime(), h.value.doLayout()), ve(() => {
|
|
577
577
|
const b = document.querySelector(".custom-column-dialog tbody");
|
|
578
|
-
p.value =
|
|
578
|
+
p.value = Ge.create(b, {
|
|
579
579
|
handle: ".move",
|
|
580
580
|
animation: 300,
|
|
581
581
|
filter: ".operation",
|
|
582
|
-
onEnd({ newIndex:
|
|
583
|
-
if (!
|
|
582
|
+
onEnd({ newIndex: s, oldIndex: c }) {
|
|
583
|
+
if (!s && s !== 0 || !c && c !== 0) return;
|
|
584
584
|
let P = J(t.value);
|
|
585
|
-
const T = P[
|
|
586
|
-
if (
|
|
587
|
-
for (let m =
|
|
585
|
+
const T = P[c];
|
|
586
|
+
if (s < c)
|
|
587
|
+
for (let m = s; m < c; m++)
|
|
588
588
|
P[m].order = String(Number(m) + 1);
|
|
589
589
|
else
|
|
590
|
-
for (let m =
|
|
590
|
+
for (let m = c + 1; m <= s; m++)
|
|
591
591
|
P[m].order = String(Number(m) - 1);
|
|
592
|
-
T.order = String(
|
|
592
|
+
T.order = String(s), t.value = J(P);
|
|
593
593
|
}
|
|
594
594
|
});
|
|
595
595
|
});
|
|
596
596
|
}, v = () => {
|
|
597
597
|
const b = J(y.originTableColumns);
|
|
598
|
-
f.value ? (t.value = b, O.value = []) : t.value = t.value.map((
|
|
599
|
-
const
|
|
600
|
-
return !(
|
|
598
|
+
f.value ? (t.value = b, O.value = []) : t.value = t.value.map((s) => {
|
|
599
|
+
const c = t.value.find((P) => P.prop === s.prop);
|
|
600
|
+
return !(c != null && c.isShow) || c.prop === "operation" ? s : b.find((P) => P.prop === s.prop);
|
|
601
601
|
}), e();
|
|
602
602
|
}, _ = () => {
|
|
603
603
|
o.value = !1;
|
|
604
604
|
};
|
|
605
605
|
return d({
|
|
606
606
|
openColSetting: x
|
|
607
|
-
}), (b,
|
|
608
|
-
k(
|
|
607
|
+
}), (b, s) => (S(), F("div", ga, [
|
|
608
|
+
k(xt, {
|
|
609
609
|
modelValue: o.value,
|
|
610
|
-
"onUpdate:modelValue":
|
|
610
|
+
"onUpdate:modelValue": s[1] || (s[1] = (c) => o.value = c),
|
|
611
611
|
size: "middle"
|
|
612
612
|
}, {
|
|
613
|
-
header: w(() =>
|
|
614
|
-
|
|
615
|
-
|
|
613
|
+
header: w(() => s[2] || (s[2] = [
|
|
614
|
+
z("div", { class: "title" }, "自定义列", -1),
|
|
615
|
+
z("div", { class: "sub-title" }, "勾选需要展示的列,拖动列名进行排序", -1)
|
|
616
616
|
])),
|
|
617
617
|
footer: w(() => [
|
|
618
|
-
|
|
619
|
-
k(
|
|
618
|
+
z("div", wa, [
|
|
619
|
+
k(i(Ve), {
|
|
620
620
|
modelValue: f.value,
|
|
621
|
-
"onUpdate:modelValue":
|
|
621
|
+
"onUpdate:modelValue": s[0] || (s[0] = (c) => f.value = c),
|
|
622
622
|
class: "checkbox",
|
|
623
623
|
label: "全局",
|
|
624
624
|
onChange: H
|
|
625
625
|
}, null, 8, ["modelValue"]),
|
|
626
|
-
|
|
627
|
-
k(
|
|
628
|
-
default: w(() =>
|
|
626
|
+
z("div", ka, [
|
|
627
|
+
k(Pe, { onClick: _ }, {
|
|
628
|
+
default: w(() => s[4] || (s[4] = [
|
|
629
629
|
Q("取消")
|
|
630
630
|
])),
|
|
631
631
|
_: 1
|
|
632
632
|
}),
|
|
633
|
-
k(
|
|
633
|
+
k(Pe, {
|
|
634
634
|
class: "w-auto",
|
|
635
635
|
onClick: v
|
|
636
636
|
}, {
|
|
@@ -639,11 +639,11 @@ const ha = /* @__PURE__ */ le({
|
|
|
639
639
|
]),
|
|
640
640
|
_: 1
|
|
641
641
|
}),
|
|
642
|
-
k(
|
|
642
|
+
k(Pe, {
|
|
643
643
|
type: "primary",
|
|
644
644
|
onClick: E
|
|
645
645
|
}, {
|
|
646
|
-
default: w(() =>
|
|
646
|
+
default: w(() => s[5] || (s[5] = [
|
|
647
647
|
Q("保存")
|
|
648
648
|
])),
|
|
649
649
|
_: 1
|
|
@@ -652,44 +652,44 @@ const ha = /* @__PURE__ */ le({
|
|
|
652
652
|
])
|
|
653
653
|
]),
|
|
654
654
|
default: w(() => [
|
|
655
|
-
|
|
656
|
-
(S(),
|
|
655
|
+
z("div", va, [
|
|
656
|
+
(S(), R(i(Qe), {
|
|
657
657
|
ref_key: "tableRef",
|
|
658
658
|
ref: h,
|
|
659
659
|
class: "custom-colum-table",
|
|
660
660
|
key: C.value,
|
|
661
|
-
data: t.value.filter((
|
|
662
|
-
"row-class-name": (
|
|
661
|
+
data: t.value.filter((c) => !c.hideInCustomColumn),
|
|
662
|
+
"row-class-name": (c) => c.row.prop === "operation" ? "operation" : ""
|
|
663
663
|
}, {
|
|
664
664
|
default: w(() => [
|
|
665
|
-
k(
|
|
665
|
+
k(i(re), {
|
|
666
666
|
width: "100",
|
|
667
667
|
label: "选择"
|
|
668
668
|
}, {
|
|
669
|
-
default: w(({ row:
|
|
670
|
-
k(
|
|
669
|
+
default: w(({ row: c }) => [
|
|
670
|
+
k(i(Ve), {
|
|
671
671
|
class: "custom-column-check",
|
|
672
|
-
modelValue:
|
|
673
|
-
"onUpdate:modelValue": (P) =>
|
|
674
|
-
disabled:
|
|
672
|
+
modelValue: c.isShow,
|
|
673
|
+
"onUpdate:modelValue": (P) => c.isShow = P,
|
|
674
|
+
disabled: c.readonly
|
|
675
675
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
|
|
676
676
|
]),
|
|
677
677
|
_: 1
|
|
678
678
|
}),
|
|
679
|
-
k(
|
|
679
|
+
k(i(re), {
|
|
680
680
|
prop: "label",
|
|
681
681
|
label: "名称"
|
|
682
682
|
}, {
|
|
683
|
-
default: w(({ row:
|
|
684
|
-
|
|
685
|
-
Q(X(
|
|
686
|
-
|
|
687
|
-
|
|
683
|
+
default: w(({ row: c }) => [
|
|
684
|
+
z("div", Ca, [
|
|
685
|
+
Q(X(c.label) + " ", 1),
|
|
686
|
+
c.readonly ? (S(), F("span", ba, "(必选)")) : I("", !0),
|
|
687
|
+
c.prop !== "operation" ? (S(), R(i(be), {
|
|
688
688
|
key: 1,
|
|
689
689
|
class: "move move-icon"
|
|
690
690
|
}, {
|
|
691
691
|
default: w(() => [
|
|
692
|
-
k(
|
|
692
|
+
k(i(Ot))
|
|
693
693
|
]),
|
|
694
694
|
_: 1
|
|
695
695
|
})) : I("", !0)
|
|
@@ -697,21 +697,21 @@ const ha = /* @__PURE__ */ le({
|
|
|
697
697
|
]),
|
|
698
698
|
_: 1
|
|
699
699
|
}),
|
|
700
|
-
k(
|
|
700
|
+
k(i(re), {
|
|
701
701
|
prop: "width",
|
|
702
702
|
label: "宽度",
|
|
703
703
|
width: "180"
|
|
704
704
|
}, {
|
|
705
|
-
default: w(({ row:
|
|
706
|
-
|
|
707
|
-
class:
|
|
705
|
+
default: w(({ row: c }) => [
|
|
706
|
+
z("div", {
|
|
707
|
+
class: je(`custom-width-box ${c.readonly && "readonly"}`)
|
|
708
708
|
}, [
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
k(
|
|
713
|
-
modelValue:
|
|
714
|
-
"onUpdate:modelValue": (P) =>
|
|
709
|
+
s[3] || (s[3] = z("span", { class: "text" }, "宽度", -1)),
|
|
710
|
+
z("span", ya, X(c.width) + " px", 1),
|
|
711
|
+
c.readonly ? I("", !0) : (S(), F("div", Sa, [
|
|
712
|
+
k(i(Xe), {
|
|
713
|
+
modelValue: c.width,
|
|
714
|
+
"onUpdate:modelValue": (P) => c.width = P,
|
|
715
715
|
class: "custom-width-input",
|
|
716
716
|
min: 10,
|
|
717
717
|
max: 1e3,
|
|
@@ -731,19 +731,19 @@ const ha = /* @__PURE__ */ le({
|
|
|
731
731
|
}, 8, ["modelValue"])
|
|
732
732
|
]));
|
|
733
733
|
}
|
|
734
|
-
}),
|
|
734
|
+
}), Pa = /* @__PURE__ */ se(_a, [["__scopeId", "data-v-1ff4d8b0"]]), Ta = { class: "no-card table-main zh-table" }, Ea = { class: "table-title-container" }, $a = {
|
|
735
735
|
key: 0,
|
|
736
736
|
class: "table-title"
|
|
737
|
-
},
|
|
737
|
+
}, Ba = {
|
|
738
738
|
key: 1,
|
|
739
739
|
class: "table-header-tip"
|
|
740
|
-
},
|
|
740
|
+
}, za = { class: "table-header-container" }, Ma = {
|
|
741
741
|
key: 0,
|
|
742
742
|
class: "table-header"
|
|
743
|
-
},
|
|
743
|
+
}, Ia = { key: 0 }, Fa = { class: "table-body-container" }, La = { class: "text d-flex inline-input-text pointer" }, Ra = {
|
|
744
744
|
key: 1,
|
|
745
745
|
class: "inline-input-box d-flex"
|
|
746
|
-
}, Da = { class: "table-empty" }, Va = ["src"],
|
|
746
|
+
}, Da = { class: "table-empty" }, Va = ["src"], Oa = /* @__PURE__ */ le({
|
|
747
747
|
name: "ZhTable",
|
|
748
748
|
__name: "Table",
|
|
749
749
|
props: {
|
|
@@ -775,158 +775,170 @@ const ha = /* @__PURE__ */ le({
|
|
|
775
775
|
searchClearSelection: { type: Boolean, default: !0 }
|
|
776
776
|
},
|
|
777
777
|
emits: ["search", "reset", "dargSort"],
|
|
778
|
-
setup(g, { expose: d, emit:
|
|
779
|
-
var
|
|
780
|
-
const h =
|
|
781
|
-
mounted(
|
|
782
|
-
var
|
|
783
|
-
(
|
|
778
|
+
setup(g, { expose: d, emit: n }) {
|
|
779
|
+
var Re;
|
|
780
|
+
const h = B((/* @__PURE__ */ new Date()).getTime()), f = {
|
|
781
|
+
mounted(a) {
|
|
782
|
+
var r;
|
|
783
|
+
(r = a.querySelector("input")) == null || r.focus();
|
|
784
784
|
}
|
|
785
|
-
}, y =
|
|
785
|
+
}, y = Ne(), t = g, C = B(), o = ["selection", "radio", "index", "expand", "sort", "input"], p = B(t.isShowSearch), O = B(""), A = B({}), x = B(t.maxHeight), { selectionChange: H, selectedList: j, selectedListIds: E, isSelected: e } = na(t.rowKey, t.selectChangeCallback), {
|
|
786
786
|
loading: v,
|
|
787
787
|
tableData: _,
|
|
788
788
|
pageable: b,
|
|
789
|
-
searchParam:
|
|
790
|
-
searchInitParam:
|
|
789
|
+
searchParam: s,
|
|
790
|
+
searchInitParam: c,
|
|
791
791
|
getTableList: P,
|
|
792
792
|
search: T,
|
|
793
793
|
reset: m,
|
|
794
794
|
handleSizeChange: M,
|
|
795
795
|
handleCurrentChange: L
|
|
796
|
-
} =
|
|
797
|
-
function
|
|
798
|
-
return
|
|
796
|
+
} = aa(t.requestApi, t.initParam, t.pagination, t.dataCallback, t.requestError, t.handleParam), D = (a) => {
|
|
797
|
+
function r(pt) {
|
|
798
|
+
return pt.replace(/[A-Z]/g, (ht) => "_" + ht.toLowerCase());
|
|
799
799
|
}
|
|
800
|
-
const
|
|
800
|
+
const u = {
|
|
801
801
|
ascending: "asc",
|
|
802
802
|
descending: "desc"
|
|
803
|
-
}, { prop: l, order: $ } =
|
|
804
|
-
|
|
805
|
-
...
|
|
803
|
+
}, { prop: l, order: $ } = a, q = r(W(l)), pe = u[$];
|
|
804
|
+
s.value = {
|
|
805
|
+
...s.value,
|
|
806
806
|
sortKey: q,
|
|
807
807
|
sortOrder: pe
|
|
808
808
|
}, b.value.page = 1, T();
|
|
809
|
-
}, K = () => C.value.clearSelection(),
|
|
810
|
-
|
|
809
|
+
}, K = () => C.value.clearSelection(), V = () => C.value.clearSort(), Z = B(!1), ue = () => {
|
|
810
|
+
lt(), t.customColumn && ct(), t.requestAuto && P(), t.data && (b.value.total = t.data.length);
|
|
811
811
|
};
|
|
812
|
-
|
|
812
|
+
De(() => {
|
|
813
813
|
ue(), ve(() => {
|
|
814
|
-
|
|
814
|
+
Z.value = !0;
|
|
815
815
|
});
|
|
816
|
-
}), gt(() => {
|
|
817
|
-
A.value && ue();
|
|
818
|
-
}), vt(() => {
|
|
819
816
|
}), Ct(() => {
|
|
817
|
+
Z.value && ue();
|
|
818
|
+
}), bt(() => {
|
|
819
|
+
}), yt(() => {
|
|
820
820
|
});
|
|
821
|
-
const ie = U(() => t.data ? t.pagination ? t.data.slice((b.value.page - 1) * b.value.size, b.value.size * b.value.page) : t.data : _.value),
|
|
822
|
-
b.value.total =
|
|
821
|
+
const ie = U(() => t.data ? t.pagination ? t.data.slice((b.value.page - 1) * b.value.size, b.value.size * b.value.page) : t.data : _.value), et = (a) => {
|
|
822
|
+
b.value.total = a;
|
|
823
823
|
};
|
|
824
|
-
|
|
824
|
+
St(() => t.initParam, P, { deep: !0 });
|
|
825
825
|
let ne = te(t.columns);
|
|
826
|
-
const
|
|
827
|
-
if (!
|
|
828
|
-
if (typeof
|
|
829
|
-
ee.value.set(
|
|
830
|
-
const { data:
|
|
831
|
-
ee.value.set(
|
|
826
|
+
const tt = U(() => Be(ne)), ee = B(/* @__PURE__ */ new Map()), at = async ({ prop: a, enum: r }) => {
|
|
827
|
+
if (!r || ee.value.has(a) && (typeof r == "function" || ee.value.get(a) === r)) return;
|
|
828
|
+
if (typeof r != "function") return ee.value.set(a, i(r));
|
|
829
|
+
ee.value.set(a, []);
|
|
830
|
+
const { data: u } = await r();
|
|
831
|
+
ee.value.set(a, u);
|
|
832
832
|
};
|
|
833
|
-
|
|
834
|
-
const
|
|
833
|
+
wt("enumMap", ee);
|
|
834
|
+
const Be = (a, r = []) => (a.forEach(async (u) => {
|
|
835
835
|
var l;
|
|
836
|
-
(l =
|
|
837
|
-
}),
|
|
836
|
+
(l = u._children) != null && l.length && r.push(...Be(u._children)), r.push(u), u.isShow = u.isShow ?? !0, u.isFilterEnum = u.isFilterEnum ?? !0, await at(u);
|
|
837
|
+
}), r.filter((u) => {
|
|
838
838
|
var l;
|
|
839
|
-
return !((l =
|
|
840
|
-
})),
|
|
841
|
-
var
|
|
842
|
-
return (
|
|
843
|
-
var
|
|
844
|
-
return ((
|
|
845
|
-
}).sort((
|
|
839
|
+
return !((l = u._children) != null && l.length);
|
|
840
|
+
})), ze = U(() => {
|
|
841
|
+
var a;
|
|
842
|
+
return (a = tt.value) == null ? void 0 : a.filter((r) => {
|
|
843
|
+
var u, l;
|
|
844
|
+
return ((u = r.search) == null ? void 0 : u.el) || ((l = r.search) == null ? void 0 : l.render);
|
|
845
|
+
}).sort((r, u) => r.search.order - u.search.order);
|
|
846
846
|
});
|
|
847
|
-
(
|
|
847
|
+
(Re = ze.value) == null || Re.forEach((a, r) => {
|
|
848
848
|
var $, q, pe;
|
|
849
|
-
|
|
850
|
-
const
|
|
851
|
-
l != null && (
|
|
849
|
+
a.search.order = (($ = a.search) == null ? void 0 : $.order) ?? r + 2;
|
|
850
|
+
const u = ((q = a.search) == null ? void 0 : q.key) ?? W(a.prop), l = (pe = a.search) == null ? void 0 : pe.defaultValue;
|
|
851
|
+
l != null && (c.value[u] = l, s.value[u] = l);
|
|
852
852
|
});
|
|
853
|
-
const ye =
|
|
854
|
-
var
|
|
855
|
-
t.searchClearSelection && ((
|
|
856
|
-
},
|
|
857
|
-
t.beforeReset && t.beforeReset(), m(),
|
|
858
|
-
},
|
|
859
|
-
const
|
|
860
|
-
|
|
853
|
+
const ye = n, nt = () => {
|
|
854
|
+
var a;
|
|
855
|
+
t.searchClearSelection && ((a = C.value) == null || a.clearSelection()), T(), ye("search");
|
|
856
|
+
}, ot = () => {
|
|
857
|
+
t.beforeReset && t.beforeReset(), m(), V(), ye("reset");
|
|
858
|
+
}, lt = () => {
|
|
859
|
+
const a = document.querySelector(".el-table__body-wrapper tbody");
|
|
860
|
+
a && Ge.create(a, {
|
|
861
861
|
handle: ".move",
|
|
862
862
|
animation: 300,
|
|
863
|
-
onEnd({ newIndex:
|
|
864
|
-
const [l] = ie.value.splice(
|
|
865
|
-
ie.value.splice(
|
|
863
|
+
onEnd({ newIndex: r, oldIndex: u }) {
|
|
864
|
+
const [l] = ie.value.splice(u, 1);
|
|
865
|
+
ie.value.splice(r, 0, l), ye("dargSort", { newIndex: r, oldIndex: u });
|
|
866
866
|
}
|
|
867
867
|
});
|
|
868
|
-
}, ce =
|
|
869
|
-
const
|
|
870
|
-
|
|
871
|
-
},
|
|
872
|
-
|
|
873
|
-
},
|
|
874
|
-
const
|
|
875
|
-
|
|
876
|
-
},
|
|
877
|
-
(
|
|
878
|
-
readonly:
|
|
879
|
-
hideInCustomColumn:
|
|
880
|
-
order:
|
|
868
|
+
}, ce = B(0), rt = (a, r) => {
|
|
869
|
+
const u = _.value.findIndex((l) => l.$showInput);
|
|
870
|
+
u > -1 && (_.value[u] = J(A.value), _.value[u].$showInput = !1), ce.value = Ze(a, String(r)), a.$showInput = !0, A.value = J(a);
|
|
871
|
+
}, st = async (a, r, u) => {
|
|
872
|
+
Kt(a, r, ce.value), u && await u(a), a.$showInput = !1, jt.success("更新成功"), await P();
|
|
873
|
+
}, ut = async (a) => {
|
|
874
|
+
const r = _.value.findIndex((u) => Nt(Oe(u, Ae), Oe(a, Ae)));
|
|
875
|
+
r > -1 && (_.value[r] = J(A.value), _.value[r].$showInput = !1);
|
|
876
|
+
}, Me = ea(t.customColumnCacheKey), Ie = B(null), Se = () => ne.map(
|
|
877
|
+
(a, r) => ({
|
|
878
|
+
readonly: a.isCustomDisable || ["id", "operation"].includes(String(a.prop)),
|
|
879
|
+
hideInCustomColumn: a.hideInCustomColumn || a.type === "selection",
|
|
880
|
+
order: r,
|
|
881
881
|
// originIndex: index,
|
|
882
|
-
width:
|
|
883
|
-
...
|
|
882
|
+
width: a.width || a.minWidth,
|
|
883
|
+
...a
|
|
884
884
|
})
|
|
885
|
-
).sort((
|
|
886
|
-
const
|
|
887
|
-
return
|
|
888
|
-
}),
|
|
885
|
+
).sort((a, r) => {
|
|
886
|
+
const u = Number(a.order), l = Number(r.order);
|
|
887
|
+
return u - l;
|
|
888
|
+
}), it = () => {
|
|
889
889
|
de = te(Se()), ve(() => {
|
|
890
|
-
|
|
890
|
+
Ie.value.openColSetting(J(de));
|
|
891
891
|
});
|
|
892
|
-
},
|
|
892
|
+
}, ct = () => {
|
|
893
893
|
if (!t.customColumnPageCacheKey) return;
|
|
894
|
-
const
|
|
895
|
-
if (
|
|
896
|
-
const
|
|
897
|
-
const l =
|
|
894
|
+
const a = Me.getColumnCache(t.customColumnPageCacheKey);
|
|
895
|
+
if (a != null && a.length) {
|
|
896
|
+
const r = ne.map((u) => {
|
|
897
|
+
const l = a.find(($) => $.prop === u.prop);
|
|
898
898
|
if (l) {
|
|
899
899
|
const $ = {
|
|
900
|
-
...
|
|
901
|
-
order: l.order ||
|
|
902
|
-
isShow: l.isShow !== void 0 ? l.isShow :
|
|
903
|
-
readonly: l.readonly !== void 0 ? l.readonly :
|
|
904
|
-
prop: l.prop ||
|
|
905
|
-
index: l.index ||
|
|
900
|
+
...u,
|
|
901
|
+
order: l.order || u.order,
|
|
902
|
+
isShow: l.isShow !== void 0 ? l.isShow : u.isShow,
|
|
903
|
+
readonly: l.readonly !== void 0 ? l.readonly : u.readonly,
|
|
904
|
+
prop: l.prop || u.prop,
|
|
905
|
+
index: l.index || u.index
|
|
906
906
|
};
|
|
907
|
-
return
|
|
907
|
+
return u.minWidth && ($.minWidth = l.minWidth || u.minWidth), u.width && ($.width = l.width || u.width), $;
|
|
908
908
|
}
|
|
909
|
-
return
|
|
909
|
+
return u;
|
|
910
910
|
});
|
|
911
|
-
de = te(
|
|
911
|
+
de = te(r), ne = te(de);
|
|
912
912
|
}
|
|
913
913
|
};
|
|
914
914
|
let de = te(Se());
|
|
915
|
-
const
|
|
915
|
+
const Fe = J(Se()), dt = (a) => {
|
|
916
916
|
if (!t.customColumnPageCacheKey) return console.error("请添加自定义列缓存配置项:customColumnPageCacheKey");
|
|
917
|
-
|
|
918
|
-
const
|
|
919
|
-
return
|
|
920
|
-
}), ne = te(J(
|
|
921
|
-
};
|
|
922
|
-
return
|
|
917
|
+
a = a.map((r) => {
|
|
918
|
+
const u = Fe.find((l) => l.prop === r.prop);
|
|
919
|
+
return u && u.minWidth && (r.minWidth = r.width, delete r.width), r;
|
|
920
|
+
}), ne = te(J(a)), Me.setColumnCache(t.customColumnPageCacheKey, a), h.value = (/* @__PURE__ */ new Date()).getTime(), C.value.doLayout();
|
|
921
|
+
}, Le = B(null), we = B(!1);
|
|
922
|
+
return De(() => {
|
|
923
|
+
const a = Le.value;
|
|
924
|
+
if (!a) return;
|
|
925
|
+
const r = Array.from(a.children);
|
|
926
|
+
if (r.length === 0) {
|
|
927
|
+
we.value = !0;
|
|
928
|
+
return;
|
|
929
|
+
}
|
|
930
|
+
we.value = r.every((u) => {
|
|
931
|
+
const l = getComputedStyle(u);
|
|
932
|
+
return l.display === "none" || l.visibility === "hidden" || u.hidden;
|
|
933
|
+
});
|
|
934
|
+
}), d({
|
|
923
935
|
element: C,
|
|
924
936
|
tableData: ie,
|
|
925
937
|
radio: O,
|
|
926
938
|
pageable: b,
|
|
927
|
-
searchParam:
|
|
928
|
-
searchInitParam:
|
|
929
|
-
setPageTotal:
|
|
939
|
+
searchParam: s,
|
|
940
|
+
searchInitParam: c,
|
|
941
|
+
setPageTotal: et,
|
|
930
942
|
getTableList: P,
|
|
931
943
|
search: T,
|
|
932
944
|
reset: m,
|
|
@@ -937,64 +949,68 @@ const ha = /* @__PURE__ */ le({
|
|
|
937
949
|
isSelected: e,
|
|
938
950
|
selectedList: j,
|
|
939
951
|
selectedListIds: E
|
|
940
|
-
}), (
|
|
941
|
-
const
|
|
942
|
-
return S(),
|
|
952
|
+
}), (a, r) => {
|
|
953
|
+
const u = kt("loading");
|
|
954
|
+
return S(), R(i(At), { locale: i(Zt) }, {
|
|
943
955
|
default: w(() => [
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
N(
|
|
956
|
+
z("div", Ta, [
|
|
957
|
+
z("div", Ea, [
|
|
958
|
+
a.title ? (S(), F("div", $a, X(a.title), 1)) : I("", !0),
|
|
959
|
+
i(y).headerTip ? (S(), F("div", Ba, [
|
|
960
|
+
N(a.$slots, "headerTip", {}, void 0, !0)
|
|
949
961
|
])) : I("", !0)
|
|
950
962
|
]),
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
search:
|
|
954
|
-
reset:
|
|
955
|
-
columns:
|
|
956
|
-
"search-param":
|
|
963
|
+
z("div", za, [
|
|
964
|
+
ke(k(da, {
|
|
965
|
+
search: nt,
|
|
966
|
+
reset: ot,
|
|
967
|
+
columns: ze.value,
|
|
968
|
+
"search-param": i(s),
|
|
957
969
|
"is-show-reset-btn": t.isShowResetBtn,
|
|
958
970
|
"is-show-search-btn": t.isShowSearchBtn
|
|
959
971
|
}, {
|
|
960
972
|
default: w(() => [
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
973
|
+
a.$slots.tableHeader && !we.value ? (S(), F("div", Ma, [
|
|
974
|
+
z("div", {
|
|
975
|
+
class: "header-button-ri",
|
|
976
|
+
ref_key: "headerRef",
|
|
977
|
+
ref: Le
|
|
978
|
+
}, [
|
|
979
|
+
N(a.$slots, "tableHeader", {
|
|
980
|
+
selectedList: i(j),
|
|
981
|
+
selectedListIds: i(E),
|
|
982
|
+
isSelected: i(e)
|
|
967
983
|
}, void 0, !0)
|
|
968
|
-
])
|
|
984
|
+
], 512)
|
|
969
985
|
])) : I("", !0)
|
|
970
986
|
]),
|
|
971
987
|
_: 3
|
|
972
988
|
}, 8, ["columns", "search-param", "is-show-reset-btn", "is-show-search-btn"]), [
|
|
973
|
-
[
|
|
989
|
+
[_t, p.value]
|
|
974
990
|
])
|
|
975
991
|
]),
|
|
976
|
-
|
|
977
|
-
N(
|
|
992
|
+
i(y).searchBarBottom ? (S(), F("div", Ia, [
|
|
993
|
+
N(a.$slots, "searchBarBottom", {}, void 0, !0)
|
|
978
994
|
])) : I("", !0),
|
|
979
|
-
|
|
995
|
+
z("div", Fa, [
|
|
980
996
|
t.customColumn ? (S(), F("div", {
|
|
981
997
|
key: 0,
|
|
982
998
|
class: "col-setting-button",
|
|
983
|
-
onClick:
|
|
999
|
+
onClick: it
|
|
984
1000
|
}, [
|
|
985
|
-
k(
|
|
1001
|
+
k(i(Ce), {
|
|
986
1002
|
class: "box-item",
|
|
987
1003
|
effect: "dark",
|
|
988
1004
|
content: "自定义列",
|
|
989
1005
|
placement: "top"
|
|
990
1006
|
}, {
|
|
991
1007
|
default: w(() => [
|
|
992
|
-
k(
|
|
1008
|
+
k(i(be), {
|
|
993
1009
|
size: 16,
|
|
994
1010
|
color: "#000000a6"
|
|
995
1011
|
}, {
|
|
996
1012
|
default: w(() => [
|
|
997
|
-
k(
|
|
1013
|
+
k(i(Ut))
|
|
998
1014
|
]),
|
|
999
1015
|
_: 1
|
|
1000
1016
|
})
|
|
@@ -1002,42 +1018,42 @@ const ha = /* @__PURE__ */ le({
|
|
|
1002
1018
|
_: 1
|
|
1003
1019
|
})
|
|
1004
1020
|
])) : I("", !0),
|
|
1005
|
-
|
|
1021
|
+
ke((S(), R(i(Qe), G({
|
|
1006
1022
|
ref_key: "tableRef",
|
|
1007
1023
|
ref: C
|
|
1008
|
-
},
|
|
1024
|
+
}, a.$attrs, {
|
|
1009
1025
|
key: h.value,
|
|
1010
1026
|
data: ie.value,
|
|
1011
|
-
border:
|
|
1012
|
-
"row-key":
|
|
1027
|
+
border: a.border,
|
|
1028
|
+
"row-key": a.rowKey,
|
|
1013
1029
|
"max-height": x.value,
|
|
1014
1030
|
"row-style": { height: "42px" },
|
|
1015
1031
|
"tooltip-effect": "light",
|
|
1016
1032
|
"tooltip-options": { showArrow: !1, placement: "bottom-start", offset: t.offset ? t.offset : -20 },
|
|
1017
|
-
"element-loading-spinner":
|
|
1033
|
+
"element-loading-spinner": i(ta),
|
|
1018
1034
|
"element-loading-svg-view-box": "0 0 64 64"
|
|
1019
|
-
},
|
|
1020
|
-
onSelectionChange:
|
|
1021
|
-
onSortChange:
|
|
1035
|
+
}, Pt(a.$attrs), {
|
|
1036
|
+
onSelectionChange: i(H),
|
|
1037
|
+
onSortChange: r[1] || (r[1] = (l) => t.onSortChange ? t.onSortChange(l) : D(l))
|
|
1022
1038
|
}), {
|
|
1023
1039
|
append: w(() => [
|
|
1024
|
-
N(
|
|
1040
|
+
N(a.$slots, "append", {}, void 0, !0)
|
|
1025
1041
|
]),
|
|
1026
1042
|
empty: w(() => [
|
|
1027
|
-
|
|
1028
|
-
N(
|
|
1029
|
-
|
|
1030
|
-
src: `${
|
|
1043
|
+
z("div", Da, [
|
|
1044
|
+
N(a.$slots, "empty", {}, () => [
|
|
1045
|
+
z("img", {
|
|
1046
|
+
src: `${i(Ht)}ghy-components/empty.png`,
|
|
1031
1047
|
class: "zh-empty-img",
|
|
1032
1048
|
alt: "notData"
|
|
1033
1049
|
}, null, 8, Va),
|
|
1034
|
-
|
|
1050
|
+
r[5] || (r[5] = z("div", null, "暂无数据", -1))
|
|
1035
1051
|
], !0)
|
|
1036
1052
|
])
|
|
1037
1053
|
]),
|
|
1038
1054
|
default: w(() => [
|
|
1039
|
-
(S(!0), F(Y, null, ge(
|
|
1040
|
-
l.type && o.includes(l.type) && l.isShow ? (S(),
|
|
1055
|
+
(S(!0), F(Y, null, ge(i(ne).sort((l, $) => l.order - $.order), (l) => (S(), F(Y, { key: l }, [
|
|
1056
|
+
l.type && o.includes(l.type) && l.isShow ? (S(), R(i(re), G({
|
|
1041
1057
|
key: 0,
|
|
1042
1058
|
ref_for: !0
|
|
1043
1059
|
}, l, {
|
|
@@ -1046,22 +1062,22 @@ const ha = /* @__PURE__ */ le({
|
|
|
1046
1062
|
}), me({
|
|
1047
1063
|
default: w(($) => [
|
|
1048
1064
|
l.type == "expand" ? (S(), F(Y, { key: 0 }, [
|
|
1049
|
-
l.render ? (S(),
|
|
1065
|
+
l.render ? (S(), R(fe(l.render), G({
|
|
1050
1066
|
key: 0,
|
|
1051
1067
|
ref_for: !0
|
|
1052
|
-
}, $), null, 16)) : N(
|
|
1068
|
+
}, $), null, 16)) : N(a.$slots, l.type, G({
|
|
1053
1069
|
key: 1,
|
|
1054
1070
|
ref_for: !0
|
|
1055
1071
|
}, $), void 0, !0)
|
|
1056
1072
|
], 64)) : I("", !0),
|
|
1057
|
-
l.type == "sort" ? (S(),
|
|
1073
|
+
l.type == "sort" ? (S(), R(i(Ye), {
|
|
1058
1074
|
key: 1,
|
|
1059
1075
|
class: "move"
|
|
1060
1076
|
}, {
|
|
1061
1077
|
default: w(() => [
|
|
1062
|
-
k(
|
|
1078
|
+
k(i(be), null, {
|
|
1063
1079
|
default: w(() => [
|
|
1064
|
-
k(
|
|
1080
|
+
k(i(Wt))
|
|
1065
1081
|
]),
|
|
1066
1082
|
_: 1
|
|
1067
1083
|
})
|
|
@@ -1069,52 +1085,52 @@ const ha = /* @__PURE__ */ le({
|
|
|
1069
1085
|
_: 1
|
|
1070
1086
|
})) : I("", !0),
|
|
1071
1087
|
l.type == "input" ? (S(), F(Y, { key: 2 }, [
|
|
1072
|
-
$.row.$showInput ? (S(), F("div",
|
|
1073
|
-
|
|
1088
|
+
$.row.$showInput ? (S(), F("div", Ra, [
|
|
1089
|
+
ke(k(i(Xe), {
|
|
1074
1090
|
modelValue: ce.value,
|
|
1075
|
-
"onUpdate:modelValue":
|
|
1091
|
+
"onUpdate:modelValue": r[0] || (r[0] = (q) => ce.value = q),
|
|
1076
1092
|
min: 0,
|
|
1077
1093
|
controls: !1
|
|
1078
1094
|
}, null, 8, ["modelValue"]), [
|
|
1079
1095
|
[f]
|
|
1080
1096
|
]),
|
|
1081
|
-
k(
|
|
1097
|
+
k(i(_e), {
|
|
1082
1098
|
underline: !1,
|
|
1083
1099
|
type: "primary",
|
|
1084
|
-
onClick: (q) =>
|
|
1100
|
+
onClick: (q) => st($.row, String(l.prop), l.blurCallback),
|
|
1085
1101
|
class: "ml-5"
|
|
1086
1102
|
}, {
|
|
1087
|
-
default: w(() =>
|
|
1103
|
+
default: w(() => r[3] || (r[3] = [
|
|
1088
1104
|
Q(" 保存 ")
|
|
1089
1105
|
])),
|
|
1090
1106
|
_: 2
|
|
1091
1107
|
}, 1032, ["onClick"]),
|
|
1092
|
-
k(
|
|
1108
|
+
k(i(_e), {
|
|
1093
1109
|
type: "primary",
|
|
1094
1110
|
underline: !1,
|
|
1095
|
-
onClick: (q) =>
|
|
1111
|
+
onClick: (q) => ut($.row),
|
|
1096
1112
|
class: "ml-5"
|
|
1097
1113
|
}, {
|
|
1098
|
-
default: w(() =>
|
|
1114
|
+
default: w(() => r[4] || (r[4] = [
|
|
1099
1115
|
Q(" 取消 ")
|
|
1100
1116
|
])),
|
|
1101
1117
|
_: 2
|
|
1102
1118
|
}, 1032, ["onClick"])
|
|
1103
|
-
])) : (S(),
|
|
1119
|
+
])) : (S(), R(i(Ce), {
|
|
1104
1120
|
key: 0,
|
|
1105
1121
|
content: "编辑",
|
|
1106
1122
|
placement: "top"
|
|
1107
1123
|
}, {
|
|
1108
1124
|
default: w(() => [
|
|
1109
|
-
|
|
1110
|
-
Q(X(
|
|
1111
|
-
k(
|
|
1125
|
+
z("span", La, [
|
|
1126
|
+
Q(X(i(Ze)($.row, String(l.prop))) + " ", 1),
|
|
1127
|
+
k(i(_e), {
|
|
1112
1128
|
underline: !1,
|
|
1113
1129
|
class: "text d-flex inline-input-text pointer",
|
|
1114
|
-
onClick: (q) =>
|
|
1130
|
+
onClick: (q) => rt($.row, l.prop)
|
|
1115
1131
|
}, {
|
|
1116
|
-
default: w(() =>
|
|
1117
|
-
|
|
1132
|
+
default: w(() => r[2] || (r[2] = [
|
|
1133
|
+
z("i", { class: "iconfont icon-edit" }, null, -1)
|
|
1118
1134
|
])),
|
|
1119
1135
|
_: 2
|
|
1120
1136
|
}, 1032, ["onClick"])
|
|
@@ -1129,20 +1145,20 @@ const ha = /* @__PURE__ */ le({
|
|
|
1129
1145
|
l.headerRender ? {
|
|
1130
1146
|
name: "header",
|
|
1131
1147
|
fn: w(($) => [
|
|
1132
|
-
(S(),
|
|
1148
|
+
(S(), R(fe(l.headerRender), G({ ref_for: !0 }, $), null, 16))
|
|
1133
1149
|
]),
|
|
1134
1150
|
key: "0"
|
|
1135
1151
|
} : void 0
|
|
1136
1152
|
]), 1040, ["align", "reserve-selection"])) : I("", !0),
|
|
1137
|
-
!l.type && l.prop && l.isShow ? (S(),
|
|
1153
|
+
!l.type && l.prop && l.isShow ? (S(), R(ma, {
|
|
1138
1154
|
key: 1,
|
|
1139
1155
|
column: l,
|
|
1140
|
-
"custom-column":
|
|
1156
|
+
"custom-column": a.customColumn
|
|
1141
1157
|
}, me({ _: 2 }, [
|
|
1142
|
-
ge(Object.keys(
|
|
1158
|
+
ge(Object.keys(a.$slots), ($) => ({
|
|
1143
1159
|
name: $,
|
|
1144
1160
|
fn: w((q) => [
|
|
1145
|
-
N(
|
|
1161
|
+
N(a.$slots, $, G({ ref_for: !0 }, q), void 0, !0)
|
|
1146
1162
|
])
|
|
1147
1163
|
}))
|
|
1148
1164
|
]), 1032, ["column", "custom-column"])) : I("", !0)
|
|
@@ -1150,37 +1166,37 @@ const ha = /* @__PURE__ */ le({
|
|
|
1150
1166
|
]),
|
|
1151
1167
|
_: 3
|
|
1152
1168
|
}, 16, ["data", "border", "row-key", "max-height", "tooltip-options", "element-loading-spinner", "onSelectionChange"])), [
|
|
1153
|
-
[
|
|
1169
|
+
[u, i(v)]
|
|
1154
1170
|
])
|
|
1155
1171
|
]),
|
|
1156
|
-
N(
|
|
1157
|
-
|
|
1172
|
+
N(a.$slots, "pagination", {}, () => [
|
|
1173
|
+
a.pagination ? (S(), R(fa, {
|
|
1158
1174
|
key: 0,
|
|
1159
|
-
pageable:
|
|
1160
|
-
"handle-size-change":
|
|
1161
|
-
"handle-current-change":
|
|
1175
|
+
pageable: i(b),
|
|
1176
|
+
"handle-size-change": i(M),
|
|
1177
|
+
"handle-current-change": i(L)
|
|
1162
1178
|
}, {
|
|
1163
1179
|
zhPaginationLeftSlot: w((l) => [
|
|
1164
|
-
N(
|
|
1180
|
+
N(a.$slots, "zhPaginationLeft", qe(xe(l)), void 0, !0)
|
|
1165
1181
|
]),
|
|
1166
1182
|
_: 3
|
|
1167
1183
|
}, 8, ["pageable", "handle-size-change", "handle-current-change"])) : I("", !0)
|
|
1168
1184
|
], !0)
|
|
1169
1185
|
]),
|
|
1170
|
-
t.customColumn ? (S(),
|
|
1186
|
+
t.customColumn ? (S(), R(Pa, {
|
|
1171
1187
|
key: 0,
|
|
1172
1188
|
ref_key: "colRef",
|
|
1173
|
-
ref:
|
|
1174
|
-
"origin-table-columns":
|
|
1175
|
-
onSubmit:
|
|
1189
|
+
ref: Ie,
|
|
1190
|
+
"origin-table-columns": i(Fe),
|
|
1191
|
+
onSubmit: dt
|
|
1176
1192
|
}, null, 8, ["origin-table-columns"])) : I("", !0)
|
|
1177
1193
|
]),
|
|
1178
1194
|
_: 3
|
|
1179
1195
|
}, 8, ["locale"]);
|
|
1180
1196
|
};
|
|
1181
1197
|
}
|
|
1182
|
-
}),
|
|
1198
|
+
}), Aa = /* @__PURE__ */ se(Oa, [["__scopeId", "data-v-2ad31f77"]]), xa = Jt(Aa);
|
|
1183
1199
|
export {
|
|
1184
|
-
|
|
1200
|
+
xa as Z,
|
|
1185
1201
|
oe as g
|
|
1186
1202
|
};
|