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.
@@ -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, nextTick, withModifiers, vModelText } from "vue";
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(n, { emit: t }) {
16
- const e = n, r = t, c = ref(""), o = ref(""), l = ref(!1), a = ref(), u = ref(), s = ref(), i = computed(() => {
17
- var h, k;
18
- const g = ((k = (h = e.column.filters) == null ? void 0 : h[0]) == null ? void 0 : k.data) || [];
19
- return Array.isArray(g) && g.length === 2 && g[0] && g[1] ? `${g[0]} 至 ${g[1]}` : "";
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 h, k;
23
- const g = ((k = (h = e.column.filters) == null ? void 0 : h[0]) == null ? void 0 : k.data) || [];
24
- Array.isArray(g) && g.length === 2 && (c.value = g[0] || "", o.value = g[1] || ""), document.addEventListener("click", m);
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", m);
26
+ document.removeEventListener("click", s);
27
27
  });
28
- const d = () => {
29
- l.value = !l.value;
30
- }, m = (g) => {
31
- var E, B;
32
- if (!l.value) return;
33
- const h = g.target, k = s.value, x = (B = (E = u.value) == null ? void 0 : E.popperRef) == null ? void 0 : B.contentRef;
34
- k && k.contains(h) || x && x.contains(h) || (l.value = !1);
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 (!c.value && !o.value)
37
+ if (!i.value && !n.value)
38
38
  e.column.filters[0].data = [];
39
- else if (!c.value || !o.value) {
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 = [c.value, o.value];
44
- l.value = !1, r("FilterSearch", e.column);
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
- c.value = "", o.value = "", e.column.filters[0].data = [];
47
+ i.value = "", n.value = "", e.column.filters[0].data = [];
48
48
  }
49
- return (g, h) => (openBlock(), createElementBlock("div", {
49
+ return (h, k) => (openBlock(), createElementBlock("div", {
50
50
  class: "size-full",
51
- title: i.value,
51
+ title: c.value,
52
52
  ref_key: "wrapperRef",
53
- ref: s
53
+ ref: d
54
54
  }, [
55
55
  createVNode(unref(ElInput), {
56
56
  ref_key: "inputRef",
57
- ref: a,
58
- value: i.value,
57
+ ref: o,
58
+ value: c.value,
59
59
  readonly: "",
60
- onClick: d
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": a.value,
65
+ "virtual-ref": o.value,
66
66
  "virtual-triggering": "",
67
67
  trigger: "manual",
68
- visible: l.value,
69
- "onUpdate:visible": h[2] || (h[2] = (k) => l.value = k),
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: c.value,
78
- "onUpdate:modelValue": h[0] || (h[0] = (k) => c.value = k),
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: o.value,
88
- "onUpdate:modelValue": h[1] || (h[1] = (k) => o.value = k),
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(() => h[3] || (h[3] = [
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(() => h[4] || (h[4] = [
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(n, { emit: t }) {
135
- const e = n, r = ref([]), c = computed(() => e.column.filters[0].data.length ? e.column.filters[0].data.map((i) => i ? "是" : "否").join(",") : ""), o = ref(), l = ref(), a = () => {
136
- var i, d;
137
- (d = (i = unref(l).popperRef) == null ? void 0 : i.delayHide) == null || d.call(i);
138
- }, u = t;
139
- function s() {
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 (i, d) => (openBlock(), createElementBlock("div", {
142
+ return (c, f) => (openBlock(), createElementBlock("div", {
143
143
  class: "size-full",
144
- title: c.value
144
+ title: i.value
145
145
  }, [
146
146
  withDirectives(createVNode(unref(ElInput), {
147
147
  ref_key: "inputRef",
148
- ref: o,
149
- value: c.value,
148
+ ref: n,
149
+ value: i.value,
150
150
  readonly: "",
151
- onKeyup: d[0] || (d[0] = withKeys((m) => u("FilterSearch", n.column), ["enter"]))
151
+ onKeyup: f[0] || (f[0] = withKeys((s) => u("FilterSearch", a.column), ["enter"]))
152
152
  }, null, 8, ["value"]), [
153
- [unref(ClickOutside), a]
153
+ [unref(ClickOutside), o]
154
154
  ]),
155
155
  createVNode(unref(ElPopover), {
156
156
  ref_key: "popoverRef",
157
- ref: l,
158
- "virtual-ref": o.value,
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": d[1] || (d[1] = (m) => r.value = m),
168
- onChange: s
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(n, { emit: t }) {
197
- const e = n, r = ref([]);
196
+ setup(a, { emit: l }) {
197
+ const e = a, r = ref([]);
198
198
  ref("");
199
- const c = computed(() => e.column.filters && e.column.filters[0].data.length ? e.column.filters[0].data.map((i) => {
200
- var d;
201
- return (d = e.column.params.options.find((m) => m.value === i)) == null ? void 0 : d.label;
202
- }).join(",") : ""), o = ref(), l = ref(), a = () => {
203
- var i, d;
204
- (d = (i = unref(l).popperRef) == null ? void 0 : i.delayHide) == null || d.call(i);
205
- }, u = t;
206
- function s() {
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 (i, d) => (openBlock(), createElementBlock("div", {
209
+ return (c, f) => (openBlock(), createElementBlock("div", {
210
210
  class: "size-full",
211
- title: c.value
211
+ title: i.value
212
212
  }, [
213
213
  withDirectives(createVNode(unref(ElInput), {
214
214
  ref_key: "inputRef",
215
- ref: o,
216
- value: c.value,
215
+ ref: n,
216
+ value: i.value,
217
217
  readonly: "",
218
- onKeyup: d[0] || (d[0] = withKeys((m) => u("FilterSearch", n.column), ["enter"]))
218
+ onKeyup: f[0] || (f[0] = withKeys((s) => u("FilterSearch", a.column), ["enter"]))
219
219
  }, null, 8, ["value"]), [
220
- [unref(ClickOutside), a]
220
+ [unref(ClickOutside), o]
221
221
  ]),
222
222
  createVNode(unref(ElPopover), {
223
223
  ref_key: "popoverRef",
224
- ref: l,
225
- "virtual-ref": o.value,
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
- n.column.params.FieldType === "check" ? (openBlock(), createBlock(unref(ElCheckboxGroup), {
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": d[1] || (d[1] = (m) => r.value = m),
236
- onChange: s
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(n.column.params.options, (m) => (openBlock(), createBlock(unref(ElCheckbox), {
240
- key: m.value,
241
- label: m.label,
242
- value: m.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
- n.column.params.FieldType === "select" ? (openBlock(), createBlock(unref(ElCheckboxGroup), {
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": d[2] || (d[2] = (m) => r.value = m),
252
- onChange: s
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(n.column.params.options, (m) => (openBlock(), createBlock(unref(ElCheckbox), {
256
- key: m.value,
257
- label: m.label,
258
- value: m.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(n, { emit: t }) {
278
- const e = n, r = ref([]), c = ref(null), o = ref(e.column.params.FieldType === "TreeMultipleSelect"), l = ref({
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: s, ParentNodeField: i, NodeKeyField: d } = e.column.params;
285
- e.column.params.TreeData = buildTree(deepClone(s), i, d);
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 a = t;
290
+ const o = l;
291
291
  function u() {
292
- c.value ? e.column.filters[0].data = [c.value] : e.column.filters[0].data = [];
292
+ i.value ? e.column.filters[0].data = [i.value] : e.column.filters[0].data = [];
293
293
  }
294
- return (s, i) => (openBlock(), createBlock(unref(ElTreeSelect), {
294
+ return (d, c) => (openBlock(), createBlock(unref(ElTreeSelect), {
295
295
  clearable: "",
296
- modelValue: c.value,
297
- "onUpdate:modelValue": i[0] || (i[0] = (d) => c.value = d),
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: o.value,
303
- "show-checkbox": o.value,
304
- props: l.value,
305
- onKeyup: i[1] || (i[1] = withKeys((d) => a("FilterSearch", n.column), ["enter"]))
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(n, { emit: t }) {
318
- const e = n, r = ref([]), c = ref([]), o = ref({
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: s, ParentNodeField: i, NodeKeyField: d } = e.column.params;
325
- e.column.params.TreeData = buildTree(deepClone(s), i, d);
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 l = t;
331
- function a() {
332
- c.value ? e.column.filters[0].data = c.value : e.column.filters[0].data = [];
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(s) {
335
- cleanUpTreeFilterRows(), l("FilterSearch", e.column);
334
+ function u(d) {
335
+ cleanUpTreeFilterRows(), t("FilterSearch", e.column);
336
336
  }
337
- return (s, i) => (openBlock(), createBlock(unref(ElTreeSelect), {
337
+ return (d, c) => (openBlock(), createBlock(unref(ElTreeSelect), {
338
338
  "popper-class": "tree-filter-row",
339
339
  clearable: "",
340
- modelValue: c.value,
341
- "onUpdate:modelValue": i[0] || (i[0] = (d) => c.value = d),
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: a,
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: o.value
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(n, { emit: t }) {
363
- const e = n, r = ref([null, null]), c = computed(() => e.column.filters && e.column.filters[0].data.length ? e.column.filters[0].data.join(" 至 ") : ""), o = ref(), l = ref(), a = () => {
364
- var d, m;
365
- (m = (d = unref(l).popperRef) == null ? void 0 : d.delayHide) == null || m.call(d);
366
- }, u = t;
367
- function s() {
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
- l.value.hide(), u("FilterSearch", e.column);
375
+ t.value.hide(), u("FilterSearch", e.column);
376
376
  }
377
- function i() {
377
+ function c() {
378
378
  r.value = [null, null];
379
379
  }
380
- return (d, m) => (openBlock(), createElementBlock("div", {
380
+ return (f, s) => (openBlock(), createElementBlock("div", {
381
381
  class: "size-full",
382
- title: c.value
382
+ title: i.value
383
383
  }, [
384
384
  withDirectives(createVNode(unref(ElInput), {
385
385
  ref_key: "inputRef",
386
- ref: o,
387
- value: c.value,
386
+ ref: n,
387
+ value: i.value,
388
388
  readonly: "",
389
- onKeyup: m[0] || (m[0] = withKeys((_) => u("FilterSearch", n.column), ["enter"]))
389
+ onKeyup: s[0] || (s[0] = withKeys((_) => u("FilterSearch", a.column), ["enter"]))
390
390
  }, null, 8, ["value"]), [
391
- [unref(ClickOutside), a]
391
+ [unref(ClickOutside), o]
392
392
  ]),
393
393
  createVNode(unref(ElPopover), {
394
394
  ref_key: "popoverRef",
395
- ref: l,
396
- "virtual-ref": o.value,
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": m[1] || (m[1] = (_) => r.value[0] = _)
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": m[2] || (m[2] = (_) => r.value[1] = _)
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: s
418
+ onClick: d
419
419
  }, {
420
- default: withCtx(() => m[3] || (m[3] = [
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: i
427
+ onClick: c
428
428
  }, {
429
- default: withCtx(() => m[4] || (m[4] = [
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(n, { emit: t }) {
457
- const e = n, r = ref([]);
458
- let c = ref(0);
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: s }) => {
463
- c.value = s <= 40 ? 65 : s;
462
+ useElementClientSize(u, ({ clientHeight: d }) => {
463
+ i.value = d <= 40 ? 65 : d;
464
464
  });
465
465
  } else
466
- c.value = 23;
466
+ i.value = 23;
467
467
  r.value = e.column.params.TreeData;
468
468
  });
469
- const o = t;
470
- function l(u) {
469
+ const n = l;
470
+ function t(u) {
471
471
  if (u === "search") {
472
- const s = e.gridRef.getColumns();
473
- o("FilterSearch", e.column, s);
472
+ const d = e.gridRef.getColumns();
473
+ n("FilterSearch", e.column, d);
474
474
  } else if (u === "clear") {
475
- e.column.filters.forEach((i) => {
476
- Array.isArray(i.data) ? i.data = [] : i.data = "";
475
+ e.column.filters.forEach((c) => {
476
+ Array.isArray(c.data) ? c.data = [] : c.data = "";
477
477
  });
478
- const s = e.gridRef.getColumns();
479
- o("FilterSearch", e.column, s);
478
+ const d = e.gridRef.getColumns();
479
+ n("FilterSearch", e.column, d);
480
480
  } else if (u === "clearAll") {
481
- const s = e.gridRef.getColumns();
482
- s.forEach((i) => {
483
- i.filters && i.filters.forEach((d) => {
484
- Array.isArray(d.data) ? d.data = [] : d.data = "";
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
- }), o("FilterSearch", e.column, s);
486
+ }), n("FilterSearch", e.column, d);
487
487
  }
488
488
  }
489
- function a() {
490
- var u, s;
491
- (u = e.column.params) != null && u.IsVirtualField || ((s = e.column).params ?? (s.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", o("SortChange", e.column, e.gridRef.getColumns()));
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, s) => {
494
- var i, d, m;
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: n.column.title,
498
- style: normalizeStyle({ height: unref(c) ? unref(c) + "px" : void 0 })
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": (i = n.column.params) == null ? void 0 : i.filter }]),
502
- onClick: a
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: n.column.params.Required ? "red" : "" }),
505
+ style: normalizeStyle({ color: a.column.params.Required ? "red" : "" }),
506
506
  class: "whitespace-nowrap overflow-hidden text-ellipsis"
507
- }, toDisplayString(n.column.title), 5),
508
- (d = n.column.params) != null && d.sortable && ((m = n.column.params) != null && m.sortStatus) ? (openBlock(), createBlock(unref(ElIcon), { key: 0 }, {
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
- ((_ = n.column.params) == null ? void 0 : _.sortStatus) === "asc" ? (openBlock(), createBlock(unref(HrIcon), {
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 = n.column.params) == null ? void 0 : y.sortStatus) === "desc" ? (openBlock(), createBlock(unref(HrIcon), {
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
- n.column.params.filter ? (openBlock(), createElementBlock("div", _hoisted_2$5, [
525
- ["radio_Table", "bool"].includes(n.column.params.FieldType) ? (openBlock(), createBlock(_sfc_main$y, {
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: n.column,
528
- onFilterSearch: s[0] || (s[0] = (_) => l("search"))
529
- }, null, 8, ["column"])) : ["select", "check"].includes(n.column.params.FieldType) ? (openBlock(), createBlock(_sfc_main$x, {
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: n.column,
532
- onFilterSearch: s[1] || (s[1] = (_) => l("search"))
533
- }, null, 8, ["column"])) : n.column.params.FieldType === "date" ? (openBlock(), createBlock(FilterDate, {
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: n.column,
536
- onFilterSearch: s[2] || (s[2] = (_) => l("search"))
537
- }, null, 8, ["column"])) : n.column.params.FieldType === "tree" ? (openBlock(), createBlock(_sfc_main$w, {
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: n.column,
540
- onFilterSearch: s[3] || (s[3] = (_) => l("search"))
541
- }, null, 8, ["column"])) : n.column.params.FieldType === "TreeMultipleSelect" ? (openBlock(), createBlock(_sfc_main$v, {
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: n.column,
544
- onFilterSearch: s[4] || (s[4] = (_) => l("search"))
545
- }, null, 8, ["column"])) : n.column.params.FieldType === "inputNumber" ? (openBlock(), createBlock(_sfc_main$u, {
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: n.column,
548
- onFilterSearch: s[5] || (s[5] = (_) => l("search"))
549
- }, null, 8, ["column"])) : (openBlock(!0), createElementBlock(Fragment, { key: 6 }, renderList(n.column.filters, (_, y) => (openBlock(), createBlock(unref(ElInput), {
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": (g) => _.data = g,
553
- onKeyup: s[6] || (s[6] = withKeys((g) => l("search"), ["enter"])),
554
- disabled: ["colorPicker", "iconPicker", "progress"].includes(n.column.params.FieldType)
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: l,
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(() => s[7] || (s[7] = [
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(() => s[8] || (s[8] = [
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(() => s[9] || (s[9] = [
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(n, { emit: t }) {
627
- const e = n;
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 c = t;
631
+ const i = l;
632
632
  watch(
633
633
  () => e.row,
634
634
  () => {
635
- c("ActionRenderBefore", {
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 o(l) {
648
- c("ActionClick", {
649
- btnInfo: l,
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 (l, a) => (openBlock(), createElementBlock("div", _hoisted_1$e, [
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: (s) => o(u)
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(n, { emit: t }) {
694
- const e = n, r = ref(!!e.row[e.column.field]);
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 c = t;
699
- function o(l, a, u) {
700
- a[u.field] = l, c("change", l, a, u);
698
+ const i = l;
699
+ function n(t, o, u) {
700
+ o[u.field] = t, i("change", t, o, u);
701
701
  }
702
- return (l, a) => {
702
+ return (t, o) => {
703
703
  var u;
704
704
  return openBlock(), createBlock(unref(ElCheckbox), {
705
- disabled: (u = n.column.params) == null ? void 0 : u.disabled,
705
+ disabled: (u = a.column.params) == null ? void 0 : u.disabled,
706
706
  modelValue: r.value,
707
- "onUpdate:modelValue": a[0] || (a[0] = (s) => r.value = s),
708
- onChange: a[1] || (a[1] = (s) => o(s, n.row, n.column))
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(n) {
746
- const t = n;
747
- t.column.params.LabelConfig || (t.column.params.LabelConfig = []);
748
- const e = ref(t.column.params.LabelConfig);
749
- e.value.forEach((i) => {
750
- i.Value == "true" ? i.Value = !0 : i.Value == "false" && (i.Value = !1);
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(() => t.row[t.column.field]), c = computed(() => e.value.find((i) => i.Value == r.value));
752
+ const r = computed(() => l.row[l.column.field]), i = computed(() => e.value.find((c) => c.Value == r.value));
753
753
  onMounted(() => {
754
- t.column.params.LabelAutoColor && !c.value && (r.value || r.value === 0) && e.value.push({
754
+ l.column.params.LabelAutoColor && !i.value && (r.value || r.value === 0) && e.value.push({
755
755
  Value: r.value,
756
- Color: s()
756
+ Color: d()
757
757
  });
758
758
  });
759
- function o(i) {
760
- if (!i) return;
761
- let d, m, _, y = 1;
762
- if (i.startsWith("#"))
763
- i = i.slice(1), i.length === 3 ? (d = parseInt(i[0] + i[0], 16), m = parseInt(i[1] + i[1], 16), _ = parseInt(i[2] + i[2], 16)) : i.length === 6 && (d = parseInt(i.slice(0, 2), 16), m = parseInt(i.slice(2, 4), 16), _ = parseInt(i.slice(4, 6), 16));
764
- else if (i.startsWith("rgb")) {
765
- const g = i.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d*\.?\d+))?\)/);
766
- g && (d = parseInt(g[1]), m = parseInt(g[2]), _ = parseInt(g[3]), g[4] && (y = parseFloat(g[4])));
767
- } else if (i.startsWith("hsl")) {
768
- const g = i.match(/hsla?\((\d+),\s*(\d+)%,\s*(\d+)%(?:,\s*(\d*\.?\d+))?\)/);
769
- if (g) {
770
- const h = parseInt(g[1]) / 360, k = parseInt(g[2]) / 100, x = parseInt(g[3]) / 100;
771
- if (g[4] && (y = parseFloat(g[4])), k === 0)
772
- d = m = _ = x * 255;
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 E = (V, R, j) => (j < 0 && (j += 1), j > 1 && (j -= 1), j < 0.16666666666666666 ? V + (R - V) * 6 * j : j < 0.5 ? R : j < 0.6666666666666666 ? V + (R - V) * (0.6666666666666666 - j) * 6 : V), B = x < 0.5 ? x * (1 + k) : x + k - x * k, C = 2 * x - B;
775
- d = E(C, B, h + 1 / 3) * 255, m = E(C, B, h) * 255, _ = E(C, B, h - 1 / 3) * 255;
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: d, g: m, b: _, a: y };
779
+ return { r: f, g: s, b: _, a: y };
780
780
  }
781
- function l(i, d, m) {
782
- i /= 255, d /= 255, m /= 255;
783
- const _ = Math.max(i, d, m), y = Math.min(i, d, m);
784
- let g, h, k = (_ + y) / 2;
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
- g = h = 0;
786
+ h = k = 0;
787
787
  else {
788
- const x = _ - y;
789
- switch (h = k > 0.5 ? x / (2 - _ - y) : x / (_ + y), _) {
790
- case i:
791
- g = (d - m) / x + (d < m ? 6 : 0);
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 d:
794
- g = (m - i) / x + 2;
793
+ case f:
794
+ h = (s - c) / E + 2;
795
795
  break;
796
- case m:
797
- g = (i - d) / x + 4;
796
+ case s:
797
+ h = (c - f) / E + 4;
798
798
  break;
799
799
  }
800
- g /= 6;
800
+ h /= 6;
801
801
  }
802
- return { h: g, s: h, l: k };
802
+ return { h, s: k, l: w };
803
803
  }
804
- function a(i, d, m) {
805
- let _, y, g;
806
- if (d === 0)
807
- _ = y = g = m;
804
+ function o(c, f, s) {
805
+ let _, y, h;
806
+ if (f === 0)
807
+ _ = y = h = s;
808
808
  else {
809
- const h = (E, B, C) => (C < 0 && (C += 1), C > 1 && (C -= 1), C < 0.16666666666666666 ? E + (B - E) * 6 * C : C < 0.5 ? B : C < 0.6666666666666666 ? E + (B - E) * (0.6666666666666666 - C) * 6 : E), k = m < 0.5 ? m * (1 + d) : m + d - m * d, x = 2 * m - k;
810
- _ = h(x, k, i + 1 / 3), y = h(x, k, i), g = h(x, k, i - 1 / 3);
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(g * 255) };
813
- }
814
- function u(i, d) {
815
- if (!i) return;
816
- let { r: m, g: _, b: y } = o(i), { h: g, s: h, l: k } = l(m, _, y);
817
- k = Math.max(0, k - d);
818
- const { r: x, g: E, b: B } = a(g, h, k);
819
- return `rgb(${x}, ${E}, ${B})`;
820
- }
821
- function s() {
822
- function i(g, h) {
823
- return Math.floor(Math.random() * (h - g + 1)) + g;
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 d = i(200, 255), m = i(200, 255), _ = i(200, 255);
826
- return `#${d.toString(16).padStart(2, "0")}${m.toString(16).padStart(2, "0")}${_.toString(16).padStart(2, "0")}`;
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 (i, d) => {
829
- const m = resolveComponent("hr-icon");
828
+ return (c, f) => {
829
+ const s = resolveComponent("hr-icon");
830
830
  return r.value ? (openBlock(), createElementBlock("div", _hoisted_1$d, [
831
- c.value ? (openBlock(), createBlock(unref(ElTag), {
831
+ i.value ? (openBlock(), createBlock(unref(ElTag), {
832
832
  key: 0,
833
- color: c.value.Color,
833
+ color: i.value.Color,
834
834
  size: "small",
835
- style: normalizeStyle({ borderColor: u(c.value.Color, "0.03") })
835
+ style: normalizeStyle({ borderColor: u(i.value.Color, "0.03") })
836
836
  }, {
837
837
  default: withCtx(() => [
838
- c.value.LeftIcon ? (openBlock(), createBlock(m, {
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(c.value.Color, "0.3"),
843
- icon: c.value.LeftIcon
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(n.displayValue === void 0 ? r.value : n.displayValue), 1),
846
- c.value.RightIcon ? (openBlock(), createBlock(m, {
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(c.value.Color, "0.3"),
851
- icon: c.value.RightIcon
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(n.displayValue === void 0 ? r.value : n.displayValue), 513), [
857
- [vShow, !c.value]
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(n, t, e) {
887
- emit("change", n, t, e);
886
+ function handleChange(a, l, e) {
887
+ emit("change", a, l, e);
888
888
  }
889
889
  function handleChoose(row, column, gridRef) {
890
- var n;
890
+ var a;
891
891
  let result;
892
- if (emit("onChooseBefor-Click", column, (t) => {
893
- result = t;
894
- }), !result || (n = column.params) != null && n.disabled) return;
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, (t, e) => {
901
- isEmpty(StoredValueField) || isEmpty(ReturnValueField) || (Array.isArray(StoredValueField) || (StoredValueField = [StoredValueField]), Array.isArray(ReturnValueField) || (ReturnValueField = [ReturnValueField]), StoredValueField.forEach((r, c) => {
902
- var o;
903
- return row[r] = ((o = e[ReturnValueField[c]]) == null ? void 0 : o.join(",")) || null;
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, (t, e) => {
906
- isEmpty(StoredValueField) || isEmpty(ReturnValueField) || (Array.isArray(StoredValueField) || (StoredValueField = [StoredValueField]), Array.isArray(ReturnValueField) || (ReturnValueField = [ReturnValueField]), StoredValueField.forEach((r, c) => {
907
- var o;
908
- return row[r] = ((o = e[ReturnValueField[c]]) == null ? void 0 : o.join(",")) || null;
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 (n, t) => (openBlock(), createElementBlock("div", _hoisted_1$c, [
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: t[0] || (t[0] = (e) => handleChoose(__props.row, __props.column, __props.gridRef))
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(n, { emit: t }) {
949
- const e = n, r = ref([
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
- ]), c = ref(isColor(e.row[e.column.field]) ? e.row[e.column.field] : null);
986
+ ]), i = ref(isColor(e.row[e.column.field]) ? e.row[e.column.field] : null);
987
987
  watchEffect(() => {
988
- c.value = isColor(e.row[e.column.field]) ? e.row[e.column.field] : null;
988
+ i.value = isColor(e.row[e.column.field]) ? e.row[e.column.field] : null;
989
989
  });
990
- const o = t;
991
- function l(a, u, s) {
992
- u[s.field] = a, o("change", a, u, s);
990
+ const n = l;
991
+ function t(o, u, d) {
992
+ u[d.field] = o, n("change", o, u, d);
993
993
  }
994
- return (a, u) => {
995
- var s;
994
+ return (o, u) => {
995
+ var d;
996
996
  return openBlock(), createElementBlock("div", _hoisted_1$b, [
997
997
  createVNode(unref(ElColorPicker), {
998
- disabled: (s = n.column.params) == null ? void 0 : s.disabled,
998
+ disabled: (d = a.column.params) == null ? void 0 : d.disabled,
999
999
  class: "size-full",
1000
- modelValue: c.value,
1001
- "onUpdate:modelValue": u[0] || (u[0] = (i) => c.value = i),
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] = (i) => l(i, n.row, n.column))
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(n) {
1030
- return (t, e) => (openBlock(), createElementBlock("div", _hoisted_1$a));
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(n) {
1053
+ setup(a) {
1054
1054
  dayjs.extend(isoWeek), dayjs.extend(quarterOfYear), dayjs.extend(customParseFormat);
1055
- const t = n, e = computed(() => {
1056
- var a;
1057
- const l = ((a = t.column.params) == null ? void 0 : a.DateType) || "date";
1058
- return o(r(t.row[t.column.field], l), l);
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(l, a) {
1061
- if (!l) return null;
1062
- const s = {
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
- }[a];
1071
- if (!s) throw new Error("Unsupported date type");
1072
- let i = dayjs(l, s);
1073
- if (l.includes("周") || !i.isValid() && a === "week") {
1074
- const d = l.match(/^(\d{4})年第(\d{1,2})周$/);
1075
- if (d) {
1076
- const [, m, _] = d;
1077
- i = dayjs(`${m}-01-01`).isoWeek(Number(_));
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 (l.includes("季度") || !i.isValid() && a === "quarter") {
1080
- const d = l.match(/^(\d{4})年第(\d)季度$/);
1081
- if (d) {
1082
- const [, m, _] = d;
1083
- i = dayjs(`${m}-01-01`).quarter(Number(_));
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 (l.includes("月") || !i.isValid() && a === "month") {
1086
- const d = l.match(/^(\d{4})年(\d{1,2})月$/);
1087
- if (d) {
1088
- const [, m, _] = d;
1089
- i = dayjs(`${m}-${_}-01`);
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 (l.includes("年") || !i.isValid() && a === "year") {
1092
- const d = l.match(/^(\d{4})年$/);
1093
- if (d) {
1094
- const [, m] = d;
1095
- i = dayjs(`${m}-01-01`);
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 i.isValid() ? c(i, a) : null;
1098
+ return c.isValid() ? i(c, o) : null;
1099
1099
  }
1100
- function c(l, a) {
1101
- switch (a) {
1100
+ function i(t, o) {
1101
+ switch (o) {
1102
1102
  case "time":
1103
- return l.format("HH:mm:ss");
1103
+ return t.format("HH:mm:ss");
1104
1104
  case "date":
1105
- return l.format("YYYY-MM-DD");
1105
+ return t.format("YYYY-MM-DD");
1106
1106
  case "datetime":
1107
- return l.format("YYYY-MM-DD HH:mm:ss");
1107
+ return t.format("YYYY-MM-DD HH:mm:ss");
1108
1108
  case "week":
1109
- return l.startOf("isoWeek").format("YYYY-MM-DD");
1109
+ return t.startOf("isoWeek").format("YYYY-MM-DD");
1110
1110
  case "month":
1111
- return l.startOf("month").format("YYYY-MM-DD");
1111
+ return t.startOf("month").format("YYYY-MM-DD");
1112
1112
  case "quarter":
1113
- return l.startOf("quarter").format("YYYY-MM-DD");
1113
+ return t.startOf("quarter").format("YYYY-MM-DD");
1114
1114
  case "year":
1115
- return l.startOf("year").format("YYYY-MM-DD");
1115
+ return t.startOf("year").format("YYYY-MM-DD");
1116
1116
  default:
1117
1117
  return null;
1118
1118
  }
1119
1119
  }
1120
- function o(l, a) {
1121
- if (!l) return "";
1122
- switch (a) {
1120
+ function n(t, o) {
1121
+ if (!t) return "";
1122
+ switch (o) {
1123
1123
  case "week":
1124
- return `${dayjs(l).year()}年第${dayjs(l).isoWeek()}周`;
1124
+ return `${dayjs(t).year()}年第${dayjs(t).isoWeek()}周`;
1125
1125
  case "month":
1126
- return `${dayjs(l).year()}年${dayjs(l).month() + 1}月`;
1126
+ return `${dayjs(t).year()}年${dayjs(t).month() + 1}月`;
1127
1127
  case "quarter":
1128
- return `${dayjs(l).year()}年第${dayjs(l).quarter()}季度`;
1128
+ return `${dayjs(t).year()}年第${dayjs(t).quarter()}季度`;
1129
1129
  case "year":
1130
- return `${dayjs(l).year()}年`;
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(l).format(u[a]);
1137
+ return dayjs(t).format(u[o]);
1138
1138
  }
1139
1139
  }
1140
- return (l, a) => t.column.params.IsLabel ? (openBlock(), createBlock(_sfc_main$q, normalizeProps(mergeProps({ key: 0 }, { ...t, displayValue: e.value })), null, 16)) : (openBlock(), createElementBlock("span", {
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(n, { emit: t }) {
1171
- const e = t;
1172
- function r(c) {
1173
- ["jpg", "jpeg", "png", "gif", "bmp", "svg"].includes(c.FileType.toLowerCase()) || e("file-click", c);
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 (c, o) => {
1176
- const l = resolveDirective("viewer");
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(n.row[n.column.field], (a, u) => (openBlock(), createElementBlock("div", {
1178
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(a.row[a.column.field], (o, u) => (openBlock(), createElementBlock("div", {
1179
1179
  class: "Link flex",
1180
- title: a.FileName
1180
+ title: o.FileName
1181
1181
  }, [
1182
- unref(getFileIconUrl)(a.FileType) ? (openBlock(), createElementBlock("div", {
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)(a.FileType)})`,
1186
+ backgroundImage: `url(${unref(getFileIconUrl)(o.FileType)})`,
1187
1187
  backgroundSize: "cover"
1188
1188
  }),
1189
- onClick: (s) => r(a)
1189
+ onClick: (d) => r(o)
1190
1190
  }, null, 12, _hoisted_3$1)) : (openBlock(), createBlock(unref(ElImage), {
1191
1191
  key: 0,
1192
- onClick: (s) => r(a),
1192
+ onClick: (d) => r(o),
1193
1193
  class: "size-5",
1194
- src: a.FilePath
1194
+ src: o.FilePath
1195
1195
  }, null, 8, ["onClick", "src"])),
1196
1196
  createElementVNode("a", {
1197
- href: a.FilePath,
1198
- download: a.FileName
1199
- }, toDisplayString(u + 1) + "." + toDisplayString(a.FileType), 9, _hoisted_4$1)
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
- l,
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(n, { emit: t }) {
1234
- const e = t;
1235
- function r(o, l, a) {
1236
- e("change", o, l, a);
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 c(o, l) {
1238
+ function i(n, t) {
1239
1239
  var u;
1240
- if ((u = l.params) != null && u.disable) return;
1241
- let a = layer.open({
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 = (s) => {
1249
- o[l.field] = s.font_class, r(s, o, l);
1250
- }, window.clearIcon = (s) => {
1251
- o[l.field] = "", r(s, o, l), layer.close(a);
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 (o, l) => (openBlock(), createElementBlock("div", {
1254
+ return (n, t) => (openBlock(), createElementBlock("div", {
1255
1255
  class: "w-full h-full flex justify-center items-center",
1256
- onClick: l[0] || (l[0] = (a) => c(n.row, n.column))
1256
+ onClick: t[0] || (t[0] = (o) => i(a.row, a.column))
1257
1257
  }, [
1258
1258
  createVNode(unref(HrIcon), {
1259
- icon: n.row[n.column.field]
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(n, { emit: t }) {
1286
- const e = n, r = t;
1287
- function c(o, l) {
1285
+ setup(a, { emit: l }) {
1286
+ const e = a, r = l;
1287
+ function i(n, t) {
1288
1288
  var y;
1289
- if ((y = l.params) != null && y.disabled) return;
1289
+ if ((y = t.params) != null && y.disabled) return;
1290
1290
  let {
1291
- PickPeopleType: a,
1291
+ PickPeopleType: o,
1292
1292
  PickPeopleCheckType: u,
1293
- PickPeopleIsAll: s,
1294
- PickPeopleStatus: i,
1295
- StoredValueField: d,
1296
- ReturnValueField: m,
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: a,
1300
+ Type: o,
1301
1301
  Choose: u,
1302
- IsAll: s,
1303
- Status: i
1304
- }, (g) => {
1305
- isEmpty(d) ? o[l.field] = g.Name || null : (Array.isArray(d) || (d = [d]), Array.isArray(m) || (m = [m]), d.forEach((h, k) => o[h] = g[m[k]] || null)), r("change", g, o, l);
1306
- }, _ ? o[_] : null);
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 (o, l) => (openBlock(), createElementBlock("div", _hoisted_1$7, [
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: l[0] || (l[0] = (a) => c(n.row, n.column))
1312
+ onClick: t[0] || (t[0] = (o) => i(a.row, a.column))
1313
1313
  }, {
1314
1314
  default: withCtx(() => [
1315
- createTextVNode(toDisplayString(n.row[n.column.field] || "请选择"), 1)
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(n, { emit: t }) {
1344
- const e = n;
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 c = Number(parseFloat(e.row[e.column.field]));
1349
- if (isNaN(c))
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 = c > 100 ? 100 : c, c > 100 ? e.row[e.column.field] = 100 : e.row[e.column.field] = 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
- }), (c, o) => (openBlock(), createBlock(unref(ElProgress), {
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(n, { emit: t }) {
1382
- const e = n, r = t;
1383
- function c(o, l, a) {
1384
- e.gridRef.getTableData().tableData.filter((u) => u !== l).forEach((u) => {
1385
- u[a.field] && (u[a.field] = !1);
1386
- }), r("change", o, l, a);
1387
- }
1388
- return (o, l) => {
1389
- var a;
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: (a = n.column.params) == null ? void 0 : a.disabled,
1392
- modelValue: n.row[n.column.field],
1393
- "onUpdate:modelValue": l[0] || (l[0] = (u) => n.row[n.column.field] = u),
1394
- onChange: l[1] || (l[1] = (u) => c(u, n.row, n.column))
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(n) {
1425
- var c, o;
1426
- const t = n;
1427
- (c = t.column.params)[o = t.gridRef.getRowid(t.row)] ?? (c[o] = {}), watchEffect(() => {
1428
- var l, a;
1429
- (l = t.column.params)[a = t.gridRef.getRowid(t.row)] ?? (l[a] = {}), !t.column.params[t.gridRef.getRowid(t.row)].options && t.column.params.options && (t.column.params[t.gridRef.getRowid(t.row)].options = deepClone(t.column.params.options));
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 l;
1433
- return ((l = t.column.params[t.gridRef.getRowid(t.row)]) == null ? void 0 : l.options) || t.column.params.options;
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 a, u;
1436
- const l = t.row[t.column.field];
1437
- if (l && l.length > 1) {
1438
- let s = [];
1439
- return l.split(",").map((i) => {
1440
- var m, _;
1441
- const d = (_ = (m = e.value) == null ? void 0 : m.find((y) => y.value == i)) == null ? void 0 : _.label;
1442
- d !== void 0 && s.push(d);
1443
- }), s.join(",");
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 = (a = e.value) == null ? void 0 : a.find((s) => s.value == l)) == null ? void 0 : u.label) || "";
1445
+ return ((u = (o = e.value) == null ? void 0 : o.find((d) => d.value == t)) == null ? void 0 : u.label) || "";
1446
1446
  });
1447
- return (l, a) => t.column.params.IsLabel ? (openBlock(), createBlock(_sfc_main$q, normalizeProps(mergeProps({ key: 0 }, { ...t, displayValue: r.value })), null, 16)) : (openBlock(), createElementBlock("span", {
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(n) {
1474
- var c, o;
1475
- const t = n;
1476
- (c = t.column.params)[o = t.gridRef.getRowid(t.row)] ?? (c[o] = {}), watchEffect(() => {
1477
- var l, a;
1478
- (l = t.column.params)[a = t.gridRef.getRowid(t.row)] ?? (l[a] = {}), !t.column.params[t.gridRef.getRowid(t.row)].options && t.column.params.options && (t.column.params[t.gridRef.getRowid(t.row)].options = deepClone(t.column.params.options));
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 l;
1482
- return ((l = t.column.params[t.gridRef.getRowid(t.row)]) == null ? void 0 : l.options) || t.column.params.options;
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 l, a;
1485
- return ((a = (l = e.value) == null ? void 0 : l.find((u) => u.value == t.row[t.column.field])) == null ? void 0 : a.label) || "";
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 (l, a) => t.column.params.IsLabel ? (openBlock(), createBlock(_sfc_main$q, mergeProps({ key: 0 }, { ...t, displayValue: r.value }, { title: r.value }), null, 16, ["title"])) : (openBlock(), createElementBlock("span", {
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(n) {
1514
- const t = n;
1515
- if (!t.column.params.TreeData) {
1516
- const { options: r, ParentNodeField: c, NodeValueField: o } = t.column.params;
1517
- t.column.params.TreeData = buildTree(deepClone(r), c, o);
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: c = "value" } = t.column.params;
1521
- if (t.row[t.column.field]) {
1522
- let o = t.row[t.column.field].split(",");
1523
- return t.column.params.options.filter((l) => o.includes(l[c])).map((l) => l[r]).join(",");
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, c) => t.column.params.IsLabel ? (openBlock(), createBlock(_sfc_main$q, normalizeProps(mergeProps({ key: 0 }, { ...t, displayValue: e.value })), null, 16)) : (openBlock(), createElementBlock("span", {
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(n) {
1553
- const t = n;
1554
- if (!t.column.params.TreeData) {
1555
- const { options: r, ParentNodeField: c, NodeKeyField: o } = t.column.params;
1556
- t.column.params.TreeData = buildTree(deepClone(r), c, o);
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 o;
1560
- const { NodeNameField: r = "label", NodeValueField: c = "value" } = t.column.params;
1561
- return ((o = t.column.params.options.find((l) => l[c] == t.row[t.column.field])) == null ? void 0 : o[r]) || "";
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, c) => t.column.params.IsLabel ? (openBlock(), createBlock(_sfc_main$q, normalizeProps(mergeProps({ key: 0 }, { ...t, displayValue: e.value })), null, 16)) : (openBlock(), createElementBlock("span", {
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 n in modules$1) {
1575
- let t = modules$1[n].default.name;
1576
- comps$1[t] = modules$1[n].default;
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(n, { emit: t }) {
1598
- var l;
1597
+ setup(a, { emit: l }) {
1598
+ var t;
1599
1599
  dayjs.extend(isoWeek), dayjs.extend(quarterOfYear), dayjs.extend(customParseFormat);
1600
- const e = n, r = ref(c(e.row[e.column.field], ((l = e.column.params) == null ? void 0 : l.DateType) || "date"));
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 a = ((u = e.column.params) == null ? void 0 : u.DateType) || "date";
1604
- r.value && (a === "year" ? e.row[e.column.field] = dayjs(r.value).format("YYYY年") : a === "month" ? e.row[e.column.field] = dayjs(r.value).format("YYYY年MM月") : a === "quarter" ? e.row[e.column.field] = dayjs(r.value).format("YYYY年第Q季度") : a === "week" ? e.row[e.column.field] = dayjs(r.value).format("YYYY年第WW周") : a === "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"));
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 c(a, u) {
1607
- if (!a) return null;
1608
- const i = {
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 (!i) throw new Error("Unsupported date type");
1618
- let d = dayjs(a, i);
1619
- if (!d.isValid() && u === "week") {
1620
- const m = a.match(/^(\d{4})年第(\d{2})周$/);
1621
- if (m) {
1622
- const [, _, y] = m;
1623
- d = dayjs(`${_}-01-01`).isoWeek(Number(y));
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 (!d.isValid() && u === "quarter") {
1626
- const m = a.match(/^(\d{4})年第(\d)季度$/);
1627
- if (m) {
1628
- const [, _, y] = m;
1629
- d = dayjs(`${_}-01-01`).quarter(Number(y));
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 (!d.isValid() && u === "month") {
1632
- const m = a.match(/^(\d{4})年(\d{2})月$/);
1633
- if (m) {
1634
- const [, _, y] = m;
1635
- d = dayjs(`${_}-${y}-01`);
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 (!d.isValid() && u === "year") {
1638
- const m = a.match(/^(\d{4})年$/);
1639
- if (m) {
1640
- const [, _] = m;
1641
- d = dayjs(`${_}-01-01`);
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 d.isValid() ? o(d, u) : null;
1644
+ return f.isValid() ? n(f, u) : null;
1645
1645
  }
1646
- function o(a, u) {
1646
+ function n(o, u) {
1647
1647
  switch (u) {
1648
1648
  case "time":
1649
- return a.format("HH:mm:ss");
1649
+ return o.format("HH:mm:ss");
1650
1650
  case "date":
1651
- return a.format("YYYY-MM-DD");
1651
+ return o.format("YYYY-MM-DD");
1652
1652
  case "datetime":
1653
- return a.format("YYYY-MM-DD HH:mm:ss");
1653
+ return o.format("YYYY-MM-DD HH:mm:ss");
1654
1654
  case "week":
1655
- return a.startOf("isoWeek").format("YYYY-MM-DD");
1655
+ return o.startOf("isoWeek").format("YYYY-MM-DD");
1656
1656
  case "month":
1657
- return a.startOf("month").format("YYYY-MM-DD");
1657
+ return o.startOf("month").format("YYYY-MM-DD");
1658
1658
  case "quarter":
1659
- return a.startOf("quarter").format("YYYY-MM-DD");
1659
+ return o.startOf("quarter").format("YYYY-MM-DD");
1660
1660
  case "year":
1661
- return a.startOf("year").format("YYYY-MM-DD");
1661
+ return o.startOf("year").format("YYYY-MM-DD");
1662
1662
  default:
1663
1663
  return null;
1664
1664
  }
1665
1665
  }
1666
- return (a, u) => {
1667
- var s;
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] = (i) => r.value = i),
1671
- type: ((s = n.column.params) == null ? void 0 : s.DateType) || "date",
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(n) {
1699
- const t = n, e = ref(t.row[t.column.field]);
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
- t.row[t.column.field] = e.value;
1702
- }), (r, c) => (openBlock(), createBlock(unref(ElInput), {
1704
+ l.row[l.column.field] = e.value;
1705
+ }), (i, n) => (openBlock(), createBlock(unref(ElInput), {
1703
1706
  modelValue: e.value,
1704
- "onUpdate:modelValue": c[0] || (c[0] = (o) => e.value = o)
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(n, { emit: t }) {
1730
- const e = n, r = ref(e.row[e.column.field]);
1731
- return onBeforeUnmount(() => {
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
- }), (c, o) => (openBlock(), createBlock(unref(ElInput), {
1740
+ }), (n, t) => (openBlock(), createBlock(unref(ElInput), {
1734
1741
  modelValue: r.value,
1735
- "onUpdate:modelValue": o[0] || (o[0] = (l) => r.value = l),
1736
- min: n.column.params.min,
1737
- max: n.column.params.max,
1738
- step: n.column.params.step,
1739
- type: "number"
1740
- }, null, 8, ["modelValue", "min", "max", "step"]));
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(n) {
1764
- const t = n, e = ref(t.row[t.column.field]), r = reactive(t.column.params || {
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
- }), c = computed(() => {
1769
- var o;
1770
- return ((o = t.column.params[t.gridRef.getRowid(t.row)]) == null ? void 0 : o.options) || t.column.params.options || [];
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 l;
1774
- t.row[t.column.field] = e.value;
1775
- const o = t.column.params.LabelStoreField;
1776
- if (o) {
1777
- const a = (l = c.value.find((u) => u.value === e.value)) == null ? void 0 : l.label;
1778
- a !== void 0 ? t.row[o] = a : e.value === void 0 ? t.row[o] = null : e.value !== void 0 && a === void 0 && (t.row[o] = e.value);
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
- }), (o, l) => (openBlock(), createBlock(unref(ElSelect), {
1788
+ }), (n, t) => (openBlock(), createBlock(unref(ElSelect), {
1781
1789
  class: "z-1",
1782
1790
  modelValue: e.value,
1783
- "onUpdate:modelValue": l[0] || (l[0] = (a) => e.value = a),
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(c.value, (a) => (openBlock(), createBlock(unref(ElOption), {
1798
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(i.value, (o) => (openBlock(), createBlock(unref(ElOption), {
1791
1799
  class: "vxe-table--ignore-clear",
1792
- key: a.value,
1793
- label: a.label,
1794
- value: a.value,
1795
- disabled: a.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(n) {
1823
- const t = n, e = reactive(t.column.params || {
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 o;
1829
- return ((o = t.column.params[t.gridRef.getRowid(t.row)]) == null ? void 0 : o.options) || t.column.params.options || [];
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 o = c.value.join(",");
1833
- t.row[t.column.field] = o;
1834
- const l = t.column.params.LabelStoreField;
1835
- if (l) {
1836
- const a = r.value.filter((u) => c.value.includes(u.value)).map((u) => u.label).join(",");
1837
- t.row[l] = a;
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 c = ref([]);
1848
+ const i = ref([]);
1841
1849
  return watchEffect(() => {
1842
- t.row[t.column.field] ? c.value = t.row[t.column.field].split(",") : c.value = [];
1843
- }), (o, l) => (openBlock(), createBlock(unref(ElSelect), {
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: c.value,
1846
- "onUpdate:modelValue": l[0] || (l[0] = (a) => c.value = a),
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, (a) => (openBlock(), createBlock(unref(ElOption), {
1862
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(r.value, (o) => (openBlock(), createBlock(unref(ElOption), {
1855
1863
  class: "vxe-table--ignore-clear",
1856
- key: a.value,
1857
- label: a.label,
1858
- value: a.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(n, { emit: t }) {
1887
- const e = t, r = n, c = ref(r.row[r.column.field] === void 0 ? "" : r.row[r.column.field]), o = reactive(r.column.params || {
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: a, ReturnValueField: u } = o;
1899
- a && a.length ? a.forEach((s, i) => {
1900
- const d = o.options.find((m) => m._value === c.value);
1901
- d && (r.row[s] = d[u[i]]);
1902
- }) : r.row[r.column.field] = c.value;
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 l(a) {
1905
- const { DataAPIOID: u, SearchField: s } = o;
1906
- a ? (o.loading = !0, e("remoteMethod", { DataAPIOID: u, SearchField: s, query: a, params: o })) : r.row[r.column.field] = null;
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 (a, u) => (openBlock(), createBlock(unref(ElSelect), {
1916
+ return (o, u) => (openBlock(), createBlock(unref(ElSelect), {
1909
1917
  class: "z-1 vxe-table--ignore-clear",
1910
- modelValue: c.value,
1911
- "onUpdate:modelValue": u[0] || (u[0] = (s) => c.value = s),
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: o.placeholder,
1924
+ placeholder: n.placeholder,
1917
1925
  "popper-class": "select-dropdown",
1918
- "remote-method": l,
1926
+ "remote-method": t,
1919
1927
  clearable: ""
1920
1928
  }, {
1921
1929
  default: withCtx(() => [
1922
- (openBlock(!0), createElementBlock(Fragment, null, renderList(o.options, (s) => (openBlock(), createBlock(unref(ElOption), {
1930
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(n.options, (d) => (openBlock(), createBlock(unref(ElOption), {
1923
1931
  class: "vxe-table--ignore-clear",
1924
- key: s._value,
1925
- label: s._label,
1926
- value: s._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(n) {
1954
- const t = n, e = ref(t.row[t.column.field]);
1961
+ setup(a) {
1962
+ const l = a, e = ref(l.row[l.column.field]);
1955
1963
  return onBeforeUnmount(() => {
1956
- t.row[t.column.field] = e.value;
1957
- }), (r, c) => (openBlock(), createBlock(unref(ElInput), {
1964
+ l.row[l.column.field] = e.value;
1965
+ }), (r, i) => (openBlock(), createBlock(unref(ElInput), {
1958
1966
  modelValue: e.value,
1959
- "onUpdate:modelValue": c[0] || (c[0] = (o) => e.value = o),
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(n) {
1986
- const t = n, e = ref({
1987
- label: t.column.params.NodeNameField || "label",
1988
- value: t.column.params.NodeValueField || "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 (!t.column.params.TreeData) {
1992
- const { options: c, ParentNodeField: o, NodeValueField: l } = t.column.params;
1993
- t.column.params.TreeData = buildTree(deepClone(c), o, l);
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
- t.row[t.column.field] = r.value.join(",");
2005
+ l.row[l.column.field] = r.value.join(",");
1998
2006
  }), watchEffect(() => {
1999
- t.row[t.column.field] ? r.value = t.row[t.column.field].split(",") : r.value = [];
2000
- }), (c, o) => (openBlock(), createBlock(unref(ElTreeSelect), {
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": o[0] || (o[0] = (l) => r.value = l),
2011
+ "onUpdate:modelValue": n[0] || (n[0] = (t) => r.value = t),
2004
2012
  "automatic-dropdown": "",
2005
2013
  "popper-class": "tree-select",
2006
- data: n.column.params.TreeData,
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(n) {
2036
- const t = n, e = ref(t.row[t.column.field]), r = ref({
2037
- label: t.column.params.NodeNameField || "label",
2038
- value: t.column.params.NodeValueField || "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 (!t.column.params.TreeData) {
2042
- const { options: c, ParentNodeField: o, NodeValueField: l } = t.column.params;
2043
- t.column.params.TreeData = buildTree(deepClone(c), o, l);
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
- t.row[t.column.field] = e.value;
2047
- }), (c, o) => (openBlock(), createBlock(unref(ElTreeSelect), {
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": o[0] || (o[0] = (l) => e.value = l),
2058
+ "onUpdate:modelValue": n[0] || (n[0] = (t) => e.value = t),
2051
2059
  "automatic-dropdown": "",
2052
2060
  "popper-class": "tree-select",
2053
- data: n.column.params.TreeData,
2061
+ data: a.column.params.TreeData,
2054
2062
  clearable: "",
2055
2063
  props: r.value,
2056
2064
  indent: 12
2057
2065
  }, {
2058
- label: withCtx(({ label: l, value: a }) => [
2059
- createElementVNode("span", null, toDisplayString(n.column.params.options.find((u) => u[r.value.value] === a) ? l : ""), 1)
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 n in modules) {
2071
- let t = modules[n].default.name;
2072
- comps[t] = modules[n].default;
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(n, { emit: t }) {
2097
- const e = n, r = ref(), c = ref([
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 ? c.value = ["Total"] : useElementClientSize(r.value, ({ clientWidth: a }) => {
2109
- a < 300 ? c.value = ["Total"] : a < 500 ? c.value = [
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
- ] : c.value = [
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
- (a) => {
2130
- a === !1 ? c.value = ["Total"] : c.value = [
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 o = t;
2143
- function l() {
2144
- o("pageChange", e.pagination);
2150
+ const n = l;
2151
+ function t() {
2152
+ n("pageChange", e.pagination);
2145
2153
  }
2146
- return (a, u) => (openBlock(), createElementBlock("div", {
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": n.pagination.Page,
2156
- "onUpdate:currentPage": u[0] || (u[0] = (s) => n.pagination.Page = s),
2157
- "page-size": n.pagination.PageSize,
2158
- "onUpdate:pageSize": u[1] || (u[1] = (s) => n.pagination.PageSize = s),
2159
- total: n.pagination.Total,
2160
- layouts: c.value,
2161
- onPageChange: l,
2162
- "page-sizes": n.pagination.PageSizes
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
- }), _hoisted_1$2 = { class: "h-full w-full" }, _hoisted_2$2 = { style: { "padding-top": "1px", "box-sizing": "border-box" } }, _sfc_main$2 = /* @__PURE__ */ defineComponent({
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
+ "&": "&amp;",
2305
+ "<": "&lt;",
2306
+ ">": "&gt;",
2307
+ '"': "&quot;",
2308
+ "'": "&#39;"
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(n, { expose: t, emit: e }) {
2192
- const r = n, c = e, o = ref(), l = reactive(r.config);
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 a = ref(!1);
2342
+ let f = ref(!1), s = null;
2195
2343
  onMounted(() => {
2196
- document.addEventListener("click", M, !0);
2344
+ document.addEventListener("click", H, !0);
2197
2345
  }), onBeforeUnmount(() => {
2198
- document.removeEventListener("click", M, !0);
2346
+ document.removeEventListener("click", H, !0), z();
2199
2347
  });
2200
2348
  const {
2201
- CheckboxRender: u,
2202
- ColorPickerRender: s,
2203
- IconPickerRender: i,
2204
- RadioRender: d,
2205
- ProgressRender: m,
2206
- ActionRender: _,
2207
- SelectRender: y,
2208
- TreeSelectRender: g,
2209
- SelectMultipleRender: h,
2210
- TreeMultipleSelectRender: k,
2211
- ChooseFrameRender: x,
2212
- PickPeopleRender: E,
2213
- FileRender: B,
2214
- CustomRender: C,
2215
- DatePickerRender: V,
2216
- LabelRender: R
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: j,
2219
- TreeSelectEditor: Y,
2220
- SelectEditor: I,
2221
- TextareaEditor: z,
2222
- DatePickerEditor: A,
2223
- SelectMultipleEditor: H,
2224
- TreeMultipleSelectEditor: U,
2225
- InputNumberEditor: L,
2226
- SelectRemoteEditor: q
2227
- } = comps, W = computed(() => {
2228
- var v, b;
2229
- return ((((v = r.pagination) == null ? void 0 : v.Page) || 1) - 1) * (((b = r.pagination) == null ? void 0 : b.PageSize) || 1e3);
2230
- }), N = computed(() => {
2231
- var b;
2232
- if (l.Number)
2233
- if (l.columns.some(
2234
- (f) => f.type === "seq" || f.children && f.children.some((w) => w.type === "seq")
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
- l.columns = l.columns.filter((f) => f.type === "seq" ? !1 : f.children ? (f.children = f.children.filter((w) => w.type !== "seq"), f.children.length > 0) : !0);
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 f = l.columns.find(($) => ["left", "right"].includes($.fixed));
2239
- const w = {
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: f || void 0
2394
+ fixed: V || void 0
2247
2395
  };
2248
- l.columns.unshift(w);
2396
+ c.columns.unshift(B);
2249
2397
  }
2250
2398
  if (r.config.AutoFullWidth) {
2251
- const f = P(r.config.columns || []).filter((S) => !S.children), w = f.reduce((S, O) => {
2252
- let D = Number(O.width);
2253
- return S + (isNaN(D) ? 100 : D);
2254
- }, 0), $ = (S = 0) => {
2255
- if (S > 50) return;
2256
- if (!o.value) {
2257
- setTimeout(() => $(++S), 0);
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 O = o.value.$el.clientWidth;
2261
- w !== O && f.forEach((D) => {
2262
- let F = Number(D.width);
2263
- D.width = Number(((isNaN(F) ? 100 : F) * (O / w)).toFixed(0));
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 v = {
2416
+ let g = {
2269
2417
  keepSource: !0,
2270
2418
  showOverflow: "title",
2271
2419
  seqConfig: {
2272
- seqMethod: (p) => W.value + p.$rowIndex + 1
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
- ...(b = r.config) == null ? void 0 : b.editConfig
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: l["Total-Row"],
2445
+ showFooter: c["Total-Row"],
2290
2446
  // 启用表尾统计
2291
2447
  // showFooter: true, // 启用统计行
2292
- footerMethod({ columns: p, data: f }) {
2293
- return [
2294
- p.map((w, $) => $ === 0 ? "合计" : l["Total-Field"].includes(w.field) ? T(f, w.field).toLocaleString("zh-CN") : "")
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 l.BodyMenu && (v.menuConfig = {
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
- }), v;
2307
- }), K = {
2308
- cellMenu({ row: v }) {
2309
- const b = o.value;
2310
- b && b.setCurrentRow(v);
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: v }) {
2313
- const b = o.value;
2314
- if (b)
2315
- switch (v.code) {
2519
+ async menuClick({ menu: g }) {
2520
+ const v = n.value;
2521
+ if (v)
2522
+ switch (g.code) {
2316
2523
  case "reload":
2317
- const p = layer.load(2, { shade: [0.5, "#fff"] });
2318
- r.gridRef.echoData(), layer.close(p);
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
- b.print();
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 f = (b == null ? void 0 : b.getTableData().tableData) || [];
2325
- b.exportData({
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: b.getColumns().filter(($) => $.type !== "action" && $.type !== "checkbox"),
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: f
2546
+ data: p
2334
2547
  // 当前页数据
2335
2548
  });
2336
2549
  break;
2337
2550
  case "exportAll":
2338
- let w = await r.gridRef.handleExport();
2339
- b.exportData({
2551
+ let b = await r.gridRef.handleExport();
2552
+ v.exportData({
2340
2553
  type: "csv",
2341
2554
  isHeader: !0,
2342
2555
  isFooter: !0,
2343
- columns: b.getColumns().filter(($) => $.type !== "action" && $.type !== "checkbox" && $.type !== "seq"),
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: w
2560
+ data: b
2348
2561
  });
2349
2562
  break;
2350
- case "print":
2351
- b.print();
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 J(v) {
2357
- c("ActionClick", v);
2584
+ function ce(g) {
2585
+ i("ActionClick", g);
2358
2586
  }
2359
- function G(...v) {
2360
- c("PageChange", ...v);
2587
+ function ue(...g) {
2588
+ i("PageChange", ...g);
2361
2589
  }
2362
- function Q(...v) {
2363
- c("Refresh", ...v);
2590
+ function se(...g) {
2591
+ i("Refresh", ...g);
2364
2592
  }
2365
- function X(...v) {
2366
- c("FilterSearch", ...v);
2593
+ function de(...g) {
2594
+ i("FilterSearch", ...g);
2367
2595
  }
2368
- function Z(...v) {
2369
- c("SortChange", ...v);
2596
+ function fe(...g) {
2597
+ i("SortChange", ...g);
2370
2598
  }
2371
- function ee(...v) {
2372
- c("ActionRenderBefore", ...v);
2599
+ function me(...g) {
2600
+ i("ActionRenderBefore", ...g);
2373
2601
  }
2374
- function te(...v) {
2375
- c("FileClick", ...v);
2602
+ function pe(...g) {
2603
+ i("FileClick", ...g);
2376
2604
  }
2377
- function le(v, b, p) {
2378
- v.column = b, v.row = p, c("tableSelectRemote", v);
2605
+ function _e(g, v, m) {
2606
+ g.column = v, g.row = m, i("tableSelectRemote", g);
2379
2607
  }
2380
- function oe(...v) {
2381
- c("tableSelectChange", ...v);
2608
+ function ge(...g) {
2609
+ i("tableSelectChange", ...g);
2382
2610
  }
2383
- function re(...v) {
2384
- c("RemoteMethod", ...v);
2611
+ function he(...g) {
2612
+ i("RemoteMethod", ...g);
2385
2613
  }
2386
- function ae(...v) {
2387
- c("ChooseBefor", ...v);
2614
+ function ve(...g) {
2615
+ i("ChooseBefor", ...g);
2388
2616
  }
2389
- function ne(...v) {
2390
- c("PickPeople", ...v);
2617
+ function be(...g) {
2618
+ i("PickPeople", ...g);
2391
2619
  }
2392
- function ce(...v) {
2393
- c("CheckboxChange", ...v);
2620
+ function ye(...g) {
2621
+ i("CheckboxChange", ...g);
2394
2622
  }
2395
- function P(v, b = "children", p = []) {
2396
- return v.forEach((f) => {
2397
- p.push(f), f[b] && f[b].length > 0 && P(f[b], b, p);
2398
- }), p;
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 ie = ({ menu: v }) => {
2401
- var b, p;
2402
- v.type == "print" ? (b = o.value) == null || b.openPrint() : v.type == "export" && ((p = o.value) == null || p.openExport());
2403
- }, ue = (v) => {
2404
- a.value = !0;
2405
- let b = l.columns.splice(v._index.oldIndex, 1)[0];
2406
- l.columns.splice((v._index.newIndex || 1) - 1, 0, b);
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 M(v) {
2409
- const b = v.target.closest("tr.vxe-body--row");
2410
- if (!b || !(o != null && o.value)) return;
2411
- const p = b.getAttribute("rowid");
2412
- if (!p) return;
2413
- const f = o.value.getRowById(p);
2414
- f && o.value.setCurrentRow(f);
2415
- }
2416
- function T(v, b) {
2417
- if (!(v instanceof Array)) return 0;
2418
- function p(f, w) {
2419
- let $ = 0;
2420
- function S(O) {
2421
- var D;
2422
- if (((D = O.children) == null ? void 0 : D.length) > 0)
2423
- for (const F of O.children)
2424
- S(F);
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
- $ = H_calculate(`${$}+${O[w] || 0}`);
2654
+ x = H_calculate(`${x}+${B[b] || 0}`);
2427
2655
  }
2428
- return S(f), $;
2656
+ return V(p), x;
2429
2657
  }
2430
- return v.reduce((f, w) => {
2431
- var $, S;
2432
- if (!(w != null && w.children))
2433
- return H_calculate(`${f}+${Number(w[b]) || 0}`);
2434
- if ((($ = w.children) == null ? void 0 : $.length) === 0 && (w.ParentOID === "00000000-0000-0000-0000-000000000000" || w.ParentOID === null))
2435
- return H_calculate(`${f}+${Number(w[b]) || 0}`);
2436
- if (((S = w.children) == null ? void 0 : S.length) > 0 && (w.ParentOID === "00000000-0000-0000-0000-000000000000" || w.ParentOID === null)) {
2437
- let O = p(w, b);
2438
- return H_calculate(`${f}+${O}`);
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 f;
2668
+ return p;
2441
2669
  }, 0);
2442
2670
  }
2443
- return t({
2444
- gridRef: o,
2445
- getFieldTotal: T,
2446
- gridOptions: N
2447
- }), (v, b) => (openBlock(), createElementBlock("div", _hoisted_1$2, [
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: o
2452
- }, { ...N.value, ...v.$attrs }, toHandlers(K), {
2453
- onMenuClick: ie,
2454
- onColumnDragend: ue,
2691
+ ref: n
2692
+ }, { ...Y.value, ...g.$attrs }, toHandlers(ie), {
2693
+ onMenuClick: ke,
2694
+ onColumnDragend: we,
2455
2695
  "show-overflow": "tooltip",
2456
- onCheckboxChange: ce
2696
+ onCheckboxChange: ye
2457
2697
  }), {
2458
- FilterRows: withCtx(({ column: p }) => [
2698
+ FilterRows: withCtx(({ column: m }) => [
2459
2699
  createVNode(_sfc_main$t, {
2460
- column: p,
2461
- "grid-ref": o.value,
2462
- onFilterSearch: X,
2463
- onSortChange: Z
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: p, column: f }) => [
2467
- createVNode(unref(_), {
2468
- row: p,
2469
- column: f,
2470
- "grid-ref": o.value,
2471
- onActionClick: J,
2472
- onActionRenderBefore: ee
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: p, column: f }) => [
2476
- createVNode(unref(d), {
2477
- row: p,
2478
- column: f,
2479
- "grid-ref": o.value
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: p, column: f }) => [
2483
- createVNode(unref(u), {
2484
- row: p,
2485
- column: f,
2486
- "grid-ref": o.value
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: p, column: f }) => [
2490
- createVNode(unref(s), {
2491
- row: p,
2492
- column: f,
2493
- "grid-ref": o.value
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: p, column: f }) => [
2497
- createVNode(unref(i), {
2498
- row: p,
2499
- column: f,
2500
- "grid-ref": o.value
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: p, column: f }) => [
2504
- createVNode(unref(m), {
2505
- row: p,
2506
- column: f,
2507
- "grid-ref": o.value
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: p, column: f }) => [
2511
- createVNode(unref(y), {
2512
- row: p,
2513
- column: f,
2514
- "grid-ref": o.value
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: p, column: f }) => [
2518
- createVNode(unref(h), {
2519
- row: p,
2520
- column: f,
2521
- "grid-ref": o.value
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: p, column: f }) => [
2525
- createVNode(unref(g), {
2526
- row: p,
2527
- column: f,
2528
- "grid-ref": o.value
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: p, column: f }) => [
2532
- createVNode(unref(k), {
2533
- row: p,
2534
- column: f,
2535
- "grid-ref": o.value
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: p, column: f }) => [
2539
- createVNode(unref(x), {
2540
- row: p,
2541
- column: f,
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: ae
2783
+ onOnChooseBeforClick: ve
2544
2784
  }, null, 8, ["row", "column", "grid-ref"])
2545
2785
  ]),
2546
- PickPeopleRender: withCtx(({ row: p, column: f }) => [
2547
- createVNode(unref(E), {
2548
- row: p,
2549
- column: f,
2550
- "grid-ref": o.value,
2551
- onChange: ne
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: p, column: f }) => [
2555
- createVNode(unref(B), {
2556
- row: p,
2557
- column: f,
2558
- "grid-ref": o.value,
2559
- onFileClick: te
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: p, column: f }) => [
2563
- createVNode(unref(C), {
2564
- row: p,
2565
- column: f,
2566
- "grid-ref": o.value
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: p, column: f }) => [
2570
- createVNode(unref(V), {
2571
- row: p,
2572
- column: f,
2573
- "grid-ref": o.value
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: p, column: f }) => [
2577
- createVNode(unref(R), {
2578
- row: p,
2579
- column: f,
2580
- "grid-ref": o.value
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: p, column: f }) => [
2584
- createVNode(unref(j), {
2585
- row: p,
2586
- column: f,
2587
- "grid-ref": o.value
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: p, column: f }) => [
2591
- createVNode(unref(z), {
2592
- row: p,
2593
- column: f,
2594
- "grid-ref": o.value
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: p, column: f }) => [
2598
- createVNode(unref(I), {
2599
- row: p,
2600
- column: f,
2601
- "grid-ref": o.value
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: p, column: f }) => [
2605
- createVNode(unref(H), {
2606
- row: p,
2607
- column: f,
2608
- "grid-ref": o.value
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: p, column: f }) => [
2612
- createVNode(unref(Y), {
2613
- row: p,
2614
- column: f,
2615
- "grid-ref": o.value
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: p, column: f }) => [
2619
- createVNode(unref(U), {
2620
- row: p,
2621
- column: f,
2622
- "grid-ref": o.value
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: p, column: f }) => [
2626
- createVNode(unref(A), {
2627
- row: p,
2628
- column: f,
2629
- "grid-ref": o.value
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: p, column: f }) => [
2633
- createVNode(unref(L), {
2634
- row: p,
2635
- column: f,
2636
- "grid-ref": o.value
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: p, column: f }) => [
2640
- createVNode(unref(q), {
2641
- row: p,
2642
- column: f,
2643
- "grid-ref": o.value,
2644
- onRemoteMethod: re
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: p, column: f }) => [
2887
+ tableSelect: withCtx(({ row: m, column: p }) => [
2648
2888
  createElementVNode("div", _hoisted_2$2, [
2649
2889
  createVNode(unref(HrTableSelect), {
2650
- modelValue: p[f.field],
2651
- "onUpdate:modelValue": (w) => p[f.field] = w,
2652
- columns: f.params.tableSelectColumns || [],
2653
- onRemoteMethod: (w) => le(w, f, p),
2654
- onChange: (w) => oe({ change: w, row: p, column: f }),
2655
- width: f.params.tableSelectWidth
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: n.pagination,
2662
- gridOptions: N.value,
2663
- onPageChange: G,
2664
- onRefresh: Q
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-3dad13dc"]]);
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(n, { emit: t }) {
2710
- const e = useModel(n, "modelValue"), r = ref(), c = t, o = (l) => l ? `${Number(l) ? l + "px" : l}` : "150px";
2711
- return watch(() => n.highlight, (l) => {
2712
- var a;
2713
- return (a = r.value.querySelector(`[index="${l}"]`)) == null ? void 0 : a.scrollIntoView({ block: "center", behavior: "smooth" });
2714
- }), (l, a) => (openBlock(), createElementBlock("div", _hoisted_1$1, [
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
- a[0] || (a[0] = createElementVNode("th", { class: "w[50px]" }, "序号", -1)),
2719
- (openBlock(!0), createElementBlock(Fragment, null, renderList(l.columns, (u) => (openBlock(), createElementBlock("th", {
2720
- style: normalizeStyle({ width: o(u.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, s) => (openBlock(), createElementBlock("tr", {
2729
- class: normalizeClass({ zebra: s % 2 != 0, highlight: l.highlight === s }),
2730
- onClick: (i) => c("change", u),
2731
- index: s
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(s + 1), 1),
2734
- (openBlock(!0), createElementBlock(Fragment, null, renderList(l.columns, (i) => (openBlock(), createElementBlock("td", null, toDisplayString(u[i.field]), 1))), 256))
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(l.loading ? "" : "无数据"), 513), [
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, l.loading]
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(n, { emit: t }) {
2997
+ setup(a, { emit: l }) {
2758
2998
  const e = reactive({
2759
2999
  query: "",
2760
3000
  tableData: [],
2761
3001
  loading: !1
2762
- }), r = ref(), c = ref(), o = ref(!1), l = ref(-1), a = reactive({ x: 0, y: 0, w: 0 }), u = useModel(n, "modelValue"), s = t, i = () => s("remote-method", e), d = () => {
2763
- o.value = !0, s("remote-method", e), m();
2764
- }, m = async () => {
2765
- if (!o.value) return;
2766
- const C = (j) => Number(j) ? j + "px" : j, V = r.value.getBoundingClientRect();
2767
- a.y = innerHeight - V.y < V.y ? V.y - V.height - 280 : V.y + V.height + 5, a.w = n.width ? C(n.width) : V.width < 300 ? "300px" : V.width + "px", await nextTick();
2768
- const R = c.value.$el.offsetWidth;
2769
- a.x = innerWidth - V.x > R ? V.x : V.x + V.width - R;
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 = () => _ && (o.value = !1), g = () => (_ = !1, setTimeout(() => _ = !0, 16)), h = () => _ && r.value.focus(), k = (C) => {
2773
- g(), s("change", C), o.value = !1;
2774
- }, x = () => l.value !== -1 && l.value--, E = () => l.value < e.tableData.length && l.value++, B = () => {
2775
- if (l.value == -1) return;
2776
- const C = e.tableData[l.value];
2777
- s("change", C), r.value.blur();
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, o.value, l.value = -1;
2785
- }), effect(() => !o.value && (e.tableData = [])), document.addEventListener("scroll", m), (C, V) => (openBlock(), createElementBlock("div", _hoisted_1, [
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": V[0] || (V[0] = (R) => e.query = R),
2790
- onInput: i,
2791
- onFocus: d,
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(x, ["up"]),
2795
- withKeys(E, ["down"]),
2796
- withKeys(withModifiers(B, ["prevent"]), ["enter"])
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
- o.value ? (openBlock(), createBlock(hrTable, {
3041
+ n.value ? (openBlock(), createBlock(hrTable, {
2802
3042
  key: 0,
2803
3043
  ref_key: "table",
2804
- ref: c,
3044
+ ref: i,
2805
3045
  modelValue: e.tableData,
2806
- "onUpdate:modelValue": V[1] || (V[1] = (R) => e.tableData = R),
3046
+ "onUpdate:modelValue": S[1] || (S[1] = (D) => e.tableData = D),
2807
3047
  loading: e.loading,
2808
- highlight: l.value,
3048
+ highlight: t.value,
2809
3049
  columns: C.columns,
2810
- onMousedown: g,
2811
- onClick: h,
2812
- onChange: k,
2813
- style: normalizeStyle({ top: a.y + "px", left: a.x + "px", width: a.w })
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
  }