zhihao-ui 1.3.63-alpha.2 → 1.3.64-alpha.1
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-CNiBnhcM.js → BaseInfo-DRE7tqhe.js} +2 -2
- package/dist/es/{BaseItem-BA35OqoH.js → BaseItem-B9hyAgCm.js} +3 -3
- package/dist/es/{Button-BFA52ivn.js → Button-CSE0Mb4I.js} +2 -2
- package/dist/es/{CascaderLoadMore-C6micaqI.js → CascaderLoadMore-DlIfow9Z.js} +2 -2
- package/dist/es/{DatePicker-BqHlmV2R.js → DatePicker-DRO5YMZ8.js} +3 -3
- package/dist/es/{DetailHeader-BM4-4ODB.js → DetailHeader-WPFCQJFq.js} +3 -3
- package/dist/es/{DetailSubTitle-BJKuh02w.js → DetailSubTitle-BWOpKhxk.js} +2 -2
- package/dist/es/{Dialog-BptDzN8n.js → Dialog-CAiA_v3J.js} +3 -3
- package/dist/es/DiyDataTable-D1Z76Qqd.js +391 -0
- package/dist/es/{EditInfoPair-Ymyo3dLK.js → EditInfoPair-CZ_m9ph_.js} +3 -3
- package/dist/es/{FileWrapper-5WNiaTvu.js → FileWrapper-Dk5178uk.js} +4 -4
- package/dist/es/{Grid-CM5rjucl.js → Grid-DXdd3Eqi.js} +2 -2
- package/dist/es/{InfoPair-B-N9iStl.js → InfoPair-C8tc2XjH.js} +3 -3
- package/dist/es/{Input-FPnMJc-X.js → Input-CCkgPIDm.js} +3 -3
- package/dist/es/{Loading-D1OYqPWU.js → Loading-CtaMdigH.js} +2 -2
- package/dist/es/Map-BTJrG_eT.js +2536 -0
- package/dist/es/{MessageBox-CvwRq0Fw.js → MessageBox-DdmHDM2f.js} +2 -2
- package/dist/es/{MoneyInput-CWF973mw.js → MoneyInput-CsELS7YH.js} +5 -5
- package/dist/es/{PageHeadPanel-BV5qQLDj.js → PageHeadPanel-TzAwDM3_.js} +2 -2
- package/dist/es/{Table-sy10EfjN.js → Table-DELBhqxN.js} +414 -430
- package/dist/es/{ToolTips-B9Z_U4WM.js → ToolTips-BsqDNvAz.js} +3 -3
- package/dist/es/index.js +23 -23
- package/dist/es/{utils-COxKH46Q.js → utils-SutTRvhl.js} +1 -1
- package/dist/es/{vendor-CbeG2C4c.js → vendor-BnoIpJXx.js} +3 -3
- package/dist/index.css +1 -1
- package/dist/types/components/DiyDataTable/DiyDataTable.vue.d.ts +9 -2
- package/dist/types/components/DiyDataTable/index.d.ts +24 -6
- package/dist/types/components/DiyDataTable/type.d.ts +15 -3
- package/dist/types/components/Map/Map.vue.d.ts +16 -13
- package/dist/types/components/Map/function/port.d.ts +3 -0
- package/dist/types/components/Map/index.d.ts +48 -39
- package/dist/types/components/Map/useMap.d.ts +38 -2
- package/dist/umd/index.css +1 -1
- package/dist/umd/index.umd.cjs +55 -55
- package/package.json +1 -1
- package/dist/es/DiyDataTable-BpzGH5zk.js +0 -369
- package/dist/es/Map-JC-tR-ga.js +0 -2474
|
@@ -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 Ze, ref as z, defineComponent as le, useCssVars as dt, inject as Ae, openBlock as S, createElementBlock as F, createBlock as D, resolveDynamicComponent as fe, mergeProps as G, withKeys as pt, unref as u, createSlots as me, withCtx as w, Fragment as Y, renderList as ge, renderSlot as N, createElementVNode as B, toDisplayString as X, createCommentVNode as I, createVNode as k, withModifiers as ht, normalizeClass as Ue, createTextVNode as Q, useSlots as We, isVNode as ft, normalizeProps as Ke, guardReactiveProps as je, nextTick as ve, onMounted as mt, onActivated as gt, onDeactivated as vt, onUnmounted as Ct, watch as bt, provide as yt, resolveDirective as St, withDirectives as we, vShow as wt, toHandlers as kt } from "vue";
|
|
2
|
+
import { a6 as Ne, a7 as _t, a8 as Pt, a9 as qe, aa as Tt, n as Et, ab as $t, q as Bt, ac as zt, a5 as Ce, b as Te, a as be, ad as Mt, ae as It, p as re, af as Ft, ag as Lt, ah as Dt, ai as xe, aj as He, e as J, o as Je, ak as Le, al as Vt, am as Ye, an as Rt, ao as Ot, ap as Zt, aq as At, E as ke, ar as Ut, m as Wt, as as Kt, at as De, au as Ve } from "./vendor-BnoIpJXx.js";
|
|
3
|
+
import { Z as jt } from "./CascaderLoadMore-DlIfow9Z.js";
|
|
4
|
+
import { _ as se, Z as _e } from "./Button-CSE0Mb4I.js";
|
|
5
|
+
import { _ as Nt } from "./Dialog-CAiA_v3J.js";
|
|
6
|
+
import { D as ae, C as qt } from "./BaseItem-B9hyAgCm.js";
|
|
7
|
+
import { w as xt } from "./utils-SutTRvhl.js";
|
|
8
|
+
const Ht = 12;
|
|
9
|
+
function Ee(g, d, a, 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[a] === d) return y;
|
|
13
|
+
if (y[h]) return Ee(y[h], d, a, h);
|
|
14
14
|
}, null);
|
|
15
15
|
}
|
|
16
|
-
function
|
|
17
|
-
const h =
|
|
18
|
-
return
|
|
16
|
+
function Jt(g, d, a) {
|
|
17
|
+
const h = Pt(a) ? ae : a, f = Ne(g, d);
|
|
18
|
+
return _t(f) || f === "" ? h : f;
|
|
19
19
|
}
|
|
20
|
-
const
|
|
20
|
+
const Re = Jt;
|
|
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 Oe(g, d, a, h) {
|
|
26
|
+
const f = (a == null ? void 0 : a.value) ?? "value", y = (a == null ? void 0 : a.label) ?? "label", t = (a == null ? void 0 : a.children) ?? "children";
|
|
27
27
|
let C = {};
|
|
28
|
-
return Array.isArray(d) && (C =
|
|
28
|
+
return Array.isArray(d) && (C = Ee(d, g, f, t)), h == "tag" ? C != null && C.tagType ? C.tagType : "" : C ? C[y] : ae;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function Yt(g, d, a) {
|
|
31
31
|
const h = "value", f = "children";
|
|
32
32
|
let y = {};
|
|
33
|
-
return Array.isArray(d) && (y =
|
|
33
|
+
return Array.isArray(d) && (y = Ee(d, g, h, f)), y;
|
|
34
34
|
}
|
|
35
|
-
function
|
|
36
|
-
return
|
|
35
|
+
function Gt(g) {
|
|
36
|
+
return qe(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((a) => g = g[a] ?? 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 a = d || Ht, f = document.createElement("canvas").getContext("2d");
|
|
43
|
+
return f.font = `${a}px Microsoft YaHei`, f.measureText(g).width;
|
|
44
|
+
}, Qt = (g) => {
|
|
45
|
+
const d = g || "zhihao-col-setting", a = () => {
|
|
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: a,
|
|
53
53
|
setMap: h,
|
|
54
|
-
getColumnCache: (C) =>
|
|
54
|
+
getColumnCache: (C) => a()[C] || [],
|
|
55
55
|
setColumnCache: (C, o) => {
|
|
56
|
-
const p =
|
|
56
|
+
const p = a();
|
|
57
57
|
p[C] = o, h(p);
|
|
58
58
|
},
|
|
59
59
|
removeColumnCache: (C) => {
|
|
60
|
-
const o =
|
|
60
|
+
const o = a();
|
|
61
61
|
delete o[C], h(o);
|
|
62
62
|
}
|
|
63
63
|
};
|
|
64
|
-
},
|
|
64
|
+
}, Xt = `<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>`, ea = (g, d = {}, a = !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, a ? 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 = a ? E.list : E, a) {
|
|
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, a ? C.value : {});
|
|
134
134
|
}, O = (E) => {
|
|
135
135
|
Object.assign(t.pageable, E);
|
|
136
|
-
},
|
|
136
|
+
}, Z = () => {
|
|
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
|
+
...Ze(t),
|
|
147
147
|
getTableList: o,
|
|
148
|
-
search:
|
|
148
|
+
search: Z,
|
|
149
149
|
reset: x,
|
|
150
150
|
handleSizeChange: H,
|
|
151
151
|
handleCurrentChange: j,
|
|
152
152
|
updatedTotalParam: p
|
|
153
153
|
};
|
|
154
|
-
},
|
|
155
|
-
const
|
|
154
|
+
}, ta = (g = "id", d) => {
|
|
155
|
+
const a = z(!1), h = z([]), f = U(() => {
|
|
156
156
|
const t = [];
|
|
157
|
-
return h.value.forEach((C) => t.push(
|
|
157
|
+
return h.value.forEach((C) => t.push(Ne(C, g))), t;
|
|
158
158
|
});
|
|
159
159
|
return {
|
|
160
|
-
isSelected:
|
|
160
|
+
isSelected: a,
|
|
161
161
|
selectedList: h,
|
|
162
162
|
selectedListIds: f,
|
|
163
163
|
selectionChange: (t) => {
|
|
164
|
-
t.length ?
|
|
164
|
+
t.length ? a.value = !0 : a.value = !1, h.value = t, d && d(t);
|
|
165
165
|
}
|
|
166
166
|
};
|
|
167
|
-
},
|
|
167
|
+
}, aa = { class: "search-form-item" }, na = /* @__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
|
+
dt((e) => ({
|
|
177
|
+
"6720d772": Z.value
|
|
178
178
|
}));
|
|
179
|
-
const
|
|
179
|
+
const a = g, h = d, f = U(() => a.searchParam), y = U(() => {
|
|
180
180
|
var e, v, _;
|
|
181
181
|
return {
|
|
182
|
-
label: ((e =
|
|
183
|
-
value: ((v =
|
|
184
|
-
children: ((_ =
|
|
182
|
+
label: ((e = a.column.fieldNames) == null ? void 0 : e.label) ?? "label",
|
|
183
|
+
value: ((v = a.column.fieldNames) == null ? void 0 : v.value) ?? "value",
|
|
184
|
+
children: ((_ = a.column.fieldNames) == null ? void 0 : _.children) ?? "children"
|
|
185
185
|
};
|
|
186
|
-
}), t =
|
|
186
|
+
}), t = Ae("enumMap", z(/* @__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(a.column.prop);
|
|
189
|
+
return e ? (((v = a.column.search) == null ? void 0 : v.el) === "select-v2" && a.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 = a.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 i, P;
|
|
195
|
+
const e = y.value.label, v = y.value.value, _ = y.value.children, b = (i = a.column.search) == null ? void 0 : i.el;
|
|
196
|
+
let r = ((P = a.column.search) == null ? void 0 : P.props) ?? {};
|
|
197
|
+
return b === "tree-select" && (r = { ...r, props: { ...r.props, label: e, children: _ }, nodeKey: v }), b === "cascader" && (r = { ...r, props: { ...r.props, label: e, value: v, children: _ } }), r;
|
|
198
198
|
}), O = U(() => {
|
|
199
|
-
var _, b,
|
|
200
|
-
const e =
|
|
199
|
+
var _, b, r, i, P, T, m;
|
|
200
|
+
const e = a.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: ((r = e == null ? void 0 : e.props) == null ? void 0 : r.rangeSeparator) ?? "-",
|
|
203
|
+
startPlaceholder: ((i = e == null ? void 0 : e.props) == null ? void 0 : i.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
|
+
}), Z = U(() => {
|
|
207
|
+
var r, i;
|
|
208
|
+
const e = a.column.search, v = f.value[(e == null ? void 0 : e.key) ?? W(a.column.prop)], _ = e == null ? void 0 : e.el, b = (r = e == null ? void 0 : e.props) == null ? void 0 : r.placeholder;
|
|
209
209
|
if (e != null && e.width)
|
|
210
|
-
if (
|
|
210
|
+
if (Tt(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 (qe(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 V = m.find((R) => R[y.value.value] === L);
|
|
221
|
+
M.push(V ? V[y.value.label] : L);
|
|
222
|
+
const K = V[y.value.children] ?? o.value;
|
|
223
|
+
m = V ? K : [];
|
|
224
|
+
}), (i = e == null ? void 0 : e.props) != null && i.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, r;
|
|
236
|
+
return (_ = (v = (e = a.column) == null ? void 0 : e.search) == null ? void 0 : v.props) != null && _.multiple && ((r = (b = a.column) == null ? void 0 : b.search) == null ? void 0 : r.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 = a.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, r, i, P, T, m, M;
|
|
246
|
+
if (((b = (_ = (v = a.column) == null ? void 0 : v.search) == null ? void 0 : _.props) == null ? void 0 : b.type) === "daterange") {
|
|
247
|
+
const { searchParam: L } = Ze(a);
|
|
248
248
|
if (e != null && e.length) {
|
|
249
|
-
const
|
|
250
|
-
L.value[
|
|
249
|
+
const V = ((P = (i = (r = a.column) == null ? void 0 : r.search) == null ? void 0 : i.props) == null ? void 0 : P.beginTime) || "beginTime", K = ((M = (m = (T = a.column) == null ? void 0 : T.search) == null ? void 0 : m.props) == null ? void 0 : M.endTime) || "endTime";
|
|
250
|
+
L.value[V] = 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 = a.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, r, i, P, T, m, M, L, V, K;
|
|
261
|
+
return S(), F("div", aa, [
|
|
262
|
+
((_ = e.column.search) == null ? void 0 : _.type) !== "custom" ? (S(), D(fe(((b = e.column.search) == null ? void 0 : b.render) ?? `el-${(r = e.column.search) == null ? void 0 : r.el}`), G({ key: 0 }, { ...p.value, ...O.value, searchParam: f.value, clearable: H.value, ...x.value }, {
|
|
263
|
+
modelValue: f.value[((i = e.column.search) == null ? void 0 : i.key) ?? u(W)(e.column.prop)],
|
|
264
|
+
"onUpdate:modelValue": v[0] || (v[0] = (R) => {
|
|
265
|
+
var A;
|
|
266
|
+
return f.value[((A = e.column.search) == null ? void 0 : A.key) ?? u(W)(e.column.prop)] = R;
|
|
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: pt(E, ["enter"])
|
|
274
274
|
}), me({
|
|
275
275
|
default: w(() => {
|
|
276
|
-
var
|
|
276
|
+
var R;
|
|
277
277
|
return [
|
|
278
|
-
((
|
|
278
|
+
((R = e.column.search) == null ? void 0 : R.el) === "select" ? (S(!0), F(Y, { key: 0 }, ge(C.value, (A, ue) => (S(), D(fe("el-option"), {
|
|
279
279
|
key: ue,
|
|
280
|
-
label:
|
|
281
|
-
value:
|
|
280
|
+
label: A[y.value.label] ?? "",
|
|
281
|
+
value: A[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: R }) => [
|
|
290
|
+
B("span", null, X(R[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(), D(u(jt), 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[((V = e.column.search) == null ? void 0 : V.key) ?? u(W)(e.column.prop)],
|
|
298
|
+
"onUpdate:modelValue": v[1] || (v[1] = (R) => {
|
|
299
|
+
var A;
|
|
300
|
+
return f.value[((A = e.column.search) == null ? void 0 : A.key) ?? u(W)(e.column.prop)] = R;
|
|
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
|
+
}), oa = /* @__PURE__ */ se(na, [["__scopeId", "data-v-5c18e8bc"]]), la = { class: "table-search" }, ra = { key: 0 }, sa = {
|
|
309
309
|
key: 0,
|
|
310
310
|
class: "operation"
|
|
311
|
-
},
|
|
311
|
+
}, ua = /* @__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 (a, h) => (S(), F("div", la, [
|
|
325
|
+
k(u(Et), {
|
|
326
326
|
ref: "formRef",
|
|
327
|
-
model:
|
|
327
|
+
model: a.searchParam,
|
|
328
328
|
class: "table-search--left",
|
|
329
|
-
onSubmit: h[0] || (h[0] =
|
|
329
|
+
onSubmit: h[0] || (h[0] = ht(() => {
|
|
330
330
|
}, ["prevent"]))
|
|
331
331
|
}, {
|
|
332
332
|
default: w(() => [
|
|
333
|
-
N(
|
|
334
|
-
|
|
335
|
-
(S(!0), F(Y, null, ge(
|
|
333
|
+
N(a.$slots, "default", {}, void 0, !0),
|
|
334
|
+
a.columns.length ? (S(), F(Y, { key: 0 }, [
|
|
335
|
+
(S(!0), F(Y, null, ge(a.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
|
+
!u($t)((y = f.search) == null ? void 0 : y.isShow) || (t = f.search) != null && t.isShow ? (S(), F("div", ra, [
|
|
341
|
+
k(u(Bt), null, me({
|
|
342
342
|
default: w(() => [
|
|
343
|
-
k(
|
|
343
|
+
k(oa, {
|
|
344
344
|
column: f,
|
|
345
|
-
"search-param":
|
|
346
|
-
onSearch:
|
|
345
|
+
"search-param": a.searchParam,
|
|
346
|
+
onSearch: a.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(u(zt), { size: 4 }, {
|
|
355
355
|
default: w(() => {
|
|
356
356
|
var o, p;
|
|
357
357
|
return [
|
|
358
|
-
|
|
359
|
-
(o = f.search) != null && o.tooltip ? (S(),
|
|
358
|
+
B("span", null, X(`${f.search.label}`), 1),
|
|
359
|
+
(o = f.search) != null && o.tooltip ? (S(), D(u(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
|
+
B("i", {
|
|
367
|
+
class: Ue("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] = B("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(), D(u(Te), {
|
|
385
385
|
key: 0,
|
|
386
386
|
type: "primary",
|
|
387
387
|
class: "table-search--search-btn",
|
|
388
|
-
onClick:
|
|
388
|
+
onClick: a.search
|
|
389
389
|
}, {
|
|
390
390
|
icon: w(() => h[3] || (h[3] = [
|
|
391
|
-
|
|
391
|
+
B("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 && a.columns.length ? (S(), F("div", sa, [
|
|
403
|
+
k(u(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(u(Te), {
|
|
411
411
|
class: "table-search--reset-btn",
|
|
412
|
-
onClick:
|
|
412
|
+
onClick: a.reset
|
|
413
413
|
}, {
|
|
414
414
|
icon: w(() => [
|
|
415
|
-
k(
|
|
415
|
+
k(u(be), { size: 14 }, {
|
|
416
416
|
default: w(() => [
|
|
417
|
-
k(
|
|
417
|
+
k(u(Mt))
|
|
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
|
+
}), ia = /* @__PURE__ */ se(ua, [["__scopeId", "data-v-e524e82e"]]), ca = { class: "el-pagination__total zh-page-total" }, da = /* @__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, a) => d.pageable.total ? (S(), D(u(It), {
|
|
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
|
+
B("div", ca, "共" + 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
|
+
}), pa = /* @__PURE__ */ se(da, [["__scopeId", "data-v-5965b30c"]]);
|
|
460
|
+
function Pe(g) {
|
|
461
|
+
return typeof g == "function" || Object.prototype.toString.call(g) === "[object Object]" && !ft(g);
|
|
462
462
|
}
|
|
463
|
-
const
|
|
463
|
+
const ha = /* @__PURE__ */ le({
|
|
464
464
|
name: "TableColumn",
|
|
465
465
|
__name: "TableColumn",
|
|
466
466
|
props: {
|
|
@@ -470,37 +470,37 @@ const ma = /* @__PURE__ */ le({
|
|
|
470
470
|
}
|
|
471
471
|
},
|
|
472
472
|
setup(g) {
|
|
473
|
-
const d = g,
|
|
473
|
+
const d = g, a = z(d.column), h = We(), f = Ae("enumMap", z(/* @__PURE__ */ new Map())), y = (o, p) => f.value.get(o.prop) && o.isFilterEnum ? Oe(he(p.row, o.prop), f.value.get(o.prop), o.fieldNames) : Gt(he(p.row, o.prop)), t = (o, p) => Oe(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 Z, 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
|
+
a.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 = (Z = h[W(o.prop)](p)) == null ? void 0 : Z.at(0)) == null ? void 0 : x.children) || [], E = (T) => Array.from(T).map((m) => {
|
|
488
|
+
var M, L, V;
|
|
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 : (V = m.children) != null && V.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((R) => {
|
|
493
|
+
m += R.children.default()[0].children;
|
|
494
|
+
const A = R.props || {};
|
|
495
|
+
(A.loading === !0 || A.loading === "") && M++;
|
|
496
496
|
});
|
|
497
|
-
const L = oe(m, 14),
|
|
498
|
-
return L +
|
|
497
|
+
const L = oe(m, 14), V = 16 * (T.length > 0 ? T.length - 1 : 0), K = M * 20;
|
|
498
|
+
return L + V + K;
|
|
499
499
|
}, _ = (T) => {
|
|
500
|
-
|
|
501
|
-
const m =
|
|
500
|
+
a.value.hasOperationMaxWidth || (a.value.width = 0, a.value.hasOperationMaxWidth = !0);
|
|
501
|
+
const m = a.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") && (a.value.width = M, a.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 ma = /* @__PURE__ */ le({
|
|
|
509
509
|
class: "operation-container all-action"
|
|
510
510
|
}, [h[W(o.prop)](p)]);
|
|
511
511
|
}
|
|
512
|
-
const b = [],
|
|
512
|
+
const b = [], r = e.slice(0, 2), i = k(Te, {
|
|
513
513
|
link: !0,
|
|
514
514
|
type: "primary"
|
|
515
515
|
}, {
|
|
516
516
|
default: () => [Q("更多")]
|
|
517
517
|
});
|
|
518
|
-
b.push(...
|
|
519
|
-
default: () =>
|
|
518
|
+
b.push(...r), b[3] = k(Ft, null, {
|
|
519
|
+
default: () => i,
|
|
520
520
|
dropdown: () => {
|
|
521
521
|
let T;
|
|
522
|
-
return k(
|
|
522
|
+
return k(Lt, null, Pe(T = e.slice(2).map((m) => k(Dt, null, Pe(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([...r, i]);
|
|
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(xe, {
|
|
535
535
|
type: t(o, p)
|
|
536
|
-
},
|
|
536
|
+
}, Pe(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 ma = /* @__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 = Yt(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(), D(C, Ke(je(a.value)), null, 16));
|
|
550
550
|
}
|
|
551
|
-
}),
|
|
551
|
+
}), fa = { class: "custom-column-dialog" }, ma = { class: "table-body" }, ga = { class: "name" }, va = {
|
|
552
552
|
key: 0,
|
|
553
553
|
class: "ml-10"
|
|
554
|
-
},
|
|
554
|
+
}, Ca = { class: "custom-width-label text" }, ba = {
|
|
555
555
|
key: 0,
|
|
556
556
|
class: "custom-width-input-box"
|
|
557
|
-
},
|
|
557
|
+
}, ya = { class: "custom-column-footer" }, Sa = { class: "flex-1" }, wa = /* @__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: a }) {
|
|
565
|
+
const h = z(), f = z(!1), y = g, t = z([]), C = z((/* @__PURE__ */ new Date()).getTime()), o = z(!1), p = z();
|
|
566
|
+
let O = z([]), Z = z([]);
|
|
567
567
|
const x = (b) => {
|
|
568
|
-
|
|
568
|
+
Z.value = b, O.value = [], t.value = b.filter((r) => (r.hideInCustomColumn && O.value.push(r), !r.hideInCustomColumn)), o.value = !0, ve(() => {
|
|
569
569
|
e();
|
|
570
570
|
});
|
|
571
571
|
}, H = (b) => {
|
|
572
572
|
f.value = b;
|
|
573
|
-
}, j =
|
|
574
|
-
|
|
573
|
+
}, j = a, E = async () => {
|
|
574
|
+
Z.value = J([...O.value, ...t.value]), j("submit", Z.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 = He.create(b, {
|
|
579
579
|
handle: ".move",
|
|
580
580
|
animation: 300,
|
|
581
581
|
filter: ".operation",
|
|
582
|
-
onEnd({ newIndex:
|
|
583
|
-
if (!
|
|
582
|
+
onEnd({ newIndex: r, oldIndex: i }) {
|
|
583
|
+
if (!r && r !== 0 || !i && i !== 0) return;
|
|
584
584
|
let P = J(t.value);
|
|
585
|
-
const T = P[
|
|
586
|
-
if (
|
|
587
|
-
for (let m =
|
|
585
|
+
const T = P[i];
|
|
586
|
+
if (r < i)
|
|
587
|
+
for (let m = r; m < i; m++)
|
|
588
588
|
P[m].order = String(Number(m) + 1);
|
|
589
589
|
else
|
|
590
|
-
for (let m =
|
|
590
|
+
for (let m = i + 1; m <= r; m++)
|
|
591
591
|
P[m].order = String(Number(m) - 1);
|
|
592
|
-
T.order = String(
|
|
592
|
+
T.order = String(r), 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((r) => {
|
|
599
|
+
const i = t.value.find((P) => P.prop === r.prop);
|
|
600
|
+
return !(i != null && i.isShow) || i.prop === "operation" ? r : b.find((P) => P.prop === r.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, r) => (S(), F("div", fa, [
|
|
608
|
+
k(Nt, {
|
|
609
609
|
modelValue: o.value,
|
|
610
|
-
"onUpdate:modelValue":
|
|
610
|
+
"onUpdate:modelValue": r[1] || (r[1] = (i) => o.value = i),
|
|
611
611
|
size: "middle"
|
|
612
612
|
}, {
|
|
613
|
-
header: w(() =>
|
|
614
|
-
|
|
615
|
-
|
|
613
|
+
header: w(() => r[2] || (r[2] = [
|
|
614
|
+
B("div", { class: "title" }, "自定义列", -1),
|
|
615
|
+
B("div", { class: "sub-title" }, "勾选需要展示的列,拖动列名进行排序", -1)
|
|
616
616
|
])),
|
|
617
617
|
footer: w(() => [
|
|
618
|
-
|
|
619
|
-
k(
|
|
618
|
+
B("div", ya, [
|
|
619
|
+
k(u(Le), {
|
|
620
620
|
modelValue: f.value,
|
|
621
|
-
"onUpdate:modelValue":
|
|
621
|
+
"onUpdate:modelValue": r[0] || (r[0] = (i) => f.value = i),
|
|
622
622
|
class: "checkbox",
|
|
623
623
|
label: "全局",
|
|
624
624
|
onChange: H
|
|
625
625
|
}, null, 8, ["modelValue"]),
|
|
626
|
-
|
|
627
|
-
k(
|
|
628
|
-
default: w(() =>
|
|
626
|
+
B("div", Sa, [
|
|
627
|
+
k(_e, { onClick: _ }, {
|
|
628
|
+
default: w(() => r[4] || (r[4] = [
|
|
629
629
|
Q("取消")
|
|
630
630
|
])),
|
|
631
631
|
_: 1
|
|
632
632
|
}),
|
|
633
|
-
k(
|
|
633
|
+
k(_e, {
|
|
634
634
|
class: "w-auto",
|
|
635
635
|
onClick: v
|
|
636
636
|
}, {
|
|
@@ -639,11 +639,11 @@ const ma = /* @__PURE__ */ le({
|
|
|
639
639
|
]),
|
|
640
640
|
_: 1
|
|
641
641
|
}),
|
|
642
|
-
k(
|
|
642
|
+
k(_e, {
|
|
643
643
|
type: "primary",
|
|
644
644
|
onClick: E
|
|
645
645
|
}, {
|
|
646
|
-
default: w(() =>
|
|
646
|
+
default: w(() => r[5] || (r[5] = [
|
|
647
647
|
Q("保存")
|
|
648
648
|
])),
|
|
649
649
|
_: 1
|
|
@@ -652,44 +652,44 @@ const ma = /* @__PURE__ */ le({
|
|
|
652
652
|
])
|
|
653
653
|
]),
|
|
654
654
|
default: w(() => [
|
|
655
|
-
|
|
656
|
-
(S(),
|
|
655
|
+
B("div", ma, [
|
|
656
|
+
(S(), D(u(Je), {
|
|
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((i) => !i.hideInCustomColumn),
|
|
662
|
+
"row-class-name": (i) => i.row.prop === "operation" ? "operation" : ""
|
|
663
663
|
}, {
|
|
664
664
|
default: w(() => [
|
|
665
|
-
k(
|
|
665
|
+
k(u(re), {
|
|
666
666
|
width: "100",
|
|
667
667
|
label: "选择"
|
|
668
668
|
}, {
|
|
669
|
-
default: w(({ row:
|
|
670
|
-
k(
|
|
669
|
+
default: w(({ row: i }) => [
|
|
670
|
+
k(u(Le), {
|
|
671
671
|
class: "custom-column-check",
|
|
672
|
-
modelValue:
|
|
673
|
-
"onUpdate:modelValue": (P) =>
|
|
674
|
-
disabled:
|
|
672
|
+
modelValue: i.isShow,
|
|
673
|
+
"onUpdate:modelValue": (P) => i.isShow = P,
|
|
674
|
+
disabled: i.readonly
|
|
675
675
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
|
|
676
676
|
]),
|
|
677
677
|
_: 1
|
|
678
678
|
}),
|
|
679
|
-
k(
|
|
679
|
+
k(u(re), {
|
|
680
680
|
prop: "label",
|
|
681
681
|
label: "名称"
|
|
682
682
|
}, {
|
|
683
|
-
default: w(({ row:
|
|
684
|
-
|
|
685
|
-
Q(X(
|
|
686
|
-
|
|
687
|
-
|
|
683
|
+
default: w(({ row: i }) => [
|
|
684
|
+
B("div", ga, [
|
|
685
|
+
Q(X(i.label) + " ", 1),
|
|
686
|
+
i.readonly ? (S(), F("span", va, "(必选)")) : I("", !0),
|
|
687
|
+
i.prop !== "operation" ? (S(), D(u(be), {
|
|
688
688
|
key: 1,
|
|
689
689
|
class: "move move-icon"
|
|
690
690
|
}, {
|
|
691
691
|
default: w(() => [
|
|
692
|
-
k(
|
|
692
|
+
k(u(Vt))
|
|
693
693
|
]),
|
|
694
694
|
_: 1
|
|
695
695
|
})) : I("", !0)
|
|
@@ -697,21 +697,21 @@ const ma = /* @__PURE__ */ le({
|
|
|
697
697
|
]),
|
|
698
698
|
_: 1
|
|
699
699
|
}),
|
|
700
|
-
k(
|
|
700
|
+
k(u(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: i }) => [
|
|
706
|
+
B("div", {
|
|
707
|
+
class: Ue(`custom-width-box ${i.readonly && "readonly"}`)
|
|
708
708
|
}, [
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
k(
|
|
713
|
-
modelValue:
|
|
714
|
-
"onUpdate:modelValue": (P) =>
|
|
709
|
+
r[3] || (r[3] = B("span", { class: "text" }, "宽度", -1)),
|
|
710
|
+
B("span", Ca, X(i.width) + " px", 1),
|
|
711
|
+
i.readonly ? I("", !0) : (S(), F("div", ba, [
|
|
712
|
+
k(u(Ye), {
|
|
713
|
+
modelValue: i.width,
|
|
714
|
+
"onUpdate:modelValue": (P) => i.width = P,
|
|
715
715
|
class: "custom-width-input",
|
|
716
716
|
min: 10,
|
|
717
717
|
max: 1e3,
|
|
@@ -731,19 +731,19 @@ const ma = /* @__PURE__ */ le({
|
|
|
731
731
|
}, 8, ["modelValue"])
|
|
732
732
|
]));
|
|
733
733
|
}
|
|
734
|
-
}),
|
|
734
|
+
}), ka = /* @__PURE__ */ se(wa, [["__scopeId", "data-v-1ff4d8b0"]]), _a = { class: "no-card table-main zh-table" }, Pa = { class: "table-title-container" }, Ta = {
|
|
735
735
|
key: 0,
|
|
736
736
|
class: "table-title"
|
|
737
|
-
},
|
|
737
|
+
}, Ea = {
|
|
738
738
|
key: 1,
|
|
739
739
|
class: "table-header-tip"
|
|
740
|
-
},
|
|
740
|
+
}, $a = { class: "table-header-container" }, Ba = {
|
|
741
741
|
key: 0,
|
|
742
742
|
class: "table-header"
|
|
743
|
-
},
|
|
743
|
+
}, za = { class: "header-button-ri" }, Ma = { key: 0 }, Ia = { class: "table-body-container" }, Fa = { class: "text d-flex inline-input-text pointer" }, La = {
|
|
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"], Ra = /* @__PURE__ */ le({
|
|
747
747
|
name: "ZhTable",
|
|
748
748
|
__name: "Table",
|
|
749
749
|
props: {
|
|
@@ -775,170 +775,158 @@ const ma = /* @__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: a }) {
|
|
779
|
+
var Fe;
|
|
780
|
+
const h = z((/* @__PURE__ */ new Date()).getTime()), f = {
|
|
781
|
+
mounted(n) {
|
|
782
|
+
var s;
|
|
783
|
+
(s = n.querySelector("input")) == null || s.focus();
|
|
784
784
|
}
|
|
785
|
-
}, y =
|
|
785
|
+
}, y = We(), t = g, C = z(), o = ["selection", "radio", "index", "expand", "sort", "input"], p = z(t.isShowSearch), O = z(""), Z = z({}), x = z(t.maxHeight), { selectionChange: H, selectedList: j, selectedListIds: E, isSelected: e } = ta(t.rowKey, t.selectChangeCallback), {
|
|
786
786
|
loading: v,
|
|
787
787
|
tableData: _,
|
|
788
788
|
pageable: b,
|
|
789
|
-
searchParam:
|
|
790
|
-
searchInitParam:
|
|
789
|
+
searchParam: r,
|
|
790
|
+
searchInitParam: i,
|
|
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
|
+
} = ea(t.requestApi, t.initParam, t.pagination, t.dataCallback, t.requestError, t.handleParam), V = (n) => {
|
|
797
|
+
function s(it) {
|
|
798
|
+
return it.replace(/[A-Z]/g, (ct) => "_" + ct.toLowerCase());
|
|
799
799
|
}
|
|
800
|
-
const
|
|
800
|
+
const c = {
|
|
801
801
|
ascending: "asc",
|
|
802
802
|
descending: "desc"
|
|
803
|
-
}, { prop: l, order: $ } =
|
|
804
|
-
|
|
805
|
-
...
|
|
803
|
+
}, { prop: l, order: $ } = n, q = s(W(l)), pe = c[$];
|
|
804
|
+
r.value = {
|
|
805
|
+
...r.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(), R = () => C.value.clearSort(), A = z(!1), ue = () => {
|
|
810
|
+
at(), t.customColumn && st(), t.requestAuto && P(), t.data && (b.value.total = t.data.length);
|
|
811
811
|
};
|
|
812
|
-
|
|
812
|
+
mt(() => {
|
|
813
813
|
ue(), ve(() => {
|
|
814
|
-
|
|
814
|
+
A.value = !0;
|
|
815
815
|
});
|
|
816
|
+
}), gt(() => {
|
|
817
|
+
A.value && ue();
|
|
818
|
+
}), vt(() => {
|
|
816
819
|
}), 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), Ge = (n) => {
|
|
822
|
+
b.value.total = n;
|
|
823
823
|
};
|
|
824
|
-
|
|
824
|
+
bt(() => 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 Qe = U(() => $e(ne)), ee = z(/* @__PURE__ */ new Map()), Xe = async ({ prop: n, enum: s }) => {
|
|
827
|
+
if (!s || ee.value.has(n) && (typeof s == "function" || ee.value.get(n) === s)) return;
|
|
828
|
+
if (typeof s != "function") return ee.value.set(n, u(s));
|
|
829
|
+
ee.value.set(n, []);
|
|
830
|
+
const { data: c } = await s();
|
|
831
|
+
ee.value.set(n, c);
|
|
832
832
|
};
|
|
833
|
-
|
|
834
|
-
const
|
|
833
|
+
yt("enumMap", ee);
|
|
834
|
+
const $e = (n, s = []) => (n.forEach(async (c) => {
|
|
835
835
|
var l;
|
|
836
|
-
(l =
|
|
837
|
-
}),
|
|
836
|
+
(l = c._children) != null && l.length && s.push(...$e(c._children)), s.push(c), c.isShow = c.isShow ?? !0, c.isFilterEnum = c.isFilterEnum ?? !0, await Xe(c);
|
|
837
|
+
}), s.filter((c) => {
|
|
838
838
|
var l;
|
|
839
|
-
return !((l =
|
|
840
|
-
})),
|
|
841
|
-
var
|
|
842
|
-
return (
|
|
843
|
-
var
|
|
844
|
-
return ((
|
|
845
|
-
}).sort((
|
|
839
|
+
return !((l = c._children) != null && l.length);
|
|
840
|
+
})), Be = U(() => {
|
|
841
|
+
var n;
|
|
842
|
+
return (n = Qe.value) == null ? void 0 : n.filter((s) => {
|
|
843
|
+
var c, l;
|
|
844
|
+
return ((c = s.search) == null ? void 0 : c.el) || ((l = s.search) == null ? void 0 : l.render);
|
|
845
|
+
}).sort((s, c) => s.search.order - c.search.order);
|
|
846
846
|
});
|
|
847
|
-
(
|
|
847
|
+
(Fe = Be.value) == null || Fe.forEach((n, s) => {
|
|
848
848
|
var $, q, pe;
|
|
849
|
-
|
|
850
|
-
const
|
|
851
|
-
l != null && (
|
|
849
|
+
n.search.order = (($ = n.search) == null ? void 0 : $.order) ?? s + 2;
|
|
850
|
+
const c = ((q = n.search) == null ? void 0 : q.key) ?? W(n.prop), l = (pe = n.search) == null ? void 0 : pe.defaultValue;
|
|
851
|
+
l != null && (i.value[c] = l, r.value[c] = 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 = a, et = () => {
|
|
854
|
+
var n;
|
|
855
|
+
t.searchClearSelection && ((n = C.value) == null || n.clearSelection()), T(), ye("search");
|
|
856
|
+
}, tt = () => {
|
|
857
|
+
t.beforeReset && t.beforeReset(), m(), R(), ye("reset");
|
|
858
|
+
}, at = () => {
|
|
859
|
+
const n = document.querySelector(".el-table__body-wrapper tbody");
|
|
860
|
+
n && He.create(n, {
|
|
861
861
|
handle: ".move",
|
|
862
862
|
animation: 300,
|
|
863
|
-
onEnd({ newIndex:
|
|
864
|
-
const [l] = ie.value.splice(
|
|
865
|
-
ie.value.splice(
|
|
863
|
+
onEnd({ newIndex: s, oldIndex: c }) {
|
|
864
|
+
const [l] = ie.value.splice(c, 1);
|
|
865
|
+
ie.value.splice(s, 0, l), ye("dargSort", { newIndex: s, oldIndex: c });
|
|
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 = z(0), nt = (n, s) => {
|
|
869
|
+
const c = _.value.findIndex((l) => l.$showInput);
|
|
870
|
+
c > -1 && (_.value[c] = J(Z.value), _.value[c].$showInput = !1), ce.value = Re(n, String(s)), n.$showInput = !0, Z.value = J(n);
|
|
871
|
+
}, ot = async (n, s, c) => {
|
|
872
|
+
Ut(n, s, ce.value), c && await c(n), n.$showInput = !1, Wt.success("更新成功"), await P();
|
|
873
|
+
}, lt = async (n) => {
|
|
874
|
+
const s = _.value.findIndex((c) => Kt(De(c, Ve), De(n, Ve)));
|
|
875
|
+
s > -1 && (_.value[s] = J(Z.value), _.value[s].$showInput = !1);
|
|
876
|
+
}, ze = Qt(t.customColumnCacheKey), Me = z(null), Se = () => ne.map(
|
|
877
|
+
(n, s) => ({
|
|
878
|
+
readonly: n.isCustomDisable || ["id", "operation"].includes(String(n.prop)),
|
|
879
|
+
hideInCustomColumn: n.hideInCustomColumn || n.type === "selection",
|
|
880
|
+
order: s,
|
|
881
881
|
// originIndex: index,
|
|
882
|
-
width:
|
|
883
|
-
...
|
|
882
|
+
width: n.width || n.minWidth,
|
|
883
|
+
...n
|
|
884
884
|
})
|
|
885
|
-
).sort((
|
|
886
|
-
const
|
|
887
|
-
return
|
|
888
|
-
}),
|
|
885
|
+
).sort((n, s) => {
|
|
886
|
+
const c = Number(n.order), l = Number(s.order);
|
|
887
|
+
return c - l;
|
|
888
|
+
}), rt = () => {
|
|
889
889
|
de = te(Se()), ve(() => {
|
|
890
|
-
|
|
890
|
+
Me.value.openColSetting(J(de));
|
|
891
891
|
});
|
|
892
|
-
},
|
|
892
|
+
}, st = () => {
|
|
893
893
|
if (!t.customColumnPageCacheKey) return;
|
|
894
|
-
const
|
|
895
|
-
if (
|
|
896
|
-
const
|
|
897
|
-
const l =
|
|
894
|
+
const n = ze.getColumnCache(t.customColumnPageCacheKey);
|
|
895
|
+
if (n != null && n.length) {
|
|
896
|
+
const s = ne.map((c) => {
|
|
897
|
+
const l = n.find(($) => $.prop === c.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
|
+
...c,
|
|
901
|
+
order: l.order || c.order,
|
|
902
|
+
isShow: l.isShow !== void 0 ? l.isShow : c.isShow,
|
|
903
|
+
readonly: l.readonly !== void 0 ? l.readonly : c.readonly,
|
|
904
|
+
prop: l.prop || c.prop,
|
|
905
|
+
index: l.index || c.index
|
|
906
906
|
};
|
|
907
|
-
return
|
|
907
|
+
return c.minWidth && ($.minWidth = l.minWidth || c.minWidth), c.width && ($.width = l.width || c.width), $;
|
|
908
908
|
}
|
|
909
|
-
return
|
|
909
|
+
return c;
|
|
910
910
|
});
|
|
911
|
-
de = te(
|
|
911
|
+
de = te(s), ne = te(de);
|
|
912
912
|
}
|
|
913
913
|
};
|
|
914
914
|
let de = te(Se());
|
|
915
|
-
const
|
|
915
|
+
const Ie = J(Se()), ut = (n) => {
|
|
916
916
|
if (!t.customColumnPageCacheKey) return console.error("请添加自定义列缓存配置项:customColumnPageCacheKey");
|
|
917
|
-
|
|
918
|
-
const
|
|
919
|
-
return
|
|
920
|
-
}), ne = te(J(
|
|
921
|
-
}
|
|
922
|
-
return
|
|
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({
|
|
917
|
+
n = n.map((s) => {
|
|
918
|
+
const c = Ie.find((l) => l.prop === s.prop);
|
|
919
|
+
return c && c.minWidth && (s.minWidth = s.width, delete s.width), s;
|
|
920
|
+
}), ne = te(J(n)), ze.setColumnCache(t.customColumnPageCacheKey, n), h.value = (/* @__PURE__ */ new Date()).getTime(), C.value.doLayout();
|
|
921
|
+
};
|
|
922
|
+
return d({
|
|
935
923
|
element: C,
|
|
936
924
|
tableData: ie,
|
|
937
925
|
radio: O,
|
|
938
926
|
pageable: b,
|
|
939
|
-
searchParam:
|
|
940
|
-
searchInitParam:
|
|
941
|
-
setPageTotal:
|
|
927
|
+
searchParam: r,
|
|
928
|
+
searchInitParam: i,
|
|
929
|
+
setPageTotal: Ge,
|
|
942
930
|
getTableList: P,
|
|
943
931
|
search: T,
|
|
944
932
|
reset: m,
|
|
@@ -949,68 +937,64 @@ const ma = /* @__PURE__ */ le({
|
|
|
949
937
|
isSelected: e,
|
|
950
938
|
selectedList: j,
|
|
951
939
|
selectedListIds: E
|
|
952
|
-
}), (
|
|
953
|
-
const
|
|
954
|
-
return S(),
|
|
940
|
+
}), (n, s) => {
|
|
941
|
+
const c = St("loading");
|
|
942
|
+
return S(), D(u(Rt), { locale: u(Ot) }, {
|
|
955
943
|
default: w(() => [
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
N(
|
|
944
|
+
B("div", _a, [
|
|
945
|
+
B("div", Pa, [
|
|
946
|
+
n.title ? (S(), F("div", Ta, X(n.title), 1)) : I("", !0),
|
|
947
|
+
u(y).headerTip ? (S(), F("div", Ea, [
|
|
948
|
+
N(n.$slots, "headerTip", {}, void 0, !0)
|
|
961
949
|
])) : I("", !0)
|
|
962
950
|
]),
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
search:
|
|
966
|
-
reset:
|
|
967
|
-
columns:
|
|
968
|
-
"search-param":
|
|
951
|
+
B("div", $a, [
|
|
952
|
+
we(k(ia, {
|
|
953
|
+
search: et,
|
|
954
|
+
reset: tt,
|
|
955
|
+
columns: Be.value,
|
|
956
|
+
"search-param": u(r),
|
|
969
957
|
"is-show-reset-btn": t.isShowResetBtn,
|
|
970
958
|
"is-show-search-btn": t.isShowSearchBtn
|
|
971
959
|
}, {
|
|
972
960
|
default: w(() => [
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
N(a.$slots, "tableHeader", {
|
|
980
|
-
selectedList: i(j),
|
|
981
|
-
selectedListIds: i(E),
|
|
982
|
-
isSelected: i(e)
|
|
961
|
+
n.$slots.tableHeader ? (S(), F("div", Ba, [
|
|
962
|
+
B("div", za, [
|
|
963
|
+
N(n.$slots, "tableHeader", {
|
|
964
|
+
selectedList: u(j),
|
|
965
|
+
selectedListIds: u(E),
|
|
966
|
+
isSelected: u(e)
|
|
983
967
|
}, void 0, !0)
|
|
984
|
-
]
|
|
968
|
+
])
|
|
985
969
|
])) : I("", !0)
|
|
986
970
|
]),
|
|
987
971
|
_: 3
|
|
988
972
|
}, 8, ["columns", "search-param", "is-show-reset-btn", "is-show-search-btn"]), [
|
|
989
|
-
[
|
|
973
|
+
[wt, p.value]
|
|
990
974
|
])
|
|
991
975
|
]),
|
|
992
|
-
|
|
993
|
-
N(
|
|
976
|
+
u(y).searchBarBottom ? (S(), F("div", Ma, [
|
|
977
|
+
N(n.$slots, "searchBarBottom", {}, void 0, !0)
|
|
994
978
|
])) : I("", !0),
|
|
995
|
-
|
|
979
|
+
B("div", Ia, [
|
|
996
980
|
t.customColumn ? (S(), F("div", {
|
|
997
981
|
key: 0,
|
|
998
982
|
class: "col-setting-button",
|
|
999
|
-
onClick:
|
|
983
|
+
onClick: rt
|
|
1000
984
|
}, [
|
|
1001
|
-
k(
|
|
985
|
+
k(u(Ce), {
|
|
1002
986
|
class: "box-item",
|
|
1003
987
|
effect: "dark",
|
|
1004
988
|
content: "自定义列",
|
|
1005
989
|
placement: "top"
|
|
1006
990
|
}, {
|
|
1007
991
|
default: w(() => [
|
|
1008
|
-
k(
|
|
992
|
+
k(u(be), {
|
|
1009
993
|
size: 16,
|
|
1010
994
|
color: "#000000a6"
|
|
1011
995
|
}, {
|
|
1012
996
|
default: w(() => [
|
|
1013
|
-
k(
|
|
997
|
+
k(u(Zt))
|
|
1014
998
|
]),
|
|
1015
999
|
_: 1
|
|
1016
1000
|
})
|
|
@@ -1018,42 +1002,42 @@ const ma = /* @__PURE__ */ le({
|
|
|
1018
1002
|
_: 1
|
|
1019
1003
|
})
|
|
1020
1004
|
])) : I("", !0),
|
|
1021
|
-
|
|
1005
|
+
we((S(), D(u(Je), G({
|
|
1022
1006
|
ref_key: "tableRef",
|
|
1023
1007
|
ref: C
|
|
1024
|
-
},
|
|
1008
|
+
}, n.$attrs, {
|
|
1025
1009
|
key: h.value,
|
|
1026
1010
|
data: ie.value,
|
|
1027
|
-
border:
|
|
1028
|
-
"row-key":
|
|
1011
|
+
border: n.border,
|
|
1012
|
+
"row-key": n.rowKey,
|
|
1029
1013
|
"max-height": x.value,
|
|
1030
1014
|
"row-style": { height: "42px" },
|
|
1031
1015
|
"tooltip-effect": "light",
|
|
1032
1016
|
"tooltip-options": { showArrow: !1, placement: "bottom-start", offset: t.offset ? t.offset : -20 },
|
|
1033
|
-
"element-loading-spinner":
|
|
1017
|
+
"element-loading-spinner": u(Xt),
|
|
1034
1018
|
"element-loading-svg-view-box": "0 0 64 64"
|
|
1035
|
-
},
|
|
1036
|
-
onSelectionChange:
|
|
1037
|
-
onSortChange:
|
|
1019
|
+
}, kt(n.$attrs), {
|
|
1020
|
+
onSelectionChange: u(H),
|
|
1021
|
+
onSortChange: s[1] || (s[1] = (l) => t.onSortChange ? t.onSortChange(l) : V(l))
|
|
1038
1022
|
}), {
|
|
1039
1023
|
append: w(() => [
|
|
1040
|
-
N(
|
|
1024
|
+
N(n.$slots, "append", {}, void 0, !0)
|
|
1041
1025
|
]),
|
|
1042
1026
|
empty: w(() => [
|
|
1043
|
-
|
|
1044
|
-
N(
|
|
1045
|
-
|
|
1046
|
-
src: `${
|
|
1027
|
+
B("div", Da, [
|
|
1028
|
+
N(n.$slots, "empty", {}, () => [
|
|
1029
|
+
B("img", {
|
|
1030
|
+
src: `${u(qt)}ghy-components/empty.png`,
|
|
1047
1031
|
class: "zh-empty-img",
|
|
1048
1032
|
alt: "notData"
|
|
1049
1033
|
}, null, 8, Va),
|
|
1050
|
-
|
|
1034
|
+
s[5] || (s[5] = B("div", null, "暂无数据", -1))
|
|
1051
1035
|
], !0)
|
|
1052
1036
|
])
|
|
1053
1037
|
]),
|
|
1054
1038
|
default: w(() => [
|
|
1055
|
-
(S(!0), F(Y, null, ge(
|
|
1056
|
-
l.type && o.includes(l.type) && l.isShow ? (S(),
|
|
1039
|
+
(S(!0), F(Y, null, ge(u(ne).sort((l, $) => l.order - $.order), (l) => (S(), F(Y, { key: l }, [
|
|
1040
|
+
l.type && o.includes(l.type) && l.isShow ? (S(), D(u(re), G({
|
|
1057
1041
|
key: 0,
|
|
1058
1042
|
ref_for: !0
|
|
1059
1043
|
}, l, {
|
|
@@ -1062,22 +1046,22 @@ const ma = /* @__PURE__ */ le({
|
|
|
1062
1046
|
}), me({
|
|
1063
1047
|
default: w(($) => [
|
|
1064
1048
|
l.type == "expand" ? (S(), F(Y, { key: 0 }, [
|
|
1065
|
-
l.render ? (S(),
|
|
1049
|
+
l.render ? (S(), D(fe(l.render), G({
|
|
1066
1050
|
key: 0,
|
|
1067
1051
|
ref_for: !0
|
|
1068
|
-
}, $), null, 16)) : N(
|
|
1052
|
+
}, $), null, 16)) : N(n.$slots, l.type, G({
|
|
1069
1053
|
key: 1,
|
|
1070
1054
|
ref_for: !0
|
|
1071
1055
|
}, $), void 0, !0)
|
|
1072
1056
|
], 64)) : I("", !0),
|
|
1073
|
-
l.type == "sort" ? (S(),
|
|
1057
|
+
l.type == "sort" ? (S(), D(u(xe), {
|
|
1074
1058
|
key: 1,
|
|
1075
1059
|
class: "move"
|
|
1076
1060
|
}, {
|
|
1077
1061
|
default: w(() => [
|
|
1078
|
-
k(
|
|
1062
|
+
k(u(be), null, {
|
|
1079
1063
|
default: w(() => [
|
|
1080
|
-
k(
|
|
1064
|
+
k(u(At))
|
|
1081
1065
|
]),
|
|
1082
1066
|
_: 1
|
|
1083
1067
|
})
|
|
@@ -1085,52 +1069,52 @@ const ma = /* @__PURE__ */ le({
|
|
|
1085
1069
|
_: 1
|
|
1086
1070
|
})) : I("", !0),
|
|
1087
1071
|
l.type == "input" ? (S(), F(Y, { key: 2 }, [
|
|
1088
|
-
$.row.$showInput ? (S(), F("div",
|
|
1089
|
-
|
|
1072
|
+
$.row.$showInput ? (S(), F("div", La, [
|
|
1073
|
+
we(k(u(Ye), {
|
|
1090
1074
|
modelValue: ce.value,
|
|
1091
|
-
"onUpdate:modelValue":
|
|
1075
|
+
"onUpdate:modelValue": s[0] || (s[0] = (q) => ce.value = q),
|
|
1092
1076
|
min: 0,
|
|
1093
1077
|
controls: !1
|
|
1094
1078
|
}, null, 8, ["modelValue"]), [
|
|
1095
1079
|
[f]
|
|
1096
1080
|
]),
|
|
1097
|
-
k(
|
|
1081
|
+
k(u(ke), {
|
|
1098
1082
|
underline: !1,
|
|
1099
1083
|
type: "primary",
|
|
1100
|
-
onClick: (q) =>
|
|
1084
|
+
onClick: (q) => ot($.row, String(l.prop), l.blurCallback),
|
|
1101
1085
|
class: "ml-5"
|
|
1102
1086
|
}, {
|
|
1103
|
-
default: w(() =>
|
|
1087
|
+
default: w(() => s[3] || (s[3] = [
|
|
1104
1088
|
Q(" 保存 ")
|
|
1105
1089
|
])),
|
|
1106
1090
|
_: 2
|
|
1107
1091
|
}, 1032, ["onClick"]),
|
|
1108
|
-
k(
|
|
1092
|
+
k(u(ke), {
|
|
1109
1093
|
type: "primary",
|
|
1110
1094
|
underline: !1,
|
|
1111
|
-
onClick: (q) =>
|
|
1095
|
+
onClick: (q) => lt($.row),
|
|
1112
1096
|
class: "ml-5"
|
|
1113
1097
|
}, {
|
|
1114
|
-
default: w(() =>
|
|
1098
|
+
default: w(() => s[4] || (s[4] = [
|
|
1115
1099
|
Q(" 取消 ")
|
|
1116
1100
|
])),
|
|
1117
1101
|
_: 2
|
|
1118
1102
|
}, 1032, ["onClick"])
|
|
1119
|
-
])) : (S(),
|
|
1103
|
+
])) : (S(), D(u(Ce), {
|
|
1120
1104
|
key: 0,
|
|
1121
1105
|
content: "编辑",
|
|
1122
1106
|
placement: "top"
|
|
1123
1107
|
}, {
|
|
1124
1108
|
default: w(() => [
|
|
1125
|
-
|
|
1126
|
-
Q(X(
|
|
1127
|
-
k(
|
|
1109
|
+
B("span", Fa, [
|
|
1110
|
+
Q(X(u(Re)($.row, String(l.prop))) + " ", 1),
|
|
1111
|
+
k(u(ke), {
|
|
1128
1112
|
underline: !1,
|
|
1129
1113
|
class: "text d-flex inline-input-text pointer",
|
|
1130
|
-
onClick: (q) =>
|
|
1114
|
+
onClick: (q) => nt($.row, l.prop)
|
|
1131
1115
|
}, {
|
|
1132
|
-
default: w(() =>
|
|
1133
|
-
|
|
1116
|
+
default: w(() => s[2] || (s[2] = [
|
|
1117
|
+
B("i", { class: "iconfont icon-edit" }, null, -1)
|
|
1134
1118
|
])),
|
|
1135
1119
|
_: 2
|
|
1136
1120
|
}, 1032, ["onClick"])
|
|
@@ -1145,20 +1129,20 @@ const ma = /* @__PURE__ */ le({
|
|
|
1145
1129
|
l.headerRender ? {
|
|
1146
1130
|
name: "header",
|
|
1147
1131
|
fn: w(($) => [
|
|
1148
|
-
(S(),
|
|
1132
|
+
(S(), D(fe(l.headerRender), G({ ref_for: !0 }, $), null, 16))
|
|
1149
1133
|
]),
|
|
1150
1134
|
key: "0"
|
|
1151
1135
|
} : void 0
|
|
1152
1136
|
]), 1040, ["align", "reserve-selection"])) : I("", !0),
|
|
1153
|
-
!l.type && l.prop && l.isShow ? (S(),
|
|
1137
|
+
!l.type && l.prop && l.isShow ? (S(), D(ha, {
|
|
1154
1138
|
key: 1,
|
|
1155
1139
|
column: l,
|
|
1156
|
-
"custom-column":
|
|
1140
|
+
"custom-column": n.customColumn
|
|
1157
1141
|
}, me({ _: 2 }, [
|
|
1158
|
-
ge(Object.keys(
|
|
1142
|
+
ge(Object.keys(n.$slots), ($) => ({
|
|
1159
1143
|
name: $,
|
|
1160
1144
|
fn: w((q) => [
|
|
1161
|
-
N(
|
|
1145
|
+
N(n.$slots, $, G({ ref_for: !0 }, q), void 0, !0)
|
|
1162
1146
|
])
|
|
1163
1147
|
}))
|
|
1164
1148
|
]), 1032, ["column", "custom-column"])) : I("", !0)
|
|
@@ -1166,37 +1150,37 @@ const ma = /* @__PURE__ */ le({
|
|
|
1166
1150
|
]),
|
|
1167
1151
|
_: 3
|
|
1168
1152
|
}, 16, ["data", "border", "row-key", "max-height", "tooltip-options", "element-loading-spinner", "onSelectionChange"])), [
|
|
1169
|
-
[
|
|
1153
|
+
[c, u(v)]
|
|
1170
1154
|
])
|
|
1171
1155
|
]),
|
|
1172
|
-
N(
|
|
1173
|
-
|
|
1156
|
+
N(n.$slots, "pagination", {}, () => [
|
|
1157
|
+
n.pagination ? (S(), D(pa, {
|
|
1174
1158
|
key: 0,
|
|
1175
|
-
pageable:
|
|
1176
|
-
"handle-size-change":
|
|
1177
|
-
"handle-current-change":
|
|
1159
|
+
pageable: u(b),
|
|
1160
|
+
"handle-size-change": u(M),
|
|
1161
|
+
"handle-current-change": u(L)
|
|
1178
1162
|
}, {
|
|
1179
1163
|
zhPaginationLeftSlot: w((l) => [
|
|
1180
|
-
N(
|
|
1164
|
+
N(n.$slots, "zhPaginationLeft", Ke(je(l)), void 0, !0)
|
|
1181
1165
|
]),
|
|
1182
1166
|
_: 3
|
|
1183
1167
|
}, 8, ["pageable", "handle-size-change", "handle-current-change"])) : I("", !0)
|
|
1184
1168
|
], !0)
|
|
1185
1169
|
]),
|
|
1186
|
-
t.customColumn ? (S(),
|
|
1170
|
+
t.customColumn ? (S(), D(ka, {
|
|
1187
1171
|
key: 0,
|
|
1188
1172
|
ref_key: "colRef",
|
|
1189
|
-
ref:
|
|
1190
|
-
"origin-table-columns":
|
|
1191
|
-
onSubmit:
|
|
1173
|
+
ref: Me,
|
|
1174
|
+
"origin-table-columns": u(Ie),
|
|
1175
|
+
onSubmit: ut
|
|
1192
1176
|
}, null, 8, ["origin-table-columns"])) : I("", !0)
|
|
1193
1177
|
]),
|
|
1194
1178
|
_: 3
|
|
1195
1179
|
}, 8, ["locale"]);
|
|
1196
1180
|
};
|
|
1197
1181
|
}
|
|
1198
|
-
}),
|
|
1182
|
+
}), Oa = /* @__PURE__ */ se(Ra, [["__scopeId", "data-v-d7faf199"]]), qa = xt(Oa);
|
|
1199
1183
|
export {
|
|
1200
|
-
|
|
1184
|
+
qa as Z,
|
|
1201
1185
|
oe as g
|
|
1202
1186
|
};
|