gzhr-ui 1.1.1 → 1.2.2

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,7 @@
1
- import { a as ElInput, C as ClickOutside, b as ElPopover, V as VxeInput, c as ElButton, d as ElCheckboxGroup, e as ElCheckbox, f as ElTreeSelect, g as ElInputNumber, E as ElIcon, h as ElDropdown, i as ElDropdownMenu, j as ElDropdownItem, k as ElTag, l as isEmpty, m as ElColorPicker, n as dayjs, o as isoWeek, q as quarterOfYear, p as customParseFormat, r as ElImage, s as ElProgress, t as ElRadioGroup, u as ElRadio, v as ElSelect, w as ElOption, x as VxePager, y as VxeGrid, z as VxeUI } from "./vendor-PkgYxc4K.mjs";
2
- import { ref, computed, openBlock, createElementBlock, withDirectives, createVNode, unref, withCtx, createElementVNode, createTextVNode, withKeys, createBlock, Fragment, renderList, createCommentVNode, onMounted, defineComponent, resolveComponent, normalizeStyle, toDisplayString, watch, vShow, watchEffect, inject, normalizeProps, mergeProps, resolveDirective, onBeforeUnmount, reactive } from "vue";
3
- import { b as buildTree, d as deepClone, u as useElementClientSize, _ as _export_sfc, i as isColor, g as getFileIconUrl, p as preVideo, a as preCAD, w as withInstall } from "./utils-DZxjjV-b.mjs";
1
+ import { a as ElInput, C as ClickOutside, b as ElPopover, V as VxeInput, c as ElButton, d as ElCheckboxGroup, e as ElCheckbox, f as ElTreeSelect, g as ElInputNumber, E as ElIcon, h as ElDropdown, i as ElDropdownMenu, j as ElDropdownItem, k as ElTag, l as isEmpty, m as ElColorPicker, n as dayjs, o as isoWeek, q as quarterOfYear, p as customParseFormat, r as ElImage, s as ElProgress, t as ElRadioGroup, u as ElRadio, v as ElSelect, w as ElOption, x as VxePager, y as VxeGrid, z as VxeUI } from "./vendor-Oml3ZDAp.mjs";
2
+ import { ref, computed, openBlock, createElementBlock, withDirectives, createVNode, unref, withCtx, createElementVNode, createTextVNode, withKeys, createBlock, Fragment, renderList, createCommentVNode, onMounted, defineComponent, normalizeStyle, toDisplayString, watch, vShow, watchEffect, resolveComponent, normalizeProps, mergeProps, resolveDirective, onBeforeUnmount, reactive, nextTick } from "vue";
3
+ import { b as buildTree, d as deepClone, u as useElementClientSize, _ as _export_sfc, i as isColor, g as getFileIconUrl, w as withInstall } from "./utils-D3bEDOQn.mjs";
4
+ import { H as HrIcon } from "./icon-iNG7ZwAk.mjs";
4
5
  const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" }, _hoisted_3$3 = { class: "flex flex-col gap3" }, _hoisted_4$1 = { class: "flex justify-between" }, _sfc_main$x = {
5
6
  __name: "filter-date",
6
7
  props: {
@@ -11,10 +12,10 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
11
12
  },
12
13
  emits: ["FilterSearch"],
13
14
  setup(r, { emit: e }) {
14
- const t = r, o = ref([null, null]), n = computed(() => t.column.filters[0].data.length ? t.column.filters[0].data.join(" 至 ") : ""), c = ref(), l = ref(), a = () => {
15
- var i, d;
16
- (d = (i = unref(l).popperRef) == null ? void 0 : i.delayHide) == null || d.call(i);
17
- }, s = e;
15
+ const t = r, o = ref([null, null]), n = computed(() => t.column.filters[0].data.length ? t.column.filters[0].data.join(" 至 ") : ""), u = ref(), l = ref(), a = () => {
16
+ var s, c;
17
+ (c = (s = unref(l).popperRef) == null ? void 0 : s.delayHide) == null || c.call(s);
18
+ }, d = e;
18
19
  function m() {
19
20
  if (!o.value[0] && !o.value[1])
20
21
  t.column.filters[0].data = [];
@@ -23,18 +24,18 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
23
24
  return;
24
25
  } else
25
26
  t.column.filters[0].data = [...o.value];
26
- l.value.hide(), s("FilterSearch", t.column);
27
+ l.value.hide(), d("FilterSearch", t.column);
27
28
  }
28
- function u() {
29
+ function i() {
29
30
  o.value = [null, null];
30
31
  }
31
- return (i, d) => (openBlock(), createElementBlock("div", {
32
+ return (s, c) => (openBlock(), createElementBlock("div", {
32
33
  class: "size-full",
33
34
  title: n.value
34
35
  }, [
35
36
  withDirectives(createVNode(unref(ElInput), {
36
37
  ref_key: "inputRef",
37
- ref: c,
38
+ ref: u,
38
39
  value: n.value,
39
40
  readonly: ""
40
41
  }, null, 8, ["value"]), [
@@ -43,7 +44,7 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
43
44
  createVNode(unref(ElPopover), {
44
45
  ref_key: "popoverRef",
45
46
  ref: l,
46
- "virtual-ref": c.value,
47
+ "virtual-ref": u.value,
47
48
  trigger: "click",
48
49
  "virtual-triggering": "",
49
50
  "hide-after": 0,
@@ -54,12 +55,12 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
54
55
  createElementVNode("div", _hoisted_3$3, [
55
56
  createVNode(unref(VxeInput), {
56
57
  modelValue: o.value[0],
57
- "onUpdate:modelValue": d[0] || (d[0] = (p) => o.value[0] = p),
58
+ "onUpdate:modelValue": c[0] || (c[0] = (_) => o.value[0] = _),
58
59
  type: r.column.params.DateType || "date"
59
60
  }, null, 8, ["modelValue", "type"]),
60
61
  createVNode(unref(VxeInput), {
61
62
  modelValue: o.value[1],
62
- "onUpdate:modelValue": d[1] || (d[1] = (p) => o.value[1] = p),
63
+ "onUpdate:modelValue": c[1] || (c[1] = (_) => o.value[1] = _),
63
64
  type: r.column.params.DateType || "date"
64
65
  }, null, 8, ["modelValue", "type"])
65
66
  ]),
@@ -69,16 +70,16 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
69
70
  type: "primary",
70
71
  onClick: m
71
72
  }, {
72
- default: withCtx(() => d[2] || (d[2] = [
73
+ default: withCtx(() => c[2] || (c[2] = [
73
74
  createTextVNode("确认")
74
75
  ])),
75
76
  _: 1
76
77
  }),
77
78
  createVNode(unref(ElButton), {
78
79
  size: "small",
79
- onClick: u
80
+ onClick: i
80
81
  }, {
81
- default: withCtx(() => d[3] || (d[3] = [
82
+ default: withCtx(() => c[3] || (c[3] = [
82
83
  createTextVNode("重置")
83
84
  ])),
84
85
  _: 1
@@ -100,30 +101,30 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
100
101
  },
101
102
  emits: ["FilterSearch"],
102
103
  setup(r, { emit: e }) {
103
- const t = r, o = ref([]), n = computed(() => t.column.filters[0].data.length ? t.column.filters[0].data.map((u) => u ? "是" : "否").join(",") : ""), c = ref(), l = ref(), a = () => {
104
- var u, i;
105
- (i = (u = unref(l).popperRef) == null ? void 0 : u.delayHide) == null || i.call(u);
106
- }, s = e;
104
+ const t = r, o = ref([]), n = computed(() => t.column.filters[0].data.length ? t.column.filters[0].data.map((i) => i ? "是" : "否").join(",") : ""), u = ref(), l = ref(), a = () => {
105
+ var i, s;
106
+ (s = (i = unref(l).popperRef) == null ? void 0 : i.delayHide) == null || s.call(i);
107
+ }, d = e;
107
108
  function m() {
108
109
  o.value.length ? t.column.filters[0].data = [...o.value] : t.column.filters[0].data = [];
109
110
  }
110
- return (u, i) => (openBlock(), createElementBlock("div", {
111
+ return (i, s) => (openBlock(), createElementBlock("div", {
111
112
  class: "size-full",
112
113
  title: n.value
113
114
  }, [
114
115
  withDirectives(createVNode(unref(ElInput), {
115
116
  ref_key: "inputRef",
116
- ref: c,
117
+ ref: u,
117
118
  value: n.value,
118
119
  readonly: "",
119
- onKeyup: i[0] || (i[0] = withKeys((d) => s("FilterSearch", r.column), ["enter"]))
120
+ onKeyup: s[0] || (s[0] = withKeys((c) => d("FilterSearch", r.column), ["enter"]))
120
121
  }, null, 8, ["value"]), [
121
122
  [unref(ClickOutside), a]
122
123
  ]),
123
124
  createVNode(unref(ElPopover), {
124
125
  ref_key: "popoverRef",
125
126
  ref: l,
126
- "virtual-ref": c.value,
127
+ "virtual-ref": u.value,
127
128
  trigger: "click",
128
129
  "virtual-triggering": "",
129
130
  "hide-after": 0
@@ -132,7 +133,7 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
132
133
  createVNode(unref(ElCheckboxGroup), {
133
134
  class: "flex flex-col",
134
135
  modelValue: o.value,
135
- "onUpdate:modelValue": i[1] || (i[1] = (d) => o.value = d),
136
+ "onUpdate:modelValue": s[1] || (s[1] = (c) => o.value = c),
136
137
  onChange: m
137
138
  }, {
138
139
  default: withCtx(() => [
@@ -164,33 +165,33 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
164
165
  setup(r, { emit: e }) {
165
166
  const t = r, o = ref([]);
166
167
  ref("");
167
- const n = computed(() => t.column.filters[0].data.length ? t.column.filters[0].data.map((u) => {
168
- var i;
169
- return (i = t.column.params.options.find((d) => d.value === u)) == null ? void 0 : i.label;
170
- }).join(",") : ""), c = ref(), l = ref(), a = () => {
171
- var u, i;
172
- (i = (u = unref(l).popperRef) == null ? void 0 : u.delayHide) == null || i.call(u);
173
- }, s = e;
168
+ const n = computed(() => t.column.filters[0].data.length ? t.column.filters[0].data.map((i) => {
169
+ var s;
170
+ return (s = t.column.params.options.find((c) => c.value === i)) == null ? void 0 : s.label;
171
+ }).join(",") : ""), u = ref(), l = ref(), a = () => {
172
+ var i, s;
173
+ (s = (i = unref(l).popperRef) == null ? void 0 : i.delayHide) == null || s.call(i);
174
+ }, d = e;
174
175
  function m() {
175
176
  o.value.length ? t.column.filters[0].data = [...o.value] : t.column.filters[0].data = [];
176
177
  }
177
- return (u, i) => (openBlock(), createElementBlock("div", {
178
+ return (i, s) => (openBlock(), createElementBlock("div", {
178
179
  class: "size-full",
179
180
  title: n.value
180
181
  }, [
181
182
  withDirectives(createVNode(unref(ElInput), {
182
183
  ref_key: "inputRef",
183
- ref: c,
184
+ ref: u,
184
185
  value: n.value,
185
186
  readonly: "",
186
- onKeyup: i[0] || (i[0] = withKeys((d) => s("FilterSearch", r.column), ["enter"]))
187
+ onKeyup: s[0] || (s[0] = withKeys((c) => d("FilterSearch", r.column), ["enter"]))
187
188
  }, null, 8, ["value"]), [
188
189
  [unref(ClickOutside), a]
189
190
  ]),
190
191
  createVNode(unref(ElPopover), {
191
192
  ref_key: "popoverRef",
192
193
  ref: l,
193
- "virtual-ref": c.value,
194
+ "virtual-ref": u.value,
194
195
  trigger: "click",
195
196
  "virtual-triggering": "",
196
197
  "hide-after": 0
@@ -200,14 +201,14 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
200
201
  key: 0,
201
202
  class: "flex flex-col",
202
203
  modelValue: o.value,
203
- "onUpdate:modelValue": i[1] || (i[1] = (d) => o.value = d),
204
+ "onUpdate:modelValue": s[1] || (s[1] = (c) => o.value = c),
204
205
  onChange: m
205
206
  }, {
206
207
  default: withCtx(() => [
207
- (openBlock(!0), createElementBlock(Fragment, null, renderList(r.column.params.options, (d) => (openBlock(), createBlock(unref(ElCheckbox), {
208
- key: d.value,
209
- label: d.label,
210
- value: d.value
208
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(r.column.params.options, (c) => (openBlock(), createBlock(unref(ElCheckbox), {
209
+ key: c.value,
210
+ label: c.label,
211
+ value: c.value
211
212
  }, null, 8, ["label", "value"]))), 128))
212
213
  ]),
213
214
  _: 1
@@ -216,14 +217,14 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
216
217
  key: 1,
217
218
  class: "flex flex-col",
218
219
  modelValue: o.value,
219
- "onUpdate:modelValue": i[2] || (i[2] = (d) => o.value = d),
220
+ "onUpdate:modelValue": s[2] || (s[2] = (c) => o.value = c),
220
221
  onChange: m
221
222
  }, {
222
223
  default: withCtx(() => [
223
- (openBlock(!0), createElementBlock(Fragment, null, renderList(r.column.params.options, (d) => (openBlock(), createBlock(unref(ElCheckbox), {
224
- key: d.value,
225
- label: d.label,
226
- value: d.value
224
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(r.column.params.options, (c) => (openBlock(), createBlock(unref(ElCheckbox), {
225
+ key: c.value,
226
+ label: c.label,
227
+ value: c.value
227
228
  }, null, 8, ["label", "value"]))), 128))
228
229
  ]),
229
230
  _: 1
@@ -243,34 +244,34 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
243
244
  },
244
245
  emits: ["FilterSearch"],
245
246
  setup(r, { emit: e }) {
246
- const t = r, o = ref([]), n = ref(null), c = ref(t.column.params.FieldType === "TreeMultipleSelect"), l = ref({
247
+ const t = r, o = ref([]), n = ref(null), u = ref(t.column.params.FieldType === "TreeMultipleSelect"), l = ref({
247
248
  label: t.column.params.NodeNameField || "label",
248
249
  value: t.column.params.NodeValueField || "value",
249
250
  children: "children"
250
251
  });
251
252
  if (!t.column.params.TreeData) {
252
- const { options: m, ParentNodeField: u, NodeKeyField: i } = t.column.params;
253
- t.column.params.TreeData = buildTree(deepClone(m), u, i);
253
+ const { options: m, ParentNodeField: i, NodeKeyField: s } = t.column.params;
254
+ t.column.params.TreeData = buildTree(deepClone(m), i, s);
254
255
  }
255
256
  onMounted(() => {
256
257
  o.value = t.column.params.TreeData;
257
258
  });
258
259
  const a = e;
259
- function s() {
260
+ function d() {
260
261
  n.value ? t.column.filters[0].data = [n.value] : t.column.filters[0].data = [];
261
262
  }
262
- return (m, u) => (openBlock(), createBlock(unref(ElTreeSelect), {
263
+ return (m, i) => (openBlock(), createBlock(unref(ElTreeSelect), {
263
264
  clearable: "",
264
265
  modelValue: n.value,
265
- "onUpdate:modelValue": u[0] || (u[0] = (i) => n.value = i),
266
+ "onUpdate:modelValue": i[0] || (i[0] = (s) => n.value = s),
266
267
  data: o.value,
267
268
  "render-after-expand": !1,
268
269
  placeholder: "",
269
- onChange: s,
270
- multiple: c.value,
271
- "show-checkbox": c.value,
270
+ onChange: d,
271
+ multiple: u.value,
272
+ "show-checkbox": u.value,
272
273
  props: l.value,
273
- onKeyup: u[1] || (u[1] = withKeys((i) => a("FilterSearch", r.column), ["enter"]))
274
+ onKeyup: i[1] || (i[1] = withKeys((s) => a("FilterSearch", r.column), ["enter"]))
274
275
  }, null, 8, ["modelValue", "data", "multiple", "show-checkbox", "props"]));
275
276
  }
276
277
  }, _sfc_main$t = {
@@ -283,14 +284,14 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
283
284
  },
284
285
  emits: ["FilterSearch"],
285
286
  setup(r, { emit: e }) {
286
- const t = r, o = ref([]), n = ref([]), c = ref({
287
+ const t = r, o = ref([]), n = ref([]), u = ref({
287
288
  label: t.column.params.NodeNameField || "label",
288
289
  value: t.column.params.NodeValueField || "value",
289
290
  children: "children"
290
291
  });
291
292
  if (!t.column.params.TreeData) {
292
- const { options: m, ParentNodeField: u, NodeKeyField: i } = t.column.params;
293
- t.column.params.TreeData = buildTree(deepClone(m), u, i);
293
+ const { options: m, ParentNodeField: i, NodeKeyField: s } = t.column.params;
294
+ t.column.params.TreeData = buildTree(deepClone(m), i, s);
294
295
  }
295
296
  onMounted(() => {
296
297
  o.value = t.column.params.TreeData;
@@ -299,14 +300,14 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
299
300
  function a() {
300
301
  n.value ? t.column.filters[0].data = n.value : t.column.filters[0].data = [];
301
302
  }
302
- function s(m) {
303
+ function d(m) {
303
304
  cleanUpTreeFilterRows(), l("FilterSearch", t.column);
304
305
  }
305
- return (m, u) => (openBlock(), createBlock(unref(ElTreeSelect), {
306
+ return (m, i) => (openBlock(), createBlock(unref(ElTreeSelect), {
306
307
  "popper-class": "tree-filter-row",
307
308
  clearable: "",
308
309
  modelValue: n.value,
309
- "onUpdate:modelValue": u[0] || (u[0] = (i) => n.value = i),
310
+ "onUpdate:modelValue": i[0] || (i[0] = (s) => n.value = s),
310
311
  data: o.value,
311
312
  placeholder: "",
312
313
  onChange: a,
@@ -314,8 +315,8 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
314
315
  "show-checkbox": "",
315
316
  "collapse-tags": "",
316
317
  "collapse-tags-tooltip": "",
317
- onKeyup: withKeys(s, ["enter"]),
318
- props: c.value
318
+ onKeyup: withKeys(d, ["enter"]),
319
+ props: u.value
319
320
  }, null, 8, ["modelValue", "data", "props"]));
320
321
  }
321
322
  }, _hoisted_1$e = ["title"], _hoisted_2$3 = { class: "flex flex-col justify-center items-center gap2" }, _hoisted_3$2 = { class: "flex justify-between mt2" }, _sfc_main$s = {
@@ -328,10 +329,10 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
328
329
  },
329
330
  emits: ["FilterSearch"],
330
331
  setup(r, { emit: e }) {
331
- const t = r, o = ref([null, null]), n = computed(() => t.column.filters[0].data.length ? t.column.filters[0].data.join(" 至 ") : ""), c = ref(), l = ref(), a = () => {
332
- var i, d;
333
- (d = (i = unref(l).popperRef) == null ? void 0 : i.delayHide) == null || d.call(i);
334
- }, s = e;
332
+ const t = r, o = ref([null, null]), n = computed(() => t.column.filters[0].data.length ? t.column.filters[0].data.join(" 至 ") : ""), u = ref(), l = ref(), a = () => {
333
+ var s, c;
334
+ (c = (s = unref(l).popperRef) == null ? void 0 : s.delayHide) == null || c.call(s);
335
+ }, d = e;
335
336
  function m() {
336
337
  if (!o.value[0] && !o.value[1])
337
338
  t.column.filters[0].data = [];
@@ -340,28 +341,28 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
340
341
  return;
341
342
  } else
342
343
  t.column.filters[0].data = [...o.value];
343
- l.value.hide(), s("FilterSearch", t.column);
344
+ l.value.hide(), d("FilterSearch", t.column);
344
345
  }
345
- function u() {
346
+ function i() {
346
347
  o.value = [null, null];
347
348
  }
348
- return (i, d) => (openBlock(), createElementBlock("div", {
349
+ return (s, c) => (openBlock(), createElementBlock("div", {
349
350
  class: "size-full",
350
351
  title: n.value
351
352
  }, [
352
353
  withDirectives(createVNode(unref(ElInput), {
353
354
  ref_key: "inputRef",
354
- ref: c,
355
+ ref: u,
355
356
  value: n.value,
356
357
  readonly: "",
357
- onKeyup: d[0] || (d[0] = withKeys((p) => s("FilterSearch", r.column), ["enter"]))
358
+ onKeyup: c[0] || (c[0] = withKeys((_) => d("FilterSearch", r.column), ["enter"]))
358
359
  }, null, 8, ["value"]), [
359
360
  [unref(ClickOutside), a]
360
361
  ]),
361
362
  createVNode(unref(ElPopover), {
362
363
  ref_key: "popoverRef",
363
364
  ref: l,
364
- "virtual-ref": c.value,
365
+ "virtual-ref": u.value,
365
366
  trigger: "click",
366
367
  "virtual-triggering": "",
367
368
  "hide-after": 0
@@ -371,12 +372,12 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
371
372
  createVNode(unref(ElInputNumber), {
372
373
  class: "w-full",
373
374
  modelValue: o.value[0],
374
- "onUpdate:modelValue": d[1] || (d[1] = (p) => o.value[0] = p)
375
+ "onUpdate:modelValue": c[1] || (c[1] = (_) => o.value[0] = _)
375
376
  }, null, 8, ["modelValue"]),
376
377
  createVNode(unref(ElInputNumber), {
377
378
  class: "w-full",
378
379
  modelValue: o.value[1],
379
- "onUpdate:modelValue": d[2] || (d[2] = (p) => o.value[1] = p)
380
+ "onUpdate:modelValue": c[2] || (c[2] = (_) => o.value[1] = _)
380
381
  }, null, 8, ["modelValue"])
381
382
  ]),
382
383
  createElementVNode("div", _hoisted_3$2, [
@@ -385,16 +386,16 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
385
386
  type: "primary",
386
387
  onClick: m
387
388
  }, {
388
- default: withCtx(() => d[3] || (d[3] = [
389
+ default: withCtx(() => c[3] || (c[3] = [
389
390
  createTextVNode("确认")
390
391
  ])),
391
392
  _: 1
392
393
  }),
393
394
  createVNode(unref(ElButton), {
394
395
  size: "small",
395
- onClick: u
396
+ onClick: i
396
397
  }, {
397
- default: withCtx(() => d[4] || (d[4] = [
398
+ default: withCtx(() => c[4] || (c[4] = [
398
399
  createTextVNode("重置")
399
400
  ])),
400
401
  _: 1
@@ -426,34 +427,33 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
426
427
  let n = ref(0);
427
428
  onMounted(() => {
428
429
  if (t.column.params.filter) {
429
- const s = document.querySelector(`[colid=${t.column.id}]`);
430
- useElementClientSize(s, ({ clientHeight: m }) => {
430
+ const d = document.querySelector(`[colid=${t.column.id}]`);
431
+ useElementClientSize(d, ({ clientHeight: m }) => {
431
432
  n.value = m <= 40 ? 65 : m;
432
433
  });
433
434
  } else
434
435
  n.value = 18;
435
436
  o.value = t.column.params.TreeData;
436
437
  });
437
- const c = e;
438
- function l(s) {
439
- if (s === "search") {
438
+ const u = e;
439
+ function l(d) {
440
+ if (d === "search") {
440
441
  const m = t.gridRef.getColumns();
441
- c("FilterSearch", t.column, m);
442
- } else s === "clear" ? t.column.filters.forEach((m) => {
442
+ u("FilterSearch", t.column, m);
443
+ } else d === "clear" ? t.column.filters.forEach((m) => {
443
444
  Array.isArray(m.data) ? m.data = [] : m.data = "";
444
- }) : s === "clearAll" && t.gridRef.getColumns().forEach((u) => {
445
- u.filters && u.filters.forEach((i) => {
446
- Array.isArray(i.data) ? i.data = [] : i.data = "";
445
+ }) : d === "clearAll" && t.gridRef.getColumns().forEach((i) => {
446
+ i.filters && i.filters.forEach((s) => {
447
+ Array.isArray(s.data) ? s.data = [] : s.data = "";
447
448
  });
448
449
  });
449
450
  }
450
451
  function a() {
451
- var s;
452
- (s = t.column).params ?? (s.params = {}), t.column.params.sortStatus === "asc" ? t.column.params.sortStatus = "desc" : t.column.params.sortStatus === "desc" ? t.column.params.sortStatus = null : t.column.params.sortStatus = "asc", c("SortChange", t.column, t.gridRef.getColumns());
452
+ var d;
453
+ (d = t.column).params ?? (d.params = {}), t.column.params.sortStatus === "asc" ? t.column.params.sortStatus = "desc" : t.column.params.sortStatus === "desc" ? t.column.params.sortStatus = null : t.column.params.sortStatus = "asc", u("SortChange", t.column, t.gridRef.getColumns());
453
454
  }
454
- return (s, m) => {
455
- var i, d;
456
- const u = resolveComponent("hr-icon");
455
+ return (d, m) => {
456
+ var i, s;
457
457
  return openBlock(), createElementBlock("div", {
458
458
  class: "flex flex-col filter-header",
459
459
  title: r.column.title,
@@ -467,14 +467,14 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
467
467
  style: normalizeStyle({ color: r.column.params.Required ? "red" : "" }),
468
468
  class: "whitespace-nowrap overflow-hidden text-ellipsis"
469
469
  }, toDisplayString(r.column.title), 5),
470
- (i = r.column.params) != null && i.sortable && ((d = r.column.params) != null && d.sortStatus) ? (openBlock(), createBlock(unref(ElIcon), { key: 0 }, {
470
+ (i = r.column.params) != null && i.sortable && ((s = r.column.params) != null && s.sortStatus) ? (openBlock(), createBlock(unref(ElIcon), { key: 0 }, {
471
471
  default: withCtx(() => {
472
- var p, v;
472
+ var c, _;
473
473
  return [
474
- ((p = r.column.params) == null ? void 0 : p.sortStatus) === "asc" ? (openBlock(), createBlock(u, {
474
+ ((c = r.column.params) == null ? void 0 : c.sortStatus) === "asc" ? (openBlock(), createBlock(unref(HrIcon), {
475
475
  key: 0,
476
476
  icon: "ep:caret-top"
477
- })) : ((v = r.column.params) == null ? void 0 : v.sortStatus) === "desc" ? (openBlock(), createBlock(u, {
477
+ })) : ((_ = r.column.params) == null ? void 0 : _.sortStatus) === "desc" ? (openBlock(), createBlock(unref(HrIcon), {
478
478
  key: 1,
479
479
  icon: "ep:caret-bottom"
480
480
  })) : createCommentVNode("", !0)
@@ -487,32 +487,32 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
487
487
  ["radio_Table", "bool"].includes(r.column.params.FieldType) ? (openBlock(), createBlock(_sfc_main$w, {
488
488
  key: 0,
489
489
  column: r.column,
490
- onFilterSearch: m[0] || (m[0] = (p) => l("search"))
490
+ onFilterSearch: m[0] || (m[0] = (c) => l("search"))
491
491
  }, null, 8, ["column"])) : ["select", "check"].includes(r.column.params.FieldType) ? (openBlock(), createBlock(_sfc_main$v, {
492
492
  key: 1,
493
493
  column: r.column,
494
- onFilterSearch: m[1] || (m[1] = (p) => l("search"))
494
+ onFilterSearch: m[1] || (m[1] = (c) => l("search"))
495
495
  }, null, 8, ["column"])) : r.column.params.FieldType === "date" ? (openBlock(), createBlock(_sfc_main$x, {
496
496
  key: 2,
497
497
  column: r.column,
498
- onFilterSearch: m[2] || (m[2] = (p) => l("search"))
498
+ onFilterSearch: m[2] || (m[2] = (c) => l("search"))
499
499
  }, null, 8, ["column"])) : r.column.params.FieldType === "tree" ? (openBlock(), createBlock(_sfc_main$u, {
500
500
  key: 3,
501
501
  column: r.column,
502
- onFilterSearch: m[3] || (m[3] = (p) => l("search"))
502
+ onFilterSearch: m[3] || (m[3] = (c) => l("search"))
503
503
  }, null, 8, ["column"])) : r.column.params.FieldType === "TreeMultipleSelect" ? (openBlock(), createBlock(_sfc_main$t, {
504
504
  key: 4,
505
505
  column: r.column,
506
- onFilterSearch: m[4] || (m[4] = (p) => l("search"))
506
+ onFilterSearch: m[4] || (m[4] = (c) => l("search"))
507
507
  }, null, 8, ["column"])) : r.column.params.FieldType === "inputNumber" ? (openBlock(), createBlock(_sfc_main$s, {
508
508
  key: 5,
509
509
  column: r.column,
510
- onFilterSearch: m[5] || (m[5] = (p) => l("search"))
511
- }, null, 8, ["column"])) : (openBlock(!0), createElementBlock(Fragment, { key: 6 }, renderList(r.column.filters, (p, v) => (openBlock(), createBlock(unref(ElInput), {
512
- key: v,
513
- modelValue: p.data,
514
- "onUpdate:modelValue": (g) => p.data = g,
515
- onKeyup: m[6] || (m[6] = withKeys((g) => l("search"), ["enter"])),
510
+ onFilterSearch: m[5] || (m[5] = (c) => l("search"))
511
+ }, null, 8, ["column"])) : (openBlock(!0), createElementBlock(Fragment, { key: 6 }, renderList(r.column.filters, (c, _) => (openBlock(), createBlock(unref(ElInput), {
512
+ key: _,
513
+ modelValue: c.data,
514
+ "onUpdate:modelValue": (h) => c.data = h,
515
+ onKeyup: m[6] || (m[6] = withKeys((h) => l("search"), ["enter"])),
516
516
  disabled: ["colorPicker", "iconPicker", "progress"].includes(r.column.params.FieldType)
517
517
  }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"]))), 128)),
518
518
  createVNode(unref(ElDropdown), {
@@ -550,7 +550,7 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
550
550
  createElementVNode("span", _hoisted_3$1, [
551
551
  createVNode(unref(ElIcon), null, {
552
552
  default: withCtx(() => [
553
- createVNode(u, {
553
+ createVNode(unref(HrIcon), {
554
554
  size: "18",
555
555
  color: "#b4b4b4",
556
556
  icon: "material-symbols:filter-alt"
@@ -595,22 +595,22 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
595
595
  deep: !0,
596
596
  immediate: !0
597
597
  });
598
- function c(l) {
598
+ function u(l) {
599
599
  n("ActionClick", { btnInfo: l, row: t.row, column: t.column, gridRef: t.gridRef });
600
600
  }
601
601
  return (l, a) => (openBlock(), createElementBlock("div", _hoisted_1$c, [
602
- (openBlock(!0), createElementBlock(Fragment, null, renderList(unref(o), (s) => withDirectives((openBlock(), createBlock(unref(ElButton), {
603
- key: s.Name,
602
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(unref(o), (d) => withDirectives((openBlock(), createBlock(unref(ElButton), {
603
+ key: d.Name,
604
604
  class: "!text-[12px]",
605
605
  link: "",
606
- onClick: (m) => c(s)
606
+ onClick: (m) => u(d)
607
607
  }, {
608
608
  default: withCtx(() => [
609
- createTextVNode(toDisplayString(s.Name), 1)
609
+ createTextVNode(toDisplayString(d.Name), 1)
610
610
  ]),
611
611
  _: 2
612
612
  }, 1032, ["onClick"])), [
613
- [vShow, s.hide !== !0]
613
+ [vShow, d.hide !== !0]
614
614
  ])), 128))
615
615
  ]));
616
616
  }
@@ -642,16 +642,16 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
642
642
  typeof t.row[t.column.field] != "boolean" ? o.value = !!t.row[t.column.field] : o.value = t.row[t.column.field];
643
643
  });
644
644
  const n = e;
645
- function c(l, a, s) {
646
- a[s.field] = l, n("change", l, a, s);
645
+ function u(l, a, d) {
646
+ a[d.field] = l, n("change", l, a, d);
647
647
  }
648
648
  return (l, a) => {
649
- var s;
649
+ var d;
650
650
  return openBlock(), createBlock(unref(ElCheckbox), {
651
- disabled: (s = r.column.params) == null ? void 0 : s.disabled,
651
+ disabled: (d = r.column.params) == null ? void 0 : d.disabled,
652
652
  modelValue: o.value,
653
653
  "onUpdate:modelValue": a[0] || (a[0] = (m) => o.value = m),
654
- onChange: a[1] || (a[1] = (m) => c(m, r.row, r.column))
654
+ onChange: a[1] || (a[1] = (m) => u(m, r.row, r.column))
655
655
  }, null, 8, ["disabled", "modelValue"]);
656
656
  };
657
657
  }
@@ -684,111 +684,111 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
684
684
  const e = r;
685
685
  e.column.params.LabelConfig || (e.column.params.LabelConfig = []);
686
686
  const t = ref(e.column.params.LabelConfig);
687
- t.value.forEach((u) => {
688
- u.Value == "true" ? u.Value = !0 : u.Value == "false" && (u.Value = !1);
687
+ t.value.forEach((i) => {
688
+ i.Value == "true" ? i.Value = !0 : i.Value == "false" && (i.Value = !1);
689
689
  });
690
- const o = computed(() => e.row[e.column.field]), n = computed(() => t.value.find((u) => u.Value == o.value));
690
+ const o = computed(() => e.row[e.column.field]), n = computed(() => t.value.find((i) => i.Value == o.value));
691
691
  onMounted(() => {
692
692
  e.column.params.LabelAutoColor && !n.value && (o.value || o.value === 0) && t.value.push({
693
693
  Value: o.value,
694
694
  Color: m()
695
695
  });
696
696
  });
697
- function c(u) {
698
- if (!u) return;
699
- let i, d, p, v = 1;
700
- if (u.startsWith("#"))
701
- u = u.slice(1), u.length === 3 ? (i = parseInt(u[0] + u[0], 16), d = parseInt(u[1] + u[1], 16), p = parseInt(u[2] + u[2], 16)) : u.length === 6 && (i = parseInt(u.slice(0, 2), 16), d = parseInt(u.slice(2, 4), 16), p = parseInt(u.slice(4, 6), 16));
702
- else if (u.startsWith("rgb")) {
703
- const g = u.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d*\.?\d+))?\)/);
704
- g && (i = parseInt(g[1]), d = parseInt(g[2]), p = parseInt(g[3]), g[4] && (v = parseFloat(g[4])));
705
- } else if (u.startsWith("hsl")) {
706
- const g = u.match(/hsla?\((\d+),\s*(\d+)%,\s*(\d+)%(?:,\s*(\d*\.?\d+))?\)/);
707
- if (g) {
708
- const w = parseInt(g[1]) / 360, y = parseInt(g[2]) / 100, k = parseInt(g[3]) / 100;
709
- if (g[4] && (v = parseFloat(g[4])), y === 0)
710
- i = d = p = k * 255;
697
+ function u(i) {
698
+ if (!i) return;
699
+ let s, c, _, h = 1;
700
+ if (i.startsWith("#"))
701
+ i = i.slice(1), i.length === 3 ? (s = parseInt(i[0] + i[0], 16), c = parseInt(i[1] + i[1], 16), _ = parseInt(i[2] + i[2], 16)) : i.length === 6 && (s = parseInt(i.slice(0, 2), 16), c = parseInt(i.slice(2, 4), 16), _ = parseInt(i.slice(4, 6), 16));
702
+ else if (i.startsWith("rgb")) {
703
+ const v = i.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d*\.?\d+))?\)/);
704
+ v && (s = parseInt(v[1]), c = parseInt(v[2]), _ = parseInt(v[3]), v[4] && (h = parseFloat(v[4])));
705
+ } else if (i.startsWith("hsl")) {
706
+ const v = i.match(/hsla?\((\d+),\s*(\d+)%,\s*(\d+)%(?:,\s*(\d*\.?\d+))?\)/);
707
+ if (v) {
708
+ const w = parseInt(v[1]) / 360, y = parseInt(v[2]) / 100, k = parseInt(v[3]) / 100;
709
+ if (v[4] && (h = parseFloat(v[4])), y === 0)
710
+ s = c = _ = k * 255;
711
711
  else {
712
- const x = (E, R, O) => (O < 0 && (O += 1), O > 1 && (O -= 1), O < 0.16666666666666666 ? E + (R - E) * 6 * O : O < 0.5 ? R : O < 0.6666666666666666 ? E + (R - E) * (0.6666666666666666 - O) * 6 : E), j = k < 0.5 ? k * (1 + y) : k + y - k * y, C = 2 * k - j;
713
- i = x(C, j, w + 1 / 3) * 255, d = x(C, j, w) * 255, p = x(C, j, w - 1 / 3) * 255;
712
+ const V = ($, N, O) => (O < 0 && (O += 1), O > 1 && (O -= 1), O < 0.16666666666666666 ? $ + (N - $) * 6 * O : O < 0.5 ? N : O < 0.6666666666666666 ? $ + (N - $) * (0.6666666666666666 - O) * 6 : $), j = k < 0.5 ? k * (1 + y) : k + y - k * y, x = 2 * k - j;
713
+ s = V(x, j, w + 1 / 3) * 255, c = V(x, j, w) * 255, _ = V(x, j, w - 1 / 3) * 255;
714
714
  }
715
715
  }
716
716
  }
717
- return { r: i, g: d, b: p, a: v };
718
- }
719
- function l(u, i, d) {
720
- u /= 255, i /= 255, d /= 255;
721
- const p = Math.max(u, i, d), v = Math.min(u, i, d);
722
- let g, w, y = (p + v) / 2;
723
- if (p === v)
724
- g = w = 0;
717
+ return { r: s, g: c, b: _, a: h };
718
+ }
719
+ function l(i, s, c) {
720
+ i /= 255, s /= 255, c /= 255;
721
+ const _ = Math.max(i, s, c), h = Math.min(i, s, c);
722
+ let v, w, y = (_ + h) / 2;
723
+ if (_ === h)
724
+ v = w = 0;
725
725
  else {
726
- const k = p - v;
727
- switch (w = y > 0.5 ? k / (2 - p - v) : k / (p + v), p) {
728
- case u:
729
- g = (i - d) / k + (i < d ? 6 : 0);
730
- break;
726
+ const k = _ - h;
727
+ switch (w = y > 0.5 ? k / (2 - _ - h) : k / (_ + h), _) {
731
728
  case i:
732
- g = (d - u) / k + 2;
729
+ v = (s - c) / k + (s < c ? 6 : 0);
730
+ break;
731
+ case s:
732
+ v = (c - i) / k + 2;
733
733
  break;
734
- case d:
735
- g = (u - i) / k + 4;
734
+ case c:
735
+ v = (i - s) / k + 4;
736
736
  break;
737
737
  }
738
- g /= 6;
738
+ v /= 6;
739
739
  }
740
- return { h: g, s: w, l: y };
740
+ return { h: v, s: w, l: y };
741
741
  }
742
- function a(u, i, d) {
743
- let p, v, g;
744
- if (i === 0)
745
- p = v = g = d;
742
+ function a(i, s, c) {
743
+ let _, h, v;
744
+ if (s === 0)
745
+ _ = h = v = c;
746
746
  else {
747
- const w = (x, j, C) => (C < 0 && (C += 1), C > 1 && (C -= 1), C < 0.16666666666666666 ? x + (j - x) * 6 * C : C < 0.5 ? j : C < 0.6666666666666666 ? x + (j - x) * (0.6666666666666666 - C) * 6 : x), y = d < 0.5 ? d * (1 + i) : d + i - d * i, k = 2 * d - y;
748
- p = w(k, y, u + 1 / 3), v = w(k, y, u), g = w(k, y, u - 1 / 3);
747
+ const w = (V, j, x) => (x < 0 && (x += 1), x > 1 && (x -= 1), x < 0.16666666666666666 ? V + (j - V) * 6 * x : x < 0.5 ? j : x < 0.6666666666666666 ? V + (j - V) * (0.6666666666666666 - x) * 6 : V), y = c < 0.5 ? c * (1 + s) : c + s - c * s, k = 2 * c - y;
748
+ _ = w(k, y, i + 1 / 3), h = w(k, y, i), v = w(k, y, i - 1 / 3);
749
749
  }
750
- return { r: Math.round(p * 255), g: Math.round(v * 255), b: Math.round(g * 255) };
750
+ return { r: Math.round(_ * 255), g: Math.round(h * 255), b: Math.round(v * 255) };
751
751
  }
752
- function s(u, i) {
753
- if (!u) return;
754
- let { r: d, g: p, b: v } = c(u), { h: g, s: w, l: y } = l(d, p, v);
755
- y = Math.max(0, y - i);
756
- const { r: k, g: x, b: j } = a(g, w, y);
757
- return `rgb(${k}, ${x}, ${j})`;
752
+ function d(i, s) {
753
+ if (!i) return;
754
+ let { r: c, g: _, b: h } = u(i), { h: v, s: w, l: y } = l(c, _, h);
755
+ y = Math.max(0, y - s);
756
+ const { r: k, g: V, b: j } = a(v, w, y);
757
+ return `rgb(${k}, ${V}, ${j})`;
758
758
  }
759
759
  function m() {
760
- function u(g, w) {
761
- return Math.floor(Math.random() * (w - g + 1)) + g;
760
+ function i(v, w) {
761
+ return Math.floor(Math.random() * (w - v + 1)) + v;
762
762
  }
763
- const i = u(200, 255), d = u(200, 255), p = u(200, 255);
764
- return `#${i.toString(16).padStart(2, "0")}${d.toString(16).padStart(2, "0")}${p.toString(16).padStart(2, "0")}`;
763
+ const s = i(200, 255), c = i(200, 255), _ = i(200, 255);
764
+ return `#${s.toString(16).padStart(2, "0")}${c.toString(16).padStart(2, "0")}${_.toString(16).padStart(2, "0")}`;
765
765
  }
766
- return (u, i) => {
767
- const d = resolveComponent("hr-icon");
766
+ return (i, s) => {
767
+ const c = resolveComponent("hr-icon");
768
768
  return o.value ? (openBlock(), createElementBlock("div", _hoisted_1$b, [
769
769
  n.value ? (openBlock(), createBlock(unref(ElTag), {
770
770
  key: 0,
771
771
  color: n.value.Color,
772
772
  size: "small",
773
- style: normalizeStyle({ borderColor: s(n.value.Color, "0.03") })
773
+ style: normalizeStyle({ borderColor: d(n.value.Color, "0.03") })
774
774
  }, {
775
775
  default: withCtx(() => [
776
- n.value.LeftIcon ? (openBlock(), createBlock(d, {
776
+ n.value.LeftIcon ? (openBlock(), createBlock(c, {
777
777
  key: 0,
778
778
  class: "mr0.25 v-middle mt0.15",
779
779
  size: "13",
780
- color: s(n.value.Color, "0.3"),
780
+ color: d(n.value.Color, "0.3"),
781
781
  icon: n.value.LeftIcon
782
782
  }, null, 8, ["color", "icon"])) : createCommentVNode("", !0),
783
783
  createElementVNode("span", {
784
784
  class: "v-middle",
785
- style: normalizeStyle({ color: s(n.value.Color, "0.3") })
785
+ style: normalizeStyle({ color: d(n.value.Color, "0.3") })
786
786
  }, toDisplayString(r.displayValue === void 0 ? o.value : r.displayValue), 5),
787
- n.value.RightIcon ? (openBlock(), createBlock(d, {
787
+ n.value.RightIcon ? (openBlock(), createBlock(c, {
788
788
  key: 1,
789
789
  class: "ml0.25 v-middle mt0.15",
790
790
  size: "13",
791
- color: s(n.value.Color, "0.3"),
791
+ color: d(n.value.Color, "0.3"),
792
792
  icon: n.value.RightIcon
793
793
  }, null, 8, ["color", "icon"])) : createCommentVNode("", !0)
794
794
  ]),
@@ -827,20 +827,26 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
827
827
  function handleChange(r, e, t) {
828
828
  emit("change", r, e, t);
829
829
  }
830
- const onBefore = inject("onBefore");
831
830
  function handleChoose(row, column, gridRef) {
832
831
  var r;
833
- if (onBefore && onBefore(column) || (r = column.params) != null && r.disabled) return;
832
+ let result;
833
+ if (emit("onChooseBefor-Click", column, (e) => {
834
+ result = e;
835
+ }), !result || (r = column.params) != null && r.disabled) return;
834
836
  let { ChoosePageType, ChoosePageOID, StoredValueField, ReturnValueField, URLParamsObject, URLParamsHook } = props.column.params, urlParams = {}, selectedData = [], layerOptions = {};
835
- URLParamsObject && Object.assign(urlParams, URLParamsObject), URLParamsHook && Object.assign(urlParams, eval(`(${URLParamsHook})({ urlParams, selectedData, layerOptions, row, column, gridRef })`)), ChoosePageType === "autoPage" ? openAutoPage(ChoosePageOID, (e, t) => {
837
+ URLParamsObject && Object.assign(urlParams, URLParamsObject), URLParamsHook && Object.assign(urlParams, eval(
838
+ `(function(urlParams, selectedData, layerOptions, row, column){
839
+ return eval((${URLParamsHook})(urlParams, selectedData, layerOptions, row, column))
840
+ }).call(gridRef)`
841
+ )), ChoosePageType === "autoPage" ? openAutoPage(ChoosePageOID, (e, t) => {
836
842
  isEmpty(StoredValueField) || isEmpty(ReturnValueField) || (Array.isArray(StoredValueField) || (StoredValueField = [StoredValueField]), Array.isArray(ReturnValueField) || (ReturnValueField = [ReturnValueField]), StoredValueField.forEach((o, n) => {
837
- var c;
838
- return row[o] = ((c = t[ReturnValueField[n]]) == null ? void 0 : c.join(",")) || null;
843
+ var u;
844
+ return row[o] = ((u = t[ReturnValueField[n]]) == null ? void 0 : u.join(",")) || null;
839
845
  }), handleChange(row[column.field], row, column));
840
846
  }, urlParams) : openChoosePage(ChoosePageOID, (e, t) => {
841
847
  isEmpty(StoredValueField) || isEmpty(ReturnValueField) || (Array.isArray(StoredValueField) || (StoredValueField = [StoredValueField]), Array.isArray(ReturnValueField) || (ReturnValueField = [ReturnValueField]), StoredValueField.forEach((o, n) => {
842
- var c;
843
- return row[o] = ((c = t[ReturnValueField[n]]) == null ? void 0 : c.join(",")) || null;
848
+ var u;
849
+ return row[o] = ((u = t[ReturnValueField[n]]) == null ? void 0 : u.join(",")) || null;
844
850
  }), handleChange(row[column.field], row, column));
845
851
  }, urlParams, selectedData, layerOptions);
846
852
  }
@@ -858,7 +864,7 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
858
864
  }))
859
865
  ]));
860
866
  }
861
- }), chooseFrameRender = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-c44e48d9"]]), __vite_glob_0_2$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
867
+ }), chooseFrameRender = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-803aa0e7"]]), __vite_glob_0_2$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
862
868
  __proto__: null,
863
869
  default: chooseFrameRender
864
870
  }, Symbol.toStringTag, { value: "Module" })), _hoisted_1$9 = { class: "size-full color-picker" }, _sfc_main$m = /* @__PURE__ */ Object.assign({
@@ -922,20 +928,20 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
922
928
  watchEffect(() => {
923
929
  n.value = isColor(t.row[t.column.field]) ? t.row[t.column.field] : null;
924
930
  });
925
- const c = e;
926
- function l(a, s, m) {
927
- s[m.field] = a, c("change", a, s, m);
931
+ const u = e;
932
+ function l(a, d, m) {
933
+ d[m.field] = a, u("change", a, d, m);
928
934
  }
929
- return (a, s) => {
935
+ return (a, d) => {
930
936
  var m;
931
937
  return openBlock(), createElementBlock("div", _hoisted_1$9, [
932
938
  createVNode(unref(ElColorPicker), {
933
939
  disabled: (m = r.column.params) == null ? void 0 : m.disabled,
934
940
  class: "size-full",
935
941
  modelValue: n.value,
936
- "onUpdate:modelValue": s[0] || (s[0] = (u) => n.value = u),
942
+ "onUpdate:modelValue": d[0] || (d[0] = (i) => n.value = i),
937
943
  predefine: o.value,
938
- onChange: s[1] || (s[1] = (u) => l(u, r.row, r.column))
944
+ onChange: d[1] || (d[1] = (i) => l(i, r.row, r.column))
939
945
  }, null, 8, ["disabled", "modelValue", "predefine"])
940
946
  ]);
941
947
  };
@@ -990,7 +996,7 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
990
996
  const e = r, t = computed(() => {
991
997
  var a;
992
998
  const l = ((a = e.column.params) == null ? void 0 : a.DateType) || "date";
993
- return c(o(e.row[e.column.field], l), l);
999
+ return u(o(e.row[e.column.field], l), l);
994
1000
  });
995
1001
  function o(l, a) {
996
1002
  if (!l) return null;
@@ -1004,33 +1010,33 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
1004
1010
  year: "YYYY"
1005
1011
  }[a];
1006
1012
  if (!m) throw new Error("Unsupported date type");
1007
- let u = dayjs(l, m);
1008
- if (l.includes("周") || !u.isValid() && a === "week") {
1009
- const i = l.match(/^(\d{4})年第(\d{1,2})周$/);
1010
- if (i) {
1011
- const [, d, p] = i;
1012
- u = dayjs(`${d}-01-01`).isoWeek(Number(p));
1013
+ let i = dayjs(l, m);
1014
+ if (l.includes("周") || !i.isValid() && a === "week") {
1015
+ const s = l.match(/^(\d{4})年第(\d{1,2})周$/);
1016
+ if (s) {
1017
+ const [, c, _] = s;
1018
+ i = dayjs(`${c}-01-01`).isoWeek(Number(_));
1013
1019
  }
1014
- } else if (l.includes("季度") || !u.isValid() && a === "quarter") {
1015
- const i = l.match(/^(\d{4})年第(\d)季度$/);
1016
- if (i) {
1017
- const [, d, p] = i;
1018
- u = dayjs(`${d}-01-01`).quarter(Number(p));
1020
+ } else if (l.includes("季度") || !i.isValid() && a === "quarter") {
1021
+ const s = l.match(/^(\d{4})年第(\d)季度$/);
1022
+ if (s) {
1023
+ const [, c, _] = s;
1024
+ i = dayjs(`${c}-01-01`).quarter(Number(_));
1019
1025
  }
1020
- } else if (l.includes("月") || !u.isValid() && a === "month") {
1021
- const i = l.match(/^(\d{4})年(\d{1,2})月$/);
1022
- if (i) {
1023
- const [, d, p] = i;
1024
- u = dayjs(`${d}-${p}-01`);
1026
+ } else if (l.includes("月") || !i.isValid() && a === "month") {
1027
+ const s = l.match(/^(\d{4})年(\d{1,2})月$/);
1028
+ if (s) {
1029
+ const [, c, _] = s;
1030
+ i = dayjs(`${c}-${_}-01`);
1025
1031
  }
1026
- } else if (l.includes("年") || !u.isValid() && a === "year") {
1027
- const i = l.match(/^(\d{4})年$/);
1028
- if (i) {
1029
- const [, d] = i;
1030
- u = dayjs(`${d}-01-01`);
1032
+ } else if (l.includes("年") || !i.isValid() && a === "year") {
1033
+ const s = l.match(/^(\d{4})年$/);
1034
+ if (s) {
1035
+ const [, c] = s;
1036
+ i = dayjs(`${c}-01-01`);
1031
1037
  }
1032
1038
  }
1033
- return u.isValid() ? n(u, a) : null;
1039
+ return i.isValid() ? n(i, a) : null;
1034
1040
  }
1035
1041
  function n(l, a) {
1036
1042
  switch (a) {
@@ -1052,7 +1058,7 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
1052
1058
  return null;
1053
1059
  }
1054
1060
  }
1055
- function c(l, a) {
1061
+ function u(l, a) {
1056
1062
  if (!l) return "";
1057
1063
  switch (a) {
1058
1064
  case "week":
@@ -1064,12 +1070,12 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
1064
1070
  case "year":
1065
1071
  return `${dayjs(l).year()}年`;
1066
1072
  default:
1067
- const s = {
1073
+ const d = {
1068
1074
  time: "HH:mm:ss",
1069
1075
  date: "YYYY-MM-DD",
1070
1076
  datetime: "YYYY-MM-DD HH:mm:ss"
1071
1077
  };
1072
- return dayjs(l).format(s[a]);
1078
+ return dayjs(l).format(d[a]);
1073
1079
  }
1074
1080
  }
1075
1081
  return (l, a) => e.column.params.IsLabel ? (openBlock(), createBlock(_sfc_main$o, normalizeProps(mergeProps({ key: 0 }, { ...e, displayValue: t.value })), null, 16)) : (openBlock(), createElementBlock("span", {
@@ -1105,31 +1111,12 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
1105
1111
  setup(r, { emit: e }) {
1106
1112
  const t = e;
1107
1113
  function o(n) {
1108
- [
1109
- "mp4",
1110
- "avi",
1111
- "mov",
1112
- "wmv",
1113
- "flv",
1114
- "mkv",
1115
- "webm",
1116
- "mpeg",
1117
- "mpg",
1118
- "m4v",
1119
- "3gp",
1120
- "3g2",
1121
- "ogg",
1122
- "ogv",
1123
- "ts",
1124
- "mts",
1125
- "m2ts",
1126
- "mxf"
1127
- ].includes(n.FileType) ? preVideo(n.FilePath) : ["dwg", "dxf", "dwf"].includes(n.FileType) && preCAD(n.FilePath), t("file-click", n);
1128
- }
1129
- return (n, c) => {
1114
+ ["jpg", "jpeg", "png", "gif", "bmp", "svg"].includes(n.FileType.toLowerCase()) || t("file-click", n);
1115
+ }
1116
+ return (n, u) => {
1130
1117
  const l = resolveDirective("viewer");
1131
1118
  return withDirectives((openBlock(), createElementBlock("div", _hoisted_1$6, [
1132
- (openBlock(!0), createElementBlock(Fragment, null, renderList(r.row[r.column.field], (a, s) => (openBlock(), createElementBlock("div", {
1119
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(r.row[r.column.field], (a, d) => (openBlock(), createElementBlock("div", {
1133
1120
  class: "Link flex",
1134
1121
  title: a.FileName
1135
1122
  }, [
@@ -1150,7 +1137,7 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
1150
1137
  createElementVNode("a", {
1151
1138
  href: a.FilePath,
1152
1139
  download: a.FileName
1153
- }, toDisplayString(s + 1) + "." + toDisplayString(a.FileType), 9, _hoisted_4)
1140
+ }, toDisplayString(d + 1) + "." + toDisplayString(a.FileType), 9, _hoisted_4)
1154
1141
  ], 8, _hoisted_2))), 256))
1155
1142
  ])), [
1156
1143
  [
@@ -1162,7 +1149,7 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
1162
1149
  ]);
1163
1150
  };
1164
1151
  }
1165
- }), fileRender = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-92060d8d"]]), __vite_glob_0_6$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1152
+ }), fileRender = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-ddb457f4"]]), __vite_glob_0_6$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1166
1153
  __proto__: null,
1167
1154
  default: fileRender
1168
1155
  }, Symbol.toStringTag, { value: "Module" })), _sfc_main$i = /* @__PURE__ */ Object.assign({
@@ -1186,36 +1173,33 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
1186
1173
  emits: ["change"],
1187
1174
  setup(r, { emit: e }) {
1188
1175
  const t = e;
1189
- function o(c, l, a) {
1190
- t("change", c, l, a);
1176
+ function o(u, l, a) {
1177
+ t("change", u, l, a);
1191
1178
  }
1192
- function n(c, l) {
1193
- var s;
1194
- if ((s = l.params) != null && s.disable) return;
1179
+ function n(u, l) {
1180
+ var d;
1181
+ if ((d = l.params) != null && d.disable) return;
1195
1182
  let a = layer.open({
1196
1183
  type: 2,
1197
1184
  title: "图标选择",
1198
1185
  maxmin: !0,
1199
1186
  area: ["80%", "80%"],
1200
- content: "/Html/Custom/SelectIcon/hr-icon.html?callbackFn=setIcon&clearFn=clearIcon"
1187
+ content: "/Html/Custom/SelectIcon/Icon.html?callbackFn=setIcon&clearFn=clearIcon"
1201
1188
  });
1202
1189
  window.setIcon = (m) => {
1203
- c[l.field] = m.font_class, o(m, c, l);
1190
+ u[l.field] = m.font_class, o(m, u, l);
1204
1191
  }, window.clearIcon = (m) => {
1205
- c[l.field] = "", o(m, c, l), layer.close(a);
1192
+ u[l.field] = "", o(m, u, l), layer.close(a);
1206
1193
  };
1207
1194
  }
1208
- return (c, l) => {
1209
- const a = resolveComponent("hr-icon");
1210
- return openBlock(), createElementBlock("div", {
1211
- class: "w-full h-full flex justify-center items-center",
1212
- onClick: l[0] || (l[0] = (s) => n(r.row, r.column))
1213
- }, [
1214
- createVNode(a, {
1215
- icon: r.row[r.column.field]
1216
- }, null, 8, ["icon"])
1217
- ]);
1218
- };
1195
+ return (u, l) => (openBlock(), createElementBlock("div", {
1196
+ class: "w-full h-full flex justify-center items-center",
1197
+ onClick: l[0] || (l[0] = (a) => n(r.row, r.column))
1198
+ }, [
1199
+ createVNode(unref(HrIcon), {
1200
+ icon: r.row[r.column.field]
1201
+ }, null, 8, ["icon"])
1202
+ ]));
1219
1203
  }
1220
1204
  }), __vite_glob_0_7$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1221
1205
  __proto__: null,
@@ -1241,28 +1225,28 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
1241
1225
  emits: ["change"],
1242
1226
  setup(r, { emit: e }) {
1243
1227
  const t = r, o = e;
1244
- function n(c, l) {
1245
- var v;
1246
- if ((v = l.params) != null && v.disabled) return;
1228
+ function n(u, l) {
1229
+ var h;
1230
+ if ((h = l.params) != null && h.disabled) return;
1247
1231
  let {
1248
1232
  PickPeopleType: a,
1249
- PickPeopleCheckType: s,
1233
+ PickPeopleCheckType: d,
1250
1234
  PickPeopleIsAll: m,
1251
- PickPeopleStatus: u,
1252
- StoredValueField: i,
1253
- ReturnValueField: d,
1254
- BackfillField: p
1235
+ PickPeopleStatus: i,
1236
+ StoredValueField: s,
1237
+ ReturnValueField: c,
1238
+ BackfillField: _
1255
1239
  } = t.column.params;
1256
1240
  openChoosePeople({
1257
1241
  Type: a,
1258
- Choose: s,
1242
+ Choose: d,
1259
1243
  IsAll: m,
1260
- Status: u
1261
- }, (g) => {
1262
- isEmpty(i) ? c[l.field] = g.Name || null : (Array.isArray(i) || (i = [i]), Array.isArray(d) || (d = [d]), i.forEach((w, y) => c[w] = g[d[y]] || null)), o("change", g, c, l);
1263
- }, p ? c[p] : null);
1244
+ Status: i
1245
+ }, (v) => {
1246
+ isEmpty(s) ? u[l.field] = v.Name || null : (Array.isArray(s) || (s = [s]), Array.isArray(c) || (c = [c]), s.forEach((w, y) => u[w] = v[c[y]] || null)), o("change", v, u, l);
1247
+ }, _ ? u[_] : null);
1264
1248
  }
1265
- return (c, l) => (openBlock(), createElementBlock("div", _hoisted_1$5, [
1249
+ return (u, l) => (openBlock(), createElementBlock("div", _hoisted_1$5, [
1266
1250
  createVNode(unref(ElButton), {
1267
1251
  class: "!text-[12px]",
1268
1252
  link: "",
@@ -1308,7 +1292,7 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
1308
1292
  o.value = n > 100 ? 100 : n, n > 100 ? t.row[t.column.field] = 100 : t.row[t.column.field] = o.value;
1309
1293
  } else
1310
1294
  o.value = 0;
1311
- }), (n, c) => (openBlock(), createBlock(unref(ElProgress), {
1295
+ }), (n, u) => (openBlock(), createBlock(unref(ElProgress), {
1312
1296
  percentage: unref(o),
1313
1297
  format: () => `${unref(o)}%`
1314
1298
  }, null, 8, ["percentage", "format"]));
@@ -1337,18 +1321,18 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
1337
1321
  emits: ["change"],
1338
1322
  setup(r, { emit: e }) {
1339
1323
  const t = r, o = e;
1340
- function n(c, l, a) {
1341
- t.gridRef.getTableData().tableData.filter((s) => s !== l).forEach((s) => {
1342
- s[a.field] && (s[a.field] = !1);
1343
- }), o("change", c, l, a);
1324
+ function n(u, l, a) {
1325
+ t.gridRef.getTableData().tableData.filter((d) => d !== l).forEach((d) => {
1326
+ d[a.field] && (d[a.field] = !1);
1327
+ }), o("change", u, l, a);
1344
1328
  }
1345
- return (c, l) => {
1329
+ return (u, l) => {
1346
1330
  var a;
1347
1331
  return openBlock(), createBlock(unref(ElRadioGroup), {
1348
1332
  disabled: (a = r.column.params) == null ? void 0 : a.disabled,
1349
1333
  modelValue: r.row[r.column.field],
1350
- "onUpdate:modelValue": l[0] || (l[0] = (s) => r.row[r.column.field] = s),
1351
- onChange: l[1] || (l[1] = (s) => n(s, r.row, r.column))
1334
+ "onUpdate:modelValue": l[0] || (l[0] = (d) => r.row[r.column.field] = d),
1335
+ onChange: l[1] || (l[1] = (d) => n(d, r.row, r.column))
1352
1336
  }, {
1353
1337
  default: withCtx(() => [
1354
1338
  createVNode(unref(ElRadio), { value: !0 })
@@ -1379,9 +1363,9 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
1379
1363
  }
1380
1364
  },
1381
1365
  setup(r) {
1382
- var n, c;
1366
+ var n, u;
1383
1367
  const e = r;
1384
- (n = e.column.params)[c = e.gridRef.getRowid(e.row)] ?? (n[c] = {}), watchEffect(() => {
1368
+ (n = e.column.params)[u = e.gridRef.getRowid(e.row)] ?? (n[u] = {}), watchEffect(() => {
1385
1369
  var l, a;
1386
1370
  (l = e.column.params)[a = e.gridRef.getRowid(e.row)] ?? (l[a] = {}), !e.column.params[e.gridRef.getRowid(e.row)].options && e.column.params.options && (e.column.params[e.gridRef.getRowid(e.row)].options = deepClone(e.column.params.options));
1387
1371
  });
@@ -1389,17 +1373,17 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
1389
1373
  var l;
1390
1374
  return ((l = e.column.params[e.gridRef.getRowid(e.row)]) == null ? void 0 : l.options) || e.column.params.options;
1391
1375
  }), o = computed(() => {
1392
- var a, s;
1376
+ var a, d;
1393
1377
  const l = e.row[e.column.field];
1394
1378
  if (l && l.length > 1) {
1395
1379
  let m = [];
1396
- return l.split(",").map((u) => {
1397
- var d, p;
1398
- const i = (p = (d = t.value) == null ? void 0 : d.find((v) => v.value == u)) == null ? void 0 : p.label;
1399
- i !== void 0 && m.push(i);
1380
+ return l.split(",").map((i) => {
1381
+ var c, _;
1382
+ const s = (_ = (c = t.value) == null ? void 0 : c.find((h) => h.value == i)) == null ? void 0 : _.label;
1383
+ s !== void 0 && m.push(s);
1400
1384
  }), m.join(",");
1401
1385
  } else
1402
- return ((s = (a = t.value) == null ? void 0 : a.find((m) => m.value == l)) == null ? void 0 : s.label) || "";
1386
+ return ((d = (a = t.value) == null ? void 0 : a.find((m) => m.value == l)) == null ? void 0 : d.label) || "";
1403
1387
  });
1404
1388
  return (l, a) => e.column.params.IsLabel ? (openBlock(), createBlock(_sfc_main$o, normalizeProps(mergeProps({ key: 0 }, { ...e, displayValue: o.value })), null, 16)) : (openBlock(), createElementBlock("span", {
1405
1389
  key: 1,
@@ -1428,9 +1412,9 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
1428
1412
  }
1429
1413
  },
1430
1414
  setup(r) {
1431
- var n, c;
1415
+ var n, u;
1432
1416
  const e = r;
1433
- (n = e.column.params)[c = e.gridRef.getRowid(e.row)] ?? (n[c] = {}), watchEffect(() => {
1417
+ (n = e.column.params)[u = e.gridRef.getRowid(e.row)] ?? (n[u] = {}), watchEffect(() => {
1434
1418
  var l, a;
1435
1419
  (l = e.column.params)[a = e.gridRef.getRowid(e.row)] ?? (l[a] = {}), !e.column.params[e.gridRef.getRowid(e.row)].options && e.column.params.options && (e.column.params[e.gridRef.getRowid(e.row)].options = deepClone(e.column.params.options));
1436
1420
  });
@@ -1439,9 +1423,9 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
1439
1423
  return ((l = e.column.params[e.gridRef.getRowid(e.row)]) == null ? void 0 : l.options) || e.column.params.options;
1440
1424
  }), o = computed(() => {
1441
1425
  var l, a;
1442
- return ((a = (l = t.value) == null ? void 0 : l.find((s) => s.value == e.row[e.column.field])) == null ? void 0 : a.label) || "";
1426
+ return ((a = (l = t.value) == null ? void 0 : l.find((d) => d.value == e.row[e.column.field])) == null ? void 0 : a.label) || "";
1443
1427
  });
1444
- return (l, a) => e.column.params.IsLabel ? (openBlock(), createBlock(_sfc_main$o, normalizeProps(mergeProps({ key: 0 }, { ...e, displayValue: o.value })), null, 16)) : (openBlock(), createElementBlock("span", {
1428
+ return (l, a) => e.column.params.IsLabel ? (openBlock(), createBlock(_sfc_main$o, mergeProps({ key: 0 }, { ...e, displayValue: o.value }, { title: o.value }), null, 16, ["title"])) : (openBlock(), createElementBlock("span", {
1445
1429
  key: 1,
1446
1430
  title: o.value
1447
1431
  }, toDisplayString(o.value), 9, _hoisted_1$3));
@@ -1470,14 +1454,14 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
1470
1454
  setup(r) {
1471
1455
  const e = r;
1472
1456
  if (!e.column.params.TreeData) {
1473
- const { options: o, ParentNodeField: n, NodeValueField: c } = e.column.params;
1474
- e.column.params.TreeData = buildTree(deepClone(o), n, c);
1457
+ const { options: o, ParentNodeField: n, NodeValueField: u } = e.column.params;
1458
+ e.column.params.TreeData = buildTree(deepClone(o), n, u);
1475
1459
  }
1476
1460
  const t = computed(() => {
1477
1461
  const { NodeNameField: o = "label", NodeValueField: n = "value" } = e.column.params;
1478
1462
  if (e.row[e.column.field]) {
1479
- let c = e.row[e.column.field].split(",");
1480
- return e.column.params.options.filter((l) => c.includes(l[n])).map((l) => l[o]).join(",");
1463
+ let u = e.row[e.column.field].split(",");
1464
+ return e.column.params.options.filter((l) => u.includes(l[n])).map((l) => l[o]).join(",");
1481
1465
  }
1482
1466
  });
1483
1467
  return (o, n) => e.column.params.IsLabel ? (openBlock(), createBlock(_sfc_main$o, normalizeProps(mergeProps({ key: 0 }, { ...e, displayValue: t.value })), null, 16)) : (openBlock(), createElementBlock("span", {
@@ -1509,13 +1493,13 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
1509
1493
  setup(r) {
1510
1494
  const e = r;
1511
1495
  if (!e.column.params.TreeData) {
1512
- const { options: o, ParentNodeField: n, NodeKeyField: c } = e.column.params;
1513
- e.column.params.TreeData = buildTree(deepClone(o), n, c);
1496
+ const { options: o, ParentNodeField: n, NodeKeyField: u } = e.column.params;
1497
+ e.column.params.TreeData = buildTree(deepClone(o), n, u);
1514
1498
  }
1515
1499
  const t = computed(() => {
1516
- var c;
1500
+ var u;
1517
1501
  const { NodeNameField: o = "label", NodeValueField: n = "value" } = e.column.params;
1518
- return ((c = e.column.params.options.find((l) => l[n] == e.row[e.column.field])) == null ? void 0 : c[o]) || "";
1502
+ return ((u = e.column.params.options.find((l) => l[n] == e.row[e.column.field])) == null ? void 0 : u[o]) || "";
1519
1503
  });
1520
1504
  return (o, n) => e.column.params.IsLabel ? (openBlock(), createBlock(_sfc_main$o, normalizeProps(mergeProps({ key: 0 }, { ...e, displayValue: t.value })), null, 16)) : (openBlock(), createElementBlock("span", {
1521
1505
  key: 1,
@@ -1556,13 +1540,13 @@ const _sfc_main$a = /* @__PURE__ */ Object.assign({
1556
1540
  dayjs.extend(isoWeek), dayjs.extend(quarterOfYear), dayjs.extend(customParseFormat);
1557
1541
  const t = r, o = ref(n(t.row[t.column.field], ((l = t.column.params) == null ? void 0 : l.DateType) || "date"));
1558
1542
  onBeforeUnmount(() => {
1559
- var s;
1560
- const a = ((s = t.column.params) == null ? void 0 : s.DateType) || "date";
1543
+ var d;
1544
+ const a = ((d = t.column.params) == null ? void 0 : d.DateType) || "date";
1561
1545
  o.value && (a === "year" ? t.row[t.column.field] = dayjs(o.value).format("YYYY年") : a === "month" ? t.row[t.column.field] = dayjs(o.value).format("YYYY年MM月") : a === "quarter" ? t.row[t.column.field] = dayjs(o.value).format("YYYY年第Q季度") : a === "week" ? t.row[t.column.field] = dayjs(o.value).format("YYYY年第WW周") : a === "datetime" ? t.row[t.column.field] = dayjs(o.value).format("YYYY-MM-DD HH:mm:ss") : t.row[t.column.field] = dayjs(o.value).format("YYYY-MM-DD"));
1562
1546
  });
1563
- function n(a, s) {
1547
+ function n(a, d) {
1564
1548
  if (!a) return null;
1565
- const u = {
1549
+ const i = {
1566
1550
  time: "HH:mm:ss",
1567
1551
  date: "YYYY-MM-DD",
1568
1552
  datetime: "YYYY-MM-DD HH:mm:ss",
@@ -1570,38 +1554,38 @@ const _sfc_main$a = /* @__PURE__ */ Object.assign({
1570
1554
  month: "YYYY-MM",
1571
1555
  quarter: "YYYY-Q",
1572
1556
  year: "YYYY"
1573
- }[s];
1574
- if (!u) throw new Error("Unsupported date type");
1575
- let i = dayjs(a, u);
1576
- if (!i.isValid() && s === "week") {
1577
- const d = a.match(/^(\d{4})年第(\d{2})周$/);
1578
- if (d) {
1579
- const [, p, v] = d;
1580
- i = dayjs(`${p}-01-01`).isoWeek(Number(v));
1557
+ }[d];
1558
+ if (!i) throw new Error("Unsupported date type");
1559
+ let s = dayjs(a, i);
1560
+ if (!s.isValid() && d === "week") {
1561
+ const c = a.match(/^(\d{4})年第(\d{2})周$/);
1562
+ if (c) {
1563
+ const [, _, h] = c;
1564
+ s = dayjs(`${_}-01-01`).isoWeek(Number(h));
1581
1565
  }
1582
- } else if (!i.isValid() && s === "quarter") {
1583
- const d = a.match(/^(\d{4})年第(\d)季度$/);
1584
- if (d) {
1585
- const [, p, v] = d;
1586
- i = dayjs(`${p}-01-01`).quarter(Number(v));
1566
+ } else if (!s.isValid() && d === "quarter") {
1567
+ const c = a.match(/^(\d{4})年第(\d)季度$/);
1568
+ if (c) {
1569
+ const [, _, h] = c;
1570
+ s = dayjs(`${_}-01-01`).quarter(Number(h));
1587
1571
  }
1588
- } else if (!i.isValid() && s === "month") {
1589
- const d = a.match(/^(\d{4})年(\d{2})月$/);
1590
- if (d) {
1591
- const [, p, v] = d;
1592
- i = dayjs(`${p}-${v}-01`);
1572
+ } else if (!s.isValid() && d === "month") {
1573
+ const c = a.match(/^(\d{4})年(\d{2})月$/);
1574
+ if (c) {
1575
+ const [, _, h] = c;
1576
+ s = dayjs(`${_}-${h}-01`);
1593
1577
  }
1594
- } else if (!i.isValid() && s === "year") {
1595
- const d = a.match(/^(\d{4})年$/);
1596
- if (d) {
1597
- const [, p] = d;
1598
- i = dayjs(`${p}-01-01`);
1578
+ } else if (!s.isValid() && d === "year") {
1579
+ const c = a.match(/^(\d{4})年$/);
1580
+ if (c) {
1581
+ const [, _] = c;
1582
+ s = dayjs(`${_}-01-01`);
1599
1583
  }
1600
1584
  }
1601
- return i.isValid() ? c(i, s) : null;
1585
+ return s.isValid() ? u(s, d) : null;
1602
1586
  }
1603
- function c(a, s) {
1604
- switch (s) {
1587
+ function u(a, d) {
1588
+ switch (d) {
1605
1589
  case "time":
1606
1590
  return a.format("HH:mm:ss");
1607
1591
  case "date":
@@ -1620,11 +1604,11 @@ const _sfc_main$a = /* @__PURE__ */ Object.assign({
1620
1604
  return null;
1621
1605
  }
1622
1606
  }
1623
- return (a, s) => {
1607
+ return (a, d) => {
1624
1608
  var m;
1625
1609
  return openBlock(), createBlock(unref(VxeInput), {
1626
1610
  modelValue: o.value,
1627
- "onUpdate:modelValue": s[0] || (s[0] = (u) => o.value = u),
1611
+ "onUpdate:modelValue": d[0] || (d[0] = (i) => o.value = i),
1628
1612
  type: ((m = r.column.params) == null ? void 0 : m.DateType) || "date",
1629
1613
  clearable: "",
1630
1614
  transfer: ""
@@ -1658,7 +1642,7 @@ const _sfc_main$a = /* @__PURE__ */ Object.assign({
1658
1642
  e.row[e.column.field] = t.value;
1659
1643
  }), (o, n) => (openBlock(), createBlock(unref(ElInput), {
1660
1644
  modelValue: t.value,
1661
- "onUpdate:modelValue": n[0] || (n[0] = (c) => t.value = c)
1645
+ "onUpdate:modelValue": n[0] || (n[0] = (u) => t.value = u)
1662
1646
  }, null, 8, ["modelValue"]));
1663
1647
  }
1664
1648
  }), __vite_glob_0_1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
@@ -1687,9 +1671,9 @@ const _sfc_main$a = /* @__PURE__ */ Object.assign({
1687
1671
  const t = r, o = ref(t.row[t.column.field]);
1688
1672
  return onBeforeUnmount(() => {
1689
1673
  t.row[t.column.field] = o.value ? Number(o.value) : 0;
1690
- }), (n, c) => (openBlock(), createBlock(unref(ElInput), {
1674
+ }), (n, u) => (openBlock(), createBlock(unref(ElInput), {
1691
1675
  modelValue: o.value,
1692
- "onUpdate:modelValue": c[0] || (c[0] = (l) => o.value = l),
1676
+ "onUpdate:modelValue": u[0] || (u[0] = (l) => o.value = l),
1693
1677
  min: r.column.params.min,
1694
1678
  max: r.column.params.max,
1695
1679
  step: r.column.params.step,
@@ -1723,18 +1707,18 @@ const _sfc_main$a = /* @__PURE__ */ Object.assign({
1723
1707
  disabled: !1,
1724
1708
  clearable: !1
1725
1709
  }), n = computed(() => {
1726
- var c;
1727
- return ((c = e.column.params[e.gridRef.getRowid(e.row)]) == null ? void 0 : c.options) || e.column.params.options || [];
1710
+ var u;
1711
+ return ((u = e.column.params[e.gridRef.getRowid(e.row)]) == null ? void 0 : u.options) || e.column.params.options || [];
1728
1712
  });
1729
1713
  return onBeforeUnmount(() => {
1730
1714
  var l;
1731
1715
  e.row[e.column.field] = t.value;
1732
- const c = e.column.params.LabelStoreField;
1733
- if (c) {
1734
- const a = (l = n.value.find((s) => s.value === t.value)) == null ? void 0 : l.label;
1735
- a !== void 0 ? e.row[c] = a : t.value === void 0 ? e.row[c] = null : t.value !== void 0 && a === void 0 && (e.row[c] = t.value);
1716
+ const u = e.column.params.LabelStoreField;
1717
+ if (u) {
1718
+ const a = (l = n.value.find((d) => d.value === t.value)) == null ? void 0 : l.label;
1719
+ a !== void 0 ? e.row[u] = a : t.value === void 0 ? e.row[u] = null : t.value !== void 0 && a === void 0 && (e.row[u] = t.value);
1736
1720
  }
1737
- }), (c, l) => (openBlock(), createBlock(unref(ElSelect), {
1721
+ }), (u, l) => (openBlock(), createBlock(unref(ElSelect), {
1738
1722
  class: "z-1",
1739
1723
  modelValue: t.value,
1740
1724
  "onUpdate:modelValue": l[0] || (l[0] = (a) => t.value = a),
@@ -1782,22 +1766,22 @@ const _sfc_main$a = /* @__PURE__ */ Object.assign({
1782
1766
  disabled: !1,
1783
1767
  clearable: !1
1784
1768
  }), o = computed(() => {
1785
- var c;
1786
- return ((c = e.column.params[e.gridRef.getRowid(e.row)]) == null ? void 0 : c.options) || e.column.params.options || [];
1769
+ var u;
1770
+ return ((u = e.column.params[e.gridRef.getRowid(e.row)]) == null ? void 0 : u.options) || e.column.params.options || [];
1787
1771
  });
1788
1772
  onBeforeUnmount(() => {
1789
- const c = n.value.join(",");
1790
- e.row[e.column.field] = c;
1773
+ const u = n.value.join(",");
1774
+ e.row[e.column.field] = u;
1791
1775
  const l = e.column.params.LabelStoreField;
1792
1776
  if (l) {
1793
- const a = o.value.filter((s) => n.value.includes(s.value)).map((s) => s.label).join(",");
1777
+ const a = o.value.filter((d) => n.value.includes(d.value)).map((d) => d.label).join(",");
1794
1778
  e.row[l] = a;
1795
1779
  }
1796
1780
  });
1797
1781
  const n = ref([]);
1798
1782
  return watchEffect(() => {
1799
1783
  e.row[e.column.field] ? n.value = e.row[e.column.field].split(",") : n.value = [];
1800
- }), (c, l) => (openBlock(), createBlock(unref(ElSelect), {
1784
+ }), (u, l) => (openBlock(), createBlock(unref(ElSelect), {
1801
1785
  class: "z-1 vxe-table--ignore-clear",
1802
1786
  modelValue: n.value,
1803
1787
  "onUpdate:modelValue": l[0] || (l[0] = (a) => n.value = a),
@@ -1841,7 +1825,7 @@ const _sfc_main$a = /* @__PURE__ */ Object.assign({
1841
1825
  },
1842
1826
  emits: ["remoteMethod"],
1843
1827
  setup(r, { emit: e }) {
1844
- const t = e, o = r, n = ref(o.row[o.column.field] === void 0 ? "" : o.row[o.column.field]), c = reactive(o.column.params || {
1828
+ const t = e, o = r, n = ref(o.row[o.column.field] === void 0 ? "" : o.row[o.column.field]), u = reactive(o.column.params || {
1845
1829
  options: [],
1846
1830
  placeholder: "请选择",
1847
1831
  disabled: !1,
@@ -1852,32 +1836,32 @@ const _sfc_main$a = /* @__PURE__ */ Object.assign({
1852
1836
  loading: !1
1853
1837
  });
1854
1838
  onBeforeUnmount(() => {
1855
- const { StoredValueField: a, ReturnValueField: s } = c;
1856
- a && a.length ? a.forEach((m, u) => {
1857
- const i = c.options.find((d) => d._value === n.value);
1858
- i && (o.row[m] = i[s[u]]);
1839
+ const { StoredValueField: a, ReturnValueField: d } = u;
1840
+ a && a.length ? a.forEach((m, i) => {
1841
+ const s = u.options.find((c) => c._value === n.value);
1842
+ s && (o.row[m] = s[d[i]]);
1859
1843
  }) : o.row[o.column.field] = n.value;
1860
1844
  });
1861
1845
  function l(a) {
1862
- const { DataAPIOID: s, SearchField: m } = c;
1863
- a ? (c.loading = !0, t("remoteMethod", { DataAPIOID: s, SearchField: m, query: a, params: c })) : o.column.params.options = [];
1846
+ const { DataAPIOID: d, SearchField: m } = u;
1847
+ a ? (u.loading = !0, t("remoteMethod", { DataAPIOID: d, SearchField: m, query: a, params: u })) : o.column.params.options = [];
1864
1848
  }
1865
- return (a, s) => (openBlock(), createBlock(unref(ElSelect), {
1849
+ return (a, d) => (openBlock(), createBlock(unref(ElSelect), {
1866
1850
  class: "z-1 vxe-table--ignore-clear",
1867
1851
  modelValue: n.value,
1868
- "onUpdate:modelValue": s[0] || (s[0] = (m) => n.value = m),
1852
+ "onUpdate:modelValue": d[0] || (d[0] = (m) => n.value = m),
1869
1853
  "allow-create": "",
1870
1854
  "automatic-dropdown": "",
1871
- placeholder: c.placeholder,
1855
+ placeholder: u.placeholder,
1872
1856
  "popper-class": "select-dropdown",
1873
- loading: c.loading,
1857
+ loading: u.loading,
1874
1858
  filterable: "",
1875
1859
  remote: "",
1876
1860
  "remote-method": l,
1877
1861
  clearable: ""
1878
1862
  }, {
1879
1863
  default: withCtx(() => [
1880
- (openBlock(!0), createElementBlock(Fragment, null, renderList(c.options, (m) => (openBlock(), createBlock(unref(ElOption), {
1864
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(u.options, (m) => (openBlock(), createBlock(unref(ElOption), {
1881
1865
  class: "vxe-table--ignore-clear",
1882
1866
  key: m._value,
1883
1867
  label: m._label,
@@ -1914,7 +1898,7 @@ const _sfc_main$a = /* @__PURE__ */ Object.assign({
1914
1898
  e.row[e.column.field] = t.value;
1915
1899
  }), (o, n) => (openBlock(), createBlock(unref(ElInput), {
1916
1900
  modelValue: t.value,
1917
- "onUpdate:modelValue": n[0] || (n[0] = (c) => t.value = c),
1901
+ "onUpdate:modelValue": n[0] || (n[0] = (u) => t.value = u),
1918
1902
  rows: 2,
1919
1903
  type: "textarea"
1920
1904
  }, null, 8, ["modelValue"]));
@@ -1947,18 +1931,18 @@ const _sfc_main$a = /* @__PURE__ */ Object.assign({
1947
1931
  children: "children"
1948
1932
  });
1949
1933
  if (!e.column.params.TreeData) {
1950
- const { options: n, ParentNodeField: c, NodeValueField: l } = e.column.params;
1951
- e.column.params.TreeData = buildTree(deepClone(n), c, l);
1934
+ const { options: n, ParentNodeField: u, NodeValueField: l } = e.column.params;
1935
+ e.column.params.TreeData = buildTree(deepClone(n), u, l);
1952
1936
  }
1953
1937
  const o = ref([]);
1954
1938
  return onBeforeUnmount(() => {
1955
1939
  e.row[e.column.field] = o.value.join(",");
1956
1940
  }), watchEffect(() => {
1957
1941
  e.row[e.column.field] ? o.value = e.row[e.column.field].split(",") : o.value = [];
1958
- }), (n, c) => (openBlock(), createBlock(unref(ElTreeSelect), {
1942
+ }), (n, u) => (openBlock(), createBlock(unref(ElTreeSelect), {
1959
1943
  class: "z-1 vxe-table--ignore-clear",
1960
1944
  modelValue: o.value,
1961
- "onUpdate:modelValue": c[0] || (c[0] = (l) => o.value = l),
1945
+ "onUpdate:modelValue": u[0] || (u[0] = (l) => o.value = l),
1962
1946
  "automatic-dropdown": "",
1963
1947
  "popper-class": "tree-select",
1964
1948
  data: r.column.params.TreeData,
@@ -1997,15 +1981,15 @@ const _sfc_main$a = /* @__PURE__ */ Object.assign({
1997
1981
  children: "children"
1998
1982
  });
1999
1983
  if (!e.column.params.TreeData) {
2000
- const { options: n, ParentNodeField: c, NodeValueField: l } = e.column.params;
2001
- e.column.params.TreeData = buildTree(deepClone(n), c, l);
1984
+ const { options: n, ParentNodeField: u, NodeValueField: l } = e.column.params;
1985
+ e.column.params.TreeData = buildTree(deepClone(n), u, l);
2002
1986
  }
2003
1987
  return onBeforeUnmount(() => {
2004
1988
  e.row[e.column.field] = t.value;
2005
- }), (n, c) => (openBlock(), createBlock(unref(ElTreeSelect), {
1989
+ }), (n, u) => (openBlock(), createBlock(unref(ElTreeSelect), {
2006
1990
  class: "z-1 vxe-table--ignore-clear",
2007
1991
  modelValue: t.value,
2008
- "onUpdate:modelValue": c[0] || (c[0] = (l) => t.value = l),
1992
+ "onUpdate:modelValue": u[0] || (u[0] = (l) => t.value = l),
2009
1993
  "automatic-dropdown": "",
2010
1994
  "popper-class": "tree-select",
2011
1995
  data: r.column.params.TreeData,
@@ -2014,7 +1998,7 @@ const _sfc_main$a = /* @__PURE__ */ Object.assign({
2014
1998
  indent: 12
2015
1999
  }, {
2016
2000
  label: withCtx(({ label: l, value: a }) => [
2017
- createElementVNode("span", null, toDisplayString(r.column.params.options.find((s) => s[o.value.value] === a) ? l : ""), 1)
2001
+ createElementVNode("span", null, toDisplayString(r.column.params.options.find((d) => d[o.value.value] === a) ? l : ""), 1)
2018
2002
  ]),
2019
2003
  _: 1
2020
2004
  }, 8, ["modelValue", "data", "props"]));
@@ -2060,11 +2044,11 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2060
2044
  }), watch(() => t.gridOptions.Pages, (a) => {
2061
2045
  a === !1 ? n.value = ["Total"] : n.value = ["Total", "Sizes", "PrevJump", "PrevPage", "JumpNumber", "NextPage", "NextJump", "FullJump"];
2062
2046
  });
2063
- const c = e;
2047
+ const u = e;
2064
2048
  function l() {
2065
- c("pageChange", t.pagination);
2049
+ u("pageChange", t.pagination);
2066
2050
  }
2067
- return (a, s) => (openBlock(), createElementBlock("div", {
2051
+ return (a, d) => (openBlock(), createElementBlock("div", {
2068
2052
  ref_key: "pagingDom",
2069
2053
  ref: o,
2070
2054
  class: "flex items-center w-full h-12 border border-solid border-[#e8eaec] box-border"
@@ -2074,9 +2058,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2074
2058
  class: "w-full !h-full",
2075
2059
  background: "",
2076
2060
  "current-page": r.pagination.Page,
2077
- "onUpdate:currentPage": s[0] || (s[0] = (m) => r.pagination.Page = m),
2061
+ "onUpdate:currentPage": d[0] || (d[0] = (m) => r.pagination.Page = m),
2078
2062
  "page-size": r.pagination.PageSize,
2079
- "onUpdate:pageSize": s[1] || (s[1] = (m) => r.pagination.PageSize = m),
2063
+ "onUpdate:pageSize": d[1] || (d[1] = (m) => r.pagination.PageSize = m),
2080
2064
  total: r.pagination.Total,
2081
2065
  layouts: n.value,
2082
2066
  onPageChange: l,
@@ -2099,6 +2083,10 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2099
2083
  },
2100
2084
  pagination: {
2101
2085
  type: Object
2086
+ },
2087
+ gridRef: {
2088
+ type: Object,
2089
+ default: () => ({})
2102
2090
  }
2103
2091
  },
2104
2092
  emits: [
@@ -2110,41 +2098,44 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2110
2098
  "ActionRenderBefore",
2111
2099
  "PickPeople",
2112
2100
  "FileClick",
2113
- "RemoteMethod"
2101
+ "RemoteMethod",
2102
+ "ChooseBefor"
2114
2103
  ],
2115
2104
  setup(r, { expose: e, emit: t }) {
2116
2105
  const o = r, n = reactive(o.config), {
2117
- CheckboxRender: c,
2106
+ CheckboxRender: u,
2118
2107
  ColorPickerRender: l,
2119
2108
  IconPickerRender: a,
2120
- RadioRender: s,
2109
+ RadioRender: d,
2121
2110
  ProgressRender: m,
2122
- ActionRender: u,
2123
- SelectRender: i,
2124
- TreeSelectRender: d,
2125
- SelectMultipleRender: p,
2126
- TreeMultipleSelectRender: v,
2127
- ChooseFrameRender: g,
2111
+ ActionRender: i,
2112
+ SelectRender: s,
2113
+ TreeSelectRender: c,
2114
+ SelectMultipleRender: _,
2115
+ TreeMultipleSelectRender: h,
2116
+ ChooseFrameRender: v,
2128
2117
  PickPeopleRender: w,
2129
2118
  FileRender: y,
2130
2119
  CustomRender: k,
2131
- DatePickerRender: x,
2120
+ DatePickerRender: V,
2132
2121
  LabelRender: j
2133
2122
  } = comps$1, {
2134
- InputEditor: C,
2135
- TreeSelectEditor: E,
2136
- SelectEditor: R,
2123
+ InputEditor: x,
2124
+ TreeSelectEditor: $,
2125
+ SelectEditor: N,
2137
2126
  TextareaEditor: O,
2138
- DatePickerEditor: T,
2139
- SelectMultipleEditor: M,
2140
- TreeMultipleSelectEditor: I,
2141
- InputNumberEditor: z,
2142
- SelectRemoteEditor: A
2143
- } = comps, b = ref(), U = computed(() => ((o.pagination.Page || 1) - 1) * (o.pagination.PageSize || 1e3)), N = computed(() => {
2144
- var V;
2127
+ DatePickerEditor: I,
2128
+ SelectMultipleEditor: z,
2129
+ TreeMultipleSelectEditor: A,
2130
+ InputNumberEditor: U,
2131
+ SelectRemoteEditor: L
2132
+ } = comps, b = ref(), H = computed(() => ((o.pagination.Page || 1) - 1) * (o.pagination.PageSize || 1e3));
2133
+ let D = !1;
2134
+ const T = computed(() => {
2135
+ var C;
2145
2136
  if (n.Number) {
2146
- if (!n.columns.find((_) => _.type == "seq")) {
2147
- let _ = n.columns.find((F) => ["left", "right"].includes(F.fixed)), S = {
2137
+ if (!n.columns.find((p) => p.type == "seq")) {
2138
+ let p = n.columns.find((F) => ["left", "right"].includes(F.fixed)), E = {
2148
2139
  slots: {},
2149
2140
  params: {},
2150
2141
  type: "seq",
@@ -2152,27 +2143,35 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2152
2143
  align: "center",
2153
2144
  width: 50
2154
2145
  };
2155
- _ && (S.fixed = "left"), n.columns.unshift(S);
2146
+ p && (E.fixed = "left"), n.columns.length && n.columns.unshift(E);
2156
2147
  }
2157
2148
  } else {
2158
- let f = o.config.columns.findIndex((_) => _.type == "seq");
2149
+ let f = o.config.columns.findIndex((p) => p.type == "seq");
2159
2150
  f != -1 && o.config.columns.splice(f, 1);
2160
2151
  }
2161
2152
  if (o.config.AutoFullWidth) {
2162
- const _ = D(o.config.columns || []).filter(($) => !$.children), S = _.reduce(($, P) => {
2163
- let Y = Number(P.width);
2164
- return $ + (isNaN(Y) ? 100 : Y);
2165
- }, 0), F = b.value.$el.clientWidth;
2166
- S != F && _.forEach(($) => {
2167
- let P = Number($.width);
2168
- $.width = Number(((isNaN(P) ? 100 : P) * (F / S)).toFixed(0));
2169
- });
2153
+ const p = Y(o.config.columns || []).filter((R) => !R.children), E = p.reduce((R, P) => {
2154
+ let S = Number(P.width);
2155
+ return R + (isNaN(S) ? 100 : S);
2156
+ }, 0), F = (R = 0) => {
2157
+ if (R > 50) return;
2158
+ if (!b.value) {
2159
+ setTimeout(() => F(++R), 0);
2160
+ return;
2161
+ }
2162
+ const P = b.value.$el.clientWidth;
2163
+ E != P && p.forEach((S) => {
2164
+ let M = Number(S.width);
2165
+ S.width = Number(((isNaN(M) ? 100 : M) * (P / E)).toFixed(0));
2166
+ });
2167
+ };
2168
+ F();
2170
2169
  }
2171
- let h = {
2170
+ let g = {
2172
2171
  keepSource: !0,
2173
2172
  showOverflow: "title",
2174
2173
  seqConfig: {
2175
- seqMethod: (f) => U.value + f.$rowIndex + 1
2174
+ seqMethod: (f) => H.value + f.$rowIndex + 1
2176
2175
  },
2177
2176
  exportConfig: {},
2178
2177
  importConfig: {},
@@ -2187,10 +2186,18 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2187
2186
  // 只对 keep-source 开启有效,是否显示单元格新增与修改状态
2188
2187
  showIcon: !1,
2189
2188
  // 因为对过滤行进行了修改 该属性必须为false
2190
- ...(V = o.config) == null ? void 0 : V.editConfig
2189
+ ...(C = o.config) == null ? void 0 : C.editConfig
2190
+ },
2191
+ showFooter: n["Total-Row"],
2192
+ // 启用表尾统计
2193
+ // showFooter: true, // 启用统计行
2194
+ footerMethod({ columns: f, data: p }) {
2195
+ return [
2196
+ f.map((E, F) => F === 0 ? "合计" : n["Total-Field"].includes(E.field) ? p.reduce((P, S) => P + (Number(S[E.field]) || 0), 0) : "")
2197
+ ];
2191
2198
  }
2192
2199
  };
2193
- return n.BodyMenu && (h.menuConfig = {
2200
+ return n.BodyMenu && (g.menuConfig = {
2194
2201
  body: {
2195
2202
  options: [
2196
2203
  [
@@ -2200,258 +2207,276 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2200
2207
  ]
2201
2208
  ]
2202
2209
  }
2203
- }), h;
2204
- }), B = t;
2210
+ }), g;
2211
+ }), q = async () => {
2212
+ var g;
2213
+ await nextTick(), (g = b == null ? void 0 : b.value) == null || g.updateFooter();
2214
+ }, B = t;
2205
2215
  e({
2206
2216
  gridRef: b,
2207
- gridOptions: N
2208
- }), JSON.parse(JSON.stringify(o.config.columns)), watch(o.config.columns, (h) => {
2209
- var V;
2210
- (V = b.value) == null || V.loadColumn(h), JSON.parse(JSON.stringify(h));
2217
+ gridOptions: T
2218
+ });
2219
+ const W = reactive(o.config.columns);
2220
+ watch(W, (g) => {
2221
+ var C;
2222
+ D ? D = !1 : (C = b.value) == null || C.loadColumn(g);
2211
2223
  });
2212
- function D(h, V = "children", f = []) {
2213
- return h.forEach((_) => {
2214
- f.push(_), _[V] && _[V].length > 0 && D(_[V], V, f);
2224
+ function Y(g, C = "children", f = []) {
2225
+ return g.forEach((p) => {
2226
+ f.push(p), p[C] && p[C].length > 0 && Y(p[C], C, f);
2215
2227
  }), f;
2216
2228
  }
2217
- function L(...h) {
2218
- B("PickPeople", ...h);
2229
+ function K(...g) {
2230
+ B("PickPeople", ...g);
2219
2231
  }
2220
- const H = ({ menu: h }) => {
2221
- var V, f;
2222
- h.type == "print" ? (V = b.value) == null || V.openPrint() : h.type == "export" && ((f = b.value) == null || f.openExport());
2232
+ const J = ({ menu: g }) => {
2233
+ var C, f;
2234
+ g.type == "print" ? (C = b.value) == null || C.openPrint() : g.type == "export" && ((f = b.value) == null || f.openExport());
2235
+ }, G = (g) => {
2236
+ D = !0;
2237
+ let C = n.columns.splice(g._index.oldIndex, 1)[0];
2238
+ n.columns.splice((g._index.newIndex || 1) - 1, 0, C);
2223
2239
  };
2224
- function q(h) {
2225
- B("ActionClick", h);
2240
+ function Q(g) {
2241
+ B("ActionClick", g);
2226
2242
  }
2227
- function W(...h) {
2228
- B("PageChange", ...h);
2243
+ function X(...g) {
2244
+ B("PageChange", ...g);
2229
2245
  }
2230
- function J(...h) {
2231
- B("Refresh", ...h);
2246
+ function Z(...g) {
2247
+ B("Refresh", ...g);
2232
2248
  }
2233
- function K(...h) {
2234
- B("FilterSearch", ...h);
2249
+ function ee(...g) {
2250
+ B("FilterSearch", ...g);
2235
2251
  }
2236
- function G(...h) {
2237
- B("SortChange", ...h);
2252
+ function te(...g) {
2253
+ B("SortChange", ...g);
2238
2254
  }
2239
- function Q(...h) {
2240
- B("ActionRenderBefore", ...h);
2255
+ function le(...g) {
2256
+ B("ActionRenderBefore", ...g);
2241
2257
  }
2242
- function X(...h) {
2243
- B("FileClick", ...h);
2258
+ function oe(...g) {
2259
+ B("FileClick", ...g);
2244
2260
  }
2245
- function Z(...h) {
2246
- B("RemoteMethod", ...h);
2261
+ function re(...g) {
2262
+ B("RemoteMethod", ...g);
2247
2263
  }
2248
- return (h, V) => (openBlock(), createElementBlock("div", _hoisted_1, [
2264
+ function ae(...g) {
2265
+ B("ChooseBefor", ...g);
2266
+ }
2267
+ return (g, C) => (openBlock(), createElementBlock("div", _hoisted_1, [
2249
2268
  createVNode(unref(VxeGrid), mergeProps({
2250
2269
  class: "grid-table",
2251
2270
  ref_key: "gridRef",
2252
2271
  ref: b
2253
- }, { ...N.value, ...h.$attrs }, { onMenuClick: H }), {
2272
+ }, { ...T.value, ...g.$attrs }, {
2273
+ onMenuClick: J,
2274
+ onColumnDragend: G,
2275
+ "show-overflow": "tooltip",
2276
+ onEditClosed: q
2277
+ }), {
2254
2278
  FilterRows: withCtx(({ column: f }) => [
2255
2279
  createVNode(_sfc_main$r, {
2256
2280
  column: f,
2257
2281
  "grid-ref": b.value,
2258
- onFilterSearch: K,
2259
- onSortChange: G
2282
+ onFilterSearch: ee,
2283
+ onSortChange: te
2260
2284
  }, null, 8, ["column", "grid-ref"])
2261
2285
  ]),
2262
- ActionRender: withCtx(({ row: f, column: _ }) => [
2263
- createVNode(unref(u), {
2286
+ ActionRender: withCtx(({ row: f, column: p }) => [
2287
+ createVNode(unref(i), {
2264
2288
  row: f,
2265
- column: _,
2289
+ column: p,
2266
2290
  "grid-ref": b.value,
2267
- onActionClick: q,
2268
- onActionRenderBefore: Q
2291
+ onActionClick: Q,
2292
+ onActionRenderBefore: le
2269
2293
  }, null, 8, ["row", "column", "grid-ref"])
2270
2294
  ]),
2271
- RadioRender: withCtx(({ row: f, column: _ }) => [
2272
- createVNode(unref(s), {
2295
+ RadioRender: withCtx(({ row: f, column: p }) => [
2296
+ createVNode(unref(d), {
2273
2297
  row: f,
2274
- column: _,
2298
+ column: p,
2275
2299
  "grid-ref": b.value
2276
2300
  }, null, 8, ["row", "column", "grid-ref"])
2277
2301
  ]),
2278
- CheckboxRender: withCtx(({ row: f, column: _ }) => [
2279
- createVNode(unref(c), {
2302
+ CheckboxRender: withCtx(({ row: f, column: p }) => [
2303
+ createVNode(unref(u), {
2280
2304
  row: f,
2281
- column: _,
2305
+ column: p,
2282
2306
  "grid-ref": b.value
2283
2307
  }, null, 8, ["row", "column", "grid-ref"])
2284
2308
  ]),
2285
- ColorPickerRender: withCtx(({ row: f, column: _ }) => [
2309
+ ColorPickerRender: withCtx(({ row: f, column: p }) => [
2286
2310
  createVNode(unref(l), {
2287
2311
  row: f,
2288
- column: _,
2312
+ column: p,
2289
2313
  "grid-ref": b.value
2290
2314
  }, null, 8, ["row", "column", "grid-ref"])
2291
2315
  ]),
2292
- IconPickerRender: withCtx(({ row: f, column: _ }) => [
2316
+ IconPickerRender: withCtx(({ row: f, column: p }) => [
2293
2317
  createVNode(unref(a), {
2294
2318
  row: f,
2295
- column: _,
2319
+ column: p,
2296
2320
  "grid-ref": b.value
2297
2321
  }, null, 8, ["row", "column", "grid-ref"])
2298
2322
  ]),
2299
- ProgressRender: withCtx(({ row: f, column: _ }) => [
2323
+ ProgressRender: withCtx(({ row: f, column: p }) => [
2300
2324
  createVNode(unref(m), {
2301
2325
  row: f,
2302
- column: _,
2326
+ column: p,
2303
2327
  "grid-ref": b.value
2304
2328
  }, null, 8, ["row", "column", "grid-ref"])
2305
2329
  ]),
2306
- SelectRender: withCtx(({ row: f, column: _ }) => [
2307
- createVNode(unref(i), {
2330
+ SelectRender: withCtx(({ row: f, column: p }) => [
2331
+ createVNode(unref(s), {
2308
2332
  row: f,
2309
- column: _,
2333
+ column: p,
2310
2334
  "grid-ref": b.value
2311
2335
  }, null, 8, ["row", "column", "grid-ref"])
2312
2336
  ]),
2313
- SelectMultipleRender: withCtx(({ row: f, column: _ }) => [
2314
- createVNode(unref(p), {
2337
+ SelectMultipleRender: withCtx(({ row: f, column: p }) => [
2338
+ createVNode(unref(_), {
2315
2339
  row: f,
2316
- column: _,
2340
+ column: p,
2317
2341
  "grid-ref": b.value
2318
2342
  }, null, 8, ["row", "column", "grid-ref"])
2319
2343
  ]),
2320
- TreeSelectRender: withCtx(({ row: f, column: _ }) => [
2321
- createVNode(unref(d), {
2344
+ TreeSelectRender: withCtx(({ row: f, column: p }) => [
2345
+ createVNode(unref(c), {
2322
2346
  row: f,
2323
- column: _,
2347
+ column: p,
2324
2348
  "grid-ref": b.value
2325
2349
  }, null, 8, ["row", "column", "grid-ref"])
2326
2350
  ]),
2327
- TreeMultipleSelectRender: withCtx(({ row: f, column: _ }) => [
2328
- createVNode(unref(v), {
2351
+ TreeMultipleSelectRender: withCtx(({ row: f, column: p }) => [
2352
+ createVNode(unref(h), {
2329
2353
  row: f,
2330
- column: _,
2354
+ column: p,
2331
2355
  "grid-ref": b.value
2332
2356
  }, null, 8, ["row", "column", "grid-ref"])
2333
2357
  ]),
2334
- ChooseFrameRender: withCtx(({ row: f, column: _ }) => [
2335
- createVNode(unref(g), {
2358
+ ChooseFrameRender: withCtx(({ row: f, column: p }) => [
2359
+ createVNode(unref(v), {
2336
2360
  row: f,
2337
- column: _,
2338
- "grid-ref": b.value
2361
+ column: p,
2362
+ "grid-ref": o.gridRef,
2363
+ onOnChooseBeforClick: ae
2339
2364
  }, null, 8, ["row", "column", "grid-ref"])
2340
2365
  ]),
2341
- PickPeopleRender: withCtx(({ row: f, column: _ }) => [
2366
+ PickPeopleRender: withCtx(({ row: f, column: p }) => [
2342
2367
  createVNode(unref(w), {
2343
2368
  row: f,
2344
- column: _,
2369
+ column: p,
2345
2370
  "grid-ref": b.value,
2346
- onChange: L
2371
+ onChange: K
2347
2372
  }, null, 8, ["row", "column", "grid-ref"])
2348
2373
  ]),
2349
- FileRender: withCtx(({ row: f, column: _ }) => [
2374
+ FileRender: withCtx(({ row: f, column: p }) => [
2350
2375
  createVNode(unref(y), {
2351
2376
  row: f,
2352
- column: _,
2377
+ column: p,
2353
2378
  "grid-ref": b.value,
2354
- onFileClick: X
2379
+ onFileClick: oe
2355
2380
  }, null, 8, ["row", "column", "grid-ref"])
2356
2381
  ]),
2357
- CustomRender: withCtx(({ row: f, column: _ }) => [
2382
+ CustomRender: withCtx(({ row: f, column: p }) => [
2358
2383
  createVNode(unref(k), {
2359
2384
  row: f,
2360
- column: _,
2385
+ column: p,
2361
2386
  "grid-ref": b.value
2362
2387
  }, null, 8, ["row", "column", "grid-ref"])
2363
2388
  ]),
2364
- DatePickerRender: withCtx(({ row: f, column: _ }) => [
2365
- createVNode(unref(x), {
2389
+ DatePickerRender: withCtx(({ row: f, column: p }) => [
2390
+ createVNode(unref(V), {
2366
2391
  row: f,
2367
- column: _,
2392
+ column: p,
2368
2393
  "grid-ref": b.value
2369
2394
  }, null, 8, ["row", "column", "grid-ref"])
2370
2395
  ]),
2371
- LabelRender: withCtx(({ row: f, column: _ }) => [
2396
+ LabelRender: withCtx(({ row: f, column: p }) => [
2372
2397
  createVNode(unref(j), {
2373
2398
  row: f,
2374
- column: _,
2399
+ column: p,
2375
2400
  "grid-ref": b.value
2376
2401
  }, null, 8, ["row", "column", "grid-ref"])
2377
2402
  ]),
2378
- InputEditor: withCtx(({ row: f, column: _ }) => [
2379
- createVNode(unref(C), {
2403
+ InputEditor: withCtx(({ row: f, column: p }) => [
2404
+ createVNode(unref(x), {
2380
2405
  row: f,
2381
- column: _,
2406
+ column: p,
2382
2407
  "grid-ref": b.value
2383
2408
  }, null, 8, ["row", "column", "grid-ref"])
2384
2409
  ]),
2385
- TextareaEditor: withCtx(({ row: f, column: _ }) => [
2410
+ TextareaEditor: withCtx(({ row: f, column: p }) => [
2386
2411
  createVNode(unref(O), {
2387
2412
  row: f,
2388
- column: _,
2413
+ column: p,
2389
2414
  "grid-ref": b.value
2390
2415
  }, null, 8, ["row", "column", "grid-ref"])
2391
2416
  ]),
2392
- SelectEditor: withCtx(({ row: f, column: _ }) => [
2393
- createVNode(unref(R), {
2417
+ SelectEditor: withCtx(({ row: f, column: p }) => [
2418
+ createVNode(unref(N), {
2394
2419
  row: f,
2395
- column: _,
2420
+ column: p,
2396
2421
  "grid-ref": b.value
2397
2422
  }, null, 8, ["row", "column", "grid-ref"])
2398
2423
  ]),
2399
- SelectMultipleEditor: withCtx(({ row: f, column: _ }) => [
2400
- createVNode(unref(M), {
2424
+ SelectMultipleEditor: withCtx(({ row: f, column: p }) => [
2425
+ createVNode(unref(z), {
2401
2426
  row: f,
2402
- column: _,
2427
+ column: p,
2403
2428
  "grid-ref": b.value
2404
2429
  }, null, 8, ["row", "column", "grid-ref"])
2405
2430
  ]),
2406
- TreeSelectEditor: withCtx(({ row: f, column: _ }) => [
2407
- createVNode(unref(E), {
2431
+ TreeSelectEditor: withCtx(({ row: f, column: p }) => [
2432
+ createVNode(unref($), {
2408
2433
  row: f,
2409
- column: _,
2434
+ column: p,
2410
2435
  "grid-ref": b.value
2411
2436
  }, null, 8, ["row", "column", "grid-ref"])
2412
2437
  ]),
2413
- TreeMultipleSelectEditor: withCtx(({ row: f, column: _ }) => [
2414
- createVNode(unref(I), {
2438
+ TreeMultipleSelectEditor: withCtx(({ row: f, column: p }) => [
2439
+ createVNode(unref(A), {
2415
2440
  row: f,
2416
- column: _,
2441
+ column: p,
2417
2442
  "grid-ref": b.value
2418
2443
  }, null, 8, ["row", "column", "grid-ref"])
2419
2444
  ]),
2420
- DatePickerEditor: withCtx(({ row: f, column: _ }) => [
2421
- createVNode(unref(T), {
2445
+ DatePickerEditor: withCtx(({ row: f, column: p }) => [
2446
+ createVNode(unref(I), {
2422
2447
  row: f,
2423
- column: _,
2448
+ column: p,
2424
2449
  "grid-ref": b.value
2425
2450
  }, null, 8, ["row", "column", "grid-ref"])
2426
2451
  ]),
2427
- InputNumberEditor: withCtx(({ row: f, column: _ }) => [
2428
- createVNode(unref(z), {
2452
+ InputNumberEditor: withCtx(({ row: f, column: p }) => [
2453
+ createVNode(unref(U), {
2429
2454
  row: f,
2430
- column: _,
2455
+ column: p,
2431
2456
  "grid-ref": b.value
2432
2457
  }, null, 8, ["row", "column", "grid-ref"])
2433
2458
  ]),
2434
- SelectRemoteEditor: withCtx(({ row: f, column: _ }) => [
2435
- createVNode(unref(A), {
2459
+ SelectRemoteEditor: withCtx(({ row: f, column: p }) => [
2460
+ createVNode(unref(L), {
2436
2461
  row: f,
2437
- column: _,
2462
+ column: p,
2438
2463
  "grid-ref": b.value,
2439
- onRemoteMethod: Z
2464
+ onRemoteMethod: re
2440
2465
  }, null, 8, ["row", "column", "grid-ref"])
2441
2466
  ]),
2442
2467
  pager: withCtx(() => [
2443
2468
  createVNode(_sfc_main$1, {
2444
2469
  pagination: r.pagination,
2445
- gridOptions: N.value,
2446
- onPageChange: W,
2447
- onRefresh: J
2470
+ gridOptions: T.value,
2471
+ onPageChange: X,
2472
+ onRefresh: Z
2448
2473
  }, null, 8, ["pagination", "gridOptions"])
2449
2474
  ]),
2450
2475
  _: 1
2451
2476
  }, 16)
2452
2477
  ]));
2453
2478
  }
2454
- }), Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d15b6949"]]);
2479
+ }), Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d6b12b09"]]);
2455
2480
  VxeUI.setConfig({
2456
2481
  size: "small",
2457
2482
  table: {