zhihao-ui 1.2.17 → 1.2.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/dist/es/{Button-OpzeoolK.js → Button-CDKNl8Xy.js} +9 -9
  2. package/dist/es/{DetailHeader-Dy_GLl1j.js → DetailHeader-AxeEUXrE.js} +1 -1
  3. package/dist/es/{Dialog-DsjDYguS.js → Dialog-cXRhcAJo.js} +1 -1
  4. package/dist/es/{DiyDataTable-BzYgTozd.js → DiyDataTable-DnUtQ2uX.js} +1 -1
  5. package/dist/es/{EditInfoPair-D5IdY32c.js → EditInfoPair-B5_ufxbs.js} +1 -1
  6. package/dist/es/{FileWrapper-BWTQDfI0.js → FileWrapper-D7yKH6Y4.js} +1 -1
  7. package/dist/es/{InfoPair-BCfbK9Vi.js → InfoPair-65CeKiUv.js} +1 -1
  8. package/dist/es/{Input-Stgzni-P.js → Input-Bg2G2kBm.js} +1 -1
  9. package/dist/es/{Loading-CV65SoyW.js → Loading-CBGHPT0Z.js} +1 -1
  10. package/dist/es/{Map-f7AQFEm9.js → Map-BRt4EWtt.js} +1 -1
  11. package/dist/es/{MessageBox-7G0T_aYK.js → MessageBox-d6upGeyX.js} +5 -6
  12. package/dist/es/{MoneyInput-CILa4-8Q.js → MoneyInput-CQBBD25d.js} +2 -2
  13. package/dist/es/{PageHeadPanel-CAVlNQj7.js → PageHeadPanel-C1mqeOzI.js} +1 -1
  14. package/dist/es/Table-BxjxzoXm.js +1159 -0
  15. package/dist/es/{ToolTips-B1YUKWTm.js → ToolTips-C5Cm96bx.js} +1 -1
  16. package/dist/es/index.js +42 -36
  17. package/dist/index.css +1 -1
  18. package/dist/types/components/MessageBox/MessageBox.vue.d.ts +1 -1
  19. package/dist/types/components/MessageBox/index.d.ts +3 -0
  20. package/dist/types/components/Table/Table.vue.d.ts +2 -0
  21. package/dist/types/components/Table/components/tablePagination.vue.d.ts +12 -1
  22. package/dist/types/components/Table/index.d.ts +2 -0
  23. package/dist/umd/index.css +1 -1
  24. package/dist/umd/index.umd.cjs +10 -10
  25. package/package.json +1 -1
  26. package/dist/es/Table-B786GVKD.js +0 -1132
@@ -1,1132 +0,0 @@
1
- import { reactive as X, computed as R, toRefs as Ae, ref as I, defineComponent as ae, useCssVars as it, inject as Ke, openBlock as S, createElementBlock as D, createBlock as F, resolveDynamicComponent as de, mergeProps as G, withKeys as ct, unref as d, createSlots as pe, withCtx as C, Fragment as H, renderList as he, renderSlot as W, createElementVNode as E, toDisplayString as J, createVNode as w, withModifiers as dt, normalizeClass as Ue, createCommentVNode as z, createTextVNode as Z, useSlots as xe, isVNode as pt, normalizeProps as ht, guardReactiveProps as ft, nextTick as fe, onMounted as mt, onActivated as gt, onDeactivated as vt, onUnmounted as bt, watch as yt, provide as Ct, resolveDirective as St, withDirectives as Ce, vShow as wt, toHandlers as _t } from "vue";
2
- import { N as Ne, Q as kt, R as Pt, U as je, Y as Tt, f as $t, Z as Et, j as Bt, _ as zt, K as me, E as ke, $ as ge, a0 as It, a1 as Mt, i as oe, a2 as Dt, a3 as Lt, a4 as Ft, a5 as We, a6 as qe, e as q, g as He, a7 as Le, a8 as Rt, a9 as Ze, aa as Vt, ab as Ot, ac as At, ad as Kt, m as Se, ae as Ut, d as xt, af as Nt, ag as Fe, ah as Re } from "./vendor-AIl6iHcE.js";
3
- import { D as ee, C as jt } from "./DatePicker-vGQGWrmB.js";
4
- import { _ as le, Z as we } from "./Button-OpzeoolK.js";
5
- import { _ as Wt } from "./Dialog-DsjDYguS.js";
6
- import { w as qt } from "./utils-CbI5IWJJ.js";
7
- const Ht = (m, i = {}, a = !0, h, f, y = (t) => t) => {
8
- const t = X({
9
- // 表格数据
10
- tableData: [],
11
- // 分页数据
12
- pageable: {
13
- // 当前页数
14
- page: 1,
15
- // 每页显示条数
16
- size: 10,
17
- // 总条数
18
- total: 0
19
- },
20
- // 查询参数(只包括查询)
21
- searchParam: {},
22
- // 初始化默认的查询参数
23
- searchInitParam: {},
24
- // 总参数(包含分页和查询参数)
25
- totalParam: {},
26
- // 是否在加载中
27
- loading: !1
28
- }), v = R({
29
- get: () => ({
30
- page: t.pageable.page,
31
- size: t.pageable.size
32
- }),
33
- set: (T) => {
34
- console.log("我是分页更新之后的值", T);
35
- }
36
- }), n = async () => {
37
- if (t.loading = !0, !m) {
38
- t.loading = !1;
39
- return;
40
- }
41
- try {
42
- const T = localStorage.getItem("MytaskGotoListPageQuery");
43
- if (T) {
44
- i = {}, t.totalParam = {};
45
- const s = JSON.parse(T);
46
- i = { ...i, ...s }, t.searchParam = { ...s };
47
- }
48
- Object.assign(t.totalParam, i, a ? v.value : {});
49
- for (const s in t.searchParam)
50
- t.searchParam[s] === "" && delete t.searchParam[s];
51
- let e = await m(y({ ...t.searchInitParam, ...t.totalParam }));
52
- if (h && (e = await h(e)), t.tableData = a ? e.list : e, a) {
53
- const { currentPage: s, pageSize: r, total: l } = e;
54
- A({ page: s, size: r, total: l });
55
- }
56
- } catch (T) {
57
- f && f(T);
58
- } finally {
59
- t.loading = !1;
60
- }
61
- }, p = () => {
62
- t.totalParam = {}, t.searchInitParam = {}, i = {};
63
- const T = {};
64
- for (const e in t.searchParam)
65
- (t.searchParam[e] || t.searchParam[e] === !1 || t.searchParam[e] === 0) && (T[e] = t.searchParam[e]);
66
- Object.assign(t.totalParam, T, a ? v.value : {});
67
- }, A = (T) => {
68
- Object.assign(t.pageable, T);
69
- }, O = () => {
70
- t.pageable.page = 1, p(), n().then();
71
- }, N = () => {
72
- t.pageable.page = 1, t.searchParam = { ...t.searchInitParam }, p(), n().then();
73
- }, j = (T) => {
74
- t.pageable.page = 1, t.pageable.size = T, n().then();
75
- }, V = (T) => {
76
- t.pageable.page = T, n().then();
77
- };
78
- return {
79
- ...Ae(t),
80
- getTableList: n,
81
- search: O,
82
- reset: N,
83
- handleSizeChange: j,
84
- handleCurrentChange: V,
85
- updatedTotalParam: p
86
- };
87
- }, Zt = (m = "id", i) => {
88
- const a = I(!1), h = I([]), f = R(() => {
89
- let t = [];
90
- return h.value.forEach((v) => t.push(Ne(v, m))), t;
91
- });
92
- return {
93
- isSelected: a,
94
- selectedList: h,
95
- selectedListIds: f,
96
- selectionChange: (t) => {
97
- t.length ? a.value = !0 : a.value = !1, h.value = t, i && i(t);
98
- }
99
- };
100
- }, Qt = 12;
101
- function Pe(m, i, a, h) {
102
- return m.reduce((f, y) => {
103
- if (f) return f;
104
- if (y[a] === i) return y;
105
- if (y[h]) return Pe(y[h], i, a, h);
106
- }, null);
107
- }
108
- function Gt(m, i, a) {
109
- const h = Pt(a) ? ee : a, f = Ne(m, i);
110
- return kt(f) || f === "" ? h : f;
111
- }
112
- const Ve = Gt;
113
- function x(m) {
114
- const i = m.split(".");
115
- return i.length == 1 ? m : i[i.length - 1];
116
- }
117
- function Oe(m, i, a, h) {
118
- 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";
119
- let v = {};
120
- return Array.isArray(i) && (v = Pe(i, m, f, t)), h == "tag" ? v != null && v.tagType ? v.tagType : "" : v ? v[y] : ee;
121
- }
122
- function Jt(m, i, a) {
123
- const h = "value", f = "children";
124
- let y = {};
125
- return Array.isArray(i) && (y = Pe(i, m, h, f)), y;
126
- }
127
- function Yt(m) {
128
- return je(m) ? m.length ? m.join(" / ") : ee : m ?? ee;
129
- }
130
- function ce(m, i) {
131
- return i.includes(".") ? (i.split(".").forEach((a) => m = m[a] ?? ee), m) : m[i] ?? ee;
132
- }
133
- const te = (m, i) => {
134
- const a = i || Qt, f = document.createElement("canvas").getContext("2d");
135
- return f.font = `${a}px Microsoft YaHei`, f.measureText(m).width;
136
- }, Xt = (m) => {
137
- const i = m || "zhihao-col-setting", a = () => {
138
- const v = localStorage.getItem(i);
139
- return v ? JSON.parse(v) : {};
140
- }, h = (v) => {
141
- localStorage.setItem(i, JSON.stringify(v));
142
- };
143
- return {
144
- getMap: a,
145
- setMap: h,
146
- getColumnCache: (v) => a()[v] || [],
147
- setColumnCache: (v, n) => {
148
- const p = a();
149
- p[v] = n, h(p);
150
- },
151
- removeColumnCache: (v) => {
152
- const n = a();
153
- delete n[v], h(n);
154
- }
155
- };
156
- }, ea = { class: "search-form-item" }, ta = /* @__PURE__ */ ae({
157
- name: "SearchFormItem",
158
- __name: "SearchFormItem",
159
- props: {
160
- column: {},
161
- searchParam: {}
162
- },
163
- emits: ["search"],
164
- setup(m, { emit: i }) {
165
- it((e) => ({
166
- "054b42e2": O.value
167
- }));
168
- const a = m, h = i, f = R(() => a.searchParam), y = R(() => {
169
- var e, s, r;
170
- return {
171
- label: ((e = a.column.fieldNames) == null ? void 0 : e.label) ?? "label",
172
- value: ((s = a.column.fieldNames) == null ? void 0 : s.value) ?? "value",
173
- children: ((r = a.column.fieldNames) == null ? void 0 : r.children) ?? "children"
174
- };
175
- }), t = Ke("enumMap", I(/* @__PURE__ */ new Map())), v = R(() => {
176
- var s;
177
- let e = t.value.get(a.column.prop);
178
- return e ? (((s = a.column.search) == null ? void 0 : s.el) === "select-v2" && a.column.fieldNames && (e = e.map((r) => ({ ...r, label: r[y.value.label], value: r[y.value.value] }))), e) : [];
179
- }), n = R(() => {
180
- var e, s;
181
- return ((s = (e = a.column.search) == null ? void 0 : e.props) == null ? void 0 : s.options) ?? v.value ?? [];
182
- }), p = R(() => {
183
- var B, k;
184
- const e = y.value.label, s = y.value.value, r = y.value.children, l = (B = a.column.search) == null ? void 0 : B.el;
185
- let g = ((k = a.column.search) == null ? void 0 : k.props) ?? {};
186
- return l === "tree-select" && (g = { ...g, props: { ...g.props, label: e, children: r }, nodeKey: s }), l === "cascader" && (g = { ...g, props: { ...g.props, label: e, value: s, children: r } }), g;
187
- }), A = R(() => {
188
- var r, l, g, B, k, P, _;
189
- const e = a.column.search;
190
- return ["datetimerange", "daterange", "monthrange"].includes((r = e == null ? void 0 : e.props) == null ? void 0 : r.type) || (l = e == null ? void 0 : e.props) != null && l.isRange ? {
191
- rangeSeparator: ((g = e == null ? void 0 : e.props) == null ? void 0 : g.rangeSeparator) ?? "-",
192
- startPlaceholder: ((B = e == null ? void 0 : e.props) == null ? void 0 : B.startPlaceholder) ?? "开始时间",
193
- endPlaceholder: ((k = e == null ? void 0 : e.props) == null ? void 0 : k.endPlaceholder) ?? "结束时间"
194
- } : { placeholder: ((P = e == null ? void 0 : e.props) == null ? void 0 : P.placeholder) ?? ((_ = e == null ? void 0 : e.el) != null && _.includes("input") ? "请输入" : "请选择") };
195
- }), O = R(() => {
196
- var g, B;
197
- const e = a.column.search, s = f.value[(e == null ? void 0 : e.key) ?? x(a.column.prop)], r = e == null ? void 0 : e.el, l = (g = e == null ? void 0 : e.props) == null ? void 0 : g.placeholder;
198
- if (e != null && e.width)
199
- if (Tt(e == null ? void 0 : e.width)) {
200
- if (e == null ? void 0 : e.width(s))
201
- return (e == null ? void 0 : e.width(s)) + "px";
202
- } else
203
- return (e == null ? void 0 : e.width) + "px";
204
- if (s && s.length !== 0 && ["select", "select-v2", "tree-select", "cascader"].includes(r || "")) {
205
- if (je(s)) {
206
- let _ = n.value;
207
- const $ = [];
208
- if (s.forEach((M) => {
209
- const K = _.find((ve) => ve[y.value.value] === M);
210
- $.push(K ? K[y.value.label] : M);
211
- const Q = K[y.value.children] ?? n.value;
212
- _ = K ? Q : [];
213
- }), (B = e == null ? void 0 : e.props) != null && B.multiple) {
214
- const Q = te($[0]) + 42;
215
- return s.length > 1 ? Q + 26 + te("+ " + (s.length - 1)) + "px" : Q + "px";
216
- }
217
- return te($.join(" / ")) + "px";
218
- }
219
- let k = n.value.find((_) => _[y.value.value] === s);
220
- const P = k ? k[y.value.label] : s;
221
- return te(P) + "px";
222
- } else return l ? te(l) + "px" : "100px";
223
- }), N = R(() => {
224
- var e, s, r, l, g;
225
- return (r = (s = (e = a.column) == null ? void 0 : e.search) == null ? void 0 : s.props) != null && r.multiple && ((g = (l = a.column) == null ? void 0 : l.search) == null ? void 0 : g.el) === "select" ? {
226
- collapseTags: !0,
227
- collapseTagsTooltip: !0
228
- } : {};
229
- }), j = R(() => {
230
- var s;
231
- const e = a.column.search;
232
- return ((s = e == null ? void 0 : e.props) == null ? void 0 : s.clearable) ?? ((e == null ? void 0 : e.defaultValue) == null || !1);
233
- }), V = (e) => {
234
- var s, r, l, g, B, k, P, _, $;
235
- if (((l = (r = (s = a.column) == null ? void 0 : s.search) == null ? void 0 : r.props) == null ? void 0 : l.type) === "daterange") {
236
- const { searchParam: M } = Ae(a);
237
- if (e != null && e.length) {
238
- const K = ((k = (B = (g = a.column) == null ? void 0 : g.search) == null ? void 0 : B.props) == null ? void 0 : k.beginTime) || "beginTime", Q = (($ = (_ = (P = a.column) == null ? void 0 : P.search) == null ? void 0 : _.props) == null ? void 0 : $.endTime) || "endTime";
239
- M.value[K] = e[0], M.value[Q] = e[1];
240
- } else
241
- delete M.value.beginTime, delete M.value.endTime;
242
- }
243
- (e == null || e === "") && h("search"), e instanceof Array && !e.length && h("search");
244
- }, T = () => {
245
- var e;
246
- ["input", "input-number"].includes(((e = a.column.search) == null ? void 0 : e.el) || "") && h("search");
247
- };
248
- return (e, s) => {
249
- var r, l, g, B, k, P, _;
250
- return S(), D("div", ea, [
251
- (S(), F(de(((r = e.column.search) == null ? void 0 : r.render) ?? `el-${(l = e.column.search) == null ? void 0 : l.el}`), G({ ...p.value, ...A.value, searchParam: f.value, clearable: j.value, ...N.value }, {
252
- modelValue: f.value[((g = e.column.search) == null ? void 0 : g.key) ?? d(x)(e.column.prop)],
253
- "onUpdate:modelValue": s[0] || (s[0] = ($) => {
254
- var M;
255
- return f.value[((M = e.column.search) == null ? void 0 : M.key) ?? d(x)(e.column.prop)] = $;
256
- }),
257
- modelModifiers: { trim: !0 },
258
- data: ((B = e.column.search) == null ? void 0 : B.el) === "tree-select" ? v.value : [],
259
- options: n.value,
260
- "prefix-icon": (P = (k = e.column.search) == null ? void 0 : k.props) == null ? void 0 : P.prefixIcon,
261
- onChange: V,
262
- onKeyup: ct(T, ["enter"])
263
- }), pe({
264
- default: C(() => {
265
- var $;
266
- return [
267
- (($ = e.column.search) == null ? void 0 : $.el) === "select" ? (S(!0), D(H, { key: 0 }, he(v.value, (M, K) => (S(), F(de("el-option"), {
268
- key: K,
269
- label: M[y.value.label] ?? "",
270
- value: M[y.value.value]
271
- }, null, 8, ["label", "value"]))), 128)) : W(e.$slots, "default", { key: 1 }, void 0, !0)
272
- ];
273
- }),
274
- _: 2
275
- }, [
276
- ((_ = e.column.search) == null ? void 0 : _.el) === "cascader" ? {
277
- name: "default",
278
- fn: C(({ data: $ }) => [
279
- E("span", null, J($[y.value.label]), 1)
280
- ]),
281
- key: "0"
282
- } : void 0
283
- ]), 1040, ["modelValue", "data", "options", "prefix-icon"]))
284
- ]);
285
- };
286
- }
287
- }), aa = /* @__PURE__ */ le(ta, [["__scopeId", "data-v-e6e10dd4"]]), na = { class: "table-search" }, oa = { key: 0 }, la = {
288
- key: 0,
289
- class: "operation"
290
- }, ra = /* @__PURE__ */ ae({
291
- name: "SearchForm",
292
- __name: "SearchForm",
293
- props: {
294
- columns: { default: () => [] },
295
- searchParam: { default: () => ({}) },
296
- search: {},
297
- reset: {},
298
- isShowResetBtn: { type: Boolean, default: !0 },
299
- isShowSearchBtn: { type: Boolean, default: !0 }
300
- },
301
- setup(m) {
302
- const i = m;
303
- return (a, h) => (S(), D("div", na, [
304
- w(d($t), {
305
- ref: "formRef",
306
- model: a.searchParam,
307
- class: "table-search--left",
308
- onSubmit: h[0] || (h[0] = dt(() => {
309
- }, ["prevent"]))
310
- }, {
311
- default: C(() => [
312
- W(a.$slots, "default", {}, void 0, !0),
313
- a.columns.length ? (S(), D(H, { key: 0 }, [
314
- (S(!0), D(H, null, he(a.columns, (f) => {
315
- var y, t, v;
316
- return S(), D(H, {
317
- key: f.prop
318
- }, [
319
- !d(Et)((y = f.search) == null ? void 0 : y.isShow) || (t = f.search) != null && t.isShow ? (S(), D("div", oa, [
320
- w(d(Bt), null, pe({
321
- default: C(() => [
322
- w(aa, {
323
- column: f,
324
- "search-param": a.searchParam,
325
- onSearch: a.search
326
- }, null, 8, ["column", "search-param", "onSearch"])
327
- ]),
328
- _: 2
329
- }, [
330
- (v = f.search) != null && v.label ? {
331
- name: "label",
332
- fn: C(() => [
333
- w(d(zt), { size: 4 }, {
334
- default: C(() => {
335
- var n, p;
336
- return [
337
- E("span", null, J(`${f.search.label}`), 1),
338
- (n = f.search) != null && n.tooltip ? (S(), F(d(me), {
339
- key: 0,
340
- effect: "dark",
341
- content: (p = f.search) == null ? void 0 : p.tooltip,
342
- placement: "top"
343
- }, {
344
- default: C(() => h[1] || (h[1] = [
345
- E("i", {
346
- class: Ue("iconfont icon-yiwen")
347
- }, null, -1)
348
- ])),
349
- _: 2
350
- }, 1032, ["content"])) : z("", !0)
351
- ];
352
- }),
353
- _: 2
354
- }, 1024),
355
- h[2] || (h[2] = E("span", null, ":", -1))
356
- ]),
357
- key: "0"
358
- } : void 0
359
- ]), 1024)
360
- ])) : z("", !0)
361
- ], 64);
362
- }), 128)),
363
- i.isShowSearchBtn ? (S(), F(d(ke), {
364
- key: 0,
365
- type: "primary",
366
- class: "table-search--search-btn",
367
- onClick: a.search
368
- }, {
369
- icon: C(() => h[3] || (h[3] = [
370
- E("i", { class: "iconfont icon-search" }, null, -1)
371
- ])),
372
- default: C(() => [
373
- h[4] || (h[4] = Z(" 搜索 "))
374
- ]),
375
- _: 1
376
- }, 8, ["onClick"])) : z("", !0)
377
- ], 64)) : z("", !0)
378
- ]),
379
- _: 3
380
- }, 8, ["model"]),
381
- i.isShowResetBtn && a.columns.length ? (S(), D("div", la, [
382
- w(d(me), {
383
- class: "box-item",
384
- effect: "light",
385
- content: "重置",
386
- placement: "top"
387
- }, {
388
- default: C(() => {
389
- var f;
390
- return [
391
- a.columns.length > 1 || ((f = a.columns[0].search) == null ? void 0 : f.el) !== "input" ? (S(), F(d(ke), {
392
- key: 0,
393
- class: "table-search--reset-btn",
394
- onClick: a.reset
395
- }, {
396
- icon: C(() => [
397
- w(d(ge), { size: 14 }, {
398
- default: C(() => [
399
- w(d(It))
400
- ]),
401
- _: 1
402
- })
403
- ]),
404
- _: 1
405
- }, 8, ["onClick"])) : z("", !0)
406
- ];
407
- }),
408
- _: 1
409
- })
410
- ])) : z("", !0)
411
- ]));
412
- }
413
- }), sa = /* @__PURE__ */ le(ra, [["__scopeId", "data-v-703fdee3"]]), ua = { class: "el-pagination__total zh-page-total" }, ia = /* @__PURE__ */ ae({
414
- name: "Pagination",
415
- __name: "tablePagination",
416
- props: {
417
- pageable: {},
418
- handleSizeChange: { type: Function },
419
- handleCurrentChange: { type: Function }
420
- },
421
- setup(m) {
422
- return (i, a) => i.pageable.total ? (S(), F(d(Mt), {
423
- key: 0,
424
- class: "zh-pagination",
425
- background: !0,
426
- "current-page": i.pageable.page,
427
- "page-size": i.pageable.size,
428
- total: i.pageable.total,
429
- layout: "slot, sizes, prev, pager, next, jumper",
430
- onSizeChange: i.handleSizeChange,
431
- onCurrentChange: i.handleCurrentChange
432
- }, {
433
- default: C(() => [
434
- E("div", ua, "共" + J(i.pageable.total) + "条数据", 1)
435
- ]),
436
- _: 1
437
- }, 8, ["current-page", "page-size", "total", "onSizeChange", "onCurrentChange"])) : z("", !0);
438
- }
439
- }), ca = /* @__PURE__ */ le(ia, [["__scopeId", "data-v-a4b6460c"]]);
440
- function _e(m) {
441
- return typeof m == "function" || Object.prototype.toString.call(m) === "[object Object]" && !pt(m);
442
- }
443
- const da = /* @__PURE__ */ ae({
444
- name: "TableColumn",
445
- __name: "TableColumn",
446
- props: {
447
- column: {},
448
- customColumn: {
449
- type: Boolean
450
- }
451
- },
452
- setup(m) {
453
- const i = m, a = I(i.column), h = xe(), f = Ke("enumMap", I(/* @__PURE__ */ new Map())), y = (n, p) => f.value.get(n.prop) && n.isFilterEnum ? Oe(ce(p.row, n.prop), f.value.get(n.prop), n.fieldNames) : Yt(ce(p.row, n.prop)), t = (n, p) => Oe(ce(p.row, n.prop), f.value.get(n.prop), n.fieldNames, "tag"), v = (n) => w(H, null, [n.isShow && w(oe, G(n, {
454
- "class-name": n.wrap && "table-column--wrap",
455
- showOverflowTooltip: n.showOverflowTooltip ?? n.prop !== "operation"
456
- }), {
457
- default: (p) => {
458
- var O, N, j;
459
- let A;
460
- if (n._children) return n._children.map((V) => v(V));
461
- if (n.render) return n.render(p);
462
- if (n.prop === "operation") {
463
- if (!h[x(n.prop)]) {
464
- a.value.width = 0;
465
- return;
466
- }
467
- const V = ((N = (O = h[x(n.prop)](p)) == null ? void 0 : O.at(0)) == null ? void 0 : N.children) || [], T = (P) => Array.from(P).map((_) => {
468
- var $, M;
469
- return (($ = _.type) == null ? void 0 : $.name) === "ElButton" && _.children !== "v-if" ? _ : (M = _.children) != null && M.length ? T(_.children) : null;
470
- }).filter(Boolean).flat(), e = T(V), s = (P) => {
471
- let _ = "";
472
- return P.forEach(($) => {
473
- _ += $.children.default()[0].children;
474
- }), te(_, 14) + 6 * P.length + +(8 * P.length - 1);
475
- }, r = (P) => {
476
- a.value.hasOperationMaxWidth || (a.value.width = 0, a.value.hasOperationMaxWidth = !0);
477
- const _ = a.value.width;
478
- let $ = 0;
479
- P > 0 && ($ = Math.round(P) + 32), $ > Number.parseInt((_ == null ? void 0 : _.toString()) || "0") && (a.value.width = $, a.value.hasOperationMaxWidth = !0);
480
- };
481
- if (e.length <= 3) {
482
- const P = s(e), _ = i.customColumn ? P + 20 : P;
483
- return r(_), w("div", {
484
- class: "operation-container"
485
- }, [e]);
486
- }
487
- const l = [], g = e.slice(0, 2), B = w(ke, {
488
- link: !0,
489
- type: "primary"
490
- }, {
491
- default: () => [Z("更多")]
492
- });
493
- l.push(...g), l[3] = w(Dt, null, {
494
- default: () => B,
495
- dropdown: () => {
496
- let P;
497
- return w(Lt, null, _e(P = e.slice(2).map((_) => w(Ft, null, _e(_) ? _ : {
498
- default: () => [_]
499
- }))) ? P : {
500
- default: () => [P]
501
- });
502
- }
503
- });
504
- const k = s([...g, B]);
505
- return r(k), w("div", {
506
- class: "operation-container"
507
- }, [l]);
508
- }
509
- return h[x(n.prop)] ? h[x(n.prop)](p) : n.tag ? w(We, {
510
- type: t(n, p)
511
- }, _e(A = y(n, p)) ? A : {
512
- default: () => [A]
513
- }) : n.click && y(n, p) !== ee ? w("span", {
514
- class: "el-link el-link--primary scan-link",
515
- onClick: function() {
516
- n.click(p == null ? void 0 : p.row, p == null ? void 0 : p.$index);
517
- }
518
- }, [n.formatter ? n.formatter(p.row, p.column, p.row[n.prop], p.$index) : y(n, p)]) : w("span", {
519
- class: ((j = Jt(ce(p.row, n.prop), f.value.get(n.prop))) == null ? void 0 : j.state) || "text"
520
- }, [n.formatter ? n.formatter(p.row, p.column, p.row[n.prop], p.$index) : y(n, p)]);
521
- },
522
- header: (p) => n.headerRender ? n.headerRender(p) : h[`${x(n.prop)}Header`] ? h[`${x(n.prop)}Header`](p) : n.label
523
- })]);
524
- return (n, p) => (S(), F(v, ht(ft(a.value)), null, 16));
525
- }
526
- }), pa = { class: "custom-column-dialog" }, ha = { class: "table-body" }, fa = { class: "name" }, ma = {
527
- key: 0,
528
- class: "ml-10"
529
- }, ga = { class: "custom-width-label text" }, va = {
530
- key: 0,
531
- class: "custom-width-input-box"
532
- }, ba = { class: "custom-column-footer" }, ya = { class: "flex-1" }, Ca = /* @__PURE__ */ ae({
533
- name: "ColSetting",
534
- __name: "ColSetting",
535
- props: {
536
- originTableColumns: { default: () => [] }
537
- },
538
- emits: ["close", "submit", "dragSort"],
539
- setup(m, { expose: i, emit: a }) {
540
- const h = I(), f = I(!1), y = m, t = I([]), v = I((/* @__PURE__ */ new Date()).getTime()), n = I(!1), p = I(), A = (s) => {
541
- t.value = s, n.value = !0, fe(() => {
542
- V();
543
- });
544
- }, O = (s) => {
545
- f.value = s;
546
- }, N = a, j = async () => {
547
- N("submit", t.value), n.value = !1;
548
- }, V = () => {
549
- p.value && (p.value.destroy(), v.value = (/* @__PURE__ */ new Date()).getTime(), h.value.doLayout()), fe(() => {
550
- const s = document.querySelector(".custom-column-dialog tbody");
551
- p.value = qe.create(s, {
552
- handle: ".move",
553
- animation: 300,
554
- filter: ".operation",
555
- onEnd({ newIndex: r, oldIndex: l }) {
556
- if (!r || !l) return;
557
- let g = q(t.value);
558
- const B = g[l];
559
- if (r < l)
560
- for (let k = r; k < l; k++)
561
- g[k].order = String(Number(g[k].order) + 1);
562
- else
563
- for (let k = l + 1; k <= r; k++)
564
- g[k].order = String(Number(g[k].order) - 1);
565
- B.order = String(r), t.value = q(g);
566
- }
567
- });
568
- });
569
- }, T = () => {
570
- const s = q(y.originTableColumns);
571
- f.value ? t.value = s : t.value = t.value.map((r) => {
572
- const l = t.value.find((g) => g.prop === r.prop);
573
- return !(l != null && l.isShow) || l.prop === "operation" ? r : s.find((g) => g.prop === r.prop);
574
- }), V();
575
- }, e = () => {
576
- n.value = !1;
577
- };
578
- return i({
579
- openColSetting: A
580
- }), (s, r) => (S(), D("div", pa, [
581
- w(Wt, {
582
- modelValue: n.value,
583
- "onUpdate:modelValue": r[1] || (r[1] = (l) => n.value = l),
584
- size: "middle"
585
- }, {
586
- header: C(() => r[2] || (r[2] = [
587
- E("div", { class: "title" }, "自定义列", -1),
588
- E("div", { class: "sub-title" }, "勾选需要展示的列,拖动列名进行排序", -1)
589
- ])),
590
- footer: C(() => [
591
- E("div", ba, [
592
- w(d(Le), {
593
- modelValue: f.value,
594
- "onUpdate:modelValue": r[0] || (r[0] = (l) => f.value = l),
595
- class: "checkbox",
596
- label: "全局",
597
- onChange: O
598
- }, null, 8, ["modelValue"]),
599
- E("div", ya, [
600
- w(we, {
601
- plain: "",
602
- onClick: e
603
- }, {
604
- default: C(() => r[4] || (r[4] = [
605
- Z("取消")
606
- ])),
607
- _: 1
608
- }),
609
- w(we, {
610
- plain: "",
611
- class: "w-auto",
612
- onClick: T
613
- }, {
614
- default: C(() => [
615
- Z(J(f.value ? "全局恢复默认" : "恢复默认"), 1)
616
- ]),
617
- _: 1
618
- }),
619
- w(we, {
620
- type: "primary",
621
- onClick: j
622
- }, {
623
- default: C(() => r[5] || (r[5] = [
624
- Z("保存")
625
- ])),
626
- _: 1
627
- })
628
- ])
629
- ])
630
- ]),
631
- default: C(() => [
632
- E("div", ha, [
633
- (S(), F(d(He), {
634
- ref_key: "tableRef",
635
- ref: h,
636
- class: "custom-colum-table",
637
- key: v.value,
638
- data: t.value,
639
- "row-class-name": (l) => l.row.prop === "operation" ? "operation" : ""
640
- }, {
641
- default: C(() => [
642
- w(d(oe), {
643
- width: "100",
644
- label: "选择"
645
- }, {
646
- default: C(({ row: l }) => [
647
- w(d(Le), {
648
- class: "custom-column-check",
649
- modelValue: l.isShow,
650
- "onUpdate:modelValue": (g) => l.isShow = g,
651
- disabled: l.readonly
652
- }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
653
- ]),
654
- _: 1
655
- }),
656
- w(d(oe), {
657
- prop: "label",
658
- label: "名称"
659
- }, {
660
- default: C(({ row: l }) => [
661
- E("div", fa, [
662
- Z(J(l.label) + " ", 1),
663
- l.readonly ? (S(), D("span", ma, "(必选)")) : z("", !0),
664
- l.prop !== "operation" ? (S(), F(d(ge), {
665
- key: 1,
666
- class: "move move-icon"
667
- }, {
668
- default: C(() => [
669
- w(d(Rt))
670
- ]),
671
- _: 1
672
- })) : z("", !0)
673
- ])
674
- ]),
675
- _: 1
676
- }),
677
- w(d(oe), {
678
- prop: "width",
679
- label: "宽度",
680
- width: "180"
681
- }, {
682
- default: C(({ row: l }) => [
683
- E("div", {
684
- class: Ue(`custom-width-box ${l.readonly && "readonly"}`)
685
- }, [
686
- r[3] || (r[3] = E("span", { class: "text" }, "宽度", -1)),
687
- E("span", ga, J(l.width) + " px", 1),
688
- l.readonly ? z("", !0) : (S(), D("div", va, [
689
- w(d(Ze), {
690
- modelValue: l.width,
691
- "onUpdate:modelValue": (g) => l.width = g,
692
- class: "custom-width-input",
693
- min: 10,
694
- max: 1e3,
695
- controls: !1
696
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
697
- ]))
698
- ], 2)
699
- ]),
700
- _: 1
701
- })
702
- ]),
703
- _: 1
704
- }, 8, ["data", "row-class-name"]))
705
- ])
706
- ]),
707
- _: 1
708
- }, 8, ["modelValue"])
709
- ]));
710
- }
711
- }), Sa = /* @__PURE__ */ le(Ca, [["__scopeId", "data-v-6ef18c4c"]]), wa = { class: "no-card table-main zh-table" }, _a = { class: "table-title-container" }, ka = {
712
- key: 0,
713
- class: "table-title"
714
- }, Pa = {
715
- key: 1,
716
- class: "table-header-tip"
717
- }, Ta = { class: "table-header-container" }, $a = {
718
- key: 0,
719
- class: "table-header"
720
- }, Ea = { class: "header-button-ri" }, Ba = { class: "table-body-container" }, za = { class: "text d-flex inline-input-text pointer" }, Ia = {
721
- key: 1,
722
- class: "inline-input-box d-flex"
723
- }, Ma = { class: "table-empty" }, Da = ["src"], La = /* @__PURE__ */ ae({
724
- name: "ZhTable",
725
- __name: "Table",
726
- props: {
727
- columns: { default: () => [] },
728
- data: {},
729
- requestApi: {},
730
- requestAuto: { type: Boolean, default: !0 },
731
- requestError: { type: Function, default: (m) => {
732
- console.error("protable中请求数据错误", m);
733
- } },
734
- handleParam: {},
735
- dataCallback: {},
736
- selectChangeCallback: {},
737
- title: {},
738
- pagination: { type: Boolean, default: !0 },
739
- initParam: { default: {} },
740
- border: { type: Boolean, default: !1 },
741
- rowKey: { default: "id" },
742
- isShowSearch: { type: Boolean, default: !0 },
743
- maxHeight: {},
744
- isShowSearchBtn: { type: Boolean, default: !0 },
745
- isShowResetBtn: { type: Boolean, default: !0 },
746
- customColumn: { type: Boolean, default: !1 },
747
- onSortChange: {},
748
- offset: {},
749
- customColumnCacheKey: {},
750
- customColumnPageCacheKey: {}
751
- },
752
- emits: ["search", "reset", "dargSort"],
753
- setup(m, { expose: i, emit: a }) {
754
- var De;
755
- const h = I((/* @__PURE__ */ new Date()).getTime()), f = {
756
- mounted(o) {
757
- var u;
758
- (u = o.querySelector("input")) == null || u.focus();
759
- }
760
- }, y = xe(), t = m, v = I(), n = ["selection", "radio", "index", "expand", "sort", "input"], p = I(t.isShowSearch), A = I(""), O = I({}), N = I(t.maxHeight || "1000px"), { selectionChange: j, selectedList: V, selectedListIds: T, isSelected: e } = Zt(t.rowKey, t.selectChangeCallback), {
761
- loading: s,
762
- tableData: r,
763
- pageable: l,
764
- searchParam: g,
765
- searchInitParam: B,
766
- getTableList: k,
767
- search: P,
768
- reset: _,
769
- handleSizeChange: $,
770
- handleCurrentChange: M
771
- } = Ht(t.requestApi, t.initParam, t.pagination, t.dataCallback, t.requestError, t.handleParam), K = (o) => {
772
- function u(st) {
773
- return st.replace(/[A-Z]/g, (ut) => "_" + ut.toLowerCase());
774
- }
775
- const b = {
776
- ascending: "asc",
777
- descending: "desc"
778
- }, { prop: c, order: L } = o, U = u(x(c)), ie = b[L];
779
- g.value = {
780
- ...g.value,
781
- sortKey: U,
782
- sortOrder: ie
783
- }, l.value.page = 1, P();
784
- }, Q = () => v.value.clearSelection(), ve = () => v.value.clearSort(), Te = I(!1), $e = () => {
785
- et(), lt(), t.requestAuto && k(), t.data && (l.value.total = t.data.length);
786
- };
787
- mt(() => {
788
- $e(), fe(() => {
789
- Te.value = !0;
790
- });
791
- }), gt(() => {
792
- Te.value && $e();
793
- }), vt(() => {
794
- }), bt(() => {
795
- });
796
- const re = R(() => t.data ? t.pagination ? t.data.slice((l.value.page - 1) * l.value.size, l.value.size * l.value.page) : t.data : r.value), Qe = (o) => {
797
- l.value.total = o;
798
- };
799
- yt(() => t.initParam, k, { deep: !0 });
800
- let ne = X(t.columns);
801
- const Ge = R(() => Ee(ne)), Y = I(/* @__PURE__ */ new Map()), Je = async ({ prop: o, enum: u }) => {
802
- if (!u || Y.value.has(o) && (typeof u == "function" || Y.value.get(o) === u)) return;
803
- if (typeof u != "function") return Y.value.set(o, d(u));
804
- Y.value.set(o, []);
805
- const { data: b } = await u();
806
- Y.value.set(o, b);
807
- };
808
- Ct("enumMap", Y);
809
- const Ee = (o, u = []) => (o.forEach(async (b) => {
810
- var c;
811
- (c = b._children) != null && c.length && u.push(...Ee(b._children)), u.push(b), b.isShow = b.isShow ?? !0, b.isFilterEnum = b.isFilterEnum ?? !0, await Je(b);
812
- }), u.filter((b) => {
813
- var c;
814
- return !((c = b._children) != null && c.length);
815
- })), Be = R(() => {
816
- var o;
817
- return (o = Ge.value) == null ? void 0 : o.filter((u) => {
818
- var b, c;
819
- return ((b = u.search) == null ? void 0 : b.el) || ((c = u.search) == null ? void 0 : c.render);
820
- }).sort((u, b) => u.search.order - b.search.order);
821
- });
822
- (De = Be.value) == null || De.forEach((o, u) => {
823
- var L, U, ie;
824
- o.search.order = ((L = o.search) == null ? void 0 : L.order) ?? u + 2;
825
- const b = ((U = o.search) == null ? void 0 : U.key) ?? x(o.prop), c = (ie = o.search) == null ? void 0 : ie.defaultValue;
826
- c != null && (B.value[b] = c, g.value[b] = c);
827
- });
828
- const be = a, Ye = () => {
829
- var o;
830
- (o = v.value) == null || o.clearSelection(), P(), be("search");
831
- }, Xe = () => {
832
- _(), ve(), be("reset");
833
- }, et = () => {
834
- const o = document.querySelector(".el-table__body-wrapper tbody");
835
- o && qe.create(o, {
836
- handle: ".move",
837
- animation: 300,
838
- onEnd({ newIndex: u, oldIndex: b }) {
839
- const [c] = re.value.splice(b, 1);
840
- re.value.splice(u, 0, c), be("dargSort", { newIndex: u, oldIndex: b });
841
- }
842
- });
843
- }, se = I(0), tt = (o, u) => {
844
- const b = r.value.findIndex((c) => c.$showInput);
845
- b > -1 && (r.value[b] = q(O.value), r.value[b].$showInput = !1), se.value = Ve(o, String(u)), o.$showInput = !0, O.value = q(o);
846
- }, at = async (o, u, b) => {
847
- Ut(o, u, se.value), b && await b(o), o.$showInput = !1, xt.success("更新成功"), await k();
848
- }, nt = async (o) => {
849
- const u = r.value.findIndex((b) => Nt(Fe(b, Re), Fe(o, Re)));
850
- u > -1 && (r.value[u] = q(O.value), r.value[u].$showInput = !1);
851
- }, ze = Xt(t.customColumnCacheKey), Ie = I(null), ye = () => ne.map(
852
- (o, u) => ({
853
- readonly: o.isCustomDisable || ["id", "operation"].includes(String(o.prop)),
854
- order: u,
855
- index: u,
856
- width: o.width || o.minWidth,
857
- ...o
858
- })
859
- ).sort((o, u) => {
860
- const b = Number(o.order), c = Number(u.order);
861
- return b - c;
862
- }), ot = () => {
863
- ue = X(ye()), fe(() => {
864
- Ie.value.openColSetting(q(ue));
865
- });
866
- }, lt = () => {
867
- if (!t.customColumnPageCacheKey) return;
868
- const o = ze.getColumnCache(t.customColumnPageCacheKey);
869
- o != null && o.length && (ue = X(o), ne = X(ue));
870
- };
871
- let ue = X(ye());
872
- const Me = q(ye()), rt = (o) => {
873
- if (!t.customColumnPageCacheKey) return console.error("请添加自定义列缓存配置项:customColumnPageCacheKey");
874
- o = o.map((u) => {
875
- const b = Me.find((c) => c.prop === u.prop);
876
- return b && b.minWidth && (u.minWidth = u.width, delete u.width), u;
877
- }), ne = X(q(o)), ze.setColumnCache(t.customColumnPageCacheKey, o), h.value = (/* @__PURE__ */ new Date()).getTime(), v.value.doLayout();
878
- };
879
- return i({
880
- element: v,
881
- tableData: re,
882
- radio: A,
883
- pageable: l,
884
- searchParam: g,
885
- searchInitParam: B,
886
- setPageTotal: Qe,
887
- getTableList: k,
888
- search: P,
889
- reset: _,
890
- handleSizeChange: $,
891
- handleCurrentChange: M,
892
- clearSelection: Q,
893
- enumMap: Y,
894
- isSelected: e,
895
- selectedList: V,
896
- selectedListIds: T
897
- }), (o, u) => {
898
- const b = St("loading");
899
- return S(), F(d(Vt), { locale: d(Ot) }, {
900
- default: C(() => [
901
- E("div", wa, [
902
- E("div", _a, [
903
- o.title ? (S(), D("div", ka, J(o.title), 1)) : z("", !0),
904
- d(y).headerTip ? (S(), D("div", Pa, [
905
- W(o.$slots, "headerTip", {}, void 0, !0)
906
- ])) : z("", !0)
907
- ]),
908
- E("div", Ta, [
909
- Ce(w(sa, {
910
- search: Ye,
911
- reset: Xe,
912
- columns: Be.value,
913
- "search-param": d(g),
914
- "is-show-reset-btn": t.isShowResetBtn,
915
- "is-show-search-btn": t.isShowSearchBtn
916
- }, {
917
- default: C(() => [
918
- o.$slots.tableHeader ? (S(), D("div", $a, [
919
- E("div", Ea, [
920
- W(o.$slots, "tableHeader", {
921
- selectedList: d(V),
922
- selectedListIds: d(T),
923
- isSelected: d(e)
924
- }, void 0, !0)
925
- ])
926
- ])) : z("", !0)
927
- ]),
928
- _: 3
929
- }, 8, ["columns", "search-param", "is-show-reset-btn", "is-show-search-btn"]), [
930
- [wt, p.value]
931
- ])
932
- ]),
933
- E("div", Ba, [
934
- t.customColumn ? (S(), D("div", {
935
- key: 0,
936
- class: "col-setting-button",
937
- onClick: ot
938
- }, [
939
- w(d(me), {
940
- class: "box-item",
941
- effect: "dark",
942
- content: "自定义列",
943
- placement: "top"
944
- }, {
945
- default: C(() => [
946
- w(d(ge), {
947
- size: 14,
948
- color: "#000000a6"
949
- }, {
950
- default: C(() => [
951
- w(d(At))
952
- ]),
953
- _: 1
954
- })
955
- ]),
956
- _: 1
957
- })
958
- ])) : z("", !0),
959
- Ce((S(), F(d(He), G({
960
- ref_key: "tableRef",
961
- ref: v
962
- }, o.$attrs, {
963
- key: h.value,
964
- data: re.value,
965
- border: o.border,
966
- "row-key": o.rowKey,
967
- "max-height": N.value,
968
- "row-style": { height: "42px" },
969
- "tooltip-effect": "light",
970
- "tooltip-options": { showArrow: !1, placement: "bottom-start", offset: t.offset ? t.offset : -20 }
971
- }, _t(o.$attrs), {
972
- onSelectionChange: d(j),
973
- onSortChange: u[1] || (u[1] = (c) => t.onSortChange ? t.onSortChange(c) : K(c))
974
- }), {
975
- append: C(() => [
976
- W(o.$slots, "append", {}, void 0, !0)
977
- ]),
978
- empty: C(() => [
979
- E("div", Ma, [
980
- W(o.$slots, "empty", {}, () => [
981
- E("img", {
982
- src: `${d(jt)}ghy-components/empty.png`,
983
- class: "zh-empty-img",
984
- alt: "notData"
985
- }, null, 8, Da),
986
- u[5] || (u[5] = E("div", null, "暂无数据", -1))
987
- ], !0)
988
- ])
989
- ]),
990
- default: C(() => [
991
- (S(!0), D(H, null, he(d(ne).sort((c, L) => c.order - L.order), (c) => (S(), D(H, { key: c }, [
992
- c.type && n.includes(c.type) && c.isShow ? (S(), F(d(oe), G({
993
- key: 0,
994
- ref_for: !0
995
- }, c, {
996
- align: c.align ?? "left",
997
- "reserve-selection": c.type == "selection"
998
- }), pe({
999
- default: C((L) => [
1000
- c.type == "expand" ? (S(), D(H, { key: 0 }, [
1001
- c.render ? (S(), F(de(c.render), G({
1002
- key: 0,
1003
- ref_for: !0
1004
- }, L), null, 16)) : W(o.$slots, c.type, G({
1005
- key: 1,
1006
- ref_for: !0
1007
- }, L), void 0, !0)
1008
- ], 64)) : z("", !0),
1009
- c.type == "sort" ? (S(), F(d(We), {
1010
- key: 1,
1011
- class: "move"
1012
- }, {
1013
- default: C(() => [
1014
- w(d(ge), null, {
1015
- default: C(() => [
1016
- w(d(Kt))
1017
- ]),
1018
- _: 1
1019
- })
1020
- ]),
1021
- _: 1
1022
- })) : z("", !0),
1023
- c.type == "input" ? (S(), D(H, { key: 2 }, [
1024
- L.row.$showInput ? (S(), D("div", Ia, [
1025
- Ce(w(d(Ze), {
1026
- modelValue: se.value,
1027
- "onUpdate:modelValue": u[0] || (u[0] = (U) => se.value = U),
1028
- min: 0,
1029
- controls: !1
1030
- }, null, 8, ["modelValue"]), [
1031
- [f]
1032
- ]),
1033
- w(d(Se), {
1034
- underline: !1,
1035
- type: "primary",
1036
- onClick: (U) => at(L.row, String(c.prop), c.blurCallback),
1037
- class: "ml-5"
1038
- }, {
1039
- default: C(() => u[3] || (u[3] = [
1040
- Z(" 保存 ")
1041
- ])),
1042
- _: 2
1043
- }, 1032, ["onClick"]),
1044
- w(d(Se), {
1045
- type: "primary",
1046
- underline: !1,
1047
- onClick: (U) => nt(L.row),
1048
- class: "ml-5"
1049
- }, {
1050
- default: C(() => u[4] || (u[4] = [
1051
- Z(" 取消 ")
1052
- ])),
1053
- _: 2
1054
- }, 1032, ["onClick"])
1055
- ])) : (S(), F(d(me), {
1056
- key: 0,
1057
- content: "编辑",
1058
- placement: "top"
1059
- }, {
1060
- default: C(() => [
1061
- E("span", za, [
1062
- Z(J(d(Ve)(L.row, String(c.prop))) + " ", 1),
1063
- w(d(Se), {
1064
- underline: !1,
1065
- class: "text d-flex inline-input-text pointer",
1066
- onClick: (U) => tt(L.row, c.prop)
1067
- }, {
1068
- default: C(() => u[2] || (u[2] = [
1069
- E("i", { class: "iconfont icon-edit" }, null, -1)
1070
- ])),
1071
- _: 2
1072
- }, 1032, ["onClick"])
1073
- ])
1074
- ]),
1075
- _: 2
1076
- }, 1024))
1077
- ], 64)) : z("", !0)
1078
- ]),
1079
- _: 2
1080
- }, [
1081
- c.headerRender ? {
1082
- name: "header",
1083
- fn: C((L) => [
1084
- (S(), F(de(c.headerRender), G({ ref_for: !0 }, L), null, 16))
1085
- ]),
1086
- key: "0"
1087
- } : void 0
1088
- ]), 1040, ["align", "reserve-selection"])) : z("", !0),
1089
- !c.type && c.prop && c.isShow ? (S(), F(da, {
1090
- key: 1,
1091
- column: c,
1092
- "custom-column": o.customColumn
1093
- }, pe({ _: 2 }, [
1094
- he(Object.keys(o.$slots), (L) => ({
1095
- name: L,
1096
- fn: C((U) => [
1097
- W(o.$slots, L, G({ ref_for: !0 }, U), void 0, !0)
1098
- ])
1099
- }))
1100
- ]), 1032, ["column", "custom-column"])) : z("", !0)
1101
- ], 64))), 128))
1102
- ]),
1103
- _: 3
1104
- }, 16, ["data", "border", "row-key", "max-height", "tooltip-options", "onSelectionChange"])), [
1105
- [b, d(s)]
1106
- ])
1107
- ]),
1108
- W(o.$slots, "pagination", {}, () => [
1109
- o.pagination ? (S(), F(ca, {
1110
- key: 0,
1111
- pageable: d(l),
1112
- "handle-size-change": d($),
1113
- "handle-current-change": d(M)
1114
- }, null, 8, ["pageable", "handle-size-change", "handle-current-change"])) : z("", !0)
1115
- ], !0)
1116
- ]),
1117
- t.customColumn ? (S(), F(Sa, {
1118
- key: 0,
1119
- ref_key: "colRef",
1120
- ref: Ie,
1121
- "origin-table-columns": d(Me),
1122
- onSubmit: rt
1123
- }, null, 8, ["origin-table-columns"])) : z("", !0)
1124
- ]),
1125
- _: 3
1126
- }, 8, ["locale"]);
1127
- };
1128
- }
1129
- }), Fa = /* @__PURE__ */ le(La, [["__scopeId", "data-v-936c6eb9"]]), xa = qt(Fa);
1130
- export {
1131
- xa as Z
1132
- };