@ys-knife-crud/element-plus 0.0.5 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as le, toRef as me, computed as N, resolveComponent as C, openBlock as n, createElementBlock as k, Fragment as G, createVNode as f, isRef as $e, unref as u, withCtx as o, createElementVNode as m, renderList as oe, createBlock as x, createTextVNode as M, toDisplayString as T, createCommentVNode as z, resolveDynamicComponent as Qe, normalizeClass as Se, renderSlot as ee, Teleport as At, withModifiers as ct, normalizeStyle as nt, ref as E, onMounted as Ve, watch as ce, useSlots as Pt, onBeforeUnmount as Ye, createSlots as Be, Transition as zt, resolveDirective as pt, withDirectives as Xe, mergeProps as Ze, inject as mt, provide as ft, withKeys as Ge, nextTick as je, shallowRef as Bt, normalizeProps as Ie, guardReactiveProps as Te, createStaticVNode as ot, h as ge, isVNode as Dt, render as at } from "vue";
1
+ import { defineComponent as le, toRef as me, computed as O, resolveComponent as C, openBlock as n, createElementBlock as k, Fragment as j, createVNode as f, isRef as $e, unref as u, withCtx as o, createElementVNode as m, renderList as oe, createBlock as x, createTextVNode as M, toDisplayString as Q, createCommentVNode as z, resolveDynamicComponent as Qe, normalizeClass as Se, renderSlot as ee, Teleport as At, withModifiers as ct, normalizeStyle as nt, ref as E, onMounted as Ve, watch as ce, useSlots as Pt, onBeforeUnmount as Ye, createSlots as Be, Transition as zt, resolveDirective as pt, withDirectives as Xe, mergeProps as Ze, inject as mt, provide as ft, withKeys as Ge, nextTick as je, shallowRef as Bt, normalizeProps as Ie, guardReactiveProps as Te, createStaticVNode as ot, h as ge, isVNode as Dt, render as at } from "vue";
2
2
  import { useExportExcel as Et, useCustomConfig as It, visibleActions as et, isEnabled as vt, useDefault as Tt, useSelection as yt, useRowActions as Qt, filterNodesByKeyword as Yt, collectGroupKeys as Nt, useMainPanelNodes as Ot, useMainPanelTabs as qt, findNode as st, isGroupNode as it, useAdvancedFilter as gt, useFilterPanel as Lt, FilterPanelKey as kt, useTextFilterItem as Ut, useDateFilterItem as Kt, useDateRangeFilterItem as Ht, useEnumFilterItem as jt, useImportExcel as Gt, getDefaultModalAppContext as Wt, setDefaultModalAppContext as Jt } from "@ys-knife-crud/vue";
3
3
  import { ElMessage as ye, ElMessageBox as _t, ElDialog as Xt, ElButton as Zt } from "element-plus";
4
4
  import { isConditionGroup as tt, OPERATOR_LABELS as el, isNullOperator as tl, emptyFilter as lt } from "@ys-knife-crud/core";
@@ -19,7 +19,7 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
19
19
  hasMorePage: { type: Boolean },
20
20
  pageScopeLabel: {}
21
21
  },
22
- setup(e, { expose: v }) {
22
+ setup(e, { expose: y }) {
23
23
  const l = e, {
24
24
  exportOptions: t,
25
25
  exportDialogVisible: a,
@@ -31,11 +31,11 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
31
31
  exportPercent: V,
32
32
  exportCancelledVisible: B,
33
33
  exportCancelledRows: U,
34
- onExportClick: A,
34
+ onExportClick: R,
35
35
  doExport: b,
36
36
  cancelExport: _,
37
37
  keepPartialExport: q,
38
- discardPartialExport: Y
38
+ discardPartialExport: N
39
39
  } = Et({
40
40
  props: l,
41
41
  // reactive — dataFun/exportSelected/exportorFunc 自动追踪
@@ -47,33 +47,33 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
47
47
  exportPageSize: me(l, "exportPageSize"),
48
48
  hasMorePage: me(l, "hasMorePage"),
49
49
  pageScopeLabel: me(l, "pageScopeLabel")
50
- }), K = N(() => {
51
- const j = h.value;
52
- if (j == null) return null;
53
- if (j < 60) return `${j} 秒`;
54
- const i = Math.floor(j / 60), y = j % 60;
55
- return y > 0 ? `${i} 分 ${y} 秒` : `${i} 分`;
50
+ }), J = O(() => {
51
+ const K = h.value;
52
+ if (K == null) return null;
53
+ if (K < 60) return `${K} 秒`;
54
+ const i = Math.floor(K / 60), v = K % 60;
55
+ return v > 0 ? `${i} 分 ${v} 秒` : `${i} 分`;
56
56
  });
57
- return v({ openExportDialog: A }), (j, i) => {
58
- const y = C("el-button"), R = C("el-dialog"), O = C("el-progress");
59
- return n(), k(G, null, [
60
- f(R, {
57
+ return y({ openExportDialog: R }), (K, i) => {
58
+ const v = C("el-button"), A = C("el-dialog"), I = C("el-progress");
59
+ return n(), k(j, null, [
60
+ f(A, {
61
61
  modelValue: u(a),
62
- "onUpdate:modelValue": i[0] || (i[0] = (Q) => $e(a) ? a.value = Q : null),
62
+ "onUpdate:modelValue": i[0] || (i[0] = (Y) => $e(a) ? a.value = Y : null),
63
63
  title: "导出 Excel",
64
64
  width: "420px"
65
65
  }, {
66
66
  default: o(() => [
67
67
  m("div", ll, [
68
- (n(!0), k(G, null, oe(u(t), (Q) => (n(), x(y, {
69
- key: Q.value,
68
+ (n(!0), k(j, null, oe(u(t), (Y) => (n(), x(v, {
69
+ key: Y.value,
70
70
  class: "export-option",
71
- "data-scope": Q.value,
72
- disabled: Q.disabled,
73
- onClick: (re) => u(b)(Q.value)
71
+ "data-scope": Y.value,
72
+ disabled: Y.disabled,
73
+ onClick: (re) => u(b)(Y.value)
74
74
  }, {
75
75
  default: o(() => [
76
- M(T(Q.label), 1)
76
+ M(Q(Y.label), 1)
77
77
  ]),
78
78
  _: 2
79
79
  }, 1032, ["data-scope", "disabled", "onClick"]))), 128))
@@ -81,16 +81,16 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
81
81
  ]),
82
82
  _: 1
83
83
  }, 8, ["modelValue"]),
84
- f(R, {
84
+ f(A, {
85
85
  modelValue: u(c),
86
- "onUpdate:modelValue": i[1] || (i[1] = (Q) => $e(c) ? c.value = Q : null),
86
+ "onUpdate:modelValue": i[1] || (i[1] = (Y) => $e(c) ? c.value = Y : null),
87
87
  title: "正在导出",
88
88
  width: "420px",
89
89
  "close-on-click-modal": !1,
90
90
  "show-close": !1
91
91
  }, {
92
92
  footer: o(() => [
93
- f(y, {
93
+ f(v, {
94
94
  class: "export-cancel",
95
95
  onClick: u(_)
96
96
  }, {
@@ -101,37 +101,37 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
101
101
  }, 8, ["onClick"])
102
102
  ]),
103
103
  default: o(() => [
104
- f(O, { percentage: u(V) }, null, 8, ["percentage"]),
104
+ f(I, { percentage: u(V) }, null, 8, ["percentage"]),
105
105
  m("p", nl, [
106
- M(" 已加载 " + T(u(s)), 1),
107
- u(d) ? (n(), k(G, { key: 0 }, [
108
- M(" / " + T(u(S)), 1)
106
+ M(" 已加载 " + Q(u(s)), 1),
107
+ u(d) ? (n(), k(j, { key: 0 }, [
108
+ M(" / " + Q(u(S)), 1)
109
109
  ], 64)) : z("", !0),
110
110
  i[3] || (i[3] = M(" 条", -1)),
111
- K.value ? (n(), k(G, { key: 1 }, [
112
- M(",预计剩余约 " + T(K.value), 1)
111
+ J.value ? (n(), k(j, { key: 1 }, [
112
+ M(",预计剩余约 " + Q(J.value), 1)
113
113
  ], 64)) : z("", !0)
114
114
  ])
115
115
  ]),
116
116
  _: 1
117
117
  }, 8, ["modelValue"]),
118
- f(R, {
118
+ f(A, {
119
119
  modelValue: u(B),
120
- "onUpdate:modelValue": i[2] || (i[2] = (Q) => $e(B) ? B.value = Q : null),
120
+ "onUpdate:modelValue": i[2] || (i[2] = (Y) => $e(B) ? B.value = Y : null),
121
121
  title: "导出已取消",
122
122
  width: "420px"
123
123
  }, {
124
124
  footer: o(() => [
125
- f(y, {
125
+ f(v, {
126
126
  class: "export-discard",
127
- onClick: u(Y)
127
+ onClick: u(N)
128
128
  }, {
129
129
  default: o(() => [...i[5] || (i[5] = [
130
130
  M("丢弃", -1)
131
131
  ])]),
132
132
  _: 1
133
133
  }, 8, ["onClick"]),
134
- f(y, {
134
+ f(v, {
135
135
  class: "export-keep",
136
136
  type: "primary",
137
137
  onClick: u(q)
@@ -143,16 +143,16 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
143
143
  }, 8, ["onClick"])
144
144
  ]),
145
145
  default: o(() => [
146
- m("p", ol, " 已写入 " + T(u(U)) + " 条数据,是否保留已导出的部分文件? ", 1)
146
+ m("p", ol, " 已写入 " + Q(u(U)) + " 条数据,是否保留已导出的部分文件? ", 1)
147
147
  ]),
148
148
  _: 1
149
149
  }, 8, ["modelValue"])
150
150
  ], 64);
151
151
  };
152
152
  }
153
- }), ie = (e, v) => {
153
+ }), ie = (e, y) => {
154
154
  const l = e.__vccOpts || e;
155
- for (const [t, a] of v)
155
+ for (const [t, a] of y)
156
156
  l[t] = a;
157
157
  return l;
158
158
  }, bt = /* @__PURE__ */ ie(al, [["__scopeId", "data-v-23d35985"]]), sl = /* @__PURE__ */ le({
@@ -165,7 +165,7 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
165
165
  /** 列元数据(候选列取 meta 中 showForDisplay=true 的列) */
166
166
  meta: { type: Object, default: null }
167
167
  },
168
- setup(e, { expose: v }) {
168
+ setup(e, { expose: y }) {
169
169
  const l = e, t = {
170
170
  get loadCustomConfigFun() {
171
171
  return l.loadCustomConfigFun;
@@ -185,11 +185,11 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
185
185
  updateDefaultPageSize: V,
186
186
  updateColumnWidth: B,
187
187
  openConfigDialog: U,
188
- moveDraft: A,
188
+ moveDraft: R,
189
189
  resetDraft: b,
190
190
  saveConfigDialog: _
191
191
  } = It(t, me(l, "meta"));
192
- return v({
192
+ return y({
193
193
  // 字段
194
194
  columns: a,
195
195
  defaultPageSize: s,
@@ -199,25 +199,25 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
199
199
  updateColumnWidth: B,
200
200
  loadCustomConfigs: h,
201
201
  openDialog: U
202
- }), (q, Y) => {
203
- const K = C("el-checkbox"), j = C("el-input"), i = C("el-button"), y = C("el-dialog");
204
- return n(), x(y, {
202
+ }), (q, N) => {
203
+ const J = C("el-checkbox"), K = C("el-input"), i = C("el-button"), v = C("el-dialog");
204
+ return n(), x(v, {
205
205
  modelValue: u(S),
206
- "onUpdate:modelValue": Y[1] || (Y[1] = (R) => $e(S) ? S.value = R : null),
206
+ "onUpdate:modelValue": N[1] || (N[1] = (A) => $e(S) ? S.value = A : null),
207
207
  title: "列设置",
208
208
  width: "480px"
209
209
  }, {
210
210
  footer: o(() => [
211
211
  f(i, { onClick: u(b) }, {
212
- default: o(() => [...Y[4] || (Y[4] = [
212
+ default: o(() => [...N[4] || (N[4] = [
213
213
  M("重置", -1)
214
214
  ])]),
215
215
  _: 1
216
216
  }, 8, ["onClick"]),
217
217
  f(i, {
218
- onClick: Y[0] || (Y[0] = (R) => S.value = !1)
218
+ onClick: N[0] || (N[0] = (A) => S.value = !1)
219
219
  }, {
220
- default: o(() => [...Y[5] || (Y[5] = [
220
+ default: o(() => [...N[5] || (N[5] = [
221
221
  M("取消", -1)
222
222
  ])]),
223
223
  _: 1
@@ -227,30 +227,30 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
227
227
  class: "col-config-save",
228
228
  onClick: u(_)
229
229
  }, {
230
- default: o(() => [...Y[6] || (Y[6] = [
230
+ default: o(() => [...N[6] || (N[6] = [
231
231
  M("保存", -1)
232
232
  ])]),
233
233
  _: 1
234
234
  }, 8, ["onClick"])
235
235
  ]),
236
236
  default: o(() => [
237
- (n(!0), k(G, null, oe(u(d), (R, O) => (n(), k("div", {
238
- key: R.propertyPath,
237
+ (n(!0), k(j, null, oe(u(d), (A, I) => (n(), k("div", {
238
+ key: A.propertyPath,
239
239
  class: "col-config-row"
240
240
  }, [
241
- f(K, {
242
- modelValue: R.visible,
243
- "onUpdate:modelValue": (Q) => R.visible = Q,
241
+ f(J, {
242
+ modelValue: A.visible,
243
+ "onUpdate:modelValue": (Y) => A.visible = Y,
244
244
  class: "col-config-name"
245
245
  }, {
246
246
  default: o(() => [
247
- M(T(R.displayName), 1)
247
+ M(Q(A.displayName), 1)
248
248
  ]),
249
249
  _: 2
250
250
  }, 1032, ["modelValue", "onUpdate:modelValue"]),
251
- f(j, {
252
- modelValue: R.width,
253
- "onUpdate:modelValue": (Q) => R.width = Q,
251
+ f(K, {
252
+ modelValue: A.width,
253
+ "onUpdate:modelValue": (Y) => A.width = Y,
254
254
  class: "col-config-width",
255
255
  placeholder: "宽度(如 120)",
256
256
  size: "small"
@@ -258,10 +258,10 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
258
258
  f(i, {
259
259
  link: "",
260
260
  type: "primary",
261
- disabled: O === 0,
262
- onClick: (Q) => u(A)(O, -1)
261
+ disabled: I === 0,
262
+ onClick: (Y) => u(R)(I, -1)
263
263
  }, {
264
- default: o(() => [...Y[2] || (Y[2] = [
264
+ default: o(() => [...N[2] || (N[2] = [
265
265
  M("上移", -1)
266
266
  ])]),
267
267
  _: 1
@@ -269,10 +269,10 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
269
269
  f(i, {
270
270
  link: "",
271
271
  type: "primary",
272
- disabled: O === u(d).length - 1,
273
- onClick: (Q) => u(A)(O, 1)
272
+ disabled: I === u(d).length - 1,
273
+ onClick: (Y) => u(R)(I, 1)
274
274
  }, {
275
- default: o(() => [...Y[3] || (Y[3] = [
275
+ default: o(() => [...N[3] || (N[3] = [
276
276
  M(" 下移 ", -1)
277
277
  ])]),
278
278
  _: 1
@@ -294,32 +294,32 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
294
294
  resizable: { type: Boolean, default: !0 }
295
295
  },
296
296
  setup(e) {
297
- const v = e, l = N(
298
- () => v.actions.length === 0 ? void 0 : v.actions.length * 34 + (v.actions.length - 1) * 12 + 30
297
+ const y = e, l = O(
298
+ () => y.actions.length === 0 ? void 0 : y.actions.length * 34 + (y.actions.length - 1) * 12 + 30
299
299
  );
300
300
  return (t, a) => {
301
301
  const c = C("el-button"), s = C("el-table-column");
302
- return v.actions.length > 0 ? (n(), x(s, {
302
+ return y.actions.length > 0 ? (n(), x(s, {
303
303
  key: 0,
304
304
  label: "操作",
305
305
  fixed: "right",
306
306
  "min-width": l.value,
307
- resizable: v.resizable
307
+ resizable: y.resizable
308
308
  }, {
309
309
  default: o(({ row: S }) => [
310
- (n(!0), k(G, null, oe(u(et)(v.actions, S), (d) => (n(), x(c, {
310
+ (n(!0), k(j, null, oe(u(et)(y.actions, S), (d) => (n(), x(c, {
311
311
  key: d.name,
312
312
  link: "",
313
313
  type: d.type ?? "primary",
314
314
  disabled: !u(vt)(d, S),
315
- onClick: (h) => d.execute(S, v.table)
315
+ onClick: (h) => d.execute(S, y.table)
316
316
  }, {
317
317
  default: o(() => [
318
318
  d.icon ? (n(), x(Qe(d.icon), {
319
319
  key: 0,
320
320
  class: "yk-row-action__icon"
321
321
  })) : z("", !0),
322
- M(" " + T(d.desc), 1)
322
+ M(" " + Q(d.desc), 1)
323
323
  ]),
324
324
  _: 2
325
325
  }, 1032, ["type", "disabled", "onClick"]))), 128))
@@ -339,12 +339,12 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
339
339
  isSelected: { type: Function }
340
340
  },
341
341
  emits: ["check", "contextmenu"],
342
- setup(e, { emit: v }) {
343
- const l = e, t = v;
342
+ setup(e, { emit: y }) {
343
+ const l = e, t = y;
344
344
  return (a, c) => {
345
345
  const s = C("el-checkbox"), S = C("el-empty");
346
346
  return n(), k("div", dl, [
347
- (n(!0), k(G, null, oe(l.rows, (d, h) => (n(), k("div", {
347
+ (n(!0), k(j, null, oe(l.rows, (d, h) => (n(), k("div", {
348
348
  key: String(d[l.rowKey]),
349
349
  class: Se(["yk-table__card", {
350
350
  "is-selected": l.showCheckbox && l.isSelected(d),
@@ -363,10 +363,10 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
363
363
  row: d,
364
364
  index: h
365
365
  }, () => [
366
- m("pre", pl, T(JSON.stringify(d, null, 2)), 1)
366
+ m("pre", pl, Q(JSON.stringify(d, null, 2)), 1)
367
367
  ], !0)
368
368
  ], 42, cl))), 128)),
369
- !l.loading && l.rows.length === 0 ? (n(), k(G, { key: 0 }, [
369
+ !l.loading && l.rows.length === 0 ? (n(), k(j, { key: 0 }, [
370
370
  a.$slots.empty ? ee(a.$slots, "empty", {}, void 0, !0, 0) : (n(), x(S, {
371
371
  key: 1,
372
372
  description: "暂无数据"
@@ -386,12 +386,12 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
386
386
  isSelected: { type: Function }
387
387
  },
388
388
  emits: ["check", "contextmenu"],
389
- setup(e, { emit: v }) {
390
- const l = e, t = v;
389
+ setup(e, { emit: y }) {
390
+ const l = e, t = y;
391
391
  return (a, c) => {
392
392
  const s = C("el-checkbox"), S = C("el-empty");
393
393
  return n(), k("div", vl, [
394
- (n(!0), k(G, null, oe(l.rows, (d, h) => (n(), k("div", {
394
+ (n(!0), k(j, null, oe(l.rows, (d, h) => (n(), k("div", {
395
395
  key: String(d[l.rowKey]),
396
396
  class: Se(["yk-table__list-item", {
397
397
  "is-selected": l.showCheckbox && l.isSelected(d),
@@ -411,11 +411,11 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
411
411
  row: d,
412
412
  index: h
413
413
  }, () => [
414
- m("pre", kl, T(JSON.stringify(d, null, 2)), 1)
414
+ m("pre", kl, Q(JSON.stringify(d, null, 2)), 1)
415
415
  ], !0)
416
416
  ])
417
417
  ], 42, yl))), 128)),
418
- !l.loading && l.rows.length === 0 ? (n(), k(G, { key: 0 }, [
418
+ !l.loading && l.rows.length === 0 ? (n(), k(j, { key: 0 }, [
419
419
  a.$slots.empty ? ee(a.$slots, "empty", {}, void 0, !0, 0) : (n(), x(S, {
420
420
  key: 1,
421
421
  description: "暂无数据"
@@ -432,10 +432,10 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
432
432
  isEnabled: { type: Function }
433
433
  },
434
434
  emits: ["close", "select"],
435
- setup(e, { emit: v }) {
436
- const l = e, t = v;
435
+ setup(e, { emit: y }) {
436
+ const l = e, t = y;
437
437
  return (a, c) => (n(), x(At, { to: "body" }, [
438
- l.menu ? (n(), k(G, { key: 0 }, [
438
+ l.menu ? (n(), k(j, { key: 0 }, [
439
439
  m("div", {
440
440
  class: "yk-table__menu-mask",
441
441
  onClick: c[0] || (c[0] = (s) => t("close")),
@@ -445,7 +445,7 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
445
445
  class: "yk-table__context-menu",
446
446
  style: nt({ left: `${l.menu.x}px`, top: `${l.menu.y}px` })
447
447
  }, [
448
- (n(!0), k(G, null, oe(l.actions, (s) => (n(), k("li", {
448
+ (n(!0), k(j, null, oe(l.actions, (s) => (n(), k("li", {
449
449
  key: s.name,
450
450
  class: Se(["yk-table__context-menu-item", { "is-disabled": !l.isEnabled(s, l.menu.row) }]),
451
451
  onClick: (S) => l.isEnabled(s, l.menu.row) && t("select", s)
@@ -454,7 +454,7 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
454
454
  key: 0,
455
455
  class: "yk-table__context-menu-icon"
456
456
  })) : z("", !0),
457
- M(" " + T(s.desc), 1)
457
+ M(" " + Q(s.desc), 1)
458
458
  ], 10, hl))), 128))
459
459
  ], 4)
460
460
  ], 64)) : z("", !0)
@@ -517,7 +517,7 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
517
517
  viewMode: { type: String, default: "table" }
518
518
  },
519
519
  emits: ["data-loaded", "update:viewMode", "update:showCheckbox", "update:columnResizable", "update:stickyHeader"],
520
- setup(e, { expose: v, emit: l }) {
520
+ setup(e, { expose: y, emit: l }) {
521
521
  const t = e, a = l, {
522
522
  meta: c,
523
523
  paged: s,
@@ -527,31 +527,31 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
527
527
  currentPage: V,
528
528
  total: B,
529
529
  totalKnown: U,
530
- loadMeta: A
530
+ loadMeta: R
531
531
  } = Tt(t), b = E(null), {
532
532
  selectedRows: _,
533
533
  onSelectionChange: q,
534
- isRowSelected: Y,
535
- toggleRowSelection: K,
536
- restoreSelection: j,
534
+ isRowSelected: N,
535
+ toggleRowSelection: J,
536
+ restoreSelection: K,
537
537
  clearSelection: i,
538
- selectAllOnPage: y,
539
- invertSelectionOnPage: R
540
- } = yt({ tableEl: b, rows: S, rowKey: me(t, "rowKey") }), O = {
538
+ selectAllOnPage: v,
539
+ invertSelectionOnPage: A
540
+ } = yt({ tableEl: b, rows: S, rowKey: me(t, "rowKey") }), I = {
541
541
  get rowActionsFunc() {
542
542
  return t.rowActionsFunc;
543
543
  }
544
- }, { actions: Q, actionsLoading: re, loadActions: ue } = Qt(O), X = E(null), w = N(() => {
544
+ }, { actions: Y, actionsLoading: re, loadActions: ue } = Qt(I), X = E(null), w = O(() => {
545
545
  var r;
546
546
  return ((r = X.value) == null ? void 0 : r.columns) ?? [];
547
- }), p = N(() => {
547
+ }), p = O(() => {
548
548
  var r;
549
549
  return ((r = X.value) == null ? void 0 : r.defaultPageSize) ?? t.pageSize;
550
- }), H = N(() => {
550
+ }), H = O(() => {
551
551
  var r;
552
552
  return ((r = X.value) == null ? void 0 : r.customConfigLoading) ?? !1;
553
553
  }), se = E(null);
554
- async function I(r) {
554
+ async function T(r) {
555
555
  h.value = !0;
556
556
  try {
557
557
  const te = (V.value - 1) * p.value, de = await t.dataFun({ limit: p.value, offset: te }, r);
@@ -560,19 +560,19 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
560
560
  h.value = !1;
561
561
  }
562
562
  }
563
- const $ = N(() => {
563
+ const $ = O(() => {
564
564
  var te;
565
565
  const r = Math.min(p.value, ...t.pageSizes);
566
566
  return B.value > r || (((te = s.value) == null ? void 0 : te.hasNext) ?? !1);
567
- }), F = N(
567
+ }), F = O(
568
568
  () => d.value || h.value || re.value || H.value
569
569
  );
570
570
  function D(r) {
571
- V.value = r, I();
571
+ V.value = r, T();
572
572
  }
573
- function J(r) {
573
+ function W(r) {
574
574
  var te;
575
- (te = X.value) == null || te.updateDefaultPageSize(r), V.value = 1, I();
575
+ (te = X.value) == null || te.updateDefaultPageSize(r), V.value = 1, T();
576
576
  }
577
577
  function L(r, te, de) {
578
578
  var be;
@@ -581,37 +581,37 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
581
581
  async function Z() {
582
582
  var r;
583
583
  await Promise.all([
584
- A(),
584
+ R(),
585
585
  ue(),
586
586
  (r = X.value) == null ? void 0 : r.loadCustomConfigs()
587
- ]), V.value = 1, I();
587
+ ]), V.value = 1, T();
588
588
  }
589
589
  function ve() {
590
- I();
590
+ T();
591
591
  }
592
592
  Ve(Z), ce(() => t.pageSize, (r) => {
593
- J(r);
593
+ W(r);
594
594
  }), ce(() => t.dataFun, () => {
595
- V.value = 1, I();
595
+ V.value = 1, T();
596
596
  });
597
597
  const _e = E(t.viewMode);
598
598
  ce(() => t.viewMode, (r) => {
599
599
  _e.value = r;
600
600
  });
601
- const fe = N({
601
+ const fe = O({
602
602
  get: () => _e.value,
603
603
  set: (r) => {
604
604
  _e.value = r, a("update:viewMode", r);
605
605
  }
606
606
  });
607
607
  ce(fe, (r) => {
608
- r === "table" && j();
608
+ r === "table" && K();
609
609
  });
610
610
  const we = E(t.showCheckbox);
611
611
  ce(() => t.showCheckbox, (r) => {
612
612
  we.value = r;
613
613
  });
614
- const xe = N({
614
+ const xe = O({
615
615
  get: () => we.value,
616
616
  set: (r) => {
617
617
  we.value = r, a("update:showCheckbox", r), r || i();
@@ -627,7 +627,7 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
627
627
  ce(() => t.columnResizable, (r) => {
628
628
  Re.value = r;
629
629
  });
630
- const Me = N({
630
+ const Me = O({
631
631
  get: () => Re.value,
632
632
  set: (r) => {
633
633
  Re.value = r, a("update:columnResizable", r);
@@ -640,7 +640,7 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
640
640
  ce(() => t.stickyHeader, (r) => {
641
641
  De.value = r;
642
642
  });
643
- const Ae = N({
643
+ const Ae = O({
644
644
  get: () => De.value,
645
645
  set: (r) => {
646
646
  De.value = r, a("update:stickyHeader", r);
@@ -649,7 +649,7 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
649
649
  function Le(r) {
650
650
  Ae.value = r;
651
651
  }
652
- const Ue = Pt(), Ke = N(
652
+ const Ue = Pt(), Ke = O(
653
653
  () => Object.keys(Ue).filter((r) => r !== "_" && typeof Ue[r] == "function")
654
654
  );
655
655
  function Ee() {
@@ -661,13 +661,13 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
661
661
  (r = se.value) == null || r.openExportDialog();
662
662
  }
663
663
  function ze(r, te) {
664
- K(r, !!te);
664
+ J(r, !!te);
665
665
  }
666
- const ke = E(null), We = N(
667
- () => ke.value ? et(Q.value, ke.value.row) : []
666
+ const ke = E(null), We = O(
667
+ () => ke.value ? et(Y.value, ke.value.row) : []
668
668
  );
669
669
  function He(r, te) {
670
- if (Q.value.length === 0) return;
670
+ if (Y.value.length === 0) return;
671
671
  r.preventDefault();
672
672
  const de = 176, ne = Je(te) * 34 + 8;
673
673
  ke.value = {
@@ -677,7 +677,7 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
677
677
  };
678
678
  }
679
679
  function Je(r) {
680
- return et(Q.value, r).length;
680
+ return et(Y.value, r).length;
681
681
  }
682
682
  function g(r) {
683
683
  var de;
@@ -687,7 +687,7 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
687
687
  function P(r) {
688
688
  r.key === "Escape" && (ke.value = null);
689
689
  }
690
- Ve(() => window.addEventListener("keydown", P)), Ye(() => window.removeEventListener("keydown", P)), v({
690
+ Ve(() => window.addEventListener("keydown", P)), Ye(() => window.removeEventListener("keydown", P)), y({
691
691
  meta: c,
692
692
  paged: s,
693
693
  currentPage: V,
@@ -705,8 +705,8 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
705
705
  setColumnResizable: qe,
706
706
  setStickyHeader: Le,
707
707
  clearSelection: i,
708
- selectAllOnPage: y,
709
- invertSelectionOnPage: R,
708
+ selectAllOnPage: v,
709
+ invertSelectionOnPage: A,
710
710
  openConfigDialog: Ee,
711
711
  openExportDialog: Pe
712
712
  });
@@ -748,8 +748,8 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
748
748
  setColumnResizable: qe,
749
749
  setStickyHeader: Le,
750
750
  clearSelection: i,
751
- selectAllOnPage: y,
752
- invertSelectionOnPage: R,
751
+ selectAllOnPage: v,
752
+ invertSelectionOnPage: A,
753
753
  openConfigDialog: Ee,
754
754
  openExportDialog: Pe
755
755
  };
@@ -777,7 +777,7 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
777
777
  type: "selection",
778
778
  width: "48"
779
779
  })) : z("", !0),
780
- (n(!0), k(G, null, oe(w.value, (pe) => (n(), x(de, {
780
+ (n(!0), k(j, null, oe(w.value, (pe) => (n(), x(de, {
781
781
  key: pe.propertyPath,
782
782
  prop: pe.propertyPath,
783
783
  label: pe.displayName,
@@ -795,7 +795,7 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
795
795
  ]), 1032, ["prop", "label", "width", "resizable"]))), 128)),
796
796
  t.rowActionsFunc ? (n(), x(ul, {
797
797
  key: 1,
798
- actions: u(Q),
798
+ actions: u(Y),
799
799
  table: ae,
800
800
  resizable: Me.value
801
801
  }, null, 8, ["actions", "resizable"])) : z("", !0)
@@ -816,8 +816,8 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
816
816
  "row-key": e.rowKey,
817
817
  "show-checkbox": xe.value,
818
818
  loading: F.value,
819
- "has-actions": u(Q).length > 0,
820
- "is-selected": u(Y),
819
+ "has-actions": u(Y).length > 0,
820
+ "is-selected": u(N),
821
821
  onCheck: ze,
822
822
  onContextmenu: He
823
823
  }, Be({ _: 2 }, [
@@ -844,8 +844,8 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
844
844
  "row-key": e.rowKey,
845
845
  "show-checkbox": xe.value,
846
846
  loading: F.value,
847
- "has-actions": u(Q).length > 0,
848
- "is-selected": u(Y),
847
+ "has-actions": u(Y).length > 0,
848
+ "is-selected": u(N),
849
849
  onCheck: ze,
850
850
  onContextmenu: He
851
851
  }, Be({ _: 2 }, [
@@ -901,7 +901,7 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
901
901
  "page-size": p.value,
902
902
  "current-page": u(V),
903
903
  onCurrentChange: D,
904
- onSizeChange: J
904
+ onSizeChange: W
905
905
  }, null, 8, ["layout", "total", "page-sizes", "page-size", "current-page"])) : z("", !0)
906
906
  ])) : z("", !0),
907
907
  f(bt, {
@@ -934,35 +934,35 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
934
934
  table: {}
935
935
  },
936
936
  setup(e) {
937
- const v = e;
937
+ const y = e;
938
938
  function l(t) {
939
939
  switch (t) {
940
940
  case "refresh":
941
- v.table.refresh();
941
+ y.table.refresh();
942
942
  break;
943
943
  case "config":
944
- v.table.openConfigDialog();
944
+ y.table.openConfigDialog();
945
945
  break;
946
946
  case "export":
947
- v.table.openExportDialog();
947
+ y.table.openExportDialog();
948
948
  break;
949
949
  case "view-table":
950
- v.table.setViewMode("table");
950
+ y.table.setViewMode("table");
951
951
  break;
952
952
  case "view-card":
953
- v.table.setViewMode("card");
953
+ y.table.setViewMode("card");
954
954
  break;
955
955
  case "view-list":
956
- v.table.setViewMode("list");
956
+ y.table.setViewMode("list");
957
957
  break;
958
958
  case "toggle-checkbox":
959
- v.table.setSelectable(!v.table.selectable);
959
+ y.table.setSelectable(!y.table.selectable);
960
960
  break;
961
961
  case "toggle-column-resize":
962
- v.table.setColumnResizable(!v.table.columnResizable);
962
+ y.table.setColumnResizable(!y.table.columnResizable);
963
963
  break;
964
964
  case "toggle-sticky-header":
965
- v.table.setStickyHeader(!v.table.stickyHeader);
965
+ y.table.setStickyHeader(!y.table.stickyHeader);
966
966
  break;
967
967
  }
968
968
  }
@@ -1052,7 +1052,7 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
1052
1052
  divided: ""
1053
1053
  }, {
1054
1054
  default: o(() => [
1055
- m("span", Rl, T(e.table.viewMode === "table" ? "✓" : ""), 1),
1055
+ m("span", Rl, Q(e.table.viewMode === "table" ? "✓" : ""), 1),
1056
1056
  a[4] || (a[4] = M("表格视图 ", -1))
1057
1057
  ]),
1058
1058
  _: 1
@@ -1062,7 +1062,7 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
1062
1062
  command: "view-card"
1063
1063
  }, {
1064
1064
  default: o(() => [
1065
- m("span", Al, T(e.table.viewMode === "card" ? "✓" : ""), 1),
1065
+ m("span", Al, Q(e.table.viewMode === "card" ? "✓" : ""), 1),
1066
1066
  a[5] || (a[5] = M("卡片视图 ", -1))
1067
1067
  ]),
1068
1068
  _: 1
@@ -1072,7 +1072,7 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
1072
1072
  command: "view-list"
1073
1073
  }, {
1074
1074
  default: o(() => [
1075
- m("span", Pl, T(e.table.viewMode === "list" ? "✓" : ""), 1),
1075
+ m("span", Pl, Q(e.table.viewMode === "list" ? "✓" : ""), 1),
1076
1076
  a[6] || (a[6] = M("列表视图 ", -1))
1077
1077
  ]),
1078
1078
  _: 1
@@ -1082,21 +1082,21 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
1082
1082
  divided: ""
1083
1083
  }, {
1084
1084
  default: o(() => [
1085
- m("span", zl, T(e.table.selectable ? "✓" : ""), 1),
1085
+ m("span", zl, Q(e.table.selectable ? "✓" : ""), 1),
1086
1086
  a[7] || (a[7] = M("选择行 ", -1))
1087
1087
  ]),
1088
1088
  _: 1
1089
1089
  }),
1090
1090
  f(s, { command: "toggle-column-resize" }, {
1091
1091
  default: o(() => [
1092
- m("span", Bl, T(e.table.columnResizable ? "✓" : ""), 1),
1092
+ m("span", Bl, Q(e.table.columnResizable ? "✓" : ""), 1),
1093
1093
  a[8] || (a[8] = M("列宽拖动 ", -1))
1094
1094
  ]),
1095
1095
  _: 1
1096
1096
  }),
1097
1097
  f(s, { command: "toggle-sticky-header" }, {
1098
1098
  default: o(() => [
1099
- m("span", Dl, T(e.table.stickyHeader ? "✓" : ""), 1),
1099
+ m("span", Dl, Q(e.table.stickyHeader ? "✓" : ""), 1),
1100
1100
  a[9] || (a[9] = M("锁定表头 ", -1))
1101
1101
  ]),
1102
1102
  _: 1
@@ -1178,16 +1178,16 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
1178
1178
  },
1179
1179
  emits: ["select-all", "invert", "clear"],
1180
1180
  setup(e) {
1181
- return (v, l) => {
1181
+ return (y, l) => {
1182
1182
  const t = C("el-button");
1183
1183
  return e.count > 0 ? (n(), k("div", Il, [
1184
- m("span", Tl, "已选 " + T(e.count) + " 项", 1),
1184
+ m("span", Tl, "已选 " + Q(e.count) + " 项", 1),
1185
1185
  l[6] || (l[6] = m("span", { class: "yk-table__selection-bar__sep" }, "|", -1)),
1186
1186
  f(t, {
1187
1187
  link: "",
1188
1188
  type: "primary",
1189
1189
  class: "yk-table__selection-bar__btn",
1190
- onClick: l[0] || (l[0] = (a) => v.$emit("select-all"))
1190
+ onClick: l[0] || (l[0] = (a) => y.$emit("select-all"))
1191
1191
  }, {
1192
1192
  default: o(() => [...l[3] || (l[3] = [
1193
1193
  M("全选", -1)
@@ -1198,7 +1198,7 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
1198
1198
  link: "",
1199
1199
  type: "primary",
1200
1200
  class: "yk-table__selection-bar__btn",
1201
- onClick: l[1] || (l[1] = (a) => v.$emit("invert"))
1201
+ onClick: l[1] || (l[1] = (a) => y.$emit("invert"))
1202
1202
  }, {
1203
1203
  default: o(() => [...l[4] || (l[4] = [
1204
1204
  M("反选", -1)
@@ -1210,7 +1210,7 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
1210
1210
  link: "",
1211
1211
  type: "primary",
1212
1212
  class: "yk-table__selection-bar__btn",
1213
- onClick: l[2] || (l[2] = (a) => v.$emit("clear"))
1213
+ onClick: l[2] || (l[2] = (a) => y.$emit("clear"))
1214
1214
  }, {
1215
1215
  default: o(() => [...l[5] || (l[5] = [
1216
1216
  M("清空", -1)
@@ -1231,47 +1231,47 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
1231
1231
  showActionMenuButton: { type: Boolean, default: !0 }
1232
1232
  },
1233
1233
  setup(e) {
1234
- const v = e;
1234
+ const y = e;
1235
1235
  return (l, t) => {
1236
1236
  const a = C("el-button");
1237
1237
  return n(), k("div", Nl, [
1238
1238
  m("div", Ol, [
1239
- (n(!0), k(G, null, oe(v.actions, (c) => (n(), x(a, {
1239
+ (n(!0), k(j, null, oe(y.actions, (c) => (n(), x(a, {
1240
1240
  key: c.name,
1241
1241
  type: c.type === "default" ? void 0 : c.type,
1242
1242
  plain: c.plain,
1243
- onClick: (s) => v.table && c.execute(v.table)
1243
+ onClick: (s) => y.table && c.execute(y.table)
1244
1244
  }, {
1245
1245
  default: o(() => [
1246
1246
  c.icon ? (n(), x(Qe(c.icon), {
1247
1247
  key: 0,
1248
1248
  class: "yk-command-bar__icon"
1249
1249
  })) : z("", !0),
1250
- M(" " + T(c.desc), 1)
1250
+ M(" " + Q(c.desc), 1)
1251
1251
  ]),
1252
1252
  _: 2
1253
1253
  }, 1032, ["type", "plain", "onClick"]))), 128)),
1254
- v.table ? (n(), x(Yl, {
1254
+ y.table ? (n(), x(Yl, {
1255
1255
  key: 0,
1256
- count: v.table.selectedRows.length,
1256
+ count: y.table.selectedRows.length,
1257
1257
  onSelectAll: t[0] || (t[0] = (c) => {
1258
1258
  var s;
1259
- return (s = v.table) == null ? void 0 : s.selectAllOnPage();
1259
+ return (s = y.table) == null ? void 0 : s.selectAllOnPage();
1260
1260
  }),
1261
1261
  onInvert: t[1] || (t[1] = (c) => {
1262
1262
  var s;
1263
- return (s = v.table) == null ? void 0 : s.invertSelectionOnPage();
1263
+ return (s = y.table) == null ? void 0 : s.invertSelectionOnPage();
1264
1264
  }),
1265
1265
  onClear: t[2] || (t[2] = (c) => {
1266
1266
  var s;
1267
- return (s = v.table) == null ? void 0 : s.clearSelection();
1267
+ return (s = y.table) == null ? void 0 : s.clearSelection();
1268
1268
  })
1269
1269
  }, null, 8, ["count"])) : z("", !0),
1270
1270
  ee(l.$slots, "default", {}, void 0, !0)
1271
1271
  ]),
1272
- v.showActionMenuButton && v.table ? (n(), x(wt, {
1272
+ y.showActionMenuButton && y.table ? (n(), x(wt, {
1273
1273
  key: 0,
1274
- table: v.table,
1274
+ table: y.table,
1275
1275
  class: "yk-command-bar__menu"
1276
1276
  }, null, 8, ["table"])) : z("", !0)
1277
1277
  ]);
@@ -1290,18 +1290,18 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
1290
1290
  node: {}
1291
1291
  },
1292
1292
  setup(e) {
1293
- return (v, l) => {
1293
+ return (y, l) => {
1294
1294
  const t = C("main-panel-menu-node", !0), a = C("el-sub-menu"), c = C("el-menu-item");
1295
1295
  return e.node.children && e.node.children.length > 0 ? (n(), x(a, {
1296
1296
  key: 0,
1297
1297
  index: e.node.key
1298
1298
  }, {
1299
1299
  title: o(() => [
1300
- e.node.icon ? (n(), k("i", Ll, T(e.node.icon), 1)) : z("", !0),
1301
- m("span", Ul, T(e.node.label), 1)
1300
+ e.node.icon ? (n(), k("i", Ll, Q(e.node.icon), 1)) : z("", !0),
1301
+ m("span", Ul, Q(e.node.label), 1)
1302
1302
  ]),
1303
1303
  default: o(() => [
1304
- (n(!0), k(G, null, oe(e.node.children, (s) => (n(), x(t, {
1304
+ (n(!0), k(j, null, oe(e.node.children, (s) => (n(), x(t, {
1305
1305
  key: s.key,
1306
1306
  node: s
1307
1307
  }, null, 8, ["node"]))), 128))
@@ -1312,8 +1312,8 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
1312
1312
  index: e.node.key
1313
1313
  }, {
1314
1314
  default: o(() => [
1315
- e.node.icon ? (n(), k("i", Kl, T(e.node.icon), 1)) : z("", !0),
1316
- m("span", Hl, T(e.node.label), 1)
1315
+ e.node.icon ? (n(), k("i", Kl, Q(e.node.icon), 1)) : z("", !0),
1316
+ m("span", Hl, Q(e.node.label), 1)
1317
1317
  ]),
1318
1318
  _: 1
1319
1319
  }, 8, ["index"]));
@@ -1349,32 +1349,32 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
1349
1349
  menuKeyword: { type: String, default: "" }
1350
1350
  },
1351
1351
  emits: ["update:menuKeyword"],
1352
- setup(e, { emit: v }) {
1353
- const l = e, t = v, a = E(!1), c = E(l.menuKeyword);
1352
+ setup(e, { emit: y }) {
1353
+ const l = e, t = y, a = E(!1), c = E(l.menuKeyword);
1354
1354
  ce(
1355
1355
  () => l.menuKeyword,
1356
1356
  (i) => {
1357
1357
  c.value = i;
1358
1358
  }
1359
1359
  );
1360
- const s = N({
1360
+ const s = O({
1361
1361
  get: () => c.value,
1362
1362
  set: (i) => {
1363
1363
  c.value = i, t("update:menuKeyword", i);
1364
1364
  }
1365
- }), S = N(() => s.value.trim().length > 0), d = N(() => Yt(V.value, s.value)), h = N(() => Nt(d.value)), { nodes: V, menuLoading: B, loadNodes: U } = Ot(l), { openTabs: A, activeKey: b, openTab: _, removeTab: q, getComponent: Y } = qt(l);
1366
- function K(i) {
1367
- const y = st(V.value, i);
1368
- y && !it(y) && _(y);
1365
+ }), S = O(() => s.value.trim().length > 0), d = O(() => Yt(V.value, s.value)), h = O(() => Nt(d.value)), { nodes: V, menuLoading: B, loadNodes: U } = Ot(l), { openTabs: R, activeKey: b, openTab: _, removeTab: q, getComponent: N } = qt(l);
1366
+ function J(i) {
1367
+ const v = st(V.value, i);
1368
+ v && !it(v) && _(v);
1369
1369
  }
1370
- let j = !1;
1370
+ let K = !1;
1371
1371
  return Ve(async () => {
1372
- if (await U(), !j && l.defaultActive) {
1372
+ if (await U(), !K && l.defaultActive) {
1373
1373
  const i = st(V.value, l.defaultActive);
1374
- i && !it(i) && _(i), j = !0;
1374
+ i && !it(i) && _(i), K = !0;
1375
1375
  }
1376
- }), (i, y) => {
1377
- const R = C("el-input"), O = C("el-menu"), Q = C("el-tab-pane"), re = C("el-tabs"), ue = C("el-empty"), X = pt("loading");
1376
+ }), (i, v) => {
1377
+ const A = C("el-input"), I = C("el-menu"), Y = C("el-tab-pane"), re = C("el-tabs"), ue = C("el-empty"), X = pt("loading");
1378
1378
  return n(), k("div", jl, [
1379
1379
  m("aside", {
1380
1380
  class: Se(["ys-main-panel__aside", { "is-collapsed": a.value }])
@@ -1384,19 +1384,19 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
1384
1384
  class: "ys-main-panel__collapse-btn",
1385
1385
  type: "button",
1386
1386
  title: a.value ? "展开菜单" : "折叠菜单",
1387
- onClick: y[0] || (y[0] = (w) => a.value = !a.value)
1387
+ onClick: v[0] || (v[0] = (w) => a.value = !a.value)
1388
1388
  }, "☰", 8, Wl),
1389
- l.showMenuSearch && !a.value ? (n(), x(R, {
1389
+ l.showMenuSearch && !a.value ? (n(), x(A, {
1390
1390
  key: 0,
1391
1391
  modelValue: s.value,
1392
- "onUpdate:modelValue": y[1] || (y[1] = (w) => s.value = w),
1392
+ "onUpdate:modelValue": v[1] || (v[1] = (w) => s.value = w),
1393
1393
  class: "ys-main-panel__aside-search",
1394
1394
  size: "small",
1395
1395
  clearable: "",
1396
1396
  placeholder: "搜索功能",
1397
1397
  "aria-label": "搜索功能"
1398
1398
  }, {
1399
- prefix: o(() => [...y[3] || (y[3] = [
1399
+ prefix: o(() => [...v[3] || (v[3] = [
1400
1400
  m("svg", {
1401
1401
  class: "ys-main-panel__search-icon",
1402
1402
  viewBox: "0 0 1024 1024",
@@ -1413,17 +1413,17 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
1413
1413
  _: 1
1414
1414
  }, 8, ["modelValue"])) : z("", !0)
1415
1415
  ]),
1416
- S.value ? Xe((n(), x(O, {
1416
+ S.value ? Xe((n(), x(I, {
1417
1417
  key: "search-" + s.value,
1418
1418
  "default-active": u(b),
1419
1419
  "default-openeds": h.value,
1420
1420
  collapse: a.value,
1421
1421
  class: "ys-main-panel__menu",
1422
1422
  "element-loading-background": "transparent",
1423
- onSelect: K
1423
+ onSelect: J
1424
1424
  }, {
1425
1425
  default: o(() => [
1426
- (n(!0), k(G, null, oe(d.value, (w) => (n(), x(ut, {
1426
+ (n(!0), k(j, null, oe(d.value, (w) => (n(), x(ut, {
1427
1427
  key: w.key,
1428
1428
  node: w
1429
1429
  }, null, 8, ["node"]))), 128)),
@@ -1432,16 +1432,16 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
1432
1432
  _: 1
1433
1433
  }, 8, ["default-active", "default-openeds", "collapse"])), [
1434
1434
  [X, u(B)]
1435
- ]) : Xe((n(), x(O, {
1435
+ ]) : Xe((n(), x(I, {
1436
1436
  key: 1,
1437
1437
  "default-active": u(b),
1438
1438
  collapse: a.value,
1439
1439
  class: "ys-main-panel__menu",
1440
1440
  "element-loading-background": "transparent",
1441
- onSelect: K
1441
+ onSelect: J
1442
1442
  }, {
1443
1443
  default: o(() => [
1444
- (n(!0), k(G, null, oe(u(V), (w) => (n(), x(ut, {
1444
+ (n(!0), k(j, null, oe(u(V), (w) => (n(), x(ut, {
1445
1445
  key: w.key,
1446
1446
  node: w
1447
1447
  }, null, 8, ["node"]))), 128))
@@ -1452,25 +1452,25 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
1452
1452
  ])
1453
1453
  ], 2),
1454
1454
  m("main", Xl, [
1455
- u(A).length > 0 ? (n(), x(re, {
1455
+ u(R).length > 0 ? (n(), x(re, {
1456
1456
  key: 0,
1457
1457
  modelValue: u(b),
1458
- "onUpdate:modelValue": y[2] || (y[2] = (w) => $e(b) ? b.value = w : null),
1458
+ "onUpdate:modelValue": v[2] || (v[2] = (w) => $e(b) ? b.value = w : null),
1459
1459
  type: "card",
1460
1460
  closable: "",
1461
1461
  class: "ys-main-panel__tabs",
1462
1462
  onTabRemove: u(q)
1463
1463
  }, {
1464
1464
  default: o(() => [
1465
- (n(!0), k(G, null, oe(u(A), (w) => (n(), x(Q, {
1465
+ (n(!0), k(j, null, oe(u(R), (w) => (n(), x(Y, {
1466
1466
  key: w.key,
1467
1467
  name: w.key
1468
1468
  }, {
1469
1469
  label: o(() => [
1470
- M(T(w.label), 1)
1470
+ M(Q(w.label), 1)
1471
1471
  ]),
1472
1472
  default: o(() => [
1473
- w.componentPath ? (n(), x(Qe(u(Y)(w.componentPath)), Ze({
1473
+ w.componentPath ? (n(), x(Qe(u(N)(w.componentPath)), Ze({
1474
1474
  key: 0,
1475
1475
  ref_for: !0
1476
1476
  }, w.props), null, 16)) : z("", !0)
@@ -1514,36 +1514,36 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
1514
1514
  valueFormat: { type: String, default: "YYYY-MM-DD" }
1515
1515
  },
1516
1516
  emits: ["update:modelValue"],
1517
- setup(e, { emit: v }) {
1518
- const l = e, t = v, a = N(() => l.op === "between" || l.op === "not_between"), c = N(() => l.op === "in" || l.op === "not_in"), s = N({
1517
+ setup(e, { emit: y }) {
1518
+ const l = e, t = y, a = O(() => l.op === "between" || l.op === "not_between"), c = O(() => l.op === "in" || l.op === "not_in"), s = O({
1519
1519
  get: () => typeof l.modelValue == "string" ? l.modelValue : "",
1520
1520
  set: (i) => t("update:modelValue", i)
1521
- }), S = N({
1521
+ }), S = O({
1522
1522
  get: () => typeof l.modelValue == "number" ? l.modelValue : void 0,
1523
1523
  set: (i) => t("update:modelValue", i ?? null)
1524
- }), d = N({
1524
+ }), d = O({
1525
1525
  get: () => typeof l.modelValue == "string" ? l.modelValue : null,
1526
1526
  set: (i) => t("update:modelValue", i)
1527
- }), h = N({
1527
+ }), h = O({
1528
1528
  get: () => typeof l.modelValue == "boolean" ? l.modelValue : void 0,
1529
1529
  set: (i) => t("update:modelValue", i ?? null)
1530
- }), V = N({
1530
+ }), V = O({
1531
1531
  get: () => {
1532
1532
  const i = l.modelValue;
1533
1533
  if (typeof i == "string" || typeof i == "number" || typeof i == "boolean") return i;
1534
1534
  },
1535
1535
  set: (i) => t("update:modelValue", i ?? null)
1536
- }), B = N({
1536
+ }), B = O({
1537
1537
  get: () => Array.isArray(l.modelValue) ? l.modelValue : [],
1538
1538
  set: (i) => t("update:modelValue", i)
1539
- }), U = N({
1539
+ }), U = O({
1540
1540
  get: () => {
1541
1541
  if (!Array.isArray(l.modelValue) || l.modelValue.length !== 2) return null;
1542
- const i = l.modelValue[0], y = l.modelValue[1];
1543
- return typeof i == "string" && typeof y == "string" ? [i, y] : null;
1542
+ const i = l.modelValue[0], v = l.modelValue[1];
1543
+ return typeof i == "string" && typeof v == "string" ? [i, v] : null;
1544
1544
  },
1545
1545
  set: (i) => t("update:modelValue", i)
1546
- }), A = N({
1546
+ }), R = O({
1547
1547
  get: () => {
1548
1548
  if (Array.isArray(l.modelValue)) {
1549
1549
  const i = l.modelValue[0];
@@ -1551,10 +1551,10 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
1551
1551
  }
1552
1552
  },
1553
1553
  set: (i) => {
1554
- const y = Array.isArray(l.modelValue) && typeof l.modelValue[1] == "number" ? l.modelValue[1] : null;
1555
- t("update:modelValue", [i ?? null, y]);
1554
+ const v = Array.isArray(l.modelValue) && typeof l.modelValue[1] == "number" ? l.modelValue[1] : null;
1555
+ t("update:modelValue", [i ?? null, v]);
1556
1556
  }
1557
- }), b = N({
1557
+ }), b = O({
1558
1558
  get: () => {
1559
1559
  if (Array.isArray(l.modelValue)) {
1560
1560
  const i = l.modelValue[1];
@@ -1562,37 +1562,37 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
1562
1562
  }
1563
1563
  },
1564
1564
  set: (i) => {
1565
- const y = Array.isArray(l.modelValue) && typeof l.modelValue[0] == "number" ? l.modelValue[0] : null;
1566
- t("update:modelValue", [y, i ?? null]);
1565
+ const v = Array.isArray(l.modelValue) && typeof l.modelValue[0] == "number" ? l.modelValue[0] : null;
1566
+ t("update:modelValue", [v, i ?? null]);
1567
1567
  }
1568
1568
  }), _ = [
1569
1569
  { label: "是", value: !0 },
1570
1570
  { label: "否", value: !1 }
1571
1571
  ];
1572
1572
  function q(i) {
1573
- const y = /* @__PURE__ */ new Date(), R = /* @__PURE__ */ new Date();
1574
- return R.setDate(R.getDate() - i), [R, y];
1573
+ const v = /* @__PURE__ */ new Date(), A = /* @__PURE__ */ new Date();
1574
+ return A.setDate(A.getDate() - i), [A, v];
1575
1575
  }
1576
- const Y = [
1576
+ const N = [
1577
1577
  { text: "最近 7 天", value: () => q(7) },
1578
1578
  { text: "最近 30 天", value: () => q(30) },
1579
1579
  { text: "最近 90 天", value: () => q(90) }
1580
- ], K = E(7);
1581
- function j() {
1582
- const i = K.value;
1580
+ ], J = E(7);
1581
+ function K() {
1582
+ const i = J.value;
1583
1583
  if (!i || i < 1) return;
1584
- const [y, R] = q(i);
1584
+ const [v, A] = q(i);
1585
1585
  U.value = [
1586
- rt(y).format(l.valueFormat),
1587
- rt(R).format(l.valueFormat)
1586
+ rt(v).format(l.valueFormat),
1587
+ rt(A).format(l.valueFormat)
1588
1588
  ];
1589
1589
  }
1590
- return (i, y) => {
1591
- const R = C("el-select"), O = C("el-input"), Q = C("el-input-number"), re = C("el-date-picker"), ue = C("el-button"), X = C("el-popover"), w = C("el-option");
1592
- return e.fieldType === "string" && c.value ? (n(), x(R, {
1590
+ return (i, v) => {
1591
+ const A = C("el-select"), I = C("el-input"), Y = C("el-input-number"), re = C("el-date-picker"), ue = C("el-button"), X = C("el-popover"), w = C("el-option");
1592
+ return e.fieldType === "string" && c.value ? (n(), x(A, {
1593
1593
  key: 0,
1594
1594
  modelValue: B.value,
1595
- "onUpdate:modelValue": y[0] || (y[0] = (p) => B.value = p),
1595
+ "onUpdate:modelValue": v[0] || (v[0] = (p) => B.value = p),
1596
1596
  class: "yk-advanced-value-editor",
1597
1597
  multiple: "",
1598
1598
  filterable: "",
@@ -1600,44 +1600,44 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
1600
1600
  "default-first-option": "",
1601
1601
  "reserve-keyword": !1,
1602
1602
  placeholder: "输入后回车添加"
1603
- }, null, 8, ["modelValue"])) : e.fieldType === "string" ? (n(), x(O, {
1603
+ }, null, 8, ["modelValue"])) : e.fieldType === "string" ? (n(), x(I, {
1604
1604
  key: 1,
1605
1605
  modelValue: s.value,
1606
- "onUpdate:modelValue": y[1] || (y[1] = (p) => s.value = p),
1606
+ "onUpdate:modelValue": v[1] || (v[1] = (p) => s.value = p),
1607
1607
  placeholder: "请输入",
1608
1608
  clearable: ""
1609
1609
  }, null, 8, ["modelValue"])) : e.fieldType === "number" && a.value ? (n(), k("div", ln, [
1610
- f(Q, {
1611
- modelValue: A.value,
1612
- "onUpdate:modelValue": y[2] || (y[2] = (p) => A.value = p),
1610
+ f(Y, {
1611
+ modelValue: R.value,
1612
+ "onUpdate:modelValue": v[2] || (v[2] = (p) => R.value = p),
1613
1613
  placeholder: "最小值",
1614
1614
  controls: !1,
1615
1615
  class: "yk-advanced-value-editor__num"
1616
1616
  }, null, 8, ["modelValue"]),
1617
- y[11] || (y[11] = m("span", { class: "yk-advanced-value-editor__sep" }, "~", -1)),
1618
- f(Q, {
1617
+ v[11] || (v[11] = m("span", { class: "yk-advanced-value-editor__sep" }, "~", -1)),
1618
+ f(Y, {
1619
1619
  modelValue: b.value,
1620
- "onUpdate:modelValue": y[3] || (y[3] = (p) => b.value = p),
1620
+ "onUpdate:modelValue": v[3] || (v[3] = (p) => b.value = p),
1621
1621
  placeholder: "最大值",
1622
1622
  controls: !1,
1623
1623
  class: "yk-advanced-value-editor__num"
1624
1624
  }, null, 8, ["modelValue"])
1625
- ])) : e.fieldType === "number" ? (n(), x(Q, {
1625
+ ])) : e.fieldType === "number" ? (n(), x(Y, {
1626
1626
  key: 3,
1627
1627
  modelValue: S.value,
1628
- "onUpdate:modelValue": y[4] || (y[4] = (p) => S.value = p),
1628
+ "onUpdate:modelValue": v[4] || (v[4] = (p) => S.value = p),
1629
1629
  placeholder: "请输入数字",
1630
1630
  controls: !1,
1631
1631
  class: "yk-advanced-value-editor"
1632
1632
  }, null, 8, ["modelValue"])) : e.fieldType === "date" && a.value ? (n(), k("div", nn, [
1633
1633
  f(re, {
1634
1634
  modelValue: U.value,
1635
- "onUpdate:modelValue": y[5] || (y[5] = (p) => U.value = p),
1635
+ "onUpdate:modelValue": v[5] || (v[5] = (p) => U.value = p),
1636
1636
  type: "daterange",
1637
1637
  "value-format": e.valueFormat,
1638
1638
  "start-placeholder": "开始日期",
1639
1639
  "end-placeholder": "结束日期",
1640
- shortcuts: Y,
1640
+ shortcuts: N,
1641
1641
  class: "yk-advanced-value-editor__daterange-picker"
1642
1642
  }, null, 8, ["modelValue", "value-format"]),
1643
1643
  f(X, {
@@ -1647,7 +1647,7 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
1647
1647
  }, {
1648
1648
  reference: o(() => [
1649
1649
  f(ue, { class: "yk-advanced-value-editor__recent-trigger" }, {
1650
- default: o(() => [...y[12] || (y[12] = [
1650
+ default: o(() => [...v[12] || (v[12] = [
1651
1651
  M("最近 N 天", -1)
1652
1652
  ])]),
1653
1653
  _: 1
@@ -1655,21 +1655,21 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
1655
1655
  ]),
1656
1656
  default: o(() => [
1657
1657
  m("div", on, [
1658
- y[14] || (y[14] = m("span", null, "最近", -1)),
1659
- f(Q, {
1660
- modelValue: K.value,
1661
- "onUpdate:modelValue": y[6] || (y[6] = (p) => K.value = p),
1658
+ v[14] || (v[14] = m("span", null, "最近", -1)),
1659
+ f(Y, {
1660
+ modelValue: J.value,
1661
+ "onUpdate:modelValue": v[6] || (v[6] = (p) => J.value = p),
1662
1662
  min: 1,
1663
1663
  controls: !1,
1664
1664
  class: "yk-advanced-value-editor__recent-input"
1665
1665
  }, null, 8, ["modelValue"]),
1666
- y[15] || (y[15] = m("span", null, "天", -1)),
1666
+ v[15] || (v[15] = m("span", null, "天", -1)),
1667
1667
  f(ue, {
1668
1668
  type: "primary",
1669
1669
  size: "small",
1670
- onClick: j
1670
+ onClick: K
1671
1671
  }, {
1672
- default: o(() => [...y[13] || (y[13] = [
1672
+ default: o(() => [...v[13] || (v[13] = [
1673
1673
  M("应用", -1)
1674
1674
  ])]),
1675
1675
  _: 1
@@ -1681,53 +1681,53 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
1681
1681
  ])) : e.fieldType === "date" ? (n(), x(re, {
1682
1682
  key: 5,
1683
1683
  modelValue: d.value,
1684
- "onUpdate:modelValue": y[7] || (y[7] = (p) => d.value = p),
1684
+ "onUpdate:modelValue": v[7] || (v[7] = (p) => d.value = p),
1685
1685
  type: "date",
1686
1686
  "value-format": e.valueFormat,
1687
1687
  placeholder: "选择日期",
1688
1688
  clearable: ""
1689
- }, null, 8, ["modelValue", "value-format"])) : e.fieldType === "boolean" ? (n(), x(R, {
1689
+ }, null, 8, ["modelValue", "value-format"])) : e.fieldType === "boolean" ? (n(), x(A, {
1690
1690
  key: 6,
1691
1691
  modelValue: h.value,
1692
- "onUpdate:modelValue": y[8] || (y[8] = (p) => h.value = p),
1692
+ "onUpdate:modelValue": v[8] || (v[8] = (p) => h.value = p),
1693
1693
  placeholder: "请选择",
1694
1694
  clearable: ""
1695
1695
  }, {
1696
1696
  default: o(() => [
1697
- (n(), k(G, null, oe(_, (p) => f(w, {
1697
+ (n(), k(j, null, oe(_, (p) => f(w, {
1698
1698
  key: String(p.value),
1699
1699
  label: p.label,
1700
1700
  value: p.value
1701
1701
  }, null, 8, ["label", "value"])), 64))
1702
1702
  ]),
1703
1703
  _: 1
1704
- }, 8, ["modelValue"])) : e.fieldType === "enum" && c.value ? (n(), x(R, {
1704
+ }, 8, ["modelValue"])) : e.fieldType === "enum" && c.value ? (n(), x(A, {
1705
1705
  key: 7,
1706
1706
  modelValue: B.value,
1707
- "onUpdate:modelValue": y[9] || (y[9] = (p) => B.value = p),
1707
+ "onUpdate:modelValue": v[9] || (v[9] = (p) => B.value = p),
1708
1708
  multiple: "",
1709
1709
  loading: e.optionsLoading,
1710
1710
  placeholder: "请选择",
1711
1711
  clearable: ""
1712
1712
  }, {
1713
1713
  default: o(() => [
1714
- (n(!0), k(G, null, oe(e.options, (p) => (n(), x(w, {
1714
+ (n(!0), k(j, null, oe(e.options, (p) => (n(), x(w, {
1715
1715
  key: String(p.value),
1716
1716
  label: p.label,
1717
1717
  value: p.value
1718
1718
  }, null, 8, ["label", "value"]))), 128))
1719
1719
  ]),
1720
1720
  _: 1
1721
- }, 8, ["modelValue", "loading"])) : e.fieldType === "enum" ? (n(), x(R, {
1721
+ }, 8, ["modelValue", "loading"])) : e.fieldType === "enum" ? (n(), x(A, {
1722
1722
  key: 8,
1723
1723
  modelValue: V.value,
1724
- "onUpdate:modelValue": y[10] || (y[10] = (p) => V.value = p),
1724
+ "onUpdate:modelValue": v[10] || (v[10] = (p) => V.value = p),
1725
1725
  loading: e.optionsLoading,
1726
1726
  placeholder: "请选择",
1727
1727
  clearable: ""
1728
1728
  }, {
1729
1729
  default: o(() => [
1730
- (n(!0), k(G, null, oe(e.options, (p) => (n(), x(w, {
1730
+ (n(!0), k(j, null, oe(e.options, (p) => (n(), x(w, {
1731
1731
  key: String(p.value),
1732
1732
  label: p.label,
1733
1733
  value: p.value
@@ -1756,18 +1756,18 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
1756
1756
  level: { type: Number, default: 0 }
1757
1757
  },
1758
1758
  setup(e) {
1759
- const v = e, l = mt(St);
1759
+ const y = e, l = mt(St);
1760
1760
  function t(b) {
1761
- (b === "and" || b === "or") && l.api.setGroupCombinator(v.group.id, b);
1761
+ (b === "and" || b === "or") && l.api.setGroupCombinator(y.group.id, b);
1762
1762
  }
1763
1763
  function a() {
1764
- l.api.addLeaf(v.group.id);
1764
+ l.api.addLeaf(y.group.id);
1765
1765
  }
1766
1766
  function c() {
1767
- l.api.addNestedGroup(v.group.id);
1767
+ l.api.addNestedGroup(y.group.id);
1768
1768
  }
1769
1769
  function s() {
1770
- l.api.removeNode(v.group.id);
1770
+ l.api.removeNode(y.group.id);
1771
1771
  }
1772
1772
  function S(b, _) {
1773
1773
  typeof _ == "string" && l.api.changeField(b.id, _);
@@ -1785,18 +1785,18 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
1785
1785
  function U(b) {
1786
1786
  return l.columns.find((_) => _.propertyPath === b);
1787
1787
  }
1788
- function A(b) {
1788
+ function R(b) {
1789
1789
  var _;
1790
1790
  return ((_ = U(b)) == null ? void 0 : _.displayFormat) ?? "YYYY-MM-DD";
1791
1791
  }
1792
1792
  return (b, _) => {
1793
- const q = C("el-radio-button"), Y = C("el-radio-group"), K = C("el-button"), j = C("YsAdvancedConditionGroup"), i = C("el-option"), y = C("el-select");
1793
+ const q = C("el-radio-button"), N = C("el-radio-group"), J = C("el-button"), K = C("YsAdvancedConditionGroup"), i = C("el-option"), v = C("el-select");
1794
1794
  return n(), k("div", {
1795
1795
  class: Se(["yk-adv-group", [`level-${e.level}`, { "is-root": e.level === 0 }]])
1796
1796
  }, [
1797
1797
  m("div", sn, [
1798
1798
  _[5] || (_[5] = m("span", { class: "yk-adv-group__comb-label" }, "满足", -1)),
1799
- f(Y, {
1799
+ f(N, {
1800
1800
  "model-value": e.group.combinator,
1801
1801
  size: "small",
1802
1802
  "onUpdate:modelValue": t
@@ -1819,7 +1819,7 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
1819
1819
  }, 8, ["model-value"]),
1820
1820
  _[6] || (_[6] = m("span", { class: "yk-adv-group__comb-label" }, "条件", -1)),
1821
1821
  m("span", rn, [
1822
- f(K, {
1822
+ f(J, {
1823
1823
  link: "",
1824
1824
  type: "primary",
1825
1825
  onClick: a
@@ -1829,7 +1829,7 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
1829
1829
  ])]),
1830
1830
  _: 1
1831
1831
  }),
1832
- f(K, {
1832
+ f(J, {
1833
1833
  link: "",
1834
1834
  type: "primary",
1835
1835
  onClick: c
@@ -1839,7 +1839,7 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
1839
1839
  ])]),
1840
1840
  _: 1
1841
1841
  }),
1842
- e.level > 0 ? (n(), x(K, {
1842
+ e.level > 0 ? (n(), x(J, {
1843
1843
  key: 0,
1844
1844
  link: "",
1845
1845
  type: "danger",
@@ -1853,66 +1853,66 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
1853
1853
  ])
1854
1854
  ]),
1855
1855
  m("div", un, [
1856
- (n(!0), k(G, null, oe(e.group.children, (R) => (n(), k(G, {
1857
- key: R.id
1856
+ (n(!0), k(j, null, oe(e.group.children, (A) => (n(), k(j, {
1857
+ key: A.id
1858
1858
  }, [
1859
- u(V)(R) ? (n(), k("div", dn, [
1860
- f(j, {
1861
- group: R,
1859
+ u(V)(A) ? (n(), k("div", dn, [
1860
+ f(K, {
1861
+ group: A,
1862
1862
  level: e.level + 1
1863
1863
  }, null, 8, ["group", "level"])
1864
1864
  ])) : (n(), k("div", cn, [
1865
- f(y, {
1866
- "model-value": R.propertyPath,
1865
+ f(v, {
1866
+ "model-value": A.propertyPath,
1867
1867
  class: "yk-adv-group__field",
1868
1868
  placeholder: "选择字段",
1869
1869
  filterable: "",
1870
- "onUpdate:modelValue": (O) => S(R, O)
1870
+ "onUpdate:modelValue": (I) => S(A, I)
1871
1871
  }, {
1872
1872
  default: o(() => [
1873
- (n(!0), k(G, null, oe(u(l).columns, (O) => (n(), x(i, {
1874
- key: O.propertyPath,
1875
- label: O.displayName ?? O.propertyPath,
1876
- value: O.propertyPath
1873
+ (n(!0), k(j, null, oe(u(l).columns, (I) => (n(), x(i, {
1874
+ key: I.propertyPath,
1875
+ label: I.displayName ?? I.propertyPath,
1876
+ value: I.propertyPath
1877
1877
  }, null, 8, ["label", "value"]))), 128))
1878
1878
  ]),
1879
1879
  _: 1
1880
1880
  }, 8, ["model-value", "onUpdate:modelValue"]),
1881
- f(y, {
1882
- "model-value": R.op,
1881
+ f(v, {
1882
+ "model-value": A.op,
1883
1883
  class: "yk-adv-group__op",
1884
1884
  placeholder: "操作符",
1885
1885
  filterable: "",
1886
- "onUpdate:modelValue": (O) => d(R, O)
1886
+ "onUpdate:modelValue": (I) => d(A, I)
1887
1887
  }, {
1888
1888
  default: o(() => [
1889
- (n(!0), k(G, null, oe(u(l).api.operatorsOf(R.propertyPath), (O) => (n(), x(i, {
1890
- key: O,
1891
- label: u(el)[O],
1892
- value: O
1889
+ (n(!0), k(j, null, oe(u(l).api.operatorsOf(A.propertyPath), (I) => (n(), x(i, {
1890
+ key: I,
1891
+ label: u(el)[I],
1892
+ value: I
1893
1893
  }, null, 8, ["label", "value"]))), 128))
1894
1894
  ]),
1895
1895
  _: 2
1896
1896
  }, 1032, ["model-value", "onUpdate:modelValue"]),
1897
- u(tl)(R.op) ? z("", !0) : (n(), x(Ct, {
1897
+ u(tl)(A.op) ? z("", !0) : (n(), x(Ct, {
1898
1898
  key: 0,
1899
- "field-type": u(l).api.fieldTypeOf(R.propertyPath),
1900
- op: R.op,
1901
- options: u(l).optionsMap.value[R.propertyPath] ?? [],
1902
- "options-loading": u(l).loadingMap.value[R.propertyPath] === !0,
1903
- "value-format": A(R.propertyPath),
1899
+ "field-type": u(l).api.fieldTypeOf(A.propertyPath),
1900
+ op: A.op,
1901
+ options: u(l).optionsMap.value[A.propertyPath] ?? [],
1902
+ "options-loading": u(l).loadingMap.value[A.propertyPath] === !0,
1903
+ "value-format": R(A.propertyPath),
1904
1904
  class: Se([
1905
1905
  "yk-adv-group__value",
1906
- { "is-invalid": u(l).api.isConditionEmpty(R) }
1906
+ { "is-invalid": u(l).api.isConditionEmpty(A) }
1907
1907
  ]),
1908
- modelValue: R.value,
1909
- "onUpdate:modelValue": (O) => R.value = O
1908
+ modelValue: A.value,
1909
+ "onUpdate:modelValue": (I) => A.value = I
1910
1910
  }, null, 8, ["field-type", "op", "options", "options-loading", "value-format", "class", "modelValue", "onUpdate:modelValue"])),
1911
- f(K, {
1911
+ f(J, {
1912
1912
  link: "",
1913
1913
  type: "danger",
1914
1914
  class: "yk-adv-group__remove",
1915
- onClick: (O) => h(R.id)
1915
+ onClick: (I) => h(A.id)
1916
1916
  }, {
1917
1917
  default: o(() => [..._[7] || (_[7] = [
1918
1918
  M(" 删除 ", -1)
@@ -1957,7 +1957,7 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
1957
1957
  }
1958
1958
  },
1959
1959
  emits: ["search", "reset", "update:savedQueries"],
1960
- setup(e, { expose: v, emit: l }) {
1960
+ setup(e, { expose: y, emit: l }) {
1961
1961
  const t = e, a = l, c = gt(t), { rootGroup: s, fieldTypeOf: S, filter: d, reset: h } = c, V = E({}), B = E({});
1962
1962
  async function U(w) {
1963
1963
  var H;
@@ -1971,7 +1971,7 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
1971
1971
  }
1972
1972
  }
1973
1973
  }
1974
- function A(w) {
1974
+ function R(w) {
1975
1975
  const p = /* @__PURE__ */ new Set();
1976
1976
  function H(se) {
1977
1977
  tt(se) ? se.children.forEach(H) : S(se.propertyPath) === "enum" && p.add(se.propertyPath);
@@ -1981,7 +1981,7 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
1981
1981
  ce(
1982
1982
  s,
1983
1983
  (w) => {
1984
- for (const p of A(w))
1984
+ for (const p of R(w))
1985
1985
  U(p);
1986
1986
  },
1987
1987
  { deep: !0, immediate: !0 }
@@ -1997,55 +1997,55 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
1997
1997
  function _() {
1998
1998
  h(), a("reset");
1999
1999
  }
2000
- const q = E([]), Y = N(
2000
+ const q = E([]), N = O(
2001
2001
  () => t.savedQueries ?? q.value
2002
2002
  );
2003
- function K(w) {
2003
+ function J(w) {
2004
2004
  q.value = w, a("update:savedQueries", w);
2005
2005
  }
2006
- const j = E(!1), i = E(""), y = E("");
2007
- let R = 0;
2008
- function O() {
2006
+ const K = E(!1), i = E(""), v = E("");
2007
+ let A = 0;
2008
+ function I() {
2009
2009
  function w(p) {
2010
2010
  return p.children.some((H) => tt(H) ? w(H) : c.isConditionEmpty(H));
2011
2011
  }
2012
2012
  return w(s.value);
2013
2013
  }
2014
- function Q() {
2015
- i.value = "", y.value = "", j.value = !0;
2014
+ function Y() {
2015
+ i.value = "", v.value = "", K.value = !0;
2016
2016
  }
2017
2017
  function re() {
2018
2018
  const w = i.value.trim();
2019
2019
  if (!w) return;
2020
- O() && ye.warning("当前存在未填值的条件行(标红),保存的预设可能不完整");
2020
+ I() && ye.warning("当前存在未填值的条件行(标红),保存的预设可能不完整");
2021
2021
  const p = JSON.parse(JSON.stringify(s.value)), H = {
2022
- id: `sq-${++R}`,
2022
+ id: `sq-${++A}`,
2023
2023
  name: w,
2024
- description: y.value.trim(),
2024
+ description: v.value.trim(),
2025
2025
  group: p,
2026
2026
  filterInfo: d.value
2027
2027
  };
2028
- K([...Y.value, H]), j.value = !1;
2028
+ J([...N.value, H]), K.value = !1;
2029
2029
  }
2030
2030
  function ue(w) {
2031
2031
  s.value = JSON.parse(JSON.stringify(w.group)), b();
2032
2032
  }
2033
2033
  function X(w) {
2034
- K(Y.value.filter((p) => p.id !== w));
2034
+ J(N.value.filter((p) => p.id !== w));
2035
2035
  }
2036
- return v({
2036
+ return y({
2037
2037
  get filter() {
2038
2038
  return d.value;
2039
2039
  },
2040
2040
  reset: _,
2041
- openSaveDialog: Q,
2041
+ openSaveDialog: Y,
2042
2042
  applySavedQuery: ue,
2043
2043
  removeSavedQuery: X,
2044
2044
  get savedQueries() {
2045
- return Y.value;
2045
+ return N.value;
2046
2046
  }
2047
2047
  }), (w, p) => {
2048
- const H = C("el-button"), se = C("el-input"), I = C("el-form-item"), $ = C("el-form"), F = C("el-dialog");
2048
+ const H = C("el-button"), se = C("el-input"), T = C("el-form-item"), $ = C("el-form"), F = C("el-dialog");
2049
2049
  return n(), k("div", {
2050
2050
  class: "yk-advanced-filter",
2051
2051
  onKeydown: Ge(b, ["enter"])
@@ -2061,7 +2061,7 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
2061
2061
  onClick: b
2062
2062
  }, {
2063
2063
  default: o(() => [
2064
- M(T(e.searchButtonText), 1)
2064
+ M(Q(e.searchButtonText), 1)
2065
2065
  ]),
2066
2066
  _: 1
2067
2067
  })) : z("", !0),
@@ -2070,13 +2070,13 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
2070
2070
  onClick: _
2071
2071
  }, {
2072
2072
  default: o(() => [
2073
- M(T(e.resetButtonText), 1)
2073
+ M(Q(e.resetButtonText), 1)
2074
2074
  ]),
2075
2075
  _: 1
2076
2076
  })) : z("", !0),
2077
2077
  e.showSaveQuery ? (n(), x(H, {
2078
2078
  key: 2,
2079
- onClick: Q
2079
+ onClick: Y
2080
2080
  }, {
2081
2081
  default: o(() => [...p[4] || (p[4] = [
2082
2082
  M("保存", -1)
@@ -2085,15 +2085,15 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
2085
2085
  })) : z("", !0)
2086
2086
  ])) : z("", !0),
2087
2087
  f(F, {
2088
- modelValue: j.value,
2089
- "onUpdate:modelValue": p[3] || (p[3] = (D) => j.value = D),
2088
+ modelValue: K.value,
2089
+ "onUpdate:modelValue": p[3] || (p[3] = (D) => K.value = D),
2090
2090
  title: "保存查询",
2091
2091
  width: "440px",
2092
2092
  "append-to-body": ""
2093
2093
  }, {
2094
2094
  footer: o(() => [
2095
2095
  f(H, {
2096
- onClick: p[2] || (p[2] = (D) => j.value = !1)
2096
+ onClick: p[2] || (p[2] = (D) => K.value = !1)
2097
2097
  }, {
2098
2098
  default: o(() => [...p[5] || (p[5] = [
2099
2099
  M("取消", -1)
@@ -2114,7 +2114,7 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
2114
2114
  default: o(() => [
2115
2115
  f($, { "label-position": "top" }, {
2116
2116
  default: o(() => [
2117
- f(I, { label: "名称" }, {
2117
+ f(T, { label: "名称" }, {
2118
2118
  default: o(() => [
2119
2119
  f(se, {
2120
2120
  modelValue: i.value,
@@ -2127,11 +2127,11 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
2127
2127
  ]),
2128
2128
  _: 1
2129
2129
  }),
2130
- f(I, { label: "描述" }, {
2130
+ f(T, { label: "描述" }, {
2131
2131
  default: o(() => [
2132
2132
  f(se, {
2133
- modelValue: y.value,
2134
- "onUpdate:modelValue": p[1] || (p[1] = (D) => y.value = D),
2133
+ modelValue: v.value,
2134
+ "onUpdate:modelValue": p[1] || (p[1] = (D) => v.value = D),
2135
2135
  type: "textarea",
2136
2136
  rows: 2,
2137
2137
  placeholder: "可选,描述此查询的用途(hover 标签时显示)",
@@ -2236,30 +2236,30 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
2236
2236
  singleLine: { type: Boolean, default: !1 }
2237
2237
  },
2238
2238
  emits: ["search", "reset", "update:quickQueries"],
2239
- setup(e, { expose: v, emit: l }) {
2239
+ setup(e, { expose: y, emit: l }) {
2240
2240
  const t = e, a = l, { filter: c, register: s, reset: S } = Lt();
2241
2241
  ft(kt, s);
2242
- const d = E("simple"), h = E(!0), V = E(0), B = E(null), U = E([]), A = N(
2242
+ const d = E("simple"), h = E(!0), V = E(0), B = E(null), U = E([]), R = O(
2243
2243
  () => t.quickQueries ?? U.value
2244
- ), b = E(null), _ = N(() => {
2245
- var I;
2246
- return d.value === "advanced" ? ((I = b.value) == null ? void 0 : I.filter) ?? lt() : c.value;
2244
+ ), b = E(null), _ = O(() => {
2245
+ var T;
2246
+ return d.value === "advanced" ? ((T = b.value) == null ? void 0 : T.filter) ?? lt() : c.value;
2247
2247
  });
2248
2248
  function q() {
2249
2249
  a("search", _.value);
2250
2250
  }
2251
- function Y() {
2252
- var I;
2253
- d.value === "advanced" ? (I = b.value) == null || I.reset() : S(), a("reset");
2251
+ function N() {
2252
+ var T;
2253
+ d.value === "advanced" ? (T = b.value) == null || T.reset() : S(), a("reset");
2254
2254
  }
2255
- function K(I) {
2256
- a("search", I);
2255
+ function J(T) {
2256
+ a("search", T);
2257
2257
  }
2258
- function j() {
2258
+ function K() {
2259
2259
  a("reset");
2260
2260
  }
2261
- async function i(I) {
2262
- const $ = new Set(A.value.map((D) => D.id)), F = I.filter((D) => !$.has(D.id));
2261
+ async function i(T) {
2262
+ const $ = new Set(R.value.map((D) => D.id)), F = T.filter((D) => !$.has(D.id));
2263
2263
  if (t.saveQuickQueryFun && F.length > 0) {
2264
2264
  const D = [];
2265
2265
  for (const L of F)
@@ -2269,39 +2269,39 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
2269
2269
  } catch {
2270
2270
  ye.error(`保存快速查询「${L.name}」失败`), D.push(L);
2271
2271
  }
2272
- let J = I;
2272
+ let W = T;
2273
2273
  if (D.some((L, Z) => L !== F[Z])) {
2274
2274
  const L = new Map(F.map((Z, ve) => [Z.id, D[ve] ?? Z]));
2275
- J = I.map((Z) => L.get(Z.id) ?? Z);
2275
+ W = T.map((Z) => L.get(Z.id) ?? Z);
2276
2276
  }
2277
- U.value = J, a("update:quickQueries", J);
2277
+ U.value = W, a("update:quickQueries", W);
2278
2278
  } else
2279
- U.value = I, a("update:quickQueries", I);
2279
+ U.value = T, a("update:quickQueries", T);
2280
2280
  }
2281
- let y = null;
2282
- function R() {
2283
- return !y && t.advancedColumns.length && (y = gt({
2281
+ let v = null;
2282
+ function A() {
2283
+ return !v && t.advancedColumns.length && (v = gt({
2284
2284
  columns: t.advancedColumns,
2285
2285
  optionSources: t.advancedOptionSources
2286
- })), y;
2286
+ })), v;
2287
2287
  }
2288
- function O(I) {
2289
- const $ = R();
2290
- return $ ? ($.rootGroup.value = JSON.parse(JSON.stringify(I)), $.filter.value) : { toString: () => "", isEmpty: () => !0 };
2288
+ function I(T) {
2289
+ const $ = A();
2290
+ return $ ? ($.rootGroup.value = JSON.parse(JSON.stringify(T)), $.filter.value) : { toString: () => "", isEmpty: () => !0 };
2291
2291
  }
2292
2292
  Ve(async () => {
2293
2293
  if (t.loadQuickQueryFun)
2294
2294
  try {
2295
2295
  const $ = (await t.loadQuickQueryFun()).map((F) => ({
2296
2296
  ...F,
2297
- filterInfo: F.filterInfo ?? O(F.group)
2297
+ filterInfo: F.filterInfo ?? I(F.group)
2298
2298
  }));
2299
2299
  U.value = $, a("update:quickQueries", $);
2300
2300
  } catch {
2301
2301
  ye.error("加载快速查询失败");
2302
2302
  }
2303
2303
  });
2304
- function Q() {
2304
+ function Y() {
2305
2305
  d.value !== "advanced" && q();
2306
2306
  }
2307
2307
  function re() {
@@ -2314,31 +2314,31 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
2314
2314
  h.value = !h.value;
2315
2315
  }
2316
2316
  function w() {
2317
- const I = B.value;
2318
- if (!I) return;
2319
- for (const ve of Array.from(I.children))
2317
+ const T = B.value;
2318
+ if (!T) return;
2319
+ for (const ve of Array.from(T.children))
2320
2320
  ve.style.display = "";
2321
2321
  if (!t.singleLine || !h.value) {
2322
- V.value = 0, I.style.maxWidth = "";
2322
+ V.value = 0, T.style.maxWidth = "";
2323
2323
  return;
2324
2324
  }
2325
- const $ = I.nextElementSibling, F = $ ? $.offsetWidth : 0, D = 16;
2326
- I.style.maxWidth = `calc(100% - ${F + D}px)`;
2327
- const J = I.clientWidth;
2325
+ const $ = T.nextElementSibling, F = $ ? $.offsetWidth : 0, D = 16;
2326
+ T.style.maxWidth = `calc(100% - ${F + D}px)`;
2327
+ const W = T.clientWidth;
2328
2328
  let L = 0, Z = 0;
2329
- for (const ve of Array.from(I.children)) {
2329
+ for (const ve of Array.from(T.children)) {
2330
2330
  const _e = ve, fe = _e.offsetWidth;
2331
- L > 0 && L + fe + D > J ? (_e.style.display = "none", Z++) : L += fe + D;
2331
+ L > 0 && L + fe + D > W ? (_e.style.display = "none", Z++) : L += fe + D;
2332
2332
  }
2333
2333
  V.value = Z;
2334
2334
  }
2335
2335
  let p = null;
2336
- function H(I) {
2336
+ function H(T) {
2337
2337
  var $;
2338
- d.value === "advanced" ? ($ = b.value) == null || $.applySavedQuery(I) : a("search", I.filterInfo);
2338
+ d.value === "advanced" ? ($ = b.value) == null || $.applySavedQuery(T) : a("search", T.filterInfo);
2339
2339
  }
2340
- async function se(I) {
2341
- const $ = A.value.find((D) => D.id === I), F = ($ == null ? void 0 : $.name) ?? "该查询";
2340
+ async function se(T) {
2341
+ const $ = R.value.find((D) => D.id === T), F = ($ == null ? void 0 : $.name) ?? "该查询";
2342
2342
  try {
2343
2343
  await _t.confirm(
2344
2344
  `确定要删除快速查询「${F}」吗?`,
@@ -2348,7 +2348,7 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
2348
2348
  } catch {
2349
2349
  return;
2350
2350
  }
2351
- await i(A.value.filter((D) => D.id !== I));
2351
+ await i(R.value.filter((D) => D.id !== T));
2352
2352
  }
2353
2353
  return Ve(() => {
2354
2354
  t.singleLine && (w(), p = new ResizeObserver(() => w()), B.value && p.observe(B.value));
@@ -2356,17 +2356,17 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
2356
2356
  p == null || p.disconnect(), p = null;
2357
2357
  }), ce([h, () => t.singleLine], () => {
2358
2358
  je(w);
2359
- }), v({
2359
+ }), y({
2360
2360
  filter: _,
2361
- reset: Y,
2361
+ reset: N,
2362
2362
  mode: d
2363
- }), (I, $) => {
2364
- const F = C("el-button"), D = C("el-tooltip"), J = C("el-tag");
2363
+ }), (T, $) => {
2364
+ const F = C("el-button"), D = C("el-tooltip"), W = C("el-tag");
2365
2365
  return n(), k("div", {
2366
2366
  class: Se(["yk-filter-panel", { "is-single-line": e.singleLine, "is-collapsed": e.singleLine && h.value }]),
2367
- onKeydown: Ge(Q, ["enter"])
2367
+ onKeydown: Ge(Y, ["enter"])
2368
2368
  }, [
2369
- d.value === "simple" ? (n(), k(G, { key: 0 }, [
2369
+ d.value === "simple" ? (n(), k(j, { key: 0 }, [
2370
2370
  e.singleLine ? (n(), x(F, {
2371
2371
  key: 0,
2372
2372
  link: "",
@@ -2391,7 +2391,7 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
2391
2391
  ref_key: "itemsEl",
2392
2392
  ref: B
2393
2393
  }, [
2394
- ee(I.$slots, "default", {}, void 0, !0)
2394
+ ee(T.$slots, "default", {}, void 0, !0)
2395
2395
  ], 512),
2396
2396
  e.showSearch || e.showReset || e.enableAdvancedFilter ? (n(), k("div", kn, [
2397
2397
  e.showSearch ? (n(), x(F, {
@@ -2400,16 +2400,16 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
2400
2400
  onClick: q
2401
2401
  }, {
2402
2402
  default: o(() => [
2403
- M(T(e.searchButtonText), 1)
2403
+ M(Q(e.searchButtonText), 1)
2404
2404
  ]),
2405
2405
  _: 1
2406
2406
  })) : z("", !0),
2407
2407
  e.showReset ? (n(), x(F, {
2408
2408
  key: 1,
2409
- onClick: Y
2409
+ onClick: N
2410
2410
  }, {
2411
2411
  default: o(() => [
2412
- M(T(e.resetButtonText), 1)
2412
+ M(Q(e.resetButtonText), 1)
2413
2413
  ]),
2414
2414
  _: 1
2415
2415
  })) : z("", !0),
@@ -2425,9 +2425,9 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
2425
2425
  _: 1
2426
2426
  })) : z("", !0)
2427
2427
  ])) : z("", !0),
2428
- e.showQuickQuery && A.value.length ? (n(), k("div", _n, [
2428
+ e.showQuickQuery && R.value.length ? (n(), k("div", _n, [
2429
2429
  $[3] || ($[3] = m("span", { class: "yk-filter-panel__saved-label" }, "快速查询:", -1)),
2430
- (n(!0), k(G, null, oe(A.value, (L) => (n(), x(D, {
2430
+ (n(!0), k(j, null, oe(R.value, (L) => (n(), x(D, {
2431
2431
  key: L.id,
2432
2432
  content: L.description,
2433
2433
  disabled: !L.description,
@@ -2439,7 +2439,7 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
2439
2439
  onClick: (Z) => H(L)
2440
2440
  }, {
2441
2441
  default: o(() => [
2442
- M(T(L.name), 1)
2442
+ M(Q(L.name), 1)
2443
2443
  ]),
2444
2444
  _: 2
2445
2445
  }, 1032, ["onClick"])
@@ -2447,7 +2447,7 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
2447
2447
  _: 2
2448
2448
  }, 1032, ["content", "disabled"]))), 128))
2449
2449
  ])) : z("", !0)
2450
- ], 64)) : (n(), k(G, { key: 1 }, [
2450
+ ], 64)) : (n(), k(j, { key: 1 }, [
2451
2451
  m("div", bn, [
2452
2452
  f(F, {
2453
2453
  link: "",
@@ -2465,21 +2465,21 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
2465
2465
  ref: b,
2466
2466
  columns: e.advancedColumns,
2467
2467
  "option-sources": e.advancedOptionSources,
2468
- "saved-queries": A.value,
2469
- onSearch: K,
2470
- onReset: j,
2468
+ "saved-queries": R.value,
2469
+ onSearch: J,
2470
+ onReset: K,
2471
2471
  "onUpdate:savedQueries": i
2472
2472
  }, null, 8, ["columns", "option-sources", "saved-queries"]),
2473
- A.value.length ? (n(), k("div", hn, [
2473
+ R.value.length ? (n(), k("div", hn, [
2474
2474
  $[5] || ($[5] = m("span", { class: "yk-filter-panel__saved-label" }, "已存查询:", -1)),
2475
- (n(!0), k(G, null, oe(A.value, (L) => (n(), x(D, {
2475
+ (n(!0), k(j, null, oe(R.value, (L) => (n(), x(D, {
2476
2476
  key: L.id,
2477
2477
  content: L.description,
2478
2478
  disabled: !L.description,
2479
2479
  placement: "top"
2480
2480
  }, {
2481
2481
  default: o(() => [
2482
- f(J, {
2482
+ f(W, {
2483
2483
  class: "yk-filter-panel__saved-tag",
2484
2484
  effect: "plain",
2485
2485
  closable: "",
@@ -2487,7 +2487,7 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
2487
2487
  onClose: (Z) => se(L.id)
2488
2488
  }, {
2489
2489
  default: o(() => [
2490
- M(T(L.name), 1)
2490
+ M(Q(L.name), 1)
2491
2491
  ]),
2492
2492
  _: 2
2493
2493
  }, 1032, ["onClick", "onClose"])
@@ -2514,17 +2514,17 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
2514
2514
  api: { type: Object, required: !0 }
2515
2515
  },
2516
2516
  setup(e) {
2517
- const v = e, l = mt(kt, null);
2517
+ const y = e, l = mt(kt, null);
2518
2518
  let t = null;
2519
2519
  return Ve(() => {
2520
- l && (t = l(v.api));
2520
+ l && (t = l(y.api));
2521
2521
  }), Ye(() => {
2522
2522
  t == null || t();
2523
2523
  }), (a, c) => (n(), k("div", {
2524
2524
  class: "yk-filter-item",
2525
2525
  style: nt({ minWidth: e.minWidth + "px" })
2526
2526
  }, [
2527
- m("label", xn, T(e.label), 1),
2527
+ m("label", xn, Q(e.label), 1),
2528
2528
  m("div", Cn, [
2529
2529
  ee(a.$slots, "default", {}, void 0, !0)
2530
2530
  ])
@@ -2553,14 +2553,14 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
2553
2553
  /** 占位文本 */
2554
2554
  placeholder: { type: String, required: !1 }
2555
2555
  },
2556
- setup(e, { expose: v }) {
2556
+ setup(e, { expose: y }) {
2557
2557
  const l = e, { value: t, filter: a, reset: c } = Ut(l), s = {
2558
2558
  get filter() {
2559
2559
  return a.value;
2560
2560
  },
2561
2561
  reset: c
2562
2562
  };
2563
- return v(s), (S, d) => {
2563
+ return y(s), (S, d) => {
2564
2564
  const h = C("el-input");
2565
2565
  return n(), x(Ne, {
2566
2566
  label: e.label,
@@ -2602,14 +2602,14 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
2602
2602
  /** el-date-picker value-format,默认 'YYYY-MM-DD'(v-model 绑字符串) */
2603
2603
  valueFormat: { type: String, default: "YYYY-MM-DD" }
2604
2604
  },
2605
- setup(e, { expose: v }) {
2605
+ setup(e, { expose: y }) {
2606
2606
  const l = e, { value: t, filter: a, reset: c } = Kt(l), s = {
2607
2607
  get filter() {
2608
2608
  return a.value;
2609
2609
  },
2610
2610
  reset: c
2611
2611
  };
2612
- return v(s), (S, d) => {
2612
+ return y(s), (S, d) => {
2613
2613
  const h = C("el-date-picker");
2614
2614
  return n(), x(Ne, {
2615
2615
  label: e.label,
@@ -2658,14 +2658,14 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
2658
2658
  required: !1
2659
2659
  }
2660
2660
  },
2661
- setup(e, { expose: v }) {
2661
+ setup(e, { expose: y }) {
2662
2662
  const l = e, { value: t, filter: a, reset: c } = Ht(l), s = {
2663
2663
  get filter() {
2664
2664
  return a.value;
2665
2665
  },
2666
2666
  reset: c
2667
2667
  };
2668
- return v(s), (S, d) => {
2668
+ return y(s), (S, d) => {
2669
2669
  const h = C("el-date-picker");
2670
2670
  return n(), x(Ne, {
2671
2671
  label: e.label,
@@ -2725,8 +2725,8 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
2725
2725
  /** 是否多选;默认 false。多选时 2+ 项用 In,1 项用 Equals,0 项返回 null */
2726
2726
  multiple: { type: Boolean, default: !1 }
2727
2727
  },
2728
- setup(e, { expose: v }) {
2729
- const l = e, { value: t, filter: a, reset: c } = jt(l), s = N({
2728
+ setup(e, { expose: y }) {
2729
+ const l = e, { value: t, filter: a, reset: c } = jt(l), s = O({
2730
2730
  get: () => t.value,
2731
2731
  set: (V) => {
2732
2732
  t.value = V;
@@ -2746,14 +2746,14 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
2746
2746
  },
2747
2747
  reset: c
2748
2748
  };
2749
- return v(h), (V, B) => {
2750
- const U = C("el-option"), A = C("el-select");
2749
+ return y(h), (V, B) => {
2750
+ const U = C("el-option"), R = C("el-select");
2751
2751
  return n(), x(Ne, {
2752
2752
  label: e.label,
2753
2753
  api: h
2754
2754
  }, {
2755
2755
  default: o(() => [
2756
- f(A, {
2756
+ f(R, {
2757
2757
  modelValue: s.value,
2758
2758
  "onUpdate:modelValue": B[0] || (B[0] = (b) => s.value = b),
2759
2759
  multiple: e.multiple,
@@ -2762,7 +2762,7 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
2762
2762
  loading: d.value
2763
2763
  }, {
2764
2764
  default: o(() => [
2765
- (n(!0), k(G, null, oe(S.value, (b) => (n(), x(U, {
2765
+ (n(!0), k(j, null, oe(S.value, (b) => (n(), x(U, {
2766
2766
  key: String(b.value),
2767
2767
  value: b.value,
2768
2768
  label: b.label
@@ -2809,8 +2809,8 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
2809
2809
  singleLine: { type: Boolean, default: !1 }
2810
2810
  },
2811
2811
  emits: ["search", "reset", "update:quickQueries", "data-loaded", "update:viewMode", "update:showCheckbox", "update:columnResizable", "update:stickyHeader"],
2812
- setup(e, { expose: v, emit: l }) {
2813
- const t = e, a = l, c = Bt(lt()), s = E(null), S = E(null), d = N(() => async (A, b) => t.dataFun(A, c.value, b)), h = N(() => ({
2812
+ setup(e, { expose: y, emit: l }) {
2813
+ const t = e, a = l, c = Bt(lt()), s = E(null), S = E(null), d = O(() => async (R, b) => t.dataFun(R, c.value, b)), h = O(() => ({
2814
2814
  metaFun: t.metaFun,
2815
2815
  dataFun: d.value,
2816
2816
  rowActionsFunc: t.rowActionsFunc,
@@ -2825,7 +2825,7 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
2825
2825
  exportorFunc: t.exportorFunc,
2826
2826
  rowKey: t.rowKey,
2827
2827
  viewMode: t.viewMode
2828
- })), V = N(() => ({
2828
+ })), V = O(() => ({
2829
2829
  showSearch: t.showSearch,
2830
2830
  showReset: t.showReset,
2831
2831
  searchButtonText: t.searchButtonText,
@@ -2839,18 +2839,18 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
2839
2839
  saveQuickQueryFun: t.saveQuickQueryFun,
2840
2840
  singleLine: t.singleLine
2841
2841
  }));
2842
- function B(A) {
2842
+ function B(R) {
2843
2843
  var b;
2844
- c.value = A, a("search", A), (b = s.value) == null || b.reload();
2844
+ c.value = R, a("search", R), (b = s.value) == null || b.reload();
2845
2845
  }
2846
2846
  function U() {
2847
- var A;
2848
- c.value = lt(), a("reset"), (A = s.value) == null || A.reload();
2847
+ var R;
2848
+ c.value = lt(), a("reset"), (R = s.value) == null || R.reload();
2849
2849
  }
2850
- return v({
2850
+ return y({
2851
2851
  table: s,
2852
2852
  filterPanel: S
2853
- }), (A, b) => (n(), k("div", Rn, [
2853
+ }), (R, b) => (n(), k("div", Rn, [
2854
2854
  f(Ft, Ze({
2855
2855
  ref_key: "filterPanelRef",
2856
2856
  ref: S,
@@ -2861,7 +2861,7 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
2861
2861
  "onUpdate:quickQueries": b[0] || (b[0] = (_) => a("update:quickQueries", _))
2862
2862
  }), {
2863
2863
  default: o(() => [
2864
- ee(A.$slots, "default", {}, void 0, !0)
2864
+ ee(R.$slots, "default", {}, void 0, !0)
2865
2865
  ]),
2866
2866
  _: 3
2867
2867
  }, 16),
@@ -2871,10 +2871,10 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
2871
2871
  table: s.value,
2872
2872
  "show-action-menu-button": t.showActionMenuButton
2873
2873
  }, Be({ _: 2 }, [
2874
- A.$slots["command-bar"] ? {
2874
+ R.$slots["command-bar"] ? {
2875
2875
  name: "default",
2876
2876
  fn: o(() => [
2877
- ee(A.$slots, "command-bar", {}, void 0, !0)
2877
+ ee(R.$slots, "command-bar", {}, void 0, !0)
2878
2878
  ]),
2879
2879
  key: "0"
2880
2880
  } : void 0
@@ -2890,38 +2890,38 @@ import './index.css';const ll = { class: "export-options" }, nl = { class: "expo
2890
2890
  "onUpdate:columnResizable": b[4] || (b[4] = (_) => a("update:columnResizable", _)),
2891
2891
  "onUpdate:stickyHeader": b[5] || (b[5] = (_) => a("update:stickyHeader", _))
2892
2892
  }), Be({ _: 2 }, [
2893
- A.$slots.card ? {
2893
+ R.$slots.card ? {
2894
2894
  name: "card",
2895
2895
  fn: o((_) => [
2896
- ee(A.$slots, "card", Ie(Te(_)), void 0, !0)
2896
+ ee(R.$slots, "card", Ie(Te(_)), void 0, !0)
2897
2897
  ]),
2898
2898
  key: "0"
2899
2899
  } : void 0,
2900
- A.$slots.list ? {
2900
+ R.$slots.list ? {
2901
2901
  name: "list",
2902
2902
  fn: o((_) => [
2903
- ee(A.$slots, "list", Ie(Te(_)), void 0, !0)
2903
+ ee(R.$slots, "list", Ie(Te(_)), void 0, !0)
2904
2904
  ]),
2905
2905
  key: "1"
2906
2906
  } : void 0,
2907
- A.$slots.empty ? {
2907
+ R.$slots.empty ? {
2908
2908
  name: "empty",
2909
2909
  fn: o((_) => [
2910
- ee(A.$slots, "empty", Ie(Te(_)), void 0, !0)
2910
+ ee(R.$slots, "empty", Ie(Te(_)), void 0, !0)
2911
2911
  ]),
2912
2912
  key: "2"
2913
2913
  } : void 0,
2914
- A.$slots.loading ? {
2914
+ R.$slots.loading ? {
2915
2915
  name: "loading",
2916
2916
  fn: o((_) => [
2917
- ee(A.$slots, "loading", Ie(Te(_)), void 0, !0)
2917
+ ee(R.$slots, "loading", Ie(Te(_)), void 0, !0)
2918
2918
  ]),
2919
2919
  key: "3"
2920
2920
  } : void 0,
2921
- A.$slots.footer ? {
2921
+ R.$slots.footer ? {
2922
2922
  name: "footer",
2923
2923
  fn: o((_) => [
2924
- ee(A.$slots, "footer", Ie(Te(_)), void 0, !0)
2924
+ ee(R.$slots, "footer", Ie(Te(_)), void 0, !0)
2925
2925
  ]),
2926
2926
  key: "4"
2927
2927
  } : void 0
@@ -2948,8 +2948,8 @@ const zn = /* @__PURE__ */ le({
2948
2948
  saver: { type: Function }
2949
2949
  },
2950
2950
  emits: ["update:visible", "saved"],
2951
- setup(e, { emit: v }) {
2952
- const l = e, t = v, a = E({}), c = E([]);
2951
+ setup(e, { emit: y }) {
2952
+ const l = e, t = y, a = E({}), c = E([]);
2953
2953
  ce(
2954
2954
  () => l.visible,
2955
2955
  (d) => {
@@ -2972,7 +2972,7 @@ const zn = /* @__PURE__ */ le({
2972
2972
  c.value = V, !(V.length > 0) && (t("saved", h), t("update:visible", !1));
2973
2973
  }
2974
2974
  return (d, h) => {
2975
- const V = C("el-alert"), B = C("el-input"), U = C("el-form-item"), A = C("el-form"), b = C("el-button"), _ = C("el-dialog");
2975
+ const V = C("el-alert"), B = C("el-input"), U = C("el-form-item"), R = C("el-form"), b = C("el-button"), _ = C("el-dialog");
2976
2976
  return n(), x(_, {
2977
2977
  "model-value": e.visible,
2978
2978
  title: e.row ? `编辑第 ${e.row.rowNumber} 行` : "编辑数据行",
@@ -3007,17 +3007,17 @@ const zn = /* @__PURE__ */ le({
3007
3007
  "show-icon": ""
3008
3008
  }, {
3009
3009
  default: o(() => [
3010
- (n(!0), k(G, null, oe(c.value, (q, Y) => (n(), k("div", { key: Y }, T(q), 1))), 128))
3010
+ (n(!0), k(j, null, oe(c.value, (q, N) => (n(), k("div", { key: N }, Q(q), 1))), 128))
3011
3011
  ]),
3012
3012
  _: 1
3013
3013
  })) : z("", !0),
3014
- f(A, {
3014
+ f(R, {
3015
3015
  "label-width": "92px",
3016
3016
  onSubmit: h[0] || (h[0] = ct(() => {
3017
3017
  }, ["prevent"]))
3018
3018
  }, {
3019
3019
  default: o(() => [
3020
- (n(!0), k(G, null, oe(e.columns, (q) => (n(), x(U, {
3020
+ (n(!0), k(j, null, oe(e.columns, (q) => (n(), x(U, {
3021
3021
  key: q.name,
3022
3022
  label: q.name,
3023
3023
  required: !q.optional
@@ -3025,7 +3025,7 @@ const zn = /* @__PURE__ */ le({
3025
3025
  default: o(() => [
3026
3026
  f(B, {
3027
3027
  modelValue: a.value[q.name],
3028
- "onUpdate:modelValue": (Y) => a.value[q.name] = Y,
3028
+ "onUpdate:modelValue": (N) => a.value[q.name] = N,
3029
3029
  placeholder: q.optional ? "可留空" : `请输入${q.name}`,
3030
3030
  onKeyup: Ge(S, ["enter"])
3031
3031
  }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
@@ -3071,7 +3071,7 @@ const zn = /* @__PURE__ */ le({
3071
3071
  autoScroll: { type: Boolean, default: !0 }
3072
3072
  },
3073
3073
  emits: ["loaded", "selection-change", "processed", "row-update", "row-remove"],
3074
- setup(e, { expose: v, emit: l }) {
3074
+ setup(e, { expose: y, emit: l }) {
3075
3075
  const t = e, a = l, {
3076
3076
  rows: c,
3077
3077
  fileName: s,
@@ -3081,18 +3081,18 @@ const zn = /* @__PURE__ */ le({
3081
3081
  stopping: V,
3082
3082
  processingTotal: B,
3083
3083
  progressDone: U,
3084
- progressSuccess: A,
3084
+ progressSuccess: R,
3085
3085
  progressFailed: b,
3086
3086
  hasData: _,
3087
3087
  invalidCount: q,
3088
- successCount: Y,
3089
- failedCount: K,
3090
- selectedCount: j,
3088
+ successCount: N,
3089
+ failedCount: J,
3090
+ selectedCount: K,
3091
3091
  pendingCount: i,
3092
- loadFile: y,
3093
- syncSelection: R,
3094
- saveRowEdit: O,
3095
- removeRow: Q,
3092
+ loadFile: v,
3093
+ syncSelection: A,
3094
+ saveRowEdit: I,
3095
+ removeRow: Y,
3096
3096
  startProcessing: re,
3097
3097
  stopProcessing: ue,
3098
3098
  clear: X
@@ -3106,23 +3106,23 @@ const zn = /* @__PURE__ */ le({
3106
3106
  processing: { label: "处理中", type: "warning" },
3107
3107
  success: { label: "成功", type: "success" },
3108
3108
  failed: { label: "失败", type: "danger" }
3109
- }, se = N(
3109
+ }, se = O(
3110
3110
  () => Object.keys(H).map((g) => ({
3111
3111
  text: `${H[g].label}(${c.value.filter((P) => P.status === g).length})`,
3112
3112
  value: g
3113
3113
  }))
3114
3114
  );
3115
- function I(g, P) {
3115
+ function T(g, P) {
3116
3116
  return P.status === g;
3117
3117
  }
3118
3118
  function $(g) {
3119
3119
  var pe, Ce;
3120
3120
  if (!t.autoScroll) return;
3121
- const P = (pe = w.value) == null ? void 0 : pe.$el, W = P == null ? void 0 : P.querySelector(".el-table__body-wrapper .el-scrollbar__wrap"), ae = P == null ? void 0 : P.querySelector(".el-table__body-wrapper tbody");
3122
- if (!P || !W || !ae) return;
3121
+ const P = (pe = w.value) == null ? void 0 : pe.$el, G = P == null ? void 0 : P.querySelector(".el-table__body-wrapper .el-scrollbar__wrap"), ae = P == null ? void 0 : P.querySelector(".el-table__body-wrapper tbody");
3122
+ if (!P || !G || !ae) return;
3123
3123
  const r = c.value.findIndex((Rt) => Rt.rowNumber === g), te = ae.querySelectorAll("tr")[r];
3124
3124
  if (!te) return;
3125
- const de = W.getBoundingClientRect(), be = te.getBoundingClientRect(), ne = Math.max(0, W.scrollHeight - W.clientHeight), he = W.scrollTop + (be.top - de.top) - (W.clientHeight - be.height) / 2;
3125
+ const de = G.getBoundingClientRect(), be = te.getBoundingClientRect(), ne = Math.max(0, G.scrollHeight - G.clientHeight), he = G.scrollTop + (be.top - de.top) - (G.clientHeight - be.height) / 2;
3126
3126
  (Ce = w.value) == null || Ce.setScrollTop(Math.min(ne, Math.max(0, Math.round(he))));
3127
3127
  }
3128
3128
  ce(
@@ -3135,37 +3135,37 @@ const zn = /* @__PURE__ */ le({
3135
3135
  }
3136
3136
  );
3137
3137
  const F = E(0), D = E(0);
3138
- let J;
3139
- const L = N(() => {
3138
+ let W;
3139
+ const L = O(() => {
3140
3140
  const g = B.value;
3141
3141
  return g <= 0 ? 0 : Math.min(100, U.value / g * 100);
3142
3142
  });
3143
3143
  function Z() {
3144
3144
  return `${U.value}/${B.value}`;
3145
3145
  }
3146
- const ve = N(() => {
3146
+ const ve = O(() => {
3147
3147
  if (!h.value || U.value === 0) return "预计剩余 计算中…";
3148
- const P = (D.value - F.value) / U.value, W = B.value - U.value;
3149
- return `预计剩余 ${_e(P * W)}`;
3148
+ const P = (D.value - F.value) / U.value, G = B.value - U.value;
3149
+ return `预计剩余 ${_e(P * G)}`;
3150
3150
  });
3151
3151
  function _e(g) {
3152
3152
  const P = Math.max(0, Math.ceil(g / 1e3));
3153
3153
  if (P < 60) return `${P} 秒`;
3154
- const W = Math.floor(P / 60), ae = P % 60;
3155
- return ae > 0 ? `${W} 分 ${ae} 秒` : `${W} 分`;
3154
+ const G = Math.floor(P / 60), ae = P % 60;
3155
+ return ae > 0 ? `${G} 分 ${ae} 秒` : `${G} 分`;
3156
3156
  }
3157
3157
  ce(h, (g) => {
3158
- g ? (F.value = Date.now(), D.value = F.value, J = setInterval(() => {
3158
+ g ? (F.value = Date.now(), D.value = F.value, W = setInterval(() => {
3159
3159
  D.value = Date.now();
3160
- }, 500)) : J && (clearInterval(J), J = void 0);
3160
+ }, 500)) : W && (clearInterval(W), W = void 0);
3161
3161
  }), Ye(() => {
3162
- J && clearInterval(J);
3162
+ W && clearInterval(W);
3163
3163
  });
3164
3164
  function fe() {
3165
3165
  var g;
3166
3166
  (g = p.value) == null || g.click();
3167
3167
  }
3168
- const we = E(0), xe = N(() => we.value > 0);
3168
+ const we = E(0), xe = O(() => we.value > 0);
3169
3169
  function Fe(g) {
3170
3170
  var P;
3171
3171
  return Array.from(((P = g.dataTransfer) == null ? void 0 : P.types) ?? []).includes("Files");
@@ -3173,8 +3173,8 @@ const zn = /* @__PURE__ */ le({
3173
3173
  function Oe(g) {
3174
3174
  const P = t.accept.split(",").map((ae) => ae.trim().toLowerCase()).filter(Boolean);
3175
3175
  if (P.length === 0) return !0;
3176
- const W = g.name.toLowerCase();
3177
- return P.some((ae) => W.endsWith(ae));
3176
+ const G = g.name.toLowerCase();
3177
+ return P.some((ae) => G.endsWith(ae));
3178
3178
  }
3179
3179
  async function Re(g) {
3180
3180
  var P;
@@ -3184,20 +3184,20 @@ const zn = /* @__PURE__ */ le({
3184
3184
  return;
3185
3185
  }
3186
3186
  try {
3187
- const W = await y(g);
3188
- a("loaded", W), await je();
3187
+ const G = await v(g);
3188
+ a("loaded", G), await je();
3189
3189
  for (const ae of c.value)
3190
3190
  ae.status !== "invalid" && ((P = w.value) == null || P.toggleRowSelection(ae, !0));
3191
- ye.success(`已加载 ${W.length} 行(工作表「${S.value}」)`);
3192
- } catch (W) {
3193
- ye.error(W instanceof Error ? W.message : String(W));
3191
+ ye.success(`已加载 ${G.length} 行(工作表「${S.value}」)`);
3192
+ } catch (G) {
3193
+ ye.error(G instanceof Error ? G.message : String(G));
3194
3194
  }
3195
3195
  }
3196
3196
  }
3197
3197
  async function Me(g) {
3198
3198
  var ae;
3199
- const P = g.target, W = (ae = P.files) == null ? void 0 : ae[0];
3200
- P.value = "", W && await Re(W);
3199
+ const P = g.target, G = (ae = P.files) == null ? void 0 : ae[0];
3200
+ P.value = "", G && await Re(G);
3201
3201
  }
3202
3202
  function qe(g) {
3203
3203
  Fe(g) && (we.value += 1);
@@ -3209,14 +3209,14 @@ const zn = /* @__PURE__ */ le({
3209
3209
  Fe(g) && (we.value = Math.max(0, we.value - 1));
3210
3210
  }
3211
3211
  function Le(g) {
3212
- var W, ae;
3212
+ var G, ae;
3213
3213
  if (!Fe(g)) return;
3214
3214
  g.preventDefault(), we.value = 0;
3215
- const P = (ae = (W = g.dataTransfer) == null ? void 0 : W.files) == null ? void 0 : ae[0];
3215
+ const P = (ae = (G = g.dataTransfer) == null ? void 0 : G.files) == null ? void 0 : ae[0];
3216
3216
  P && Re(P);
3217
3217
  }
3218
3218
  function Ue(g) {
3219
- R(g), a("selection-change", g);
3219
+ A(g), a("selection-change", g);
3220
3220
  }
3221
3221
  function Ke(g) {
3222
3222
  return g.status !== "invalid";
@@ -3257,11 +3257,11 @@ const zn = /* @__PURE__ */ le({
3257
3257
  } catch {
3258
3258
  return;
3259
3259
  }
3260
- Q(g), a("row-remove", g), ye.success(`已删除第 ${g.rowNumber} 行`);
3260
+ Y(g), a("row-remove", g), ye.success(`已删除第 ${g.rowNumber} 行`);
3261
3261
  }
3262
3262
  }
3263
- return v({ openFilePicker: fe, startProcessing: Ee, stopProcessing: ue, clear: X }), (g, P) => {
3264
- const W = C("el-button"), ae = C("el-progress"), r = C("el-table-column"), te = C("el-tag"), de = C("el-table"), be = pt("loading");
3263
+ return y({ openFilePicker: fe, startProcessing: Ee, stopProcessing: ue, clear: X }), (g, P) => {
3264
+ const G = C("el-button"), ae = C("el-progress"), r = C("el-table-column"), te = C("el-tag"), de = C("el-table"), be = pt("loading");
3265
3265
  return n(), k("div", {
3266
3266
  class: "yk-import-excel",
3267
3267
  onDragenter: qe,
@@ -3278,7 +3278,7 @@ const zn = /* @__PURE__ */ le({
3278
3278
  onChange: Me
3279
3279
  }, null, 40, Dn),
3280
3280
  m("div", En, [
3281
- f(W, {
3281
+ f(G, {
3282
3282
  type: "primary",
3283
3283
  loading: u(d),
3284
3284
  onClick: fe
@@ -3288,29 +3288,29 @@ const zn = /* @__PURE__ */ le({
3288
3288
  ])]),
3289
3289
  _: 1
3290
3290
  }, 8, ["loading"]),
3291
- f(W, {
3291
+ f(G, {
3292
3292
  type: "success",
3293
3293
  loading: u(h),
3294
3294
  disabled: u(i) === 0,
3295
3295
  onClick: Ee
3296
3296
  }, {
3297
3297
  default: o(() => [
3298
- M(" 开始处理" + T(u(i) > 0 ? `(${u(i)} 行)` : ""), 1)
3298
+ M(" 开始处理" + Q(u(i) > 0 ? `(${u(i)} 行)` : ""), 1)
3299
3299
  ]),
3300
3300
  _: 1
3301
3301
  }, 8, ["loading", "disabled"]),
3302
- u(h) ? (n(), x(W, {
3302
+ u(h) ? (n(), x(G, {
3303
3303
  key: 0,
3304
3304
  type: "danger",
3305
3305
  disabled: u(V),
3306
3306
  onClick: u(ue)
3307
3307
  }, {
3308
3308
  default: o(() => [
3309
- M(T(u(V) ? "正在停止…" : "停止"), 1)
3309
+ M(Q(u(V) ? "正在停止…" : "停止"), 1)
3310
3310
  ]),
3311
3311
  _: 1
3312
3312
  }, 8, ["disabled", "onClick"])) : z("", !0),
3313
- f(W, {
3313
+ f(G, {
3314
3314
  disabled: !u(_) || u(h),
3315
3315
  onClick: u(X)
3316
3316
  }, {
@@ -3324,15 +3324,15 @@ const zn = /* @__PURE__ */ le({
3324
3324
  class: "yk-import-excel__file-name",
3325
3325
  title: u(s)
3326
3326
  }, [
3327
- M(" 📄 " + T(u(s)), 1),
3328
- u(S) ? (n(), k(G, { key: 0 }, [
3329
- M("(工作表:" + T(u(S)) + ")", 1)
3327
+ M(" 📄 " + Q(u(s)), 1),
3328
+ u(S) ? (n(), k(j, { key: 0 }, [
3329
+ M("(工作表:" + Q(u(S)) + ")", 1)
3330
3330
  ], 64)) : z("", !0)
3331
3331
  ], 8, In)) : z("", !0),
3332
3332
  u(_) ? (n(), k("div", Tn, [
3333
- m("span", Qn, "共 " + T(u(c).length) + " 行", 1),
3334
- m("span", Yn, "已选 " + T(u(j)), 1),
3335
- m("span", Nn, "校验失败 " + T(u(q)), 1)
3333
+ m("span", Qn, "共 " + Q(u(c).length) + " 行", 1),
3334
+ m("span", Yn, "已选 " + Q(u(K)), 1),
3335
+ m("span", Nn, "校验失败 " + Q(u(q)), 1)
3336
3336
  ])) : z("", !0)
3337
3337
  ]),
3338
3338
  u(h) ? (n(), k("div", On, [
@@ -3344,10 +3344,10 @@ const zn = /* @__PURE__ */ le({
3344
3344
  class: "yk-import-excel__progress-bar"
3345
3345
  }, null, 8, ["percentage"]),
3346
3346
  m("span", qn, [
3347
- M(" 成功 " + T(u(A)), 1),
3348
- m("span", Ln, " / 失败 " + T(u(b)), 1)
3347
+ M(" 成功 " + Q(u(R)), 1),
3348
+ m("span", Ln, " / 失败 " + Q(u(b)), 1)
3349
3349
  ]),
3350
- m("span", Un, T(ve.value), 1)
3350
+ m("span", Un, Q(ve.value), 1)
3351
3351
  ])) : z("", !0),
3352
3352
  Xe((n(), k("div", Kn, [
3353
3353
  u(_) ? (n(), x(de, {
@@ -3377,18 +3377,18 @@ const zn = /* @__PURE__ */ le({
3377
3377
  default: o(({ row: ne, $index: he }) => [
3378
3378
  m("span", {
3379
3379
  title: `Excel 第 ${ne.rowNumber} 行`
3380
- }, T(he + 1), 9, Hn)
3380
+ }, Q(he + 1), 9, Hn)
3381
3381
  ]),
3382
3382
  _: 1
3383
3383
  }),
3384
- (n(!0), k(G, null, oe(t.columns, (ne) => (n(), x(r, {
3384
+ (n(!0), k(j, null, oe(t.columns, (ne) => (n(), x(r, {
3385
3385
  key: ne.name,
3386
3386
  label: ne.name,
3387
3387
  "min-width": "120",
3388
3388
  "show-overflow-tooltip": ""
3389
3389
  }, {
3390
3390
  default: o(({ row: he }) => [
3391
- M(T(u(Mt)(he.data[ne.name])), 1)
3391
+ M(Q(u(Mt)(he.data[ne.name])), 1)
3392
3392
  ]),
3393
3393
  _: 2
3394
3394
  }, 1032, ["label"]))), 128)),
@@ -3398,7 +3398,7 @@ const zn = /* @__PURE__ */ le({
3398
3398
  fixed: "right",
3399
3399
  "class-name": "yk-import-excel__status-cell",
3400
3400
  filters: se.value,
3401
- "filter-method": I,
3401
+ "filter-method": T,
3402
3402
  "filter-multiple": !1,
3403
3403
  "filter-placement": "bottom-end"
3404
3404
  }, {
@@ -3410,11 +3410,11 @@ const zn = /* @__PURE__ */ le({
3410
3410
  }, {
3411
3411
  default: o(() => [
3412
3412
  ne.status === "processing" ? (n(), k("span", jn)) : z("", !0),
3413
- M(" " + T(H[ne.status].label), 1)
3413
+ M(" " + Q(H[ne.status].label), 1)
3414
3414
  ]),
3415
3415
  _: 2
3416
3416
  }, 1032, ["type"]),
3417
- ne.status === "invalid" ? (n(), k("div", Gn, T(ne.errors.join(";")), 1)) : ne.message ? (n(), k("div", Wn, T(ne.message), 1)) : z("", !0)
3417
+ ne.status === "invalid" ? (n(), k("div", Gn, Q(ne.errors.join(";")), 1)) : ne.message ? (n(), k("div", Wn, Q(ne.message), 1)) : z("", !0)
3418
3418
  ]),
3419
3419
  _: 1
3420
3420
  }, 8, ["filters"]),
@@ -3425,8 +3425,8 @@ const zn = /* @__PURE__ */ le({
3425
3425
  align: "center"
3426
3426
  }, {
3427
3427
  default: o(({ row: ne }) => [
3428
- Pe(ne) ? (n(), k(G, { key: 0 }, [
3429
- f(W, {
3428
+ Pe(ne) ? (n(), k(j, { key: 0 }, [
3429
+ f(G, {
3430
3430
  link: "",
3431
3431
  type: "primary",
3432
3432
  size: "small",
@@ -3450,7 +3450,7 @@ const zn = /* @__PURE__ */ le({
3450
3450
  ])]),
3451
3451
  _: 1
3452
3452
  }, 8, ["onClick"]),
3453
- f(W, {
3453
+ f(G, {
3454
3454
  link: "",
3455
3455
  type: "danger",
3456
3456
  size: "small",
@@ -3498,7 +3498,7 @@ const zn = /* @__PURE__ */ le({
3498
3498
  onClick: fe
3499
3499
  }, [
3500
3500
  P[5] || (P[5] = ot('<svg class="yk-import-excel__empty-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" data-v-2d035039><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" data-v-2d035039></path><polyline points="14 2 14 8 20 8" data-v-2d035039></polyline><path d="M12 18v-6" data-v-2d035039></path><polyline points="9.5 14.5 12 12l2.5 2.5" data-v-2d035039></polyline></svg><p class="yk-import-excel__empty-title" data-v-2d035039>点击选择 Excel 文件,或将文件拖拽到此处</p>', 2)),
3501
- m("p", Xn, "支持 " + T(t.accept) + " 格式,首行需为表头", 1)
3501
+ m("p", Xn, "支持 " + Q(t.accept) + " 格式,首行需为表头", 1)
3502
3502
  ]))
3503
3503
  ])), [
3504
3504
  [be, u(d)]
@@ -3511,7 +3511,7 @@ const zn = /* @__PURE__ */ le({
3511
3511
  "onUpdate:visible": P[0] || (P[0] = (ne) => ze.value = ne),
3512
3512
  row: ke.value,
3513
3513
  columns: t.columns,
3514
- saver: u(O),
3514
+ saver: u(I),
3515
3515
  onSaved: He
3516
3516
  }, null, 8, ["visible", "row", "columns", "saver"])
3517
3517
  ], 32);
@@ -3572,45 +3572,45 @@ const zn = /* @__PURE__ */ le({
3572
3572
  exportPageSize: { type: Number, default: 1e3 }
3573
3573
  },
3574
3574
  emits: ["data-loaded", "error", "selection-change"],
3575
- setup(e, { expose: v, emit: l }) {
3576
- const t = e, a = l, c = E([]), s = E(!1), S = E(!1), d = E(!0), h = E(null), V = N(() => c.value.length), B = E(null), {
3575
+ setup(e, { expose: y, emit: l }) {
3576
+ const t = e, a = l, c = E([]), s = E(!1), S = E(!1), d = E(!0), h = E(null), V = O(() => c.value.length), B = E(null), {
3577
3577
  /** 跨页累计选中的行(滚动加载更多不丢失) */
3578
3578
  selectedRows: U,
3579
- isRowSelected: A,
3579
+ isRowSelected: R,
3580
3580
  toggleRowSelection: b,
3581
3581
  clearSelection: _,
3582
3582
  selectAllOnPage: q,
3583
- invertSelectionOnPage: Y
3583
+ invertSelectionOnPage: N
3584
3584
  } = yt({ tableEl: B, rows: c, rowKey: me(t, "rowKey") });
3585
3585
  ce(U, ($) => a("selection-change", [...$]));
3586
- const K = E(0), j = E(null);
3586
+ const J = E(0), K = E(null);
3587
3587
  async function i() {
3588
3588
  if (!t.metaFun) {
3589
- j.value = null;
3589
+ K.value = null;
3590
3590
  return;
3591
3591
  }
3592
3592
  try {
3593
- j.value = await t.metaFun();
3593
+ K.value = await t.metaFun();
3594
3594
  } catch {
3595
- j.value = null;
3595
+ K.value = null;
3596
3596
  }
3597
3597
  }
3598
- const y = N(() => {
3599
- const $ = j.value;
3598
+ const v = O(() => {
3599
+ const $ = K.value;
3600
3600
  if ($)
3601
- return $.columns.map((J, L) => ({ c: J, i: L })).filter(({ c: J }) => J.showForDisplay !== !1).sort((J, L) => (J.c.displayOrder ?? J.i) - (L.c.displayOrder ?? L.i)).map(({ c: J }) => J);
3601
+ return $.columns.map((W, L) => ({ c: W, i: L })).filter(({ c: W }) => W.showForDisplay !== !1).sort((W, L) => (W.c.displayOrder ?? W.i) - (L.c.displayOrder ?? L.i)).map(({ c: W }) => W);
3602
3602
  const F = /* @__PURE__ */ new Set(), D = [];
3603
- for (const J of c.value)
3604
- for (const L of Object.keys(J))
3603
+ for (const W of c.value)
3604
+ for (const L of Object.keys(W))
3605
3605
  F.has(L) || (F.add(L), D.push({ propertyPath: L }));
3606
3606
  return D;
3607
- }), R = N(() => {
3607
+ }), A = O(() => {
3608
3608
  var $;
3609
- return (($ = j.value) == null ? void 0 : $.displayName) ?? "数据";
3610
- }), O = E(null);
3611
- function Q() {
3609
+ return (($ = K.value) == null ? void 0 : $.displayName) ?? "数据";
3610
+ }), I = E(null);
3611
+ function Y() {
3612
3612
  var $;
3613
- ($ = O.value) == null || $.openExportDialog();
3613
+ ($ = I.value) == null || $.openExportDialog();
3614
3614
  }
3615
3615
  async function re($) {
3616
3616
  if ($) {
@@ -3622,7 +3622,7 @@ const zn = /* @__PURE__ */ le({
3622
3622
  }
3623
3623
  try {
3624
3624
  const F = $ ? V.value : 0, D = await t.dataFun({ limit: t.pageSize, offset: F });
3625
- $ ? c.value.push(...D.items) : c.value = D.items, d.value = D.hasNext ?? !1, D.totalCount != null && (K.value = D.totalCount), a("data-loaded", D, $);
3625
+ $ ? c.value.push(...D.items) : c.value = D.items, d.value = D.hasNext ?? !1, D.totalCount != null && (J.value = D.totalCount), a("data-loaded", D, $);
3626
3626
  } catch (F) {
3627
3627
  h.value = F, a("error", F);
3628
3628
  } finally {
@@ -3649,14 +3649,14 @@ const zn = /* @__PURE__ */ le({
3649
3649
  }
3650
3650
  ), H.observe(p.value));
3651
3651
  }
3652
- function I() {
3652
+ function T() {
3653
3653
  H == null || H.disconnect(), H = null;
3654
3654
  }
3655
3655
  return Ve(() => {
3656
3656
  se(), i(), t.immediate && re(!1);
3657
- }), Ye(I), ce(() => t.dataFun, () => X()), ce(() => t.metaFun, () => void i()), ce(() => t.threshold, () => {
3658
- I(), se();
3659
- }), v({
3657
+ }), Ye(T), ce(() => t.dataFun, () => X()), ce(() => t.metaFun, () => void i()), ce(() => t.threshold, () => {
3658
+ T(), se();
3659
+ }), y({
3660
3660
  /** 当前已加载的全部数据 */
3661
3661
  items: c,
3662
3662
  /** 首屏加载态 */
@@ -3674,11 +3674,11 @@ const zn = /* @__PURE__ */ le({
3674
3674
  /** rows 别名:当前已加载的全部数据(与 YsTable 的 rows 同名) */
3675
3675
  rows: c,
3676
3676
  /** 元数据(metaFun 加载结果;未提供 metaFun 或加载失败时为 null) */
3677
- meta: j,
3677
+ meta: K,
3678
3678
  /** 跨页累计选中的行(showCheckbox 开启时有意义) */
3679
3679
  selectedRows: U,
3680
3680
  /** 某行当前是否选中 */
3681
- isRowSelected: A,
3681
+ isRowSelected: R,
3682
3682
  /** 切换某行选中态(selected 缺省时取反) */
3683
3683
  toggleRowSelection: b,
3684
3684
  /** 清空全部选中 */
@@ -3686,25 +3686,25 @@ const zn = /* @__PURE__ */ le({
3686
3686
  /** 选中当前已加载的全部行(不影响「没有加载出来」的行) */
3687
3687
  selectAllOnPage: q,
3688
3688
  /** 反选当前已加载的行 */
3689
- invertSelectionOnPage: Y,
3689
+ invertSelectionOnPage: N,
3690
3690
  /** 打开导出 Excel 对话框(选中 / 当前已加载 / 所有数据) */
3691
- openExportDialog: Q
3691
+ openExportDialog: Y
3692
3692
  }), ($, F) => {
3693
- const D = C("el-checkbox"), J = C("el-empty"), L = C("el-button");
3693
+ const D = C("el-checkbox"), W = C("el-empty"), L = C("el-button");
3694
3694
  return n(), k("div", {
3695
3695
  ref_key: "scrollEl",
3696
3696
  ref: w,
3697
3697
  class: "yk-infinite-list",
3698
3698
  style: nt({ height: e.height })
3699
3699
  }, [
3700
- (n(!0), k(G, null, oe(c.value, (Z, ve) => (n(), k("div", {
3700
+ (n(!0), k(j, null, oe(c.value, (Z, ve) => (n(), k("div", {
3701
3701
  key: String(Z[e.rowKey]),
3702
- class: Se(["yk-infinite-list__item", { "is-selected": e.showCheckbox && u(A)(Z) }])
3702
+ class: Se(["yk-infinite-list__item", { "is-selected": e.showCheckbox && u(R)(Z) }])
3703
3703
  }, [
3704
3704
  e.showCheckbox ? (n(), x(D, {
3705
3705
  key: 0,
3706
3706
  class: "yk-infinite-list__item-checkbox",
3707
- "model-value": u(A)(Z),
3707
+ "model-value": u(R)(Z),
3708
3708
  onChange: (_e) => u(b)(Z, !!_e)
3709
3709
  }, null, 8, ["model-value", "onChange"])) : z("", !0),
3710
3710
  m("div", lo, [
@@ -3712,17 +3712,17 @@ const zn = /* @__PURE__ */ le({
3712
3712
  row: Z,
3713
3713
  index: ve
3714
3714
  }, () => [
3715
- m("pre", no, T(JSON.stringify(Z, null, 2)), 1)
3715
+ m("pre", no, Q(JSON.stringify(Z, null, 2)), 1)
3716
3716
  ], !0)
3717
3717
  ])
3718
3718
  ], 2))), 128)),
3719
3719
  !s.value && c.value.length === 0 && !h.value ? (n(), k("div", oo, [
3720
3720
  ee($.$slots, "empty", {}, () => [
3721
- f(J, { description: "暂无数据" })
3721
+ f(W, { description: "暂无数据" })
3722
3722
  ], !0)
3723
3723
  ])) : h.value ? (n(), k("div", ao, [
3724
3724
  ee($.$slots, "error", { error: h.value }, () => [
3725
- f(J, {
3725
+ f(W, {
3726
3726
  description: `加载失败:${String(h.value)}`
3727
3727
  }, {
3728
3728
  default: o(() => [
@@ -3758,15 +3758,15 @@ const zn = /* @__PURE__ */ le({
3758
3758
  ])) : z("", !0),
3759
3759
  f(bt, {
3760
3760
  ref_key: "exportDialogRef",
3761
- ref: O,
3761
+ ref: I,
3762
3762
  "current-rows": c.value,
3763
3763
  "selected-rows": u(U),
3764
3764
  "data-fun": t.dataFun,
3765
3765
  "export-page-size": t.exportPageSize,
3766
- total: K.value,
3766
+ total: J.value,
3767
3767
  "exportor-func": t.exportorFunc,
3768
- "table-name": R.value,
3769
- columns: y.value,
3768
+ "table-name": A.value,
3769
+ columns: v.value,
3770
3770
  "has-more-page": d.value,
3771
3771
  "export-selected": e.showCheckbox,
3772
3772
  "page-scope-label": "导出当前已加载"
@@ -3838,9 +3838,9 @@ function mo() {
3838
3838
  );
3839
3839
  }
3840
3840
  function fo(e) {
3841
- var Q;
3841
+ var Y;
3842
3842
  const {
3843
- title: v = "",
3843
+ title: y = "",
3844
3844
  width: l = "500px",
3845
3845
  height: t,
3846
3846
  component: a,
@@ -3852,33 +3852,33 @@ function fo(e) {
3852
3852
  closeOnPressEscape: V = !1,
3853
3853
  maximizable: B = !1,
3854
3854
  defaultMaximized: U = !1,
3855
- appContext: A
3855
+ appContext: R
3856
3856
  } = e;
3857
3857
  (B || t != null) && co();
3858
3858
  const b = t == null ? void 0 : typeof t == "number" ? `${t}px` : t, _ = document.createElement("div");
3859
3859
  document.body.appendChild(_);
3860
- let q = null, Y = !1, K;
3861
- const j = () => {
3862
- Y || (Y = !0, at(null, _), _.remove());
3863
- }, i = {
3864
- close: () => K == null ? void 0 : K.close(),
3865
- toggleMaximize: () => K == null ? void 0 : K.toggleMaximize(),
3866
- isMaximized: () => (K == null ? void 0 : K.isMaximized()) ?? !1,
3860
+ let q = null, N = !1;
3861
+ const J = () => {
3862
+ N || (N = !0, at(null, _), _.remove());
3863
+ }, K = {
3864
+ close: () => I == null ? void 0 : I.close(),
3865
+ toggleMaximize: () => I == null ? void 0 : I.toggleMaximize(),
3866
+ isMaximized: () => (I == null ? void 0 : I.isMaximized()) ?? !1,
3867
3867
  getContentInstance: () => q
3868
- }, y = le({
3868
+ }, i = le({
3869
3869
  name: "YsModalHost",
3870
3870
  setup(re, { expose: ue }) {
3871
3871
  const X = E(!0), w = E(-1), p = E(B && U), H = () => {
3872
3872
  B && (p.value = !p.value);
3873
3873
  }, se = () => {
3874
3874
  X.value = !1;
3875
- }, I = () => {
3875
+ }, T = () => {
3876
3876
  w.value >= 0 || (S == null || S(), X.value = !1);
3877
3877
  }, $ = async (F, D) => {
3878
3878
  if (!(w.value >= 0)) {
3879
3879
  w.value = D;
3880
3880
  try {
3881
- await F.execute(i, q);
3881
+ await F.execute(K, q);
3882
3882
  } finally {
3883
3883
  w.value = -1;
3884
3884
  }
@@ -3890,9 +3890,9 @@ function fo(e) {
3890
3890
  // Element Plus 2.x 显隐规范:modelValue + update:modelValue
3891
3891
  modelValue: X.value,
3892
3892
  "onUpdate:modelValue": (F) => {
3893
- F || I();
3893
+ F || T();
3894
3894
  },
3895
- title: B ? void 0 : v,
3895
+ title: B ? void 0 : y,
3896
3896
  width: l,
3897
3897
  // 最大化时贴顶(配合样式中 --el-dialog-margin-top:0)
3898
3898
  top: p.value ? "0vh" : void 0,
@@ -3907,7 +3907,7 @@ function fo(e) {
3907
3907
  showClose: w.value < 0,
3908
3908
  destroyOnClose: !0,
3909
3909
  onClosed: () => {
3910
- d == null || d(), j();
3910
+ d == null || d(), J();
3911
3911
  }
3912
3912
  },
3913
3913
  {
@@ -3917,7 +3917,7 @@ function fo(e) {
3917
3917
  // 按钮 absolute 脱离文档流,以 .el-dialog 为包含块定位。
3918
3918
  // EP 的 ✕ 关闭按钮渲染在插槽内容之外,自动保留且定位不受影响。
3919
3919
  header: B ? () => [
3920
- ge("span", { class: "el-dialog__title" }, v),
3920
+ ge("span", { class: "el-dialog__title" }, y),
3921
3921
  ge(
3922
3922
  "button",
3923
3923
  {
@@ -3973,14 +3973,16 @@ function fo(e) {
3973
3973
  }
3974
3974
  );
3975
3975
  }
3976
- }), R = f(y), O = A ?? Wt();
3977
- return O || console.warn(
3976
+ }), v = f(i), A = R ?? Wt();
3977
+ A || console.warn(
3978
3978
  "[openModal] 未检测到 AppContext:弹窗内的全局组件(如 el-form)与 inject 将不可用。请在应用入口 app.use(YsCrudElementPlus),或调用 openModal 时传入 appContext(getCurrentInstance()?.appContext)。"
3979
- ), R.appContext = O, at(R, _), K = (Q = R.component) == null ? void 0 : Q.exposed, i;
3979
+ ), v.appContext = A, at(v, _);
3980
+ const I = (Y = v.component) == null ? void 0 : Y.exposed;
3981
+ return K;
3980
3982
  }
3981
3983
  function bo(e) {
3982
3984
  const {
3983
- confirmText: v = "确定",
3985
+ confirmText: y = "确定",
3984
3986
  cancelText: l = "取消",
3985
3987
  confirmType: t = "primary",
3986
3988
  onConfirm: a,
@@ -3990,7 +3992,7 @@ function bo(e) {
3990
3992
  { name: "cancel", desc: l, execute: (S) => S.close() },
3991
3993
  {
3992
3994
  name: "confirm",
3993
- desc: v,
3995
+ desc: y,
3994
3996
  type: t,
3995
3997
  execute: async (S, d) => {
3996
3998
  if (!a) {