gzhr-ui 1.1.13 → 1.1.15
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-Bgvs7lgM.mjs} +1256 -1016
- 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/composables/useFixedColumnPanel.d.ts +13 -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 +34 -9
- 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,61 +12,61 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
emits: ["FilterSearch"],
|
|
15
|
-
setup(
|
|
16
|
-
const e =
|
|
17
|
-
var
|
|
18
|
-
const
|
|
19
|
-
return Array.isArray(
|
|
15
|
+
setup(a, { emit: l }) {
|
|
16
|
+
const e = a, r = l, i = ref(""), n = ref(""), t = ref(!1), o = ref(), u = ref(), d = ref(), c = computed(() => {
|
|
17
|
+
var k, w;
|
|
18
|
+
const h = ((w = (k = e.column.filters) == null ? void 0 : k[0]) == null ? void 0 : w.data) || [];
|
|
19
|
+
return Array.isArray(h) && h.length === 2 && h[0] && h[1] ? `${h[0]} 至 ${h[1]}` : "";
|
|
20
20
|
});
|
|
21
21
|
onMounted(() => {
|
|
22
|
-
var
|
|
23
|
-
const
|
|
24
|
-
Array.isArray(
|
|
22
|
+
var k, w;
|
|
23
|
+
const h = ((w = (k = e.column.filters) == null ? void 0 : k[0]) == null ? void 0 : w.data) || [];
|
|
24
|
+
Array.isArray(h) && h.length === 2 && (i.value = h[0] || "", n.value = h[1] || ""), document.addEventListener("click", s);
|
|
25
25
|
}), onBeforeUnmount(() => {
|
|
26
|
-
document.removeEventListener("click",
|
|
26
|
+
document.removeEventListener("click", s);
|
|
27
27
|
});
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
},
|
|
31
|
-
var
|
|
32
|
-
if (!
|
|
33
|
-
const
|
|
34
|
-
|
|
28
|
+
const f = () => {
|
|
29
|
+
t.value = !t.value;
|
|
30
|
+
}, s = (h) => {
|
|
31
|
+
var j, R;
|
|
32
|
+
if (!t.value) return;
|
|
33
|
+
const k = h.target, w = d.value, E = (R = (j = u.value) == null ? void 0 : j.popperRef) == null ? void 0 : R.contentRef;
|
|
34
|
+
w && w.contains(k) || E && E.contains(k) || (t.value = !1);
|
|
35
35
|
};
|
|
36
36
|
function _() {
|
|
37
|
-
if (!
|
|
37
|
+
if (!i.value && !n.value)
|
|
38
38
|
e.column.filters[0].data = [];
|
|
39
|
-
else if (!
|
|
39
|
+
else if (!i.value || !n.value) {
|
|
40
40
|
layer != null && layer.msg && layer.msg("请选择完整的时间范围");
|
|
41
41
|
return;
|
|
42
42
|
} else
|
|
43
|
-
e.column.filters[0].data = [
|
|
44
|
-
|
|
43
|
+
e.column.filters[0].data = [i.value, n.value];
|
|
44
|
+
t.value = !1, r("FilterSearch", e.column);
|
|
45
45
|
}
|
|
46
46
|
function y() {
|
|
47
|
-
|
|
47
|
+
i.value = "", n.value = "", e.column.filters[0].data = [];
|
|
48
48
|
}
|
|
49
|
-
return (
|
|
49
|
+
return (h, k) => (openBlock(), createElementBlock("div", {
|
|
50
50
|
class: "size-full",
|
|
51
|
-
title:
|
|
51
|
+
title: c.value,
|
|
52
52
|
ref_key: "wrapperRef",
|
|
53
|
-
ref:
|
|
53
|
+
ref: d
|
|
54
54
|
}, [
|
|
55
55
|
createVNode(unref(ElInput), {
|
|
56
56
|
ref_key: "inputRef",
|
|
57
|
-
ref:
|
|
58
|
-
value:
|
|
57
|
+
ref: o,
|
|
58
|
+
value: c.value,
|
|
59
59
|
readonly: "",
|
|
60
|
-
onClick:
|
|
60
|
+
onClick: f
|
|
61
61
|
}, null, 8, ["value"]),
|
|
62
62
|
createVNode(unref(ElPopover), {
|
|
63
63
|
ref_key: "popoverRef",
|
|
64
64
|
ref: u,
|
|
65
|
-
"virtual-ref":
|
|
65
|
+
"virtual-ref": o.value,
|
|
66
66
|
"virtual-triggering": "",
|
|
67
67
|
trigger: "manual",
|
|
68
|
-
visible:
|
|
69
|
-
"onUpdate:visible":
|
|
68
|
+
visible: t.value,
|
|
69
|
+
"onUpdate:visible": k[2] || (k[2] = (w) => t.value = w),
|
|
70
70
|
"hide-after": 0,
|
|
71
71
|
width: "140",
|
|
72
72
|
"popper-class": "date-filter-popper"
|
|
@@ -74,8 +74,8 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
74
74
|
default: withCtx(() => [
|
|
75
75
|
createElementVNode("div", _hoisted_2$7, [
|
|
76
76
|
createVNode(unref(ElDatePicker), {
|
|
77
|
-
modelValue:
|
|
78
|
-
"onUpdate:modelValue":
|
|
77
|
+
modelValue: i.value,
|
|
78
|
+
"onUpdate:modelValue": k[0] || (k[0] = (w) => i.value = w),
|
|
79
79
|
type: "date",
|
|
80
80
|
"value-format": "YYYY-MM-DD",
|
|
81
81
|
placeholder: "开始日期",
|
|
@@ -84,8 +84,8 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
84
84
|
style: { width: "100%" }
|
|
85
85
|
}, null, 8, ["modelValue"]),
|
|
86
86
|
createVNode(unref(ElDatePicker), {
|
|
87
|
-
modelValue:
|
|
88
|
-
"onUpdate:modelValue":
|
|
87
|
+
modelValue: n.value,
|
|
88
|
+
"onUpdate:modelValue": k[1] || (k[1] = (w) => n.value = w),
|
|
89
89
|
type: "date",
|
|
90
90
|
"value-format": "YYYY-MM-DD",
|
|
91
91
|
placeholder: "结束日期",
|
|
@@ -100,7 +100,7 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
100
100
|
class: "btn-confirm",
|
|
101
101
|
onClick: _
|
|
102
102
|
}, {
|
|
103
|
-
default: withCtx(() =>
|
|
103
|
+
default: withCtx(() => k[3] || (k[3] = [
|
|
104
104
|
createTextVNode(" 确认 ")
|
|
105
105
|
])),
|
|
106
106
|
_: 1
|
|
@@ -110,7 +110,7 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
110
110
|
class: "btn-reset",
|
|
111
111
|
onClick: y
|
|
112
112
|
}, {
|
|
113
|
-
default: withCtx(() =>
|
|
113
|
+
default: withCtx(() => k[4] || (k[4] = [
|
|
114
114
|
createTextVNode(" 重置 ")
|
|
115
115
|
])),
|
|
116
116
|
_: 1
|
|
@@ -131,31 +131,31 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
131
131
|
}
|
|
132
132
|
},
|
|
133
133
|
emits: ["FilterSearch"],
|
|
134
|
-
setup(
|
|
135
|
-
const e =
|
|
136
|
-
var
|
|
137
|
-
(
|
|
138
|
-
}, u =
|
|
139
|
-
function
|
|
134
|
+
setup(a, { emit: l }) {
|
|
135
|
+
const e = a, r = ref([]), i = computed(() => e.column.filters[0].data.length ? e.column.filters[0].data.map((c) => c ? "是" : "否").join(",") : ""), n = ref(), t = ref(), o = () => {
|
|
136
|
+
var c, f;
|
|
137
|
+
(f = (c = unref(t).popperRef) == null ? void 0 : c.delayHide) == null || f.call(c);
|
|
138
|
+
}, u = l;
|
|
139
|
+
function d() {
|
|
140
140
|
r.value.length ? e.column.filters[0].data = [...r.value] : e.column.filters[0].data = [];
|
|
141
141
|
}
|
|
142
|
-
return (
|
|
142
|
+
return (c, f) => (openBlock(), createElementBlock("div", {
|
|
143
143
|
class: "size-full",
|
|
144
|
-
title:
|
|
144
|
+
title: i.value
|
|
145
145
|
}, [
|
|
146
146
|
withDirectives(createVNode(unref(ElInput), {
|
|
147
147
|
ref_key: "inputRef",
|
|
148
|
-
ref:
|
|
149
|
-
value:
|
|
148
|
+
ref: n,
|
|
149
|
+
value: i.value,
|
|
150
150
|
readonly: "",
|
|
151
|
-
onKeyup:
|
|
151
|
+
onKeyup: f[0] || (f[0] = withKeys((s) => u("FilterSearch", a.column), ["enter"]))
|
|
152
152
|
}, null, 8, ["value"]), [
|
|
153
|
-
[unref(ClickOutside),
|
|
153
|
+
[unref(ClickOutside), o]
|
|
154
154
|
]),
|
|
155
155
|
createVNode(unref(ElPopover), {
|
|
156
156
|
ref_key: "popoverRef",
|
|
157
|
-
ref:
|
|
158
|
-
"virtual-ref":
|
|
157
|
+
ref: t,
|
|
158
|
+
"virtual-ref": n.value,
|
|
159
159
|
trigger: "click",
|
|
160
160
|
"virtual-triggering": "",
|
|
161
161
|
"hide-after": 0
|
|
@@ -164,8 +164,8 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
164
164
|
createVNode(unref(ElCheckboxGroup), {
|
|
165
165
|
class: "flex flex-col",
|
|
166
166
|
modelValue: r.value,
|
|
167
|
-
"onUpdate:modelValue":
|
|
168
|
-
onChange:
|
|
167
|
+
"onUpdate:modelValue": f[1] || (f[1] = (s) => r.value = s),
|
|
168
|
+
onChange: d
|
|
169
169
|
}, {
|
|
170
170
|
default: withCtx(() => [
|
|
171
171
|
createVNode(unref(ElCheckbox), {
|
|
@@ -193,69 +193,69 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
193
193
|
}
|
|
194
194
|
},
|
|
195
195
|
emits: ["FilterSearch"],
|
|
196
|
-
setup(
|
|
197
|
-
const e =
|
|
196
|
+
setup(a, { emit: l }) {
|
|
197
|
+
const e = a, r = ref([]);
|
|
198
198
|
ref("");
|
|
199
|
-
const
|
|
200
|
-
var
|
|
201
|
-
return (
|
|
202
|
-
}).join(",") : ""),
|
|
203
|
-
var
|
|
204
|
-
(
|
|
205
|
-
}, u =
|
|
206
|
-
function
|
|
199
|
+
const i = computed(() => e.column.filters && e.column.filters[0].data.length ? e.column.filters[0].data.map((c) => {
|
|
200
|
+
var f;
|
|
201
|
+
return (f = e.column.params.options.find((s) => s.value === c)) == null ? void 0 : f.label;
|
|
202
|
+
}).join(",") : ""), n = ref(), t = ref(), o = () => {
|
|
203
|
+
var c, f;
|
|
204
|
+
(f = (c = unref(t).popperRef) == null ? void 0 : c.delayHide) == null || f.call(c);
|
|
205
|
+
}, u = l;
|
|
206
|
+
function d() {
|
|
207
207
|
r.value.length ? e.column.filters[0].data = [...r.value] : e.column.filters[0].data = [];
|
|
208
208
|
}
|
|
209
|
-
return (
|
|
209
|
+
return (c, f) => (openBlock(), createElementBlock("div", {
|
|
210
210
|
class: "size-full",
|
|
211
|
-
title:
|
|
211
|
+
title: i.value
|
|
212
212
|
}, [
|
|
213
213
|
withDirectives(createVNode(unref(ElInput), {
|
|
214
214
|
ref_key: "inputRef",
|
|
215
|
-
ref:
|
|
216
|
-
value:
|
|
215
|
+
ref: n,
|
|
216
|
+
value: i.value,
|
|
217
217
|
readonly: "",
|
|
218
|
-
onKeyup:
|
|
218
|
+
onKeyup: f[0] || (f[0] = withKeys((s) => u("FilterSearch", a.column), ["enter"]))
|
|
219
219
|
}, null, 8, ["value"]), [
|
|
220
|
-
[unref(ClickOutside),
|
|
220
|
+
[unref(ClickOutside), o]
|
|
221
221
|
]),
|
|
222
222
|
createVNode(unref(ElPopover), {
|
|
223
223
|
ref_key: "popoverRef",
|
|
224
|
-
ref:
|
|
225
|
-
"virtual-ref":
|
|
224
|
+
ref: t,
|
|
225
|
+
"virtual-ref": n.value,
|
|
226
226
|
trigger: "click",
|
|
227
227
|
"virtual-triggering": "",
|
|
228
228
|
"hide-after": 0
|
|
229
229
|
}, {
|
|
230
230
|
default: withCtx(() => [
|
|
231
|
-
|
|
231
|
+
a.column.params.FieldType === "check" ? (openBlock(), createBlock(unref(ElCheckboxGroup), {
|
|
232
232
|
key: 0,
|
|
233
233
|
class: "flex flex-col",
|
|
234
234
|
modelValue: r.value,
|
|
235
|
-
"onUpdate:modelValue":
|
|
236
|
-
onChange:
|
|
235
|
+
"onUpdate:modelValue": f[1] || (f[1] = (s) => r.value = s),
|
|
236
|
+
onChange: d
|
|
237
237
|
}, {
|
|
238
238
|
default: withCtx(() => [
|
|
239
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(
|
|
240
|
-
key:
|
|
241
|
-
label:
|
|
242
|
-
value:
|
|
239
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(a.column.params.options, (s) => (openBlock(), createBlock(unref(ElCheckbox), {
|
|
240
|
+
key: s.value,
|
|
241
|
+
label: s.label,
|
|
242
|
+
value: s.value
|
|
243
243
|
}, null, 8, ["label", "value"]))), 128))
|
|
244
244
|
]),
|
|
245
245
|
_: 1
|
|
246
246
|
}, 8, ["modelValue"])) : createCommentVNode("", !0),
|
|
247
|
-
|
|
247
|
+
a.column.params.FieldType === "select" ? (openBlock(), createBlock(unref(ElCheckboxGroup), {
|
|
248
248
|
key: 1,
|
|
249
249
|
class: "flex flex-col",
|
|
250
250
|
modelValue: r.value,
|
|
251
|
-
"onUpdate:modelValue":
|
|
252
|
-
onChange:
|
|
251
|
+
"onUpdate:modelValue": f[2] || (f[2] = (s) => r.value = s),
|
|
252
|
+
onChange: d
|
|
253
253
|
}, {
|
|
254
254
|
default: withCtx(() => [
|
|
255
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(
|
|
256
|
-
key:
|
|
257
|
-
label:
|
|
258
|
-
value:
|
|
255
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(a.column.params.options, (s) => (openBlock(), createBlock(unref(ElCheckbox), {
|
|
256
|
+
key: s.value,
|
|
257
|
+
label: s.label,
|
|
258
|
+
value: s.value
|
|
259
259
|
}, null, 8, ["label", "value"]))), 128))
|
|
260
260
|
]),
|
|
261
261
|
_: 1
|
|
@@ -274,35 +274,35 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
274
274
|
}
|
|
275
275
|
},
|
|
276
276
|
emits: ["FilterSearch"],
|
|
277
|
-
setup(
|
|
278
|
-
const e =
|
|
277
|
+
setup(a, { emit: l }) {
|
|
278
|
+
const e = a, r = ref([]), i = ref(null), n = 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"
|
|
282
282
|
});
|
|
283
283
|
if (!e.column.params.TreeData) {
|
|
284
|
-
const { options:
|
|
285
|
-
e.column.params.TreeData = buildTree(deepClone(
|
|
284
|
+
const { options: d, ParentNodeField: c, NodeKeyField: f } = e.column.params;
|
|
285
|
+
e.column.params.TreeData = buildTree(deepClone(d), c, f);
|
|
286
286
|
}
|
|
287
287
|
onMounted(() => {
|
|
288
288
|
r.value = e.column.params.TreeData;
|
|
289
289
|
});
|
|
290
|
-
const
|
|
290
|
+
const o = l;
|
|
291
291
|
function u() {
|
|
292
|
-
|
|
292
|
+
i.value ? e.column.filters[0].data = [i.value] : e.column.filters[0].data = [];
|
|
293
293
|
}
|
|
294
|
-
return (
|
|
294
|
+
return (d, c) => (openBlock(), createBlock(unref(ElTreeSelect), {
|
|
295
295
|
clearable: "",
|
|
296
|
-
modelValue:
|
|
297
|
-
"onUpdate:modelValue":
|
|
296
|
+
modelValue: i.value,
|
|
297
|
+
"onUpdate:modelValue": c[0] || (c[0] = (f) => i.value = f),
|
|
298
298
|
data: r.value,
|
|
299
299
|
"render-after-expand": !1,
|
|
300
300
|
placeholder: "",
|
|
301
301
|
onChange: u,
|
|
302
|
-
multiple:
|
|
303
|
-
"show-checkbox":
|
|
304
|
-
props:
|
|
305
|
-
onKeyup:
|
|
302
|
+
multiple: n.value,
|
|
303
|
+
"show-checkbox": n.value,
|
|
304
|
+
props: t.value,
|
|
305
|
+
onKeyup: c[1] || (c[1] = withKeys((f) => o("FilterSearch", a.column), ["enter"]))
|
|
306
306
|
}, null, 8, ["modelValue", "data", "multiple", "show-checkbox", "props"]));
|
|
307
307
|
}
|
|
308
308
|
}, _sfc_main$v = {
|
|
@@ -314,40 +314,40 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
314
314
|
}
|
|
315
315
|
},
|
|
316
316
|
emits: ["FilterSearch"],
|
|
317
|
-
setup(
|
|
318
|
-
const e =
|
|
317
|
+
setup(a, { emit: l }) {
|
|
318
|
+
const e = a, r = ref([]), i = ref([]), n = ref({
|
|
319
319
|
label: e.column.params.NodeNameField || "label",
|
|
320
320
|
value: e.column.params.NodeValueField || "value",
|
|
321
321
|
children: "children"
|
|
322
322
|
});
|
|
323
323
|
if (!e.column.params.TreeData) {
|
|
324
|
-
const { options:
|
|
325
|
-
e.column.params.TreeData = buildTree(deepClone(
|
|
324
|
+
const { options: d, ParentNodeField: c, NodeKeyField: f } = e.column.params;
|
|
325
|
+
e.column.params.TreeData = buildTree(deepClone(d), c, f);
|
|
326
326
|
}
|
|
327
327
|
onMounted(() => {
|
|
328
328
|
r.value = e.column.params.TreeData;
|
|
329
329
|
});
|
|
330
|
-
const
|
|
331
|
-
function
|
|
332
|
-
|
|
330
|
+
const t = l;
|
|
331
|
+
function o() {
|
|
332
|
+
i.value ? e.column.filters[0].data = i.value : e.column.filters[0].data = [];
|
|
333
333
|
}
|
|
334
|
-
function u(
|
|
335
|
-
cleanUpTreeFilterRows(),
|
|
334
|
+
function u(d) {
|
|
335
|
+
cleanUpTreeFilterRows(), t("FilterSearch", e.column);
|
|
336
336
|
}
|
|
337
|
-
return (
|
|
337
|
+
return (d, c) => (openBlock(), createBlock(unref(ElTreeSelect), {
|
|
338
338
|
"popper-class": "tree-filter-row",
|
|
339
339
|
clearable: "",
|
|
340
|
-
modelValue:
|
|
341
|
-
"onUpdate:modelValue":
|
|
340
|
+
modelValue: i.value,
|
|
341
|
+
"onUpdate:modelValue": c[0] || (c[0] = (f) => i.value = f),
|
|
342
342
|
data: r.value,
|
|
343
343
|
placeholder: "",
|
|
344
|
-
onChange:
|
|
344
|
+
onChange: o,
|
|
345
345
|
multiple: "",
|
|
346
346
|
"show-checkbox": "",
|
|
347
347
|
"collapse-tags": "",
|
|
348
348
|
"collapse-tags-tooltip": "",
|
|
349
349
|
onKeyup: withKeys(u, ["enter"]),
|
|
350
|
-
props:
|
|
350
|
+
props: n.value
|
|
351
351
|
}, null, 8, ["modelValue", "data", "props"]));
|
|
352
352
|
}
|
|
353
353
|
}, _hoisted_1$g = ["title"], _hoisted_2$6 = { class: "flex flex-col justify-center items-center gap2" }, _hoisted_3$4 = { class: "flex justify-between mt2" }, _sfc_main$u = {
|
|
@@ -359,12 +359,12 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
359
359
|
}
|
|
360
360
|
},
|
|
361
361
|
emits: ["FilterSearch"],
|
|
362
|
-
setup(
|
|
363
|
-
const e =
|
|
364
|
-
var
|
|
365
|
-
(
|
|
366
|
-
}, u =
|
|
367
|
-
function
|
|
362
|
+
setup(a, { emit: l }) {
|
|
363
|
+
const e = a, r = ref([null, null]), i = computed(() => e.column.filters && e.column.filters[0].data.length ? e.column.filters[0].data.join(" 至 ") : ""), n = ref(), t = ref(), o = () => {
|
|
364
|
+
var f, s;
|
|
365
|
+
(s = (f = unref(t).popperRef) == null ? void 0 : f.delayHide) == null || s.call(f);
|
|
366
|
+
}, u = l;
|
|
367
|
+
function d() {
|
|
368
368
|
if (!r.value[0] && !r.value[1])
|
|
369
369
|
e.column.filters[0].data = [];
|
|
370
370
|
else if (!r.value[0] || !r.value[1]) {
|
|
@@ -372,28 +372,28 @@ 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
|
-
function
|
|
377
|
+
function c() {
|
|
378
378
|
r.value = [null, null];
|
|
379
379
|
}
|
|
380
|
-
return (
|
|
380
|
+
return (f, s) => (openBlock(), createElementBlock("div", {
|
|
381
381
|
class: "size-full",
|
|
382
|
-
title:
|
|
382
|
+
title: i.value
|
|
383
383
|
}, [
|
|
384
384
|
withDirectives(createVNode(unref(ElInput), {
|
|
385
385
|
ref_key: "inputRef",
|
|
386
|
-
ref:
|
|
387
|
-
value:
|
|
386
|
+
ref: n,
|
|
387
|
+
value: i.value,
|
|
388
388
|
readonly: "",
|
|
389
|
-
onKeyup:
|
|
389
|
+
onKeyup: s[0] || (s[0] = withKeys((_) => u("FilterSearch", a.column), ["enter"]))
|
|
390
390
|
}, null, 8, ["value"]), [
|
|
391
|
-
[unref(ClickOutside),
|
|
391
|
+
[unref(ClickOutside), o]
|
|
392
392
|
]),
|
|
393
393
|
createVNode(unref(ElPopover), {
|
|
394
394
|
ref_key: "popoverRef",
|
|
395
|
-
ref:
|
|
396
|
-
"virtual-ref":
|
|
395
|
+
ref: t,
|
|
396
|
+
"virtual-ref": n.value,
|
|
397
397
|
trigger: "click",
|
|
398
398
|
"virtual-triggering": "",
|
|
399
399
|
"hide-after": 0
|
|
@@ -403,30 +403,30 @@ 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":
|
|
406
|
+
"onUpdate:modelValue": s[1] || (s[1] = (_) => r.value[0] = _)
|
|
407
407
|
}, null, 8, ["modelValue"]),
|
|
408
408
|
createVNode(unref(ElInputNumber), {
|
|
409
409
|
class: "w-full",
|
|
410
410
|
modelValue: r.value[1],
|
|
411
|
-
"onUpdate:modelValue":
|
|
411
|
+
"onUpdate:modelValue": s[2] || (s[2] = (_) => r.value[1] = _)
|
|
412
412
|
}, null, 8, ["modelValue"])
|
|
413
413
|
]),
|
|
414
414
|
createElementVNode("div", _hoisted_3$4, [
|
|
415
415
|
createVNode(unref(ElButton), {
|
|
416
416
|
size: "small",
|
|
417
417
|
type: "primary",
|
|
418
|
-
onClick:
|
|
418
|
+
onClick: d
|
|
419
419
|
}, {
|
|
420
|
-
default: withCtx(() =>
|
|
420
|
+
default: withCtx(() => s[3] || (s[3] = [
|
|
421
421
|
createTextVNode("确认")
|
|
422
422
|
])),
|
|
423
423
|
_: 1
|
|
424
424
|
}),
|
|
425
425
|
createVNode(unref(ElButton), {
|
|
426
426
|
size: "small",
|
|
427
|
-
onClick:
|
|
427
|
+
onClick: c
|
|
428
428
|
}, {
|
|
429
|
-
default: withCtx(() =>
|
|
429
|
+
default: withCtx(() => s[4] || (s[4] = [
|
|
430
430
|
createTextVNode("重置")
|
|
431
431
|
])),
|
|
432
432
|
_: 1
|
|
@@ -453,66 +453,66 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
453
453
|
}
|
|
454
454
|
},
|
|
455
455
|
emits: ["FilterSearch", "SortChange"],
|
|
456
|
-
setup(
|
|
457
|
-
const e =
|
|
458
|
-
let
|
|
456
|
+
setup(a, { emit: l }) {
|
|
457
|
+
const e = a, r = ref([]);
|
|
458
|
+
let i = ref(0);
|
|
459
459
|
onMounted(() => {
|
|
460
460
|
if (e.column.params.filter) {
|
|
461
461
|
const u = document.querySelector(`[colid=${e.column.id}]`);
|
|
462
|
-
useElementClientSize(u, ({ clientHeight:
|
|
463
|
-
|
|
462
|
+
useElementClientSize(u, ({ clientHeight: d }) => {
|
|
463
|
+
i.value = d <= 40 ? 65 : d;
|
|
464
464
|
});
|
|
465
465
|
} else
|
|
466
|
-
|
|
466
|
+
i.value = 23;
|
|
467
467
|
r.value = e.column.params.TreeData;
|
|
468
468
|
});
|
|
469
|
-
const
|
|
470
|
-
function
|
|
469
|
+
const n = l;
|
|
470
|
+
function t(u) {
|
|
471
471
|
if (u === "search") {
|
|
472
|
-
const
|
|
473
|
-
|
|
472
|
+
const d = e.gridRef.getColumns();
|
|
473
|
+
n("FilterSearch", e.column, d);
|
|
474
474
|
} else if (u === "clear") {
|
|
475
|
-
e.column.filters.forEach((
|
|
476
|
-
Array.isArray(
|
|
475
|
+
e.column.filters.forEach((c) => {
|
|
476
|
+
Array.isArray(c.data) ? c.data = [] : c.data = "";
|
|
477
477
|
});
|
|
478
|
-
const
|
|
479
|
-
|
|
478
|
+
const d = e.gridRef.getColumns();
|
|
479
|
+
n("FilterSearch", e.column, d);
|
|
480
480
|
} else if (u === "clearAll") {
|
|
481
|
-
const
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
Array.isArray(
|
|
481
|
+
const d = e.gridRef.getColumns();
|
|
482
|
+
d.forEach((c) => {
|
|
483
|
+
c.filters && c.filters.forEach((f) => {
|
|
484
|
+
Array.isArray(f.data) ? f.data = [] : f.data = "";
|
|
485
485
|
});
|
|
486
|
-
}),
|
|
486
|
+
}), n("FilterSearch", e.column, d);
|
|
487
487
|
}
|
|
488
488
|
}
|
|
489
|
-
function
|
|
490
|
-
var u,
|
|
491
|
-
(u = e.column.params) != null && u.IsVirtualField || ((
|
|
489
|
+
function o() {
|
|
490
|
+
var u, d;
|
|
491
|
+
(u = e.column.params) != null && u.IsVirtualField || ((d = e.column).params ?? (d.params = {}), e.column.params.sortStatus === "asc" ? e.column.params.sortStatus = "desc" : e.column.params.sortStatus === "desc" ? e.column.params.sortStatus = null : e.column.params.sortStatus = "asc", n("SortChange", e.column, e.gridRef.getColumns()));
|
|
492
492
|
}
|
|
493
|
-
return (u,
|
|
494
|
-
var
|
|
493
|
+
return (u, d) => {
|
|
494
|
+
var c, f, s;
|
|
495
495
|
return openBlock(), createElementBlock("div", {
|
|
496
496
|
class: "flex flex-col filter-header",
|
|
497
|
-
title:
|
|
498
|
-
style: normalizeStyle({ height: unref(
|
|
497
|
+
title: a.column.title,
|
|
498
|
+
style: normalizeStyle({ height: unref(i) ? unref(i) + "px" : void 0 })
|
|
499
499
|
}, [
|
|
500
500
|
createElementVNode("div", {
|
|
501
|
-
class: normalizeClass(["filter-title h-full lh-9 flex justify-center items-center gap-1", { "filter-title-border": (
|
|
502
|
-
onClick:
|
|
501
|
+
class: normalizeClass(["filter-title h-full lh-9 flex justify-center items-center gap-1", { "filter-title-border": (c = a.column.params) == null ? void 0 : c.filter }]),
|
|
502
|
+
onClick: o
|
|
503
503
|
}, [
|
|
504
504
|
createElementVNode("span", {
|
|
505
|
-
style: normalizeStyle({ color:
|
|
505
|
+
style: normalizeStyle({ color: a.column.params.Required ? "red" : "" }),
|
|
506
506
|
class: "whitespace-nowrap overflow-hidden text-ellipsis"
|
|
507
|
-
}, toDisplayString(
|
|
508
|
-
(
|
|
507
|
+
}, toDisplayString(a.column.title), 5),
|
|
508
|
+
(f = a.column.params) != null && f.sortable && ((s = a.column.params) != null && s.sortStatus) ? (openBlock(), createBlock(unref(ElIcon), { key: 0 }, {
|
|
509
509
|
default: withCtx(() => {
|
|
510
510
|
var _, y;
|
|
511
511
|
return [
|
|
512
|
-
((_ =
|
|
512
|
+
((_ = a.column.params) == null ? void 0 : _.sortStatus) === "asc" ? (openBlock(), createBlock(unref(HrIcon), {
|
|
513
513
|
key: 0,
|
|
514
514
|
icon: "ep:caret-top"
|
|
515
|
-
})) : ((y =
|
|
515
|
+
})) : ((y = a.column.params) == null ? void 0 : y.sortStatus) === "desc" ? (openBlock(), createBlock(unref(HrIcon), {
|
|
516
516
|
key: 1,
|
|
517
517
|
icon: "ep:caret-bottom"
|
|
518
518
|
})) : createCommentVNode("", !0)
|
|
@@ -521,61 +521,61 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
521
521
|
_: 1
|
|
522
522
|
})) : createCommentVNode("", !0)
|
|
523
523
|
], 2),
|
|
524
|
-
|
|
525
|
-
["radio_Table", "bool"].includes(
|
|
524
|
+
a.column.params.filter ? (openBlock(), createElementBlock("div", _hoisted_2$5, [
|
|
525
|
+
["radio_Table", "bool"].includes(a.column.params.FieldType) ? (openBlock(), createBlock(_sfc_main$y, {
|
|
526
526
|
key: 0,
|
|
527
|
-
column:
|
|
528
|
-
onFilterSearch:
|
|
529
|
-
}, null, 8, ["column"])) : ["select", "check"].includes(
|
|
527
|
+
column: a.column,
|
|
528
|
+
onFilterSearch: d[0] || (d[0] = (_) => t("search"))
|
|
529
|
+
}, null, 8, ["column"])) : ["select", "check"].includes(a.column.params.FieldType) ? (openBlock(), createBlock(_sfc_main$x, {
|
|
530
530
|
key: 1,
|
|
531
|
-
column:
|
|
532
|
-
onFilterSearch:
|
|
533
|
-
}, null, 8, ["column"])) :
|
|
531
|
+
column: a.column,
|
|
532
|
+
onFilterSearch: d[1] || (d[1] = (_) => t("search"))
|
|
533
|
+
}, null, 8, ["column"])) : a.column.params.FieldType === "date" ? (openBlock(), createBlock(FilterDate, {
|
|
534
534
|
key: 2,
|
|
535
|
-
column:
|
|
536
|
-
onFilterSearch:
|
|
537
|
-
}, null, 8, ["column"])) :
|
|
535
|
+
column: a.column,
|
|
536
|
+
onFilterSearch: d[2] || (d[2] = (_) => t("search"))
|
|
537
|
+
}, null, 8, ["column"])) : a.column.params.FieldType === "tree" ? (openBlock(), createBlock(_sfc_main$w, {
|
|
538
538
|
key: 3,
|
|
539
|
-
column:
|
|
540
|
-
onFilterSearch:
|
|
541
|
-
}, null, 8, ["column"])) :
|
|
539
|
+
column: a.column,
|
|
540
|
+
onFilterSearch: d[3] || (d[3] = (_) => t("search"))
|
|
541
|
+
}, null, 8, ["column"])) : a.column.params.FieldType === "TreeMultipleSelect" ? (openBlock(), createBlock(_sfc_main$v, {
|
|
542
542
|
key: 4,
|
|
543
|
-
column:
|
|
544
|
-
onFilterSearch:
|
|
545
|
-
}, null, 8, ["column"])) :
|
|
543
|
+
column: a.column,
|
|
544
|
+
onFilterSearch: d[4] || (d[4] = (_) => t("search"))
|
|
545
|
+
}, null, 8, ["column"])) : a.column.params.FieldType === "inputNumber" ? (openBlock(), createBlock(_sfc_main$u, {
|
|
546
546
|
key: 5,
|
|
547
|
-
column:
|
|
548
|
-
onFilterSearch:
|
|
549
|
-
}, null, 8, ["column"])) : (openBlock(!0), createElementBlock(Fragment, { key: 6 }, renderList(
|
|
547
|
+
column: a.column,
|
|
548
|
+
onFilterSearch: d[5] || (d[5] = (_) => t("search"))
|
|
549
|
+
}, null, 8, ["column"])) : (openBlock(!0), createElementBlock(Fragment, { key: 6 }, renderList(a.column.filters, (_, y) => (openBlock(), createBlock(unref(ElInput), {
|
|
550
550
|
key: y,
|
|
551
551
|
modelValue: _.data,
|
|
552
|
-
"onUpdate:modelValue": (
|
|
553
|
-
onKeyup:
|
|
554
|
-
disabled: ["colorPicker", "iconPicker", "progress"].includes(
|
|
552
|
+
"onUpdate:modelValue": (h) => _.data = h,
|
|
553
|
+
onKeyup: d[6] || (d[6] = withKeys((h) => t("search"), ["enter"])),
|
|
554
|
+
disabled: ["colorPicker", "iconPicker", "progress"].includes(a.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(() => [
|
|
563
563
|
createVNode(unref(ElDropdownMenu), null, {
|
|
564
564
|
default: withCtx(() => [
|
|
565
565
|
createVNode(unref(ElDropdownItem), { command: "search" }, {
|
|
566
|
-
default: withCtx(() =>
|
|
566
|
+
default: withCtx(() => d[7] || (d[7] = [
|
|
567
567
|
createTextVNode("执行查询")
|
|
568
568
|
])),
|
|
569
569
|
_: 1
|
|
570
570
|
}),
|
|
571
571
|
createVNode(unref(ElDropdownItem), { command: "clear" }, {
|
|
572
|
-
default: withCtx(() =>
|
|
572
|
+
default: withCtx(() => d[8] || (d[8] = [
|
|
573
573
|
createTextVNode("清除当前条件")
|
|
574
574
|
])),
|
|
575
575
|
_: 1
|
|
576
576
|
}),
|
|
577
577
|
createVNode(unref(ElDropdownItem), { command: "clearAll" }, {
|
|
578
|
-
default: withCtx(() =>
|
|
578
|
+
default: withCtx(() => d[9] || (d[9] = [
|
|
579
579
|
createTextVNode("清除所有条件")
|
|
580
580
|
])),
|
|
581
581
|
_: 1
|
|
@@ -623,16 +623,16 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
623
623
|
}
|
|
624
624
|
},
|
|
625
625
|
emits: ["change", "ActionClick", "ActionRenderBefore"],
|
|
626
|
-
setup(
|
|
627
|
-
const e =
|
|
626
|
+
setup(a, { emit: l }) {
|
|
627
|
+
const e = a;
|
|
628
628
|
let r = ref(
|
|
629
629
|
deepClone(e.column.params.LinkButton ? e.column.params.LinkButton : [])
|
|
630
630
|
);
|
|
631
|
-
const
|
|
631
|
+
const i = l;
|
|
632
632
|
watch(
|
|
633
633
|
() => e.row,
|
|
634
634
|
() => {
|
|
635
|
-
|
|
635
|
+
i("ActionRenderBefore", {
|
|
636
636
|
row: e.row,
|
|
637
637
|
column: e.column,
|
|
638
638
|
gridRef: e.gridRef,
|
|
@@ -644,20 +644,20 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
644
644
|
immediate: !0
|
|
645
645
|
}
|
|
646
646
|
);
|
|
647
|
-
function
|
|
648
|
-
|
|
649
|
-
btnInfo:
|
|
647
|
+
function n(t) {
|
|
648
|
+
i("ActionClick", {
|
|
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, o) => (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]",
|
|
659
659
|
link: "",
|
|
660
|
-
onClick: (
|
|
660
|
+
onClick: (d) => n(u)
|
|
661
661
|
}, {
|
|
662
662
|
default: withCtx(() => [
|
|
663
663
|
createTextVNode(toDisplayString(u.Name), 1)
|
|
@@ -690,22 +690,22 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
690
690
|
}
|
|
691
691
|
},
|
|
692
692
|
emits: ["change"],
|
|
693
|
-
setup(
|
|
694
|
-
const e =
|
|
693
|
+
setup(a, { emit: l }) {
|
|
694
|
+
const e = a, 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
|
|
699
|
-
function
|
|
700
|
-
|
|
698
|
+
const i = l;
|
|
699
|
+
function n(t, o, u) {
|
|
700
|
+
o[u.field] = t, i("change", t, o, u);
|
|
701
701
|
}
|
|
702
|
-
return (
|
|
702
|
+
return (t, o) => {
|
|
703
703
|
var u;
|
|
704
704
|
return openBlock(), createBlock(unref(ElCheckbox), {
|
|
705
|
-
disabled: (u =
|
|
705
|
+
disabled: (u = a.column.params) == null ? void 0 : u.disabled,
|
|
706
706
|
modelValue: r.value,
|
|
707
|
-
"onUpdate:modelValue":
|
|
708
|
-
onChange:
|
|
707
|
+
"onUpdate:modelValue": o[0] || (o[0] = (d) => r.value = d),
|
|
708
|
+
onChange: o[1] || (o[1] = (d) => n(d, a.row, a.column))
|
|
709
709
|
}, null, 8, ["disabled", "modelValue"]);
|
|
710
710
|
};
|
|
711
711
|
}
|
|
@@ -742,119 +742,119 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
742
742
|
},
|
|
743
743
|
displayValue: String
|
|
744
744
|
},
|
|
745
|
-
setup(
|
|
746
|
-
const
|
|
747
|
-
|
|
748
|
-
const e = ref(
|
|
749
|
-
e.value.forEach((
|
|
750
|
-
|
|
745
|
+
setup(a) {
|
|
746
|
+
const l = a;
|
|
747
|
+
l.column.params.LabelConfig || (l.column.params.LabelConfig = []);
|
|
748
|
+
const e = ref(l.column.params.LabelConfig);
|
|
749
|
+
e.value.forEach((c) => {
|
|
750
|
+
c.Value == "true" ? c.Value = !0 : c.Value == "false" && (c.Value = !1);
|
|
751
751
|
});
|
|
752
|
-
const r = computed(() =>
|
|
752
|
+
const r = computed(() => l.row[l.column.field]), i = computed(() => e.value.find((c) => c.Value == r.value));
|
|
753
753
|
onMounted(() => {
|
|
754
|
-
|
|
754
|
+
l.column.params.LabelAutoColor && !i.value && (r.value || r.value === 0) && e.value.push({
|
|
755
755
|
Value: r.value,
|
|
756
|
-
Color:
|
|
756
|
+
Color: d()
|
|
757
757
|
});
|
|
758
758
|
});
|
|
759
|
-
function
|
|
760
|
-
if (!
|
|
761
|
-
let
|
|
762
|
-
if (
|
|
763
|
-
|
|
764
|
-
else if (
|
|
765
|
-
const
|
|
766
|
-
|
|
767
|
-
} else if (
|
|
768
|
-
const
|
|
769
|
-
if (
|
|
770
|
-
const
|
|
771
|
-
if (
|
|
772
|
-
|
|
759
|
+
function n(c) {
|
|
760
|
+
if (!c) return;
|
|
761
|
+
let f, s, _, y = 1;
|
|
762
|
+
if (c.startsWith("#"))
|
|
763
|
+
c = c.slice(1), c.length === 3 ? (f = parseInt(c[0] + c[0], 16), s = parseInt(c[1] + c[1], 16), _ = parseInt(c[2] + c[2], 16)) : c.length === 6 && (f = parseInt(c.slice(0, 2), 16), s = parseInt(c.slice(2, 4), 16), _ = parseInt(c.slice(4, 6), 16));
|
|
764
|
+
else if (c.startsWith("rgb")) {
|
|
765
|
+
const h = c.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d*\.?\d+))?\)/);
|
|
766
|
+
h && (f = parseInt(h[1]), s = parseInt(h[2]), _ = parseInt(h[3]), h[4] && (y = parseFloat(h[4])));
|
|
767
|
+
} else if (c.startsWith("hsl")) {
|
|
768
|
+
const h = c.match(/hsla?\((\d+),\s*(\d+)%,\s*(\d+)%(?:,\s*(\d*\.?\d+))?\)/);
|
|
769
|
+
if (h) {
|
|
770
|
+
const k = parseInt(h[1]) / 360, w = parseInt(h[2]) / 100, E = parseInt(h[3]) / 100;
|
|
771
|
+
if (h[4] && (y = parseFloat(h[4])), w === 0)
|
|
772
|
+
f = s = _ = E * 255;
|
|
773
773
|
else {
|
|
774
|
-
const
|
|
775
|
-
|
|
774
|
+
const j = (S, D, F) => (F < 0 && (F += 1), F > 1 && (F -= 1), F < 0.16666666666666666 ? S + (D - S) * 6 * F : F < 0.5 ? D : F < 0.6666666666666666 ? S + (D - S) * (0.6666666666666666 - F) * 6 : S), R = E < 0.5 ? E * (1 + w) : E + w - E * w, C = 2 * E - R;
|
|
775
|
+
f = j(C, R, k + 1 / 3) * 255, s = j(C, R, k) * 255, _ = j(C, R, k - 1 / 3) * 255;
|
|
776
776
|
}
|
|
777
777
|
}
|
|
778
778
|
}
|
|
779
|
-
return { r:
|
|
779
|
+
return { r: f, g: s, b: _, a: y };
|
|
780
780
|
}
|
|
781
|
-
function
|
|
782
|
-
|
|
783
|
-
const _ = Math.max(
|
|
784
|
-
let
|
|
781
|
+
function t(c, f, s) {
|
|
782
|
+
c /= 255, f /= 255, s /= 255;
|
|
783
|
+
const _ = Math.max(c, f, s), y = Math.min(c, f, s);
|
|
784
|
+
let h, k, w = (_ + y) / 2;
|
|
785
785
|
if (_ === y)
|
|
786
|
-
|
|
786
|
+
h = k = 0;
|
|
787
787
|
else {
|
|
788
|
-
const
|
|
789
|
-
switch (
|
|
790
|
-
case
|
|
791
|
-
|
|
788
|
+
const E = _ - y;
|
|
789
|
+
switch (k = w > 0.5 ? E / (2 - _ - y) : E / (_ + y), _) {
|
|
790
|
+
case c:
|
|
791
|
+
h = (f - s) / E + (f < s ? 6 : 0);
|
|
792
792
|
break;
|
|
793
|
-
case
|
|
794
|
-
|
|
793
|
+
case f:
|
|
794
|
+
h = (s - c) / E + 2;
|
|
795
795
|
break;
|
|
796
|
-
case
|
|
797
|
-
|
|
796
|
+
case s:
|
|
797
|
+
h = (c - f) / E + 4;
|
|
798
798
|
break;
|
|
799
799
|
}
|
|
800
|
-
|
|
800
|
+
h /= 6;
|
|
801
801
|
}
|
|
802
|
-
return { h
|
|
802
|
+
return { h, s: k, l: w };
|
|
803
803
|
}
|
|
804
|
-
function
|
|
805
|
-
let _, y,
|
|
806
|
-
if (
|
|
807
|
-
_ = y =
|
|
804
|
+
function o(c, f, s) {
|
|
805
|
+
let _, y, h;
|
|
806
|
+
if (f === 0)
|
|
807
|
+
_ = y = h = s;
|
|
808
808
|
else {
|
|
809
|
-
const
|
|
810
|
-
_ =
|
|
809
|
+
const k = (j, R, C) => (C < 0 && (C += 1), C > 1 && (C -= 1), C < 0.16666666666666666 ? j + (R - j) * 6 * C : C < 0.5 ? R : C < 0.6666666666666666 ? j + (R - j) * (0.6666666666666666 - C) * 6 : j), w = s < 0.5 ? s * (1 + f) : s + f - s * f, E = 2 * s - w;
|
|
810
|
+
_ = k(E, w, c + 1 / 3), y = k(E, w, c), h = k(E, w, c - 1 / 3);
|
|
811
811
|
}
|
|
812
|
-
return { r: Math.round(_ * 255), g: Math.round(y * 255), b: Math.round(
|
|
813
|
-
}
|
|
814
|
-
function u(
|
|
815
|
-
if (!
|
|
816
|
-
let { r:
|
|
817
|
-
|
|
818
|
-
const { r:
|
|
819
|
-
return `rgb(${
|
|
820
|
-
}
|
|
821
|
-
function
|
|
822
|
-
function
|
|
823
|
-
return Math.floor(Math.random() * (
|
|
812
|
+
return { r: Math.round(_ * 255), g: Math.round(y * 255), b: Math.round(h * 255) };
|
|
813
|
+
}
|
|
814
|
+
function u(c, f) {
|
|
815
|
+
if (!c) return;
|
|
816
|
+
let { r: s, g: _, b: y } = n(c), { h, s: k, l: w } = t(s, _, y);
|
|
817
|
+
w = Math.max(0, w - f);
|
|
818
|
+
const { r: E, g: j, b: R } = o(h, k, w);
|
|
819
|
+
return `rgb(${E}, ${j}, ${R})`;
|
|
820
|
+
}
|
|
821
|
+
function d() {
|
|
822
|
+
function c(h, k) {
|
|
823
|
+
return Math.floor(Math.random() * (k - h + 1)) + h;
|
|
824
824
|
}
|
|
825
|
-
const
|
|
826
|
-
return `#${
|
|
825
|
+
const f = c(200, 255), s = c(200, 255), _ = c(200, 255);
|
|
826
|
+
return `#${f.toString(16).padStart(2, "0")}${s.toString(16).padStart(2, "0")}${_.toString(16).padStart(2, "0")}`;
|
|
827
827
|
}
|
|
828
|
-
return (
|
|
829
|
-
const
|
|
828
|
+
return (c, f) => {
|
|
829
|
+
const s = resolveComponent("hr-icon");
|
|
830
830
|
return r.value ? (openBlock(), createElementBlock("div", _hoisted_1$d, [
|
|
831
|
-
|
|
831
|
+
i.value ? (openBlock(), createBlock(unref(ElTag), {
|
|
832
832
|
key: 0,
|
|
833
|
-
color:
|
|
833
|
+
color: i.value.Color,
|
|
834
834
|
size: "small",
|
|
835
|
-
style: normalizeStyle({ borderColor: u(
|
|
835
|
+
style: normalizeStyle({ borderColor: u(i.value.Color, "0.03") })
|
|
836
836
|
}, {
|
|
837
837
|
default: withCtx(() => [
|
|
838
|
-
|
|
838
|
+
i.value.LeftIcon ? (openBlock(), createBlock(s, {
|
|
839
839
|
key: 0,
|
|
840
840
|
class: "mr0.25 v-middle mt0.15",
|
|
841
841
|
size: "13",
|
|
842
|
-
color: u(
|
|
843
|
-
icon:
|
|
842
|
+
color: u(i.value.Color, "0.3"),
|
|
843
|
+
icon: i.value.LeftIcon
|
|
844
844
|
}, null, 8, ["color", "icon"])) : createCommentVNode("", !0),
|
|
845
|
-
createElementVNode("span", _hoisted_2$4, toDisplayString(
|
|
846
|
-
|
|
845
|
+
createElementVNode("span", _hoisted_2$4, toDisplayString(a.displayValue === void 0 ? r.value : a.displayValue), 1),
|
|
846
|
+
i.value.RightIcon ? (openBlock(), createBlock(s, {
|
|
847
847
|
key: 1,
|
|
848
848
|
class: "ml0.25 v-middle mt0.15",
|
|
849
849
|
size: "13",
|
|
850
|
-
color: u(
|
|
851
|
-
icon:
|
|
850
|
+
color: u(i.value.Color, "0.3"),
|
|
851
|
+
icon: i.value.RightIcon
|
|
852
852
|
}, null, 8, ["color", "icon"])) : createCommentVNode("", !0)
|
|
853
853
|
]),
|
|
854
854
|
_: 1
|
|
855
855
|
}, 8, ["color", "style"])) : createCommentVNode("", !0),
|
|
856
|
-
withDirectives(createElementVNode("span", null, toDisplayString(
|
|
857
|
-
[vShow, !
|
|
856
|
+
withDirectives(createElementVNode("span", null, toDisplayString(a.displayValue === void 0 ? r.value : a.displayValue), 513), [
|
|
857
|
+
[vShow, !i.value]
|
|
858
858
|
])
|
|
859
859
|
])) : (openBlock(), createElementBlock("div", _hoisted_3$2));
|
|
860
860
|
};
|
|
@@ -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(
|
|
887
|
-
emit("change",
|
|
886
|
+
function handleChange(a, l, e) {
|
|
887
|
+
emit("change", a, l, e);
|
|
888
888
|
}
|
|
889
889
|
function handleChoose(row, column, gridRef) {
|
|
890
|
-
var
|
|
890
|
+
var a;
|
|
891
891
|
let result;
|
|
892
|
-
if (emit("onChooseBefor-Click", column, (
|
|
893
|
-
result =
|
|
894
|
-
}), !result || (
|
|
892
|
+
if (emit("onChooseBefor-Click", column, (l) => {
|
|
893
|
+
result = l;
|
|
894
|
+
}), !result || (a = column.params) != null && a.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, (
|
|
901
|
-
isEmpty(StoredValueField) || isEmpty(ReturnValueField) || (Array.isArray(StoredValueField) || (StoredValueField = [StoredValueField]), Array.isArray(ReturnValueField) || (ReturnValueField = [ReturnValueField]), StoredValueField.forEach((r,
|
|
902
|
-
var
|
|
903
|
-
return row[r] = ((
|
|
900
|
+
)), ChoosePageType === "autoPage" ? openAutoPage(ChoosePageOID, (l, e) => {
|
|
901
|
+
isEmpty(StoredValueField) || isEmpty(ReturnValueField) || (Array.isArray(StoredValueField) || (StoredValueField = [StoredValueField]), Array.isArray(ReturnValueField) || (ReturnValueField = [ReturnValueField]), StoredValueField.forEach((r, i) => {
|
|
902
|
+
var n;
|
|
903
|
+
return row[r] = ((n = e[ReturnValueField[i]]) == null ? void 0 : n.join(",")) || null;
|
|
904
904
|
}), handleChange(row[column.field], row, column));
|
|
905
|
-
}, urlParams) : openChoosePage(ChoosePageOID, (
|
|
906
|
-
isEmpty(StoredValueField) || isEmpty(ReturnValueField) || (Array.isArray(StoredValueField) || (StoredValueField = [StoredValueField]), Array.isArray(ReturnValueField) || (ReturnValueField = [ReturnValueField]), StoredValueField.forEach((r,
|
|
907
|
-
var
|
|
908
|
-
return row[r] = ((
|
|
905
|
+
}, urlParams) : openChoosePage(ChoosePageOID, (l, e) => {
|
|
906
|
+
isEmpty(StoredValueField) || isEmpty(ReturnValueField) || (Array.isArray(StoredValueField) || (StoredValueField = [StoredValueField]), Array.isArray(ReturnValueField) || (ReturnValueField = [ReturnValueField]), StoredValueField.forEach((r, i) => {
|
|
907
|
+
var n;
|
|
908
|
+
return row[r] = ((n = e[ReturnValueField[i]]) == null ? void 0 : n.join(",")) || null;
|
|
909
909
|
}), handleChange(row[column.field], row, column));
|
|
910
910
|
}, urlParams, selectedData, layerOptions);
|
|
911
911
|
}
|
|
912
|
-
return (
|
|
912
|
+
return (a, 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,8 +945,8 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
945
945
|
}
|
|
946
946
|
},
|
|
947
947
|
emits: ["change"],
|
|
948
|
-
setup(
|
|
949
|
-
const e =
|
|
948
|
+
setup(a, { emit: l }) {
|
|
949
|
+
const e = a, r = ref([
|
|
950
950
|
"#409EFF",
|
|
951
951
|
"#67C23A",
|
|
952
952
|
"#E6A23C",
|
|
@@ -983,24 +983,24 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
983
983
|
"#1296DB",
|
|
984
984
|
"#FDA4AF",
|
|
985
985
|
"#F9A8D4"
|
|
986
|
-
]),
|
|
986
|
+
]), i = ref(isColor(e.row[e.column.field]) ? e.row[e.column.field] : null);
|
|
987
987
|
watchEffect(() => {
|
|
988
|
-
|
|
988
|
+
i.value = isColor(e.row[e.column.field]) ? e.row[e.column.field] : null;
|
|
989
989
|
});
|
|
990
|
-
const
|
|
991
|
-
function
|
|
992
|
-
u[
|
|
990
|
+
const n = l;
|
|
991
|
+
function t(o, u, d) {
|
|
992
|
+
u[d.field] = o, n("change", o, u, d);
|
|
993
993
|
}
|
|
994
|
-
return (
|
|
995
|
-
var
|
|
994
|
+
return (o, u) => {
|
|
995
|
+
var d;
|
|
996
996
|
return openBlock(), createElementBlock("div", _hoisted_1$b, [
|
|
997
997
|
createVNode(unref(ElColorPicker), {
|
|
998
|
-
disabled: (
|
|
998
|
+
disabled: (d = a.column.params) == null ? void 0 : d.disabled,
|
|
999
999
|
class: "size-full",
|
|
1000
|
-
modelValue:
|
|
1001
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
1000
|
+
modelValue: i.value,
|
|
1001
|
+
"onUpdate:modelValue": u[0] || (u[0] = (c) => i.value = c),
|
|
1002
1002
|
predefine: r.value,
|
|
1003
|
-
onChange: u[1] || (u[1] = (
|
|
1003
|
+
onChange: u[1] || (u[1] = (c) => t(c, a.row, a.column))
|
|
1004
1004
|
}, null, 8, ["disabled", "modelValue", "predefine"])
|
|
1005
1005
|
]);
|
|
1006
1006
|
};
|
|
@@ -1026,8 +1026,8 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
1026
1026
|
default: () => ({})
|
|
1027
1027
|
}
|
|
1028
1028
|
},
|
|
1029
|
-
setup(
|
|
1030
|
-
return (
|
|
1029
|
+
setup(a) {
|
|
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,
|
|
@@ -1050,16 +1050,16 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
1050
1050
|
default: () => ({})
|
|
1051
1051
|
}
|
|
1052
1052
|
},
|
|
1053
|
-
setup(
|
|
1053
|
+
setup(a) {
|
|
1054
1054
|
dayjs.extend(isoWeek), dayjs.extend(quarterOfYear), dayjs.extend(customParseFormat);
|
|
1055
|
-
const
|
|
1056
|
-
var
|
|
1057
|
-
const
|
|
1058
|
-
return
|
|
1055
|
+
const l = a, e = computed(() => {
|
|
1056
|
+
var o;
|
|
1057
|
+
const t = ((o = l.column.params) == null ? void 0 : o.DateType) || "date";
|
|
1058
|
+
return n(r(l.row[l.column.field], t), t);
|
|
1059
1059
|
});
|
|
1060
|
-
function r(
|
|
1061
|
-
if (!
|
|
1062
|
-
const
|
|
1060
|
+
function r(t, o) {
|
|
1061
|
+
if (!t) return null;
|
|
1062
|
+
const d = {
|
|
1063
1063
|
time: "HH:mm:ss",
|
|
1064
1064
|
date: "YYYY-MM-DD",
|
|
1065
1065
|
datetime: "YYYY-MM-DD HH:mm:ss",
|
|
@@ -1067,77 +1067,77 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
1067
1067
|
month: "YYYY-MM",
|
|
1068
1068
|
quarter: "YYYY-Q",
|
|
1069
1069
|
year: "YYYY"
|
|
1070
|
-
}[
|
|
1071
|
-
if (!
|
|
1072
|
-
let
|
|
1073
|
-
if (
|
|
1074
|
-
const
|
|
1075
|
-
if (
|
|
1076
|
-
const [,
|
|
1077
|
-
|
|
1070
|
+
}[o];
|
|
1071
|
+
if (!d) throw new Error("Unsupported date type");
|
|
1072
|
+
let c = dayjs(t, d);
|
|
1073
|
+
if (t.includes("周") || !c.isValid() && o === "week") {
|
|
1074
|
+
const f = t.match(/^(\d{4})年第(\d{1,2})周$/);
|
|
1075
|
+
if (f) {
|
|
1076
|
+
const [, s, _] = f;
|
|
1077
|
+
c = dayjs(`${s}-01-01`).isoWeek(Number(_));
|
|
1078
1078
|
}
|
|
1079
|
-
} else if (
|
|
1080
|
-
const
|
|
1081
|
-
if (
|
|
1082
|
-
const [,
|
|
1083
|
-
|
|
1079
|
+
} else if (t.includes("季度") || !c.isValid() && o === "quarter") {
|
|
1080
|
+
const f = t.match(/^(\d{4})年第(\d)季度$/);
|
|
1081
|
+
if (f) {
|
|
1082
|
+
const [, s, _] = f;
|
|
1083
|
+
c = dayjs(`${s}-01-01`).quarter(Number(_));
|
|
1084
1084
|
}
|
|
1085
|
-
} else if (
|
|
1086
|
-
const
|
|
1087
|
-
if (
|
|
1088
|
-
const [,
|
|
1089
|
-
|
|
1085
|
+
} else if (t.includes("月") || !c.isValid() && o === "month") {
|
|
1086
|
+
const f = t.match(/^(\d{4})年(\d{1,2})月$/);
|
|
1087
|
+
if (f) {
|
|
1088
|
+
const [, s, _] = f;
|
|
1089
|
+
c = dayjs(`${s}-${_}-01`);
|
|
1090
1090
|
}
|
|
1091
|
-
} else if (
|
|
1092
|
-
const
|
|
1093
|
-
if (
|
|
1094
|
-
const [,
|
|
1095
|
-
|
|
1091
|
+
} else if (t.includes("年") || !c.isValid() && o === "year") {
|
|
1092
|
+
const f = t.match(/^(\d{4})年$/);
|
|
1093
|
+
if (f) {
|
|
1094
|
+
const [, s] = f;
|
|
1095
|
+
c = dayjs(`${s}-01-01`);
|
|
1096
1096
|
}
|
|
1097
1097
|
}
|
|
1098
|
-
return
|
|
1098
|
+
return c.isValid() ? i(c, o) : null;
|
|
1099
1099
|
}
|
|
1100
|
-
function
|
|
1101
|
-
switch (
|
|
1100
|
+
function i(t, o) {
|
|
1101
|
+
switch (o) {
|
|
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
|
|
1121
|
-
if (!
|
|
1122
|
-
switch (
|
|
1120
|
+
function n(t, o) {
|
|
1121
|
+
if (!t) return "";
|
|
1122
|
+
switch (o) {
|
|
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[o]);
|
|
1138
1138
|
}
|
|
1139
1139
|
}
|
|
1140
|
-
return (
|
|
1140
|
+
return (t, o) => 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,40 +1167,40 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
1167
1167
|
}
|
|
1168
1168
|
},
|
|
1169
1169
|
emits: ["file-click"],
|
|
1170
|
-
setup(
|
|
1171
|
-
const e =
|
|
1172
|
-
function r(
|
|
1173
|
-
["jpg", "jpeg", "png", "gif", "bmp", "svg"].includes(
|
|
1170
|
+
setup(a, { emit: l }) {
|
|
1171
|
+
const e = l;
|
|
1172
|
+
function r(i) {
|
|
1173
|
+
["jpg", "jpeg", "png", "gif", "bmp", "svg"].includes(i.FileType.toLowerCase()) || e("file-click", i);
|
|
1174
1174
|
}
|
|
1175
|
-
return (
|
|
1176
|
-
const
|
|
1175
|
+
return (i, n) => {
|
|
1176
|
+
const t = resolveDirective("viewer");
|
|
1177
1177
|
return withDirectives((openBlock(), createElementBlock("div", _hoisted_1$8, [
|
|
1178
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(
|
|
1178
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(a.row[a.column.field], (o, u) => (openBlock(), createElementBlock("div", {
|
|
1179
1179
|
class: "Link flex",
|
|
1180
|
-
title:
|
|
1180
|
+
title: o.FileName
|
|
1181
1181
|
}, [
|
|
1182
|
-
unref(getFileIconUrl)(
|
|
1182
|
+
unref(getFileIconUrl)(o.FileType) ? (openBlock(), createElementBlock("div", {
|
|
1183
1183
|
key: 1,
|
|
1184
1184
|
class: "size-5 bg",
|
|
1185
1185
|
style: normalizeStyle({
|
|
1186
|
-
backgroundImage: `url(${unref(getFileIconUrl)(
|
|
1186
|
+
backgroundImage: `url(${unref(getFileIconUrl)(o.FileType)})`,
|
|
1187
1187
|
backgroundSize: "cover"
|
|
1188
1188
|
}),
|
|
1189
|
-
onClick: (
|
|
1189
|
+
onClick: (d) => r(o)
|
|
1190
1190
|
}, null, 12, _hoisted_3$1)) : (openBlock(), createBlock(unref(ElImage), {
|
|
1191
1191
|
key: 0,
|
|
1192
|
-
onClick: (
|
|
1192
|
+
onClick: (d) => r(o),
|
|
1193
1193
|
class: "size-5",
|
|
1194
|
-
src:
|
|
1194
|
+
src: o.FilePath
|
|
1195
1195
|
}, null, 8, ["onClick", "src"])),
|
|
1196
1196
|
createElementVNode("a", {
|
|
1197
|
-
href:
|
|
1198
|
-
download:
|
|
1199
|
-
}, toDisplayString(u + 1) + "." + toDisplayString(
|
|
1197
|
+
href: o.FilePath,
|
|
1198
|
+
download: o.FileName
|
|
1199
|
+
}, toDisplayString(u + 1) + "." + toDisplayString(o.FileType), 9, _hoisted_4$1)
|
|
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,33 +1230,33 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
1230
1230
|
}
|
|
1231
1231
|
},
|
|
1232
1232
|
emits: ["change"],
|
|
1233
|
-
setup(
|
|
1234
|
-
const e =
|
|
1235
|
-
function r(
|
|
1236
|
-
e("change",
|
|
1233
|
+
setup(a, { emit: l }) {
|
|
1234
|
+
const e = l;
|
|
1235
|
+
function r(n, t, o) {
|
|
1236
|
+
e("change", n, t, o);
|
|
1237
1237
|
}
|
|
1238
|
-
function
|
|
1238
|
+
function i(n, t) {
|
|
1239
1239
|
var u;
|
|
1240
|
-
if ((u =
|
|
1241
|
-
let
|
|
1240
|
+
if ((u = t.params) != null && u.disable) return;
|
|
1241
|
+
let o = layer.open({
|
|
1242
1242
|
type: 2,
|
|
1243
1243
|
title: "图标选择",
|
|
1244
1244
|
maxmin: !0,
|
|
1245
1245
|
area: ["80%", "80%"],
|
|
1246
1246
|
content: "/Html/Custom/SelectIcon/Icon.html?callbackFn=setIcon&clearFn=clearIcon"
|
|
1247
1247
|
});
|
|
1248
|
-
window.setIcon = (
|
|
1249
|
-
|
|
1250
|
-
}, window.clearIcon = (
|
|
1251
|
-
|
|
1248
|
+
window.setIcon = (d) => {
|
|
1249
|
+
n[t.field] = d.font_class, r(d, n, t);
|
|
1250
|
+
}, window.clearIcon = (d) => {
|
|
1251
|
+
n[t.field] = "", r(d, n, t), layer.close(o);
|
|
1252
1252
|
};
|
|
1253
1253
|
}
|
|
1254
|
-
return (
|
|
1254
|
+
return (n, t) => (openBlock(), createElementBlock("div", {
|
|
1255
1255
|
class: "w-full h-full flex justify-center items-center",
|
|
1256
|
-
onClick:
|
|
1256
|
+
onClick: t[0] || (t[0] = (o) => i(a.row, a.column))
|
|
1257
1257
|
}, [
|
|
1258
1258
|
createVNode(unref(HrIcon), {
|
|
1259
|
-
icon:
|
|
1259
|
+
icon: a.row[a.column.field]
|
|
1260
1260
|
}, null, 8, ["icon"])
|
|
1261
1261
|
]));
|
|
1262
1262
|
}
|
|
@@ -1282,37 +1282,37 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
1282
1282
|
}
|
|
1283
1283
|
},
|
|
1284
1284
|
emits: ["change"],
|
|
1285
|
-
setup(
|
|
1286
|
-
const e =
|
|
1287
|
-
function
|
|
1285
|
+
setup(a, { emit: l }) {
|
|
1286
|
+
const e = a, r = l;
|
|
1287
|
+
function i(n, t) {
|
|
1288
1288
|
var y;
|
|
1289
|
-
if ((y =
|
|
1289
|
+
if ((y = t.params) != null && y.disabled) return;
|
|
1290
1290
|
let {
|
|
1291
|
-
PickPeopleType:
|
|
1291
|
+
PickPeopleType: o,
|
|
1292
1292
|
PickPeopleCheckType: u,
|
|
1293
|
-
PickPeopleIsAll:
|
|
1294
|
-
PickPeopleStatus:
|
|
1295
|
-
StoredValueField:
|
|
1296
|
-
ReturnValueField:
|
|
1293
|
+
PickPeopleIsAll: d,
|
|
1294
|
+
PickPeopleStatus: c,
|
|
1295
|
+
StoredValueField: f,
|
|
1296
|
+
ReturnValueField: s,
|
|
1297
1297
|
BackfillField: _
|
|
1298
1298
|
} = e.column.params;
|
|
1299
1299
|
openChoosePeople({
|
|
1300
|
-
Type:
|
|
1300
|
+
Type: o,
|
|
1301
1301
|
Choose: u,
|
|
1302
|
-
IsAll:
|
|
1303
|
-
Status:
|
|
1304
|
-
}, (
|
|
1305
|
-
isEmpty(
|
|
1306
|
-
}, _ ?
|
|
1302
|
+
IsAll: d,
|
|
1303
|
+
Status: c
|
|
1304
|
+
}, (h) => {
|
|
1305
|
+
isEmpty(f) ? n[t.field] = h.Name || null : (Array.isArray(f) || (f = [f]), Array.isArray(s) || (s = [s]), f.forEach((k, w) => n[k] = h[s[w]] || null)), r("change", h, n, t);
|
|
1306
|
+
}, _ ? n[_] : null);
|
|
1307
1307
|
}
|
|
1308
|
-
return (
|
|
1308
|
+
return (n, 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] = (o) => i(a.row, a.column))
|
|
1313
1313
|
}, {
|
|
1314
1314
|
default: withCtx(() => [
|
|
1315
|
-
createTextVNode(toDisplayString(
|
|
1315
|
+
createTextVNode(toDisplayString(a.row[a.column.field] || "请选择"), 1)
|
|
1316
1316
|
]),
|
|
1317
1317
|
_: 1
|
|
1318
1318
|
})
|
|
@@ -1340,18 +1340,18 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
1340
1340
|
}
|
|
1341
1341
|
},
|
|
1342
1342
|
emits: ["change"],
|
|
1343
|
-
setup(
|
|
1344
|
-
const e =
|
|
1343
|
+
setup(a, { emit: l }) {
|
|
1344
|
+
const e = a;
|
|
1345
1345
|
let r = ref(0);
|
|
1346
1346
|
return watchEffect(() => {
|
|
1347
1347
|
if (e.row[e.column.field]) {
|
|
1348
|
-
const
|
|
1349
|
-
if (isNaN(
|
|
1348
|
+
const i = Number(parseFloat(e.row[e.column.field]));
|
|
1349
|
+
if (isNaN(i))
|
|
1350
1350
|
return e.row[e.column.field] = r.value, layer.msg("请输入有效的数字");
|
|
1351
|
-
r.value =
|
|
1351
|
+
r.value = i > 100 ? 100 : i, i > 100 ? e.row[e.column.field] = 100 : e.row[e.column.field] = r.value;
|
|
1352
1352
|
} else
|
|
1353
1353
|
r.value = 0;
|
|
1354
|
-
}), (
|
|
1354
|
+
}), (i, n) => (openBlock(), createBlock(unref(ElProgress), {
|
|
1355
1355
|
percentage: unref(r),
|
|
1356
1356
|
format: () => `${unref(r)}%`
|
|
1357
1357
|
}, null, 8, ["percentage", "format"]));
|
|
@@ -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(
|
|
1382
|
-
const e =
|
|
1383
|
-
function
|
|
1384
|
-
e.gridRef.getTableData().tableData.filter((u) => u !==
|
|
1385
|
-
u[
|
|
1386
|
-
}), r("change",
|
|
1387
|
-
}
|
|
1388
|
-
return (
|
|
1389
|
-
var
|
|
1381
|
+
setup(a, { emit: l }) {
|
|
1382
|
+
const e = a, r = l;
|
|
1383
|
+
function i(n, t, o) {
|
|
1384
|
+
e.gridRef.getTableData().tableData.filter((u) => u !== t).forEach((u) => {
|
|
1385
|
+
u[o.field] && (u[o.field] = !1);
|
|
1386
|
+
}), r("change", n, t, o);
|
|
1387
|
+
}
|
|
1388
|
+
return (n, t) => {
|
|
1389
|
+
var o;
|
|
1390
1390
|
return openBlock(), createBlock(unref(ElRadioGroup), {
|
|
1391
|
-
disabled: (
|
|
1392
|
-
modelValue:
|
|
1393
|
-
"onUpdate:modelValue":
|
|
1394
|
-
onChange:
|
|
1391
|
+
disabled: (o = a.column.params) == null ? void 0 : o.disabled,
|
|
1392
|
+
modelValue: a.row[a.column.field],
|
|
1393
|
+
"onUpdate:modelValue": t[0] || (t[0] = (u) => a.row[a.column.field] = u),
|
|
1394
|
+
onChange: t[1] || (t[1] = (u) => i(u, a.row, a.column))
|
|
1395
1395
|
}, {
|
|
1396
1396
|
default: withCtx(() => [
|
|
1397
1397
|
createVNode(unref(ElRadio), { value: !0 })
|
|
@@ -1421,30 +1421,30 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
1421
1421
|
default: () => ({})
|
|
1422
1422
|
}
|
|
1423
1423
|
},
|
|
1424
|
-
setup(
|
|
1425
|
-
var
|
|
1426
|
-
const
|
|
1427
|
-
(
|
|
1428
|
-
var
|
|
1429
|
-
(
|
|
1424
|
+
setup(a) {
|
|
1425
|
+
var i, n;
|
|
1426
|
+
const l = a;
|
|
1427
|
+
(i = l.column.params)[n = l.gridRef.getRowid(l.row)] ?? (i[n] = {}), watchEffect(() => {
|
|
1428
|
+
var t, o;
|
|
1429
|
+
(t = l.column.params)[o = l.gridRef.getRowid(l.row)] ?? (t[o] = {}), !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
|
-
var
|
|
1436
|
-
const
|
|
1437
|
-
if (
|
|
1438
|
-
let
|
|
1439
|
-
return
|
|
1440
|
-
var
|
|
1441
|
-
const
|
|
1442
|
-
|
|
1443
|
-
}),
|
|
1435
|
+
var o, u;
|
|
1436
|
+
const t = l.row[l.column.field];
|
|
1437
|
+
if (t && t.length > 1) {
|
|
1438
|
+
let d = [];
|
|
1439
|
+
return t.split(",").map((c) => {
|
|
1440
|
+
var s, _;
|
|
1441
|
+
const f = (_ = (s = e.value) == null ? void 0 : s.find((y) => y.value == c)) == null ? void 0 : _.label;
|
|
1442
|
+
f !== void 0 && d.push(f);
|
|
1443
|
+
}), d.join(",");
|
|
1444
1444
|
} else
|
|
1445
|
-
return ((u = (
|
|
1445
|
+
return ((u = (o = e.value) == null ? void 0 : o.find((d) => d.value == t)) == null ? void 0 : u.label) || "";
|
|
1446
1446
|
});
|
|
1447
|
-
return (
|
|
1447
|
+
return (t, o) => 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));
|
|
@@ -1470,21 +1470,21 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
1470
1470
|
default: () => ({})
|
|
1471
1471
|
}
|
|
1472
1472
|
},
|
|
1473
|
-
setup(
|
|
1474
|
-
var
|
|
1475
|
-
const
|
|
1476
|
-
(
|
|
1477
|
-
var
|
|
1478
|
-
(
|
|
1473
|
+
setup(a) {
|
|
1474
|
+
var i, n;
|
|
1475
|
+
const l = a;
|
|
1476
|
+
(i = l.column.params)[n = l.gridRef.getRowid(l.row)] ?? (i[n] = {}), watchEffect(() => {
|
|
1477
|
+
var t, o;
|
|
1478
|
+
(t = l.column.params)[o = l.gridRef.getRowid(l.row)] ?? (t[o] = {}), !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 ((
|
|
1484
|
+
var t, o;
|
|
1485
|
+
return ((o = (t = e.value) == null ? void 0 : t.find((u) => u.value == l.row[l.column.field])) == null ? void 0 : o.label) || "";
|
|
1486
1486
|
});
|
|
1487
|
-
return (
|
|
1487
|
+
return (t, o) => 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));
|
|
@@ -1510,20 +1510,20 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
1510
1510
|
default: () => ({})
|
|
1511
1511
|
}
|
|
1512
1512
|
},
|
|
1513
|
-
setup(
|
|
1514
|
-
const
|
|
1515
|
-
if (!
|
|
1516
|
-
const { options: r, ParentNodeField:
|
|
1517
|
-
|
|
1513
|
+
setup(a) {
|
|
1514
|
+
const l = a;
|
|
1515
|
+
if (!l.column.params.TreeData) {
|
|
1516
|
+
const { options: r, ParentNodeField: i, NodeValueField: n } = l.column.params;
|
|
1517
|
+
l.column.params.TreeData = buildTree(deepClone(r), i, n);
|
|
1518
1518
|
}
|
|
1519
1519
|
const e = computed(() => {
|
|
1520
|
-
const { NodeNameField: r = "label", NodeValueField:
|
|
1521
|
-
if (
|
|
1522
|
-
let
|
|
1523
|
-
return
|
|
1520
|
+
const { NodeNameField: r = "label", NodeValueField: i = "value" } = l.column.params;
|
|
1521
|
+
if (l.row[l.column.field]) {
|
|
1522
|
+
let n = l.row[l.column.field].split(",");
|
|
1523
|
+
return l.column.params.options.filter((t) => n.includes(t[i])).map((t) => t[r]).join(",");
|
|
1524
1524
|
}
|
|
1525
1525
|
});
|
|
1526
|
-
return (r,
|
|
1526
|
+
return (r, i) => 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));
|
|
@@ -1549,18 +1549,18 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
1549
1549
|
default: () => ({})
|
|
1550
1550
|
}
|
|
1551
1551
|
},
|
|
1552
|
-
setup(
|
|
1553
|
-
const
|
|
1554
|
-
if (!
|
|
1555
|
-
const { options: r, ParentNodeField:
|
|
1556
|
-
|
|
1552
|
+
setup(a) {
|
|
1553
|
+
const l = a;
|
|
1554
|
+
if (!l.column.params.TreeData) {
|
|
1555
|
+
const { options: r, ParentNodeField: i, NodeKeyField: n } = l.column.params;
|
|
1556
|
+
l.column.params.TreeData = buildTree(deepClone(r), i, n);
|
|
1557
1557
|
}
|
|
1558
1558
|
const e = computed(() => {
|
|
1559
|
-
var
|
|
1560
|
-
const { NodeNameField: r = "label", NodeValueField:
|
|
1561
|
-
return ((
|
|
1559
|
+
var n;
|
|
1560
|
+
const { NodeNameField: r = "label", NodeValueField: i = "value" } = l.column.params;
|
|
1561
|
+
return ((n = l.column.params.options.find((t) => t[i] == l.row[l.column.field])) == null ? void 0 : n[r]) || "";
|
|
1562
1562
|
});
|
|
1563
|
-
return (r,
|
|
1563
|
+
return (r, i) => 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));
|
|
@@ -1571,9 +1571,9 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
|
|
|
1571
1571
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
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
|
-
for (const
|
|
1575
|
-
let
|
|
1576
|
-
comps$1[
|
|
1574
|
+
for (const a in modules$1) {
|
|
1575
|
+
let l = modules$1[a].default.name;
|
|
1576
|
+
comps$1[l] = modules$1[a].default;
|
|
1577
1577
|
}
|
|
1578
1578
|
const _sfc_main$c = /* @__PURE__ */ Object.assign({
|
|
1579
1579
|
name: "DatePickerEditor"
|
|
@@ -1594,18 +1594,18 @@ const _sfc_main$c = /* @__PURE__ */ Object.assign({
|
|
|
1594
1594
|
}
|
|
1595
1595
|
},
|
|
1596
1596
|
emits: ["change"],
|
|
1597
|
-
setup(
|
|
1598
|
-
var
|
|
1597
|
+
setup(a, { emit: l }) {
|
|
1598
|
+
var t;
|
|
1599
1599
|
dayjs.extend(isoWeek), dayjs.extend(quarterOfYear), dayjs.extend(customParseFormat);
|
|
1600
|
-
const e =
|
|
1600
|
+
const e = a, r = ref(i(e.row[e.column.field], ((t = e.column.params) == null ? void 0 : t.DateType) || "date"));
|
|
1601
1601
|
onBeforeUnmount(() => {
|
|
1602
1602
|
var u;
|
|
1603
|
-
const
|
|
1604
|
-
r.value && (
|
|
1603
|
+
const o = ((u = e.column.params) == null ? void 0 : u.DateType) || "date";
|
|
1604
|
+
r.value && (o === "year" ? e.row[e.column.field] = dayjs(r.value).format("YYYY年") : o === "month" ? e.row[e.column.field] = dayjs(r.value).format("YYYY年MM月") : o === "quarter" ? e.row[e.column.field] = dayjs(r.value).format("YYYY年第Q季度") : o === "week" ? e.row[e.column.field] = dayjs(r.value).format("YYYY年第WW周") : o === "datetime" ? e.row[e.column.field] = dayjs(r.value).format("YYYY-MM-DD HH:mm:ss") : e.row[e.column.field] = dayjs(r.value).format("YYYY-MM-DD"));
|
|
1605
1605
|
});
|
|
1606
|
-
function
|
|
1607
|
-
if (!
|
|
1608
|
-
const
|
|
1606
|
+
function i(o, u) {
|
|
1607
|
+
if (!o) return null;
|
|
1608
|
+
const c = {
|
|
1609
1609
|
time: "HH:mm:ss",
|
|
1610
1610
|
date: "YYYY-MM-DD",
|
|
1611
1611
|
datetime: "YYYY-MM-DD HH:mm:ss",
|
|
@@ -1614,61 +1614,61 @@ const _sfc_main$c = /* @__PURE__ */ Object.assign({
|
|
|
1614
1614
|
quarter: "YYYY-Q",
|
|
1615
1615
|
year: "YYYY"
|
|
1616
1616
|
}[u];
|
|
1617
|
-
if (!
|
|
1618
|
-
let
|
|
1619
|
-
if (!
|
|
1620
|
-
const
|
|
1621
|
-
if (
|
|
1622
|
-
const [, _, y] =
|
|
1623
|
-
|
|
1617
|
+
if (!c) throw new Error("Unsupported date type");
|
|
1618
|
+
let f = dayjs(o, c);
|
|
1619
|
+
if (!f.isValid() && u === "week") {
|
|
1620
|
+
const s = o.match(/^(\d{4})年第(\d{2})周$/);
|
|
1621
|
+
if (s) {
|
|
1622
|
+
const [, _, y] = s;
|
|
1623
|
+
f = dayjs(`${_}-01-01`).isoWeek(Number(y));
|
|
1624
1624
|
}
|
|
1625
|
-
} else if (!
|
|
1626
|
-
const
|
|
1627
|
-
if (
|
|
1628
|
-
const [, _, y] =
|
|
1629
|
-
|
|
1625
|
+
} else if (!f.isValid() && u === "quarter") {
|
|
1626
|
+
const s = o.match(/^(\d{4})年第(\d)季度$/);
|
|
1627
|
+
if (s) {
|
|
1628
|
+
const [, _, y] = s;
|
|
1629
|
+
f = dayjs(`${_}-01-01`).quarter(Number(y));
|
|
1630
1630
|
}
|
|
1631
|
-
} else if (!
|
|
1632
|
-
const
|
|
1633
|
-
if (
|
|
1634
|
-
const [, _, y] =
|
|
1635
|
-
|
|
1631
|
+
} else if (!f.isValid() && u === "month") {
|
|
1632
|
+
const s = o.match(/^(\d{4})年(\d{2})月$/);
|
|
1633
|
+
if (s) {
|
|
1634
|
+
const [, _, y] = s;
|
|
1635
|
+
f = dayjs(`${_}-${y}-01`);
|
|
1636
1636
|
}
|
|
1637
|
-
} else if (!
|
|
1638
|
-
const
|
|
1639
|
-
if (
|
|
1640
|
-
const [, _] =
|
|
1641
|
-
|
|
1637
|
+
} else if (!f.isValid() && u === "year") {
|
|
1638
|
+
const s = o.match(/^(\d{4})年$/);
|
|
1639
|
+
if (s) {
|
|
1640
|
+
const [, _] = s;
|
|
1641
|
+
f = dayjs(`${_}-01-01`);
|
|
1642
1642
|
}
|
|
1643
1643
|
}
|
|
1644
|
-
return
|
|
1644
|
+
return f.isValid() ? n(f, u) : null;
|
|
1645
1645
|
}
|
|
1646
|
-
function o
|
|
1646
|
+
function n(o, u) {
|
|
1647
1647
|
switch (u) {
|
|
1648
1648
|
case "time":
|
|
1649
|
-
return
|
|
1649
|
+
return o.format("HH:mm:ss");
|
|
1650
1650
|
case "date":
|
|
1651
|
-
return
|
|
1651
|
+
return o.format("YYYY-MM-DD");
|
|
1652
1652
|
case "datetime":
|
|
1653
|
-
return
|
|
1653
|
+
return o.format("YYYY-MM-DD HH:mm:ss");
|
|
1654
1654
|
case "week":
|
|
1655
|
-
return
|
|
1655
|
+
return o.startOf("isoWeek").format("YYYY-MM-DD");
|
|
1656
1656
|
case "month":
|
|
1657
|
-
return
|
|
1657
|
+
return o.startOf("month").format("YYYY-MM-DD");
|
|
1658
1658
|
case "quarter":
|
|
1659
|
-
return
|
|
1659
|
+
return o.startOf("quarter").format("YYYY-MM-DD");
|
|
1660
1660
|
case "year":
|
|
1661
|
-
return
|
|
1661
|
+
return o.startOf("year").format("YYYY-MM-DD");
|
|
1662
1662
|
default:
|
|
1663
1663
|
return null;
|
|
1664
1664
|
}
|
|
1665
1665
|
}
|
|
1666
|
-
return (
|
|
1667
|
-
var
|
|
1666
|
+
return (o, u) => {
|
|
1667
|
+
var d;
|
|
1668
1668
|
return openBlock(), createBlock(unref(VxeInput), {
|
|
1669
1669
|
modelValue: r.value,
|
|
1670
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
1671
|
-
type: ((
|
|
1670
|
+
"onUpdate:modelValue": u[0] || (u[0] = (c) => r.value = c),
|
|
1671
|
+
type: ((d = a.column.params) == null ? void 0 : d.DateType) || "date",
|
|
1672
1672
|
clearable: "",
|
|
1673
1673
|
transfer: ""
|
|
1674
1674
|
}, null, 8, ["modelValue", "type"]);
|
|
@@ -1695,13 +1695,17 @@ const _sfc_main$c = /* @__PURE__ */ Object.assign({
|
|
|
1695
1695
|
default: () => ({})
|
|
1696
1696
|
}
|
|
1697
1697
|
},
|
|
1698
|
-
setup(
|
|
1699
|
-
const
|
|
1698
|
+
setup(a) {
|
|
1699
|
+
const l = a, e = ref(l.row[l.column.field]);
|
|
1700
|
+
function r(i) {
|
|
1701
|
+
l.row[l.column.field] = i;
|
|
1702
|
+
}
|
|
1700
1703
|
return onBeforeUnmount(() => {
|
|
1701
|
-
|
|
1702
|
-
}), (
|
|
1704
|
+
l.row[l.column.field] = e.value;
|
|
1705
|
+
}), (i, n) => (openBlock(), createBlock(unref(ElInput), {
|
|
1703
1706
|
modelValue: e.value,
|
|
1704
|
-
"onUpdate:modelValue":
|
|
1707
|
+
"onUpdate:modelValue": n[0] || (n[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(
|
|
1730
|
-
const e =
|
|
1731
|
-
return
|
|
1733
|
+
setup(a, { emit: l }) {
|
|
1734
|
+
const e = a, r = ref(e.row[e.column.field]), i = l;
|
|
1735
|
+
return watch(r, (n) => {
|
|
1736
|
+
const t = n === "" || n == null ? 0 : Number(n);
|
|
1737
|
+
e.row[e.column.field] = t, i("change", t);
|
|
1738
|
+
}), onBeforeUnmount(() => {
|
|
1732
1739
|
e.row[e.column.field] = r.value ? Number(r.value) : 0;
|
|
1733
|
-
}), (
|
|
1740
|
+
}), (n, t) => (openBlock(), createBlock(unref(ElInput), {
|
|
1734
1741
|
modelValue: r.value,
|
|
1735
|
-
"onUpdate:modelValue":
|
|
1736
|
-
min:
|
|
1737
|
-
max:
|
|
1738
|
-
step:
|
|
1739
|
-
type: "number"
|
|
1740
|
-
|
|
1742
|
+
"onUpdate:modelValue": t[0] || (t[0] = (o) => r.value = o),
|
|
1743
|
+
min: a.column.params.min,
|
|
1744
|
+
max: a.column.params.max,
|
|
1745
|
+
step: a.column.params.step,
|
|
1746
|
+
type: "number",
|
|
1747
|
+
onInput: n.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,
|
|
@@ -1760,39 +1768,39 @@ const _sfc_main$c = /* @__PURE__ */ Object.assign({
|
|
|
1760
1768
|
default: () => ({})
|
|
1761
1769
|
}
|
|
1762
1770
|
},
|
|
1763
|
-
setup(
|
|
1764
|
-
const
|
|
1771
|
+
setup(a) {
|
|
1772
|
+
const l = a, e = ref(l.row[l.column.field]), r = reactive(l.column.params || {
|
|
1765
1773
|
placeholder: "请选择",
|
|
1766
1774
|
disabled: !1,
|
|
1767
1775
|
clearable: !1
|
|
1768
|
-
}),
|
|
1769
|
-
var
|
|
1770
|
-
return ((
|
|
1776
|
+
}), i = computed(() => {
|
|
1777
|
+
var n;
|
|
1778
|
+
return ((n = l.column.params[l.gridRef.getRowid(l.row)]) == null ? void 0 : n.options) || l.column.params.options || [];
|
|
1771
1779
|
});
|
|
1772
1780
|
return onBeforeUnmount(() => {
|
|
1773
|
-
var
|
|
1774
|
-
|
|
1775
|
-
const
|
|
1776
|
-
if (
|
|
1777
|
-
const
|
|
1778
|
-
|
|
1781
|
+
var t;
|
|
1782
|
+
l.row[l.column.field] = e.value;
|
|
1783
|
+
const n = l.column.params.LabelStoreField;
|
|
1784
|
+
if (n) {
|
|
1785
|
+
const o = (t = i.value.find((u) => u.value === e.value)) == null ? void 0 : t.label;
|
|
1786
|
+
o !== void 0 ? l.row[n] = o : e.value === void 0 ? l.row[n] = null : e.value !== void 0 && o === void 0 && (l.row[n] = e.value);
|
|
1779
1787
|
}
|
|
1780
|
-
}), (
|
|
1788
|
+
}), (n, 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] = (o) => e.value = o),
|
|
1784
1792
|
"automatic-dropdown": "",
|
|
1785
1793
|
placeholder: r.placeholder,
|
|
1786
1794
|
"popper-class": "select-dropdown",
|
|
1787
1795
|
clearable: ""
|
|
1788
1796
|
}, {
|
|
1789
1797
|
default: withCtx(() => [
|
|
1790
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(
|
|
1798
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(i.value, (o) => (openBlock(), createBlock(unref(ElOption), {
|
|
1791
1799
|
class: "vxe-table--ignore-clear",
|
|
1792
|
-
key:
|
|
1793
|
-
label:
|
|
1794
|
-
value:
|
|
1795
|
-
disabled:
|
|
1800
|
+
key: o.value,
|
|
1801
|
+
label: o.label,
|
|
1802
|
+
value: o.value,
|
|
1803
|
+
disabled: o.disabled
|
|
1796
1804
|
}, null, 8, ["label", "value", "disabled"]))), 128))
|
|
1797
1805
|
]),
|
|
1798
1806
|
_: 1
|
|
@@ -1819,31 +1827,31 @@ const _sfc_main$c = /* @__PURE__ */ Object.assign({
|
|
|
1819
1827
|
default: () => ({})
|
|
1820
1828
|
}
|
|
1821
1829
|
},
|
|
1822
|
-
setup(
|
|
1823
|
-
const
|
|
1830
|
+
setup(a) {
|
|
1831
|
+
const l = a, e = reactive(l.column.params || {
|
|
1824
1832
|
placeholder: "请选择",
|
|
1825
1833
|
disabled: !1,
|
|
1826
1834
|
clearable: !1
|
|
1827
1835
|
}), r = computed(() => {
|
|
1828
|
-
var
|
|
1829
|
-
return ((
|
|
1836
|
+
var n;
|
|
1837
|
+
return ((n = l.column.params[l.gridRef.getRowid(l.row)]) == null ? void 0 : n.options) || l.column.params.options || [];
|
|
1830
1838
|
});
|
|
1831
1839
|
onBeforeUnmount(() => {
|
|
1832
|
-
const
|
|
1833
|
-
|
|
1834
|
-
const
|
|
1835
|
-
if (
|
|
1836
|
-
const
|
|
1837
|
-
|
|
1840
|
+
const n = i.value.join(",");
|
|
1841
|
+
l.row[l.column.field] = n;
|
|
1842
|
+
const t = l.column.params.LabelStoreField;
|
|
1843
|
+
if (t) {
|
|
1844
|
+
const o = r.value.filter((u) => i.value.includes(u.value)).map((u) => u.label).join(",");
|
|
1845
|
+
l.row[t] = o;
|
|
1838
1846
|
}
|
|
1839
1847
|
});
|
|
1840
|
-
const
|
|
1848
|
+
const i = ref([]);
|
|
1841
1849
|
return watchEffect(() => {
|
|
1842
|
-
|
|
1843
|
-
}), (
|
|
1850
|
+
l.row[l.column.field] ? i.value = l.row[l.column.field].split(",") : i.value = [];
|
|
1851
|
+
}), (n, t) => (openBlock(), createBlock(unref(ElSelect), {
|
|
1844
1852
|
class: "z-1 vxe-table--ignore-clear",
|
|
1845
|
-
modelValue:
|
|
1846
|
-
"onUpdate:modelValue":
|
|
1853
|
+
modelValue: i.value,
|
|
1854
|
+
"onUpdate:modelValue": t[0] || (t[0] = (o) => i.value = o),
|
|
1847
1855
|
"automatic-dropdown": "",
|
|
1848
1856
|
placeholder: e.placeholder,
|
|
1849
1857
|
"popper-class": "select-dropdown",
|
|
@@ -1851,11 +1859,11 @@ const _sfc_main$c = /* @__PURE__ */ Object.assign({
|
|
|
1851
1859
|
clearable: ""
|
|
1852
1860
|
}, {
|
|
1853
1861
|
default: withCtx(() => [
|
|
1854
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(r.value, (
|
|
1862
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(r.value, (o) => (openBlock(), createBlock(unref(ElOption), {
|
|
1855
1863
|
class: "vxe-table--ignore-clear",
|
|
1856
|
-
key:
|
|
1857
|
-
label:
|
|
1858
|
-
value:
|
|
1864
|
+
key: o.value,
|
|
1865
|
+
label: o.label,
|
|
1866
|
+
value: o.value
|
|
1859
1867
|
}, null, 8, ["label", "value"]))), 128))
|
|
1860
1868
|
]),
|
|
1861
1869
|
_: 1
|
|
@@ -1883,8 +1891,8 @@ const _sfc_main$c = /* @__PURE__ */ Object.assign({
|
|
|
1883
1891
|
}
|
|
1884
1892
|
},
|
|
1885
1893
|
emits: ["remoteMethod"],
|
|
1886
|
-
setup(
|
|
1887
|
-
const e =
|
|
1894
|
+
setup(a, { emit: l }) {
|
|
1895
|
+
const e = l, r = a, i = ref(r.row[r.column.field] === void 0 ? "" : r.row[r.column.field]), n = reactive(r.column.params || {
|
|
1888
1896
|
options: [],
|
|
1889
1897
|
placeholder: "请选择",
|
|
1890
1898
|
disabled: !1,
|
|
@@ -1895,35 +1903,35 @@ const _sfc_main$c = /* @__PURE__ */ Object.assign({
|
|
|
1895
1903
|
loading: !1
|
|
1896
1904
|
});
|
|
1897
1905
|
onBeforeUnmount(() => {
|
|
1898
|
-
const { StoredValueField:
|
|
1899
|
-
|
|
1900
|
-
const
|
|
1901
|
-
|
|
1902
|
-
}) : r.row[r.column.field] =
|
|
1906
|
+
const { StoredValueField: o, ReturnValueField: u } = n;
|
|
1907
|
+
o && o.length ? o.forEach((d, c) => {
|
|
1908
|
+
const f = n.options.find((s) => s._value === i.value);
|
|
1909
|
+
f && (r.row[d] = f[u[c]]);
|
|
1910
|
+
}) : r.row[r.column.field] = i.value;
|
|
1903
1911
|
});
|
|
1904
|
-
function
|
|
1905
|
-
const { DataAPIOID: u, SearchField:
|
|
1906
|
-
|
|
1912
|
+
function t(o) {
|
|
1913
|
+
const { DataAPIOID: u, SearchField: d } = n;
|
|
1914
|
+
o ? (n.loading = !0, e("remoteMethod", { DataAPIOID: u, SearchField: d, query: o, params: n })) : r.row[r.column.field] = null;
|
|
1907
1915
|
}
|
|
1908
|
-
return (
|
|
1916
|
+
return (o, u) => (openBlock(), createBlock(unref(ElSelect), {
|
|
1909
1917
|
class: "z-1 vxe-table--ignore-clear",
|
|
1910
|
-
modelValue:
|
|
1911
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
1918
|
+
modelValue: i.value,
|
|
1919
|
+
"onUpdate:modelValue": u[0] || (u[0] = (d) => i.value = d),
|
|
1912
1920
|
"allow-create": "",
|
|
1913
1921
|
"automatic-dropdown": "",
|
|
1914
1922
|
filterable: "",
|
|
1915
1923
|
remote: "",
|
|
1916
|
-
placeholder:
|
|
1924
|
+
placeholder: n.placeholder,
|
|
1917
1925
|
"popper-class": "select-dropdown",
|
|
1918
|
-
"remote-method":
|
|
1926
|
+
"remote-method": t,
|
|
1919
1927
|
clearable: ""
|
|
1920
1928
|
}, {
|
|
1921
1929
|
default: withCtx(() => [
|
|
1922
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(
|
|
1930
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(n.options, (d) => (openBlock(), createBlock(unref(ElOption), {
|
|
1923
1931
|
class: "vxe-table--ignore-clear",
|
|
1924
|
-
key:
|
|
1925
|
-
label:
|
|
1926
|
-
value:
|
|
1932
|
+
key: d._value,
|
|
1933
|
+
label: d._label,
|
|
1934
|
+
value: d._value
|
|
1927
1935
|
}, null, 8, ["label", "value"]))), 128))
|
|
1928
1936
|
]),
|
|
1929
1937
|
_: 1
|
|
@@ -1950,13 +1958,13 @@ const _sfc_main$c = /* @__PURE__ */ Object.assign({
|
|
|
1950
1958
|
default: () => ({})
|
|
1951
1959
|
}
|
|
1952
1960
|
},
|
|
1953
|
-
setup(
|
|
1954
|
-
const
|
|
1961
|
+
setup(a) {
|
|
1962
|
+
const l = a, e = ref(l.row[l.column.field]);
|
|
1955
1963
|
return onBeforeUnmount(() => {
|
|
1956
|
-
|
|
1957
|
-
}), (r,
|
|
1964
|
+
l.row[l.column.field] = e.value;
|
|
1965
|
+
}), (r, i) => (openBlock(), createBlock(unref(ElInput), {
|
|
1958
1966
|
modelValue: e.value,
|
|
1959
|
-
"onUpdate:modelValue":
|
|
1967
|
+
"onUpdate:modelValue": i[0] || (i[0] = (n) => e.value = n),
|
|
1960
1968
|
rows: 2,
|
|
1961
1969
|
type: "textarea"
|
|
1962
1970
|
}, null, 8, ["modelValue"]));
|
|
@@ -1982,28 +1990,28 @@ const _sfc_main$c = /* @__PURE__ */ Object.assign({
|
|
|
1982
1990
|
default: () => ({})
|
|
1983
1991
|
}
|
|
1984
1992
|
},
|
|
1985
|
-
setup(
|
|
1986
|
-
const
|
|
1987
|
-
label:
|
|
1988
|
-
value:
|
|
1993
|
+
setup(a) {
|
|
1994
|
+
const l = a, 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:
|
|
1993
|
-
|
|
1999
|
+
if (!l.column.params.TreeData) {
|
|
2000
|
+
const { options: i, ParentNodeField: n, NodeValueField: t } = l.column.params;
|
|
2001
|
+
l.column.params.TreeData = buildTree(deepClone(i), n, 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
|
-
|
|
2000
|
-
}), (
|
|
2007
|
+
l.row[l.column.field] ? r.value = l.row[l.column.field].split(",") : r.value = [];
|
|
2008
|
+
}), (i, n) => (openBlock(), createBlock(unref(ElTreeSelect), {
|
|
2001
2009
|
class: "z-1 vxe-table--ignore-clear",
|
|
2002
2010
|
modelValue: r.value,
|
|
2003
|
-
"onUpdate:modelValue":
|
|
2011
|
+
"onUpdate:modelValue": n[0] || (n[0] = (t) => r.value = t),
|
|
2004
2012
|
"automatic-dropdown": "",
|
|
2005
2013
|
"popper-class": "tree-select",
|
|
2006
|
-
data:
|
|
2014
|
+
data: a.column.params.TreeData,
|
|
2007
2015
|
props: e.value,
|
|
2008
2016
|
clearable: "",
|
|
2009
2017
|
multiple: "",
|
|
@@ -2032,31 +2040,31 @@ const _sfc_main$c = /* @__PURE__ */ Object.assign({
|
|
|
2032
2040
|
default: () => ({})
|
|
2033
2041
|
}
|
|
2034
2042
|
},
|
|
2035
|
-
setup(
|
|
2036
|
-
const
|
|
2037
|
-
label:
|
|
2038
|
-
value:
|
|
2043
|
+
setup(a) {
|
|
2044
|
+
const l = a, 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:
|
|
2043
|
-
|
|
2049
|
+
if (!l.column.params.TreeData) {
|
|
2050
|
+
const { options: i, ParentNodeField: n, NodeValueField: t } = l.column.params;
|
|
2051
|
+
l.column.params.TreeData = buildTree(deepClone(i), n, t);
|
|
2044
2052
|
}
|
|
2045
2053
|
return onBeforeUnmount(() => {
|
|
2046
|
-
|
|
2047
|
-
}), (
|
|
2054
|
+
l.row[l.column.field] = e.value;
|
|
2055
|
+
}), (i, n) => (openBlock(), createBlock(unref(ElTreeSelect), {
|
|
2048
2056
|
class: "z-1 vxe-table--ignore-clear",
|
|
2049
2057
|
modelValue: e.value,
|
|
2050
|
-
"onUpdate:modelValue":
|
|
2058
|
+
"onUpdate:modelValue": n[0] || (n[0] = (t) => e.value = t),
|
|
2051
2059
|
"automatic-dropdown": "",
|
|
2052
2060
|
"popper-class": "tree-select",
|
|
2053
|
-
data:
|
|
2061
|
+
data: a.column.params.TreeData,
|
|
2054
2062
|
clearable: "",
|
|
2055
2063
|
props: r.value,
|
|
2056
2064
|
indent: 12
|
|
2057
2065
|
}, {
|
|
2058
|
-
label: withCtx(({ label:
|
|
2059
|
-
createElementVNode("span", null, toDisplayString(
|
|
2066
|
+
label: withCtx(({ label: t, value: o }) => [
|
|
2067
|
+
createElementVNode("span", null, toDisplayString(a.column.params.options.find((u) => u[r.value.value] === o) ? t : ""), 1)
|
|
2060
2068
|
]),
|
|
2061
2069
|
_: 1
|
|
2062
2070
|
}, 8, ["modelValue", "data", "props"]));
|
|
@@ -2067,9 +2075,9 @@ const _sfc_main$c = /* @__PURE__ */ Object.assign({
|
|
|
2067
2075
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
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
|
-
for (const
|
|
2071
|
-
let
|
|
2072
|
-
comps[
|
|
2078
|
+
for (const a in modules) {
|
|
2079
|
+
let l = modules[a].default.name;
|
|
2080
|
+
comps[l] = modules[a].default;
|
|
2073
2081
|
}
|
|
2074
2082
|
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
2075
2083
|
__name: "paging",
|
|
@@ -2093,8 +2101,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2093
2101
|
}
|
|
2094
2102
|
},
|
|
2095
2103
|
emits: ["pageChange", "refresh"],
|
|
2096
|
-
setup(
|
|
2097
|
-
const e =
|
|
2104
|
+
setup(a, { emit: l }) {
|
|
2105
|
+
const e = a, r = ref(), i = ref([
|
|
2098
2106
|
"Total",
|
|
2099
2107
|
"Sizes",
|
|
2100
2108
|
"PrevJump",
|
|
@@ -2105,15 +2113,15 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2105
2113
|
"FullJump"
|
|
2106
2114
|
]);
|
|
2107
2115
|
onMounted(() => {
|
|
2108
|
-
e.gridOptions.Pages === !1 ?
|
|
2109
|
-
|
|
2116
|
+
e.gridOptions.Pages === !1 ? i.value = ["Total"] : useElementClientSize(r.value, ({ clientWidth: o }) => {
|
|
2117
|
+
o < 300 ? i.value = ["Total"] : o < 500 ? i.value = [
|
|
2110
2118
|
"Total",
|
|
2111
2119
|
"PrevJump",
|
|
2112
2120
|
"PrevPage",
|
|
2113
2121
|
"JumpNumber",
|
|
2114
2122
|
"NextPage",
|
|
2115
2123
|
"NextJump"
|
|
2116
|
-
] :
|
|
2124
|
+
] : i.value = [
|
|
2117
2125
|
"Total",
|
|
2118
2126
|
"Sizes",
|
|
2119
2127
|
"PrevJump",
|
|
@@ -2126,8 +2134,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2126
2134
|
});
|
|
2127
2135
|
}), watch(
|
|
2128
2136
|
() => e.gridOptions.Pages,
|
|
2129
|
-
(
|
|
2130
|
-
|
|
2137
|
+
(o) => {
|
|
2138
|
+
o === !1 ? i.value = ["Total"] : i.value = [
|
|
2131
2139
|
"Total",
|
|
2132
2140
|
"Sizes",
|
|
2133
2141
|
"PrevJump",
|
|
@@ -2139,11 +2147,11 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2139
2147
|
];
|
|
2140
2148
|
}
|
|
2141
2149
|
);
|
|
2142
|
-
const
|
|
2143
|
-
function
|
|
2144
|
-
|
|
2150
|
+
const n = l;
|
|
2151
|
+
function t() {
|
|
2152
|
+
n("pageChange", e.pagination);
|
|
2145
2153
|
}
|
|
2146
|
-
return (
|
|
2154
|
+
return (o, u) => (openBlock(), createElementBlock("div", {
|
|
2147
2155
|
ref_key: "pagingDom",
|
|
2148
2156
|
ref: r,
|
|
2149
2157
|
class: "flex items-center w-full h-12 border border-solid border-[#e8eaec] box-border"
|
|
@@ -2152,25 +2160,165 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2152
2160
|
size: "small",
|
|
2153
2161
|
class: "w-full !h-full",
|
|
2154
2162
|
background: "",
|
|
2155
|
-
"current-page":
|
|
2156
|
-
"onUpdate:currentPage": u[0] || (u[0] = (
|
|
2157
|
-
"page-size":
|
|
2158
|
-
"onUpdate:pageSize": u[1] || (u[1] = (
|
|
2159
|
-
total:
|
|
2160
|
-
layouts:
|
|
2161
|
-
onPageChange:
|
|
2162
|
-
"page-sizes":
|
|
2163
|
+
"current-page": a.pagination.Page,
|
|
2164
|
+
"onUpdate:currentPage": u[0] || (u[0] = (d) => a.pagination.Page = d),
|
|
2165
|
+
"page-size": a.pagination.PageSize,
|
|
2166
|
+
"onUpdate:pageSize": u[1] || (u[1] = (d) => a.pagination.PageSize = d),
|
|
2167
|
+
total: a.pagination.Total,
|
|
2168
|
+
layouts: i.value,
|
|
2169
|
+
onPageChange: t,
|
|
2170
|
+
"page-sizes": a.pagination.PageSizes
|
|
2163
2171
|
}, null, 8, ["current-page", "page-size", "total", "layouts", "page-sizes"])
|
|
2164
2172
|
], 512));
|
|
2165
2173
|
}
|
|
2166
|
-
})
|
|
2174
|
+
});
|
|
2175
|
+
function useFixedColumnPanel(a) {
|
|
2176
|
+
function l() {
|
|
2177
|
+
const t = a.value;
|
|
2178
|
+
if (!t) return;
|
|
2179
|
+
const o = getFixableColumns(t), u = new Map(o.map((s) => [s.field, s.fixed || ""])), d = o.filter((s) => u.get(s.field)).map((s) => s.field);
|
|
2180
|
+
let c = "left";
|
|
2181
|
+
const f = `
|
|
2182
|
+
<div style="padding:12px 14px;">
|
|
2183
|
+
<div style="margin-bottom:10px;">
|
|
2184
|
+
<label style="margin-right:12px;">
|
|
2185
|
+
<input type="radio" name="fixSide" value="left" checked /> 固定到左侧
|
|
2186
|
+
</label>
|
|
2187
|
+
<label>
|
|
2188
|
+
<input type="radio" name="fixSide" value="right" /> 固定到右侧
|
|
2189
|
+
</label>
|
|
2190
|
+
</div>
|
|
2191
|
+
|
|
2192
|
+
<div style="max-height:320px;overflow:auto;border:1px solid #eee;padding:8px;border-radius:6px;">
|
|
2193
|
+
${o.map((s) => {
|
|
2194
|
+
const _ = String(s.title ?? s.field), y = d.includes(s.field) ? "checked" : "", h = u.get(s.field) === "left" ? "左固定" : u.get(s.field) === "right" ? "右固定" : "";
|
|
2195
|
+
return `
|
|
2196
|
+
<div style="display:flex;align-items:center;gap:8px;margin:6px 0;">
|
|
2197
|
+
<input type="checkbox" class="fix-col" value="${s.field}" ${y} />
|
|
2198
|
+
<span>${escapeHtml(_)}</span>
|
|
2199
|
+
<span style="margin-left:auto;color:#999;font-size:12px;">${h}</span>
|
|
2200
|
+
</div>
|
|
2201
|
+
`;
|
|
2202
|
+
}).join("")}
|
|
2203
|
+
</div>
|
|
2204
|
+
</div>
|
|
2205
|
+
`;
|
|
2206
|
+
window.layer.open({
|
|
2207
|
+
type: 1,
|
|
2208
|
+
title: "<b>固定列设置</b>",
|
|
2209
|
+
area: ["520px", "520px"],
|
|
2210
|
+
content: f,
|
|
2211
|
+
// 你想要的:不持久化,只要本次页面生效
|
|
2212
|
+
btn: ["应用", "取消全部固定", "关闭"],
|
|
2213
|
+
success: function(s) {
|
|
2214
|
+
s[0].querySelectorAll('input[name="fixSide"]').forEach((y) => {
|
|
2215
|
+
y.addEventListener("change", () => {
|
|
2216
|
+
c = y.value === "right" ? "right" : "left";
|
|
2217
|
+
});
|
|
2218
|
+
});
|
|
2219
|
+
},
|
|
2220
|
+
// 应用
|
|
2221
|
+
btn1: function(s, _) {
|
|
2222
|
+
const y = Array.from(_[0].querySelectorAll("input.fix-col:checked")).map(
|
|
2223
|
+
(h) => h.value
|
|
2224
|
+
);
|
|
2225
|
+
applyFixed(t, o, y, c), window.layer.close(s);
|
|
2226
|
+
},
|
|
2227
|
+
// 取消全部固定
|
|
2228
|
+
btn2: function(s) {
|
|
2229
|
+
return e(), window.layer.close(s), !1;
|
|
2230
|
+
},
|
|
2231
|
+
// 关闭
|
|
2232
|
+
btn3: function(s) {
|
|
2233
|
+
window.layer.close(s);
|
|
2234
|
+
}
|
|
2235
|
+
});
|
|
2236
|
+
}
|
|
2237
|
+
function e() {
|
|
2238
|
+
var u;
|
|
2239
|
+
const t = a.value;
|
|
2240
|
+
if (!t) return;
|
|
2241
|
+
getFixableColumns(t).forEach((d) => {
|
|
2242
|
+
var c;
|
|
2243
|
+
return (c = t.setColumnFixed) == null ? void 0 : c.call(t, d, null);
|
|
2244
|
+
}), (u = t.refreshColumn) == null || u.call(t);
|
|
2245
|
+
}
|
|
2246
|
+
function r(t) {
|
|
2247
|
+
var c;
|
|
2248
|
+
const o = a.value;
|
|
2249
|
+
if (!o || !t) return;
|
|
2250
|
+
const u = getFixableColumns(o), d = n(u, t);
|
|
2251
|
+
d < 0 || (u.forEach((f, s) => {
|
|
2252
|
+
var _;
|
|
2253
|
+
(_ = o.setColumnFixed) == null || _.call(o, f, s <= d ? "left" : null);
|
|
2254
|
+
}), (c = o.refreshColumn) == null || c.call(o));
|
|
2255
|
+
}
|
|
2256
|
+
function i(t) {
|
|
2257
|
+
var c;
|
|
2258
|
+
const o = a.value;
|
|
2259
|
+
if (!o || !t) return;
|
|
2260
|
+
const u = getFixableColumns(o), d = n(u, t);
|
|
2261
|
+
d < 0 || (u.forEach((f, s) => {
|
|
2262
|
+
var _;
|
|
2263
|
+
(_ = o.setColumnFixed) == null || _.call(o, f, s >= d ? "right" : null);
|
|
2264
|
+
}), (c = o.refreshColumn) == null || c.call(o));
|
|
2265
|
+
}
|
|
2266
|
+
function n(t, o) {
|
|
2267
|
+
const u = (o == null ? void 0 : o.field) || (o == null ? void 0 : o.property);
|
|
2268
|
+
return u ? t.findIndex((d) => ((d == null ? void 0 : d.field) || (d == null ? void 0 : d.property)) === u) : -1;
|
|
2269
|
+
}
|
|
2270
|
+
return {
|
|
2271
|
+
openFixPanel: l,
|
|
2272
|
+
clearAllFixed: e,
|
|
2273
|
+
freezeToLeft: r,
|
|
2274
|
+
freezeToRight: i
|
|
2275
|
+
};
|
|
2276
|
+
}
|
|
2277
|
+
function getFixableColumns(a) {
|
|
2278
|
+
var e;
|
|
2279
|
+
return getLeafColumns(((e = a.getColumns) == null ? void 0 : e.call(a)) || []).filter((r) => r && r.field).filter((r) => !["seq", "checkbox", "radio", "expand"].includes(r.type)).filter((r) => r.type !== "action");
|
|
2280
|
+
}
|
|
2281
|
+
function getLeafColumns(a = []) {
|
|
2282
|
+
const l = [], e = (r) => {
|
|
2283
|
+
r.forEach((i) => {
|
|
2284
|
+
i && (Array.isArray(i.children) && i.children.length ? e(i.children) : l.push(i));
|
|
2285
|
+
});
|
|
2286
|
+
};
|
|
2287
|
+
return e(a), l;
|
|
2288
|
+
}
|
|
2289
|
+
function applyFixed(a, l, e, r) {
|
|
2290
|
+
var n;
|
|
2291
|
+
const i = new Set(e);
|
|
2292
|
+
l.forEach((t) => {
|
|
2293
|
+
var o;
|
|
2294
|
+
return (o = a.setColumnFixed) == null ? void 0 : o.call(a, t, null);
|
|
2295
|
+
}), l.forEach((t) => {
|
|
2296
|
+
var o;
|
|
2297
|
+
i.has(t.field) && ((o = a.setColumnFixed) == null || o.call(a, t, r));
|
|
2298
|
+
}), (n = a.refreshColumn) == null || n.call(a);
|
|
2299
|
+
}
|
|
2300
|
+
function escapeHtml(a) {
|
|
2301
|
+
return a.replace(
|
|
2302
|
+
/[&<>"']/g,
|
|
2303
|
+
(l) => ({
|
|
2304
|
+
"&": "&",
|
|
2305
|
+
"<": "<",
|
|
2306
|
+
">": ">",
|
|
2307
|
+
'"': """,
|
|
2308
|
+
"'": "'"
|
|
2309
|
+
})[l]
|
|
2310
|
+
);
|
|
2311
|
+
}
|
|
2312
|
+
const _hoisted_1$2 = { class: "h-full w-full" }, _hoisted_2$2 = { style: { "padding-top": "1px", "box-sizing": "border-box" } }, _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
2167
2313
|
name: "HrTable",
|
|
2168
2314
|
__name: "index",
|
|
2169
2315
|
props: {
|
|
2170
2316
|
config: { type: Object, default: () => ({}) },
|
|
2171
2317
|
data: { type: Array, default: () => [] },
|
|
2172
2318
|
pagination: { type: Object },
|
|
2173
|
-
gridRef: { type: Object, default: () => ({}) }
|
|
2319
|
+
gridRef: { type: Object, default: () => ({}) },
|
|
2320
|
+
dblEditEnabled: { type: Boolean, default: !1 }
|
|
2321
|
+
//表格单元双击编辑的属性
|
|
2174
2322
|
},
|
|
2175
2323
|
emits: [
|
|
2176
2324
|
"ActionClick",
|
|
@@ -2188,88 +2336,88 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2188
2336
|
"tableSelectChange",
|
|
2189
2337
|
"tableSelectRemote"
|
|
2190
2338
|
],
|
|
2191
|
-
setup(
|
|
2192
|
-
const r =
|
|
2339
|
+
setup(a, { expose: l, emit: e }) {
|
|
2340
|
+
const r = a, i = e, n = ref(), { openFixPanel: t, clearAllFixed: o, freezeToLeft: u, freezeToRight: d } = useFixedColumnPanel(n), c = reactive(r.config);
|
|
2193
2341
|
reactive(r.config.columns);
|
|
2194
|
-
let
|
|
2342
|
+
let f = ref(!1), s = null;
|
|
2195
2343
|
onMounted(() => {
|
|
2196
|
-
document.addEventListener("click",
|
|
2344
|
+
document.addEventListener("click", H, !0);
|
|
2197
2345
|
}), onBeforeUnmount(() => {
|
|
2198
|
-
document.removeEventListener("click",
|
|
2346
|
+
document.removeEventListener("click", H, !0), z();
|
|
2199
2347
|
});
|
|
2200
2348
|
const {
|
|
2201
|
-
CheckboxRender:
|
|
2202
|
-
ColorPickerRender:
|
|
2203
|
-
IconPickerRender:
|
|
2204
|
-
RadioRender:
|
|
2205
|
-
ProgressRender:
|
|
2206
|
-
ActionRender:
|
|
2207
|
-
SelectRender:
|
|
2208
|
-
TreeSelectRender:
|
|
2209
|
-
SelectMultipleRender:
|
|
2210
|
-
TreeMultipleSelectRender:
|
|
2211
|
-
ChooseFrameRender:
|
|
2212
|
-
PickPeopleRender:
|
|
2213
|
-
FileRender:
|
|
2214
|
-
CustomRender:
|
|
2215
|
-
DatePickerRender:
|
|
2216
|
-
LabelRender:
|
|
2349
|
+
CheckboxRender: _,
|
|
2350
|
+
ColorPickerRender: y,
|
|
2351
|
+
IconPickerRender: h,
|
|
2352
|
+
RadioRender: k,
|
|
2353
|
+
ProgressRender: w,
|
|
2354
|
+
ActionRender: E,
|
|
2355
|
+
SelectRender: j,
|
|
2356
|
+
TreeSelectRender: R,
|
|
2357
|
+
SelectMultipleRender: C,
|
|
2358
|
+
TreeMultipleSelectRender: S,
|
|
2359
|
+
ChooseFrameRender: D,
|
|
2360
|
+
PickPeopleRender: F,
|
|
2361
|
+
FileRender: U,
|
|
2362
|
+
CustomRender: q,
|
|
2363
|
+
DatePickerRender: W,
|
|
2364
|
+
LabelRender: K
|
|
2217
2365
|
} = 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
|
-
(
|
|
2366
|
+
InputEditor: J,
|
|
2367
|
+
TreeSelectEditor: G,
|
|
2368
|
+
SelectEditor: Q,
|
|
2369
|
+
TextareaEditor: X,
|
|
2370
|
+
DatePickerEditor: Z,
|
|
2371
|
+
SelectMultipleEditor: ee,
|
|
2372
|
+
TreeMultipleSelectEditor: te,
|
|
2373
|
+
InputNumberEditor: le,
|
|
2374
|
+
SelectRemoteEditor: oe
|
|
2375
|
+
} = comps, re = computed(() => {
|
|
2376
|
+
var g, v;
|
|
2377
|
+
return ((((g = r.pagination) == null ? void 0 : g.Page) || 1) - 1) * (((v = r.pagination) == null ? void 0 : v.PageSize) || 1e3);
|
|
2378
|
+
}), Y = computed(() => {
|
|
2379
|
+
var v, m, p, b;
|
|
2380
|
+
if (c.Number)
|
|
2381
|
+
if (c.columns.some(
|
|
2382
|
+
(V) => V.type === "seq" || V.children && V.children.some((B) => B.type === "seq")
|
|
2235
2383
|
))
|
|
2236
|
-
|
|
2384
|
+
c.columns = c.columns.filter((V) => V.type === "seq" ? !1 : V.children ? (V.children = V.children.filter((B) => B.type !== "seq"), V.children.length > 0) : !0);
|
|
2237
2385
|
else {
|
|
2238
|
-
let
|
|
2239
|
-
const
|
|
2386
|
+
let V = c.columns.find((O) => ["left", "right"].includes(O.fixed));
|
|
2387
|
+
const B = {
|
|
2240
2388
|
slots: {},
|
|
2241
2389
|
params: {},
|
|
2242
2390
|
type: "seq",
|
|
2243
2391
|
title: "序号",
|
|
2244
2392
|
align: "center",
|
|
2245
2393
|
width: 50,
|
|
2246
|
-
fixed:
|
|
2394
|
+
fixed: V || void 0
|
|
2247
2395
|
};
|
|
2248
|
-
|
|
2396
|
+
c.columns.unshift(B);
|
|
2249
2397
|
}
|
|
2250
2398
|
if (r.config.AutoFullWidth) {
|
|
2251
|
-
const
|
|
2252
|
-
let
|
|
2253
|
-
return
|
|
2254
|
-
}, 0),
|
|
2255
|
-
if (
|
|
2256
|
-
if (!
|
|
2257
|
-
setTimeout(() =>
|
|
2399
|
+
const V = A(r.config.columns || []).filter(($) => !$.children), B = V.reduce(($, T) => {
|
|
2400
|
+
let P = Number(T.width);
|
|
2401
|
+
return $ + (isNaN(P) ? 100 : P);
|
|
2402
|
+
}, 0), O = ($ = 0) => {
|
|
2403
|
+
if ($ > 50) return;
|
|
2404
|
+
if (!n.value) {
|
|
2405
|
+
setTimeout(() => O(++$), 0);
|
|
2258
2406
|
return;
|
|
2259
2407
|
}
|
|
2260
|
-
const
|
|
2261
|
-
|
|
2262
|
-
let
|
|
2263
|
-
|
|
2408
|
+
const T = n.value.$el.clientWidth;
|
|
2409
|
+
B !== T && V.forEach((P) => {
|
|
2410
|
+
let M = Number(P.width);
|
|
2411
|
+
P.width = Number(((isNaN(M) ? 100 : M) * (T / B)).toFixed(0));
|
|
2264
2412
|
});
|
|
2265
2413
|
};
|
|
2266
|
-
|
|
2414
|
+
O();
|
|
2267
2415
|
}
|
|
2268
|
-
let
|
|
2416
|
+
let g = {
|
|
2269
2417
|
keepSource: !0,
|
|
2270
2418
|
showOverflow: "title",
|
|
2271
2419
|
seqConfig: {
|
|
2272
|
-
seqMethod: (
|
|
2420
|
+
seqMethod: (x) => re.value + x.$rowIndex + 1
|
|
2273
2421
|
},
|
|
2274
2422
|
exportConfig: {},
|
|
2275
2423
|
importConfig: {},
|
|
@@ -2277,25 +2425,35 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2277
2425
|
columns: [],
|
|
2278
2426
|
...r.config,
|
|
2279
2427
|
// data: [...props.data], //不需要开启,目前是通过异步加载数据,开启会导致数据被当前配置覆盖
|
|
2428
|
+
// ✅ 关键:开启“单元格选中”,才会出现 col--selected / col--current 等 class
|
|
2429
|
+
mouseConfig: r.dblEditEnabled ? { selected: !0 } : (v = r.config) == null ? void 0 : v.mouseConfig,
|
|
2430
|
+
// ✅ 开单元格高亮(不同版本字段名可能是 highlightCell)
|
|
2431
|
+
highlightCell: !0,
|
|
2432
|
+
highlightCurrentRow: !0,
|
|
2433
|
+
// 你已有 row--current 的样式
|
|
2280
2434
|
editConfig: {
|
|
2281
|
-
trigger: "click",
|
|
2435
|
+
//trigger: "click", //旧的
|
|
2282
2436
|
mode: "cell",
|
|
2283
2437
|
showStatus: !0,
|
|
2284
2438
|
// 只对 keep-source 开启有效,是否显示单元格新增与修改状态
|
|
2285
2439
|
showIcon: !1,
|
|
2286
2440
|
// 因为对过滤行进行了修改 该属性必须为false
|
|
2287
|
-
...(
|
|
2441
|
+
...(m = r.config) == null ? void 0 : m.editConfig,
|
|
2442
|
+
// ⭐ 最终由父组件 dblEditEnabled 决定
|
|
2443
|
+
trigger: r.dblEditEnabled ? "dblclick" : ((b = (p = r.config) == null ? void 0 : p.editConfig) == null ? void 0 : b.trigger) || "click"
|
|
2288
2444
|
},
|
|
2289
|
-
showFooter:
|
|
2445
|
+
showFooter: c["Total-Row"],
|
|
2290
2446
|
// 启用表尾统计
|
|
2291
2447
|
// showFooter: true, // 启用统计行
|
|
2292
|
-
footerMethod({ columns:
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2448
|
+
footerMethod({ columns: x, data: V }) {
|
|
2449
|
+
var B;
|
|
2450
|
+
if (!(!c["Total-Field"] || !((B = c["Total-Field"]) != null && B.length)))
|
|
2451
|
+
return [
|
|
2452
|
+
x.map((O, $) => $ == 0 || (typeof c["Total-Field"] == "string" ? O.field === c["Total-Field"] : Array.isArray(c["Total-Field"]) && c["Total-Field"].includes(O.field)) ? $ === 0 ? "合计" : c["Total-Field"].includes(O.field) ? L(V, O.field).toLocaleString("zh-CN") : "" : void 0)
|
|
2453
|
+
];
|
|
2296
2454
|
}
|
|
2297
2455
|
};
|
|
2298
|
-
return
|
|
2456
|
+
return c.BodyMenu && (g.menuConfig = {
|
|
2299
2457
|
body: {
|
|
2300
2458
|
options: [[
|
|
2301
2459
|
{ type: "print", name: "打印", prefixConfig: { icon: "vxe-icon-print" } },
|
|
@@ -2303,372 +2461,454 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2303
2461
|
{ type: "myBtn2", name: "导出全部", prefixConfig: { icon: "vxe-icon-send-fill" } }
|
|
2304
2462
|
]]
|
|
2305
2463
|
}
|
|
2306
|
-
}),
|
|
2307
|
-
}),
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2464
|
+
}), g;
|
|
2465
|
+
}), I = ref(!1);
|
|
2466
|
+
let N = null;
|
|
2467
|
+
function ne(g) {
|
|
2468
|
+
const v = g.clipboardData;
|
|
2469
|
+
if (!v) return null;
|
|
2470
|
+
const m = v.getData("text/html");
|
|
2471
|
+
if (m && /<table/i.test(m)) {
|
|
2472
|
+
const B = new DOMParser().parseFromString(m, "text/html").querySelector("table");
|
|
2473
|
+
if (B)
|
|
2474
|
+
return Array.from(B.querySelectorAll("tr")).map(($) => Array.from($.querySelectorAll("th,td")).map((P) => (Array.from(P.querySelectorAll("br")).forEach((M) => M.replaceWith(`
|
|
2475
|
+
`)), (P.textContent || "").replace(/\u00A0/g, " ").trimEnd())));
|
|
2476
|
+
}
|
|
2477
|
+
const p = v.getData("text/plain") || "";
|
|
2478
|
+
if (!p) return null;
|
|
2479
|
+
const x = p.replace(/\r\n/g, `
|
|
2480
|
+
`).replace(/\r/g, `
|
|
2481
|
+
`).split(`
|
|
2482
|
+
`);
|
|
2483
|
+
for (; x.length && x[x.length - 1] === ""; ) x.pop();
|
|
2484
|
+
return x.map((V) => V.split(" "));
|
|
2485
|
+
}
|
|
2486
|
+
function ae() {
|
|
2487
|
+
N || (N = (g) => {
|
|
2488
|
+
var m, p, b;
|
|
2489
|
+
if (!I.value) return;
|
|
2490
|
+
g.preventDefault(), g.stopPropagation(), (m = g.stopImmediatePropagation) == null || m.call(g);
|
|
2491
|
+
const v = ne(g);
|
|
2492
|
+
v && ((b = (p = r.gridRef) == null ? void 0 : p.onGridPaste) == null || b.call(p, v));
|
|
2493
|
+
}, window.addEventListener("paste", N, !0));
|
|
2494
|
+
}
|
|
2495
|
+
function z() {
|
|
2496
|
+
N && (window.removeEventListener("paste", N, !0), N = null);
|
|
2497
|
+
}
|
|
2498
|
+
const ie = {
|
|
2499
|
+
//设置表头右键 存储当前列信息
|
|
2500
|
+
headerCellMenu({ column: g }) {
|
|
2501
|
+
s = g;
|
|
2502
|
+
},
|
|
2503
|
+
cellMenu({ row: g }) {
|
|
2504
|
+
const v = n.value;
|
|
2505
|
+
v && v.setCurrentRow(g);
|
|
2506
|
+
},
|
|
2507
|
+
//单击事件 设置选中行和选择单元格
|
|
2508
|
+
cellClick({ row: g, column: v }) {
|
|
2509
|
+
var p, b;
|
|
2510
|
+
const m = n.value;
|
|
2511
|
+
m && ((p = m.setCurrentCell) == null || p.call(m, g, v.field), m.currentCell = v, (b = m.setCurrentRow) == null || b.call(m, g));
|
|
2512
|
+
},
|
|
2513
|
+
//双击事件 设置选中行和选择单元格
|
|
2514
|
+
cellDblclick({ row: g, column: v }) {
|
|
2515
|
+
var p, b;
|
|
2516
|
+
const m = n.value;
|
|
2517
|
+
m && ((p = m.setCurrentCell) == null || p.call(m, g, v.field), (b = m.setCurrentRow) == null || b.call(m, g));
|
|
2311
2518
|
},
|
|
2312
|
-
async menuClick({ menu:
|
|
2313
|
-
const
|
|
2314
|
-
if (
|
|
2315
|
-
switch (
|
|
2519
|
+
async menuClick({ menu: g }) {
|
|
2520
|
+
const v = n.value;
|
|
2521
|
+
if (v)
|
|
2522
|
+
switch (g.code) {
|
|
2316
2523
|
case "reload":
|
|
2317
|
-
const
|
|
2318
|
-
r.gridRef.echoData(), layer.close(
|
|
2524
|
+
const m = layer.load(2, { shade: [0.5, "#fff"] });
|
|
2525
|
+
r.gridRef.echoData(), layer.close(m);
|
|
2319
2526
|
break;
|
|
2320
2527
|
case "Print":
|
|
2321
|
-
|
|
2528
|
+
v.print({
|
|
2529
|
+
columns: v.getColumns().filter((x) => x.type !== "action" && x.type !== "checkbox"),
|
|
2530
|
+
pageHeader: [{ text: r.config.PageName, align: "center" }],
|
|
2531
|
+
// 目前无效
|
|
2532
|
+
pageFooter: [{ text: "第 {pageNum} 页 共 {totalPage} 页", align: "center" }]
|
|
2533
|
+
//目前无效
|
|
2534
|
+
});
|
|
2322
2535
|
break;
|
|
2323
2536
|
case "exportCurrent":
|
|
2324
|
-
const
|
|
2325
|
-
|
|
2537
|
+
const p = (v == null ? void 0 : v.getTableData().tableData) || [];
|
|
2538
|
+
v.exportData({
|
|
2326
2539
|
type: "csv",
|
|
2327
2540
|
isHeader: !0,
|
|
2328
2541
|
isFooter: !1,
|
|
2329
|
-
columns:
|
|
2542
|
+
columns: v.getColumns().filter((x) => x.type !== "action" && x.type !== "checkbox"),
|
|
2330
2543
|
// 过滤出不需要导出的列
|
|
2331
2544
|
filename: `${r.config.PageName}(${H_getISODate(/* @__PURE__ */ new Date())})`,
|
|
2332
2545
|
// 文件名
|
|
2333
|
-
data:
|
|
2546
|
+
data: p
|
|
2334
2547
|
// 当前页数据
|
|
2335
2548
|
});
|
|
2336
2549
|
break;
|
|
2337
2550
|
case "exportAll":
|
|
2338
|
-
let
|
|
2339
|
-
|
|
2551
|
+
let b = await r.gridRef.handleExport();
|
|
2552
|
+
v.exportData({
|
|
2340
2553
|
type: "csv",
|
|
2341
2554
|
isHeader: !0,
|
|
2342
2555
|
isFooter: !0,
|
|
2343
|
-
columns:
|
|
2556
|
+
columns: v.getColumns().filter((x) => x.type !== "action" && x.type !== "checkbox" && x.type !== "seq"),
|
|
2344
2557
|
// 过滤出不需要导出的列
|
|
2345
2558
|
filename: `${r.config.PageName == "" ? "导出" : r.config.PageName}(${H_getISODate(/* @__PURE__ */ new Date())})`,
|
|
2346
2559
|
// 文件名
|
|
2347
|
-
data:
|
|
2560
|
+
data: b
|
|
2348
2561
|
});
|
|
2349
2562
|
break;
|
|
2350
|
-
case "
|
|
2351
|
-
|
|
2563
|
+
case "OpenCopy":
|
|
2564
|
+
r.gridRef.openCopy(), I.value = !0, ae();
|
|
2565
|
+
break;
|
|
2566
|
+
case "CloseCopy":
|
|
2567
|
+
r.gridRef.closeCopy(), I.value = !1, z();
|
|
2568
|
+
break;
|
|
2569
|
+
case "colFixPanel":
|
|
2570
|
+
t();
|
|
2571
|
+
break;
|
|
2572
|
+
case "colUnfixAll":
|
|
2573
|
+
o();
|
|
2574
|
+
break;
|
|
2575
|
+
case "freezeLeftTo":
|
|
2576
|
+
u(s);
|
|
2577
|
+
break;
|
|
2578
|
+
case "freezeRightTo":
|
|
2579
|
+
d(s);
|
|
2352
2580
|
break;
|
|
2353
2581
|
}
|
|
2354
2582
|
}
|
|
2355
2583
|
};
|
|
2356
|
-
function
|
|
2357
|
-
|
|
2584
|
+
function ce(g) {
|
|
2585
|
+
i("ActionClick", g);
|
|
2358
2586
|
}
|
|
2359
|
-
function
|
|
2360
|
-
|
|
2587
|
+
function ue(...g) {
|
|
2588
|
+
i("PageChange", ...g);
|
|
2361
2589
|
}
|
|
2362
|
-
function
|
|
2363
|
-
|
|
2590
|
+
function se(...g) {
|
|
2591
|
+
i("Refresh", ...g);
|
|
2364
2592
|
}
|
|
2365
|
-
function
|
|
2366
|
-
|
|
2593
|
+
function de(...g) {
|
|
2594
|
+
i("FilterSearch", ...g);
|
|
2367
2595
|
}
|
|
2368
|
-
function
|
|
2369
|
-
|
|
2596
|
+
function fe(...g) {
|
|
2597
|
+
i("SortChange", ...g);
|
|
2370
2598
|
}
|
|
2371
|
-
function
|
|
2372
|
-
|
|
2599
|
+
function me(...g) {
|
|
2600
|
+
i("ActionRenderBefore", ...g);
|
|
2373
2601
|
}
|
|
2374
|
-
function
|
|
2375
|
-
|
|
2602
|
+
function pe(...g) {
|
|
2603
|
+
i("FileClick", ...g);
|
|
2376
2604
|
}
|
|
2377
|
-
function
|
|
2378
|
-
|
|
2605
|
+
function _e(g, v, m) {
|
|
2606
|
+
g.column = v, g.row = m, i("tableSelectRemote", g);
|
|
2379
2607
|
}
|
|
2380
|
-
function
|
|
2381
|
-
|
|
2608
|
+
function ge(...g) {
|
|
2609
|
+
i("tableSelectChange", ...g);
|
|
2382
2610
|
}
|
|
2383
|
-
function
|
|
2384
|
-
|
|
2611
|
+
function he(...g) {
|
|
2612
|
+
i("RemoteMethod", ...g);
|
|
2385
2613
|
}
|
|
2386
|
-
function
|
|
2387
|
-
|
|
2614
|
+
function ve(...g) {
|
|
2615
|
+
i("ChooseBefor", ...g);
|
|
2388
2616
|
}
|
|
2389
|
-
function
|
|
2390
|
-
|
|
2617
|
+
function be(...g) {
|
|
2618
|
+
i("PickPeople", ...g);
|
|
2391
2619
|
}
|
|
2392
|
-
function
|
|
2393
|
-
|
|
2620
|
+
function ye(...g) {
|
|
2621
|
+
i("CheckboxChange", ...g);
|
|
2394
2622
|
}
|
|
2395
|
-
function
|
|
2396
|
-
return
|
|
2397
|
-
|
|
2398
|
-
}),
|
|
2623
|
+
function A(g, v = "children", m = []) {
|
|
2624
|
+
return g.forEach((p) => {
|
|
2625
|
+
m.push(p), p[v] && p[v].length > 0 && A(p[v], v, m);
|
|
2626
|
+
}), m;
|
|
2399
2627
|
}
|
|
2400
|
-
const
|
|
2401
|
-
var
|
|
2402
|
-
|
|
2403
|
-
},
|
|
2404
|
-
|
|
2405
|
-
let
|
|
2406
|
-
|
|
2628
|
+
const ke = ({ menu: g }) => {
|
|
2629
|
+
var v, m;
|
|
2630
|
+
g.type == "print" ? (v = n.value) == null || v.openPrint() : g.type == "export" && ((m = n.value) == null || m.openExport());
|
|
2631
|
+
}, we = (g) => {
|
|
2632
|
+
f.value = !0;
|
|
2633
|
+
let v = c.columns.splice(g._index.oldIndex, 1)[0];
|
|
2634
|
+
c.columns.splice((g._index.newIndex || 1) - 1, 0, v);
|
|
2407
2635
|
};
|
|
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
|
|
2421
|
-
var
|
|
2422
|
-
if (((
|
|
2423
|
-
for (const
|
|
2424
|
-
|
|
2636
|
+
function H(g) {
|
|
2637
|
+
const v = g.target.closest("tr.vxe-body--row");
|
|
2638
|
+
if (!v || !(n != null && n.value)) return;
|
|
2639
|
+
const m = v.getAttribute("rowid");
|
|
2640
|
+
if (!m) return;
|
|
2641
|
+
const p = n.value.getRowById(m);
|
|
2642
|
+
p && n.value.setCurrentRow(p);
|
|
2643
|
+
}
|
|
2644
|
+
function L(g, v) {
|
|
2645
|
+
if (!(g instanceof Array)) return 0;
|
|
2646
|
+
function m(p, b) {
|
|
2647
|
+
let x = 0;
|
|
2648
|
+
function V(B) {
|
|
2649
|
+
var O;
|
|
2650
|
+
if (((O = B.children) == null ? void 0 : O.length) > 0)
|
|
2651
|
+
for (const $ of B.children)
|
|
2652
|
+
V($);
|
|
2425
2653
|
else
|
|
2426
|
-
|
|
2654
|
+
x = H_calculate(`${x}+${B[b] || 0}`);
|
|
2427
2655
|
}
|
|
2428
|
-
return
|
|
2656
|
+
return V(p), x;
|
|
2429
2657
|
}
|
|
2430
|
-
return
|
|
2431
|
-
var
|
|
2432
|
-
if (!(
|
|
2433
|
-
return H_calculate(`${
|
|
2434
|
-
if (((
|
|
2435
|
-
return H_calculate(`${
|
|
2436
|
-
if (((
|
|
2437
|
-
let
|
|
2438
|
-
return H_calculate(`${
|
|
2658
|
+
return g.reduce((p, b) => {
|
|
2659
|
+
var x, V;
|
|
2660
|
+
if (!(b != null && b.children))
|
|
2661
|
+
return H_calculate(`${p}+${Number(b[v]) || 0}`);
|
|
2662
|
+
if (((x = b.children) == null ? void 0 : x.length) === 0 && (b.ParentOID === "00000000-0000-0000-0000-000000000000" || b.ParentOID === null))
|
|
2663
|
+
return H_calculate(`${p}+${Number(b[v]) || 0}`);
|
|
2664
|
+
if (((V = b.children) == null ? void 0 : V.length) > 0 && (b.ParentOID === "00000000-0000-0000-0000-000000000000" || b.ParentOID === null)) {
|
|
2665
|
+
let B = m(b, v);
|
|
2666
|
+
return H_calculate(`${p}+${B}`);
|
|
2439
2667
|
}
|
|
2440
|
-
return
|
|
2668
|
+
return p;
|
|
2441
2669
|
}, 0);
|
|
2442
2670
|
}
|
|
2443
|
-
return
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2671
|
+
return watch(
|
|
2672
|
+
() => r.dblEditEnabled,
|
|
2673
|
+
async (g) => {
|
|
2674
|
+
var v, m, p;
|
|
2675
|
+
if (!g) {
|
|
2676
|
+
await nextTick();
|
|
2677
|
+
const b = n.value;
|
|
2678
|
+
if (!b) return;
|
|
2679
|
+
(v = b.clearEdit) == null || v.call(b), (m = b.clearSelected) == null || m.call(b), (p = b.clearCurrentRow) == null || p.call(b);
|
|
2680
|
+
}
|
|
2681
|
+
},
|
|
2682
|
+
{ immediate: !0 }
|
|
2683
|
+
), l({
|
|
2684
|
+
gridRef: n,
|
|
2685
|
+
getFieldTotal: L,
|
|
2686
|
+
gridOptions: Y
|
|
2687
|
+
}), (g, v) => (openBlock(), createElementBlock("div", _hoisted_1$2, [
|
|
2448
2688
|
createVNode(unref(VxeGrid), mergeProps({
|
|
2449
|
-
class: "grid-table",
|
|
2689
|
+
class: ["grid-table", { "dbl-edit-on": r.dblEditEnabled }],
|
|
2450
2690
|
ref_key: "gridRef",
|
|
2451
|
-
ref:
|
|
2452
|
-
}, { ...
|
|
2453
|
-
onMenuClick:
|
|
2454
|
-
onColumnDragend:
|
|
2691
|
+
ref: n
|
|
2692
|
+
}, { ...Y.value, ...g.$attrs }, toHandlers(ie), {
|
|
2693
|
+
onMenuClick: ke,
|
|
2694
|
+
onColumnDragend: we,
|
|
2455
2695
|
"show-overflow": "tooltip",
|
|
2456
|
-
onCheckboxChange:
|
|
2696
|
+
onCheckboxChange: ye
|
|
2457
2697
|
}), {
|
|
2458
|
-
FilterRows: withCtx(({ column:
|
|
2698
|
+
FilterRows: withCtx(({ column: m }) => [
|
|
2459
2699
|
createVNode(_sfc_main$t, {
|
|
2460
|
-
column:
|
|
2461
|
-
"grid-ref":
|
|
2462
|
-
onFilterSearch:
|
|
2463
|
-
onSortChange:
|
|
2700
|
+
column: m,
|
|
2701
|
+
"grid-ref": n.value,
|
|
2702
|
+
onFilterSearch: de,
|
|
2703
|
+
onSortChange: fe
|
|
2464
2704
|
}, null, 8, ["column", "grid-ref"])
|
|
2465
2705
|
]),
|
|
2466
|
-
ActionRender: withCtx(({ row:
|
|
2467
|
-
createVNode(unref(
|
|
2468
|
-
row:
|
|
2469
|
-
column:
|
|
2470
|
-
"grid-ref":
|
|
2471
|
-
onActionClick:
|
|
2472
|
-
onActionRenderBefore:
|
|
2706
|
+
ActionRender: withCtx(({ row: m, column: p }) => [
|
|
2707
|
+
createVNode(unref(E), {
|
|
2708
|
+
row: m,
|
|
2709
|
+
column: p,
|
|
2710
|
+
"grid-ref": n.value,
|
|
2711
|
+
onActionClick: ce,
|
|
2712
|
+
onActionRenderBefore: me
|
|
2473
2713
|
}, null, 8, ["row", "column", "grid-ref"])
|
|
2474
2714
|
]),
|
|
2475
|
-
RadioRender: withCtx(({ row:
|
|
2476
|
-
createVNode(unref(
|
|
2477
|
-
row:
|
|
2478
|
-
column:
|
|
2479
|
-
"grid-ref":
|
|
2715
|
+
RadioRender: withCtx(({ row: m, column: p }) => [
|
|
2716
|
+
createVNode(unref(k), {
|
|
2717
|
+
row: m,
|
|
2718
|
+
column: p,
|
|
2719
|
+
"grid-ref": n.value
|
|
2480
2720
|
}, null, 8, ["row", "column", "grid-ref"])
|
|
2481
2721
|
]),
|
|
2482
|
-
CheckboxRender: withCtx(({ row:
|
|
2483
|
-
createVNode(unref(
|
|
2484
|
-
row:
|
|
2485
|
-
column:
|
|
2486
|
-
"grid-ref":
|
|
2722
|
+
CheckboxRender: withCtx(({ row: m, column: p }) => [
|
|
2723
|
+
createVNode(unref(_), {
|
|
2724
|
+
row: m,
|
|
2725
|
+
column: p,
|
|
2726
|
+
"grid-ref": n.value
|
|
2487
2727
|
}, null, 8, ["row", "column", "grid-ref"])
|
|
2488
2728
|
]),
|
|
2489
|
-
ColorPickerRender: withCtx(({ row:
|
|
2490
|
-
createVNode(unref(
|
|
2491
|
-
row:
|
|
2492
|
-
column:
|
|
2493
|
-
"grid-ref":
|
|
2729
|
+
ColorPickerRender: withCtx(({ row: m, column: p }) => [
|
|
2730
|
+
createVNode(unref(y), {
|
|
2731
|
+
row: m,
|
|
2732
|
+
column: p,
|
|
2733
|
+
"grid-ref": n.value
|
|
2494
2734
|
}, null, 8, ["row", "column", "grid-ref"])
|
|
2495
2735
|
]),
|
|
2496
|
-
IconPickerRender: withCtx(({ row:
|
|
2497
|
-
createVNode(unref(
|
|
2498
|
-
row:
|
|
2499
|
-
column:
|
|
2500
|
-
"grid-ref":
|
|
2736
|
+
IconPickerRender: withCtx(({ row: m, column: p }) => [
|
|
2737
|
+
createVNode(unref(h), {
|
|
2738
|
+
row: m,
|
|
2739
|
+
column: p,
|
|
2740
|
+
"grid-ref": n.value
|
|
2501
2741
|
}, null, 8, ["row", "column", "grid-ref"])
|
|
2502
2742
|
]),
|
|
2503
|
-
ProgressRender: withCtx(({ row:
|
|
2504
|
-
createVNode(unref(
|
|
2505
|
-
row:
|
|
2506
|
-
column:
|
|
2507
|
-
"grid-ref":
|
|
2743
|
+
ProgressRender: withCtx(({ row: m, column: p }) => [
|
|
2744
|
+
createVNode(unref(w), {
|
|
2745
|
+
row: m,
|
|
2746
|
+
column: p,
|
|
2747
|
+
"grid-ref": n.value
|
|
2508
2748
|
}, null, 8, ["row", "column", "grid-ref"])
|
|
2509
2749
|
]),
|
|
2510
|
-
SelectRender: withCtx(({ row:
|
|
2511
|
-
createVNode(unref(
|
|
2512
|
-
row:
|
|
2513
|
-
column:
|
|
2514
|
-
"grid-ref":
|
|
2750
|
+
SelectRender: withCtx(({ row: m, column: p }) => [
|
|
2751
|
+
createVNode(unref(j), {
|
|
2752
|
+
row: m,
|
|
2753
|
+
column: p,
|
|
2754
|
+
"grid-ref": n.value
|
|
2515
2755
|
}, null, 8, ["row", "column", "grid-ref"])
|
|
2516
2756
|
]),
|
|
2517
|
-
SelectMultipleRender: withCtx(({ row:
|
|
2518
|
-
createVNode(unref(
|
|
2519
|
-
row:
|
|
2520
|
-
column:
|
|
2521
|
-
"grid-ref":
|
|
2757
|
+
SelectMultipleRender: withCtx(({ row: m, column: p }) => [
|
|
2758
|
+
createVNode(unref(C), {
|
|
2759
|
+
row: m,
|
|
2760
|
+
column: p,
|
|
2761
|
+
"grid-ref": n.value
|
|
2522
2762
|
}, null, 8, ["row", "column", "grid-ref"])
|
|
2523
2763
|
]),
|
|
2524
|
-
TreeSelectRender: withCtx(({ row:
|
|
2525
|
-
createVNode(unref(
|
|
2526
|
-
row:
|
|
2527
|
-
column:
|
|
2528
|
-
"grid-ref":
|
|
2764
|
+
TreeSelectRender: withCtx(({ row: m, column: p }) => [
|
|
2765
|
+
createVNode(unref(R), {
|
|
2766
|
+
row: m,
|
|
2767
|
+
column: p,
|
|
2768
|
+
"grid-ref": n.value
|
|
2529
2769
|
}, null, 8, ["row", "column", "grid-ref"])
|
|
2530
2770
|
]),
|
|
2531
|
-
TreeMultipleSelectRender: withCtx(({ row:
|
|
2532
|
-
createVNode(unref(
|
|
2533
|
-
row:
|
|
2534
|
-
column:
|
|
2535
|
-
"grid-ref":
|
|
2771
|
+
TreeMultipleSelectRender: withCtx(({ row: m, column: p }) => [
|
|
2772
|
+
createVNode(unref(S), {
|
|
2773
|
+
row: m,
|
|
2774
|
+
column: p,
|
|
2775
|
+
"grid-ref": n.value
|
|
2536
2776
|
}, null, 8, ["row", "column", "grid-ref"])
|
|
2537
2777
|
]),
|
|
2538
|
-
ChooseFrameRender: withCtx(({ row:
|
|
2539
|
-
createVNode(unref(
|
|
2540
|
-
row:
|
|
2541
|
-
column:
|
|
2778
|
+
ChooseFrameRender: withCtx(({ row: m, column: p }) => [
|
|
2779
|
+
createVNode(unref(D), {
|
|
2780
|
+
row: m,
|
|
2781
|
+
column: p,
|
|
2542
2782
|
"grid-ref": r.gridRef,
|
|
2543
|
-
onOnChooseBeforClick:
|
|
2783
|
+
onOnChooseBeforClick: ve
|
|
2544
2784
|
}, null, 8, ["row", "column", "grid-ref"])
|
|
2545
2785
|
]),
|
|
2546
|
-
PickPeopleRender: withCtx(({ row:
|
|
2547
|
-
createVNode(unref(
|
|
2548
|
-
row:
|
|
2549
|
-
column:
|
|
2550
|
-
"grid-ref":
|
|
2551
|
-
onChange:
|
|
2786
|
+
PickPeopleRender: withCtx(({ row: m, column: p }) => [
|
|
2787
|
+
createVNode(unref(F), {
|
|
2788
|
+
row: m,
|
|
2789
|
+
column: p,
|
|
2790
|
+
"grid-ref": n.value,
|
|
2791
|
+
onChange: be
|
|
2552
2792
|
}, null, 8, ["row", "column", "grid-ref"])
|
|
2553
2793
|
]),
|
|
2554
|
-
FileRender: withCtx(({ row:
|
|
2555
|
-
createVNode(unref(
|
|
2556
|
-
row:
|
|
2557
|
-
column:
|
|
2558
|
-
"grid-ref":
|
|
2559
|
-
onFileClick:
|
|
2794
|
+
FileRender: withCtx(({ row: m, column: p }) => [
|
|
2795
|
+
createVNode(unref(U), {
|
|
2796
|
+
row: m,
|
|
2797
|
+
column: p,
|
|
2798
|
+
"grid-ref": n.value,
|
|
2799
|
+
onFileClick: pe
|
|
2560
2800
|
}, null, 8, ["row", "column", "grid-ref"])
|
|
2561
2801
|
]),
|
|
2562
|
-
CustomRender: withCtx(({ row:
|
|
2563
|
-
createVNode(unref(
|
|
2564
|
-
row:
|
|
2565
|
-
column:
|
|
2566
|
-
"grid-ref":
|
|
2802
|
+
CustomRender: withCtx(({ row: m, column: p }) => [
|
|
2803
|
+
createVNode(unref(q), {
|
|
2804
|
+
row: m,
|
|
2805
|
+
column: p,
|
|
2806
|
+
"grid-ref": n.value
|
|
2567
2807
|
}, null, 8, ["row", "column", "grid-ref"])
|
|
2568
2808
|
]),
|
|
2569
|
-
DatePickerRender: withCtx(({ row:
|
|
2570
|
-
createVNode(unref(
|
|
2571
|
-
row:
|
|
2572
|
-
column:
|
|
2573
|
-
"grid-ref":
|
|
2809
|
+
DatePickerRender: withCtx(({ row: m, column: p }) => [
|
|
2810
|
+
createVNode(unref(W), {
|
|
2811
|
+
row: m,
|
|
2812
|
+
column: p,
|
|
2813
|
+
"grid-ref": n.value
|
|
2574
2814
|
}, null, 8, ["row", "column", "grid-ref"])
|
|
2575
2815
|
]),
|
|
2576
|
-
LabelRender: withCtx(({ row:
|
|
2577
|
-
createVNode(unref(
|
|
2578
|
-
row:
|
|
2579
|
-
column:
|
|
2580
|
-
"grid-ref":
|
|
2816
|
+
LabelRender: withCtx(({ row: m, column: p }) => [
|
|
2817
|
+
createVNode(unref(K), {
|
|
2818
|
+
row: m,
|
|
2819
|
+
column: p,
|
|
2820
|
+
"grid-ref": n.value
|
|
2581
2821
|
}, null, 8, ["row", "column", "grid-ref"])
|
|
2582
2822
|
]),
|
|
2583
|
-
InputEditor: withCtx(({ row:
|
|
2584
|
-
createVNode(unref(
|
|
2585
|
-
row:
|
|
2586
|
-
column:
|
|
2587
|
-
"grid-ref":
|
|
2823
|
+
InputEditor: withCtx(({ row: m, column: p }) => [
|
|
2824
|
+
createVNode(unref(J), {
|
|
2825
|
+
row: m,
|
|
2826
|
+
column: p,
|
|
2827
|
+
"grid-ref": n.value
|
|
2588
2828
|
}, null, 8, ["row", "column", "grid-ref"])
|
|
2589
2829
|
]),
|
|
2590
|
-
TextareaEditor: withCtx(({ row:
|
|
2591
|
-
createVNode(unref(
|
|
2592
|
-
row:
|
|
2593
|
-
column:
|
|
2594
|
-
"grid-ref":
|
|
2830
|
+
TextareaEditor: withCtx(({ row: m, column: p }) => [
|
|
2831
|
+
createVNode(unref(X), {
|
|
2832
|
+
row: m,
|
|
2833
|
+
column: p,
|
|
2834
|
+
"grid-ref": n.value
|
|
2595
2835
|
}, null, 8, ["row", "column", "grid-ref"])
|
|
2596
2836
|
]),
|
|
2597
|
-
SelectEditor: withCtx(({ row:
|
|
2598
|
-
createVNode(unref(
|
|
2599
|
-
row:
|
|
2600
|
-
column:
|
|
2601
|
-
"grid-ref":
|
|
2837
|
+
SelectEditor: withCtx(({ row: m, column: p }) => [
|
|
2838
|
+
createVNode(unref(Q), {
|
|
2839
|
+
row: m,
|
|
2840
|
+
column: p,
|
|
2841
|
+
"grid-ref": n.value
|
|
2602
2842
|
}, null, 8, ["row", "column", "grid-ref"])
|
|
2603
2843
|
]),
|
|
2604
|
-
SelectMultipleEditor: withCtx(({ row:
|
|
2605
|
-
createVNode(unref(
|
|
2606
|
-
row:
|
|
2607
|
-
column:
|
|
2608
|
-
"grid-ref":
|
|
2844
|
+
SelectMultipleEditor: withCtx(({ row: m, column: p }) => [
|
|
2845
|
+
createVNode(unref(ee), {
|
|
2846
|
+
row: m,
|
|
2847
|
+
column: p,
|
|
2848
|
+
"grid-ref": n.value
|
|
2609
2849
|
}, null, 8, ["row", "column", "grid-ref"])
|
|
2610
2850
|
]),
|
|
2611
|
-
TreeSelectEditor: withCtx(({ row:
|
|
2612
|
-
createVNode(unref(
|
|
2613
|
-
row:
|
|
2614
|
-
column:
|
|
2615
|
-
"grid-ref":
|
|
2851
|
+
TreeSelectEditor: withCtx(({ row: m, column: p }) => [
|
|
2852
|
+
createVNode(unref(G), {
|
|
2853
|
+
row: m,
|
|
2854
|
+
column: p,
|
|
2855
|
+
"grid-ref": n.value
|
|
2616
2856
|
}, null, 8, ["row", "column", "grid-ref"])
|
|
2617
2857
|
]),
|
|
2618
|
-
TreeMultipleSelectEditor: withCtx(({ row:
|
|
2619
|
-
createVNode(unref(
|
|
2620
|
-
row:
|
|
2621
|
-
column:
|
|
2622
|
-
"grid-ref":
|
|
2858
|
+
TreeMultipleSelectEditor: withCtx(({ row: m, column: p }) => [
|
|
2859
|
+
createVNode(unref(te), {
|
|
2860
|
+
row: m,
|
|
2861
|
+
column: p,
|
|
2862
|
+
"grid-ref": n.value
|
|
2623
2863
|
}, null, 8, ["row", "column", "grid-ref"])
|
|
2624
2864
|
]),
|
|
2625
|
-
DatePickerEditor: withCtx(({ row:
|
|
2626
|
-
createVNode(unref(
|
|
2627
|
-
row:
|
|
2628
|
-
column:
|
|
2629
|
-
"grid-ref":
|
|
2865
|
+
DatePickerEditor: withCtx(({ row: m, column: p }) => [
|
|
2866
|
+
createVNode(unref(Z), {
|
|
2867
|
+
row: m,
|
|
2868
|
+
column: p,
|
|
2869
|
+
"grid-ref": n.value
|
|
2630
2870
|
}, null, 8, ["row", "column", "grid-ref"])
|
|
2631
2871
|
]),
|
|
2632
|
-
InputNumberEditor: withCtx(({ row:
|
|
2633
|
-
createVNode(unref(
|
|
2634
|
-
row:
|
|
2635
|
-
column:
|
|
2636
|
-
"grid-ref":
|
|
2872
|
+
InputNumberEditor: withCtx(({ row: m, column: p }) => [
|
|
2873
|
+
createVNode(unref(le), {
|
|
2874
|
+
row: m,
|
|
2875
|
+
column: p,
|
|
2876
|
+
"grid-ref": n.value
|
|
2637
2877
|
}, null, 8, ["row", "column", "grid-ref"])
|
|
2638
2878
|
]),
|
|
2639
|
-
SelectRemoteEditor: withCtx(({ row:
|
|
2640
|
-
createVNode(unref(
|
|
2641
|
-
row:
|
|
2642
|
-
column:
|
|
2643
|
-
"grid-ref":
|
|
2644
|
-
onRemoteMethod:
|
|
2879
|
+
SelectRemoteEditor: withCtx(({ row: m, column: p }) => [
|
|
2880
|
+
createVNode(unref(oe), {
|
|
2881
|
+
row: m,
|
|
2882
|
+
column: p,
|
|
2883
|
+
"grid-ref": n.value,
|
|
2884
|
+
onRemoteMethod: he
|
|
2645
2885
|
}, null, 8, ["row", "column", "grid-ref"])
|
|
2646
2886
|
]),
|
|
2647
|
-
tableSelect: withCtx(({ row:
|
|
2887
|
+
tableSelect: withCtx(({ row: m, column: p }) => [
|
|
2648
2888
|
createElementVNode("div", _hoisted_2$2, [
|
|
2649
2889
|
createVNode(unref(HrTableSelect), {
|
|
2650
|
-
modelValue: p
|
|
2651
|
-
"onUpdate:modelValue": (
|
|
2652
|
-
columns:
|
|
2653
|
-
onRemoteMethod: (
|
|
2654
|
-
onChange: (
|
|
2655
|
-
width:
|
|
2890
|
+
modelValue: m[p.field],
|
|
2891
|
+
"onUpdate:modelValue": (b) => m[p.field] = b,
|
|
2892
|
+
columns: p.params.tableSelectColumns || [],
|
|
2893
|
+
onRemoteMethod: (b) => _e(b, p, m),
|
|
2894
|
+
onChange: (b) => ge({ change: b, row: m, column: p }),
|
|
2895
|
+
width: p.params.tableSelectWidth
|
|
2656
2896
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "columns", "onRemoteMethod", "onChange", "width"])
|
|
2657
2897
|
])
|
|
2658
2898
|
]),
|
|
2659
2899
|
pager: withCtx(() => [
|
|
2660
2900
|
createVNode(_sfc_main$3, {
|
|
2661
|
-
pagination:
|
|
2662
|
-
gridOptions:
|
|
2663
|
-
onPageChange:
|
|
2664
|
-
onRefresh:
|
|
2901
|
+
pagination: a.pagination,
|
|
2902
|
+
gridOptions: Y.value,
|
|
2903
|
+
onPageChange: ue,
|
|
2904
|
+
onRefresh: se
|
|
2665
2905
|
}, null, 8, ["pagination", "gridOptions"])
|
|
2666
2906
|
]),
|
|
2667
2907
|
_: 1
|
|
2668
|
-
}, 16)
|
|
2908
|
+
}, 16, ["class"])
|
|
2669
2909
|
]));
|
|
2670
2910
|
}
|
|
2671
|
-
}), Table = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-
|
|
2911
|
+
}), Table = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-d33fb7c4"]]);
|
|
2672
2912
|
VxeUI.setConfig({
|
|
2673
2913
|
size: "small",
|
|
2674
2914
|
table: {
|
|
@@ -2706,18 +2946,18 @@ const HrTable = withInstall(Table), _hoisted_1$1 = { class: "remote-table" }, _h
|
|
|
2706
2946
|
modelModifiers: {}
|
|
2707
2947
|
}),
|
|
2708
2948
|
emits: /* @__PURE__ */ mergeModels(["change"], ["update:modelValue"]),
|
|
2709
|
-
setup(
|
|
2710
|
-
const e = useModel(
|
|
2711
|
-
return watch(() =>
|
|
2712
|
-
var
|
|
2713
|
-
return (
|
|
2714
|
-
}), (
|
|
2949
|
+
setup(a, { emit: l }) {
|
|
2950
|
+
const e = useModel(a, "modelValue"), r = ref(), i = l, n = (t) => t ? `${Number(t) ? t + "px" : t}` : "150px";
|
|
2951
|
+
return watch(() => a.highlight, (t) => {
|
|
2952
|
+
var o;
|
|
2953
|
+
return (o = r.value.querySelector(`[index="${t}"]`)) == null ? void 0 : o.scrollIntoView({ block: "center", behavior: "smooth" });
|
|
2954
|
+
}), (t, o) => (openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
2715
2955
|
createElementVNode("table", null, [
|
|
2716
2956
|
createElementVNode("thead", null, [
|
|
2717
2957
|
createElementVNode("tr", null, [
|
|
2718
|
-
|
|
2719
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(
|
|
2720
|
-
style: normalizeStyle({ width:
|
|
2958
|
+
o[0] || (o[0] = createElementVNode("th", { class: "w[50px]" }, "序号", -1)),
|
|
2959
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(t.columns, (u) => (openBlock(), createElementBlock("th", {
|
|
2960
|
+
style: normalizeStyle({ width: n(u.width) })
|
|
2721
2961
|
}, toDisplayString(u.title), 5))), 256))
|
|
2722
2962
|
])
|
|
2723
2963
|
]),
|
|
@@ -2725,21 +2965,21 @@ const HrTable = withInstall(Table), _hoisted_1$1 = { class: "remote-table" }, _h
|
|
|
2725
2965
|
ref_key: "tbody",
|
|
2726
2966
|
ref: r
|
|
2727
2967
|
}, [
|
|
2728
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(e.value, (u,
|
|
2729
|
-
class: normalizeClass({ zebra:
|
|
2730
|
-
onClick: (
|
|
2731
|
-
index:
|
|
2968
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(e.value, (u, d) => (openBlock(), createElementBlock("tr", {
|
|
2969
|
+
class: normalizeClass({ zebra: d % 2 != 0, highlight: t.highlight === d }),
|
|
2970
|
+
onClick: (c) => i("change", u),
|
|
2971
|
+
index: d
|
|
2732
2972
|
}, [
|
|
2733
|
-
createElementVNode("td", _hoisted_3, toDisplayString(
|
|
2734
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(
|
|
2973
|
+
createElementVNode("td", _hoisted_3, toDisplayString(d + 1), 1),
|
|
2974
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(t.columns, (c) => (openBlock(), createElementBlock("td", null, toDisplayString(u[c.field]), 1))), 256))
|
|
2735
2975
|
], 10, _hoisted_2$1))), 256))
|
|
2736
2976
|
], 512)
|
|
2737
2977
|
]),
|
|
2738
|
-
withDirectives(createElementVNode("div", { class: "nothing" }, toDisplayString(
|
|
2978
|
+
withDirectives(createElementVNode("div", { class: "nothing" }, toDisplayString(t.loading ? "" : "无数据"), 513), [
|
|
2739
2979
|
[vShow, !e.value.length]
|
|
2740
2980
|
]),
|
|
2741
2981
|
withDirectives(createElementVNode("div", _hoisted_4, null, 512), [
|
|
2742
|
-
[vShow,
|
|
2982
|
+
[vShow, t.loading]
|
|
2743
2983
|
])
|
|
2744
2984
|
]));
|
|
2745
2985
|
}
|
|
@@ -2754,63 +2994,63 @@ const HrTable = withInstall(Table), _hoisted_1$1 = { class: "remote-table" }, _h
|
|
|
2754
2994
|
modelModifiers: {}
|
|
2755
2995
|
}),
|
|
2756
2996
|
emits: /* @__PURE__ */ mergeModels(["remote-method", "change"], ["update:modelValue"]),
|
|
2757
|
-
setup(
|
|
2997
|
+
setup(a, { emit: l }) {
|
|
2758
2998
|
const e = reactive({
|
|
2759
2999
|
query: "",
|
|
2760
3000
|
tableData: [],
|
|
2761
3001
|
loading: !1
|
|
2762
|
-
}), r = ref(),
|
|
2763
|
-
|
|
2764
|
-
},
|
|
2765
|
-
if (!
|
|
2766
|
-
const C = (
|
|
2767
|
-
|
|
2768
|
-
const
|
|
2769
|
-
|
|
3002
|
+
}), r = ref(), i = ref(), n = ref(!1), t = ref(-1), o = reactive({ x: 0, y: 0, w: 0 }), u = useModel(a, "modelValue"), d = l, c = () => d("remote-method", e), f = () => {
|
|
3003
|
+
n.value = !0, d("remote-method", e), s();
|
|
3004
|
+
}, s = async () => {
|
|
3005
|
+
if (!n.value) return;
|
|
3006
|
+
const C = (F) => Number(F) ? F + "px" : F, S = r.value.getBoundingClientRect();
|
|
3007
|
+
o.y = innerHeight - S.y < S.y ? S.y - S.height - 280 : S.y + S.height + 5, o.w = a.width ? C(a.width) : S.width < 300 ? "300px" : S.width + "px", await nextTick();
|
|
3008
|
+
const D = i.value.$el.offsetWidth;
|
|
3009
|
+
o.x = innerWidth - S.x > D ? S.x : S.x + S.width - D;
|
|
2770
3010
|
};
|
|
2771
3011
|
let _ = !0;
|
|
2772
|
-
const y = () => _ && (
|
|
2773
|
-
|
|
2774
|
-
},
|
|
2775
|
-
if (
|
|
2776
|
-
const C = e.tableData[
|
|
2777
|
-
|
|
3012
|
+
const y = () => _ && (n.value = !1), h = () => (_ = !1, setTimeout(() => _ = !0, 16)), k = () => _ && r.value.focus(), w = (C) => {
|
|
3013
|
+
h(), d("change", C), n.value = !1;
|
|
3014
|
+
}, E = () => t.value !== -1 && t.value--, j = () => t.value < e.tableData.length && t.value++, R = () => {
|
|
3015
|
+
if (t.value == -1) return;
|
|
3016
|
+
const C = e.tableData[t.value];
|
|
3017
|
+
d("change", C), r.value.blur();
|
|
2778
3018
|
};
|
|
2779
3019
|
return watch(() => e.query, (C) => {
|
|
2780
3020
|
C !== u.value && (u.value = C);
|
|
2781
3021
|
}), watch(() => u.value, (C) => {
|
|
2782
3022
|
C !== e.query && (e.query = C);
|
|
2783
3023
|
}), effect(() => {
|
|
2784
|
-
e.query,
|
|
2785
|
-
}), effect(() => !
|
|
3024
|
+
e.query, n.value, t.value = -1;
|
|
3025
|
+
}), effect(() => !n.value && (e.tableData = [])), document.addEventListener("scroll", s), (C, S) => (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
2786
3026
|
withDirectives(createElementVNode("input", {
|
|
2787
3027
|
ref_key: "input",
|
|
2788
3028
|
ref: r,
|
|
2789
|
-
"onUpdate:modelValue":
|
|
2790
|
-
onInput:
|
|
2791
|
-
onFocus:
|
|
3029
|
+
"onUpdate:modelValue": S[0] || (S[0] = (D) => e.query = D),
|
|
3030
|
+
onInput: c,
|
|
3031
|
+
onFocus: f,
|
|
2792
3032
|
onBlur: y,
|
|
2793
3033
|
onKeydown: [
|
|
2794
|
-
withKeys(
|
|
2795
|
-
withKeys(
|
|
2796
|
-
withKeys(withModifiers(
|
|
3034
|
+
withKeys(E, ["up"]),
|
|
3035
|
+
withKeys(j, ["down"]),
|
|
3036
|
+
withKeys(withModifiers(R, ["prevent"]), ["enter"])
|
|
2797
3037
|
]
|
|
2798
3038
|
}, null, 40, _hoisted_2), [
|
|
2799
3039
|
[vModelText, e.query]
|
|
2800
3040
|
]),
|
|
2801
|
-
|
|
3041
|
+
n.value ? (openBlock(), createBlock(hrTable, {
|
|
2802
3042
|
key: 0,
|
|
2803
3043
|
ref_key: "table",
|
|
2804
|
-
ref:
|
|
3044
|
+
ref: i,
|
|
2805
3045
|
modelValue: e.tableData,
|
|
2806
|
-
"onUpdate:modelValue":
|
|
3046
|
+
"onUpdate:modelValue": S[1] || (S[1] = (D) => e.tableData = D),
|
|
2807
3047
|
loading: e.loading,
|
|
2808
|
-
highlight:
|
|
3048
|
+
highlight: t.value,
|
|
2809
3049
|
columns: C.columns,
|
|
2810
|
-
onMousedown:
|
|
2811
|
-
onClick:
|
|
2812
|
-
onChange:
|
|
2813
|
-
style: normalizeStyle({ top:
|
|
3050
|
+
onMousedown: h,
|
|
3051
|
+
onClick: k,
|
|
3052
|
+
onChange: w,
|
|
3053
|
+
style: normalizeStyle({ top: o.y + "px", left: o.x + "px", width: o.w })
|
|
2814
3054
|
}, null, 8, ["modelValue", "loading", "highlight", "columns", "style"])) : createCommentVNode("", !0)
|
|
2815
3055
|
]));
|
|
2816
3056
|
}
|