gzhr-ui 1.1.13 → 1.1.14
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/index.mjs +1 -1
- package/dist/es/{table-CgdebjjS.mjs → table-C-phm-Yp.mjs} +703 -620
- package/dist/index.css +1 -1
- package/dist/types/components/index.d.ts +15 -0
- package/dist/types/components/table/index.d.ts +15 -0
- package/dist/types/components/table/src/index.vue.d.ts +9 -0
- package/dist/umd/index.css +1 -1
- package/dist/umd/index.umd.js +12 -8
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./button-DDCRUA17.mjs";
|
|
2
2
|
import { a as ElInput, b as ElPopover, c as ElDatePicker, d as ElButton, C as ClickOutside, e as ElCheckboxGroup, f as ElCheckbox, g as ElTreeSelect, h as ElInputNumber, E as ElIcon, i as ElDropdown, j as ElDropdownMenu, k as ElDropdownItem, l as ElTag, m as isEmpty, n as ElColorPicker, o as dayjs, p as isoWeek, q as quarterOfYear, r as customParseFormat, s as ElImage, t as ElProgress, u as ElRadioGroup, v as ElRadio, V as VxeInput, w as ElSelect, x as ElOption, y as VxePager, z as VxeGrid, A as VxeUI } from "./vendor-CUWEHqGm.mjs";
|
|
3
|
-
import { ref, computed, onMounted, onBeforeUnmount, openBlock, createElementBlock, createVNode, unref, withCtx, createElementVNode, createTextVNode, withDirectives, withKeys, createBlock, Fragment, renderList, createCommentVNode, defineComponent, normalizeStyle, normalizeClass, toDisplayString, watch, vShow, watchEffect, resolveComponent, normalizeProps, mergeProps, resolveDirective, reactive, toHandlers, useModel, mergeModels, effect,
|
|
3
|
+
import { ref, computed, onMounted, onBeforeUnmount, openBlock, createElementBlock, createVNode, unref, withCtx, createElementVNode, createTextVNode, withDirectives, withKeys, createBlock, Fragment, renderList, createCommentVNode, defineComponent, normalizeStyle, normalizeClass, toDisplayString, watch, vShow, watchEffect, resolveComponent, normalizeProps, mergeProps, resolveDirective, reactive, nextTick, toHandlers, useModel, mergeModels, effect, withModifiers, vModelText } from "vue";
|
|
4
4
|
import { _ as _export_sfc, b as buildTree, d as deepClone, u as useElementClientSize, i as isColor, g as getFileIconUrl, w as withInstall } from "./utils-OZSnHKWO.mjs";
|
|
5
5
|
import { H as HrIcon } from "./icon-Dx0--dHl.mjs";
|
|
6
6
|
const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" }, _hoisted_3$5 = { class: "btn-row" }, _sfc_main$z = {
|
|
@@ -12,28 +12,28 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
emits: ["FilterSearch"],
|
|
15
|
-
setup(n, { emit:
|
|
16
|
-
const e = n, r =
|
|
17
|
-
var
|
|
18
|
-
const
|
|
19
|
-
return Array.isArray(
|
|
15
|
+
setup(n, { emit: l }) {
|
|
16
|
+
const e = n, r = l, c = ref(""), o = ref(""), t = ref(!1), a = ref(), u = ref(), s = ref(), i = computed(() => {
|
|
17
|
+
var y, w;
|
|
18
|
+
const v = ((w = (y = e.column.filters) == null ? void 0 : y[0]) == null ? void 0 : w.data) || [];
|
|
19
|
+
return Array.isArray(v) && v.length === 2 && v[0] && v[1] ? `${v[0]} 至 ${v[1]}` : "";
|
|
20
20
|
});
|
|
21
21
|
onMounted(() => {
|
|
22
|
-
var
|
|
23
|
-
const
|
|
24
|
-
Array.isArray(
|
|
22
|
+
var y, w;
|
|
23
|
+
const v = ((w = (y = e.column.filters) == null ? void 0 : y[0]) == null ? void 0 : w.data) || [];
|
|
24
|
+
Array.isArray(v) && v.length === 2 && (c.value = v[0] || "", o.value = v[1] || ""), document.addEventListener("click", m);
|
|
25
25
|
}), onBeforeUnmount(() => {
|
|
26
26
|
document.removeEventListener("click", m);
|
|
27
27
|
});
|
|
28
28
|
const d = () => {
|
|
29
|
-
|
|
30
|
-
}, m = (
|
|
31
|
-
var
|
|
32
|
-
if (!
|
|
33
|
-
const
|
|
34
|
-
|
|
29
|
+
t.value = !t.value;
|
|
30
|
+
}, m = (v) => {
|
|
31
|
+
var $, j;
|
|
32
|
+
if (!t.value) return;
|
|
33
|
+
const y = v.target, w = s.value, V = (j = ($ = u.value) == null ? void 0 : $.popperRef) == null ? void 0 : j.contentRef;
|
|
34
|
+
w && w.contains(y) || V && V.contains(y) || (t.value = !1);
|
|
35
35
|
};
|
|
36
|
-
function
|
|
36
|
+
function g() {
|
|
37
37
|
if (!c.value && !o.value)
|
|
38
38
|
e.column.filters[0].data = [];
|
|
39
39
|
else if (!c.value || !o.value) {
|
|
@@ -41,12 +41,12 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
41
41
|
return;
|
|
42
42
|
} else
|
|
43
43
|
e.column.filters[0].data = [c.value, o.value];
|
|
44
|
-
|
|
44
|
+
t.value = !1, r("FilterSearch", e.column);
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function k() {
|
|
47
47
|
c.value = "", o.value = "", e.column.filters[0].data = [];
|
|
48
48
|
}
|
|
49
|
-
return (
|
|
49
|
+
return (v, y) => (openBlock(), createElementBlock("div", {
|
|
50
50
|
class: "size-full",
|
|
51
51
|
title: i.value,
|
|
52
52
|
ref_key: "wrapperRef",
|
|
@@ -65,8 +65,8 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
65
65
|
"virtual-ref": a.value,
|
|
66
66
|
"virtual-triggering": "",
|
|
67
67
|
trigger: "manual",
|
|
68
|
-
visible:
|
|
69
|
-
"onUpdate:visible":
|
|
68
|
+
visible: t.value,
|
|
69
|
+
"onUpdate:visible": y[2] || (y[2] = (w) => t.value = w),
|
|
70
70
|
"hide-after": 0,
|
|
71
71
|
width: "140",
|
|
72
72
|
"popper-class": "date-filter-popper"
|
|
@@ -75,7 +75,7 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
75
75
|
createElementVNode("div", _hoisted_2$7, [
|
|
76
76
|
createVNode(unref(ElDatePicker), {
|
|
77
77
|
modelValue: c.value,
|
|
78
|
-
"onUpdate:modelValue":
|
|
78
|
+
"onUpdate:modelValue": y[0] || (y[0] = (w) => c.value = w),
|
|
79
79
|
type: "date",
|
|
80
80
|
"value-format": "YYYY-MM-DD",
|
|
81
81
|
placeholder: "开始日期",
|
|
@@ -85,7 +85,7 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
85
85
|
}, null, 8, ["modelValue"]),
|
|
86
86
|
createVNode(unref(ElDatePicker), {
|
|
87
87
|
modelValue: o.value,
|
|
88
|
-
"onUpdate:modelValue":
|
|
88
|
+
"onUpdate:modelValue": y[1] || (y[1] = (w) => o.value = w),
|
|
89
89
|
type: "date",
|
|
90
90
|
"value-format": "YYYY-MM-DD",
|
|
91
91
|
placeholder: "结束日期",
|
|
@@ -98,9 +98,9 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
98
98
|
size: "small",
|
|
99
99
|
type: "primary",
|
|
100
100
|
class: "btn-confirm",
|
|
101
|
-
onClick:
|
|
101
|
+
onClick: g
|
|
102
102
|
}, {
|
|
103
|
-
default: withCtx(() =>
|
|
103
|
+
default: withCtx(() => y[3] || (y[3] = [
|
|
104
104
|
createTextVNode(" 确认 ")
|
|
105
105
|
])),
|
|
106
106
|
_: 1
|
|
@@ -108,9 +108,9 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
108
108
|
createVNode(unref(ElButton), {
|
|
109
109
|
size: "small",
|
|
110
110
|
class: "btn-reset",
|
|
111
|
-
onClick:
|
|
111
|
+
onClick: k
|
|
112
112
|
}, {
|
|
113
|
-
default: withCtx(() =>
|
|
113
|
+
default: withCtx(() => y[4] || (y[4] = [
|
|
114
114
|
createTextVNode(" 重置 ")
|
|
115
115
|
])),
|
|
116
116
|
_: 1
|
|
@@ -131,11 +131,11 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
131
131
|
}
|
|
132
132
|
},
|
|
133
133
|
emits: ["FilterSearch"],
|
|
134
|
-
setup(n, { emit:
|
|
135
|
-
const e = n, r = ref([]), c = computed(() => e.column.filters[0].data.length ? e.column.filters[0].data.map((i) => i ? "是" : "否").join(",") : ""), o = ref(),
|
|
134
|
+
setup(n, { emit: l }) {
|
|
135
|
+
const e = n, r = ref([]), c = computed(() => e.column.filters[0].data.length ? e.column.filters[0].data.map((i) => i ? "是" : "否").join(",") : ""), o = ref(), t = ref(), a = () => {
|
|
136
136
|
var i, d;
|
|
137
|
-
(d = (i = unref(
|
|
138
|
-
}, u =
|
|
137
|
+
(d = (i = unref(t).popperRef) == null ? void 0 : i.delayHide) == null || d.call(i);
|
|
138
|
+
}, u = l;
|
|
139
139
|
function s() {
|
|
140
140
|
r.value.length ? e.column.filters[0].data = [...r.value] : e.column.filters[0].data = [];
|
|
141
141
|
}
|
|
@@ -154,7 +154,7 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
154
154
|
]),
|
|
155
155
|
createVNode(unref(ElPopover), {
|
|
156
156
|
ref_key: "popoverRef",
|
|
157
|
-
ref:
|
|
157
|
+
ref: t,
|
|
158
158
|
"virtual-ref": o.value,
|
|
159
159
|
trigger: "click",
|
|
160
160
|
"virtual-triggering": "",
|
|
@@ -193,16 +193,16 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
193
193
|
}
|
|
194
194
|
},
|
|
195
195
|
emits: ["FilterSearch"],
|
|
196
|
-
setup(n, { emit:
|
|
196
|
+
setup(n, { emit: l }) {
|
|
197
197
|
const e = n, r = ref([]);
|
|
198
198
|
ref("");
|
|
199
199
|
const c = computed(() => e.column.filters && e.column.filters[0].data.length ? e.column.filters[0].data.map((i) => {
|
|
200
200
|
var d;
|
|
201
201
|
return (d = e.column.params.options.find((m) => m.value === i)) == null ? void 0 : d.label;
|
|
202
|
-
}).join(",") : ""), o = ref(),
|
|
202
|
+
}).join(",") : ""), o = ref(), t = ref(), a = () => {
|
|
203
203
|
var i, d;
|
|
204
|
-
(d = (i = unref(
|
|
205
|
-
}, u =
|
|
204
|
+
(d = (i = unref(t).popperRef) == null ? void 0 : i.delayHide) == null || d.call(i);
|
|
205
|
+
}, u = l;
|
|
206
206
|
function s() {
|
|
207
207
|
r.value.length ? e.column.filters[0].data = [...r.value] : e.column.filters[0].data = [];
|
|
208
208
|
}
|
|
@@ -221,7 +221,7 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
221
221
|
]),
|
|
222
222
|
createVNode(unref(ElPopover), {
|
|
223
223
|
ref_key: "popoverRef",
|
|
224
|
-
ref:
|
|
224
|
+
ref: t,
|
|
225
225
|
"virtual-ref": o.value,
|
|
226
226
|
trigger: "click",
|
|
227
227
|
"virtual-triggering": "",
|
|
@@ -274,8 +274,8 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
274
274
|
}
|
|
275
275
|
},
|
|
276
276
|
emits: ["FilterSearch"],
|
|
277
|
-
setup(n, { emit:
|
|
278
|
-
const e = n, r = ref([]), c = ref(null), o = ref(e.column.params.FieldType === "TreeMultipleSelect"),
|
|
277
|
+
setup(n, { emit: l }) {
|
|
278
|
+
const e = n, r = ref([]), c = ref(null), o = ref(e.column.params.FieldType === "TreeMultipleSelect"), t = ref({
|
|
279
279
|
label: e.column.params.NodeNameField || "label",
|
|
280
280
|
value: e.column.params.NodeValueField || "value",
|
|
281
281
|
children: "children"
|
|
@@ -287,7 +287,7 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
287
287
|
onMounted(() => {
|
|
288
288
|
r.value = e.column.params.TreeData;
|
|
289
289
|
});
|
|
290
|
-
const a =
|
|
290
|
+
const a = l;
|
|
291
291
|
function u() {
|
|
292
292
|
c.value ? e.column.filters[0].data = [c.value] : e.column.filters[0].data = [];
|
|
293
293
|
}
|
|
@@ -301,7 +301,7 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
301
301
|
onChange: u,
|
|
302
302
|
multiple: o.value,
|
|
303
303
|
"show-checkbox": o.value,
|
|
304
|
-
props:
|
|
304
|
+
props: t.value,
|
|
305
305
|
onKeyup: i[1] || (i[1] = withKeys((d) => a("FilterSearch", n.column), ["enter"]))
|
|
306
306
|
}, null, 8, ["modelValue", "data", "multiple", "show-checkbox", "props"]));
|
|
307
307
|
}
|
|
@@ -314,7 +314,7 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
314
314
|
}
|
|
315
315
|
},
|
|
316
316
|
emits: ["FilterSearch"],
|
|
317
|
-
setup(n, { emit:
|
|
317
|
+
setup(n, { emit: l }) {
|
|
318
318
|
const e = n, r = ref([]), c = ref([]), o = ref({
|
|
319
319
|
label: e.column.params.NodeNameField || "label",
|
|
320
320
|
value: e.column.params.NodeValueField || "value",
|
|
@@ -327,12 +327,12 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
327
327
|
onMounted(() => {
|
|
328
328
|
r.value = e.column.params.TreeData;
|
|
329
329
|
});
|
|
330
|
-
const
|
|
330
|
+
const t = l;
|
|
331
331
|
function a() {
|
|
332
332
|
c.value ? e.column.filters[0].data = c.value : e.column.filters[0].data = [];
|
|
333
333
|
}
|
|
334
334
|
function u(s) {
|
|
335
|
-
cleanUpTreeFilterRows(),
|
|
335
|
+
cleanUpTreeFilterRows(), t("FilterSearch", e.column);
|
|
336
336
|
}
|
|
337
337
|
return (s, i) => (openBlock(), createBlock(unref(ElTreeSelect), {
|
|
338
338
|
"popper-class": "tree-filter-row",
|
|
@@ -359,11 +359,11 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
359
359
|
}
|
|
360
360
|
},
|
|
361
361
|
emits: ["FilterSearch"],
|
|
362
|
-
setup(n, { emit:
|
|
363
|
-
const e = n, r = ref([null, null]), c = computed(() => e.column.filters && e.column.filters[0].data.length ? e.column.filters[0].data.join(" 至 ") : ""), o = ref(),
|
|
362
|
+
setup(n, { emit: l }) {
|
|
363
|
+
const e = n, r = ref([null, null]), c = computed(() => e.column.filters && e.column.filters[0].data.length ? e.column.filters[0].data.join(" 至 ") : ""), o = ref(), t = ref(), a = () => {
|
|
364
364
|
var d, m;
|
|
365
|
-
(m = (d = unref(
|
|
366
|
-
}, u =
|
|
365
|
+
(m = (d = unref(t).popperRef) == null ? void 0 : d.delayHide) == null || m.call(d);
|
|
366
|
+
}, u = l;
|
|
367
367
|
function s() {
|
|
368
368
|
if (!r.value[0] && !r.value[1])
|
|
369
369
|
e.column.filters[0].data = [];
|
|
@@ -372,7 +372,7 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
372
372
|
return;
|
|
373
373
|
} else
|
|
374
374
|
e.column.filters[0].data = [...r.value];
|
|
375
|
-
|
|
375
|
+
t.value.hide(), u("FilterSearch", e.column);
|
|
376
376
|
}
|
|
377
377
|
function i() {
|
|
378
378
|
r.value = [null, null];
|
|
@@ -386,13 +386,13 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
386
386
|
ref: o,
|
|
387
387
|
value: c.value,
|
|
388
388
|
readonly: "",
|
|
389
|
-
onKeyup: m[0] || (m[0] = withKeys((
|
|
389
|
+
onKeyup: m[0] || (m[0] = withKeys((g) => u("FilterSearch", n.column), ["enter"]))
|
|
390
390
|
}, null, 8, ["value"]), [
|
|
391
391
|
[unref(ClickOutside), a]
|
|
392
392
|
]),
|
|
393
393
|
createVNode(unref(ElPopover), {
|
|
394
394
|
ref_key: "popoverRef",
|
|
395
|
-
ref:
|
|
395
|
+
ref: t,
|
|
396
396
|
"virtual-ref": o.value,
|
|
397
397
|
trigger: "click",
|
|
398
398
|
"virtual-triggering": "",
|
|
@@ -403,12 +403,12 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
403
403
|
createVNode(unref(ElInputNumber), {
|
|
404
404
|
class: "w-full",
|
|
405
405
|
modelValue: r.value[0],
|
|
406
|
-
"onUpdate:modelValue": m[1] || (m[1] = (
|
|
406
|
+
"onUpdate:modelValue": m[1] || (m[1] = (g) => r.value[0] = g)
|
|
407
407
|
}, null, 8, ["modelValue"]),
|
|
408
408
|
createVNode(unref(ElInputNumber), {
|
|
409
409
|
class: "w-full",
|
|
410
410
|
modelValue: r.value[1],
|
|
411
|
-
"onUpdate:modelValue": m[2] || (m[2] = (
|
|
411
|
+
"onUpdate:modelValue": m[2] || (m[2] = (g) => r.value[1] = g)
|
|
412
412
|
}, null, 8, ["modelValue"])
|
|
413
413
|
]),
|
|
414
414
|
createElementVNode("div", _hoisted_3$4, [
|
|
@@ -453,7 +453,7 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
453
453
|
}
|
|
454
454
|
},
|
|
455
455
|
emits: ["FilterSearch", "SortChange"],
|
|
456
|
-
setup(n, { emit:
|
|
456
|
+
setup(n, { emit: l }) {
|
|
457
457
|
const e = n, r = ref([]);
|
|
458
458
|
let c = ref(0);
|
|
459
459
|
onMounted(() => {
|
|
@@ -466,8 +466,8 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
466
466
|
c.value = 23;
|
|
467
467
|
r.value = e.column.params.TreeData;
|
|
468
468
|
});
|
|
469
|
-
const o =
|
|
470
|
-
function
|
|
469
|
+
const o = l;
|
|
470
|
+
function t(u) {
|
|
471
471
|
if (u === "search") {
|
|
472
472
|
const s = e.gridRef.getColumns();
|
|
473
473
|
o("FilterSearch", e.column, s);
|
|
@@ -507,12 +507,12 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
507
507
|
}, toDisplayString(n.column.title), 5),
|
|
508
508
|
(d = n.column.params) != null && d.sortable && ((m = n.column.params) != null && m.sortStatus) ? (openBlock(), createBlock(unref(ElIcon), { key: 0 }, {
|
|
509
509
|
default: withCtx(() => {
|
|
510
|
-
var
|
|
510
|
+
var g, k;
|
|
511
511
|
return [
|
|
512
|
-
((
|
|
512
|
+
((g = n.column.params) == null ? void 0 : g.sortStatus) === "asc" ? (openBlock(), createBlock(unref(HrIcon), {
|
|
513
513
|
key: 0,
|
|
514
514
|
icon: "ep:caret-top"
|
|
515
|
-
})) : ((
|
|
515
|
+
})) : ((k = n.column.params) == null ? void 0 : k.sortStatus) === "desc" ? (openBlock(), createBlock(unref(HrIcon), {
|
|
516
516
|
key: 1,
|
|
517
517
|
icon: "ep:caret-bottom"
|
|
518
518
|
})) : createCommentVNode("", !0)
|
|
@@ -525,38 +525,38 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
525
525
|
["radio_Table", "bool"].includes(n.column.params.FieldType) ? (openBlock(), createBlock(_sfc_main$y, {
|
|
526
526
|
key: 0,
|
|
527
527
|
column: n.column,
|
|
528
|
-
onFilterSearch: s[0] || (s[0] = (
|
|
528
|
+
onFilterSearch: s[0] || (s[0] = (g) => t("search"))
|
|
529
529
|
}, null, 8, ["column"])) : ["select", "check"].includes(n.column.params.FieldType) ? (openBlock(), createBlock(_sfc_main$x, {
|
|
530
530
|
key: 1,
|
|
531
531
|
column: n.column,
|
|
532
|
-
onFilterSearch: s[1] || (s[1] = (
|
|
532
|
+
onFilterSearch: s[1] || (s[1] = (g) => t("search"))
|
|
533
533
|
}, null, 8, ["column"])) : n.column.params.FieldType === "date" ? (openBlock(), createBlock(FilterDate, {
|
|
534
534
|
key: 2,
|
|
535
535
|
column: n.column,
|
|
536
|
-
onFilterSearch: s[2] || (s[2] = (
|
|
536
|
+
onFilterSearch: s[2] || (s[2] = (g) => t("search"))
|
|
537
537
|
}, null, 8, ["column"])) : n.column.params.FieldType === "tree" ? (openBlock(), createBlock(_sfc_main$w, {
|
|
538
538
|
key: 3,
|
|
539
539
|
column: n.column,
|
|
540
|
-
onFilterSearch: s[3] || (s[3] = (
|
|
540
|
+
onFilterSearch: s[3] || (s[3] = (g) => t("search"))
|
|
541
541
|
}, null, 8, ["column"])) : n.column.params.FieldType === "TreeMultipleSelect" ? (openBlock(), createBlock(_sfc_main$v, {
|
|
542
542
|
key: 4,
|
|
543
543
|
column: n.column,
|
|
544
|
-
onFilterSearch: s[4] || (s[4] = (
|
|
544
|
+
onFilterSearch: s[4] || (s[4] = (g) => t("search"))
|
|
545
545
|
}, null, 8, ["column"])) : n.column.params.FieldType === "inputNumber" ? (openBlock(), createBlock(_sfc_main$u, {
|
|
546
546
|
key: 5,
|
|
547
547
|
column: n.column,
|
|
548
|
-
onFilterSearch: s[5] || (s[5] = (
|
|
549
|
-
}, null, 8, ["column"])) : (openBlock(!0), createElementBlock(Fragment, { key: 6 }, renderList(n.column.filters, (
|
|
550
|
-
key:
|
|
551
|
-
modelValue:
|
|
552
|
-
"onUpdate:modelValue": (
|
|
553
|
-
onKeyup: s[6] || (s[6] = withKeys((
|
|
548
|
+
onFilterSearch: s[5] || (s[5] = (g) => t("search"))
|
|
549
|
+
}, null, 8, ["column"])) : (openBlock(!0), createElementBlock(Fragment, { key: 6 }, renderList(n.column.filters, (g, k) => (openBlock(), createBlock(unref(ElInput), {
|
|
550
|
+
key: k,
|
|
551
|
+
modelValue: g.data,
|
|
552
|
+
"onUpdate:modelValue": (v) => g.data = v,
|
|
553
|
+
onKeyup: s[6] || (s[6] = withKeys((v) => t("search"), ["enter"])),
|
|
554
554
|
disabled: ["colorPicker", "iconPicker", "progress"].includes(n.column.params.FieldType)
|
|
555
555
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"]))), 128)),
|
|
556
556
|
createVNode(unref(ElDropdown), {
|
|
557
557
|
class: "pr2 pt1",
|
|
558
558
|
trigger: "click",
|
|
559
|
-
onCommand:
|
|
559
|
+
onCommand: t,
|
|
560
560
|
"popper-class": "filterMenus"
|
|
561
561
|
}, {
|
|
562
562
|
dropdown: withCtx(() => [
|
|
@@ -623,12 +623,12 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
623
623
|
}
|
|
624
624
|
},
|
|
625
625
|
emits: ["change", "ActionClick", "ActionRenderBefore"],
|
|
626
|
-
setup(n, { emit:
|
|
626
|
+
setup(n, { emit: l }) {
|
|
627
627
|
const e = n;
|
|
628
628
|
let r = ref(
|
|
629
629
|
deepClone(e.column.params.LinkButton ? e.column.params.LinkButton : [])
|
|
630
630
|
);
|
|
631
|
-
const c =
|
|
631
|
+
const c = l;
|
|
632
632
|
watch(
|
|
633
633
|
() => e.row,
|
|
634
634
|
() => {
|
|
@@ -644,15 +644,15 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
644
644
|
immediate: !0
|
|
645
645
|
}
|
|
646
646
|
);
|
|
647
|
-
function o(
|
|
647
|
+
function o(t) {
|
|
648
648
|
c("ActionClick", {
|
|
649
|
-
btnInfo:
|
|
649
|
+
btnInfo: t,
|
|
650
650
|
row: e.row,
|
|
651
651
|
column: e.column,
|
|
652
652
|
gridRef: e.gridRef
|
|
653
653
|
});
|
|
654
654
|
}
|
|
655
|
-
return (
|
|
655
|
+
return (t, a) => (openBlock(), createElementBlock("div", _hoisted_1$e, [
|
|
656
656
|
(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(r), (u) => withDirectives((openBlock(), createBlock(unref(ElButton), {
|
|
657
657
|
key: u.Name,
|
|
658
658
|
class: "!text-[12px]",
|
|
@@ -690,16 +690,16 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
690
690
|
}
|
|
691
691
|
},
|
|
692
692
|
emits: ["change"],
|
|
693
|
-
setup(n, { emit:
|
|
693
|
+
setup(n, { emit: l }) {
|
|
694
694
|
const e = n, r = ref(!!e.row[e.column.field]);
|
|
695
695
|
watchEffect(() => {
|
|
696
696
|
typeof e.row[e.column.field] != "boolean" ? r.value = !!e.row[e.column.field] : r.value = e.row[e.column.field];
|
|
697
697
|
});
|
|
698
|
-
const c =
|
|
699
|
-
function o(
|
|
700
|
-
a[u.field] =
|
|
698
|
+
const c = l;
|
|
699
|
+
function o(t, a, u) {
|
|
700
|
+
a[u.field] = t, c("change", t, a, u);
|
|
701
701
|
}
|
|
702
|
-
return (
|
|
702
|
+
return (t, a) => {
|
|
703
703
|
var u;
|
|
704
704
|
return openBlock(), createBlock(unref(ElCheckbox), {
|
|
705
705
|
disabled: (u = n.column.params) == null ? void 0 : u.disabled,
|
|
@@ -743,87 +743,87 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
743
743
|
displayValue: String
|
|
744
744
|
},
|
|
745
745
|
setup(n) {
|
|
746
|
-
const
|
|
747
|
-
|
|
748
|
-
const e = ref(
|
|
746
|
+
const l = n;
|
|
747
|
+
l.column.params.LabelConfig || (l.column.params.LabelConfig = []);
|
|
748
|
+
const e = ref(l.column.params.LabelConfig);
|
|
749
749
|
e.value.forEach((i) => {
|
|
750
750
|
i.Value == "true" ? i.Value = !0 : i.Value == "false" && (i.Value = !1);
|
|
751
751
|
});
|
|
752
|
-
const r = computed(() =>
|
|
752
|
+
const r = computed(() => l.row[l.column.field]), c = computed(() => e.value.find((i) => i.Value == r.value));
|
|
753
753
|
onMounted(() => {
|
|
754
|
-
|
|
754
|
+
l.column.params.LabelAutoColor && !c.value && (r.value || r.value === 0) && e.value.push({
|
|
755
755
|
Value: r.value,
|
|
756
756
|
Color: s()
|
|
757
757
|
});
|
|
758
758
|
});
|
|
759
759
|
function o(i) {
|
|
760
760
|
if (!i) return;
|
|
761
|
-
let d, m,
|
|
761
|
+
let d, m, g, k = 1;
|
|
762
762
|
if (i.startsWith("#"))
|
|
763
|
-
i = i.slice(1), i.length === 3 ? (d = parseInt(i[0] + i[0], 16), m = parseInt(i[1] + i[1], 16),
|
|
763
|
+
i = i.slice(1), i.length === 3 ? (d = parseInt(i[0] + i[0], 16), m = parseInt(i[1] + i[1], 16), g = parseInt(i[2] + i[2], 16)) : i.length === 6 && (d = parseInt(i.slice(0, 2), 16), m = parseInt(i.slice(2, 4), 16), g = parseInt(i.slice(4, 6), 16));
|
|
764
764
|
else if (i.startsWith("rgb")) {
|
|
765
|
-
const
|
|
766
|
-
|
|
765
|
+
const v = i.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d*\.?\d+))?\)/);
|
|
766
|
+
v && (d = parseInt(v[1]), m = parseInt(v[2]), g = parseInt(v[3]), v[4] && (k = parseFloat(v[4])));
|
|
767
767
|
} else if (i.startsWith("hsl")) {
|
|
768
|
-
const
|
|
769
|
-
if (
|
|
770
|
-
const
|
|
771
|
-
if (
|
|
772
|
-
d = m =
|
|
768
|
+
const v = i.match(/hsla?\((\d+),\s*(\d+)%,\s*(\d+)%(?:,\s*(\d*\.?\d+))?\)/);
|
|
769
|
+
if (v) {
|
|
770
|
+
const y = parseInt(v[1]) / 360, w = parseInt(v[2]) / 100, V = parseInt(v[3]) / 100;
|
|
771
|
+
if (v[4] && (k = parseFloat(v[4])), w === 0)
|
|
772
|
+
d = m = g = V * 255;
|
|
773
773
|
else {
|
|
774
|
-
const
|
|
775
|
-
d =
|
|
774
|
+
const $ = (E, F, R) => (R < 0 && (R += 1), R > 1 && (R -= 1), R < 0.16666666666666666 ? E + (F - E) * 6 * R : R < 0.5 ? F : R < 0.6666666666666666 ? E + (F - E) * (0.6666666666666666 - R) * 6 : E), j = V < 0.5 ? V * (1 + w) : V + w - V * w, C = 2 * V - j;
|
|
775
|
+
d = $(C, j, y + 1 / 3) * 255, m = $(C, j, y) * 255, g = $(C, j, y - 1 / 3) * 255;
|
|
776
776
|
}
|
|
777
777
|
}
|
|
778
778
|
}
|
|
779
|
-
return { r: d, g: m, b:
|
|
779
|
+
return { r: d, g: m, b: g, a: k };
|
|
780
780
|
}
|
|
781
|
-
function
|
|
781
|
+
function t(i, d, m) {
|
|
782
782
|
i /= 255, d /= 255, m /= 255;
|
|
783
|
-
const
|
|
784
|
-
let
|
|
785
|
-
if (
|
|
786
|
-
|
|
783
|
+
const g = Math.max(i, d, m), k = Math.min(i, d, m);
|
|
784
|
+
let v, y, w = (g + k) / 2;
|
|
785
|
+
if (g === k)
|
|
786
|
+
v = y = 0;
|
|
787
787
|
else {
|
|
788
|
-
const
|
|
789
|
-
switch (
|
|
788
|
+
const V = g - k;
|
|
789
|
+
switch (y = w > 0.5 ? V / (2 - g - k) : V / (g + k), g) {
|
|
790
790
|
case i:
|
|
791
|
-
|
|
791
|
+
v = (d - m) / V + (d < m ? 6 : 0);
|
|
792
792
|
break;
|
|
793
793
|
case d:
|
|
794
|
-
|
|
794
|
+
v = (m - i) / V + 2;
|
|
795
795
|
break;
|
|
796
796
|
case m:
|
|
797
|
-
|
|
797
|
+
v = (i - d) / V + 4;
|
|
798
798
|
break;
|
|
799
799
|
}
|
|
800
|
-
|
|
800
|
+
v /= 6;
|
|
801
801
|
}
|
|
802
|
-
return { h:
|
|
802
|
+
return { h: v, s: y, l: w };
|
|
803
803
|
}
|
|
804
804
|
function a(i, d, m) {
|
|
805
|
-
let
|
|
805
|
+
let g, k, v;
|
|
806
806
|
if (d === 0)
|
|
807
|
-
|
|
807
|
+
g = k = v = m;
|
|
808
808
|
else {
|
|
809
|
-
const
|
|
810
|
-
|
|
809
|
+
const y = ($, j, C) => (C < 0 && (C += 1), C > 1 && (C -= 1), C < 0.16666666666666666 ? $ + (j - $) * 6 * C : C < 0.5 ? j : C < 0.6666666666666666 ? $ + (j - $) * (0.6666666666666666 - C) * 6 : $), w = m < 0.5 ? m * (1 + d) : m + d - m * d, V = 2 * m - w;
|
|
810
|
+
g = y(V, w, i + 1 / 3), k = y(V, w, i), v = y(V, w, i - 1 / 3);
|
|
811
811
|
}
|
|
812
|
-
return { r: Math.round(
|
|
812
|
+
return { r: Math.round(g * 255), g: Math.round(k * 255), b: Math.round(v * 255) };
|
|
813
813
|
}
|
|
814
814
|
function u(i, d) {
|
|
815
815
|
if (!i) return;
|
|
816
|
-
let { r: m, g
|
|
817
|
-
|
|
818
|
-
const { r:
|
|
819
|
-
return `rgb(${
|
|
816
|
+
let { r: m, g, b: k } = o(i), { h: v, s: y, l: w } = t(m, g, k);
|
|
817
|
+
w = Math.max(0, w - d);
|
|
818
|
+
const { r: V, g: $, b: j } = a(v, y, w);
|
|
819
|
+
return `rgb(${V}, ${$}, ${j})`;
|
|
820
820
|
}
|
|
821
821
|
function s() {
|
|
822
|
-
function i(
|
|
823
|
-
return Math.floor(Math.random() * (
|
|
822
|
+
function i(v, y) {
|
|
823
|
+
return Math.floor(Math.random() * (y - v + 1)) + v;
|
|
824
824
|
}
|
|
825
|
-
const d = i(200, 255), m = i(200, 255),
|
|
826
|
-
return `#${d.toString(16).padStart(2, "0")}${m.toString(16).padStart(2, "0")}${
|
|
825
|
+
const d = i(200, 255), m = i(200, 255), g = i(200, 255);
|
|
826
|
+
return `#${d.toString(16).padStart(2, "0")}${m.toString(16).padStart(2, "0")}${g.toString(16).padStart(2, "0")}`;
|
|
827
827
|
}
|
|
828
828
|
return (i, d) => {
|
|
829
829
|
const m = resolveComponent("hr-icon");
|
|
@@ -883,38 +883,38 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
883
883
|
emits: ["change"],
|
|
884
884
|
setup(__props, { emit: __emit }) {
|
|
885
885
|
const props = __props, value = computed(() => props.row[props.column.field]), emit = __emit;
|
|
886
|
-
function handleChange(n,
|
|
887
|
-
emit("change", n,
|
|
886
|
+
function handleChange(n, l, e) {
|
|
887
|
+
emit("change", n, l, e);
|
|
888
888
|
}
|
|
889
889
|
function handleChoose(row, column, gridRef) {
|
|
890
890
|
var n;
|
|
891
891
|
let result;
|
|
892
|
-
if (emit("onChooseBefor-Click", column, (
|
|
893
|
-
result =
|
|
892
|
+
if (emit("onChooseBefor-Click", column, (l) => {
|
|
893
|
+
result = l;
|
|
894
894
|
}), !result || (n = column.params) != null && n.disabled) return;
|
|
895
895
|
let { ChoosePageType, ChoosePageOID, StoredValueField, ReturnValueField, URLParamsObject, URLParamsHook } = props.column.params, urlParams = {}, selectedData = [], layerOptions = {};
|
|
896
896
|
URLParamsObject && Object.assign(urlParams, URLParamsObject), URLParamsHook && Object.assign(urlParams, eval(
|
|
897
897
|
`(function(urlParams, selectedData, layerOptions, row, column){
|
|
898
898
|
return eval((${URLParamsHook})(urlParams, selectedData, layerOptions, row, column))
|
|
899
899
|
}).call(gridRef)`
|
|
900
|
-
)), ChoosePageType === "autoPage" ? openAutoPage(ChoosePageOID, (
|
|
900
|
+
)), ChoosePageType === "autoPage" ? openAutoPage(ChoosePageOID, (l, e) => {
|
|
901
901
|
isEmpty(StoredValueField) || isEmpty(ReturnValueField) || (Array.isArray(StoredValueField) || (StoredValueField = [StoredValueField]), Array.isArray(ReturnValueField) || (ReturnValueField = [ReturnValueField]), StoredValueField.forEach((r, c) => {
|
|
902
902
|
var o;
|
|
903
903
|
return row[r] = ((o = e[ReturnValueField[c]]) == null ? void 0 : o.join(",")) || null;
|
|
904
904
|
}), handleChange(row[column.field], row, column));
|
|
905
|
-
}, urlParams) : openChoosePage(ChoosePageOID, (
|
|
905
|
+
}, urlParams) : openChoosePage(ChoosePageOID, (l, e) => {
|
|
906
906
|
isEmpty(StoredValueField) || isEmpty(ReturnValueField) || (Array.isArray(StoredValueField) || (StoredValueField = [StoredValueField]), Array.isArray(ReturnValueField) || (ReturnValueField = [ReturnValueField]), StoredValueField.forEach((r, c) => {
|
|
907
907
|
var o;
|
|
908
908
|
return row[r] = ((o = e[ReturnValueField[c]]) == null ? void 0 : o.join(",")) || null;
|
|
909
909
|
}), handleChange(row[column.field], row, column));
|
|
910
910
|
}, urlParams, selectedData, layerOptions);
|
|
911
911
|
}
|
|
912
|
-
return (n,
|
|
912
|
+
return (n, l) => (openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
913
913
|
props.column.params.IsLabel ? (openBlock(), createBlock(_sfc_main$q, normalizeProps(mergeProps({ key: 0 }, { ...props, displayValue: value.value })), null, 16)) : (openBlock(), createBlock(unref(ElButton), {
|
|
914
914
|
key: 1,
|
|
915
915
|
class: "!text-[12px]",
|
|
916
916
|
link: "",
|
|
917
|
-
onClick:
|
|
917
|
+
onClick: l[0] || (l[0] = (e) => handleChoose(__props.row, __props.column, __props.gridRef))
|
|
918
918
|
}, {
|
|
919
919
|
default: withCtx(() => [
|
|
920
920
|
createTextVNode(toDisplayString(value.value || "请选择"), 1)
|
|
@@ -945,7 +945,7 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
945
945
|
}
|
|
946
946
|
},
|
|
947
947
|
emits: ["change"],
|
|
948
|
-
setup(n, { emit:
|
|
948
|
+
setup(n, { emit: l }) {
|
|
949
949
|
const e = n, r = ref([
|
|
950
950
|
"#409EFF",
|
|
951
951
|
"#67C23A",
|
|
@@ -987,8 +987,8 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
987
987
|
watchEffect(() => {
|
|
988
988
|
c.value = isColor(e.row[e.column.field]) ? e.row[e.column.field] : null;
|
|
989
989
|
});
|
|
990
|
-
const o =
|
|
991
|
-
function
|
|
990
|
+
const o = l;
|
|
991
|
+
function t(a, u, s) {
|
|
992
992
|
u[s.field] = a, o("change", a, u, s);
|
|
993
993
|
}
|
|
994
994
|
return (a, u) => {
|
|
@@ -1000,7 +1000,7 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
1000
1000
|
modelValue: c.value,
|
|
1001
1001
|
"onUpdate:modelValue": u[0] || (u[0] = (i) => c.value = i),
|
|
1002
1002
|
predefine: r.value,
|
|
1003
|
-
onChange: u[1] || (u[1] = (i) =>
|
|
1003
|
+
onChange: u[1] || (u[1] = (i) => t(i, n.row, n.column))
|
|
1004
1004
|
}, null, 8, ["disabled", "modelValue", "predefine"])
|
|
1005
1005
|
]);
|
|
1006
1006
|
};
|
|
@@ -1027,7 +1027,7 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
1027
1027
|
}
|
|
1028
1028
|
},
|
|
1029
1029
|
setup(n) {
|
|
1030
|
-
return (
|
|
1030
|
+
return (l, e) => (openBlock(), createElementBlock("div", _hoisted_1$a));
|
|
1031
1031
|
}
|
|
1032
1032
|
}), __vite_glob_0_4$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1033
1033
|
__proto__: null,
|
|
@@ -1052,13 +1052,13 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
1052
1052
|
},
|
|
1053
1053
|
setup(n) {
|
|
1054
1054
|
dayjs.extend(isoWeek), dayjs.extend(quarterOfYear), dayjs.extend(customParseFormat);
|
|
1055
|
-
const
|
|
1055
|
+
const l = n, e = computed(() => {
|
|
1056
1056
|
var a;
|
|
1057
|
-
const
|
|
1058
|
-
return o(r(
|
|
1057
|
+
const t = ((a = l.column.params) == null ? void 0 : a.DateType) || "date";
|
|
1058
|
+
return o(r(l.row[l.column.field], t), t);
|
|
1059
1059
|
});
|
|
1060
|
-
function r(
|
|
1061
|
-
if (!
|
|
1060
|
+
function r(t, a) {
|
|
1061
|
+
if (!t) return null;
|
|
1062
1062
|
const s = {
|
|
1063
1063
|
time: "HH:mm:ss",
|
|
1064
1064
|
date: "YYYY-MM-DD",
|
|
@@ -1069,27 +1069,27 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
1069
1069
|
year: "YYYY"
|
|
1070
1070
|
}[a];
|
|
1071
1071
|
if (!s) throw new Error("Unsupported date type");
|
|
1072
|
-
let i = dayjs(
|
|
1073
|
-
if (
|
|
1074
|
-
const d =
|
|
1072
|
+
let i = dayjs(t, s);
|
|
1073
|
+
if (t.includes("周") || !i.isValid() && a === "week") {
|
|
1074
|
+
const d = t.match(/^(\d{4})年第(\d{1,2})周$/);
|
|
1075
1075
|
if (d) {
|
|
1076
|
-
const [, m,
|
|
1077
|
-
i = dayjs(`${m}-01-01`).isoWeek(Number(
|
|
1076
|
+
const [, m, g] = d;
|
|
1077
|
+
i = dayjs(`${m}-01-01`).isoWeek(Number(g));
|
|
1078
1078
|
}
|
|
1079
|
-
} else if (
|
|
1080
|
-
const d =
|
|
1079
|
+
} else if (t.includes("季度") || !i.isValid() && a === "quarter") {
|
|
1080
|
+
const d = t.match(/^(\d{4})年第(\d)季度$/);
|
|
1081
1081
|
if (d) {
|
|
1082
|
-
const [, m,
|
|
1083
|
-
i = dayjs(`${m}-01-01`).quarter(Number(
|
|
1082
|
+
const [, m, g] = d;
|
|
1083
|
+
i = dayjs(`${m}-01-01`).quarter(Number(g));
|
|
1084
1084
|
}
|
|
1085
|
-
} else if (
|
|
1086
|
-
const d =
|
|
1085
|
+
} else if (t.includes("月") || !i.isValid() && a === "month") {
|
|
1086
|
+
const d = t.match(/^(\d{4})年(\d{1,2})月$/);
|
|
1087
1087
|
if (d) {
|
|
1088
|
-
const [, m,
|
|
1089
|
-
i = dayjs(`${m}-${
|
|
1088
|
+
const [, m, g] = d;
|
|
1089
|
+
i = dayjs(`${m}-${g}-01`);
|
|
1090
1090
|
}
|
|
1091
|
-
} else if (
|
|
1092
|
-
const d =
|
|
1091
|
+
} else if (t.includes("年") || !i.isValid() && a === "year") {
|
|
1092
|
+
const d = t.match(/^(\d{4})年$/);
|
|
1093
1093
|
if (d) {
|
|
1094
1094
|
const [, m] = d;
|
|
1095
1095
|
i = dayjs(`${m}-01-01`);
|
|
@@ -1097,47 +1097,47 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
1097
1097
|
}
|
|
1098
1098
|
return i.isValid() ? c(i, a) : null;
|
|
1099
1099
|
}
|
|
1100
|
-
function c(
|
|
1100
|
+
function c(t, a) {
|
|
1101
1101
|
switch (a) {
|
|
1102
1102
|
case "time":
|
|
1103
|
-
return
|
|
1103
|
+
return t.format("HH:mm:ss");
|
|
1104
1104
|
case "date":
|
|
1105
|
-
return
|
|
1105
|
+
return t.format("YYYY-MM-DD");
|
|
1106
1106
|
case "datetime":
|
|
1107
|
-
return
|
|
1107
|
+
return t.format("YYYY-MM-DD HH:mm:ss");
|
|
1108
1108
|
case "week":
|
|
1109
|
-
return
|
|
1109
|
+
return t.startOf("isoWeek").format("YYYY-MM-DD");
|
|
1110
1110
|
case "month":
|
|
1111
|
-
return
|
|
1111
|
+
return t.startOf("month").format("YYYY-MM-DD");
|
|
1112
1112
|
case "quarter":
|
|
1113
|
-
return
|
|
1113
|
+
return t.startOf("quarter").format("YYYY-MM-DD");
|
|
1114
1114
|
case "year":
|
|
1115
|
-
return
|
|
1115
|
+
return t.startOf("year").format("YYYY-MM-DD");
|
|
1116
1116
|
default:
|
|
1117
1117
|
return null;
|
|
1118
1118
|
}
|
|
1119
1119
|
}
|
|
1120
|
-
function o(
|
|
1121
|
-
if (!
|
|
1120
|
+
function o(t, a) {
|
|
1121
|
+
if (!t) return "";
|
|
1122
1122
|
switch (a) {
|
|
1123
1123
|
case "week":
|
|
1124
|
-
return `${dayjs(
|
|
1124
|
+
return `${dayjs(t).year()}年第${dayjs(t).isoWeek()}周`;
|
|
1125
1125
|
case "month":
|
|
1126
|
-
return `${dayjs(
|
|
1126
|
+
return `${dayjs(t).year()}年${dayjs(t).month() + 1}月`;
|
|
1127
1127
|
case "quarter":
|
|
1128
|
-
return `${dayjs(
|
|
1128
|
+
return `${dayjs(t).year()}年第${dayjs(t).quarter()}季度`;
|
|
1129
1129
|
case "year":
|
|
1130
|
-
return `${dayjs(
|
|
1130
|
+
return `${dayjs(t).year()}年`;
|
|
1131
1131
|
default:
|
|
1132
1132
|
const u = {
|
|
1133
1133
|
time: "HH:mm:ss",
|
|
1134
1134
|
date: "YYYY-MM-DD",
|
|
1135
1135
|
datetime: "YYYY-MM-DD HH:mm:ss"
|
|
1136
1136
|
};
|
|
1137
|
-
return dayjs(
|
|
1137
|
+
return dayjs(t).format(u[a]);
|
|
1138
1138
|
}
|
|
1139
1139
|
}
|
|
1140
|
-
return (
|
|
1140
|
+
return (t, a) => l.column.params.IsLabel ? (openBlock(), createBlock(_sfc_main$q, normalizeProps(mergeProps({ key: 0 }, { ...l, displayValue: e.value })), null, 16)) : (openBlock(), createElementBlock("span", {
|
|
1141
1141
|
key: 1,
|
|
1142
1142
|
title: e.value
|
|
1143
1143
|
}, toDisplayString(e.value), 9, _hoisted_1$9));
|
|
@@ -1167,13 +1167,13 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
1167
1167
|
}
|
|
1168
1168
|
},
|
|
1169
1169
|
emits: ["file-click"],
|
|
1170
|
-
setup(n, { emit:
|
|
1171
|
-
const e =
|
|
1170
|
+
setup(n, { emit: l }) {
|
|
1171
|
+
const e = l;
|
|
1172
1172
|
function r(c) {
|
|
1173
1173
|
["jpg", "jpeg", "png", "gif", "bmp", "svg"].includes(c.FileType.toLowerCase()) || e("file-click", c);
|
|
1174
1174
|
}
|
|
1175
1175
|
return (c, o) => {
|
|
1176
|
-
const
|
|
1176
|
+
const t = resolveDirective("viewer");
|
|
1177
1177
|
return withDirectives((openBlock(), createElementBlock("div", _hoisted_1$8, [
|
|
1178
1178
|
(openBlock(!0), createElementBlock(Fragment, null, renderList(n.row[n.column.field], (a, u) => (openBlock(), createElementBlock("div", {
|
|
1179
1179
|
class: "Link flex",
|
|
@@ -1200,7 +1200,7 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
1200
1200
|
], 8, _hoisted_2$3))), 256))
|
|
1201
1201
|
])), [
|
|
1202
1202
|
[
|
|
1203
|
-
|
|
1203
|
+
t,
|
|
1204
1204
|
void 0,
|
|
1205
1205
|
void 0,
|
|
1206
1206
|
{ rebuild: !0 }
|
|
@@ -1230,14 +1230,14 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
1230
1230
|
}
|
|
1231
1231
|
},
|
|
1232
1232
|
emits: ["change"],
|
|
1233
|
-
setup(n, { emit:
|
|
1234
|
-
const e =
|
|
1235
|
-
function r(o,
|
|
1236
|
-
e("change", o,
|
|
1233
|
+
setup(n, { emit: l }) {
|
|
1234
|
+
const e = l;
|
|
1235
|
+
function r(o, t, a) {
|
|
1236
|
+
e("change", o, t, a);
|
|
1237
1237
|
}
|
|
1238
|
-
function c(o,
|
|
1238
|
+
function c(o, t) {
|
|
1239
1239
|
var u;
|
|
1240
|
-
if ((u =
|
|
1240
|
+
if ((u = t.params) != null && u.disable) return;
|
|
1241
1241
|
let a = layer.open({
|
|
1242
1242
|
type: 2,
|
|
1243
1243
|
title: "图标选择",
|
|
@@ -1246,14 +1246,14 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
1246
1246
|
content: "/Html/Custom/SelectIcon/Icon.html?callbackFn=setIcon&clearFn=clearIcon"
|
|
1247
1247
|
});
|
|
1248
1248
|
window.setIcon = (s) => {
|
|
1249
|
-
o[
|
|
1249
|
+
o[t.field] = s.font_class, r(s, o, t);
|
|
1250
1250
|
}, window.clearIcon = (s) => {
|
|
1251
|
-
o[
|
|
1251
|
+
o[t.field] = "", r(s, o, t), layer.close(a);
|
|
1252
1252
|
};
|
|
1253
1253
|
}
|
|
1254
|
-
return (o,
|
|
1254
|
+
return (o, t) => (openBlock(), createElementBlock("div", {
|
|
1255
1255
|
class: "w-full h-full flex justify-center items-center",
|
|
1256
|
-
onClick:
|
|
1256
|
+
onClick: t[0] || (t[0] = (a) => c(n.row, n.column))
|
|
1257
1257
|
}, [
|
|
1258
1258
|
createVNode(unref(HrIcon), {
|
|
1259
1259
|
icon: n.row[n.column.field]
|
|
@@ -1282,11 +1282,11 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
1282
1282
|
}
|
|
1283
1283
|
},
|
|
1284
1284
|
emits: ["change"],
|
|
1285
|
-
setup(n, { emit:
|
|
1286
|
-
const e = n, r =
|
|
1287
|
-
function c(o,
|
|
1288
|
-
var
|
|
1289
|
-
if ((
|
|
1285
|
+
setup(n, { emit: l }) {
|
|
1286
|
+
const e = n, r = l;
|
|
1287
|
+
function c(o, t) {
|
|
1288
|
+
var k;
|
|
1289
|
+
if ((k = t.params) != null && k.disabled) return;
|
|
1290
1290
|
let {
|
|
1291
1291
|
PickPeopleType: a,
|
|
1292
1292
|
PickPeopleCheckType: u,
|
|
@@ -1294,22 +1294,22 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
1294
1294
|
PickPeopleStatus: i,
|
|
1295
1295
|
StoredValueField: d,
|
|
1296
1296
|
ReturnValueField: m,
|
|
1297
|
-
BackfillField:
|
|
1297
|
+
BackfillField: g
|
|
1298
1298
|
} = e.column.params;
|
|
1299
1299
|
openChoosePeople({
|
|
1300
1300
|
Type: a,
|
|
1301
1301
|
Choose: u,
|
|
1302
1302
|
IsAll: s,
|
|
1303
1303
|
Status: i
|
|
1304
|
-
}, (
|
|
1305
|
-
isEmpty(d) ? o[
|
|
1306
|
-
},
|
|
1304
|
+
}, (v) => {
|
|
1305
|
+
isEmpty(d) ? o[t.field] = v.Name || null : (Array.isArray(d) || (d = [d]), Array.isArray(m) || (m = [m]), d.forEach((y, w) => o[y] = v[m[w]] || null)), r("change", v, o, t);
|
|
1306
|
+
}, g ? o[g] : null);
|
|
1307
1307
|
}
|
|
1308
|
-
return (o,
|
|
1308
|
+
return (o, t) => (openBlock(), createElementBlock("div", _hoisted_1$7, [
|
|
1309
1309
|
createVNode(unref(ElButton), {
|
|
1310
1310
|
class: "!text-[12px]",
|
|
1311
1311
|
link: "",
|
|
1312
|
-
onClick:
|
|
1312
|
+
onClick: t[0] || (t[0] = (a) => c(n.row, n.column))
|
|
1313
1313
|
}, {
|
|
1314
1314
|
default: withCtx(() => [
|
|
1315
1315
|
createTextVNode(toDisplayString(n.row[n.column.field] || "请选择"), 1)
|
|
@@ -1340,7 +1340,7 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
1340
1340
|
}
|
|
1341
1341
|
},
|
|
1342
1342
|
emits: ["change"],
|
|
1343
|
-
setup(n, { emit:
|
|
1343
|
+
setup(n, { emit: l }) {
|
|
1344
1344
|
const e = n;
|
|
1345
1345
|
let r = ref(0);
|
|
1346
1346
|
return watchEffect(() => {
|
|
@@ -1378,20 +1378,20 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
1378
1378
|
}
|
|
1379
1379
|
},
|
|
1380
1380
|
emits: ["change"],
|
|
1381
|
-
setup(n, { emit:
|
|
1382
|
-
const e = n, r =
|
|
1383
|
-
function c(o,
|
|
1384
|
-
e.gridRef.getTableData().tableData.filter((u) => u !==
|
|
1381
|
+
setup(n, { emit: l }) {
|
|
1382
|
+
const e = n, r = l;
|
|
1383
|
+
function c(o, t, a) {
|
|
1384
|
+
e.gridRef.getTableData().tableData.filter((u) => u !== t).forEach((u) => {
|
|
1385
1385
|
u[a.field] && (u[a.field] = !1);
|
|
1386
|
-
}), r("change", o,
|
|
1386
|
+
}), r("change", o, t, a);
|
|
1387
1387
|
}
|
|
1388
|
-
return (o,
|
|
1388
|
+
return (o, t) => {
|
|
1389
1389
|
var a;
|
|
1390
1390
|
return openBlock(), createBlock(unref(ElRadioGroup), {
|
|
1391
1391
|
disabled: (a = n.column.params) == null ? void 0 : a.disabled,
|
|
1392
1392
|
modelValue: n.row[n.column.field],
|
|
1393
|
-
"onUpdate:modelValue":
|
|
1394
|
-
onChange:
|
|
1393
|
+
"onUpdate:modelValue": t[0] || (t[0] = (u) => n.row[n.column.field] = u),
|
|
1394
|
+
onChange: t[1] || (t[1] = (u) => c(u, n.row, n.column))
|
|
1395
1395
|
}, {
|
|
1396
1396
|
default: withCtx(() => [
|
|
1397
1397
|
createVNode(unref(ElRadio), { value: !0 })
|
|
@@ -1423,28 +1423,28 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
1423
1423
|
},
|
|
1424
1424
|
setup(n) {
|
|
1425
1425
|
var c, o;
|
|
1426
|
-
const
|
|
1427
|
-
(c =
|
|
1428
|
-
var
|
|
1429
|
-
(
|
|
1426
|
+
const l = n;
|
|
1427
|
+
(c = l.column.params)[o = l.gridRef.getRowid(l.row)] ?? (c[o] = {}), watchEffect(() => {
|
|
1428
|
+
var t, a;
|
|
1429
|
+
(t = l.column.params)[a = l.gridRef.getRowid(l.row)] ?? (t[a] = {}), !l.column.params[l.gridRef.getRowid(l.row)].options && l.column.params.options && (l.column.params[l.gridRef.getRowid(l.row)].options = deepClone(l.column.params.options));
|
|
1430
1430
|
});
|
|
1431
1431
|
const e = computed(() => {
|
|
1432
|
-
var
|
|
1433
|
-
return ((
|
|
1432
|
+
var t;
|
|
1433
|
+
return ((t = l.column.params[l.gridRef.getRowid(l.row)]) == null ? void 0 : t.options) || l.column.params.options;
|
|
1434
1434
|
}), r = computed(() => {
|
|
1435
1435
|
var a, u;
|
|
1436
|
-
const
|
|
1437
|
-
if (
|
|
1436
|
+
const t = l.row[l.column.field];
|
|
1437
|
+
if (t && t.length > 1) {
|
|
1438
1438
|
let s = [];
|
|
1439
|
-
return
|
|
1440
|
-
var m,
|
|
1441
|
-
const d = (
|
|
1439
|
+
return t.split(",").map((i) => {
|
|
1440
|
+
var m, g;
|
|
1441
|
+
const d = (g = (m = e.value) == null ? void 0 : m.find((k) => k.value == i)) == null ? void 0 : g.label;
|
|
1442
1442
|
d !== void 0 && s.push(d);
|
|
1443
1443
|
}), s.join(",");
|
|
1444
1444
|
} else
|
|
1445
|
-
return ((u = (a = e.value) == null ? void 0 : a.find((s) => s.value ==
|
|
1445
|
+
return ((u = (a = e.value) == null ? void 0 : a.find((s) => s.value == t)) == null ? void 0 : u.label) || "";
|
|
1446
1446
|
});
|
|
1447
|
-
return (
|
|
1447
|
+
return (t, a) => l.column.params.IsLabel ? (openBlock(), createBlock(_sfc_main$q, normalizeProps(mergeProps({ key: 0 }, { ...l, displayValue: r.value })), null, 16)) : (openBlock(), createElementBlock("span", {
|
|
1448
1448
|
key: 1,
|
|
1449
1449
|
title: r.value
|
|
1450
1450
|
}, toDisplayString(r.value), 9, _hoisted_1$6));
|
|
@@ -1472,19 +1472,19 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
1472
1472
|
},
|
|
1473
1473
|
setup(n) {
|
|
1474
1474
|
var c, o;
|
|
1475
|
-
const
|
|
1476
|
-
(c =
|
|
1477
|
-
var
|
|
1478
|
-
(
|
|
1475
|
+
const l = n;
|
|
1476
|
+
(c = l.column.params)[o = l.gridRef.getRowid(l.row)] ?? (c[o] = {}), watchEffect(() => {
|
|
1477
|
+
var t, a;
|
|
1478
|
+
(t = l.column.params)[a = l.gridRef.getRowid(l.row)] ?? (t[a] = {}), !l.column.params[l.gridRef.getRowid(l.row)].options && l.column.params.options && (l.column.params[l.gridRef.getRowid(l.row)].options = deepClone(l.column.params.options));
|
|
1479
1479
|
});
|
|
1480
1480
|
const e = computed(() => {
|
|
1481
|
-
var
|
|
1482
|
-
return ((
|
|
1481
|
+
var t;
|
|
1482
|
+
return ((t = l.column.params[l.gridRef.getRowid(l.row)]) == null ? void 0 : t.options) || l.column.params.options;
|
|
1483
1483
|
}), r = computed(() => {
|
|
1484
|
-
var
|
|
1485
|
-
return ((a = (
|
|
1484
|
+
var t, a;
|
|
1485
|
+
return ((a = (t = e.value) == null ? void 0 : t.find((u) => u.value == l.row[l.column.field])) == null ? void 0 : a.label) || "";
|
|
1486
1486
|
});
|
|
1487
|
-
return (
|
|
1487
|
+
return (t, a) => l.column.params.IsLabel ? (openBlock(), createBlock(_sfc_main$q, mergeProps({ key: 0 }, { ...l, displayValue: r.value }, { title: r.value }), null, 16, ["title"])) : (openBlock(), createElementBlock("span", {
|
|
1488
1488
|
key: 1,
|
|
1489
1489
|
title: r.value
|
|
1490
1490
|
}, toDisplayString(r.value), 9, _hoisted_1$5));
|
|
@@ -1511,19 +1511,19 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
1511
1511
|
}
|
|
1512
1512
|
},
|
|
1513
1513
|
setup(n) {
|
|
1514
|
-
const
|
|
1515
|
-
if (!
|
|
1516
|
-
const { options: r, ParentNodeField: c, NodeValueField: o } =
|
|
1517
|
-
|
|
1514
|
+
const l = n;
|
|
1515
|
+
if (!l.column.params.TreeData) {
|
|
1516
|
+
const { options: r, ParentNodeField: c, NodeValueField: o } = l.column.params;
|
|
1517
|
+
l.column.params.TreeData = buildTree(deepClone(r), c, o);
|
|
1518
1518
|
}
|
|
1519
1519
|
const e = computed(() => {
|
|
1520
|
-
const { NodeNameField: r = "label", NodeValueField: c = "value" } =
|
|
1521
|
-
if (
|
|
1522
|
-
let o =
|
|
1523
|
-
return
|
|
1520
|
+
const { NodeNameField: r = "label", NodeValueField: c = "value" } = l.column.params;
|
|
1521
|
+
if (l.row[l.column.field]) {
|
|
1522
|
+
let o = l.row[l.column.field].split(",");
|
|
1523
|
+
return l.column.params.options.filter((t) => o.includes(t[c])).map((t) => t[r]).join(",");
|
|
1524
1524
|
}
|
|
1525
1525
|
});
|
|
1526
|
-
return (r, c) =>
|
|
1526
|
+
return (r, c) => l.column.params.IsLabel ? (openBlock(), createBlock(_sfc_main$q, normalizeProps(mergeProps({ key: 0 }, { ...l, displayValue: e.value })), null, 16)) : (openBlock(), createElementBlock("span", {
|
|
1527
1527
|
key: 1,
|
|
1528
1528
|
title: e.value
|
|
1529
1529
|
}, toDisplayString(e.value), 9, _hoisted_1$4));
|
|
@@ -1550,17 +1550,17 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
1550
1550
|
}
|
|
1551
1551
|
},
|
|
1552
1552
|
setup(n) {
|
|
1553
|
-
const
|
|
1554
|
-
if (!
|
|
1555
|
-
const { options: r, ParentNodeField: c, NodeKeyField: o } =
|
|
1556
|
-
|
|
1553
|
+
const l = n;
|
|
1554
|
+
if (!l.column.params.TreeData) {
|
|
1555
|
+
const { options: r, ParentNodeField: c, NodeKeyField: o } = l.column.params;
|
|
1556
|
+
l.column.params.TreeData = buildTree(deepClone(r), c, o);
|
|
1557
1557
|
}
|
|
1558
1558
|
const e = computed(() => {
|
|
1559
1559
|
var o;
|
|
1560
|
-
const { NodeNameField: r = "label", NodeValueField: c = "value" } =
|
|
1561
|
-
return ((o =
|
|
1560
|
+
const { NodeNameField: r = "label", NodeValueField: c = "value" } = l.column.params;
|
|
1561
|
+
return ((o = l.column.params.options.find((t) => t[c] == l.row[l.column.field])) == null ? void 0 : o[r]) || "";
|
|
1562
1562
|
});
|
|
1563
|
-
return (r, c) =>
|
|
1563
|
+
return (r, c) => l.column.params.IsLabel ? (openBlock(), createBlock(_sfc_main$q, normalizeProps(mergeProps({ key: 0 }, { ...l, displayValue: e.value })), null, 16)) : (openBlock(), createElementBlock("span", {
|
|
1564
1564
|
key: 1,
|
|
1565
1565
|
title: e.value
|
|
1566
1566
|
}, toDisplayString(e.value), 9, _hoisted_1$3));
|
|
@@ -1572,8 +1572,8 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
1572
1572
|
let comps$1 = {};
|
|
1573
1573
|
const modules$1 = /* @__PURE__ */ Object.assign({ "./action-render.vue": __vite_glob_0_0$1, "./checkbox-render.vue": __vite_glob_0_1$1, "./choose-frame-render.vue": __vite_glob_0_2$1, "./color-picker-render.vue": __vite_glob_0_3$1, "./custom-render.vue": __vite_glob_0_4$1, "./date-picker-render.vue": __vite_glob_0_5$1, "./file-render.vue": __vite_glob_0_6$1, "./icon-picker-render.vue": __vite_glob_0_7$1, "./label-render.vue": __vite_glob_0_8$1, "./pick-people-render.vue": __vite_glob_0_9, "./progress-render.vue": __vite_glob_0_10, "./radio-render.vue": __vite_glob_0_11, "./select-multiple-render.vue": __vite_glob_0_12, "./select-render.vue": __vite_glob_0_13, "./tree-mulitiple-select-render.vue": __vite_glob_0_14, "./tree-select-render.vue": __vite_glob_0_15 });
|
|
1574
1574
|
for (const n in modules$1) {
|
|
1575
|
-
let
|
|
1576
|
-
comps$1[
|
|
1575
|
+
let l = modules$1[n].default.name;
|
|
1576
|
+
comps$1[l] = modules$1[n].default;
|
|
1577
1577
|
}
|
|
1578
1578
|
const _sfc_main$c = /* @__PURE__ */ Object.assign({
|
|
1579
1579
|
name: "DatePickerEditor"
|
|
@@ -1594,10 +1594,10 @@ const _sfc_main$c = /* @__PURE__ */ Object.assign({
|
|
|
1594
1594
|
}
|
|
1595
1595
|
},
|
|
1596
1596
|
emits: ["change"],
|
|
1597
|
-
setup(n, { emit:
|
|
1598
|
-
var
|
|
1597
|
+
setup(n, { emit: l }) {
|
|
1598
|
+
var t;
|
|
1599
1599
|
dayjs.extend(isoWeek), dayjs.extend(quarterOfYear), dayjs.extend(customParseFormat);
|
|
1600
|
-
const e = n, r = ref(c(e.row[e.column.field], ((
|
|
1600
|
+
const e = n, r = ref(c(e.row[e.column.field], ((t = e.column.params) == null ? void 0 : t.DateType) || "date"));
|
|
1601
1601
|
onBeforeUnmount(() => {
|
|
1602
1602
|
var u;
|
|
1603
1603
|
const a = ((u = e.column.params) == null ? void 0 : u.DateType) || "date";
|
|
@@ -1619,26 +1619,26 @@ const _sfc_main$c = /* @__PURE__ */ Object.assign({
|
|
|
1619
1619
|
if (!d.isValid() && u === "week") {
|
|
1620
1620
|
const m = a.match(/^(\d{4})年第(\d{2})周$/);
|
|
1621
1621
|
if (m) {
|
|
1622
|
-
const [,
|
|
1623
|
-
d = dayjs(`${
|
|
1622
|
+
const [, g, k] = m;
|
|
1623
|
+
d = dayjs(`${g}-01-01`).isoWeek(Number(k));
|
|
1624
1624
|
}
|
|
1625
1625
|
} else if (!d.isValid() && u === "quarter") {
|
|
1626
1626
|
const m = a.match(/^(\d{4})年第(\d)季度$/);
|
|
1627
1627
|
if (m) {
|
|
1628
|
-
const [,
|
|
1629
|
-
d = dayjs(`${
|
|
1628
|
+
const [, g, k] = m;
|
|
1629
|
+
d = dayjs(`${g}-01-01`).quarter(Number(k));
|
|
1630
1630
|
}
|
|
1631
1631
|
} else if (!d.isValid() && u === "month") {
|
|
1632
1632
|
const m = a.match(/^(\d{4})年(\d{2})月$/);
|
|
1633
1633
|
if (m) {
|
|
1634
|
-
const [,
|
|
1635
|
-
d = dayjs(`${
|
|
1634
|
+
const [, g, k] = m;
|
|
1635
|
+
d = dayjs(`${g}-${k}-01`);
|
|
1636
1636
|
}
|
|
1637
1637
|
} else if (!d.isValid() && u === "year") {
|
|
1638
1638
|
const m = a.match(/^(\d{4})年$/);
|
|
1639
1639
|
if (m) {
|
|
1640
|
-
const [,
|
|
1641
|
-
d = dayjs(`${
|
|
1640
|
+
const [, g] = m;
|
|
1641
|
+
d = dayjs(`${g}-01-01`);
|
|
1642
1642
|
}
|
|
1643
1643
|
}
|
|
1644
1644
|
return d.isValid() ? o(d, u) : null;
|
|
@@ -1696,12 +1696,16 @@ const _sfc_main$c = /* @__PURE__ */ Object.assign({
|
|
|
1696
1696
|
}
|
|
1697
1697
|
},
|
|
1698
1698
|
setup(n) {
|
|
1699
|
-
const
|
|
1699
|
+
const l = n, e = ref(l.row[l.column.field]);
|
|
1700
|
+
function r(c) {
|
|
1701
|
+
l.row[l.column.field] = c;
|
|
1702
|
+
}
|
|
1700
1703
|
return onBeforeUnmount(() => {
|
|
1701
|
-
|
|
1702
|
-
}), (
|
|
1704
|
+
l.row[l.column.field] = e.value;
|
|
1705
|
+
}), (c, o) => (openBlock(), createBlock(unref(ElInput), {
|
|
1703
1706
|
modelValue: e.value,
|
|
1704
|
-
"onUpdate:modelValue":
|
|
1707
|
+
"onUpdate:modelValue": o[0] || (o[0] = (t) => e.value = t),
|
|
1708
|
+
onInput: r
|
|
1705
1709
|
}, null, 8, ["modelValue"]));
|
|
1706
1710
|
}
|
|
1707
1711
|
}), __vite_glob_0_1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -1726,18 +1730,22 @@ const _sfc_main$c = /* @__PURE__ */ Object.assign({
|
|
|
1726
1730
|
}
|
|
1727
1731
|
},
|
|
1728
1732
|
emits: ["change"],
|
|
1729
|
-
setup(n, { emit:
|
|
1730
|
-
const e = n, r = ref(e.row[e.column.field]);
|
|
1731
|
-
return
|
|
1733
|
+
setup(n, { emit: l }) {
|
|
1734
|
+
const e = n, r = ref(e.row[e.column.field]), c = l;
|
|
1735
|
+
return watch(r, (o) => {
|
|
1736
|
+
const t = o === "" || o == null ? 0 : Number(o);
|
|
1737
|
+
e.row[e.column.field] = t, c("change", t);
|
|
1738
|
+
}), onBeforeUnmount(() => {
|
|
1732
1739
|
e.row[e.column.field] = r.value ? Number(r.value) : 0;
|
|
1733
|
-
}), (
|
|
1740
|
+
}), (o, t) => (openBlock(), createBlock(unref(ElInput), {
|
|
1734
1741
|
modelValue: r.value,
|
|
1735
|
-
"onUpdate:modelValue":
|
|
1742
|
+
"onUpdate:modelValue": t[0] || (t[0] = (a) => r.value = a),
|
|
1736
1743
|
min: n.column.params.min,
|
|
1737
1744
|
max: n.column.params.max,
|
|
1738
1745
|
step: n.column.params.step,
|
|
1739
|
-
type: "number"
|
|
1740
|
-
|
|
1746
|
+
type: "number",
|
|
1747
|
+
onInput: o.handleInput
|
|
1748
|
+
}, null, 8, ["modelValue", "min", "max", "step", "onInput"]));
|
|
1741
1749
|
}
|
|
1742
1750
|
}), __vite_glob_0_2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1743
1751
|
__proto__: null,
|
|
@@ -1761,26 +1769,26 @@ const _sfc_main$c = /* @__PURE__ */ Object.assign({
|
|
|
1761
1769
|
}
|
|
1762
1770
|
},
|
|
1763
1771
|
setup(n) {
|
|
1764
|
-
const
|
|
1772
|
+
const l = n, e = ref(l.row[l.column.field]), r = reactive(l.column.params || {
|
|
1765
1773
|
placeholder: "请选择",
|
|
1766
1774
|
disabled: !1,
|
|
1767
1775
|
clearable: !1
|
|
1768
1776
|
}), c = computed(() => {
|
|
1769
1777
|
var o;
|
|
1770
|
-
return ((o =
|
|
1778
|
+
return ((o = l.column.params[l.gridRef.getRowid(l.row)]) == null ? void 0 : o.options) || l.column.params.options || [];
|
|
1771
1779
|
});
|
|
1772
1780
|
return onBeforeUnmount(() => {
|
|
1773
|
-
var
|
|
1774
|
-
|
|
1775
|
-
const o =
|
|
1781
|
+
var t;
|
|
1782
|
+
l.row[l.column.field] = e.value;
|
|
1783
|
+
const o = l.column.params.LabelStoreField;
|
|
1776
1784
|
if (o) {
|
|
1777
|
-
const a = (
|
|
1778
|
-
a !== void 0 ?
|
|
1785
|
+
const a = (t = c.value.find((u) => u.value === e.value)) == null ? void 0 : t.label;
|
|
1786
|
+
a !== void 0 ? l.row[o] = a : e.value === void 0 ? l.row[o] = null : e.value !== void 0 && a === void 0 && (l.row[o] = e.value);
|
|
1779
1787
|
}
|
|
1780
|
-
}), (o,
|
|
1788
|
+
}), (o, t) => (openBlock(), createBlock(unref(ElSelect), {
|
|
1781
1789
|
class: "z-1",
|
|
1782
1790
|
modelValue: e.value,
|
|
1783
|
-
"onUpdate:modelValue":
|
|
1791
|
+
"onUpdate:modelValue": t[0] || (t[0] = (a) => e.value = a),
|
|
1784
1792
|
"automatic-dropdown": "",
|
|
1785
1793
|
placeholder: r.placeholder,
|
|
1786
1794
|
"popper-class": "select-dropdown",
|
|
@@ -1820,30 +1828,30 @@ const _sfc_main$c = /* @__PURE__ */ Object.assign({
|
|
|
1820
1828
|
}
|
|
1821
1829
|
},
|
|
1822
1830
|
setup(n) {
|
|
1823
|
-
const
|
|
1831
|
+
const l = n, e = reactive(l.column.params || {
|
|
1824
1832
|
placeholder: "请选择",
|
|
1825
1833
|
disabled: !1,
|
|
1826
1834
|
clearable: !1
|
|
1827
1835
|
}), r = computed(() => {
|
|
1828
1836
|
var o;
|
|
1829
|
-
return ((o =
|
|
1837
|
+
return ((o = l.column.params[l.gridRef.getRowid(l.row)]) == null ? void 0 : o.options) || l.column.params.options || [];
|
|
1830
1838
|
});
|
|
1831
1839
|
onBeforeUnmount(() => {
|
|
1832
1840
|
const o = c.value.join(",");
|
|
1833
|
-
|
|
1834
|
-
const
|
|
1835
|
-
if (
|
|
1841
|
+
l.row[l.column.field] = o;
|
|
1842
|
+
const t = l.column.params.LabelStoreField;
|
|
1843
|
+
if (t) {
|
|
1836
1844
|
const a = r.value.filter((u) => c.value.includes(u.value)).map((u) => u.label).join(",");
|
|
1837
|
-
|
|
1845
|
+
l.row[t] = a;
|
|
1838
1846
|
}
|
|
1839
1847
|
});
|
|
1840
1848
|
const c = ref([]);
|
|
1841
1849
|
return watchEffect(() => {
|
|
1842
|
-
|
|
1843
|
-
}), (o,
|
|
1850
|
+
l.row[l.column.field] ? c.value = l.row[l.column.field].split(",") : c.value = [];
|
|
1851
|
+
}), (o, t) => (openBlock(), createBlock(unref(ElSelect), {
|
|
1844
1852
|
class: "z-1 vxe-table--ignore-clear",
|
|
1845
1853
|
modelValue: c.value,
|
|
1846
|
-
"onUpdate:modelValue":
|
|
1854
|
+
"onUpdate:modelValue": t[0] || (t[0] = (a) => c.value = a),
|
|
1847
1855
|
"automatic-dropdown": "",
|
|
1848
1856
|
placeholder: e.placeholder,
|
|
1849
1857
|
"popper-class": "select-dropdown",
|
|
@@ -1883,8 +1891,8 @@ const _sfc_main$c = /* @__PURE__ */ Object.assign({
|
|
|
1883
1891
|
}
|
|
1884
1892
|
},
|
|
1885
1893
|
emits: ["remoteMethod"],
|
|
1886
|
-
setup(n, { emit:
|
|
1887
|
-
const e =
|
|
1894
|
+
setup(n, { emit: l }) {
|
|
1895
|
+
const e = l, r = n, c = ref(r.row[r.column.field] === void 0 ? "" : r.row[r.column.field]), o = reactive(r.column.params || {
|
|
1888
1896
|
options: [],
|
|
1889
1897
|
placeholder: "请选择",
|
|
1890
1898
|
disabled: !1,
|
|
@@ -1901,7 +1909,7 @@ const _sfc_main$c = /* @__PURE__ */ Object.assign({
|
|
|
1901
1909
|
d && (r.row[s] = d[u[i]]);
|
|
1902
1910
|
}) : r.row[r.column.field] = c.value;
|
|
1903
1911
|
});
|
|
1904
|
-
function
|
|
1912
|
+
function t(a) {
|
|
1905
1913
|
const { DataAPIOID: u, SearchField: s } = o;
|
|
1906
1914
|
a ? (o.loading = !0, e("remoteMethod", { DataAPIOID: u, SearchField: s, query: a, params: o })) : r.row[r.column.field] = null;
|
|
1907
1915
|
}
|
|
@@ -1915,7 +1923,7 @@ const _sfc_main$c = /* @__PURE__ */ Object.assign({
|
|
|
1915
1923
|
remote: "",
|
|
1916
1924
|
placeholder: o.placeholder,
|
|
1917
1925
|
"popper-class": "select-dropdown",
|
|
1918
|
-
"remote-method":
|
|
1926
|
+
"remote-method": t,
|
|
1919
1927
|
clearable: ""
|
|
1920
1928
|
}, {
|
|
1921
1929
|
default: withCtx(() => [
|
|
@@ -1951,9 +1959,9 @@ const _sfc_main$c = /* @__PURE__ */ Object.assign({
|
|
|
1951
1959
|
}
|
|
1952
1960
|
},
|
|
1953
1961
|
setup(n) {
|
|
1954
|
-
const
|
|
1962
|
+
const l = n, e = ref(l.row[l.column.field]);
|
|
1955
1963
|
return onBeforeUnmount(() => {
|
|
1956
|
-
|
|
1964
|
+
l.row[l.column.field] = e.value;
|
|
1957
1965
|
}), (r, c) => (openBlock(), createBlock(unref(ElInput), {
|
|
1958
1966
|
modelValue: e.value,
|
|
1959
1967
|
"onUpdate:modelValue": c[0] || (c[0] = (o) => e.value = o),
|
|
@@ -1983,24 +1991,24 @@ const _sfc_main$c = /* @__PURE__ */ Object.assign({
|
|
|
1983
1991
|
}
|
|
1984
1992
|
},
|
|
1985
1993
|
setup(n) {
|
|
1986
|
-
const
|
|
1987
|
-
label:
|
|
1988
|
-
value:
|
|
1994
|
+
const l = n, e = ref({
|
|
1995
|
+
label: l.column.params.NodeNameField || "label",
|
|
1996
|
+
value: l.column.params.NodeValueField || "value",
|
|
1989
1997
|
children: "children"
|
|
1990
1998
|
});
|
|
1991
|
-
if (!
|
|
1992
|
-
const { options: c, ParentNodeField: o, NodeValueField:
|
|
1993
|
-
|
|
1999
|
+
if (!l.column.params.TreeData) {
|
|
2000
|
+
const { options: c, ParentNodeField: o, NodeValueField: t } = l.column.params;
|
|
2001
|
+
l.column.params.TreeData = buildTree(deepClone(c), o, t);
|
|
1994
2002
|
}
|
|
1995
2003
|
const r = ref([]);
|
|
1996
2004
|
return onBeforeUnmount(() => {
|
|
1997
|
-
|
|
2005
|
+
l.row[l.column.field] = r.value.join(",");
|
|
1998
2006
|
}), watchEffect(() => {
|
|
1999
|
-
|
|
2007
|
+
l.row[l.column.field] ? r.value = l.row[l.column.field].split(",") : r.value = [];
|
|
2000
2008
|
}), (c, o) => (openBlock(), createBlock(unref(ElTreeSelect), {
|
|
2001
2009
|
class: "z-1 vxe-table--ignore-clear",
|
|
2002
2010
|
modelValue: r.value,
|
|
2003
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
2011
|
+
"onUpdate:modelValue": o[0] || (o[0] = (t) => r.value = t),
|
|
2004
2012
|
"automatic-dropdown": "",
|
|
2005
2013
|
"popper-class": "tree-select",
|
|
2006
2014
|
data: n.column.params.TreeData,
|
|
@@ -2033,21 +2041,21 @@ const _sfc_main$c = /* @__PURE__ */ Object.assign({
|
|
|
2033
2041
|
}
|
|
2034
2042
|
},
|
|
2035
2043
|
setup(n) {
|
|
2036
|
-
const
|
|
2037
|
-
label:
|
|
2038
|
-
value:
|
|
2044
|
+
const l = n, e = ref(l.row[l.column.field]), r = ref({
|
|
2045
|
+
label: l.column.params.NodeNameField || "label",
|
|
2046
|
+
value: l.column.params.NodeValueField || "value",
|
|
2039
2047
|
children: "children"
|
|
2040
2048
|
});
|
|
2041
|
-
if (!
|
|
2042
|
-
const { options: c, ParentNodeField: o, NodeValueField:
|
|
2043
|
-
|
|
2049
|
+
if (!l.column.params.TreeData) {
|
|
2050
|
+
const { options: c, ParentNodeField: o, NodeValueField: t } = l.column.params;
|
|
2051
|
+
l.column.params.TreeData = buildTree(deepClone(c), o, t);
|
|
2044
2052
|
}
|
|
2045
2053
|
return onBeforeUnmount(() => {
|
|
2046
|
-
|
|
2054
|
+
l.row[l.column.field] = e.value;
|
|
2047
2055
|
}), (c, o) => (openBlock(), createBlock(unref(ElTreeSelect), {
|
|
2048
2056
|
class: "z-1 vxe-table--ignore-clear",
|
|
2049
2057
|
modelValue: e.value,
|
|
2050
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
2058
|
+
"onUpdate:modelValue": o[0] || (o[0] = (t) => e.value = t),
|
|
2051
2059
|
"automatic-dropdown": "",
|
|
2052
2060
|
"popper-class": "tree-select",
|
|
2053
2061
|
data: n.column.params.TreeData,
|
|
@@ -2055,8 +2063,8 @@ const _sfc_main$c = /* @__PURE__ */ Object.assign({
|
|
|
2055
2063
|
props: r.value,
|
|
2056
2064
|
indent: 12
|
|
2057
2065
|
}, {
|
|
2058
|
-
label: withCtx(({ label:
|
|
2059
|
-
createElementVNode("span", null, toDisplayString(n.column.params.options.find((u) => u[r.value.value] === a) ?
|
|
2066
|
+
label: withCtx(({ label: t, value: a }) => [
|
|
2067
|
+
createElementVNode("span", null, toDisplayString(n.column.params.options.find((u) => u[r.value.value] === a) ? t : ""), 1)
|
|
2060
2068
|
]),
|
|
2061
2069
|
_: 1
|
|
2062
2070
|
}, 8, ["modelValue", "data", "props"]));
|
|
@@ -2068,8 +2076,8 @@ const _sfc_main$c = /* @__PURE__ */ Object.assign({
|
|
|
2068
2076
|
let comps = {};
|
|
2069
2077
|
const modules = /* @__PURE__ */ Object.assign({ "./date-picker-editor.vue": __vite_glob_0_0, "./input-editor.vue": __vite_glob_0_1, "./input-number-editor.vue": __vite_glob_0_2, "./select-editor.vue": __vite_glob_0_3, "./select-multiple-editor.vue": __vite_glob_0_4, "./select-remote-editor.vue": __vite_glob_0_5, "./textarea-editor.vue": __vite_glob_0_6, "./tree-multiple-select-editor.vue": __vite_glob_0_7, "./tree-select-editor.vue": __vite_glob_0_8 });
|
|
2070
2078
|
for (const n in modules) {
|
|
2071
|
-
let
|
|
2072
|
-
comps[
|
|
2079
|
+
let l = modules[n].default.name;
|
|
2080
|
+
comps[l] = modules[n].default;
|
|
2073
2081
|
}
|
|
2074
2082
|
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
2075
2083
|
__name: "paging",
|
|
@@ -2093,7 +2101,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2093
2101
|
}
|
|
2094
2102
|
},
|
|
2095
2103
|
emits: ["pageChange", "refresh"],
|
|
2096
|
-
setup(n, { emit:
|
|
2104
|
+
setup(n, { emit: l }) {
|
|
2097
2105
|
const e = n, r = ref(), c = ref([
|
|
2098
2106
|
"Total",
|
|
2099
2107
|
"Sizes",
|
|
@@ -2139,8 +2147,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2139
2147
|
];
|
|
2140
2148
|
}
|
|
2141
2149
|
);
|
|
2142
|
-
const o =
|
|
2143
|
-
function
|
|
2150
|
+
const o = l;
|
|
2151
|
+
function t() {
|
|
2144
2152
|
o("pageChange", e.pagination);
|
|
2145
2153
|
}
|
|
2146
2154
|
return (a, u) => (openBlock(), createElementBlock("div", {
|
|
@@ -2158,7 +2166,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2158
2166
|
"onUpdate:pageSize": u[1] || (u[1] = (s) => n.pagination.PageSize = s),
|
|
2159
2167
|
total: n.pagination.Total,
|
|
2160
2168
|
layouts: c.value,
|
|
2161
|
-
onPageChange:
|
|
2169
|
+
onPageChange: t,
|
|
2162
2170
|
"page-sizes": n.pagination.PageSizes
|
|
2163
2171
|
}, null, 8, ["current-page", "page-size", "total", "layouts", "page-sizes"])
|
|
2164
2172
|
], 512));
|
|
@@ -2170,7 +2178,9 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2170
2178
|
config: { type: Object, default: () => ({}) },
|
|
2171
2179
|
data: { type: Array, default: () => [] },
|
|
2172
2180
|
pagination: { type: Object },
|
|
2173
|
-
gridRef: { type: Object, default: () => ({}) }
|
|
2181
|
+
gridRef: { type: Object, default: () => ({}) },
|
|
2182
|
+
dblEditEnabled: { type: Boolean, default: !1 }
|
|
2183
|
+
//表格单元双击编辑的属性
|
|
2174
2184
|
},
|
|
2175
2185
|
emits: [
|
|
2176
2186
|
"ActionClick",
|
|
@@ -2188,14 +2198,14 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2188
2198
|
"tableSelectChange",
|
|
2189
2199
|
"tableSelectRemote"
|
|
2190
2200
|
],
|
|
2191
|
-
setup(n, { expose:
|
|
2192
|
-
const r = n, c = e, o = ref(),
|
|
2201
|
+
setup(n, { expose: l, emit: e }) {
|
|
2202
|
+
const r = n, c = e, o = ref(), t = reactive(r.config);
|
|
2193
2203
|
reactive(r.config.columns);
|
|
2194
2204
|
let a = ref(!1);
|
|
2195
2205
|
onMounted(() => {
|
|
2196
|
-
document.addEventListener("click",
|
|
2206
|
+
document.addEventListener("click", H, !0);
|
|
2197
2207
|
}), onBeforeUnmount(() => {
|
|
2198
|
-
document.removeEventListener("click",
|
|
2208
|
+
document.removeEventListener("click", H, !0), z();
|
|
2199
2209
|
});
|
|
2200
2210
|
const {
|
|
2201
2211
|
CheckboxRender: u,
|
|
@@ -2203,73 +2213,73 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2203
2213
|
IconPickerRender: i,
|
|
2204
2214
|
RadioRender: d,
|
|
2205
2215
|
ProgressRender: m,
|
|
2206
|
-
ActionRender:
|
|
2207
|
-
SelectRender:
|
|
2208
|
-
TreeSelectRender:
|
|
2209
|
-
SelectMultipleRender:
|
|
2210
|
-
TreeMultipleSelectRender:
|
|
2211
|
-
ChooseFrameRender:
|
|
2212
|
-
PickPeopleRender:
|
|
2213
|
-
FileRender:
|
|
2216
|
+
ActionRender: g,
|
|
2217
|
+
SelectRender: k,
|
|
2218
|
+
TreeSelectRender: v,
|
|
2219
|
+
SelectMultipleRender: y,
|
|
2220
|
+
TreeMultipleSelectRender: w,
|
|
2221
|
+
ChooseFrameRender: V,
|
|
2222
|
+
PickPeopleRender: $,
|
|
2223
|
+
FileRender: j,
|
|
2214
2224
|
CustomRender: C,
|
|
2215
|
-
DatePickerRender:
|
|
2216
|
-
LabelRender:
|
|
2225
|
+
DatePickerRender: E,
|
|
2226
|
+
LabelRender: F
|
|
2217
2227
|
} = comps$1, {
|
|
2218
|
-
InputEditor:
|
|
2219
|
-
TreeSelectEditor:
|
|
2220
|
-
SelectEditor:
|
|
2221
|
-
TextareaEditor:
|
|
2222
|
-
DatePickerEditor:
|
|
2223
|
-
SelectMultipleEditor:
|
|
2224
|
-
TreeMultipleSelectEditor:
|
|
2225
|
-
InputNumberEditor:
|
|
2226
|
-
SelectRemoteEditor:
|
|
2227
|
-
} = comps,
|
|
2228
|
-
var
|
|
2229
|
-
return ((((
|
|
2230
|
-
}),
|
|
2231
|
-
var b;
|
|
2232
|
-
if (
|
|
2233
|
-
if (
|
|
2234
|
-
(
|
|
2228
|
+
InputEditor: R,
|
|
2229
|
+
TreeSelectEditor: L,
|
|
2230
|
+
SelectEditor: q,
|
|
2231
|
+
TextareaEditor: W,
|
|
2232
|
+
DatePickerEditor: K,
|
|
2233
|
+
SelectMultipleEditor: J,
|
|
2234
|
+
TreeMultipleSelectEditor: G,
|
|
2235
|
+
InputNumberEditor: Q,
|
|
2236
|
+
SelectRemoteEditor: X
|
|
2237
|
+
} = comps, Z = computed(() => {
|
|
2238
|
+
var _, h;
|
|
2239
|
+
return ((((_ = r.pagination) == null ? void 0 : _.Page) || 1) - 1) * (((h = r.pagination) == null ? void 0 : h.PageSize) || 1e3);
|
|
2240
|
+
}), Y = computed(() => {
|
|
2241
|
+
var h, f, p, b;
|
|
2242
|
+
if (t.Number)
|
|
2243
|
+
if (t.columns.some(
|
|
2244
|
+
(x) => x.type === "seq" || x.children && x.children.some((S) => S.type === "seq")
|
|
2235
2245
|
))
|
|
2236
|
-
|
|
2246
|
+
t.columns = t.columns.filter((x) => x.type === "seq" ? !1 : x.children ? (x.children = x.children.filter((S) => S.type !== "seq"), x.children.length > 0) : !0);
|
|
2237
2247
|
else {
|
|
2238
|
-
let
|
|
2239
|
-
const
|
|
2248
|
+
let x = t.columns.find((O) => ["left", "right"].includes(O.fixed));
|
|
2249
|
+
const S = {
|
|
2240
2250
|
slots: {},
|
|
2241
2251
|
params: {},
|
|
2242
2252
|
type: "seq",
|
|
2243
2253
|
title: "序号",
|
|
2244
2254
|
align: "center",
|
|
2245
2255
|
width: 50,
|
|
2246
|
-
fixed:
|
|
2256
|
+
fixed: x || void 0
|
|
2247
2257
|
};
|
|
2248
|
-
|
|
2258
|
+
t.columns.unshift(S);
|
|
2249
2259
|
}
|
|
2250
2260
|
if (r.config.AutoFullWidth) {
|
|
2251
|
-
const
|
|
2252
|
-
let
|
|
2253
|
-
return
|
|
2254
|
-
}, 0),
|
|
2255
|
-
if (
|
|
2261
|
+
const x = A(r.config.columns || []).filter((D) => !D.children), S = x.reduce((D, T) => {
|
|
2262
|
+
let P = Number(T.width);
|
|
2263
|
+
return D + (isNaN(P) ? 100 : P);
|
|
2264
|
+
}, 0), O = (D = 0) => {
|
|
2265
|
+
if (D > 50) return;
|
|
2256
2266
|
if (!o.value) {
|
|
2257
|
-
setTimeout(() =>
|
|
2267
|
+
setTimeout(() => O(++D), 0);
|
|
2258
2268
|
return;
|
|
2259
2269
|
}
|
|
2260
|
-
const
|
|
2261
|
-
|
|
2262
|
-
let
|
|
2263
|
-
|
|
2270
|
+
const T = o.value.$el.clientWidth;
|
|
2271
|
+
S !== T && x.forEach((P) => {
|
|
2272
|
+
let M = Number(P.width);
|
|
2273
|
+
P.width = Number(((isNaN(M) ? 100 : M) * (T / S)).toFixed(0));
|
|
2264
2274
|
});
|
|
2265
2275
|
};
|
|
2266
|
-
|
|
2276
|
+
O();
|
|
2267
2277
|
}
|
|
2268
|
-
let
|
|
2278
|
+
let _ = {
|
|
2269
2279
|
keepSource: !0,
|
|
2270
2280
|
showOverflow: "title",
|
|
2271
2281
|
seqConfig: {
|
|
2272
|
-
seqMethod: (
|
|
2282
|
+
seqMethod: (B) => Z.value + B.$rowIndex + 1
|
|
2273
2283
|
},
|
|
2274
2284
|
exportConfig: {},
|
|
2275
2285
|
importConfig: {},
|
|
@@ -2277,25 +2287,35 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2277
2287
|
columns: [],
|
|
2278
2288
|
...r.config,
|
|
2279
2289
|
// data: [...props.data], //不需要开启,目前是通过异步加载数据,开启会导致数据被当前配置覆盖
|
|
2290
|
+
// ✅ 关键:开启“单元格选中”,才会出现 col--selected / col--current 等 class
|
|
2291
|
+
mouseConfig: r.dblEditEnabled ? { selected: !0 } : (h = r.config) == null ? void 0 : h.mouseConfig,
|
|
2292
|
+
// ✅ 开单元格高亮(不同版本字段名可能是 highlightCell)
|
|
2293
|
+
highlightCell: !0,
|
|
2294
|
+
highlightCurrentRow: !0,
|
|
2295
|
+
// 你已有 row--current 的样式
|
|
2280
2296
|
editConfig: {
|
|
2281
|
-
trigger: "click",
|
|
2297
|
+
//trigger: "click", //旧的
|
|
2282
2298
|
mode: "cell",
|
|
2283
2299
|
showStatus: !0,
|
|
2284
2300
|
// 只对 keep-source 开启有效,是否显示单元格新增与修改状态
|
|
2285
2301
|
showIcon: !1,
|
|
2286
2302
|
// 因为对过滤行进行了修改 该属性必须为false
|
|
2287
|
-
...(
|
|
2303
|
+
...(f = r.config) == null ? void 0 : f.editConfig,
|
|
2304
|
+
// ⭐ 最终由父组件 dblEditEnabled 决定
|
|
2305
|
+
trigger: r.dblEditEnabled ? "dblclick" : ((b = (p = r.config) == null ? void 0 : p.editConfig) == null ? void 0 : b.trigger) || "click"
|
|
2288
2306
|
},
|
|
2289
|
-
showFooter:
|
|
2307
|
+
showFooter: t["Total-Row"],
|
|
2290
2308
|
// 启用表尾统计
|
|
2291
2309
|
// showFooter: true, // 启用统计行
|
|
2292
|
-
footerMethod({ columns:
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2310
|
+
footerMethod({ columns: B, data: x }) {
|
|
2311
|
+
var S;
|
|
2312
|
+
if (!(!t["Total-Field"] || !((S = t["Total-Field"]) != null && S.length)))
|
|
2313
|
+
return [
|
|
2314
|
+
B.map((O, D) => D == 0 || (typeof t["Total-Field"] == "string" ? O.field === t["Total-Field"] : Array.isArray(t["Total-Field"]) && t["Total-Field"].includes(O.field)) ? D === 0 ? "合计" : t["Total-Field"].includes(O.field) ? U(x, O.field).toLocaleString("zh-CN") : "" : void 0)
|
|
2315
|
+
];
|
|
2296
2316
|
}
|
|
2297
2317
|
};
|
|
2298
|
-
return
|
|
2318
|
+
return t.BodyMenu && (_.menuConfig = {
|
|
2299
2319
|
body: {
|
|
2300
2320
|
options: [[
|
|
2301
2321
|
{ type: "print", name: "打印", prefixConfig: { icon: "vxe-icon-print" } },
|
|
@@ -2303,372 +2323,435 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2303
2323
|
{ type: "myBtn2", name: "导出全部", prefixConfig: { icon: "vxe-icon-send-fill" } }
|
|
2304
2324
|
]]
|
|
2305
2325
|
}
|
|
2306
|
-
}),
|
|
2307
|
-
}),
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2326
|
+
}), _;
|
|
2327
|
+
}), I = ref(!1);
|
|
2328
|
+
let N = null;
|
|
2329
|
+
function ee(_) {
|
|
2330
|
+
const h = _.clipboardData;
|
|
2331
|
+
if (!h) return null;
|
|
2332
|
+
const f = h.getData("text/html");
|
|
2333
|
+
if (f && /<table/i.test(f)) {
|
|
2334
|
+
const S = new DOMParser().parseFromString(f, "text/html").querySelector("table");
|
|
2335
|
+
if (S)
|
|
2336
|
+
return Array.from(S.querySelectorAll("tr")).map((D) => Array.from(D.querySelectorAll("th,td")).map((P) => (Array.from(P.querySelectorAll("br")).forEach((M) => M.replaceWith(`
|
|
2337
|
+
`)), (P.textContent || "").replace(/\u00A0/g, " ").trimEnd())));
|
|
2338
|
+
}
|
|
2339
|
+
const p = h.getData("text/plain") || "";
|
|
2340
|
+
if (!p) return null;
|
|
2341
|
+
const B = p.replace(/\r\n/g, `
|
|
2342
|
+
`).replace(/\r/g, `
|
|
2343
|
+
`).split(`
|
|
2344
|
+
`);
|
|
2345
|
+
for (; B.length && B[B.length - 1] === ""; ) B.pop();
|
|
2346
|
+
return B.map((x) => x.split(" "));
|
|
2347
|
+
}
|
|
2348
|
+
function te() {
|
|
2349
|
+
N || (N = (_) => {
|
|
2350
|
+
var f, p, b;
|
|
2351
|
+
if (!I.value) return;
|
|
2352
|
+
_.preventDefault(), _.stopPropagation(), (f = _.stopImmediatePropagation) == null || f.call(_);
|
|
2353
|
+
const h = ee(_);
|
|
2354
|
+
h && ((b = (p = r.gridRef) == null ? void 0 : p.onGridPaste) == null || b.call(p, h));
|
|
2355
|
+
}, window.addEventListener("paste", N, !0));
|
|
2356
|
+
}
|
|
2357
|
+
function z() {
|
|
2358
|
+
N && (window.removeEventListener("paste", N, !0), N = null);
|
|
2359
|
+
}
|
|
2360
|
+
const le = {
|
|
2361
|
+
cellMenu({ row: _ }) {
|
|
2362
|
+
const h = o.value;
|
|
2363
|
+
h && h.setCurrentRow(_);
|
|
2364
|
+
},
|
|
2365
|
+
//单击事件 设置选中行和选择单元格
|
|
2366
|
+
cellClick({ row: _, column: h }) {
|
|
2367
|
+
var p, b;
|
|
2368
|
+
const f = o.value;
|
|
2369
|
+
f && ((p = f.setCurrentCell) == null || p.call(f, _, h.field), f.currentCell = h, (b = f.setCurrentRow) == null || b.call(f, _));
|
|
2311
2370
|
},
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2371
|
+
//双击事件 设置选中行和选择单元格
|
|
2372
|
+
cellDblclick({ row: _, column: h }) {
|
|
2373
|
+
var p, b;
|
|
2374
|
+
const f = o.value;
|
|
2375
|
+
f && ((p = f.setCurrentCell) == null || p.call(f, _, h.field), (b = f.setCurrentRow) == null || b.call(f, _));
|
|
2376
|
+
},
|
|
2377
|
+
async menuClick({ menu: _ }) {
|
|
2378
|
+
const h = o.value;
|
|
2379
|
+
if (h)
|
|
2380
|
+
switch (_.code) {
|
|
2316
2381
|
case "reload":
|
|
2317
|
-
const
|
|
2318
|
-
r.gridRef.echoData(), layer.close(
|
|
2382
|
+
const f = layer.load(2, { shade: [0.5, "#fff"] });
|
|
2383
|
+
r.gridRef.echoData(), layer.close(f);
|
|
2319
2384
|
break;
|
|
2320
2385
|
case "Print":
|
|
2321
|
-
|
|
2386
|
+
h.print();
|
|
2322
2387
|
break;
|
|
2323
2388
|
case "exportCurrent":
|
|
2324
|
-
const
|
|
2325
|
-
|
|
2389
|
+
const p = (h == null ? void 0 : h.getTableData().tableData) || [];
|
|
2390
|
+
h.exportData({
|
|
2326
2391
|
type: "csv",
|
|
2327
2392
|
isHeader: !0,
|
|
2328
2393
|
isFooter: !1,
|
|
2329
|
-
columns:
|
|
2394
|
+
columns: h.getColumns().filter((B) => B.type !== "action" && B.type !== "checkbox"),
|
|
2330
2395
|
// 过滤出不需要导出的列
|
|
2331
2396
|
filename: `${r.config.PageName}(${H_getISODate(/* @__PURE__ */ new Date())})`,
|
|
2332
2397
|
// 文件名
|
|
2333
|
-
data:
|
|
2398
|
+
data: p
|
|
2334
2399
|
// 当前页数据
|
|
2335
2400
|
});
|
|
2336
2401
|
break;
|
|
2337
2402
|
case "exportAll":
|
|
2338
|
-
let
|
|
2339
|
-
|
|
2403
|
+
let b = await r.gridRef.handleExport();
|
|
2404
|
+
h.exportData({
|
|
2340
2405
|
type: "csv",
|
|
2341
2406
|
isHeader: !0,
|
|
2342
2407
|
isFooter: !0,
|
|
2343
|
-
columns:
|
|
2408
|
+
columns: h.getColumns().filter((B) => B.type !== "action" && B.type !== "checkbox" && B.type !== "seq"),
|
|
2344
2409
|
// 过滤出不需要导出的列
|
|
2345
2410
|
filename: `${r.config.PageName == "" ? "导出" : r.config.PageName}(${H_getISODate(/* @__PURE__ */ new Date())})`,
|
|
2346
2411
|
// 文件名
|
|
2347
|
-
data:
|
|
2412
|
+
data: b
|
|
2348
2413
|
});
|
|
2349
2414
|
break;
|
|
2350
2415
|
case "print":
|
|
2351
|
-
|
|
2416
|
+
h.print();
|
|
2417
|
+
break;
|
|
2418
|
+
case "OpenCopy":
|
|
2419
|
+
r.gridRef.openCopy(), I.value = !0, te();
|
|
2420
|
+
break;
|
|
2421
|
+
case "CloseCopy":
|
|
2422
|
+
r.gridRef.closeCopy(), I.value = !1, z();
|
|
2352
2423
|
break;
|
|
2353
2424
|
}
|
|
2354
2425
|
}
|
|
2355
2426
|
};
|
|
2356
|
-
function
|
|
2357
|
-
c("ActionClick",
|
|
2427
|
+
function oe(_) {
|
|
2428
|
+
c("ActionClick", _);
|
|
2358
2429
|
}
|
|
2359
|
-
function
|
|
2360
|
-
c("PageChange", ...
|
|
2430
|
+
function re(..._) {
|
|
2431
|
+
c("PageChange", ..._);
|
|
2361
2432
|
}
|
|
2362
|
-
function
|
|
2363
|
-
c("Refresh", ...
|
|
2433
|
+
function ae(..._) {
|
|
2434
|
+
c("Refresh", ..._);
|
|
2364
2435
|
}
|
|
2365
|
-
function
|
|
2366
|
-
c("FilterSearch", ...
|
|
2436
|
+
function ne(..._) {
|
|
2437
|
+
c("FilterSearch", ..._);
|
|
2367
2438
|
}
|
|
2368
|
-
function
|
|
2369
|
-
c("SortChange", ...
|
|
2439
|
+
function ce(..._) {
|
|
2440
|
+
c("SortChange", ..._);
|
|
2370
2441
|
}
|
|
2371
|
-
function
|
|
2372
|
-
c("ActionRenderBefore", ...
|
|
2442
|
+
function ie(..._) {
|
|
2443
|
+
c("ActionRenderBefore", ..._);
|
|
2373
2444
|
}
|
|
2374
|
-
function
|
|
2375
|
-
c("FileClick", ...
|
|
2445
|
+
function ue(..._) {
|
|
2446
|
+
c("FileClick", ..._);
|
|
2376
2447
|
}
|
|
2377
|
-
function
|
|
2378
|
-
|
|
2448
|
+
function se(_, h, f) {
|
|
2449
|
+
_.column = h, _.row = f, c("tableSelectRemote", _);
|
|
2379
2450
|
}
|
|
2380
|
-
function
|
|
2381
|
-
c("tableSelectChange", ...
|
|
2451
|
+
function de(..._) {
|
|
2452
|
+
c("tableSelectChange", ..._);
|
|
2382
2453
|
}
|
|
2383
|
-
function
|
|
2384
|
-
c("RemoteMethod", ...
|
|
2454
|
+
function fe(..._) {
|
|
2455
|
+
c("RemoteMethod", ..._);
|
|
2385
2456
|
}
|
|
2386
|
-
function
|
|
2387
|
-
c("ChooseBefor", ...
|
|
2457
|
+
function me(..._) {
|
|
2458
|
+
c("ChooseBefor", ..._);
|
|
2388
2459
|
}
|
|
2389
|
-
function
|
|
2390
|
-
c("PickPeople", ...
|
|
2460
|
+
function pe(..._) {
|
|
2461
|
+
c("PickPeople", ..._);
|
|
2391
2462
|
}
|
|
2392
|
-
function
|
|
2393
|
-
c("CheckboxChange", ...
|
|
2463
|
+
function _e(..._) {
|
|
2464
|
+
c("CheckboxChange", ..._);
|
|
2394
2465
|
}
|
|
2395
|
-
function
|
|
2396
|
-
return
|
|
2397
|
-
|
|
2398
|
-
}),
|
|
2466
|
+
function A(_, h = "children", f = []) {
|
|
2467
|
+
return _.forEach((p) => {
|
|
2468
|
+
f.push(p), p[h] && p[h].length > 0 && A(p[h], h, f);
|
|
2469
|
+
}), f;
|
|
2399
2470
|
}
|
|
2400
|
-
const
|
|
2401
|
-
var
|
|
2402
|
-
|
|
2403
|
-
},
|
|
2471
|
+
const ge = ({ menu: _ }) => {
|
|
2472
|
+
var h, f;
|
|
2473
|
+
_.type == "print" ? (h = o.value) == null || h.openPrint() : _.type == "export" && ((f = o.value) == null || f.openExport());
|
|
2474
|
+
}, ve = (_) => {
|
|
2404
2475
|
a.value = !0;
|
|
2405
|
-
let
|
|
2406
|
-
|
|
2476
|
+
let h = t.columns.splice(_._index.oldIndex, 1)[0];
|
|
2477
|
+
t.columns.splice((_._index.newIndex || 1) - 1, 0, h);
|
|
2407
2478
|
};
|
|
2408
|
-
function
|
|
2409
|
-
const
|
|
2410
|
-
if (!
|
|
2411
|
-
const
|
|
2412
|
-
if (!
|
|
2413
|
-
const
|
|
2414
|
-
|
|
2415
|
-
}
|
|
2416
|
-
function
|
|
2417
|
-
if (!(
|
|
2418
|
-
function p
|
|
2419
|
-
let
|
|
2420
|
-
function S
|
|
2421
|
-
var
|
|
2422
|
-
if (((
|
|
2423
|
-
for (const
|
|
2424
|
-
|
|
2479
|
+
function H(_) {
|
|
2480
|
+
const h = _.target.closest("tr.vxe-body--row");
|
|
2481
|
+
if (!h || !(o != null && o.value)) return;
|
|
2482
|
+
const f = h.getAttribute("rowid");
|
|
2483
|
+
if (!f) return;
|
|
2484
|
+
const p = o.value.getRowById(f);
|
|
2485
|
+
p && o.value.setCurrentRow(p);
|
|
2486
|
+
}
|
|
2487
|
+
function U(_, h) {
|
|
2488
|
+
if (!(_ instanceof Array)) return 0;
|
|
2489
|
+
function f(p, b) {
|
|
2490
|
+
let B = 0;
|
|
2491
|
+
function x(S) {
|
|
2492
|
+
var O;
|
|
2493
|
+
if (((O = S.children) == null ? void 0 : O.length) > 0)
|
|
2494
|
+
for (const D of S.children)
|
|
2495
|
+
x(D);
|
|
2425
2496
|
else
|
|
2426
|
-
|
|
2497
|
+
B = H_calculate(`${B}+${S[b] || 0}`);
|
|
2427
2498
|
}
|
|
2428
|
-
return
|
|
2499
|
+
return x(p), B;
|
|
2429
2500
|
}
|
|
2430
|
-
return
|
|
2431
|
-
var
|
|
2432
|
-
if (!(
|
|
2433
|
-
return H_calculate(`${
|
|
2434
|
-
if (((
|
|
2435
|
-
return H_calculate(`${
|
|
2436
|
-
if (((
|
|
2437
|
-
let
|
|
2438
|
-
return H_calculate(`${
|
|
2501
|
+
return _.reduce((p, b) => {
|
|
2502
|
+
var B, x;
|
|
2503
|
+
if (!(b != null && b.children))
|
|
2504
|
+
return H_calculate(`${p}+${Number(b[h]) || 0}`);
|
|
2505
|
+
if (((B = b.children) == null ? void 0 : B.length) === 0 && (b.ParentOID === "00000000-0000-0000-0000-000000000000" || b.ParentOID === null))
|
|
2506
|
+
return H_calculate(`${p}+${Number(b[h]) || 0}`);
|
|
2507
|
+
if (((x = b.children) == null ? void 0 : x.length) > 0 && (b.ParentOID === "00000000-0000-0000-0000-000000000000" || b.ParentOID === null)) {
|
|
2508
|
+
let S = f(b, h);
|
|
2509
|
+
return H_calculate(`${p}+${S}`);
|
|
2439
2510
|
}
|
|
2440
|
-
return
|
|
2511
|
+
return p;
|
|
2441
2512
|
}, 0);
|
|
2442
2513
|
}
|
|
2443
|
-
return
|
|
2514
|
+
return watch(
|
|
2515
|
+
() => r.dblEditEnabled,
|
|
2516
|
+
async (_) => {
|
|
2517
|
+
var h, f, p;
|
|
2518
|
+
if (!_) {
|
|
2519
|
+
await nextTick();
|
|
2520
|
+
const b = o.value;
|
|
2521
|
+
if (!b) return;
|
|
2522
|
+
(h = b.clearEdit) == null || h.call(b), (f = b.clearSelected) == null || f.call(b), (p = b.clearCurrentRow) == null || p.call(b);
|
|
2523
|
+
}
|
|
2524
|
+
},
|
|
2525
|
+
{ immediate: !0 }
|
|
2526
|
+
), l({
|
|
2444
2527
|
gridRef: o,
|
|
2445
|
-
getFieldTotal:
|
|
2446
|
-
gridOptions:
|
|
2447
|
-
}), (
|
|
2528
|
+
getFieldTotal: U,
|
|
2529
|
+
gridOptions: Y
|
|
2530
|
+
}), (_, h) => (openBlock(), createElementBlock("div", _hoisted_1$2, [
|
|
2448
2531
|
createVNode(unref(VxeGrid), mergeProps({
|
|
2449
|
-
class: "grid-table",
|
|
2532
|
+
class: ["grid-table", { "dbl-edit-on": r.dblEditEnabled }],
|
|
2450
2533
|
ref_key: "gridRef",
|
|
2451
2534
|
ref: o
|
|
2452
|
-
}, { ...
|
|
2453
|
-
onMenuClick:
|
|
2454
|
-
onColumnDragend:
|
|
2535
|
+
}, { ...Y.value, ..._.$attrs }, toHandlers(le), {
|
|
2536
|
+
onMenuClick: ge,
|
|
2537
|
+
onColumnDragend: ve,
|
|
2455
2538
|
"show-overflow": "tooltip",
|
|
2456
|
-
onCheckboxChange:
|
|
2539
|
+
onCheckboxChange: _e
|
|
2457
2540
|
}), {
|
|
2458
|
-
FilterRows: withCtx(({ column:
|
|
2541
|
+
FilterRows: withCtx(({ column: f }) => [
|
|
2459
2542
|
createVNode(_sfc_main$t, {
|
|
2460
|
-
column:
|
|
2543
|
+
column: f,
|
|
2461
2544
|
"grid-ref": o.value,
|
|
2462
|
-
onFilterSearch:
|
|
2463
|
-
onSortChange:
|
|
2545
|
+
onFilterSearch: ne,
|
|
2546
|
+
onSortChange: ce
|
|
2464
2547
|
}, null, 8, ["column", "grid-ref"])
|
|
2465
2548
|
]),
|
|
2466
|
-
ActionRender: withCtx(({ row:
|
|
2467
|
-
createVNode(unref(
|
|
2468
|
-
row:
|
|
2469
|
-
column:
|
|
2549
|
+
ActionRender: withCtx(({ row: f, column: p }) => [
|
|
2550
|
+
createVNode(unref(g), {
|
|
2551
|
+
row: f,
|
|
2552
|
+
column: p,
|
|
2470
2553
|
"grid-ref": o.value,
|
|
2471
|
-
onActionClick:
|
|
2472
|
-
onActionRenderBefore:
|
|
2554
|
+
onActionClick: oe,
|
|
2555
|
+
onActionRenderBefore: ie
|
|
2473
2556
|
}, null, 8, ["row", "column", "grid-ref"])
|
|
2474
2557
|
]),
|
|
2475
|
-
RadioRender: withCtx(({ row:
|
|
2558
|
+
RadioRender: withCtx(({ row: f, column: p }) => [
|
|
2476
2559
|
createVNode(unref(d), {
|
|
2477
|
-
row:
|
|
2478
|
-
column:
|
|
2560
|
+
row: f,
|
|
2561
|
+
column: p,
|
|
2479
2562
|
"grid-ref": o.value
|
|
2480
2563
|
}, null, 8, ["row", "column", "grid-ref"])
|
|
2481
2564
|
]),
|
|
2482
|
-
CheckboxRender: withCtx(({ row:
|
|
2565
|
+
CheckboxRender: withCtx(({ row: f, column: p }) => [
|
|
2483
2566
|
createVNode(unref(u), {
|
|
2484
|
-
row:
|
|
2485
|
-
column:
|
|
2567
|
+
row: f,
|
|
2568
|
+
column: p,
|
|
2486
2569
|
"grid-ref": o.value
|
|
2487
2570
|
}, null, 8, ["row", "column", "grid-ref"])
|
|
2488
2571
|
]),
|
|
2489
|
-
ColorPickerRender: withCtx(({ row:
|
|
2572
|
+
ColorPickerRender: withCtx(({ row: f, column: p }) => [
|
|
2490
2573
|
createVNode(unref(s), {
|
|
2491
|
-
row:
|
|
2492
|
-
column:
|
|
2574
|
+
row: f,
|
|
2575
|
+
column: p,
|
|
2493
2576
|
"grid-ref": o.value
|
|
2494
2577
|
}, null, 8, ["row", "column", "grid-ref"])
|
|
2495
2578
|
]),
|
|
2496
|
-
IconPickerRender: withCtx(({ row:
|
|
2579
|
+
IconPickerRender: withCtx(({ row: f, column: p }) => [
|
|
2497
2580
|
createVNode(unref(i), {
|
|
2498
|
-
row:
|
|
2499
|
-
column:
|
|
2581
|
+
row: f,
|
|
2582
|
+
column: p,
|
|
2500
2583
|
"grid-ref": o.value
|
|
2501
2584
|
}, null, 8, ["row", "column", "grid-ref"])
|
|
2502
2585
|
]),
|
|
2503
|
-
ProgressRender: withCtx(({ row:
|
|
2586
|
+
ProgressRender: withCtx(({ row: f, column: p }) => [
|
|
2504
2587
|
createVNode(unref(m), {
|
|
2505
|
-
row:
|
|
2506
|
-
column:
|
|
2588
|
+
row: f,
|
|
2589
|
+
column: p,
|
|
2507
2590
|
"grid-ref": o.value
|
|
2508
2591
|
}, null, 8, ["row", "column", "grid-ref"])
|
|
2509
2592
|
]),
|
|
2510
|
-
SelectRender: withCtx(({ row:
|
|
2511
|
-
createVNode(unref(
|
|
2512
|
-
row:
|
|
2513
|
-
column:
|
|
2593
|
+
SelectRender: withCtx(({ row: f, column: p }) => [
|
|
2594
|
+
createVNode(unref(k), {
|
|
2595
|
+
row: f,
|
|
2596
|
+
column: p,
|
|
2514
2597
|
"grid-ref": o.value
|
|
2515
2598
|
}, null, 8, ["row", "column", "grid-ref"])
|
|
2516
2599
|
]),
|
|
2517
|
-
SelectMultipleRender: withCtx(({ row:
|
|
2518
|
-
createVNode(unref(
|
|
2519
|
-
row:
|
|
2520
|
-
column:
|
|
2600
|
+
SelectMultipleRender: withCtx(({ row: f, column: p }) => [
|
|
2601
|
+
createVNode(unref(y), {
|
|
2602
|
+
row: f,
|
|
2603
|
+
column: p,
|
|
2521
2604
|
"grid-ref": o.value
|
|
2522
2605
|
}, null, 8, ["row", "column", "grid-ref"])
|
|
2523
2606
|
]),
|
|
2524
|
-
TreeSelectRender: withCtx(({ row:
|
|
2525
|
-
createVNode(unref(
|
|
2526
|
-
row:
|
|
2527
|
-
column:
|
|
2607
|
+
TreeSelectRender: withCtx(({ row: f, column: p }) => [
|
|
2608
|
+
createVNode(unref(v), {
|
|
2609
|
+
row: f,
|
|
2610
|
+
column: p,
|
|
2528
2611
|
"grid-ref": o.value
|
|
2529
2612
|
}, null, 8, ["row", "column", "grid-ref"])
|
|
2530
2613
|
]),
|
|
2531
|
-
TreeMultipleSelectRender: withCtx(({ row:
|
|
2532
|
-
createVNode(unref(
|
|
2533
|
-
row:
|
|
2534
|
-
column:
|
|
2614
|
+
TreeMultipleSelectRender: withCtx(({ row: f, column: p }) => [
|
|
2615
|
+
createVNode(unref(w), {
|
|
2616
|
+
row: f,
|
|
2617
|
+
column: p,
|
|
2535
2618
|
"grid-ref": o.value
|
|
2536
2619
|
}, null, 8, ["row", "column", "grid-ref"])
|
|
2537
2620
|
]),
|
|
2538
|
-
ChooseFrameRender: withCtx(({ row:
|
|
2539
|
-
createVNode(unref(
|
|
2540
|
-
row:
|
|
2541
|
-
column:
|
|
2621
|
+
ChooseFrameRender: withCtx(({ row: f, column: p }) => [
|
|
2622
|
+
createVNode(unref(V), {
|
|
2623
|
+
row: f,
|
|
2624
|
+
column: p,
|
|
2542
2625
|
"grid-ref": r.gridRef,
|
|
2543
|
-
onOnChooseBeforClick:
|
|
2626
|
+
onOnChooseBeforClick: me
|
|
2544
2627
|
}, null, 8, ["row", "column", "grid-ref"])
|
|
2545
2628
|
]),
|
|
2546
|
-
PickPeopleRender: withCtx(({ row:
|
|
2547
|
-
createVNode(unref(
|
|
2548
|
-
row:
|
|
2549
|
-
column:
|
|
2629
|
+
PickPeopleRender: withCtx(({ row: f, column: p }) => [
|
|
2630
|
+
createVNode(unref($), {
|
|
2631
|
+
row: f,
|
|
2632
|
+
column: p,
|
|
2550
2633
|
"grid-ref": o.value,
|
|
2551
|
-
onChange:
|
|
2634
|
+
onChange: pe
|
|
2552
2635
|
}, null, 8, ["row", "column", "grid-ref"])
|
|
2553
2636
|
]),
|
|
2554
|
-
FileRender: withCtx(({ row:
|
|
2555
|
-
createVNode(unref(
|
|
2556
|
-
row:
|
|
2557
|
-
column:
|
|
2637
|
+
FileRender: withCtx(({ row: f, column: p }) => [
|
|
2638
|
+
createVNode(unref(j), {
|
|
2639
|
+
row: f,
|
|
2640
|
+
column: p,
|
|
2558
2641
|
"grid-ref": o.value,
|
|
2559
|
-
onFileClick:
|
|
2642
|
+
onFileClick: ue
|
|
2560
2643
|
}, null, 8, ["row", "column", "grid-ref"])
|
|
2561
2644
|
]),
|
|
2562
|
-
CustomRender: withCtx(({ row:
|
|
2645
|
+
CustomRender: withCtx(({ row: f, column: p }) => [
|
|
2563
2646
|
createVNode(unref(C), {
|
|
2564
|
-
row:
|
|
2565
|
-
column:
|
|
2647
|
+
row: f,
|
|
2648
|
+
column: p,
|
|
2566
2649
|
"grid-ref": o.value
|
|
2567
2650
|
}, null, 8, ["row", "column", "grid-ref"])
|
|
2568
2651
|
]),
|
|
2569
|
-
DatePickerRender: withCtx(({ row:
|
|
2570
|
-
createVNode(unref(
|
|
2571
|
-
row:
|
|
2572
|
-
column:
|
|
2652
|
+
DatePickerRender: withCtx(({ row: f, column: p }) => [
|
|
2653
|
+
createVNode(unref(E), {
|
|
2654
|
+
row: f,
|
|
2655
|
+
column: p,
|
|
2573
2656
|
"grid-ref": o.value
|
|
2574
2657
|
}, null, 8, ["row", "column", "grid-ref"])
|
|
2575
2658
|
]),
|
|
2576
|
-
LabelRender: withCtx(({ row:
|
|
2577
|
-
createVNode(unref(
|
|
2578
|
-
row:
|
|
2579
|
-
column:
|
|
2659
|
+
LabelRender: withCtx(({ row: f, column: p }) => [
|
|
2660
|
+
createVNode(unref(F), {
|
|
2661
|
+
row: f,
|
|
2662
|
+
column: p,
|
|
2580
2663
|
"grid-ref": o.value
|
|
2581
2664
|
}, null, 8, ["row", "column", "grid-ref"])
|
|
2582
2665
|
]),
|
|
2583
|
-
InputEditor: withCtx(({ row:
|
|
2584
|
-
createVNode(unref(
|
|
2585
|
-
row:
|
|
2586
|
-
column:
|
|
2666
|
+
InputEditor: withCtx(({ row: f, column: p }) => [
|
|
2667
|
+
createVNode(unref(R), {
|
|
2668
|
+
row: f,
|
|
2669
|
+
column: p,
|
|
2587
2670
|
"grid-ref": o.value
|
|
2588
2671
|
}, null, 8, ["row", "column", "grid-ref"])
|
|
2589
2672
|
]),
|
|
2590
|
-
TextareaEditor: withCtx(({ row:
|
|
2591
|
-
createVNode(unref(
|
|
2592
|
-
row:
|
|
2593
|
-
column:
|
|
2673
|
+
TextareaEditor: withCtx(({ row: f, column: p }) => [
|
|
2674
|
+
createVNode(unref(W), {
|
|
2675
|
+
row: f,
|
|
2676
|
+
column: p,
|
|
2594
2677
|
"grid-ref": o.value
|
|
2595
2678
|
}, null, 8, ["row", "column", "grid-ref"])
|
|
2596
2679
|
]),
|
|
2597
|
-
SelectEditor: withCtx(({ row:
|
|
2598
|
-
createVNode(unref(
|
|
2599
|
-
row:
|
|
2600
|
-
column:
|
|
2680
|
+
SelectEditor: withCtx(({ row: f, column: p }) => [
|
|
2681
|
+
createVNode(unref(q), {
|
|
2682
|
+
row: f,
|
|
2683
|
+
column: p,
|
|
2601
2684
|
"grid-ref": o.value
|
|
2602
2685
|
}, null, 8, ["row", "column", "grid-ref"])
|
|
2603
2686
|
]),
|
|
2604
|
-
SelectMultipleEditor: withCtx(({ row:
|
|
2605
|
-
createVNode(unref(
|
|
2606
|
-
row:
|
|
2607
|
-
column:
|
|
2687
|
+
SelectMultipleEditor: withCtx(({ row: f, column: p }) => [
|
|
2688
|
+
createVNode(unref(J), {
|
|
2689
|
+
row: f,
|
|
2690
|
+
column: p,
|
|
2608
2691
|
"grid-ref": o.value
|
|
2609
2692
|
}, null, 8, ["row", "column", "grid-ref"])
|
|
2610
2693
|
]),
|
|
2611
|
-
TreeSelectEditor: withCtx(({ row:
|
|
2612
|
-
createVNode(unref(
|
|
2613
|
-
row:
|
|
2614
|
-
column:
|
|
2694
|
+
TreeSelectEditor: withCtx(({ row: f, column: p }) => [
|
|
2695
|
+
createVNode(unref(L), {
|
|
2696
|
+
row: f,
|
|
2697
|
+
column: p,
|
|
2615
2698
|
"grid-ref": o.value
|
|
2616
2699
|
}, null, 8, ["row", "column", "grid-ref"])
|
|
2617
2700
|
]),
|
|
2618
|
-
TreeMultipleSelectEditor: withCtx(({ row:
|
|
2619
|
-
createVNode(unref(
|
|
2620
|
-
row:
|
|
2621
|
-
column:
|
|
2701
|
+
TreeMultipleSelectEditor: withCtx(({ row: f, column: p }) => [
|
|
2702
|
+
createVNode(unref(G), {
|
|
2703
|
+
row: f,
|
|
2704
|
+
column: p,
|
|
2622
2705
|
"grid-ref": o.value
|
|
2623
2706
|
}, null, 8, ["row", "column", "grid-ref"])
|
|
2624
2707
|
]),
|
|
2625
|
-
DatePickerEditor: withCtx(({ row:
|
|
2626
|
-
createVNode(unref(
|
|
2627
|
-
row:
|
|
2628
|
-
column:
|
|
2708
|
+
DatePickerEditor: withCtx(({ row: f, column: p }) => [
|
|
2709
|
+
createVNode(unref(K), {
|
|
2710
|
+
row: f,
|
|
2711
|
+
column: p,
|
|
2629
2712
|
"grid-ref": o.value
|
|
2630
2713
|
}, null, 8, ["row", "column", "grid-ref"])
|
|
2631
2714
|
]),
|
|
2632
|
-
InputNumberEditor: withCtx(({ row:
|
|
2633
|
-
createVNode(unref(
|
|
2634
|
-
row:
|
|
2635
|
-
column:
|
|
2715
|
+
InputNumberEditor: withCtx(({ row: f, column: p }) => [
|
|
2716
|
+
createVNode(unref(Q), {
|
|
2717
|
+
row: f,
|
|
2718
|
+
column: p,
|
|
2636
2719
|
"grid-ref": o.value
|
|
2637
2720
|
}, null, 8, ["row", "column", "grid-ref"])
|
|
2638
2721
|
]),
|
|
2639
|
-
SelectRemoteEditor: withCtx(({ row:
|
|
2640
|
-
createVNode(unref(
|
|
2641
|
-
row:
|
|
2642
|
-
column:
|
|
2722
|
+
SelectRemoteEditor: withCtx(({ row: f, column: p }) => [
|
|
2723
|
+
createVNode(unref(X), {
|
|
2724
|
+
row: f,
|
|
2725
|
+
column: p,
|
|
2643
2726
|
"grid-ref": o.value,
|
|
2644
|
-
onRemoteMethod:
|
|
2727
|
+
onRemoteMethod: fe
|
|
2645
2728
|
}, null, 8, ["row", "column", "grid-ref"])
|
|
2646
2729
|
]),
|
|
2647
|
-
tableSelect: withCtx(({ row:
|
|
2730
|
+
tableSelect: withCtx(({ row: f, column: p }) => [
|
|
2648
2731
|
createElementVNode("div", _hoisted_2$2, [
|
|
2649
2732
|
createVNode(unref(HrTableSelect), {
|
|
2650
|
-
modelValue: p
|
|
2651
|
-
"onUpdate:modelValue": (
|
|
2652
|
-
columns:
|
|
2653
|
-
onRemoteMethod: (
|
|
2654
|
-
onChange: (
|
|
2655
|
-
width:
|
|
2733
|
+
modelValue: f[p.field],
|
|
2734
|
+
"onUpdate:modelValue": (b) => f[p.field] = b,
|
|
2735
|
+
columns: p.params.tableSelectColumns || [],
|
|
2736
|
+
onRemoteMethod: (b) => se(b, p, f),
|
|
2737
|
+
onChange: (b) => de({ change: b, row: f, column: p }),
|
|
2738
|
+
width: p.params.tableSelectWidth
|
|
2656
2739
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "columns", "onRemoteMethod", "onChange", "width"])
|
|
2657
2740
|
])
|
|
2658
2741
|
]),
|
|
2659
2742
|
pager: withCtx(() => [
|
|
2660
2743
|
createVNode(_sfc_main$3, {
|
|
2661
2744
|
pagination: n.pagination,
|
|
2662
|
-
gridOptions:
|
|
2663
|
-
onPageChange:
|
|
2664
|
-
onRefresh:
|
|
2745
|
+
gridOptions: Y.value,
|
|
2746
|
+
onPageChange: re,
|
|
2747
|
+
onRefresh: ae
|
|
2665
2748
|
}, null, 8, ["pagination", "gridOptions"])
|
|
2666
2749
|
]),
|
|
2667
2750
|
_: 1
|
|
2668
|
-
}, 16)
|
|
2751
|
+
}, 16, ["class"])
|
|
2669
2752
|
]));
|
|
2670
2753
|
}
|
|
2671
|
-
}), Table = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-
|
|
2754
|
+
}), Table = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-6bf24b59"]]);
|
|
2672
2755
|
VxeUI.setConfig({
|
|
2673
2756
|
size: "small",
|
|
2674
2757
|
table: {
|
|
@@ -2706,17 +2789,17 @@ const HrTable = withInstall(Table), _hoisted_1$1 = { class: "remote-table" }, _h
|
|
|
2706
2789
|
modelModifiers: {}
|
|
2707
2790
|
}),
|
|
2708
2791
|
emits: /* @__PURE__ */ mergeModels(["change"], ["update:modelValue"]),
|
|
2709
|
-
setup(n, { emit:
|
|
2710
|
-
const e = useModel(n, "modelValue"), r = ref(), c =
|
|
2711
|
-
return watch(() => n.highlight, (
|
|
2792
|
+
setup(n, { emit: l }) {
|
|
2793
|
+
const e = useModel(n, "modelValue"), r = ref(), c = l, o = (t) => t ? `${Number(t) ? t + "px" : t}` : "150px";
|
|
2794
|
+
return watch(() => n.highlight, (t) => {
|
|
2712
2795
|
var a;
|
|
2713
|
-
return (a = r.value.querySelector(`[index="${
|
|
2714
|
-
}), (
|
|
2796
|
+
return (a = r.value.querySelector(`[index="${t}"]`)) == null ? void 0 : a.scrollIntoView({ block: "center", behavior: "smooth" });
|
|
2797
|
+
}), (t, a) => (openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
2715
2798
|
createElementVNode("table", null, [
|
|
2716
2799
|
createElementVNode("thead", null, [
|
|
2717
2800
|
createElementVNode("tr", null, [
|
|
2718
2801
|
a[0] || (a[0] = createElementVNode("th", { class: "w[50px]" }, "序号", -1)),
|
|
2719
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(
|
|
2802
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(t.columns, (u) => (openBlock(), createElementBlock("th", {
|
|
2720
2803
|
style: normalizeStyle({ width: o(u.width) })
|
|
2721
2804
|
}, toDisplayString(u.title), 5))), 256))
|
|
2722
2805
|
])
|
|
@@ -2726,20 +2809,20 @@ const HrTable = withInstall(Table), _hoisted_1$1 = { class: "remote-table" }, _h
|
|
|
2726
2809
|
ref: r
|
|
2727
2810
|
}, [
|
|
2728
2811
|
(openBlock(!0), createElementBlock(Fragment, null, renderList(e.value, (u, s) => (openBlock(), createElementBlock("tr", {
|
|
2729
|
-
class: normalizeClass({ zebra: s % 2 != 0, highlight:
|
|
2812
|
+
class: normalizeClass({ zebra: s % 2 != 0, highlight: t.highlight === s }),
|
|
2730
2813
|
onClick: (i) => c("change", u),
|
|
2731
2814
|
index: s
|
|
2732
2815
|
}, [
|
|
2733
2816
|
createElementVNode("td", _hoisted_3, toDisplayString(s + 1), 1),
|
|
2734
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(
|
|
2817
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(t.columns, (i) => (openBlock(), createElementBlock("td", null, toDisplayString(u[i.field]), 1))), 256))
|
|
2735
2818
|
], 10, _hoisted_2$1))), 256))
|
|
2736
2819
|
], 512)
|
|
2737
2820
|
]),
|
|
2738
|
-
withDirectives(createElementVNode("div", { class: "nothing" }, toDisplayString(
|
|
2821
|
+
withDirectives(createElementVNode("div", { class: "nothing" }, toDisplayString(t.loading ? "" : "无数据"), 513), [
|
|
2739
2822
|
[vShow, !e.value.length]
|
|
2740
2823
|
]),
|
|
2741
2824
|
withDirectives(createElementVNode("div", _hoisted_4, null, 512), [
|
|
2742
|
-
[vShow,
|
|
2825
|
+
[vShow, t.loading]
|
|
2743
2826
|
])
|
|
2744
2827
|
]));
|
|
2745
2828
|
}
|
|
@@ -2754,26 +2837,26 @@ const HrTable = withInstall(Table), _hoisted_1$1 = { class: "remote-table" }, _h
|
|
|
2754
2837
|
modelModifiers: {}
|
|
2755
2838
|
}),
|
|
2756
2839
|
emits: /* @__PURE__ */ mergeModels(["remote-method", "change"], ["update:modelValue"]),
|
|
2757
|
-
setup(n, { emit:
|
|
2840
|
+
setup(n, { emit: l }) {
|
|
2758
2841
|
const e = reactive({
|
|
2759
2842
|
query: "",
|
|
2760
2843
|
tableData: [],
|
|
2761
2844
|
loading: !1
|
|
2762
|
-
}), r = ref(), c = ref(), o = ref(!1),
|
|
2845
|
+
}), r = ref(), c = ref(), o = ref(!1), t = ref(-1), a = reactive({ x: 0, y: 0, w: 0 }), u = useModel(n, "modelValue"), s = l, i = () => s("remote-method", e), d = () => {
|
|
2763
2846
|
o.value = !0, s("remote-method", e), m();
|
|
2764
2847
|
}, m = async () => {
|
|
2765
2848
|
if (!o.value) return;
|
|
2766
|
-
const C = (
|
|
2767
|
-
a.y = innerHeight -
|
|
2768
|
-
const
|
|
2769
|
-
a.x = innerWidth -
|
|
2849
|
+
const C = (R) => Number(R) ? R + "px" : R, E = r.value.getBoundingClientRect();
|
|
2850
|
+
a.y = innerHeight - E.y < E.y ? E.y - E.height - 280 : E.y + E.height + 5, a.w = n.width ? C(n.width) : E.width < 300 ? "300px" : E.width + "px", await nextTick();
|
|
2851
|
+
const F = c.value.$el.offsetWidth;
|
|
2852
|
+
a.x = innerWidth - E.x > F ? E.x : E.x + E.width - F;
|
|
2770
2853
|
};
|
|
2771
|
-
let
|
|
2772
|
-
const
|
|
2773
|
-
|
|
2774
|
-
},
|
|
2775
|
-
if (
|
|
2776
|
-
const C = e.tableData[
|
|
2854
|
+
let g = !0;
|
|
2855
|
+
const k = () => g && (o.value = !1), v = () => (g = !1, setTimeout(() => g = !0, 16)), y = () => g && r.value.focus(), w = (C) => {
|
|
2856
|
+
v(), s("change", C), o.value = !1;
|
|
2857
|
+
}, V = () => t.value !== -1 && t.value--, $ = () => t.value < e.tableData.length && t.value++, j = () => {
|
|
2858
|
+
if (t.value == -1) return;
|
|
2859
|
+
const C = e.tableData[t.value];
|
|
2777
2860
|
s("change", C), r.value.blur();
|
|
2778
2861
|
};
|
|
2779
2862
|
return watch(() => e.query, (C) => {
|
|
@@ -2781,19 +2864,19 @@ const HrTable = withInstall(Table), _hoisted_1$1 = { class: "remote-table" }, _h
|
|
|
2781
2864
|
}), watch(() => u.value, (C) => {
|
|
2782
2865
|
C !== e.query && (e.query = C);
|
|
2783
2866
|
}), effect(() => {
|
|
2784
|
-
e.query, o.value,
|
|
2785
|
-
}), effect(() => !o.value && (e.tableData = [])), document.addEventListener("scroll", m), (C,
|
|
2867
|
+
e.query, o.value, t.value = -1;
|
|
2868
|
+
}), effect(() => !o.value && (e.tableData = [])), document.addEventListener("scroll", m), (C, E) => (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
2786
2869
|
withDirectives(createElementVNode("input", {
|
|
2787
2870
|
ref_key: "input",
|
|
2788
2871
|
ref: r,
|
|
2789
|
-
"onUpdate:modelValue":
|
|
2872
|
+
"onUpdate:modelValue": E[0] || (E[0] = (F) => e.query = F),
|
|
2790
2873
|
onInput: i,
|
|
2791
2874
|
onFocus: d,
|
|
2792
|
-
onBlur:
|
|
2875
|
+
onBlur: k,
|
|
2793
2876
|
onKeydown: [
|
|
2794
|
-
withKeys(
|
|
2795
|
-
withKeys(
|
|
2796
|
-
withKeys(withModifiers(
|
|
2877
|
+
withKeys(V, ["up"]),
|
|
2878
|
+
withKeys($, ["down"]),
|
|
2879
|
+
withKeys(withModifiers(j, ["prevent"]), ["enter"])
|
|
2797
2880
|
]
|
|
2798
2881
|
}, null, 40, _hoisted_2), [
|
|
2799
2882
|
[vModelText, e.query]
|
|
@@ -2803,13 +2886,13 @@ const HrTable = withInstall(Table), _hoisted_1$1 = { class: "remote-table" }, _h
|
|
|
2803
2886
|
ref_key: "table",
|
|
2804
2887
|
ref: c,
|
|
2805
2888
|
modelValue: e.tableData,
|
|
2806
|
-
"onUpdate:modelValue":
|
|
2889
|
+
"onUpdate:modelValue": E[1] || (E[1] = (F) => e.tableData = F),
|
|
2807
2890
|
loading: e.loading,
|
|
2808
|
-
highlight:
|
|
2891
|
+
highlight: t.value,
|
|
2809
2892
|
columns: C.columns,
|
|
2810
|
-
onMousedown:
|
|
2811
|
-
onClick:
|
|
2812
|
-
onChange:
|
|
2893
|
+
onMousedown: v,
|
|
2894
|
+
onClick: y,
|
|
2895
|
+
onChange: w,
|
|
2813
2896
|
style: normalizeStyle({ top: a.y + "px", left: a.x + "px", width: a.w })
|
|
2814
2897
|
}, null, 8, ["modelValue", "loading", "highlight", "columns", "style"])) : createCommentVNode("", !0)
|
|
2815
2898
|
]));
|