@ys-knife-crud/element-plus 0.0.15 → 0.0.16

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,10 +1,10 @@
1
- import { defineComponent as te, toRef as se, computed as O, resolveComponent as C, openBlock as o, createElementBlock as v, Fragment as U, createVNode as p, isRef as be, unref as u, withCtx as n, createElementVNode as m, renderList as le, createBlock as x, createTextVNode as $, toDisplayString as I, createCommentVNode as D, resolveDynamicComponent as De, normalizeClass as we, renderSlot as ee, Teleport as At, withModifiers as mt, normalizeStyle as at, ref as T, onMounted as Ce, watch as ce, useSlots as Dt, onBeforeUnmount as Ue, createSlots as Ae, Transition as Bt, resolveDirective as ft, withDirectives as tt, mergeProps as lt, inject as vt, provide as yt, withKeys as Ze, nextTick as Xe, shallowRef as Et, normalizeProps as Oe, guardReactiveProps as qe, createStaticVNode as st, h as _e, isVNode as It, render as it } from "vue";
2
- import { useExportExcel as Tt, useCollectData as Yt, useCustomConfig as Qt, visibleActions as ot, isEnabled as gt, useDefault as Nt, useSelection as _t, useRowActions as Ot, filterNodesByKeyword as qt, collectGroupKeys as Lt, useMainPanelNodes as Ut, useMainPanelTabs as Kt, findNode as rt, isGroupNode as ut, useAdvancedFilter as kt, useFilterPanel as jt, FilterPanelKey as bt, useTextFilterItem as Ht, useDateFilterItem as Gt, useDateRangeFilterItem as Wt, useEnumFilterItem as Jt, useImportExcel as Xt, getDefaultModalAppContext as Zt, setDefaultModalAppContext as el } from "@ys-knife-crud/vue";
3
- import { ElMessage as ge, ElMessageBox as ht, ElDialog as tl, ElButton as ll } from "element-plus";
4
- import { isConditionGroup as nt, OPERATOR_LABELS as ol, isNullOperator as nl, emptyFilter as Le, FilterInfo as al } from "@ys-knife-crud/core";
5
- import { fromArray as En, fromBool as In, fromObjectItems as Tn, fromOptions as Yn } from "@ys-knife-crud/core";
6
- import dt from "dayjs";
7
- import './index.css';const sl = { class: "export-options" }, il = { class: "export-progress-text" }, rl = { class: "export-cancelled-text" }, ul = /* @__PURE__ */ te({
1
+ import { defineComponent as te, toRef as ne, computed as q, resolveComponent as S, openBlock as o, createElementBlock as v, Fragment as K, createVNode as p, isRef as he, unref as s, withCtx as n, createElementVNode as m, renderList as le, createBlock as C, createTextVNode as $, toDisplayString as I, createCommentVNode as B, resolveDynamicComponent as Ae, normalizeClass as Ce, renderSlot as ee, Teleport as Bt, withModifiers as vt, normalizeStyle as st, ref as T, onMounted as Se, watch as ce, useSlots as Et, onBeforeUnmount as Ue, createSlots as ze, Transition as It, resolveDirective as yt, withDirectives as lt, mergeProps as ot, inject as gt, provide as _t, withKeys as et, nextTick as Ze, shallowRef as Tt, normalizeProps as Oe, guardReactiveProps as qe, createStaticVNode as it, h as ge, isVNode as Yt, render as rt } from "vue";
2
+ import { getCellRender as ut, getDefaultFormatter as Qt, formatCellValue as Nt, isConditionGroup as nt, OPERATOR_LABELS as Ot, isNullOperator as qt, emptyFilter as Le, FilterInfo as Lt } from "@ys-knife-crud/core";
3
+ import { fromArray as Qn, fromBool as Nn, fromObjectItems as On, fromOptions as qn } from "@ys-knife-crud/core";
4
+ import { useExportExcel as Ut, useCollectData as Kt, useCustomConfig as jt, visibleActions as at, isEnabled as kt, useDefault as Ht, useSelection as bt, useRowActions as Gt, filterNodesByKeyword as Wt, collectGroupKeys as Jt, useMainPanelNodes as Xt, useMainPanelTabs as Zt, findNode as dt, isGroupNode as ct, useAdvancedFilter as ht, useFilterPanel as el, FilterPanelKey as wt, useTextFilterItem as tl, useDateFilterItem as ll, useDateRangeFilterItem as ol, useEnumFilterItem as nl, useImportExcel as al, getDefaultModalAppContext as sl, setDefaultModalAppContext as il } from "@ys-knife-crud/vue";
5
+ import { ElMessage as ye, ElMessageBox as xt, ElDialog as rl, ElButton as ul } from "element-plus";
6
+ import pt from "dayjs";
7
+ import './index.css';const dl = { class: "export-options" }, cl = { class: "export-progress-text" }, pl = { class: "export-cancelled-text" }, ml = /* @__PURE__ */ te({
8
8
  __name: "exportExcelDialog",
9
9
  props: {
10
10
  dataFun: { type: Function },
@@ -21,61 +21,61 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
21
21
  pageScopeLabel: {}
22
22
  },
23
23
  setup(e, { expose: y }) {
24
- const l = e, {
25
- exportOptions: t,
24
+ const t = e, {
25
+ exportOptions: l,
26
26
  exportDialogVisible: a,
27
27
  exporting: f,
28
- exportFetched: i,
28
+ exportFetched: r,
29
29
  exportTotal: d,
30
- exportTotalKnown: r,
30
+ exportTotalKnown: u,
31
31
  exportEtaSeconds: w,
32
32
  exportPercent: F,
33
33
  exportCancelledVisible: A,
34
- exportCancelledRows: L,
35
- onExportClick: B,
34
+ exportCancelledRows: U,
35
+ onExportClick: E,
36
36
  doExport: h,
37
37
  cancelExport: _,
38
38
  keepPartialExport: Y,
39
- discardPartialExport: Q
40
- } = Tt({
41
- props: l,
39
+ discardPartialExport: N
40
+ } = Ut({
41
+ props: t,
42
42
  // reactive — dataFun/exportSelected/exportorFunc 自动追踪
43
- tableName: se(l, "tableName"),
44
- columns: se(l, "columns"),
45
- currentRows: se(l, "currentRows"),
46
- selectedRows: se(l, "selectedRows"),
47
- total: se(l, "total"),
48
- totalKnown: se(l, "totalKnown"),
49
- exportPageSize: se(l, "exportPageSize"),
50
- hasMorePage: se(l, "hasMorePage"),
51
- pageScopeLabel: se(l, "pageScopeLabel")
52
- }), J = O(() => {
53
- const K = w.value;
54
- if (K == null) return null;
55
- if (K < 60) return `${K} 秒`;
56
- const s = Math.floor(K / 60), g = K % 60;
57
- return g > 0 ? `${s} 分 ${g} 秒` : `${s} 分`;
43
+ tableName: ne(t, "tableName"),
44
+ columns: ne(t, "columns"),
45
+ currentRows: ne(t, "currentRows"),
46
+ selectedRows: ne(t, "selectedRows"),
47
+ total: ne(t, "total"),
48
+ totalKnown: ne(t, "totalKnown"),
49
+ exportPageSize: ne(t, "exportPageSize"),
50
+ hasMorePage: ne(t, "hasMorePage"),
51
+ pageScopeLabel: ne(t, "pageScopeLabel")
52
+ }), J = q(() => {
53
+ const j = w.value;
54
+ if (j == null) return null;
55
+ if (j < 60) return `${j} 秒`;
56
+ const i = Math.floor(j / 60), g = j % 60;
57
+ return g > 0 ? `${i} 分 ${g} 秒` : `${i} 分`;
58
58
  });
59
- return y({ openExportDialog: B }), (K, s) => {
60
- const g = C("el-button"), z = C("el-dialog"), N = C("el-progress");
61
- return o(), v(U, null, [
59
+ return y({ openExportDialog: E }), (j, i) => {
60
+ const g = S("el-button"), z = S("el-dialog"), O = S("el-progress");
61
+ return o(), v(K, null, [
62
62
  p(z, {
63
- modelValue: u(a),
64
- "onUpdate:modelValue": s[0] || (s[0] = (q) => be(a) ? a.value = q : null),
63
+ modelValue: s(a),
64
+ "onUpdate:modelValue": i[0] || (i[0] = (L) => he(a) ? a.value = L : null),
65
65
  title: "导出 Excel",
66
66
  width: "420px"
67
67
  }, {
68
68
  default: n(() => [
69
- m("div", sl, [
70
- (o(!0), v(U, null, le(u(t), (q) => (o(), x(g, {
71
- key: q.value,
69
+ m("div", dl, [
70
+ (o(!0), v(K, null, le(s(l), (L) => (o(), C(g, {
71
+ key: L.value,
72
72
  class: "export-option",
73
- "data-scope": q.value,
74
- disabled: q.disabled,
75
- onClick: (ue) => u(h)(q.value)
73
+ "data-scope": L.value,
74
+ disabled: L.disabled,
75
+ onClick: (ue) => s(h)(L.value)
76
76
  }, {
77
77
  default: n(() => [
78
- $(I(q.label), 1)
78
+ $(I(L.label), 1)
79
79
  ]),
80
80
  _: 2
81
81
  }, 1032, ["data-scope", "disabled", "onClick"]))), 128))
@@ -84,8 +84,8 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
84
84
  _: 1
85
85
  }, 8, ["modelValue"]),
86
86
  p(z, {
87
- modelValue: u(f),
88
- "onUpdate:modelValue": s[1] || (s[1] = (q) => be(f) ? f.value = q : null),
87
+ modelValue: s(f),
88
+ "onUpdate:modelValue": i[1] || (i[1] = (L) => he(f) ? f.value = L : null),
89
89
  title: "正在导出",
90
90
  width: "420px",
91
91
  "close-on-click-modal": !1,
@@ -94,41 +94,41 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
94
94
  footer: n(() => [
95
95
  p(g, {
96
96
  class: "export-cancel",
97
- onClick: u(_)
97
+ onClick: s(_)
98
98
  }, {
99
- default: n(() => [...s[4] || (s[4] = [
99
+ default: n(() => [...i[4] || (i[4] = [
100
100
  $("取消", -1)
101
101
  ])]),
102
102
  _: 1
103
103
  }, 8, ["onClick"])
104
104
  ]),
105
105
  default: n(() => [
106
- p(N, { percentage: u(F) }, null, 8, ["percentage"]),
107
- m("p", il, [
108
- $(" 已加载 " + I(u(i)), 1),
109
- u(r) ? (o(), v(U, { key: 0 }, [
110
- $(" / " + I(u(d)), 1)
111
- ], 64)) : D("", !0),
112
- s[3] || (s[3] = $(" 条", -1)),
113
- J.value ? (o(), v(U, { key: 1 }, [
106
+ p(O, { percentage: s(F) }, null, 8, ["percentage"]),
107
+ m("p", cl, [
108
+ $(" 已加载 " + I(s(r)), 1),
109
+ s(u) ? (o(), v(K, { key: 0 }, [
110
+ $(" / " + I(s(d)), 1)
111
+ ], 64)) : B("", !0),
112
+ i[3] || (i[3] = $(" 条", -1)),
113
+ J.value ? (o(), v(K, { key: 1 }, [
114
114
  $(",预计剩余约 " + I(J.value), 1)
115
- ], 64)) : D("", !0)
115
+ ], 64)) : B("", !0)
116
116
  ])
117
117
  ]),
118
118
  _: 1
119
119
  }, 8, ["modelValue"]),
120
120
  p(z, {
121
- modelValue: u(A),
122
- "onUpdate:modelValue": s[2] || (s[2] = (q) => be(A) ? A.value = q : null),
121
+ modelValue: s(A),
122
+ "onUpdate:modelValue": i[2] || (i[2] = (L) => he(A) ? A.value = L : null),
123
123
  title: "导出已取消",
124
124
  width: "420px"
125
125
  }, {
126
126
  footer: n(() => [
127
127
  p(g, {
128
128
  class: "export-discard",
129
- onClick: u(Q)
129
+ onClick: s(N)
130
130
  }, {
131
- default: n(() => [...s[5] || (s[5] = [
131
+ default: n(() => [...i[5] || (i[5] = [
132
132
  $("丢弃", -1)
133
133
  ])]),
134
134
  _: 1
@@ -136,16 +136,16 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
136
136
  p(g, {
137
137
  class: "export-keep",
138
138
  type: "primary",
139
- onClick: u(Y)
139
+ onClick: s(Y)
140
140
  }, {
141
- default: n(() => [...s[6] || (s[6] = [
141
+ default: n(() => [...i[6] || (i[6] = [
142
142
  $("保留部分文件", -1)
143
143
  ])]),
144
144
  _: 1
145
145
  }, 8, ["onClick"])
146
146
  ]),
147
147
  default: n(() => [
148
- m("p", rl, " 已写入 " + I(u(L)) + " 条数据,是否保留已导出的部分文件? ", 1)
148
+ m("p", pl, " 已写入 " + I(s(U)) + " 条数据,是否保留已导出的部分文件? ", 1)
149
149
  ]),
150
150
  _: 1
151
151
  }, 8, ["modelValue"])
@@ -153,11 +153,11 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
153
153
  };
154
154
  }
155
155
  }), re = (e, y) => {
156
- const l = e.__vccOpts || e;
157
- for (const [t, a] of y)
158
- l[t] = a;
159
- return l;
160
- }, wt = /* @__PURE__ */ re(ul, [["__scopeId", "data-v-3dd12e29"]]), dl = { class: "collect-options" }, cl = { class: "collect-limit-hint" }, pl = { class: "collect-progress-text" }, ml = /* @__PURE__ */ te({
156
+ const t = e.__vccOpts || e;
157
+ for (const [l, a] of y)
158
+ t[l] = a;
159
+ return t;
160
+ }, Ct = /* @__PURE__ */ re(ml, [["__scopeId", "data-v-3dd12e29"]]), fl = { class: "collect-options" }, vl = { class: "collect-limit-hint" }, yl = { class: "collect-progress-text" }, gl = /* @__PURE__ */ te({
161
161
  __name: "collectDataDialog",
162
162
  props: {
163
163
  dataFun: { type: Function },
@@ -171,79 +171,81 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
171
171
  totalKnown: { type: Boolean },
172
172
  hasMorePage: { type: Boolean },
173
173
  selectable: { type: Boolean },
174
+ columns: {},
174
175
  pageScopeLabel: {}
175
176
  },
176
177
  setup(e, { expose: y }) {
177
- const l = e, {
178
- collectOptions: t,
178
+ const t = e, {
179
+ collectOptions: l,
179
180
  collectDialogVisible: a,
180
181
  collecting: f,
181
- collectFetched: i,
182
+ collectFetched: r,
182
183
  collectTotal: d,
183
- collectTotalKnown: r,
184
+ collectTotalKnown: u,
184
185
  collectEtaSeconds: w,
185
186
  collectPercent: F,
186
187
  onCollectClick: A,
187
- doCollect: L,
188
- cancelCollect: B
189
- } = Yt({
190
- props: l,
188
+ doCollect: U,
189
+ cancelCollect: E
190
+ } = Kt({
191
+ props: t,
191
192
  // reactive — dataFun/collectorFunc/maxCollectCount 自动追踪
192
- selectable: se(l, "selectable"),
193
- currentRows: se(l, "currentRows"),
194
- selectedRows: se(l, "selectedRows"),
195
- total: se(l, "total"),
196
- totalKnown: se(l, "totalKnown"),
197
- collectPageSize: se(l, "collectPageSize"),
198
- hasMorePage: se(l, "hasMorePage"),
199
- pageScopeLabel: se(l, "pageScopeLabel")
200
- }), h = O(() => {
193
+ selectable: ne(t, "selectable"),
194
+ currentRows: ne(t, "currentRows"),
195
+ selectedRows: ne(t, "selectedRows"),
196
+ total: ne(t, "total"),
197
+ totalKnown: ne(t, "totalKnown"),
198
+ collectPageSize: ne(t, "collectPageSize"),
199
+ hasMorePage: ne(t, "hasMorePage"),
200
+ columns: ne(t, "columns"),
201
+ pageScopeLabel: ne(t, "pageScopeLabel")
202
+ }), h = q(() => {
201
203
  const _ = w.value;
202
204
  if (_ == null) return null;
203
205
  if (_ < 60) return `${_} 秒`;
204
- const Y = Math.floor(_ / 60), Q = _ % 60;
205
- return Q > 0 ? `${Y} 分 ${Q} 秒` : `${Y} 分`;
206
+ const Y = Math.floor(_ / 60), N = _ % 60;
207
+ return N > 0 ? `${Y} 分 ${N} 秒` : `${Y} 分`;
206
208
  });
207
209
  return y({ openCollectDialog: A }), (_, Y) => {
208
- const Q = C("el-button"), J = C("el-dialog"), K = C("el-progress");
209
- return o(), v(U, null, [
210
+ const N = S("el-button"), J = S("el-dialog"), j = S("el-progress");
211
+ return o(), v(K, null, [
210
212
  p(J, {
211
- modelValue: u(a),
212
- "onUpdate:modelValue": Y[0] || (Y[0] = (s) => be(a) ? a.value = s : null),
213
- title: l.collectorTitle ?? "收集数据",
213
+ modelValue: s(a),
214
+ "onUpdate:modelValue": Y[0] || (Y[0] = (i) => he(a) ? a.value = i : null),
215
+ title: t.collectorTitle ?? "收集数据",
214
216
  width: "420px"
215
217
  }, {
216
218
  default: n(() => [
217
- m("div", dl, [
218
- (o(!0), v(U, null, le(u(t), (s) => (o(), x(Q, {
219
- key: s.value,
219
+ m("div", fl, [
220
+ (o(!0), v(K, null, le(s(l), (i) => (o(), C(N, {
221
+ key: i.value,
220
222
  class: "collect-option",
221
- "data-scope": s.value,
222
- disabled: s.disabled,
223
- onClick: (g) => u(L)(s.value)
223
+ "data-scope": i.value,
224
+ disabled: i.disabled,
225
+ onClick: (g) => s(U)(i.value)
224
226
  }, {
225
227
  default: n(() => [
226
- $(I(s.label), 1)
228
+ $(I(i.label), 1)
227
229
  ]),
228
230
  _: 2
229
231
  }, 1032, ["data-scope", "disabled", "onClick"]))), 128))
230
232
  ]),
231
- m("p", cl, " 单次最多 " + I(l.maxCollectCount) + " 条,超出将被截断。 ", 1)
233
+ m("p", vl, " 单次最多 " + I(t.maxCollectCount) + " 条,超出将被截断。 ", 1)
232
234
  ]),
233
235
  _: 1
234
236
  }, 8, ["modelValue", "title"]),
235
237
  p(J, {
236
- modelValue: u(f),
237
- "onUpdate:modelValue": Y[1] || (Y[1] = (s) => be(f) ? f.value = s : null),
238
+ modelValue: s(f),
239
+ "onUpdate:modelValue": Y[1] || (Y[1] = (i) => he(f) ? f.value = i : null),
238
240
  title: "正在处理数据",
239
241
  width: "420px",
240
242
  "close-on-click-modal": !1,
241
243
  "show-close": !1
242
244
  }, {
243
245
  footer: n(() => [
244
- p(Q, {
246
+ p(N, {
245
247
  class: "collect-cancel",
246
- onClick: u(B)
248
+ onClick: s(E)
247
249
  }, {
248
250
  default: n(() => [...Y[3] || (Y[3] = [
249
251
  $("取消", -1)
@@ -252,16 +254,16 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
252
254
  }, 8, ["onClick"])
253
255
  ]),
254
256
  default: n(() => [
255
- p(K, { percentage: u(F) }, null, 8, ["percentage"]),
256
- m("p", pl, [
257
- $(" 已处理 " + I(u(i)), 1),
258
- u(r) ? (o(), v(U, { key: 0 }, [
259
- $(" / " + I(u(d)), 1)
260
- ], 64)) : D("", !0),
257
+ p(j, { percentage: s(F) }, null, 8, ["percentage"]),
258
+ m("p", yl, [
259
+ $(" 已处理 " + I(s(r)), 1),
260
+ s(u) ? (o(), v(K, { key: 0 }, [
261
+ $(" / " + I(s(d)), 1)
262
+ ], 64)) : B("", !0),
261
263
  Y[2] || (Y[2] = $(" 条", -1)),
262
- h.value ? (o(), v(U, { key: 1 }, [
264
+ h.value ? (o(), v(K, { key: 1 }, [
263
265
  $(",预计剩余约 " + I(h.value), 1)
264
- ], 64)) : D("", !0)
266
+ ], 64)) : B("", !0)
265
267
  ])
266
268
  ]),
267
269
  _: 1
@@ -269,7 +271,7 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
269
271
  ], 64);
270
272
  };
271
273
  }
272
- }), fl = /* @__PURE__ */ re(ml, [["__scopeId", "data-v-19d32f8e"]]), vl = /* @__PURE__ */ te({
274
+ }), _l = /* @__PURE__ */ re(gl, [["__scopeId", "data-v-fa21b7d3"]]), kl = /* @__PURE__ */ te({
273
275
  __name: "columnConfigDialog",
274
276
  props: {
275
277
  /** 加载自定义配置(含列设置与用户默认分页大小;返回 null 按空配置处理) */
@@ -280,81 +282,81 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
280
282
  meta: { type: Object, default: null }
281
283
  },
282
284
  setup(e, { expose: y }) {
283
- const l = e, t = {
285
+ const t = e, l = {
284
286
  get loadCustomConfigFun() {
285
- return l.loadCustomConfigFun;
287
+ return t.loadCustomConfigFun;
286
288
  },
287
289
  get saveCustomConfigFun() {
288
- return l.saveCustomConfigFun;
290
+ return t.saveCustomConfigFun;
289
291
  }
290
292
  }, {
291
293
  // 字段(状态 + 派生)
292
294
  columns: a,
293
295
  customConfigLoading: f,
294
- defaultPageSize: i,
296
+ defaultPageSize: r,
295
297
  configDialogVisible: d,
296
- draftColumns: r,
298
+ draftColumns: u,
297
299
  // 函数
298
300
  loadCustomConfigs: w,
299
301
  updateDefaultPageSize: F,
300
302
  updateColumnWidth: A,
301
- openConfigDialog: L,
302
- moveDraft: B,
303
+ openConfigDialog: U,
304
+ moveDraft: E,
303
305
  resetDraft: h,
304
306
  saveConfigDialog: _
305
- } = Qt(t, se(l, "meta"));
307
+ } = jt(l, ne(t, "meta"));
306
308
  return y({
307
309
  // 字段
308
310
  columns: a,
309
- defaultPageSize: i,
311
+ defaultPageSize: r,
310
312
  customConfigLoading: f,
311
313
  // 函数
312
314
  updateDefaultPageSize: F,
313
315
  updateColumnWidth: A,
314
316
  loadCustomConfigs: w,
315
- openDialog: L
316
- }), (Y, Q) => {
317
- const J = C("el-checkbox"), K = C("el-input"), s = C("el-button"), g = C("el-dialog");
318
- return o(), x(g, {
319
- modelValue: u(d),
320
- "onUpdate:modelValue": Q[1] || (Q[1] = (z) => be(d) ? d.value = z : null),
317
+ openDialog: U
318
+ }), (Y, N) => {
319
+ const J = S("el-checkbox"), j = S("el-input"), i = S("el-button"), g = S("el-dialog");
320
+ return o(), C(g, {
321
+ modelValue: s(d),
322
+ "onUpdate:modelValue": N[1] || (N[1] = (z) => he(d) ? d.value = z : null),
321
323
  title: "列设置",
322
324
  width: "480px"
323
325
  }, {
324
326
  footer: n(() => [
325
- p(s, { onClick: u(h) }, {
326
- default: n(() => [...Q[4] || (Q[4] = [
327
+ p(i, { onClick: s(h) }, {
328
+ default: n(() => [...N[4] || (N[4] = [
327
329
  $("重置", -1)
328
330
  ])]),
329
331
  _: 1
330
332
  }, 8, ["onClick"]),
331
- p(s, {
332
- onClick: Q[0] || (Q[0] = (z) => d.value = !1)
333
+ p(i, {
334
+ onClick: N[0] || (N[0] = (z) => d.value = !1)
333
335
  }, {
334
- default: n(() => [...Q[5] || (Q[5] = [
336
+ default: n(() => [...N[5] || (N[5] = [
335
337
  $("取消", -1)
336
338
  ])]),
337
339
  _: 1
338
340
  }),
339
- p(s, {
341
+ p(i, {
340
342
  type: "primary",
341
343
  class: "col-config-save",
342
- onClick: u(_)
344
+ onClick: s(_)
343
345
  }, {
344
- default: n(() => [...Q[6] || (Q[6] = [
346
+ default: n(() => [...N[6] || (N[6] = [
345
347
  $("保存", -1)
346
348
  ])]),
347
349
  _: 1
348
350
  }, 8, ["onClick"])
349
351
  ]),
350
352
  default: n(() => [
351
- (o(!0), v(U, null, le(u(r), (z, N) => (o(), v("div", {
353
+ (o(!0), v(K, null, le(s(u), (z, O) => (o(), v("div", {
352
354
  key: z.propertyPath,
353
355
  class: "col-config-row"
354
356
  }, [
355
357
  p(J, {
356
358
  modelValue: z.visible,
357
- "onUpdate:modelValue": (q) => z.visible = q,
359
+ "onUpdate:modelValue": (L) => z.visible = L,
358
360
  class: "col-config-name"
359
361
  }, {
360
362
  default: n(() => [
@@ -362,31 +364,31 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
362
364
  ]),
363
365
  _: 2
364
366
  }, 1032, ["modelValue", "onUpdate:modelValue"]),
365
- p(K, {
367
+ p(j, {
366
368
  modelValue: z.width,
367
- "onUpdate:modelValue": (q) => z.width = q,
369
+ "onUpdate:modelValue": (L) => z.width = L,
368
370
  class: "col-config-width",
369
371
  placeholder: "宽度(如 120)",
370
372
  size: "small"
371
373
  }, null, 8, ["modelValue", "onUpdate:modelValue"]),
372
- p(s, {
374
+ p(i, {
373
375
  link: "",
374
376
  type: "primary",
375
- disabled: N === 0,
376
- onClick: (q) => u(B)(N, -1)
377
+ disabled: O === 0,
378
+ onClick: (L) => s(E)(O, -1)
377
379
  }, {
378
- default: n(() => [...Q[2] || (Q[2] = [
380
+ default: n(() => [...N[2] || (N[2] = [
379
381
  $("上移", -1)
380
382
  ])]),
381
383
  _: 1
382
384
  }, 8, ["disabled", "onClick"]),
383
- p(s, {
385
+ p(i, {
384
386
  link: "",
385
387
  type: "primary",
386
- disabled: N === u(r).length - 1,
387
- onClick: (q) => u(B)(N, 1)
388
+ disabled: O === s(u).length - 1,
389
+ onClick: (L) => s(E)(O, 1)
388
390
  }, {
389
- default: n(() => [...Q[3] || (Q[3] = [
391
+ default: n(() => [...N[3] || (N[3] = [
390
392
  $(" 下移 ", -1)
391
393
  ])]),
392
394
  _: 1
@@ -397,7 +399,7 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
397
399
  }, 8, ["modelValue"]);
398
400
  };
399
401
  }
400
- }), yl = /* @__PURE__ */ re(vl, [["__scopeId", "data-v-a6f853c4"]]), gl = /* @__PURE__ */ te({
402
+ }), bl = /* @__PURE__ */ re(kl, [["__scopeId", "data-v-a6f853c4"]]), hl = /* @__PURE__ */ te({
401
403
  __name: "rowActionsColumn",
402
404
  props: {
403
405
  /** 行操作列表(由 Table 的 useRowActions 加载);为空时不渲染操作列 */
@@ -408,41 +410,41 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
408
410
  resizable: { type: Boolean, default: !0 }
409
411
  },
410
412
  setup(e) {
411
- const y = e, l = O(
413
+ const y = e, t = q(
412
414
  () => y.actions.length === 0 ? void 0 : y.actions.length * 34 + (y.actions.length - 1) * 12 + 30
413
415
  );
414
- return (t, a) => {
415
- const f = C("el-button"), i = C("el-table-column");
416
- return y.actions.length > 0 ? (o(), x(i, {
416
+ return (l, a) => {
417
+ const f = S("el-button"), r = S("el-table-column");
418
+ return y.actions.length > 0 ? (o(), C(r, {
417
419
  key: 0,
418
420
  label: "操作",
419
421
  fixed: "right",
420
- "min-width": l.value,
422
+ "min-width": t.value,
421
423
  resizable: y.resizable
422
424
  }, {
423
425
  default: n(({ row: d }) => [
424
- (o(!0), v(U, null, le(u(ot)(y.actions, d), (r) => (o(), x(f, {
425
- key: r.name,
426
+ (o(!0), v(K, null, le(s(at)(y.actions, d), (u) => (o(), C(f, {
427
+ key: u.name,
426
428
  link: "",
427
- type: r.type ?? "primary",
428
- disabled: !u(gt)(r, d),
429
- onClick: (w) => r.execute(d, y.table)
429
+ type: u.type ?? "primary",
430
+ disabled: !s(kt)(u, d),
431
+ onClick: (w) => u.execute(d, y.table)
430
432
  }, {
431
433
  default: n(() => [
432
- r.icon ? (o(), x(De(r.icon), {
434
+ u.icon ? (o(), C(Ae(u.icon), {
433
435
  key: 0,
434
436
  class: "yk-row-action__icon"
435
- })) : D("", !0),
436
- $(" " + I(r.desc), 1)
437
+ })) : B("", !0),
438
+ $(" " + I(u.desc), 1)
437
439
  ]),
438
440
  _: 2
439
441
  }, 1032, ["type", "disabled", "onClick"]))), 128))
440
442
  ]),
441
443
  _: 1
442
- }, 8, ["min-width", "resizable"])) : D("", !0);
444
+ }, 8, ["min-width", "resizable"])) : B("", !0);
443
445
  };
444
446
  }
445
- }), _l = /* @__PURE__ */ re(gl, [["__scopeId", "data-v-34f3d742"]]), kl = { class: "yk-table__cards" }, bl = ["title", "onContextmenu"], hl = { class: "yk-table__card-json" }, wl = /* @__PURE__ */ te({
447
+ }), wl = /* @__PURE__ */ re(hl, [["__scopeId", "data-v-34f3d742"]]), xl = { class: "yk-table__cards" }, Cl = ["title", "onContextmenu"], Sl = { class: "yk-table__card-json" }, $l = /* @__PURE__ */ te({
446
448
  __name: "cardView",
447
449
  props: {
448
450
  rows: {},
@@ -454,42 +456,42 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
454
456
  },
455
457
  emits: ["check", "contextmenu"],
456
458
  setup(e, { emit: y }) {
457
- const l = e, t = y;
459
+ const t = e, l = y;
458
460
  return (a, f) => {
459
- const i = C("el-checkbox"), d = C("el-empty");
460
- return o(), v("div", kl, [
461
- (o(!0), v(U, null, le(l.rows, (r, w) => (o(), v("div", {
462
- key: String(r[l.rowKey]),
463
- class: we(["yk-table__card", {
464
- "is-selected": l.showCheckbox && l.isSelected(r),
465
- "has-actions": l.hasActions
461
+ const r = S("el-checkbox"), d = S("el-empty");
462
+ return o(), v("div", xl, [
463
+ (o(!0), v(K, null, le(t.rows, (u, w) => (o(), v("div", {
464
+ key: String(u[t.rowKey]),
465
+ class: Ce(["yk-table__card", {
466
+ "is-selected": t.showCheckbox && t.isSelected(u),
467
+ "has-actions": t.hasActions
466
468
  }]),
467
- title: l.hasActions ? "右键查看行操作" : void 0,
468
- onContextmenu: (F) => t("contextmenu", F, r)
469
+ title: t.hasActions ? "右键查看行操作" : void 0,
470
+ onContextmenu: (F) => l("contextmenu", F, u)
469
471
  }, [
470
- l.showCheckbox ? (o(), x(i, {
472
+ t.showCheckbox ? (o(), C(r, {
471
473
  key: 0,
472
474
  class: "yk-table__card-checkbox",
473
- "model-value": l.isSelected(r),
474
- onChange: (F) => t("check", r, F)
475
- }, null, 8, ["model-value", "onChange"])) : D("", !0),
475
+ "model-value": t.isSelected(u),
476
+ onChange: (F) => l("check", u, F)
477
+ }, null, 8, ["model-value", "onChange"])) : B("", !0),
476
478
  ee(a.$slots, "default", {
477
- row: r,
479
+ row: u,
478
480
  index: w
479
481
  }, () => [
480
- m("pre", hl, I(JSON.stringify(r, null, 2)), 1)
482
+ m("pre", Sl, I(JSON.stringify(u, null, 2)), 1)
481
483
  ], !0)
482
- ], 42, bl))), 128)),
483
- !l.loading && l.rows.length === 0 ? (o(), v(U, { key: 0 }, [
484
- a.$slots.empty ? ee(a.$slots, "empty", {}, void 0, !0, 0) : (o(), x(d, {
484
+ ], 42, Cl))), 128)),
485
+ !t.loading && t.rows.length === 0 ? (o(), v(K, { key: 0 }, [
486
+ a.$slots.empty ? ee(a.$slots, "empty", {}, void 0, !0, 0) : (o(), C(d, {
485
487
  key: 1,
486
488
  description: "暂无数据"
487
489
  }))
488
- ], 64)) : D("", !0)
490
+ ], 64)) : B("", !0)
489
491
  ]);
490
492
  };
491
493
  }
492
- }), xl = /* @__PURE__ */ re(wl, [["__scopeId", "data-v-88966e9a"]]), Cl = { class: "yk-table__list" }, Sl = ["title", "onContextmenu"], $l = { class: "yk-table__list-item-body" }, Fl = { class: "yk-table__list-item-json" }, Vl = /* @__PURE__ */ te({
494
+ }), Fl = /* @__PURE__ */ re($l, [["__scopeId", "data-v-88966e9a"]]), Vl = { class: "yk-table__list" }, Rl = ["title", "onContextmenu"], Ml = { class: "yk-table__list-item-body" }, Pl = { class: "yk-table__list-item-json" }, zl = /* @__PURE__ */ te({
493
495
  __name: "listView",
494
496
  props: {
495
497
  rows: {},
@@ -501,44 +503,44 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
501
503
  },
502
504
  emits: ["check", "contextmenu"],
503
505
  setup(e, { emit: y }) {
504
- const l = e, t = y;
506
+ const t = e, l = y;
505
507
  return (a, f) => {
506
- const i = C("el-checkbox"), d = C("el-empty");
507
- return o(), v("div", Cl, [
508
- (o(!0), v(U, null, le(l.rows, (r, w) => (o(), v("div", {
509
- key: String(r[l.rowKey]),
510
- class: we(["yk-table__list-item", {
511
- "is-selected": l.showCheckbox && l.isSelected(r),
512
- "has-actions": l.hasActions
508
+ const r = S("el-checkbox"), d = S("el-empty");
509
+ return o(), v("div", Vl, [
510
+ (o(!0), v(K, null, le(t.rows, (u, w) => (o(), v("div", {
511
+ key: String(u[t.rowKey]),
512
+ class: Ce(["yk-table__list-item", {
513
+ "is-selected": t.showCheckbox && t.isSelected(u),
514
+ "has-actions": t.hasActions
513
515
  }]),
514
- title: l.hasActions ? "右键查看行操作" : void 0,
515
- onContextmenu: (F) => t("contextmenu", F, r)
516
+ title: t.hasActions ? "右键查看行操作" : void 0,
517
+ onContextmenu: (F) => l("contextmenu", F, u)
516
518
  }, [
517
- l.showCheckbox ? (o(), x(i, {
519
+ t.showCheckbox ? (o(), C(r, {
518
520
  key: 0,
519
521
  class: "yk-table__list-item-checkbox",
520
- "model-value": l.isSelected(r),
521
- onChange: (F) => t("check", r, F)
522
- }, null, 8, ["model-value", "onChange"])) : D("", !0),
523
- m("div", $l, [
522
+ "model-value": t.isSelected(u),
523
+ onChange: (F) => l("check", u, F)
524
+ }, null, 8, ["model-value", "onChange"])) : B("", !0),
525
+ m("div", Ml, [
524
526
  ee(a.$slots, "default", {
525
- row: r,
527
+ row: u,
526
528
  index: w
527
529
  }, () => [
528
- m("pre", Fl, I(JSON.stringify(r, null, 2)), 1)
530
+ m("pre", Pl, I(JSON.stringify(u, null, 2)), 1)
529
531
  ], !0)
530
532
  ])
531
- ], 42, Sl))), 128)),
532
- !l.loading && l.rows.length === 0 ? (o(), v(U, { key: 0 }, [
533
- a.$slots.empty ? ee(a.$slots, "empty", {}, void 0, !0, 0) : (o(), x(d, {
533
+ ], 42, Rl))), 128)),
534
+ !t.loading && t.rows.length === 0 ? (o(), v(K, { key: 0 }, [
535
+ a.$slots.empty ? ee(a.$slots, "empty", {}, void 0, !0, 0) : (o(), C(d, {
534
536
  key: 1,
535
537
  description: "暂无数据"
536
538
  }))
537
- ], 64)) : D("", !0)
539
+ ], 64)) : B("", !0)
538
540
  ]);
539
541
  };
540
542
  }
541
- }), Rl = /* @__PURE__ */ re(Vl, [["__scopeId", "data-v-0488eb89"]]), Ml = ["onClick"], Pl = /* @__PURE__ */ te({
543
+ }), Al = /* @__PURE__ */ re(zl, [["__scopeId", "data-v-0488eb89"]]), Dl = ["onClick"], Bl = /* @__PURE__ */ te({
542
544
  __name: "contextMenu",
543
545
  props: {
544
546
  menu: {},
@@ -547,40 +549,40 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
547
549
  },
548
550
  emits: ["close", "select"],
549
551
  setup(e, { emit: y }) {
550
- const l = e, t = y;
551
- return (a, f) => (o(), x(At, { to: "body" }, [
552
- l.menu ? (o(), v(U, { key: 0 }, [
552
+ const t = e, l = y;
553
+ return (a, f) => (o(), C(Bt, { to: "body" }, [
554
+ t.menu ? (o(), v(K, { key: 0 }, [
553
555
  m("div", {
554
556
  class: "yk-table__menu-mask",
555
- onClick: f[0] || (f[0] = (i) => t("close")),
556
- onContextmenu: f[1] || (f[1] = mt((i) => t("close"), ["prevent"]))
557
+ onClick: f[0] || (f[0] = (r) => l("close")),
558
+ onContextmenu: f[1] || (f[1] = vt((r) => l("close"), ["prevent"]))
557
559
  }, null, 32),
558
560
  m("ul", {
559
561
  class: "yk-table__context-menu",
560
- style: at({ left: `${l.menu.x}px`, top: `${l.menu.y}px` })
562
+ style: st({ left: `${t.menu.x}px`, top: `${t.menu.y}px` })
561
563
  }, [
562
- (o(!0), v(U, null, le(l.actions, (i) => (o(), v("li", {
563
- key: i.name,
564
- class: we(["yk-table__context-menu-item", { "is-disabled": !l.isEnabled(i, l.menu.row) }]),
565
- onClick: (d) => l.isEnabled(i, l.menu.row) && t("select", i)
564
+ (o(!0), v(K, null, le(t.actions, (r) => (o(), v("li", {
565
+ key: r.name,
566
+ class: Ce(["yk-table__context-menu-item", { "is-disabled": !t.isEnabled(r, t.menu.row) }]),
567
+ onClick: (d) => t.isEnabled(r, t.menu.row) && l("select", r)
566
568
  }, [
567
- i.icon ? (o(), x(De(i.icon), {
569
+ r.icon ? (o(), C(Ae(r.icon), {
568
570
  key: 0,
569
571
  class: "yk-table__context-menu-icon"
570
- })) : D("", !0),
571
- $(" " + I(i.desc), 1)
572
- ], 10, Ml))), 128))
572
+ })) : B("", !0),
573
+ $(" " + I(r.desc), 1)
574
+ ], 10, Dl))), 128))
573
575
  ], 4)
574
- ], 64)) : D("", !0)
576
+ ], 64)) : B("", !0)
575
577
  ]));
576
578
  }
577
- }), zl = /* @__PURE__ */ re(Pl, [["__scopeId", "data-v-32592dd4"]]), Al = { class: "yk-table" }, Dl = { class: "yk-table__view-area" }, Bl = {
579
+ }), El = /* @__PURE__ */ re(Bl, [["__scopeId", "data-v-32592dd4"]]), Il = { class: "yk-table" }, Tl = { class: "yk-table__view-area" }, Yl = {
578
580
  key: 0,
579
581
  class: "yk-table__loading-mask"
580
- }, El = {
582
+ }, Ql = {
581
583
  key: 0,
582
584
  class: "yk-table__footer"
583
- }, Il = { class: "yk-table__footer-extra" }, Tl = /* @__PURE__ */ te({
585
+ }, Nl = { class: "yk-table__footer-extra" }, Ol = /* @__PURE__ */ te({
584
586
  name: "YsTable",
585
587
  __name: "table",
586
588
  props: {
@@ -639,71 +641,71 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
639
641
  viewMode: { type: String, default: "table" }
640
642
  },
641
643
  emits: ["data-loaded", "update:viewMode", "update:showCheckbox", "update:columnResizable", "update:stickyHeader"],
642
- setup(e, { expose: y, emit: l }) {
643
- const t = e, a = l, {
644
+ setup(e, { expose: y, emit: t }) {
645
+ const l = e, a = t, {
644
646
  meta: f,
645
- paged: i,
647
+ paged: r,
646
648
  rows: d,
647
- metaLoading: r,
649
+ metaLoading: u,
648
650
  dataLoading: w,
649
651
  currentPage: F,
650
652
  total: A,
651
- totalKnown: L,
652
- loadMeta: B
653
- } = Nt(t), h = T(null), {
653
+ totalKnown: U,
654
+ loadMeta: E
655
+ } = Ht(l), h = T(null), {
654
656
  selectedRows: _,
655
657
  onSelectionChange: Y,
656
- isRowSelected: Q,
658
+ isRowSelected: N,
657
659
  toggleRowSelection: J,
658
- restoreSelection: K,
659
- clearSelection: s,
660
+ restoreSelection: j,
661
+ clearSelection: i,
660
662
  selectAllOnPage: g,
661
663
  invertSelectionOnPage: z
662
- } = _t({ tableEl: h, rows: d, rowKey: se(t, "rowKey") }), N = {
664
+ } = bt({ tableEl: h, rows: d, rowKey: ne(l, "rowKey") }), O = {
663
665
  get rowActionsFunc() {
664
- return t.rowActionsFunc;
666
+ return l.rowActionsFunc;
665
667
  }
666
- }, { actions: q, actionsLoading: ue, loadActions: ie } = Ot(N), X = T(null), S = O(() => {
668
+ }, { actions: L, actionsLoading: ue, loadActions: ie } = Gt(O), X = T(null), x = q(() => {
667
669
  var c;
668
670
  return ((c = X.value) == null ? void 0 : c.columns) ?? [];
669
- }), b = O(() => {
671
+ }), b = q(() => {
670
672
  var c;
671
- return ((c = X.value) == null ? void 0 : c.defaultPageSize) ?? t.pageSize;
672
- }), R = O(() => {
673
+ return ((c = X.value) == null ? void 0 : c.defaultPageSize) ?? l.pageSize;
674
+ }), R = q(() => {
673
675
  var c;
674
676
  return ((c = X.value) == null ? void 0 : c.customConfigLoading) ?? !1;
675
677
  }), M = T(null), Z = T(null);
676
678
  async function W(c) {
677
679
  w.value = !0;
678
680
  try {
679
- const oe = (F.value - 1) * b.value, G = await t.dataFun({ limit: b.value, offset: oe }, c);
680
- i.value = G, a("data-loaded", G);
681
+ const Q = (F.value - 1) * b.value, ae = await l.dataFun({ limit: b.value, offset: Q }, c);
682
+ r.value = ae, a("data-loaded", ae);
681
683
  } finally {
682
684
  w.value = !1;
683
685
  }
684
686
  }
685
- const P = O(() => {
686
- var oe;
687
- const c = Math.min(b.value, ...t.pageSizes);
688
- return A.value > c || (((oe = i.value) == null ? void 0 : oe.hasNext) ?? !1);
689
- }), V = O(
690
- () => r.value || w.value || ue.value || R.value
687
+ const P = q(() => {
688
+ var Q;
689
+ const c = Math.min(b.value, ...l.pageSizes);
690
+ return A.value > c || (((Q = r.value) == null ? void 0 : Q.hasNext) ?? !1);
691
+ }), V = q(
692
+ () => u.value || w.value || ue.value || R.value
691
693
  );
692
- function j(c) {
694
+ function H(c) {
693
695
  F.value = c, W();
694
696
  }
695
- function ne(c) {
696
- var oe;
697
- (oe = X.value) == null || oe.updateDefaultPageSize(c), F.value = 1, W();
697
+ function oe(c) {
698
+ var Q;
699
+ (Q = X.value) == null || Q.updateDefaultPageSize(c), F.value = 1, W();
698
700
  }
699
- function de(c, oe, G) {
700
- var ve;
701
- G.property && ((ve = X.value) == null || ve.updateColumnWidth(G.property, c));
701
+ function de(c, Q, ae) {
702
+ var _e;
703
+ ae.property && ((_e = X.value) == null || _e.updateColumnWidth(ae.property, c));
702
704
  }
703
705
  async function pe() {
704
706
  var c;
705
707
  await Promise.all([
706
- B(),
708
+ E(),
707
709
  ie(),
708
710
  (c = X.value) == null ? void 0 : c.loadCustomConfigs()
709
711
  ]), F.value = 1, W();
@@ -711,67 +713,67 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
711
713
  function Fe() {
712
714
  W();
713
715
  }
714
- Ce(pe), ce(() => t.pageSize, (c) => {
715
- ne(c);
716
- }), ce(() => t.dataFun, () => {
716
+ Se(pe), ce(() => l.pageSize, (c) => {
717
+ oe(c);
718
+ }), ce(() => l.dataFun, () => {
717
719
  F.value = 1, W();
718
720
  });
719
- const he = T(t.viewMode);
720
- ce(() => t.viewMode, (c) => {
721
- he.value = c;
721
+ const we = T(l.viewMode);
722
+ ce(() => l.viewMode, (c) => {
723
+ we.value = c;
722
724
  });
723
- const ye = O({
724
- get: () => he.value,
725
+ const ve = q({
726
+ get: () => we.value,
725
727
  set: (c) => {
726
- he.value = c, a("update:viewMode", c);
728
+ we.value = c, a("update:viewMode", c);
727
729
  }
728
730
  });
729
- ce(ye, (c) => {
730
- c === "table" && K();
731
+ ce(ve, (c) => {
732
+ c === "table" && j();
731
733
  });
732
- const Be = T(t.showCheckbox);
733
- ce(() => t.showCheckbox, (c) => {
734
- Be.value = c;
734
+ const De = T(l.showCheckbox);
735
+ ce(() => l.showCheckbox, (c) => {
736
+ De.value = c;
735
737
  });
736
- const fe = O({
737
- get: () => Be.value,
738
+ const me = q({
739
+ get: () => De.value,
738
740
  set: (c) => {
739
- Be.value = c, a("update:showCheckbox", c), c || s();
741
+ De.value = c, a("update:showCheckbox", c), c || i();
740
742
  }
741
743
  });
742
744
  function je(c) {
743
- ye.value = c;
745
+ ve.value = c;
744
746
  }
745
- function Ee(c) {
746
- fe.value = c;
747
+ function Be(c) {
748
+ me.value = c;
747
749
  }
748
- const Ie = T(t.columnResizable);
749
- ce(() => t.columnResizable, (c) => {
750
- Ie.value = c;
750
+ const Ee = T(l.columnResizable);
751
+ ce(() => l.columnResizable, (c) => {
752
+ Ee.value = c;
751
753
  });
752
- const Se = O({
753
- get: () => Ie.value,
754
+ const $e = q({
755
+ get: () => Ee.value,
754
756
  set: (c) => {
755
- Ie.value = c, a("update:columnResizable", c);
757
+ Ee.value = c, a("update:columnResizable", c);
756
758
  }
757
759
  });
758
760
  function He(c) {
759
- Se.value = c;
761
+ $e.value = c;
760
762
  }
761
- const Te = T(t.stickyHeader);
762
- ce(() => t.stickyHeader, (c) => {
763
- Te.value = c;
763
+ const Ie = T(l.stickyHeader);
764
+ ce(() => l.stickyHeader, (c) => {
765
+ Ie.value = c;
764
766
  });
765
- const Ve = O({
766
- get: () => Te.value,
767
+ const Ve = q({
768
+ get: () => Ie.value,
767
769
  set: (c) => {
768
- Te.value = c, a("update:stickyHeader", c);
770
+ Ie.value = c, a("update:stickyHeader", c);
769
771
  }
770
772
  });
771
773
  function Ge(c) {
772
774
  Ve.value = c;
773
775
  }
774
- const We = Dt(), Ye = O(
776
+ const We = Et(), Te = q(
775
777
  () => Object.keys(We).filter((c) => c !== "_" && typeof We[c] == "function")
776
778
  );
777
779
  function Re() {
@@ -782,85 +784,89 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
782
784
  var c;
783
785
  (c = M.value) == null || c.openExportDialog();
784
786
  }
785
- function Qe() {
786
- var c;
787
- (c = Z.value) == null || c.openCollectDialog();
787
+ function Ye(c) {
788
+ var Q;
789
+ (Q = Z.value) == null || Q.openCollectDialog(c);
790
+ }
791
+ function tt(c, Q) {
792
+ const ae = Q[c.propertyPath], _e = Nt(c, Q), xe = ut(c);
793
+ return xe ? xe(Q, ae, _e, c) : _e;
788
794
  }
789
- function Je(c, oe) {
790
- J(c, !!oe);
795
+ function Je(c, Q) {
796
+ J(c, !!Q);
791
797
  }
792
- const ke = T(null), et = O(
793
- () => ke.value ? ot(q.value, ke.value.row) : []
798
+ const ke = T(null), k = q(
799
+ () => ke.value ? at(L.value, ke.value.row) : []
794
800
  );
795
- function k(c, oe) {
796
- if (q.value.length === 0) return;
801
+ function D(c, Q) {
802
+ if (L.value.length === 0) return;
797
803
  c.preventDefault();
798
- const G = 176, Pe = E(oe) * 34 + 8;
804
+ const ae = 176, xe = G(Q) * 34 + 8;
799
805
  ke.value = {
800
- x: Math.min(c.clientX, window.innerWidth - G - 8),
801
- y: Math.min(c.clientY, window.innerHeight - Pe - 8),
802
- row: oe
806
+ x: Math.min(c.clientX, window.innerWidth - ae - 8),
807
+ y: Math.min(c.clientY, window.innerHeight - xe - 8),
808
+ row: Q
803
809
  };
804
810
  }
805
- function E(c) {
806
- return ot(q.value, c).length;
811
+ function G(c) {
812
+ return at(L.value, c).length;
807
813
  }
808
- function H(c) {
809
- var G;
810
- const oe = (G = ke.value) == null ? void 0 : G.row;
811
- ke.value = null, oe && c.execute(oe, $e);
814
+ function se(c) {
815
+ var ae;
816
+ const Q = (ae = ke.value) == null ? void 0 : ae.row;
817
+ ke.value = null, Q && c.execute(Q, Pe);
812
818
  }
813
- function ae(c) {
819
+ function be(c) {
814
820
  c.key === "Escape" && (ke.value = null);
815
821
  }
816
- Ce(() => window.addEventListener("keydown", ae)), Ue(() => window.removeEventListener("keydown", ae)), y({
822
+ Se(() => window.addEventListener("keydown", be)), Ue(() => window.removeEventListener("keydown", be)), y({
817
823
  meta: f,
818
- paged: i,
824
+ paged: r,
819
825
  currentPage: F,
820
- viewMode: ye,
821
- selectable: fe,
822
- columnResizable: Se,
826
+ viewMode: ve,
827
+ selectable: me,
828
+ columnResizable: $e,
823
829
  stickyHeader: Ve,
824
- slotNames: Ye,
830
+ slotNames: Te,
825
831
  selectedRows: _,
826
832
  rows: d,
827
833
  reload: pe,
828
834
  refresh: Fe,
829
835
  setViewMode: je,
830
- setSelectable: Ee,
836
+ setSelectable: Be,
831
837
  setColumnResizable: He,
832
838
  setStickyHeader: Ge,
833
- clearSelection: s,
839
+ clearSelection: i,
834
840
  selectAllOnPage: g,
835
841
  invertSelectionOnPage: z,
836
842
  openConfigDialog: Re,
837
843
  openExportDialog: Me,
838
- openCollectDialog: Qe
844
+ openCollectDialog: Ye
839
845
  });
840
- const $e = {
846
+ const Pe = {
841
847
  get meta() {
842
848
  return f.value;
843
849
  },
844
850
  get paged() {
845
- return i.value;
851
+ return r.value;
846
852
  },
847
853
  get currentPage() {
848
854
  return F.value;
849
855
  },
850
856
  get viewMode() {
851
- return ye.value;
857
+ return ve.value;
852
858
  },
853
859
  get selectable() {
854
- return fe.value;
860
+ return me.value;
855
861
  },
856
862
  get columnResizable() {
857
- return Se.value;
863
+ return $e.value;
858
864
  },
859
865
  get stickyHeader() {
860
866
  return Ve.value;
861
867
  },
862
868
  get slotNames() {
863
- return Ye.value;
869
+ return Te.value;
864
870
  },
865
871
  get selectedRows() {
866
872
  return _.value;
@@ -871,62 +877,62 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
871
877
  reload: pe,
872
878
  refresh: Fe,
873
879
  setViewMode: je,
874
- setSelectable: Ee,
880
+ setSelectable: Be,
875
881
  setColumnResizable: He,
876
882
  setStickyHeader: Ge,
877
- clearSelection: s,
883
+ clearSelection: i,
878
884
  selectAllOnPage: g,
879
885
  invertSelectionOnPage: z,
880
886
  openConfigDialog: Re,
881
887
  openExportDialog: Me,
882
- openCollectDialog: Qe
888
+ openCollectDialog: Ye
883
889
  };
884
- return (c, oe) => {
885
- var Ne;
886
- const G = C("el-table-column"), ve = C("el-table"), Pe = C("el-pagination");
887
- return o(), v("div", Al, [
888
- m("div", Dl, [
889
- ye.value === "table" ? (o(), v("div", {
890
+ return (c, Q) => {
891
+ var Xe;
892
+ const ae = S("el-table-column"), _e = S("el-table"), xe = S("el-pagination");
893
+ return o(), v("div", Il, [
894
+ m("div", Tl, [
895
+ ve.value === "table" ? (o(), v("div", {
890
896
  key: 0,
891
- class: we(["yk-table__table-wrap", { "yk-table__table-wrap--sticky-header": Ve.value }])
897
+ class: Ce(["yk-table__table-wrap", { "yk-table__table-wrap--sticky-header": Ve.value }])
892
898
  }, [
893
- p(ve, {
899
+ p(_e, {
894
900
  ref_key: "tableEl",
895
901
  ref: h,
896
- data: u(d),
902
+ data: s(d),
897
903
  "row-key": e.rowKey,
898
904
  border: "",
899
- onSelectionChange: u(Y),
905
+ onSelectionChange: s(Y),
900
906
  onHeaderDragend: de
901
- }, Ae({
907
+ }, ze({
902
908
  default: n(() => [
903
- fe.value ? (o(), x(G, {
909
+ me.value ? (o(), C(ae, {
904
910
  key: 0,
905
911
  type: "selection",
906
912
  width: "48"
907
- })) : D("", !0),
908
- (o(!0), v(U, null, le(S.value, (me) => (o(), x(G, {
909
- key: me.propertyPath,
910
- prop: me.propertyPath,
911
- label: me.displayName,
912
- width: me.width,
913
- resizable: Se.value,
913
+ })) : B("", !0),
914
+ (o(!0), v(K, null, le(x.value, (fe) => (o(), C(ae, {
915
+ key: fe.propertyPath,
916
+ prop: fe.propertyPath,
917
+ label: fe.displayName,
918
+ width: fe.width,
919
+ resizable: $e.value,
914
920
  "show-overflow-tooltip": ""
915
- }, Ae({ _: 2 }, [
916
- me.render ? {
921
+ }, ze({ _: 2 }, [
922
+ s(ut)(fe) || fe.formatter || s(Qt)(fe) ? {
917
923
  name: "default",
918
- fn: n(({ row: ze }) => [
919
- (o(), x(De(() => me.render(ze, ze[me.propertyPath]))))
924
+ fn: n(({ row: Ne }) => [
925
+ (o(), C(Ae(() => tt(fe, Ne))))
920
926
  ]),
921
927
  key: "0"
922
928
  } : void 0
923
929
  ]), 1032, ["prop", "label", "width", "resizable"]))), 128)),
924
- t.rowActionsFunc ? (o(), x(_l, {
930
+ l.rowActionsFunc ? (o(), C(wl, {
925
931
  key: 1,
926
- actions: u(q),
927
- table: $e,
928
- resizable: Se.value
929
- }, null, 8, ["actions", "resizable"])) : D("", !0)
932
+ actions: s(L),
933
+ table: Pe,
934
+ resizable: $e.value
935
+ }, null, 8, ["actions", "resizable"])) : B("", !0)
930
936
  ]),
931
937
  _: 2
932
938
  }, [
@@ -938,23 +944,23 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
938
944
  key: "0"
939
945
  } : void 0
940
946
  ]), 1032, ["data", "row-key", "onSelectionChange"])
941
- ], 2)) : ye.value === "card" ? (o(), x(xl, {
947
+ ], 2)) : ve.value === "card" ? (o(), C(Fl, {
942
948
  key: 1,
943
- rows: u(d),
949
+ rows: s(d),
944
950
  "row-key": e.rowKey,
945
- "show-checkbox": fe.value,
951
+ "show-checkbox": me.value,
946
952
  loading: V.value,
947
- "has-actions": u(q).length > 0,
948
- "is-selected": u(Q),
953
+ "has-actions": s(L).length > 0,
954
+ "is-selected": s(N),
949
955
  onCheck: Je,
950
- onContextmenu: k
951
- }, Ae({ _: 2 }, [
956
+ onContextmenu: D
957
+ }, ze({ _: 2 }, [
952
958
  c.$slots.card ? {
953
959
  name: "default",
954
- fn: n(({ row: me, index: ze }) => [
960
+ fn: n(({ row: fe, index: Ne }) => [
955
961
  ee(c.$slots, "card", {
956
- row: me,
957
- index: ze
962
+ row: fe,
963
+ index: Ne
958
964
  }, void 0, !0)
959
965
  ]),
960
966
  key: "0"
@@ -966,23 +972,23 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
966
972
  ]),
967
973
  key: "1"
968
974
  } : void 0
969
- ]), 1032, ["rows", "row-key", "show-checkbox", "loading", "has-actions", "is-selected"])) : (o(), x(Rl, {
975
+ ]), 1032, ["rows", "row-key", "show-checkbox", "loading", "has-actions", "is-selected"])) : (o(), C(Al, {
970
976
  key: 2,
971
- rows: u(d),
977
+ rows: s(d),
972
978
  "row-key": e.rowKey,
973
- "show-checkbox": fe.value,
979
+ "show-checkbox": me.value,
974
980
  loading: V.value,
975
- "has-actions": u(q).length > 0,
976
- "is-selected": u(Q),
981
+ "has-actions": s(L).length > 0,
982
+ "is-selected": s(N),
977
983
  onCheck: Je,
978
- onContextmenu: k
979
- }, Ae({ _: 2 }, [
984
+ onContextmenu: D
985
+ }, ze({ _: 2 }, [
980
986
  c.$slots.list ? {
981
987
  name: "default",
982
- fn: n(({ row: me, index: ze }) => [
988
+ fn: n(({ row: fe, index: Ne }) => [
983
989
  ee(c.$slots, "list", {
984
- row: me,
985
- index: ze
990
+ row: fe,
991
+ index: Ne
986
992
  }, void 0, !0)
987
993
  ]),
988
994
  key: "0"
@@ -995,94 +1001,95 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
995
1001
  key: "1"
996
1002
  } : void 0
997
1003
  ]), 1032, ["rows", "row-key", "show-checkbox", "loading", "has-actions", "is-selected"])),
998
- p(Bt, { name: "yk-loading-fade" }, {
1004
+ p(It, { name: "yk-loading-fade" }, {
999
1005
  default: n(() => [
1000
- V.value ? (o(), v("div", Bl, [
1006
+ V.value ? (o(), v("div", Yl, [
1001
1007
  ee(c.$slots, "loading", {}, () => [
1002
- oe[1] || (oe[1] = m("span", {
1008
+ Q[1] || (Q[1] = m("span", {
1003
1009
  class: "yk-table__loading-spinner",
1004
1010
  "aria-label": "加载中"
1005
1011
  }, null, -1))
1006
1012
  ], !0)
1007
- ])) : D("", !0)
1013
+ ])) : B("", !0)
1008
1014
  ]),
1009
1015
  _: 3
1010
1016
  })
1011
1017
  ]),
1012
- p(zl, {
1018
+ p(El, {
1013
1019
  menu: ke.value,
1014
- actions: et.value,
1015
- "is-enabled": u(gt),
1016
- onClose: oe[0] || (oe[0] = (me) => ke.value = null),
1017
- onSelect: H
1020
+ actions: k.value,
1021
+ "is-enabled": s(kt),
1022
+ onClose: Q[0] || (Q[0] = (fe) => ke.value = null),
1023
+ onSelect: se
1018
1024
  }, null, 8, ["menu", "actions", "is-enabled"]),
1019
- P.value || c.$slots.footer ? (o(), v("div", El, [
1020
- m("div", Il, [
1025
+ P.value || c.$slots.footer ? (o(), v("div", Ql, [
1026
+ m("div", Nl, [
1021
1027
  ee(c.$slots, "footer", {}, void 0, !0)
1022
1028
  ]),
1023
- P.value ? (o(), x(Pe, {
1029
+ P.value ? (o(), C(xe, {
1024
1030
  key: 0,
1025
1031
  class: "yk-table__pagination",
1026
1032
  size: "small",
1027
1033
  background: "",
1028
- layout: u(L) ? "total, sizes, prev, pager, next" : "sizes, prev, pager, next",
1029
- total: u(A),
1034
+ layout: s(U) ? "total, sizes, prev, pager, next" : "sizes, prev, pager, next",
1035
+ total: s(A),
1030
1036
  "page-sizes": e.pageSizes,
1031
1037
  "page-size": b.value,
1032
- "current-page": u(F),
1033
- onCurrentChange: j,
1034
- onSizeChange: ne
1035
- }, null, 8, ["layout", "total", "page-sizes", "page-size", "current-page"])) : D("", !0)
1036
- ])) : D("", !0),
1037
- p(wt, {
1038
+ "current-page": s(F),
1039
+ onCurrentChange: H,
1040
+ onSizeChange: oe
1041
+ }, null, 8, ["layout", "total", "page-sizes", "page-size", "current-page"])) : B("", !0)
1042
+ ])) : B("", !0),
1043
+ p(Ct, {
1038
1044
  ref_key: "exportDialogRef",
1039
1045
  ref: M,
1040
- "current-rows": u(d),
1041
- "selected-rows": u(_),
1042
- "data-fun": t.dataFun,
1043
- "export-page-size": t.exportPageSize,
1044
- total: u(A),
1045
- "total-known": u(L),
1046
- "exportor-func": t.exportorFunc,
1047
- "table-name": ((Ne = u(f)) == null ? void 0 : Ne.displayName) ?? "数据",
1048
- columns: S.value,
1046
+ "current-rows": s(d),
1047
+ "selected-rows": s(_),
1048
+ "data-fun": l.dataFun,
1049
+ "export-page-size": l.exportPageSize,
1050
+ total: s(A),
1051
+ "total-known": s(U),
1052
+ "exportor-func": l.exportorFunc,
1053
+ "table-name": ((Xe = s(f)) == null ? void 0 : Xe.displayName) ?? "数据",
1054
+ columns: x.value,
1049
1055
  "has-more-page": P.value,
1050
- "export-selected": fe.value
1056
+ "export-selected": me.value
1051
1057
  }, null, 8, ["current-rows", "selected-rows", "data-fun", "export-page-size", "total", "total-known", "exportor-func", "table-name", "columns", "has-more-page", "export-selected"]),
1052
- p(fl, {
1058
+ p(_l, {
1053
1059
  ref_key: "collectDialogRef",
1054
1060
  ref: Z,
1055
- "current-rows": u(d),
1056
- "selected-rows": u(_),
1057
- "data-fun": t.dataFun,
1058
- "collect-page-size": t.collectPageSize,
1059
- "max-collect-count": t.maxCollectCount,
1060
- "collector-func": t.collectorFunc,
1061
- "collector-title": t.collectorTitle,
1062
- total: u(A),
1063
- "total-known": u(L),
1061
+ "current-rows": s(d),
1062
+ "selected-rows": s(_),
1063
+ "data-fun": l.dataFun,
1064
+ "collect-page-size": l.collectPageSize,
1065
+ "max-collect-count": l.maxCollectCount,
1066
+ "collector-func": l.collectorFunc,
1067
+ "collector-title": l.collectorTitle,
1068
+ columns: x.value,
1069
+ total: s(A),
1070
+ "total-known": s(U),
1064
1071
  "has-more-page": P.value,
1065
- selectable: fe.value
1066
- }, null, 8, ["current-rows", "selected-rows", "data-fun", "collect-page-size", "max-collect-count", "collector-func", "collector-title", "total", "total-known", "has-more-page", "selectable"]),
1067
- p(yl, {
1072
+ selectable: me.value
1073
+ }, null, 8, ["current-rows", "selected-rows", "data-fun", "collect-page-size", "max-collect-count", "collector-func", "collector-title", "columns", "total", "total-known", "has-more-page", "selectable"]),
1074
+ p(bl, {
1068
1075
  ref_key: "configDialogRef",
1069
1076
  ref: X,
1070
1077
  "load-custom-config-fun": e.loadCustomConfigFun,
1071
1078
  "save-custom-config-fun": e.saveCustomConfigFun,
1072
- meta: u(f)
1079
+ meta: s(f)
1073
1080
  }, null, 8, ["load-custom-config-fun", "save-custom-config-fun", "meta"])
1074
1081
  ]);
1075
1082
  };
1076
1083
  }
1077
- }), xt = /* @__PURE__ */ re(Tl, [["__scopeId", "data-v-ed1c4cd2"]]), Yl = { class: "yk-table-action-menu-button__check" }, Ql = { class: "yk-table-action-menu-button__check" }, Nl = { class: "yk-table-action-menu-button__check" }, Ol = { class: "yk-table-action-menu-button__check" }, ql = { class: "yk-table-action-menu-button__check" }, Ll = { class: "yk-table-action-menu-button__check" }, Ul = /* @__PURE__ */ te({
1084
+ }), St = /* @__PURE__ */ re(Ol, [["__scopeId", "data-v-72888750"]]), ql = { class: "yk-table-action-menu-button__check" }, Ll = { class: "yk-table-action-menu-button__check" }, Ul = { class: "yk-table-action-menu-button__check" }, Kl = { class: "yk-table-action-menu-button__check" }, jl = { class: "yk-table-action-menu-button__check" }, Hl = { class: "yk-table-action-menu-button__check" }, Gl = /* @__PURE__ */ te({
1078
1085
  __name: "tableActionMenuButton",
1079
1086
  props: {
1080
1087
  table: {}
1081
1088
  },
1082
1089
  setup(e) {
1083
1090
  const y = e;
1084
- function l(t) {
1085
- switch (t) {
1091
+ function t(l) {
1092
+ switch (l) {
1086
1093
  case "refresh":
1087
1094
  y.table.refresh();
1088
1095
  break;
@@ -1112,17 +1119,17 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
1112
1119
  break;
1113
1120
  }
1114
1121
  }
1115
- return (t, a) => {
1116
- const f = C("el-button"), i = C("el-dropdown-item"), d = C("el-dropdown-menu"), r = C("el-dropdown");
1117
- return o(), x(r, {
1122
+ return (l, a) => {
1123
+ const f = S("el-button"), r = S("el-dropdown-item"), d = S("el-dropdown-menu"), u = S("el-dropdown");
1124
+ return o(), C(u, {
1118
1125
  trigger: "click",
1119
1126
  placement: "bottom-end",
1120
- onCommand: l
1127
+ onCommand: t
1121
1128
  }, {
1122
1129
  dropdown: n(() => [
1123
1130
  p(d, null, {
1124
1131
  default: n(() => [
1125
- p(i, { command: "refresh" }, {
1132
+ p(r, { command: "refresh" }, {
1126
1133
  default: n(() => [...a[1] || (a[1] = [
1127
1134
  m("svg", {
1128
1135
  viewBox: "0 0 24 24",
@@ -1143,7 +1150,7 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
1143
1150
  ])]),
1144
1151
  _: 1
1145
1152
  }),
1146
- p(i, { command: "export" }, {
1153
+ p(r, { command: "export" }, {
1147
1154
  default: n(() => [...a[2] || (a[2] = [
1148
1155
  m("svg", {
1149
1156
  viewBox: "0 0 24 24",
@@ -1169,7 +1176,7 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
1169
1176
  ])]),
1170
1177
  _: 1
1171
1178
  }),
1172
- p(i, { command: "config" }, {
1179
+ p(r, { command: "config" }, {
1173
1180
  default: n(() => [...a[3] || (a[3] = [
1174
1181
  m("svg", {
1175
1182
  viewBox: "0 0 24 24",
@@ -1193,56 +1200,56 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
1193
1200
  ])]),
1194
1201
  _: 1
1195
1202
  }),
1196
- p(i, {
1203
+ p(r, {
1197
1204
  command: "view-table",
1198
1205
  divided: ""
1199
1206
  }, {
1200
1207
  default: n(() => [
1201
- m("span", Yl, I(e.table.viewMode === "table" ? "✓" : ""), 1),
1208
+ m("span", ql, I(e.table.viewMode === "table" ? "✓" : ""), 1),
1202
1209
  a[4] || (a[4] = $("表格视图 ", -1))
1203
1210
  ]),
1204
1211
  _: 1
1205
1212
  }),
1206
- e.table.slotNames.includes("card") ? (o(), x(i, {
1213
+ e.table.slotNames.includes("card") ? (o(), C(r, {
1207
1214
  key: 0,
1208
1215
  command: "view-card"
1209
1216
  }, {
1210
1217
  default: n(() => [
1211
- m("span", Ql, I(e.table.viewMode === "card" ? "✓" : ""), 1),
1218
+ m("span", Ll, I(e.table.viewMode === "card" ? "✓" : ""), 1),
1212
1219
  a[5] || (a[5] = $("卡片视图 ", -1))
1213
1220
  ]),
1214
1221
  _: 1
1215
- })) : D("", !0),
1216
- e.table.slotNames.includes("list") ? (o(), x(i, {
1222
+ })) : B("", !0),
1223
+ e.table.slotNames.includes("list") ? (o(), C(r, {
1217
1224
  key: 1,
1218
1225
  command: "view-list"
1219
1226
  }, {
1220
1227
  default: n(() => [
1221
- m("span", Nl, I(e.table.viewMode === "list" ? "✓" : ""), 1),
1228
+ m("span", Ul, I(e.table.viewMode === "list" ? "✓" : ""), 1),
1222
1229
  a[6] || (a[6] = $("列表视图 ", -1))
1223
1230
  ]),
1224
1231
  _: 1
1225
- })) : D("", !0),
1226
- p(i, {
1232
+ })) : B("", !0),
1233
+ p(r, {
1227
1234
  command: "toggle-checkbox",
1228
1235
  divided: ""
1229
1236
  }, {
1230
1237
  default: n(() => [
1231
- m("span", Ol, I(e.table.selectable ? "✓" : ""), 1),
1238
+ m("span", Kl, I(e.table.selectable ? "✓" : ""), 1),
1232
1239
  a[7] || (a[7] = $("选择行 ", -1))
1233
1240
  ]),
1234
1241
  _: 1
1235
1242
  }),
1236
- p(i, { command: "toggle-column-resize" }, {
1243
+ p(r, { command: "toggle-column-resize" }, {
1237
1244
  default: n(() => [
1238
- m("span", ql, I(e.table.columnResizable ? "✓" : ""), 1),
1245
+ m("span", jl, I(e.table.columnResizable ? "✓" : ""), 1),
1239
1246
  a[8] || (a[8] = $("列宽拖动 ", -1))
1240
1247
  ]),
1241
1248
  _: 1
1242
1249
  }),
1243
- p(i, { command: "toggle-sticky-header" }, {
1250
+ p(r, { command: "toggle-sticky-header" }, {
1244
1251
  default: n(() => [
1245
- m("span", Ll, I(e.table.stickyHeader ? "✓" : ""), 1),
1252
+ m("span", Hl, I(e.table.stickyHeader ? "✓" : ""), 1),
1246
1253
  a[9] || (a[9] = $("锁定表头 ", -1))
1247
1254
  ]),
1248
1255
  _: 1
@@ -1252,7 +1259,7 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
1252
1259
  })
1253
1260
  ]),
1254
1261
  default: n(() => [
1255
- ee(t.$slots, "trigger", {}, () => [
1262
+ ee(l.$slots, "trigger", {}, () => [
1256
1263
  p(f, {
1257
1264
  class: "yk-table-action-menu-button__btn",
1258
1265
  title: "表格操作",
@@ -1314,62 +1321,62 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
1314
1321
  });
1315
1322
  };
1316
1323
  }
1317
- }), Ct = /* @__PURE__ */ re(Ul, [["__scopeId", "data-v-fffcf297"]]), Kl = {
1324
+ }), $t = /* @__PURE__ */ re(Gl, [["__scopeId", "data-v-fffcf297"]]), Wl = {
1318
1325
  key: 0,
1319
1326
  class: "yk-table__selection-bar"
1320
- }, jl = { class: "yk-table__selection-bar__count" }, Hl = /* @__PURE__ */ te({
1327
+ }, Jl = { class: "yk-table__selection-bar__count" }, Xl = /* @__PURE__ */ te({
1321
1328
  __name: "selectionBar",
1322
1329
  props: {
1323
1330
  count: {}
1324
1331
  },
1325
1332
  emits: ["select-all", "invert", "clear"],
1326
1333
  setup(e) {
1327
- return (y, l) => {
1328
- const t = C("el-button");
1329
- return e.count > 0 ? (o(), v("div", Kl, [
1330
- m("span", jl, "已选 " + I(e.count) + " 项", 1),
1331
- l[6] || (l[6] = m("span", { class: "yk-table__selection-bar__sep" }, "|", -1)),
1332
- p(t, {
1334
+ return (y, t) => {
1335
+ const l = S("el-button");
1336
+ return e.count > 0 ? (o(), v("div", Wl, [
1337
+ m("span", Jl, "已选 " + I(e.count) + " 项", 1),
1338
+ t[6] || (t[6] = m("span", { class: "yk-table__selection-bar__sep" }, "|", -1)),
1339
+ p(l, {
1333
1340
  link: "",
1334
1341
  type: "primary",
1335
1342
  class: "yk-table__selection-bar__btn",
1336
- onClick: l[0] || (l[0] = (a) => y.$emit("select-all"))
1343
+ onClick: t[0] || (t[0] = (a) => y.$emit("select-all"))
1337
1344
  }, {
1338
- default: n(() => [...l[3] || (l[3] = [
1345
+ default: n(() => [...t[3] || (t[3] = [
1339
1346
  $("全选", -1)
1340
1347
  ])]),
1341
1348
  _: 1
1342
1349
  }),
1343
- p(t, {
1350
+ p(l, {
1344
1351
  link: "",
1345
1352
  type: "primary",
1346
1353
  class: "yk-table__selection-bar__btn",
1347
- onClick: l[1] || (l[1] = (a) => y.$emit("invert"))
1354
+ onClick: t[1] || (t[1] = (a) => y.$emit("invert"))
1348
1355
  }, {
1349
- default: n(() => [...l[4] || (l[4] = [
1356
+ default: n(() => [...t[4] || (t[4] = [
1350
1357
  $("反选", -1)
1351
1358
  ])]),
1352
1359
  _: 1
1353
1360
  }),
1354
- l[7] || (l[7] = m("span", { class: "yk-table__selection-bar__sep" }, "|", -1)),
1355
- p(t, {
1361
+ t[7] || (t[7] = m("span", { class: "yk-table__selection-bar__sep" }, "|", -1)),
1362
+ p(l, {
1356
1363
  link: "",
1357
1364
  type: "primary",
1358
1365
  class: "yk-table__selection-bar__btn",
1359
- onClick: l[2] || (l[2] = (a) => y.$emit("clear"))
1366
+ onClick: t[2] || (t[2] = (a) => y.$emit("clear"))
1360
1367
  }, {
1361
- default: n(() => [...l[5] || (l[5] = [
1368
+ default: n(() => [...t[5] || (t[5] = [
1362
1369
  $("清空", -1)
1363
1370
  ])]),
1364
1371
  _: 1
1365
1372
  })
1366
- ])) : D("", !0);
1373
+ ])) : B("", !0);
1367
1374
  };
1368
1375
  }
1369
- }), Gl = /* @__PURE__ */ re(Hl, [["__scopeId", "data-v-3f40dafb"]]), Wl = { class: "yk-command-bar" }, Jl = { class: "yk-command-bar__actions" }, Xl = {
1376
+ }), Zl = /* @__PURE__ */ re(Xl, [["__scopeId", "data-v-3f40dafb"]]), eo = { class: "yk-command-bar" }, to = { class: "yk-command-bar__actions" }, lo = {
1370
1377
  key: 0,
1371
1378
  class: "yk-command-bar__right"
1372
- }, Zl = /* @__PURE__ */ te({
1379
+ }, oo = /* @__PURE__ */ te({
1373
1380
  __name: "commandBar",
1374
1381
  props: {
1375
1382
  /** 表级命令列表,每条渲染为一个 el-button(type/plain/icon/desc/align),click 调 execute(table) */
@@ -1378,113 +1385,113 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
1378
1385
  table: { type: Object, default: null }
1379
1386
  },
1380
1387
  setup(e) {
1381
- const y = e, l = O(() => y.actions.filter((a) => a.align !== "right")), t = O(() => y.actions.filter((a) => a.align === "right"));
1388
+ const y = e, t = q(() => y.actions.filter((a) => a.align !== "right")), l = q(() => y.actions.filter((a) => a.align === "right"));
1382
1389
  return (a, f) => {
1383
- const i = C("el-button");
1384
- return o(), v("div", Wl, [
1385
- m("div", Jl, [
1386
- (o(!0), v(U, null, le(l.value, (d) => (o(), x(i, {
1390
+ const r = S("el-button");
1391
+ return o(), v("div", eo, [
1392
+ m("div", to, [
1393
+ (o(!0), v(K, null, le(t.value, (d) => (o(), C(r, {
1387
1394
  key: d.name,
1388
1395
  type: d.type === "default" ? void 0 : d.type,
1389
1396
  plain: d.plain,
1390
- onClick: (r) => y.table && d.execute(y.table)
1397
+ onClick: (u) => y.table && d.execute(y.table)
1391
1398
  }, {
1392
1399
  default: n(() => [
1393
- d.icon ? (o(), x(De(d.icon), {
1400
+ d.icon ? (o(), C(Ae(d.icon), {
1394
1401
  key: 0,
1395
1402
  class: "yk-command-bar__icon"
1396
- })) : D("", !0),
1403
+ })) : B("", !0),
1397
1404
  $(" " + I(d.desc), 1)
1398
1405
  ]),
1399
1406
  _: 2
1400
1407
  }, 1032, ["type", "plain", "onClick"]))), 128)),
1401
- y.table ? (o(), x(Gl, {
1408
+ y.table ? (o(), C(Zl, {
1402
1409
  key: 0,
1403
1410
  count: y.table.selectedRows.length,
1404
1411
  onSelectAll: f[0] || (f[0] = (d) => {
1405
- var r;
1406
- return (r = y.table) == null ? void 0 : r.selectAllOnPage();
1412
+ var u;
1413
+ return (u = y.table) == null ? void 0 : u.selectAllOnPage();
1407
1414
  }),
1408
1415
  onInvert: f[1] || (f[1] = (d) => {
1409
- var r;
1410
- return (r = y.table) == null ? void 0 : r.invertSelectionOnPage();
1416
+ var u;
1417
+ return (u = y.table) == null ? void 0 : u.invertSelectionOnPage();
1411
1418
  }),
1412
1419
  onClear: f[2] || (f[2] = (d) => {
1413
- var r;
1414
- return (r = y.table) == null ? void 0 : r.clearSelection();
1420
+ var u;
1421
+ return (u = y.table) == null ? void 0 : u.clearSelection();
1415
1422
  })
1416
- }, null, 8, ["count"])) : D("", !0),
1423
+ }, null, 8, ["count"])) : B("", !0),
1417
1424
  ee(a.$slots, "default", {}, void 0, !0)
1418
1425
  ]),
1419
- t.value.length ? (o(), v("div", Xl, [
1420
- (o(!0), v(U, null, le(t.value, (d) => (o(), x(i, {
1426
+ l.value.length ? (o(), v("div", lo, [
1427
+ (o(!0), v(K, null, le(l.value, (d) => (o(), C(r, {
1421
1428
  key: d.name,
1422
1429
  type: d.type === "default" ? void 0 : d.type,
1423
1430
  plain: d.plain,
1424
- onClick: (r) => y.table && d.execute(y.table)
1431
+ onClick: (u) => y.table && d.execute(y.table)
1425
1432
  }, {
1426
1433
  default: n(() => [
1427
- d.icon ? (o(), x(De(d.icon), {
1434
+ d.icon ? (o(), C(Ae(d.icon), {
1428
1435
  key: 0,
1429
1436
  class: "yk-command-bar__icon"
1430
- })) : D("", !0),
1437
+ })) : B("", !0),
1431
1438
  $(" " + I(d.desc), 1)
1432
1439
  ]),
1433
1440
  _: 2
1434
1441
  }, 1032, ["type", "plain", "onClick"]))), 128))
1435
- ])) : D("", !0)
1442
+ ])) : B("", !0)
1436
1443
  ]);
1437
1444
  };
1438
1445
  }
1439
- }), St = /* @__PURE__ */ re(Zl, [["__scopeId", "data-v-c7eb7da1"]]), eo = {
1446
+ }), Ft = /* @__PURE__ */ re(oo, [["__scopeId", "data-v-c7eb7da1"]]), no = {
1440
1447
  key: 0,
1441
1448
  class: "ys-main-panel__menu-icon"
1442
- }, to = { class: "ys-main-panel__menu-text" }, lo = {
1449
+ }, ao = { class: "ys-main-panel__menu-text" }, so = {
1443
1450
  key: 0,
1444
1451
  class: "ys-main-panel__menu-icon"
1445
- }, oo = { class: "ys-main-panel__menu-text" }, ct = /* @__PURE__ */ te({
1452
+ }, io = { class: "ys-main-panel__menu-text" }, mt = /* @__PURE__ */ te({
1446
1453
  name: "YsMainPanelMenuNode",
1447
1454
  __name: "mainPanelMenuNode",
1448
1455
  props: {
1449
1456
  node: {}
1450
1457
  },
1451
1458
  setup(e) {
1452
- return (y, l) => {
1453
- const t = C("main-panel-menu-node", !0), a = C("el-sub-menu"), f = C("el-menu-item");
1454
- return e.node.children && e.node.children.length > 0 ? (o(), x(a, {
1459
+ return (y, t) => {
1460
+ const l = S("main-panel-menu-node", !0), a = S("el-sub-menu"), f = S("el-menu-item");
1461
+ return e.node.children && e.node.children.length > 0 ? (o(), C(a, {
1455
1462
  key: 0,
1456
1463
  index: e.node.key
1457
1464
  }, {
1458
1465
  title: n(() => [
1459
- e.node.icon ? (o(), v("i", eo, I(e.node.icon), 1)) : D("", !0),
1460
- m("span", to, I(e.node.label), 1)
1466
+ e.node.icon ? (o(), v("i", no, I(e.node.icon), 1)) : B("", !0),
1467
+ m("span", ao, I(e.node.label), 1)
1461
1468
  ]),
1462
1469
  default: n(() => [
1463
- (o(!0), v(U, null, le(e.node.children, (i) => (o(), x(t, {
1464
- key: i.key,
1465
- node: i
1470
+ (o(!0), v(K, null, le(e.node.children, (r) => (o(), C(l, {
1471
+ key: r.key,
1472
+ node: r
1466
1473
  }, null, 8, ["node"]))), 128))
1467
1474
  ]),
1468
1475
  _: 1
1469
- }, 8, ["index"])) : (o(), x(f, {
1476
+ }, 8, ["index"])) : (o(), C(f, {
1470
1477
  key: 1,
1471
1478
  index: e.node.key
1472
1479
  }, {
1473
1480
  default: n(() => [
1474
- e.node.icon ? (o(), v("i", lo, I(e.node.icon), 1)) : D("", !0),
1475
- m("span", oo, I(e.node.label), 1)
1481
+ e.node.icon ? (o(), v("i", so, I(e.node.icon), 1)) : B("", !0),
1482
+ m("span", io, I(e.node.label), 1)
1476
1483
  ]),
1477
1484
  _: 1
1478
1485
  }, 8, ["index"]));
1479
1486
  };
1480
1487
  }
1481
- }), no = { class: "ys-main-panel" }, ao = { class: "ys-main-panel__aside-header" }, so = ["title"], io = {
1488
+ }), ro = { class: "ys-main-panel" }, uo = { class: "ys-main-panel__aside-header" }, co = ["title"], po = {
1482
1489
  key: 0,
1483
1490
  class: "ys-main-panel__menu-empty"
1484
- }, ro = { class: "ys-main-panel__main" }, uo = {
1491
+ }, mo = { class: "ys-main-panel__main" }, fo = {
1485
1492
  key: 1,
1486
1493
  class: "ys-main-panel__empty"
1487
- }, co = /* @__PURE__ */ te({
1494
+ }, vo = /* @__PURE__ */ te({
1488
1495
  name: "YsMainPanel",
1489
1496
  __name: "mainPanel",
1490
1497
  props: {
@@ -1509,46 +1516,46 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
1509
1516
  },
1510
1517
  emits: ["update:menuKeyword"],
1511
1518
  setup(e, { emit: y }) {
1512
- const l = e, t = y, a = T(!1), f = T(l.menuKeyword);
1519
+ const t = e, l = y, a = T(!1), f = T(t.menuKeyword);
1513
1520
  ce(
1514
- () => l.menuKeyword,
1515
- (s) => {
1516
- f.value = s;
1521
+ () => t.menuKeyword,
1522
+ (i) => {
1523
+ f.value = i;
1517
1524
  }
1518
1525
  );
1519
- const i = O({
1526
+ const r = q({
1520
1527
  get: () => f.value,
1521
- set: (s) => {
1522
- f.value = s, t("update:menuKeyword", s);
1528
+ set: (i) => {
1529
+ f.value = i, l("update:menuKeyword", i);
1523
1530
  }
1524
- }), d = O(() => i.value.trim().length > 0), r = O(() => qt(F.value, i.value)), w = O(() => Lt(r.value)), { nodes: F, menuLoading: A, loadNodes: L } = Ut(l), { openTabs: B, activeKey: h, openTab: _, removeTab: Y, getComponent: Q } = Kt(l);
1525
- function J(s) {
1526
- const g = rt(F.value, s);
1527
- g && !ut(g) && _(g);
1531
+ }), d = q(() => r.value.trim().length > 0), u = q(() => Wt(F.value, r.value)), w = q(() => Jt(u.value)), { nodes: F, menuLoading: A, loadNodes: U } = Xt(t), { openTabs: E, activeKey: h, openTab: _, removeTab: Y, getComponent: N } = Zt(t);
1532
+ function J(i) {
1533
+ const g = dt(F.value, i);
1534
+ g && !ct(g) && _(g);
1528
1535
  }
1529
- let K = !1;
1530
- return Ce(async () => {
1531
- if (await L(), !K && l.defaultActive) {
1532
- const s = rt(F.value, l.defaultActive);
1533
- s && !ut(s) && _(s), K = !0;
1536
+ let j = !1;
1537
+ return Se(async () => {
1538
+ if (await U(), !j && t.defaultActive) {
1539
+ const i = dt(F.value, t.defaultActive);
1540
+ i && !ct(i) && _(i), j = !0;
1534
1541
  }
1535
- }), (s, g) => {
1536
- const z = C("el-input"), N = C("el-menu"), q = C("el-tab-pane"), ue = C("el-tabs"), ie = C("el-empty"), X = ft("loading");
1537
- return o(), v("div", no, [
1542
+ }), (i, g) => {
1543
+ const z = S("el-input"), O = S("el-menu"), L = S("el-tab-pane"), ue = S("el-tabs"), ie = S("el-empty"), X = yt("loading");
1544
+ return o(), v("div", ro, [
1538
1545
  m("aside", {
1539
- class: we(["ys-main-panel__aside", { "is-collapsed": a.value }])
1546
+ class: Ce(["ys-main-panel__aside", { "is-collapsed": a.value }])
1540
1547
  }, [
1541
- m("div", ao, [
1548
+ m("div", uo, [
1542
1549
  m("button", {
1543
1550
  class: "ys-main-panel__collapse-btn",
1544
1551
  type: "button",
1545
1552
  title: a.value ? "展开菜单" : "折叠菜单",
1546
- onClick: g[0] || (g[0] = (S) => a.value = !a.value)
1547
- }, "☰", 8, so),
1548
- l.showMenuSearch && !a.value ? (o(), x(z, {
1553
+ onClick: g[0] || (g[0] = (x) => a.value = !a.value)
1554
+ }, "☰", 8, co),
1555
+ t.showMenuSearch && !a.value ? (o(), C(z, {
1549
1556
  key: 0,
1550
- modelValue: i.value,
1551
- "onUpdate:modelValue": g[1] || (g[1] = (S) => i.value = S),
1557
+ modelValue: r.value,
1558
+ "onUpdate:modelValue": g[1] || (g[1] = (x) => r.value = x),
1552
1559
  class: "ys-main-panel__aside-search",
1553
1560
  size: "small",
1554
1561
  clearable: "",
@@ -1570,11 +1577,11 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
1570
1577
  ], -1)
1571
1578
  ])]),
1572
1579
  _: 1
1573
- }, 8, ["modelValue"])) : D("", !0)
1580
+ }, 8, ["modelValue"])) : B("", !0)
1574
1581
  ]),
1575
- d.value ? tt((o(), x(N, {
1576
- key: "search-" + i.value,
1577
- "default-active": u(h),
1582
+ d.value ? lt((o(), C(O, {
1583
+ key: "search-" + r.value,
1584
+ "default-active": s(h),
1578
1585
  "default-openeds": w.value,
1579
1586
  collapse: a.value,
1580
1587
  class: "ys-main-panel__menu",
@@ -1582,76 +1589,76 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
1582
1589
  onSelect: J
1583
1590
  }, {
1584
1591
  default: n(() => [
1585
- (o(!0), v(U, null, le(r.value, (S) => (o(), x(ct, {
1586
- key: S.key,
1587
- node: S
1592
+ (o(!0), v(K, null, le(u.value, (x) => (o(), C(mt, {
1593
+ key: x.key,
1594
+ node: x
1588
1595
  }, null, 8, ["node"]))), 128)),
1589
- r.value.length === 0 && !u(A) ? (o(), v("div", io, " 未找到匹配的功能 ")) : D("", !0)
1596
+ u.value.length === 0 && !s(A) ? (o(), v("div", po, " 未找到匹配的功能 ")) : B("", !0)
1590
1597
  ]),
1591
1598
  _: 1
1592
1599
  }, 8, ["default-active", "default-openeds", "collapse"])), [
1593
- [X, u(A)]
1594
- ]) : tt((o(), x(N, {
1600
+ [X, s(A)]
1601
+ ]) : lt((o(), C(O, {
1595
1602
  key: 1,
1596
- "default-active": u(h),
1603
+ "default-active": s(h),
1597
1604
  collapse: a.value,
1598
1605
  class: "ys-main-panel__menu",
1599
1606
  "element-loading-background": "transparent",
1600
1607
  onSelect: J
1601
1608
  }, {
1602
1609
  default: n(() => [
1603
- (o(!0), v(U, null, le(u(F), (S) => (o(), x(ct, {
1604
- key: S.key,
1605
- node: S
1610
+ (o(!0), v(K, null, le(s(F), (x) => (o(), C(mt, {
1611
+ key: x.key,
1612
+ node: x
1606
1613
  }, null, 8, ["node"]))), 128))
1607
1614
  ]),
1608
1615
  _: 1
1609
1616
  }, 8, ["default-active", "collapse"])), [
1610
- [X, u(A)]
1617
+ [X, s(A)]
1611
1618
  ])
1612
1619
  ], 2),
1613
- m("main", ro, [
1614
- u(B).length > 0 ? (o(), x(ue, {
1620
+ m("main", mo, [
1621
+ s(E).length > 0 ? (o(), C(ue, {
1615
1622
  key: 0,
1616
- modelValue: u(h),
1617
- "onUpdate:modelValue": g[2] || (g[2] = (S) => be(h) ? h.value = S : null),
1623
+ modelValue: s(h),
1624
+ "onUpdate:modelValue": g[2] || (g[2] = (x) => he(h) ? h.value = x : null),
1618
1625
  type: "card",
1619
1626
  closable: "",
1620
1627
  class: "ys-main-panel__tabs",
1621
- onTabRemove: u(Y)
1628
+ onTabRemove: s(Y)
1622
1629
  }, {
1623
1630
  default: n(() => [
1624
- (o(!0), v(U, null, le(u(B), (S) => (o(), x(q, {
1625
- key: S.key,
1626
- name: S.key
1631
+ (o(!0), v(K, null, le(s(E), (x) => (o(), C(L, {
1632
+ key: x.key,
1633
+ name: x.key
1627
1634
  }, {
1628
1635
  label: n(() => [
1629
- $(I(S.label), 1)
1636
+ $(I(x.label), 1)
1630
1637
  ]),
1631
1638
  default: n(() => [
1632
- S.componentPath ? (o(), x(De(u(Q)(S.componentPath)), lt({
1639
+ x.componentPath ? (o(), C(Ae(s(N)(x.componentPath)), ot({
1633
1640
  key: 0,
1634
1641
  ref_for: !0
1635
- }, S.props), null, 16)) : D("", !0)
1642
+ }, x.props), null, 16)) : B("", !0)
1636
1643
  ]),
1637
1644
  _: 2
1638
1645
  }, 1032, ["name"]))), 128))
1639
1646
  ]),
1640
1647
  _: 1
1641
- }, 8, ["modelValue", "onTabRemove"])) : (o(), v("div", uo, [
1648
+ }, 8, ["modelValue", "onTabRemove"])) : (o(), v("div", fo, [
1642
1649
  p(ie, { description: "暂无打开的功能,从左侧菜单选择" })
1643
1650
  ]))
1644
1651
  ])
1645
1652
  ]);
1646
1653
  };
1647
1654
  }
1648
- }), po = /* @__PURE__ */ re(co, [["__scopeId", "data-v-c36933e0"]]), mo = {
1655
+ }), yo = /* @__PURE__ */ re(vo, [["__scopeId", "data-v-c36933e0"]]), go = {
1649
1656
  key: 2,
1650
1657
  class: "yk-advanced-value-editor yk-advanced-value-editor--range"
1651
- }, fo = {
1658
+ }, _o = {
1652
1659
  key: 4,
1653
1660
  class: "yk-advanced-value-editor yk-advanced-value-editor--daterange"
1654
- }, vo = { class: "yk-advanced-value-editor__recent-pop" }, yo = /* @__PURE__ */ te({
1661
+ }, ko = { class: "yk-advanced-value-editor__recent-pop" }, bo = /* @__PURE__ */ te({
1655
1662
  name: "YsAdvancedValueEditor",
1656
1663
  __name: "advancedValueEditor",
1657
1664
  props: {
@@ -1674,81 +1681,81 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
1674
1681
  },
1675
1682
  emits: ["update:modelValue"],
1676
1683
  setup(e, { emit: y }) {
1677
- const l = e, t = y, a = O(() => l.op === "between" || l.op === "not_between"), f = O(() => l.op === "in" || l.op === "not_in"), i = O({
1678
- get: () => typeof l.modelValue == "string" ? l.modelValue : "",
1679
- set: (s) => t("update:modelValue", s)
1680
- }), d = O({
1681
- get: () => typeof l.modelValue == "number" ? l.modelValue : void 0,
1682
- set: (s) => t("update:modelValue", s ?? null)
1683
- }), r = O({
1684
- get: () => typeof l.modelValue == "string" ? l.modelValue : null,
1685
- set: (s) => t("update:modelValue", s)
1686
- }), w = O({
1687
- get: () => typeof l.modelValue == "boolean" ? l.modelValue : void 0,
1688
- set: (s) => t("update:modelValue", s ?? null)
1689
- }), F = O({
1684
+ const t = e, l = y, a = q(() => t.op === "between" || t.op === "not_between"), f = q(() => t.op === "in" || t.op === "not_in"), r = q({
1685
+ get: () => typeof t.modelValue == "string" ? t.modelValue : "",
1686
+ set: (i) => l("update:modelValue", i)
1687
+ }), d = q({
1688
+ get: () => typeof t.modelValue == "number" ? t.modelValue : void 0,
1689
+ set: (i) => l("update:modelValue", i ?? null)
1690
+ }), u = q({
1691
+ get: () => typeof t.modelValue == "string" ? t.modelValue : null,
1692
+ set: (i) => l("update:modelValue", i)
1693
+ }), w = q({
1694
+ get: () => typeof t.modelValue == "boolean" ? t.modelValue : void 0,
1695
+ set: (i) => l("update:modelValue", i ?? null)
1696
+ }), F = q({
1690
1697
  get: () => {
1691
- const s = l.modelValue;
1692
- if (typeof s == "string" || typeof s == "number" || typeof s == "boolean") return s;
1698
+ const i = t.modelValue;
1699
+ if (typeof i == "string" || typeof i == "number" || typeof i == "boolean") return i;
1693
1700
  },
1694
- set: (s) => t("update:modelValue", s ?? null)
1695
- }), A = O({
1696
- get: () => Array.isArray(l.modelValue) ? l.modelValue : [],
1697
- set: (s) => t("update:modelValue", s)
1698
- }), L = O({
1701
+ set: (i) => l("update:modelValue", i ?? null)
1702
+ }), A = q({
1703
+ get: () => Array.isArray(t.modelValue) ? t.modelValue : [],
1704
+ set: (i) => l("update:modelValue", i)
1705
+ }), U = q({
1699
1706
  get: () => {
1700
- if (!Array.isArray(l.modelValue) || l.modelValue.length !== 2) return null;
1701
- const s = l.modelValue[0], g = l.modelValue[1];
1702
- return typeof s == "string" && typeof g == "string" ? [s, g] : null;
1707
+ if (!Array.isArray(t.modelValue) || t.modelValue.length !== 2) return null;
1708
+ const i = t.modelValue[0], g = t.modelValue[1];
1709
+ return typeof i == "string" && typeof g == "string" ? [i, g] : null;
1703
1710
  },
1704
- set: (s) => t("update:modelValue", s)
1705
- }), B = O({
1711
+ set: (i) => l("update:modelValue", i)
1712
+ }), E = q({
1706
1713
  get: () => {
1707
- if (Array.isArray(l.modelValue)) {
1708
- const s = l.modelValue[0];
1709
- return typeof s == "number" ? s : void 0;
1714
+ if (Array.isArray(t.modelValue)) {
1715
+ const i = t.modelValue[0];
1716
+ return typeof i == "number" ? i : void 0;
1710
1717
  }
1711
1718
  },
1712
- set: (s) => {
1713
- const g = Array.isArray(l.modelValue) && typeof l.modelValue[1] == "number" ? l.modelValue[1] : null;
1714
- t("update:modelValue", [s ?? null, g]);
1719
+ set: (i) => {
1720
+ const g = Array.isArray(t.modelValue) && typeof t.modelValue[1] == "number" ? t.modelValue[1] : null;
1721
+ l("update:modelValue", [i ?? null, g]);
1715
1722
  }
1716
- }), h = O({
1723
+ }), h = q({
1717
1724
  get: () => {
1718
- if (Array.isArray(l.modelValue)) {
1719
- const s = l.modelValue[1];
1720
- return typeof s == "number" ? s : void 0;
1725
+ if (Array.isArray(t.modelValue)) {
1726
+ const i = t.modelValue[1];
1727
+ return typeof i == "number" ? i : void 0;
1721
1728
  }
1722
1729
  },
1723
- set: (s) => {
1724
- const g = Array.isArray(l.modelValue) && typeof l.modelValue[0] == "number" ? l.modelValue[0] : null;
1725
- t("update:modelValue", [g, s ?? null]);
1730
+ set: (i) => {
1731
+ const g = Array.isArray(t.modelValue) && typeof t.modelValue[0] == "number" ? t.modelValue[0] : null;
1732
+ l("update:modelValue", [g, i ?? null]);
1726
1733
  }
1727
1734
  }), _ = [
1728
1735
  { label: "是", value: !0 },
1729
1736
  { label: "否", value: !1 }
1730
1737
  ];
1731
- function Y(s) {
1738
+ function Y(i) {
1732
1739
  const g = /* @__PURE__ */ new Date(), z = /* @__PURE__ */ new Date();
1733
- return z.setDate(z.getDate() - s), [z, g];
1740
+ return z.setDate(z.getDate() - i), [z, g];
1734
1741
  }
1735
- const Q = [
1742
+ const N = [
1736
1743
  { text: "最近 7 天", value: () => Y(7) },
1737
1744
  { text: "最近 30 天", value: () => Y(30) },
1738
1745
  { text: "最近 90 天", value: () => Y(90) }
1739
1746
  ], J = T(7);
1740
- function K() {
1741
- const s = J.value;
1742
- if (!s || s < 1) return;
1743
- const [g, z] = Y(s);
1744
- L.value = [
1745
- dt(g).format(l.valueFormat),
1746
- dt(z).format(l.valueFormat)
1747
+ function j() {
1748
+ const i = J.value;
1749
+ if (!i || i < 1) return;
1750
+ const [g, z] = Y(i);
1751
+ U.value = [
1752
+ pt(g).format(t.valueFormat),
1753
+ pt(z).format(t.valueFormat)
1747
1754
  ];
1748
1755
  }
1749
- return (s, g) => {
1750
- const z = C("el-select"), N = C("el-input"), q = C("el-input-number"), ue = C("el-date-picker"), ie = C("el-button"), X = C("el-popover"), S = C("el-option");
1751
- return e.fieldType === "string" && f.value ? (o(), x(z, {
1756
+ return (i, g) => {
1757
+ const z = S("el-select"), O = S("el-input"), L = S("el-input-number"), ue = S("el-date-picker"), ie = S("el-button"), X = S("el-popover"), x = S("el-option");
1758
+ return e.fieldType === "string" && f.value ? (o(), C(z, {
1752
1759
  key: 0,
1753
1760
  modelValue: A.value,
1754
1761
  "onUpdate:modelValue": g[0] || (g[0] = (b) => A.value = b),
@@ -1759,44 +1766,44 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
1759
1766
  "default-first-option": "",
1760
1767
  "reserve-keyword": !1,
1761
1768
  placeholder: "输入后回车添加"
1762
- }, null, 8, ["modelValue"])) : e.fieldType === "string" ? (o(), x(N, {
1769
+ }, null, 8, ["modelValue"])) : e.fieldType === "string" ? (o(), C(O, {
1763
1770
  key: 1,
1764
- modelValue: i.value,
1765
- "onUpdate:modelValue": g[1] || (g[1] = (b) => i.value = b),
1771
+ modelValue: r.value,
1772
+ "onUpdate:modelValue": g[1] || (g[1] = (b) => r.value = b),
1766
1773
  placeholder: "请输入",
1767
1774
  clearable: ""
1768
- }, null, 8, ["modelValue"])) : e.fieldType === "number" && a.value ? (o(), v("div", mo, [
1769
- p(q, {
1770
- modelValue: B.value,
1771
- "onUpdate:modelValue": g[2] || (g[2] = (b) => B.value = b),
1775
+ }, null, 8, ["modelValue"])) : e.fieldType === "number" && a.value ? (o(), v("div", go, [
1776
+ p(L, {
1777
+ modelValue: E.value,
1778
+ "onUpdate:modelValue": g[2] || (g[2] = (b) => E.value = b),
1772
1779
  placeholder: "最小值",
1773
1780
  controls: !1,
1774
1781
  class: "yk-advanced-value-editor__num"
1775
1782
  }, null, 8, ["modelValue"]),
1776
1783
  g[11] || (g[11] = m("span", { class: "yk-advanced-value-editor__sep" }, "~", -1)),
1777
- p(q, {
1784
+ p(L, {
1778
1785
  modelValue: h.value,
1779
1786
  "onUpdate:modelValue": g[3] || (g[3] = (b) => h.value = b),
1780
1787
  placeholder: "最大值",
1781
1788
  controls: !1,
1782
1789
  class: "yk-advanced-value-editor__num"
1783
1790
  }, null, 8, ["modelValue"])
1784
- ])) : e.fieldType === "number" ? (o(), x(q, {
1791
+ ])) : e.fieldType === "number" ? (o(), C(L, {
1785
1792
  key: 3,
1786
1793
  modelValue: d.value,
1787
1794
  "onUpdate:modelValue": g[4] || (g[4] = (b) => d.value = b),
1788
1795
  placeholder: "请输入数字",
1789
1796
  controls: !1,
1790
1797
  class: "yk-advanced-value-editor"
1791
- }, null, 8, ["modelValue"])) : e.fieldType === "date" && a.value ? (o(), v("div", fo, [
1798
+ }, null, 8, ["modelValue"])) : e.fieldType === "date" && a.value ? (o(), v("div", _o, [
1792
1799
  p(ue, {
1793
- modelValue: L.value,
1794
- "onUpdate:modelValue": g[5] || (g[5] = (b) => L.value = b),
1800
+ modelValue: U.value,
1801
+ "onUpdate:modelValue": g[5] || (g[5] = (b) => U.value = b),
1795
1802
  type: "daterange",
1796
1803
  "value-format": e.valueFormat,
1797
1804
  "start-placeholder": "开始日期",
1798
1805
  "end-placeholder": "结束日期",
1799
- shortcuts: Q,
1806
+ shortcuts: N,
1800
1807
  class: "yk-advanced-value-editor__daterange-picker"
1801
1808
  }, null, 8, ["modelValue", "value-format"]),
1802
1809
  p(X, {
@@ -1813,9 +1820,9 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
1813
1820
  })
1814
1821
  ]),
1815
1822
  default: n(() => [
1816
- m("div", vo, [
1823
+ m("div", ko, [
1817
1824
  g[14] || (g[14] = m("span", null, "最近", -1)),
1818
- p(q, {
1825
+ p(L, {
1819
1826
  modelValue: J.value,
1820
1827
  "onUpdate:modelValue": g[6] || (g[6] = (b) => J.value = b),
1821
1828
  min: 1,
@@ -1826,7 +1833,7 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
1826
1833
  p(ie, {
1827
1834
  type: "primary",
1828
1835
  size: "small",
1829
- onClick: K
1836
+ onClick: j
1830
1837
  }, {
1831
1838
  default: n(() => [...g[13] || (g[13] = [
1832
1839
  $("应用", -1)
@@ -1837,15 +1844,15 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
1837
1844
  ]),
1838
1845
  _: 1
1839
1846
  })
1840
- ])) : e.fieldType === "date" ? (o(), x(ue, {
1847
+ ])) : e.fieldType === "date" ? (o(), C(ue, {
1841
1848
  key: 5,
1842
- modelValue: r.value,
1843
- "onUpdate:modelValue": g[7] || (g[7] = (b) => r.value = b),
1849
+ modelValue: u.value,
1850
+ "onUpdate:modelValue": g[7] || (g[7] = (b) => u.value = b),
1844
1851
  type: "date",
1845
1852
  "value-format": e.valueFormat,
1846
1853
  placeholder: "选择日期",
1847
1854
  clearable: ""
1848
- }, null, 8, ["modelValue", "value-format"])) : e.fieldType === "boolean" ? (o(), x(z, {
1855
+ }, null, 8, ["modelValue", "value-format"])) : e.fieldType === "boolean" ? (o(), C(z, {
1849
1856
  key: 6,
1850
1857
  modelValue: w.value,
1851
1858
  "onUpdate:modelValue": g[8] || (g[8] = (b) => w.value = b),
@@ -1853,14 +1860,14 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
1853
1860
  clearable: ""
1854
1861
  }, {
1855
1862
  default: n(() => [
1856
- (o(), v(U, null, le(_, (b) => p(S, {
1863
+ (o(), v(K, null, le(_, (b) => p(x, {
1857
1864
  key: String(b.value),
1858
1865
  label: b.label,
1859
1866
  value: b.value
1860
1867
  }, null, 8, ["label", "value"])), 64))
1861
1868
  ]),
1862
1869
  _: 1
1863
- }, 8, ["modelValue"])) : e.fieldType === "enum" && f.value ? (o(), x(z, {
1870
+ }, 8, ["modelValue"])) : e.fieldType === "enum" && f.value ? (o(), C(z, {
1864
1871
  key: 7,
1865
1872
  modelValue: A.value,
1866
1873
  "onUpdate:modelValue": g[9] || (g[9] = (b) => A.value = b),
@@ -1870,14 +1877,14 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
1870
1877
  clearable: ""
1871
1878
  }, {
1872
1879
  default: n(() => [
1873
- (o(!0), v(U, null, le(e.options, (b) => (o(), x(S, {
1880
+ (o(!0), v(K, null, le(e.options, (b) => (o(), C(x, {
1874
1881
  key: String(b.value),
1875
1882
  label: b.label,
1876
1883
  value: b.value
1877
1884
  }, null, 8, ["label", "value"]))), 128))
1878
1885
  ]),
1879
1886
  _: 1
1880
- }, 8, ["modelValue", "loading"])) : e.fieldType === "enum" ? (o(), x(z, {
1887
+ }, 8, ["modelValue", "loading"])) : e.fieldType === "enum" ? (o(), C(z, {
1881
1888
  key: 8,
1882
1889
  modelValue: F.value,
1883
1890
  "onUpdate:modelValue": g[10] || (g[10] = (b) => F.value = b),
@@ -1886,26 +1893,26 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
1886
1893
  clearable: ""
1887
1894
  }, {
1888
1895
  default: n(() => [
1889
- (o(!0), v(U, null, le(e.options, (b) => (o(), x(S, {
1896
+ (o(!0), v(K, null, le(e.options, (b) => (o(), C(x, {
1890
1897
  key: String(b.value),
1891
1898
  label: b.label,
1892
1899
  value: b.value
1893
1900
  }, null, 8, ["label", "value"]))), 128))
1894
1901
  ]),
1895
1902
  _: 1
1896
- }, 8, ["modelValue", "loading"])) : D("", !0);
1903
+ }, 8, ["modelValue", "loading"])) : B("", !0);
1897
1904
  };
1898
1905
  }
1899
- }), $t = /* @__PURE__ */ re(yo, [["__scopeId", "data-v-dda18bcf"]]), Ft = Symbol("YsAdvancedFilter"), go = { class: "yk-adv-group__header" }, _o = { class: "yk-adv-group__actions" }, ko = { class: "yk-adv-group__children" }, bo = {
1906
+ }), Vt = /* @__PURE__ */ re(bo, [["__scopeId", "data-v-dda18bcf"]]), Rt = Symbol("YsAdvancedFilter"), ho = { class: "yk-adv-group__header" }, wo = { class: "yk-adv-group__actions" }, xo = { class: "yk-adv-group__children" }, Co = {
1900
1907
  key: 0,
1901
1908
  class: "yk-adv-group__nested"
1902
- }, ho = {
1909
+ }, So = {
1903
1910
  key: 1,
1904
1911
  class: "yk-adv-group__row"
1905
- }, wo = {
1912
+ }, $o = {
1906
1913
  key: 0,
1907
1914
  class: "yk-adv-group__empty"
1908
- }, xo = /* @__PURE__ */ te({
1915
+ }, Fo = /* @__PURE__ */ te({
1909
1916
  name: "YsAdvancedConditionGroup",
1910
1917
  __name: "advancedConditionGroup",
1911
1918
  props: {
@@ -1915,50 +1922,50 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
1915
1922
  level: { type: Number, default: 0 }
1916
1923
  },
1917
1924
  setup(e) {
1918
- const y = e, l = vt(Ft);
1919
- function t(h) {
1920
- (h === "and" || h === "or") && l.api.setGroupCombinator(y.group.id, h);
1925
+ const y = e, t = gt(Rt);
1926
+ function l(h) {
1927
+ (h === "and" || h === "or") && t.api.setGroupCombinator(y.group.id, h);
1921
1928
  }
1922
1929
  function a() {
1923
- l.api.addLeaf(y.group.id);
1930
+ t.api.addLeaf(y.group.id);
1924
1931
  }
1925
1932
  function f() {
1926
- l.api.addNestedGroup(y.group.id);
1933
+ t.api.addNestedGroup(y.group.id);
1927
1934
  }
1928
- function i() {
1929
- l.api.removeNode(y.group.id);
1935
+ function r() {
1936
+ t.api.removeNode(y.group.id);
1930
1937
  }
1931
1938
  function d(h, _) {
1932
- typeof _ == "string" && l.api.changeField(h.id, _);
1939
+ typeof _ == "string" && t.api.changeField(h.id, _);
1933
1940
  }
1934
- function r(h, _) {
1935
- l.api.changeOperator(h.id, _);
1941
+ function u(h, _) {
1942
+ t.api.changeOperator(h.id, _);
1936
1943
  }
1937
1944
  function w(h) {
1938
- l.api.removeNode(h);
1945
+ t.api.removeNode(h);
1939
1946
  }
1940
1947
  const F = nt;
1941
1948
  function A(h) {
1942
1949
  return h;
1943
1950
  }
1944
- function L(h) {
1945
- return l.columns.find((_) => _.propertyPath === h);
1951
+ function U(h) {
1952
+ return t.columns.find((_) => _.propertyPath === h);
1946
1953
  }
1947
- function B(h) {
1954
+ function E(h) {
1948
1955
  var _;
1949
- return ((_ = L(h)) == null ? void 0 : _.displayFormat) ?? "YYYY-MM-DD";
1956
+ return ((_ = U(h)) == null ? void 0 : _.displayFormat) ?? "YYYY-MM-DD";
1950
1957
  }
1951
1958
  return (h, _) => {
1952
- const Y = C("el-radio-button"), Q = C("el-radio-group"), J = C("el-button"), K = C("YsAdvancedConditionGroup"), s = C("el-option"), g = C("el-select");
1959
+ const Y = S("el-radio-button"), N = S("el-radio-group"), J = S("el-button"), j = S("YsAdvancedConditionGroup"), i = S("el-option"), g = S("el-select");
1953
1960
  return o(), v("div", {
1954
- class: we(["yk-adv-group", [`level-${e.level}`, { "is-root": e.level === 0 }]])
1961
+ class: Ce(["yk-adv-group", [`level-${e.level}`, { "is-root": e.level === 0 }]])
1955
1962
  }, [
1956
- m("div", go, [
1963
+ m("div", ho, [
1957
1964
  _[5] || (_[5] = m("span", { class: "yk-adv-group__comb-label" }, "满足", -1)),
1958
- p(Q, {
1965
+ p(N, {
1959
1966
  "model-value": e.group.combinator,
1960
1967
  size: "small",
1961
- "onUpdate:modelValue": t
1968
+ "onUpdate:modelValue": l
1962
1969
  }, {
1963
1970
  default: n(() => [
1964
1971
  p(Y, { value: "and" }, {
@@ -1977,7 +1984,7 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
1977
1984
  _: 1
1978
1985
  }, 8, ["model-value"]),
1979
1986
  _[6] || (_[6] = m("span", { class: "yk-adv-group__comb-label" }, "条件", -1)),
1980
- m("span", _o, [
1987
+ m("span", wo, [
1981
1988
  p(J, {
1982
1989
  link: "",
1983
1990
  type: "primary",
@@ -1998,41 +2005,41 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
1998
2005
  ])]),
1999
2006
  _: 1
2000
2007
  }),
2001
- e.level > 0 ? (o(), x(J, {
2008
+ e.level > 0 ? (o(), C(J, {
2002
2009
  key: 0,
2003
2010
  link: "",
2004
2011
  type: "danger",
2005
- onClick: i
2012
+ onClick: r
2006
2013
  }, {
2007
2014
  default: n(() => [..._[4] || (_[4] = [
2008
2015
  $(" 删除组 ", -1)
2009
2016
  ])]),
2010
2017
  _: 1
2011
- })) : D("", !0)
2018
+ })) : B("", !0)
2012
2019
  ])
2013
2020
  ]),
2014
- m("div", ko, [
2015
- (o(!0), v(U, null, le(e.group.children, (z) => (o(), v(U, {
2021
+ m("div", xo, [
2022
+ (o(!0), v(K, null, le(e.group.children, (z) => (o(), v(K, {
2016
2023
  key: z.id
2017
2024
  }, [
2018
- u(F)(z) ? (o(), v("div", bo, [
2019
- p(K, {
2025
+ s(F)(z) ? (o(), v("div", Co, [
2026
+ p(j, {
2020
2027
  group: z,
2021
2028
  level: e.level + 1
2022
2029
  }, null, 8, ["group", "level"])
2023
- ])) : (o(), v("div", ho, [
2030
+ ])) : (o(), v("div", So, [
2024
2031
  p(g, {
2025
2032
  "model-value": z.propertyPath,
2026
2033
  class: "yk-adv-group__field",
2027
2034
  placeholder: "选择字段",
2028
2035
  filterable: "",
2029
- "onUpdate:modelValue": (N) => d(z, N)
2036
+ "onUpdate:modelValue": (O) => d(z, O)
2030
2037
  }, {
2031
2038
  default: n(() => [
2032
- (o(!0), v(U, null, le(u(l).columns, (N) => (o(), x(s, {
2033
- key: N.propertyPath,
2034
- label: N.displayName ?? N.propertyPath,
2035
- value: N.propertyPath
2039
+ (o(!0), v(K, null, le(s(t).columns, (O) => (o(), C(i, {
2040
+ key: O.propertyPath,
2041
+ label: O.displayName ?? O.propertyPath,
2042
+ value: O.propertyPath
2036
2043
  }, null, 8, ["label", "value"]))), 128))
2037
2044
  ]),
2038
2045
  _: 1
@@ -2042,36 +2049,36 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
2042
2049
  class: "yk-adv-group__op",
2043
2050
  placeholder: "操作符",
2044
2051
  filterable: "",
2045
- "onUpdate:modelValue": (N) => r(z, N)
2052
+ "onUpdate:modelValue": (O) => u(z, O)
2046
2053
  }, {
2047
2054
  default: n(() => [
2048
- (o(!0), v(U, null, le(u(l).api.operatorsOf(z.propertyPath), (N) => (o(), x(s, {
2049
- key: N,
2050
- label: u(ol)[N],
2051
- value: N
2055
+ (o(!0), v(K, null, le(s(t).api.operatorsOf(z.propertyPath), (O) => (o(), C(i, {
2056
+ key: O,
2057
+ label: s(Ot)[O],
2058
+ value: O
2052
2059
  }, null, 8, ["label", "value"]))), 128))
2053
2060
  ]),
2054
2061
  _: 2
2055
2062
  }, 1032, ["model-value", "onUpdate:modelValue"]),
2056
- u(nl)(z.op) ? D("", !0) : (o(), x($t, {
2063
+ s(qt)(z.op) ? B("", !0) : (o(), C(Vt, {
2057
2064
  key: 0,
2058
- "field-type": u(l).api.fieldTypeOf(z.propertyPath),
2065
+ "field-type": s(t).api.fieldTypeOf(z.propertyPath),
2059
2066
  op: z.op,
2060
- options: u(l).optionsMap.value[z.propertyPath] ?? [],
2061
- "options-loading": u(l).loadingMap.value[z.propertyPath] === !0,
2062
- "value-format": B(z.propertyPath),
2063
- class: we([
2067
+ options: s(t).optionsMap.value[z.propertyPath] ?? [],
2068
+ "options-loading": s(t).loadingMap.value[z.propertyPath] === !0,
2069
+ "value-format": E(z.propertyPath),
2070
+ class: Ce([
2064
2071
  "yk-adv-group__value",
2065
- { "is-invalid": u(l).api.isConditionEmpty(z) }
2072
+ { "is-invalid": s(t).api.isConditionEmpty(z) }
2066
2073
  ]),
2067
2074
  modelValue: z.value,
2068
- "onUpdate:modelValue": (N) => z.value = N
2075
+ "onUpdate:modelValue": (O) => z.value = O
2069
2076
  }, null, 8, ["field-type", "op", "options", "options-loading", "value-format", "class", "modelValue", "onUpdate:modelValue"])),
2070
2077
  p(J, {
2071
2078
  link: "",
2072
2079
  type: "danger",
2073
2080
  class: "yk-adv-group__remove",
2074
- onClick: (N) => w(z.id)
2081
+ onClick: (O) => w(z.id)
2075
2082
  }, {
2076
2083
  default: n(() => [..._[7] || (_[7] = [
2077
2084
  $(" 删除 ", -1)
@@ -2080,15 +2087,15 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
2080
2087
  }, 8, ["onClick"])
2081
2088
  ]))
2082
2089
  ], 64))), 128)),
2083
- e.group.children.length === 0 ? (o(), v("div", wo, " 暂无条件,点击「+ 条件」或「+ 嵌套组」 ")) : D("", !0)
2090
+ e.group.children.length === 0 ? (o(), v("div", $o, " 暂无条件,点击「+ 条件」或「+ 嵌套组」 ")) : B("", !0)
2084
2091
  ])
2085
2092
  ], 2);
2086
2093
  };
2087
2094
  }
2088
- }), Vt = /* @__PURE__ */ re(xo, [["__scopeId", "data-v-518d9c97"]]), Co = {
2095
+ }), Mt = /* @__PURE__ */ re(Fo, [["__scopeId", "data-v-518d9c97"]]), Vo = {
2089
2096
  key: 0,
2090
2097
  class: "yk-advanced-filter__actions"
2091
- }, So = /* @__PURE__ */ te({
2098
+ }, Ro = /* @__PURE__ */ te({
2092
2099
  name: "YsAdvancedFilterPanel",
2093
2100
  __name: "advancedFilterPanel",
2094
2101
  props: {
@@ -2116,105 +2123,105 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
2116
2123
  }
2117
2124
  },
2118
2125
  emits: ["search", "reset", "update:savedQueries"],
2119
- setup(e, { expose: y, emit: l }) {
2120
- const t = e, a = l, f = kt(t), { rootGroup: i, fieldTypeOf: d, filter: r, reset: w } = f, F = T({}), A = T({});
2121
- async function L(S) {
2126
+ setup(e, { expose: y, emit: t }) {
2127
+ const l = e, a = t, f = ht(l), { rootGroup: r, fieldTypeOf: d, filter: u, reset: w } = f, F = T({}), A = T({});
2128
+ async function U(x) {
2122
2129
  var R;
2123
- const b = (R = t.optionSources) == null ? void 0 : R[S];
2124
- if (b && !(F.value[S] || A.value[S])) {
2125
- A.value[S] = !0;
2130
+ const b = (R = l.optionSources) == null ? void 0 : R[x];
2131
+ if (b && !(F.value[x] || A.value[x])) {
2132
+ A.value[x] = !0;
2126
2133
  try {
2127
- F.value[S] = await b();
2134
+ F.value[x] = await b();
2128
2135
  } finally {
2129
- A.value[S] = !1;
2136
+ A.value[x] = !1;
2130
2137
  }
2131
2138
  }
2132
2139
  }
2133
- function B(S) {
2140
+ function E(x) {
2134
2141
  const b = /* @__PURE__ */ new Set();
2135
2142
  function R(M) {
2136
2143
  nt(M) ? M.children.forEach(R) : d(M.propertyPath) === "enum" && b.add(M.propertyPath);
2137
2144
  }
2138
- return S.children.forEach(R), [...b];
2145
+ return x.children.forEach(R), [...b];
2139
2146
  }
2140
2147
  ce(
2141
- i,
2142
- (S) => {
2143
- for (const b of B(S))
2144
- L(b);
2148
+ r,
2149
+ (x) => {
2150
+ for (const b of E(x))
2151
+ U(b);
2145
2152
  },
2146
2153
  { deep: !0, immediate: !0 }
2147
- ), yt(Ft, {
2148
- columns: t.columns,
2154
+ ), _t(Rt, {
2155
+ columns: l.columns,
2149
2156
  optionsMap: F,
2150
2157
  loadingMap: A,
2151
2158
  api: f
2152
2159
  });
2153
2160
  function h() {
2154
- a("search", r.value);
2161
+ a("search", u.value);
2155
2162
  }
2156
2163
  function _() {
2157
2164
  w(), a("reset");
2158
2165
  }
2159
- const Y = T([]), Q = O(
2160
- () => t.savedQueries ?? Y.value
2166
+ const Y = T([]), N = q(
2167
+ () => l.savedQueries ?? Y.value
2161
2168
  );
2162
- function J(S) {
2163
- Y.value = S, a("update:savedQueries", S);
2169
+ function J(x) {
2170
+ Y.value = x, a("update:savedQueries", x);
2164
2171
  }
2165
- const K = T(!1), s = T(""), g = T("");
2172
+ const j = T(!1), i = T(""), g = T("");
2166
2173
  let z = 0;
2167
- function N() {
2168
- function S(b) {
2169
- return b.children.some((R) => nt(R) ? S(R) : f.isConditionEmpty(R));
2174
+ function O() {
2175
+ function x(b) {
2176
+ return b.children.some((R) => nt(R) ? x(R) : f.isConditionEmpty(R));
2170
2177
  }
2171
- return S(i.value);
2178
+ return x(r.value);
2172
2179
  }
2173
- function q() {
2174
- s.value = "", g.value = "", K.value = !0;
2180
+ function L() {
2181
+ i.value = "", g.value = "", j.value = !0;
2175
2182
  }
2176
2183
  function ue() {
2177
- const S = s.value.trim();
2178
- if (!S) return;
2179
- N() && ge.warning("当前存在未填值的条件行(标红),保存的预设可能不完整");
2180
- const b = JSON.parse(JSON.stringify(i.value)), R = {
2184
+ const x = i.value.trim();
2185
+ if (!x) return;
2186
+ O() && ye.warning("当前存在未填值的条件行(标红),保存的预设可能不完整");
2187
+ const b = JSON.parse(JSON.stringify(r.value)), R = {
2181
2188
  id: `sq-${++z}`,
2182
- name: S,
2189
+ name: x,
2183
2190
  description: g.value.trim(),
2184
2191
  group: b,
2185
- filterInfo: r.value
2192
+ filterInfo: u.value
2186
2193
  };
2187
- J([...Q.value, R]), K.value = !1;
2194
+ J([...N.value, R]), j.value = !1;
2188
2195
  }
2189
- function ie(S) {
2190
- i.value = JSON.parse(JSON.stringify(S.group)), h();
2196
+ function ie(x) {
2197
+ r.value = JSON.parse(JSON.stringify(x.group)), h();
2191
2198
  }
2192
- function X(S) {
2193
- J(Q.value.filter((b) => b.id !== S));
2199
+ function X(x) {
2200
+ J(N.value.filter((b) => b.id !== x));
2194
2201
  }
2195
2202
  return y({
2196
2203
  get filter() {
2197
- return r.value;
2204
+ return u.value;
2198
2205
  },
2199
2206
  reset: _,
2200
- openSaveDialog: q,
2207
+ openSaveDialog: L,
2201
2208
  applySavedQuery: ie,
2202
2209
  removeSavedQuery: X,
2203
2210
  get savedQueries() {
2204
- return Q.value;
2211
+ return N.value;
2205
2212
  }
2206
- }), (S, b) => {
2207
- const R = C("el-button"), M = C("el-input"), Z = C("el-form-item"), W = C("el-form"), P = C("el-dialog");
2213
+ }), (x, b) => {
2214
+ const R = S("el-button"), M = S("el-input"), Z = S("el-form-item"), W = S("el-form"), P = S("el-dialog");
2208
2215
  return o(), v("div", {
2209
2216
  class: "yk-advanced-filter",
2210
- onKeydown: Ze(h, ["enter"])
2217
+ onKeydown: et(h, ["enter"])
2211
2218
  }, [
2212
- p(Vt, {
2213
- group: u(i),
2219
+ p(Mt, {
2220
+ group: s(r),
2214
2221
  level: 0
2215
2222
  }, null, 8, ["group"]),
2216
- e.showSearch || e.showReset || e.showSaveQuery ? (o(), v("div", Co, [
2217
- e.showSearch ? (o(), x(R, {
2223
+ e.showSearch || e.showReset || e.showSaveQuery ? (o(), v("div", Vo, [
2224
+ e.showSearch ? (o(), C(R, {
2218
2225
  key: 0,
2219
2226
  type: "primary",
2220
2227
  onClick: h
@@ -2223,8 +2230,8 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
2223
2230
  $(I(e.searchButtonText), 1)
2224
2231
  ]),
2225
2232
  _: 1
2226
- })) : D("", !0),
2227
- e.showReset ? (o(), x(R, {
2233
+ })) : B("", !0),
2234
+ e.showReset ? (o(), C(R, {
2228
2235
  key: 1,
2229
2236
  onClick: _
2230
2237
  }, {
@@ -2232,27 +2239,27 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
2232
2239
  $(I(e.resetButtonText), 1)
2233
2240
  ]),
2234
2241
  _: 1
2235
- })) : D("", !0),
2236
- e.showSaveQuery ? (o(), x(R, {
2242
+ })) : B("", !0),
2243
+ e.showSaveQuery ? (o(), C(R, {
2237
2244
  key: 2,
2238
- onClick: q
2245
+ onClick: L
2239
2246
  }, {
2240
2247
  default: n(() => [...b[4] || (b[4] = [
2241
2248
  $("保存", -1)
2242
2249
  ])]),
2243
2250
  _: 1
2244
- })) : D("", !0)
2245
- ])) : D("", !0),
2251
+ })) : B("", !0)
2252
+ ])) : B("", !0),
2246
2253
  p(P, {
2247
- modelValue: K.value,
2248
- "onUpdate:modelValue": b[3] || (b[3] = (V) => K.value = V),
2254
+ modelValue: j.value,
2255
+ "onUpdate:modelValue": b[3] || (b[3] = (V) => j.value = V),
2249
2256
  title: "保存查询",
2250
2257
  width: "440px",
2251
2258
  "append-to-body": ""
2252
2259
  }, {
2253
2260
  footer: n(() => [
2254
2261
  p(R, {
2255
- onClick: b[2] || (b[2] = (V) => K.value = !1)
2262
+ onClick: b[2] || (b[2] = (V) => j.value = !1)
2256
2263
  }, {
2257
2264
  default: n(() => [...b[5] || (b[5] = [
2258
2265
  $("取消", -1)
@@ -2261,7 +2268,7 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
2261
2268
  }),
2262
2269
  p(R, {
2263
2270
  type: "primary",
2264
- disabled: !s.value.trim(),
2271
+ disabled: !i.value.trim(),
2265
2272
  onClick: ue
2266
2273
  }, {
2267
2274
  default: n(() => [...b[6] || (b[6] = [
@@ -2276,12 +2283,12 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
2276
2283
  p(Z, { label: "名称" }, {
2277
2284
  default: n(() => [
2278
2285
  p(M, {
2279
- modelValue: s.value,
2280
- "onUpdate:modelValue": b[0] || (b[0] = (V) => s.value = V),
2286
+ modelValue: i.value,
2287
+ "onUpdate:modelValue": b[0] || (b[0] = (V) => i.value = V),
2281
2288
  placeholder: "请输入查询名称",
2282
2289
  maxlength: "50",
2283
2290
  "show-word-limit": "",
2284
- onKeydown: Ze(ue, ["enter"])
2291
+ onKeydown: et(ue, ["enter"])
2285
2292
  }, null, 8, ["modelValue"])
2286
2293
  ]),
2287
2294
  _: 1
@@ -2309,7 +2316,7 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
2309
2316
  ], 32);
2310
2317
  };
2311
2318
  }
2312
- }), Rt = /* @__PURE__ */ re(So, [["__scopeId", "data-v-0563cef9"]]), Mt = /* @__PURE__ */ te({
2319
+ }), Pt = /* @__PURE__ */ re(Ro, [["__scopeId", "data-v-0563cef9"]]), zt = /* @__PURE__ */ te({
2313
2320
  name: "YsRootFilterPanel",
2314
2321
  __name: "rootFilterPanel",
2315
2322
  props: {
@@ -2324,25 +2331,25 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
2324
2331
  }
2325
2332
  },
2326
2333
  setup(e, { expose: y }) {
2327
- const l = e, { filter: t, register: a, reset: f } = jt();
2328
- yt(bt, a);
2329
- const i = O(() => {
2330
- const r = [];
2331
- l.extraFilter && r.push(l.extraFilter);
2332
- const w = t.value;
2333
- return w && !w.isEmpty() && r.push(w), r.length === 0 ? Le() : r.length === 1 ? r[0] : al.createAnd(...r);
2334
+ const t = e, { filter: l, register: a, reset: f } = el();
2335
+ _t(wt, a);
2336
+ const r = q(() => {
2337
+ const u = [];
2338
+ t.extraFilter && u.push(t.extraFilter);
2339
+ const w = l.value;
2340
+ return w && !w.isEmpty() && u.push(w), u.length === 0 ? Le() : u.length === 1 ? u[0] : Lt.createAnd(...u);
2334
2341
  });
2335
2342
  function d() {
2336
2343
  f();
2337
2344
  }
2338
2345
  return y({
2339
2346
  /** 当前聚合后的查询条件(extraFilter AND 所有子项) */
2340
- filter: i,
2347
+ filter: r,
2341
2348
  /** 重置所有已注册子项(extraFilter 由外部自行维护) */
2342
2349
  reset: d
2343
- }), (r, w) => ee(r.$slots, "default");
2350
+ }), (u, w) => ee(u.$slots, "default");
2344
2351
  }
2345
- }), $o = {
2352
+ }), Mo = {
2346
2353
  key: 0,
2347
2354
  viewBox: "0 0 24 24",
2348
2355
  width: "16",
@@ -2352,7 +2359,7 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
2352
2359
  "stroke-width": "2",
2353
2360
  "stroke-linecap": "round",
2354
2361
  "stroke-linejoin": "round"
2355
- }, Fo = {
2362
+ }, Po = {
2356
2363
  key: 1,
2357
2364
  viewBox: "0 0 24 24",
2358
2365
  width: "16",
@@ -2362,16 +2369,16 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
2362
2369
  "stroke-width": "2",
2363
2370
  "stroke-linecap": "round",
2364
2371
  "stroke-linejoin": "round"
2365
- }, Vo = {
2372
+ }, zo = {
2366
2373
  key: 1,
2367
2374
  class: "yk-filter-panel__actions"
2368
- }, Ro = {
2375
+ }, Ao = {
2369
2376
  key: 2,
2370
2377
  class: "yk-filter-panel__saved"
2371
- }, Mo = { class: "yk-filter-panel__mode-bar" }, Po = {
2378
+ }, Do = { class: "yk-filter-panel__mode-bar" }, Bo = {
2372
2379
  key: 0,
2373
2380
  class: "yk-filter-panel__saved"
2374
- }, zo = /* @__PURE__ */ te({
2381
+ }, Eo = /* @__PURE__ */ te({
2375
2382
  name: "YsFilterPanel",
2376
2383
  __name: "filterPanel",
2377
2384
  props: {
@@ -2428,77 +2435,77 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
2428
2435
  singleLine: { type: Boolean, default: !1 }
2429
2436
  },
2430
2437
  emits: ["search", "reset", "update:quickQueries"],
2431
- setup(e, { expose: y, emit: l }) {
2432
- const t = e, a = l, f = T(null), i = T("simple"), d = T(!0), r = T(0), w = T(null), F = T([]), A = O(
2433
- () => t.quickQueries ?? F.value
2434
- ), L = T(null), B = O(() => {
2438
+ setup(e, { expose: y, emit: t }) {
2439
+ const l = e, a = t, f = T(null), r = T("simple"), d = T(!0), u = T(0), w = T(null), F = T([]), A = q(
2440
+ () => l.quickQueries ?? F.value
2441
+ ), U = T(null), E = q(() => {
2435
2442
  var R, M;
2436
- return i.value === "advanced" ? ((R = L.value) == null ? void 0 : R.filter) ?? Le() : ((M = f.value) == null ? void 0 : M.filter) ?? Le();
2443
+ return r.value === "advanced" ? ((R = U.value) == null ? void 0 : R.filter) ?? Le() : ((M = f.value) == null ? void 0 : M.filter) ?? Le();
2437
2444
  });
2438
2445
  function h() {
2439
- a("search", B.value);
2446
+ a("search", E.value);
2440
2447
  }
2441
2448
  function _() {
2442
2449
  var R, M;
2443
- i.value === "advanced" ? (R = L.value) == null || R.reset() : (M = f.value) == null || M.reset(), a("reset");
2450
+ r.value === "advanced" ? (R = U.value) == null || R.reset() : (M = f.value) == null || M.reset(), a("reset");
2444
2451
  }
2445
2452
  function Y(R) {
2446
2453
  a("search", R);
2447
2454
  }
2448
- function Q() {
2455
+ function N() {
2449
2456
  a("reset");
2450
2457
  }
2451
2458
  async function J(R) {
2452
2459
  const M = new Set(A.value.map((W) => W.id)), Z = R.filter((W) => !M.has(W.id));
2453
- if (t.saveQuickQueryFun && Z.length > 0) {
2460
+ if (l.saveQuickQueryFun && Z.length > 0) {
2454
2461
  const W = [];
2455
2462
  for (const V of Z)
2456
2463
  try {
2457
- const j = await t.saveQuickQueryFun(V);
2458
- W.push(j ?? V);
2464
+ const H = await l.saveQuickQueryFun(V);
2465
+ W.push(H ?? V);
2459
2466
  } catch {
2460
- ge.error(`保存快速查询「${V.name}」失败`), W.push(V);
2467
+ ye.error(`保存快速查询「${V.name}」失败`), W.push(V);
2461
2468
  }
2462
2469
  let P = R;
2463
- if (W.some((V, j) => V !== Z[j])) {
2464
- const V = new Map(Z.map((j, ne) => [j.id, W[ne] ?? j]));
2465
- P = R.map((j) => V.get(j.id) ?? j);
2470
+ if (W.some((V, H) => V !== Z[H])) {
2471
+ const V = new Map(Z.map((H, oe) => [H.id, W[oe] ?? H]));
2472
+ P = R.map((H) => V.get(H.id) ?? H);
2466
2473
  }
2467
2474
  F.value = P, a("update:quickQueries", P);
2468
2475
  } else
2469
2476
  F.value = R, a("update:quickQueries", R);
2470
2477
  }
2471
- let K = null;
2472
- function s() {
2473
- return !K && t.advancedColumns.length && (K = kt({
2474
- columns: t.advancedColumns,
2475
- optionSources: t.advancedOptionSources
2476
- })), K;
2478
+ let j = null;
2479
+ function i() {
2480
+ return !j && l.advancedColumns.length && (j = ht({
2481
+ columns: l.advancedColumns,
2482
+ optionSources: l.advancedOptionSources
2483
+ })), j;
2477
2484
  }
2478
2485
  function g(R) {
2479
- const M = s();
2486
+ const M = i();
2480
2487
  return M ? (M.rootGroup.value = JSON.parse(JSON.stringify(R)), M.filter.value) : { toString: () => "", isEmpty: () => !0 };
2481
2488
  }
2482
- Ce(async () => {
2483
- if (t.loadQuickQueryFun)
2489
+ Se(async () => {
2490
+ if (l.loadQuickQueryFun)
2484
2491
  try {
2485
- const M = (await t.loadQuickQueryFun()).map((Z) => ({
2492
+ const M = (await l.loadQuickQueryFun()).map((Z) => ({
2486
2493
  ...Z,
2487
2494
  filterInfo: Z.filterInfo ?? g(Z.group)
2488
2495
  }));
2489
2496
  F.value = M, a("update:quickQueries", M);
2490
2497
  } catch {
2491
- ge.error("加载快速查询失败");
2498
+ ye.error("加载快速查询失败");
2492
2499
  }
2493
2500
  });
2494
2501
  function z() {
2495
- i.value !== "advanced" && h();
2502
+ r.value !== "advanced" && h();
2496
2503
  }
2497
- function N() {
2498
- i.value = "advanced";
2504
+ function O() {
2505
+ r.value = "advanced";
2499
2506
  }
2500
- function q() {
2501
- i.value = "simple";
2507
+ function L() {
2508
+ r.value = "simple";
2502
2509
  }
2503
2510
  function ue() {
2504
2511
  d.value = !d.value;
@@ -2506,31 +2513,31 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
2506
2513
  function ie() {
2507
2514
  const R = w.value;
2508
2515
  if (!R) return;
2509
- for (const ne of Array.from(R.children))
2510
- ne.style.display = "";
2511
- if (!t.singleLine || !d.value) {
2512
- r.value = 0, R.style.maxWidth = "";
2516
+ for (const oe of Array.from(R.children))
2517
+ oe.style.display = "";
2518
+ if (!l.singleLine || !d.value) {
2519
+ u.value = 0, R.style.maxWidth = "";
2513
2520
  return;
2514
2521
  }
2515
2522
  const M = R.nextElementSibling, Z = M ? M.offsetWidth : 0, W = 16;
2516
2523
  R.style.maxWidth = `calc(100% - ${Z + W}px)`;
2517
2524
  const P = R.clientWidth;
2518
- let V = 0, j = 0;
2519
- for (const ne of Array.from(R.children)) {
2520
- const de = ne, pe = de.offsetWidth;
2521
- V > 0 && V + pe + W > P ? (de.style.display = "none", j++) : V += pe + W;
2525
+ let V = 0, H = 0;
2526
+ for (const oe of Array.from(R.children)) {
2527
+ const de = oe, pe = de.offsetWidth;
2528
+ V > 0 && V + pe + W > P ? (de.style.display = "none", H++) : V += pe + W;
2522
2529
  }
2523
- r.value = j;
2530
+ u.value = H;
2524
2531
  }
2525
2532
  let X = null;
2526
- function S(R) {
2533
+ function x(R) {
2527
2534
  var M;
2528
- i.value === "advanced" ? (M = L.value) == null || M.applySavedQuery(R) : a("search", R.filterInfo);
2535
+ r.value === "advanced" ? (M = U.value) == null || M.applySavedQuery(R) : a("search", R.filterInfo);
2529
2536
  }
2530
2537
  async function b(R) {
2531
2538
  const M = A.value.find((W) => W.id === R), Z = (M == null ? void 0 : M.name) ?? "该查询";
2532
2539
  try {
2533
- await ht.confirm(
2540
+ await xt.confirm(
2534
2541
  `确定要删除快速查询「${Z}」吗?`,
2535
2542
  "删除确认",
2536
2543
  { type: "warning", confirmButtonText: "删除", cancelButtonText: "取消" }
@@ -2540,48 +2547,48 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
2540
2547
  }
2541
2548
  await J(A.value.filter((W) => W.id !== R));
2542
2549
  }
2543
- return Ce(() => {
2544
- t.singleLine && (ie(), X = new ResizeObserver(() => ie()), w.value && X.observe(w.value));
2550
+ return Se(() => {
2551
+ l.singleLine && (ie(), X = new ResizeObserver(() => ie()), w.value && X.observe(w.value));
2545
2552
  }), Ue(() => {
2546
2553
  X == null || X.disconnect(), X = null;
2547
- }), ce([d, () => t.singleLine], () => {
2548
- Xe(ie);
2554
+ }), ce([d, () => l.singleLine], () => {
2555
+ Ze(ie);
2549
2556
  }), y({
2550
- filter: B,
2557
+ filter: E,
2551
2558
  reset: _,
2552
- mode: i
2559
+ mode: r
2553
2560
  }), (R, M) => {
2554
- const Z = C("el-button"), W = C("el-tooltip"), P = C("el-tag");
2561
+ const Z = S("el-button"), W = S("el-tooltip"), P = S("el-tag");
2555
2562
  return o(), v("div", {
2556
- class: we(["yk-filter-panel", { "is-single-line": e.singleLine, "is-collapsed": e.singleLine && d.value }]),
2557
- onKeydown: Ze(z, ["enter"])
2563
+ class: Ce(["yk-filter-panel", { "is-single-line": e.singleLine, "is-collapsed": e.singleLine && d.value }]),
2564
+ onKeydown: et(z, ["enter"])
2558
2565
  }, [
2559
- i.value === "simple" ? (o(), v(U, { key: 0 }, [
2560
- e.singleLine ? (o(), x(Z, {
2566
+ r.value === "simple" ? (o(), v(K, { key: 0 }, [
2567
+ e.singleLine ? (o(), C(Z, {
2561
2568
  key: 0,
2562
2569
  link: "",
2563
2570
  class: "yk-filter-panel__toggle",
2564
2571
  "aria-label": d.value ? "展开更多条件" : "折叠",
2565
- title: d.value ? r.value ? `展开(${r.value} 个条件被隐藏)` : "展开" : "折叠",
2572
+ title: d.value ? u.value ? `展开(${u.value} 个条件被隐藏)` : "展开" : "折叠",
2566
2573
  onClick: ue
2567
2574
  }, {
2568
2575
  default: n(() => [
2569
- d.value ? (o(), v("svg", $o, [...M[0] || (M[0] = [
2576
+ d.value ? (o(), v("svg", Mo, [...M[0] || (M[0] = [
2570
2577
  m("polyline", { points: "6 9 12 15 18 9" }, null, -1),
2571
2578
  m("polyline", { points: "6 14 12 20 18 14" }, null, -1)
2572
- ])])) : (o(), v("svg", Fo, [...M[1] || (M[1] = [
2579
+ ])])) : (o(), v("svg", Po, [...M[1] || (M[1] = [
2573
2580
  m("polyline", { points: "18 15 12 9 6 15" }, null, -1),
2574
2581
  m("polyline", { points: "18 10 12 4 6 10" }, null, -1)
2575
2582
  ])]))
2576
2583
  ]),
2577
2584
  _: 1
2578
- }, 8, ["aria-label", "title"])) : D("", !0),
2585
+ }, 8, ["aria-label", "title"])) : B("", !0),
2579
2586
  m("div", {
2580
2587
  class: "yk-filter-panel__items",
2581
2588
  ref_key: "itemsEl",
2582
2589
  ref: w
2583
2590
  }, [
2584
- p(Mt, {
2591
+ p(zt, {
2585
2592
  ref_key: "rootRef",
2586
2593
  ref: f
2587
2594
  }, {
@@ -2591,8 +2598,8 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
2591
2598
  _: 3
2592
2599
  }, 512)
2593
2600
  ], 512),
2594
- e.showSearch || e.showReset || e.enableAdvancedFilter ? (o(), v("div", Vo, [
2595
- e.showSearch ? (o(), x(Z, {
2601
+ e.showSearch || e.showReset || e.enableAdvancedFilter ? (o(), v("div", zo, [
2602
+ e.showSearch ? (o(), C(Z, {
2596
2603
  key: 0,
2597
2604
  type: "primary",
2598
2605
  onClick: h
@@ -2601,8 +2608,8 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
2601
2608
  $(I(e.searchButtonText), 1)
2602
2609
  ]),
2603
2610
  _: 1
2604
- })) : D("", !0),
2605
- e.showReset ? (o(), x(Z, {
2611
+ })) : B("", !0),
2612
+ e.showReset ? (o(), C(Z, {
2606
2613
  key: 1,
2607
2614
  onClick: _
2608
2615
  }, {
@@ -2610,22 +2617,22 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
2610
2617
  $(I(e.resetButtonText), 1)
2611
2618
  ]),
2612
2619
  _: 1
2613
- })) : D("", !0),
2614
- e.enableAdvancedFilter && !(e.singleLine && d.value) ? (o(), x(Z, {
2620
+ })) : B("", !0),
2621
+ e.enableAdvancedFilter && !(e.singleLine && d.value) ? (o(), C(Z, {
2615
2622
  key: 2,
2616
2623
  link: "",
2617
2624
  type: "primary",
2618
- onClick: N
2625
+ onClick: O
2619
2626
  }, {
2620
2627
  default: n(() => [...M[2] || (M[2] = [
2621
2628
  $(" 高级查询 ", -1)
2622
2629
  ])]),
2623
2630
  _: 1
2624
- })) : D("", !0)
2625
- ])) : D("", !0),
2626
- e.showQuickQuery && A.value.length ? (o(), v("div", Ro, [
2631
+ })) : B("", !0)
2632
+ ])) : B("", !0),
2633
+ e.showQuickQuery && A.value.length ? (o(), v("div", Ao, [
2627
2634
  M[3] || (M[3] = m("span", { class: "yk-filter-panel__saved-label" }, "快速查询:", -1)),
2628
- (o(!0), v(U, null, le(A.value, (V) => (o(), x(W, {
2635
+ (o(!0), v(K, null, le(A.value, (V) => (o(), C(W, {
2629
2636
  key: V.id,
2630
2637
  content: V.description,
2631
2638
  disabled: !V.description,
@@ -2634,7 +2641,7 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
2634
2641
  default: n(() => [
2635
2642
  p(Z, {
2636
2643
  size: "small",
2637
- onClick: (j) => S(V)
2644
+ onClick: (H) => x(V)
2638
2645
  }, {
2639
2646
  default: n(() => [
2640
2647
  $(I(V.name), 1)
@@ -2644,13 +2651,13 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
2644
2651
  ]),
2645
2652
  _: 2
2646
2653
  }, 1032, ["content", "disabled"]))), 128))
2647
- ])) : D("", !0)
2648
- ], 64)) : (o(), v(U, { key: 1 }, [
2649
- m("div", Mo, [
2654
+ ])) : B("", !0)
2655
+ ], 64)) : (o(), v(K, { key: 1 }, [
2656
+ m("div", Do, [
2650
2657
  p(Z, {
2651
2658
  link: "",
2652
2659
  type: "primary",
2653
- onClick: q
2660
+ onClick: L
2654
2661
  }, {
2655
2662
  default: n(() => [...M[4] || (M[4] = [
2656
2663
  $("← 简单查询", -1)
@@ -2658,19 +2665,19 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
2658
2665
  _: 1
2659
2666
  })
2660
2667
  ]),
2661
- p(Rt, {
2668
+ p(Pt, {
2662
2669
  ref_key: "advancedPanelRef",
2663
- ref: L,
2670
+ ref: U,
2664
2671
  columns: e.advancedColumns,
2665
2672
  "option-sources": e.advancedOptionSources,
2666
2673
  "saved-queries": A.value,
2667
2674
  onSearch: Y,
2668
- onReset: Q,
2675
+ onReset: N,
2669
2676
  "onUpdate:savedQueries": J
2670
2677
  }, null, 8, ["columns", "option-sources", "saved-queries"]),
2671
- A.value.length ? (o(), v("div", Po, [
2678
+ A.value.length ? (o(), v("div", Bo, [
2672
2679
  M[5] || (M[5] = m("span", { class: "yk-filter-panel__saved-label" }, "已存查询:", -1)),
2673
- (o(!0), v(U, null, le(A.value, (V) => (o(), x(W, {
2680
+ (o(!0), v(K, null, le(A.value, (V) => (o(), C(W, {
2674
2681
  key: V.id,
2675
2682
  content: V.description,
2676
2683
  disabled: !V.description,
@@ -2681,8 +2688,8 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
2681
2688
  class: "yk-filter-panel__saved-tag",
2682
2689
  effect: "plain",
2683
2690
  closable: "",
2684
- onClick: (j) => S(V),
2685
- onClose: (j) => b(V.id)
2691
+ onClick: (H) => x(V),
2692
+ onClose: (H) => b(V.id)
2686
2693
  }, {
2687
2694
  default: n(() => [
2688
2695
  $(I(V.name), 1)
@@ -2692,12 +2699,12 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
2692
2699
  ]),
2693
2700
  _: 2
2694
2701
  }, 1032, ["content", "disabled"]))), 128))
2695
- ])) : D("", !0)
2702
+ ])) : B("", !0)
2696
2703
  ], 64))
2697
2704
  ], 34);
2698
2705
  };
2699
2706
  }
2700
- }), Pt = /* @__PURE__ */ re(zo, [["__scopeId", "data-v-cc097ffb"]]), Ao = { class: "yk-filter-item__label" }, Do = { class: "yk-filter-item__control" }, Bo = /* @__PURE__ */ te({
2707
+ }), At = /* @__PURE__ */ re(Eo, [["__scopeId", "data-v-cc097ffb"]]), Io = { class: "yk-filter-item__label" }, To = { class: "yk-filter-item__control" }, Yo = /* @__PURE__ */ te({
2701
2708
  name: "YsFilterItemLayout",
2702
2709
  __name: "filterItemLayout",
2703
2710
  props: {
@@ -2712,23 +2719,23 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
2712
2719
  api: { type: Object, required: !0 }
2713
2720
  },
2714
2721
  setup(e) {
2715
- const y = e, l = vt(bt, null);
2716
- let t = null;
2717
- return Ce(() => {
2718
- l && (t = l(y.api));
2722
+ const y = e, t = gt(wt, null);
2723
+ let l = null;
2724
+ return Se(() => {
2725
+ t && (l = t(y.api));
2719
2726
  }), Ue(() => {
2720
- t == null || t();
2727
+ l == null || l();
2721
2728
  }), (a, f) => (o(), v("div", {
2722
2729
  class: "yk-filter-item",
2723
- style: at({ minWidth: e.minWidth + "px" })
2730
+ style: st({ minWidth: e.minWidth + "px" })
2724
2731
  }, [
2725
- m("label", Ao, I(e.label), 1),
2726
- m("div", Do, [
2732
+ m("label", Io, I(e.label), 1),
2733
+ m("div", To, [
2727
2734
  ee(a.$slots, "default", {}, void 0, !0)
2728
2735
  ])
2729
2736
  ], 4));
2730
2737
  }
2731
- }), Ke = /* @__PURE__ */ re(Bo, [["__scopeId", "data-v-2f9ea4d2"]]), Eo = /* @__PURE__ */ te({
2738
+ }), Ke = /* @__PURE__ */ re(Yo, [["__scopeId", "data-v-2f9ea4d2"]]), Qo = /* @__PURE__ */ te({
2732
2739
  name: "YsTextFilterItem",
2733
2740
  __name: "textFilterItem",
2734
2741
  props: {
@@ -2752,22 +2759,22 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
2752
2759
  placeholder: { type: String, required: !1 }
2753
2760
  },
2754
2761
  setup(e, { expose: y }) {
2755
- const l = e, { value: t, filter: a, reset: f } = Ht(l), i = {
2762
+ const t = e, { value: l, filter: a, reset: f } = tl(t), r = {
2756
2763
  get filter() {
2757
2764
  return a.value;
2758
2765
  },
2759
2766
  reset: f
2760
2767
  };
2761
- return y(i), (d, r) => {
2762
- const w = C("el-input");
2763
- return o(), x(Ke, {
2768
+ return y(r), (d, u) => {
2769
+ const w = S("el-input");
2770
+ return o(), C(Ke, {
2764
2771
  label: e.label,
2765
- api: i
2772
+ api: r
2766
2773
  }, {
2767
2774
  default: n(() => [
2768
2775
  p(w, {
2769
- modelValue: u(t),
2770
- "onUpdate:modelValue": r[0] || (r[0] = (F) => be(t) ? t.value = F : null),
2776
+ modelValue: s(l),
2777
+ "onUpdate:modelValue": u[0] || (u[0] = (F) => he(l) ? l.value = F : null),
2771
2778
  placeholder: e.placeholder,
2772
2779
  clearable: ""
2773
2780
  }, null, 8, ["modelValue", "placeholder"])
@@ -2776,7 +2783,7 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
2776
2783
  }, 8, ["label"]);
2777
2784
  };
2778
2785
  }
2779
- }), Io = /* @__PURE__ */ te({
2786
+ }), No = /* @__PURE__ */ te({
2780
2787
  name: "YsDateFilterItem",
2781
2788
  __name: "dateFilterItem",
2782
2789
  props: {
@@ -2801,22 +2808,22 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
2801
2808
  valueFormat: { type: String, default: "YYYY-MM-DD" }
2802
2809
  },
2803
2810
  setup(e, { expose: y }) {
2804
- const l = e, { value: t, filter: a, reset: f } = Gt(l), i = {
2811
+ const t = e, { value: l, filter: a, reset: f } = ll(t), r = {
2805
2812
  get filter() {
2806
2813
  return a.value;
2807
2814
  },
2808
2815
  reset: f
2809
2816
  };
2810
- return y(i), (d, r) => {
2811
- const w = C("el-date-picker");
2812
- return o(), x(Ke, {
2817
+ return y(r), (d, u) => {
2818
+ const w = S("el-date-picker");
2819
+ return o(), C(Ke, {
2813
2820
  label: e.label,
2814
- api: i
2821
+ api: r
2815
2822
  }, {
2816
2823
  default: n(() => [
2817
2824
  p(w, {
2818
- modelValue: u(t),
2819
- "onUpdate:modelValue": r[0] || (r[0] = (F) => be(t) ? t.value = F : null),
2825
+ modelValue: s(l),
2826
+ "onUpdate:modelValue": u[0] || (u[0] = (F) => he(l) ? l.value = F : null),
2820
2827
  type: "date",
2821
2828
  placeholder: e.placeholder,
2822
2829
  "value-format": e.valueFormat,
@@ -2827,7 +2834,7 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
2827
2834
  }, 8, ["label"]);
2828
2835
  };
2829
2836
  }
2830
- }), To = /* @__PURE__ */ te({
2837
+ }), Oo = /* @__PURE__ */ te({
2831
2838
  name: "YsDateRangeFilterItem",
2832
2839
  __name: "dateRangeFilterItem",
2833
2840
  props: {
@@ -2857,23 +2864,23 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
2857
2864
  }
2858
2865
  },
2859
2866
  setup(e, { expose: y }) {
2860
- const l = e, { value: t, filter: a, reset: f } = Wt(l), i = {
2867
+ const t = e, { value: l, filter: a, reset: f } = ol(t), r = {
2861
2868
  get filter() {
2862
2869
  return a.value;
2863
2870
  },
2864
2871
  reset: f
2865
2872
  };
2866
- return y(i), (d, r) => {
2867
- const w = C("el-date-picker");
2868
- return o(), x(Ke, {
2873
+ return y(r), (d, u) => {
2874
+ const w = S("el-date-picker");
2875
+ return o(), C(Ke, {
2869
2876
  label: e.label,
2870
- api: i,
2877
+ api: r,
2871
2878
  "min-width": 240
2872
2879
  }, {
2873
2880
  default: n(() => [
2874
2881
  p(w, {
2875
- modelValue: u(t),
2876
- "onUpdate:modelValue": r[0] || (r[0] = (F) => be(t) ? t.value = F : null),
2882
+ modelValue: s(l),
2883
+ "onUpdate:modelValue": u[0] || (u[0] = (F) => he(l) ? l.value = F : null),
2877
2884
  type: "daterange",
2878
2885
  "start-placeholder": e.startPlaceholder,
2879
2886
  "end-placeholder": e.endPlaceholder,
@@ -2886,7 +2893,7 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
2886
2893
  }, 8, ["label"]);
2887
2894
  };
2888
2895
  }
2889
- }), Yo = /* @__PURE__ */ te({
2896
+ }), qo = /* @__PURE__ */ te({
2890
2897
  name: "YsEnumFilterItem",
2891
2898
  __name: "enumFilterItem",
2892
2899
  props: {
@@ -2924,18 +2931,18 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
2924
2931
  multiple: { type: Boolean, default: !1 }
2925
2932
  },
2926
2933
  setup(e, { expose: y }) {
2927
- const l = e, { value: t, filter: a, reset: f } = Jt(l), i = O({
2928
- get: () => t.value,
2934
+ const t = e, { value: l, filter: a, reset: f } = nl(t), r = q({
2935
+ get: () => l.value,
2929
2936
  set: (F) => {
2930
- t.value = F;
2937
+ l.value = F;
2931
2938
  }
2932
- }), d = T([]), r = T(!1);
2933
- Ce(async () => {
2934
- r.value = !0;
2939
+ }), d = T([]), u = T(!1);
2940
+ Se(async () => {
2941
+ u.value = !0;
2935
2942
  try {
2936
- d.value = await l.optionsSource();
2943
+ d.value = await t.optionsSource();
2937
2944
  } finally {
2938
- r.value = !1;
2945
+ u.value = !1;
2939
2946
  }
2940
2947
  });
2941
2948
  const w = {
@@ -2945,22 +2952,22 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
2945
2952
  reset: f
2946
2953
  };
2947
2954
  return y(w), (F, A) => {
2948
- const L = C("el-option"), B = C("el-select");
2949
- return o(), x(Ke, {
2955
+ const U = S("el-option"), E = S("el-select");
2956
+ return o(), C(Ke, {
2950
2957
  label: e.label,
2951
2958
  api: w
2952
2959
  }, {
2953
2960
  default: n(() => [
2954
- p(B, {
2955
- modelValue: i.value,
2956
- "onUpdate:modelValue": A[0] || (A[0] = (h) => i.value = h),
2961
+ p(E, {
2962
+ modelValue: r.value,
2963
+ "onUpdate:modelValue": A[0] || (A[0] = (h) => r.value = h),
2957
2964
  multiple: e.multiple,
2958
2965
  placeholder: e.placeholder,
2959
2966
  clearable: e.clearable,
2960
- loading: r.value
2967
+ loading: u.value
2961
2968
  }, {
2962
2969
  default: n(() => [
2963
- (o(!0), v(U, null, le(d.value, (h) => (o(), x(L, {
2970
+ (o(!0), v(K, null, le(d.value, (h) => (o(), C(U, {
2964
2971
  key: String(h.value),
2965
2972
  value: h.value,
2966
2973
  label: h.label
@@ -2973,7 +2980,7 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
2973
2980
  }, 8, ["label"]);
2974
2981
  };
2975
2982
  }
2976
- }), Qo = { class: "yk-table-page" }, No = { class: "yk-table-page__filter-row" }, Oo = { class: "yk-table-page__filter-extra" }, qo = /* @__PURE__ */ te({
2983
+ }), Lo = { class: "yk-table-page" }, Uo = { class: "yk-table-page__filter-row" }, Ko = { class: "yk-table-page__filter-extra" }, jo = /* @__PURE__ */ te({
2977
2984
  name: "YsTablePage",
2978
2985
  __name: "tablePage",
2979
2986
  props: {
@@ -3011,91 +3018,91 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
3011
3018
  singleLine: { type: Boolean, default: !1 }
3012
3019
  },
3013
3020
  emits: ["search", "reset", "update:quickQueries", "data-loaded", "update:viewMode", "update:showCheckbox", "update:columnResizable", "update:stickyHeader"],
3014
- setup(e, { expose: y, emit: l }) {
3015
- const t = e, a = l, f = Et(Le()), i = T(null), d = T(null), r = O(() => async (B, h) => t.dataFun(B, f.value, h)), w = O(() => ({
3016
- metaFun: t.metaFun,
3017
- dataFun: r.value,
3018
- rowActionsFunc: t.rowActionsFunc,
3019
- pageSize: t.pageSize,
3020
- pageSizes: t.pageSizes,
3021
- showCheckbox: t.showCheckbox,
3022
- columnResizable: t.columnResizable,
3023
- stickyHeader: t.stickyHeader,
3024
- loadCustomConfigFun: t.loadCustomConfigFun,
3025
- saveCustomConfigFun: t.saveCustomConfigFun,
3026
- exportPageSize: t.exportPageSize,
3027
- exportorFunc: t.exportorFunc,
3028
- collectorFunc: t.collectorFunc,
3029
- collectorTitle: t.collectorTitle,
3030
- collectPageSize: t.collectPageSize,
3031
- maxCollectCount: t.maxCollectCount,
3032
- rowKey: t.rowKey,
3033
- viewMode: t.viewMode
3034
- })), F = O(() => ({
3035
- showSearch: t.showSearch,
3036
- showReset: t.showReset,
3037
- searchButtonText: t.searchButtonText,
3038
- resetButtonText: t.resetButtonText,
3039
- enableAdvancedFilter: t.enableAdvancedFilter,
3040
- advancedColumns: t.advancedColumns,
3041
- advancedOptionSources: t.advancedOptionSources,
3042
- showQuickQuery: t.showQuickQuery,
3043
- quickQueries: t.quickQueries,
3044
- loadQuickQueryFun: t.loadQuickQueryFun,
3045
- saveQuickQueryFun: t.saveQuickQueryFun,
3046
- singleLine: t.singleLine
3021
+ setup(e, { expose: y, emit: t }) {
3022
+ const l = e, a = t, f = Tt(Le()), r = T(null), d = T(null), u = q(() => async (E, h) => l.dataFun(E, f.value, h)), w = q(() => ({
3023
+ metaFun: l.metaFun,
3024
+ dataFun: u.value,
3025
+ rowActionsFunc: l.rowActionsFunc,
3026
+ pageSize: l.pageSize,
3027
+ pageSizes: l.pageSizes,
3028
+ showCheckbox: l.showCheckbox,
3029
+ columnResizable: l.columnResizable,
3030
+ stickyHeader: l.stickyHeader,
3031
+ loadCustomConfigFun: l.loadCustomConfigFun,
3032
+ saveCustomConfigFun: l.saveCustomConfigFun,
3033
+ exportPageSize: l.exportPageSize,
3034
+ exportorFunc: l.exportorFunc,
3035
+ collectorFunc: l.collectorFunc,
3036
+ collectorTitle: l.collectorTitle,
3037
+ collectPageSize: l.collectPageSize,
3038
+ maxCollectCount: l.maxCollectCount,
3039
+ rowKey: l.rowKey,
3040
+ viewMode: l.viewMode
3041
+ })), F = q(() => ({
3042
+ showSearch: l.showSearch,
3043
+ showReset: l.showReset,
3044
+ searchButtonText: l.searchButtonText,
3045
+ resetButtonText: l.resetButtonText,
3046
+ enableAdvancedFilter: l.enableAdvancedFilter,
3047
+ advancedColumns: l.advancedColumns,
3048
+ advancedOptionSources: l.advancedOptionSources,
3049
+ showQuickQuery: l.showQuickQuery,
3050
+ quickQueries: l.quickQueries,
3051
+ loadQuickQueryFun: l.loadQuickQueryFun,
3052
+ saveQuickQueryFun: l.saveQuickQueryFun,
3053
+ singleLine: l.singleLine
3047
3054
  }));
3048
- function A(B) {
3055
+ function A(E) {
3049
3056
  var h;
3050
- f.value = B, a("search", B), (h = i.value) == null || h.reload();
3057
+ f.value = E, a("search", E), (h = r.value) == null || h.reload();
3051
3058
  }
3052
- function L() {
3053
- var B;
3054
- f.value = Le(), a("reset"), (B = i.value) == null || B.reload();
3059
+ function U() {
3060
+ var E;
3061
+ f.value = Le(), a("reset"), (E = r.value) == null || E.reload();
3055
3062
  }
3056
3063
  return y({
3057
- table: i,
3064
+ table: r,
3058
3065
  filterPanel: d
3059
- }), (B, h) => (o(), v("div", Qo, [
3060
- m("div", No, [
3061
- p(Pt, lt({
3066
+ }), (E, h) => (o(), v("div", Lo, [
3067
+ m("div", Uo, [
3068
+ p(At, ot({
3062
3069
  ref_key: "filterPanelRef",
3063
3070
  ref: d,
3064
3071
  class: "yk-table-page__filter"
3065
3072
  }, F.value, {
3066
3073
  onSearch: A,
3067
- onReset: L,
3074
+ onReset: U,
3068
3075
  "onUpdate:quickQueries": h[0] || (h[0] = (_) => a("update:quickQueries", _))
3069
3076
  }), {
3070
3077
  default: n(() => [
3071
- ee(B.$slots, "default", {}, void 0, !0)
3078
+ ee(E.$slots, "default", {}, void 0, !0)
3072
3079
  ]),
3073
3080
  _: 3
3074
3081
  }, 16),
3075
- m("div", Oo, [
3076
- ee(B.$slots, "filter-extra", {}, void 0, !0),
3077
- !B.$slots["filter-extra"] && i.value ? (o(), x(Ct, {
3082
+ m("div", Ko, [
3083
+ ee(E.$slots, "filter-extra", {}, void 0, !0),
3084
+ !E.$slots["filter-extra"] && r.value ? (o(), C($t, {
3078
3085
  key: 0,
3079
- table: i.value
3080
- }, null, 8, ["table"])) : D("", !0)
3086
+ table: r.value
3087
+ }, null, 8, ["table"])) : B("", !0)
3081
3088
  ])
3082
3089
  ]),
3083
- p(St, {
3090
+ p(Ft, {
3084
3091
  class: "yk-table-page__command",
3085
- actions: t.actions,
3086
- table: i.value
3087
- }, Ae({ _: 2 }, [
3088
- B.$slots["command-bar"] ? {
3092
+ actions: l.actions,
3093
+ table: r.value
3094
+ }, ze({ _: 2 }, [
3095
+ E.$slots["command-bar"] ? {
3089
3096
  name: "default",
3090
3097
  fn: n(() => [
3091
- ee(B.$slots, "command-bar", {}, void 0, !0)
3098
+ ee(E.$slots, "command-bar", {}, void 0, !0)
3092
3099
  ]),
3093
3100
  key: "0"
3094
3101
  } : void 0
3095
3102
  ]), 1032, ["actions", "table"]),
3096
- p(xt, lt({
3103
+ p(St, ot({
3097
3104
  ref_key: "tableRef",
3098
- ref: i,
3105
+ ref: r,
3099
3106
  class: "yk-table-page__table"
3100
3107
  }, w.value, {
3101
3108
  onDataLoaded: h[1] || (h[1] = (_) => a("data-loaded", _)),
@@ -3103,47 +3110,47 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
3103
3110
  "onUpdate:showCheckbox": h[3] || (h[3] = (_) => a("update:showCheckbox", _)),
3104
3111
  "onUpdate:columnResizable": h[4] || (h[4] = (_) => a("update:columnResizable", _)),
3105
3112
  "onUpdate:stickyHeader": h[5] || (h[5] = (_) => a("update:stickyHeader", _))
3106
- }), Ae({ _: 2 }, [
3107
- B.$slots.card ? {
3113
+ }), ze({ _: 2 }, [
3114
+ E.$slots.card ? {
3108
3115
  name: "card",
3109
3116
  fn: n((_) => [
3110
- ee(B.$slots, "card", Oe(qe(_)), void 0, !0)
3117
+ ee(E.$slots, "card", Oe(qe(_)), void 0, !0)
3111
3118
  ]),
3112
3119
  key: "0"
3113
3120
  } : void 0,
3114
- B.$slots.list ? {
3121
+ E.$slots.list ? {
3115
3122
  name: "list",
3116
3123
  fn: n((_) => [
3117
- ee(B.$slots, "list", Oe(qe(_)), void 0, !0)
3124
+ ee(E.$slots, "list", Oe(qe(_)), void 0, !0)
3118
3125
  ]),
3119
3126
  key: "1"
3120
3127
  } : void 0,
3121
- B.$slots.empty ? {
3128
+ E.$slots.empty ? {
3122
3129
  name: "empty",
3123
3130
  fn: n((_) => [
3124
- ee(B.$slots, "empty", Oe(qe(_)), void 0, !0)
3131
+ ee(E.$slots, "empty", Oe(qe(_)), void 0, !0)
3125
3132
  ]),
3126
3133
  key: "2"
3127
3134
  } : void 0,
3128
- B.$slots.loading ? {
3135
+ E.$slots.loading ? {
3129
3136
  name: "loading",
3130
3137
  fn: n((_) => [
3131
- ee(B.$slots, "loading", Oe(qe(_)), void 0, !0)
3138
+ ee(E.$slots, "loading", Oe(qe(_)), void 0, !0)
3132
3139
  ]),
3133
3140
  key: "3"
3134
3141
  } : void 0,
3135
- B.$slots.footer ? {
3142
+ E.$slots.footer ? {
3136
3143
  name: "footer",
3137
3144
  fn: n((_) => [
3138
- ee(B.$slots, "footer", Oe(qe(_)), void 0, !0)
3145
+ ee(E.$slots, "footer", Oe(qe(_)), void 0, !0)
3139
3146
  ]),
3140
3147
  key: "4"
3141
3148
  } : void 0
3142
3149
  ]), 1040)
3143
3150
  ]));
3144
3151
  }
3145
- }), Lo = /* @__PURE__ */ re(qo, [["__scopeId", "data-v-94d594ea"]]);
3146
- function zt(e) {
3152
+ }), Ho = /* @__PURE__ */ re(jo, [["__scopeId", "data-v-94d594ea"]]);
3153
+ function Dt(e) {
3147
3154
  if (e == null) return "";
3148
3155
  if (typeof e == "object")
3149
3156
  try {
@@ -3153,7 +3160,7 @@ function zt(e) {
3153
3160
  }
3154
3161
  return String(e);
3155
3162
  }
3156
- const Uo = /* @__PURE__ */ te({
3163
+ const Go = /* @__PURE__ */ te({
3157
3164
  __name: "importRowEditDialog",
3158
3165
  props: {
3159
3166
  visible: { type: Boolean },
@@ -3163,40 +3170,40 @@ const Uo = /* @__PURE__ */ te({
3163
3170
  },
3164
3171
  emits: ["update:visible", "saved"],
3165
3172
  setup(e, { emit: y }) {
3166
- const l = e, t = y, a = T({}), f = T([]);
3173
+ const t = e, l = y, a = T({}), f = T([]);
3167
3174
  ce(
3168
- () => l.visible,
3169
- (r) => {
3170
- if (!r || !l.row) return;
3175
+ () => t.visible,
3176
+ (u) => {
3177
+ if (!u || !t.row) return;
3171
3178
  const w = {};
3172
- for (const F of l.columns)
3173
- w[F.name] = zt(l.row.data[F.name]);
3179
+ for (const F of t.columns)
3180
+ w[F.name] = Dt(t.row.data[F.name]);
3174
3181
  a.value = w, f.value = [];
3175
3182
  }
3176
3183
  );
3177
- function i() {
3178
- t("update:visible", !1);
3184
+ function r() {
3185
+ l("update:visible", !1);
3179
3186
  }
3180
3187
  function d() {
3181
- if (!l.row) return;
3182
- const r = {};
3183
- for (const A of l.columns)
3184
- r[A.name] = a.value[A.name] ?? "";
3185
- const { row: w, errors: F } = l.saver(l.row, r);
3186
- f.value = F, !(F.length > 0) && (t("saved", w), t("update:visible", !1));
3188
+ if (!t.row) return;
3189
+ const u = {};
3190
+ for (const A of t.columns)
3191
+ u[A.name] = a.value[A.name] ?? "";
3192
+ const { row: w, errors: F } = t.saver(t.row, u);
3193
+ f.value = F, !(F.length > 0) && (l("saved", w), l("update:visible", !1));
3187
3194
  }
3188
- return (r, w) => {
3189
- const F = C("el-alert"), A = C("el-input"), L = C("el-form-item"), B = C("el-form"), h = C("el-button"), _ = C("el-dialog");
3190
- return o(), x(_, {
3195
+ return (u, w) => {
3196
+ const F = S("el-alert"), A = S("el-input"), U = S("el-form-item"), E = S("el-form"), h = S("el-button"), _ = S("el-dialog");
3197
+ return o(), C(_, {
3191
3198
  "model-value": e.visible,
3192
3199
  title: e.row ? `编辑第 ${e.row.rowNumber} 行` : "编辑数据行",
3193
3200
  width: "480px",
3194
3201
  "append-to-body": "",
3195
3202
  "close-on-click-modal": !1,
3196
- "onUpdate:modelValue": w[1] || (w[1] = (Y) => t("update:visible", Y))
3203
+ "onUpdate:modelValue": w[1] || (w[1] = (Y) => l("update:visible", Y))
3197
3204
  }, {
3198
3205
  footer: n(() => [
3199
- p(h, { onClick: i }, {
3206
+ p(h, { onClick: r }, {
3200
3207
  default: n(() => [...w[2] || (w[2] = [
3201
3208
  $("取消", -1)
3202
3209
  ])]),
@@ -3213,7 +3220,7 @@ const Uo = /* @__PURE__ */ te({
3213
3220
  })
3214
3221
  ]),
3215
3222
  default: n(() => [
3216
- f.value.length > 0 ? (o(), x(F, {
3223
+ f.value.length > 0 ? (o(), C(F, {
3217
3224
  key: 0,
3218
3225
  class: "yk-import-row-edit-dialog__alert",
3219
3226
  type: "error",
@@ -3221,17 +3228,17 @@ const Uo = /* @__PURE__ */ te({
3221
3228
  "show-icon": ""
3222
3229
  }, {
3223
3230
  default: n(() => [
3224
- (o(!0), v(U, null, le(f.value, (Y, Q) => (o(), v("div", { key: Q }, I(Y), 1))), 128))
3231
+ (o(!0), v(K, null, le(f.value, (Y, N) => (o(), v("div", { key: N }, I(Y), 1))), 128))
3225
3232
  ]),
3226
3233
  _: 1
3227
- })) : D("", !0),
3228
- p(B, {
3234
+ })) : B("", !0),
3235
+ p(E, {
3229
3236
  "label-width": "92px",
3230
- onSubmit: w[0] || (w[0] = mt(() => {
3237
+ onSubmit: w[0] || (w[0] = vt(() => {
3231
3238
  }, ["prevent"]))
3232
3239
  }, {
3233
3240
  default: n(() => [
3234
- (o(!0), v(U, null, le(e.columns, (Y) => (o(), x(L, {
3241
+ (o(!0), v(K, null, le(e.columns, (Y) => (o(), C(U, {
3235
3242
  key: Y.name,
3236
3243
  label: Y.name,
3237
3244
  required: !Y.optional
@@ -3239,9 +3246,9 @@ const Uo = /* @__PURE__ */ te({
3239
3246
  default: n(() => [
3240
3247
  p(A, {
3241
3248
  modelValue: a.value[Y.name],
3242
- "onUpdate:modelValue": (Q) => a.value[Y.name] = Q,
3249
+ "onUpdate:modelValue": (N) => a.value[Y.name] = N,
3243
3250
  placeholder: Y.optional ? "可留空" : `请输入${Y.name}`,
3244
- onKeyup: Ze(d, ["enter"])
3251
+ onKeyup: et(d, ["enter"])
3245
3252
  }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
3246
3253
  ]),
3247
3254
  _: 2
@@ -3254,28 +3261,28 @@ const Uo = /* @__PURE__ */ te({
3254
3261
  }, 8, ["model-value", "title"]);
3255
3262
  };
3256
3263
  }
3257
- }), Ko = /* @__PURE__ */ re(Uo, [["__scopeId", "data-v-24918b65"]]), jo = ["accept"], Ho = { class: "yk-import-excel__toolbar" }, Go = ["title"], Wo = {
3264
+ }), Wo = /* @__PURE__ */ re(Go, [["__scopeId", "data-v-24918b65"]]), Jo = ["accept"], Xo = { class: "yk-import-excel__toolbar" }, Zo = ["title"], en = {
3258
3265
  key: 2,
3259
3266
  class: "yk-import-excel__stats"
3260
- }, Jo = { class: "yk-import-excel__stat" }, Xo = { class: "yk-import-excel__stat" }, Zo = { class: "yk-import-excel__stat yk-import-excel__stat--danger" }, en = {
3267
+ }, tn = { class: "yk-import-excel__stat" }, ln = { class: "yk-import-excel__stat" }, on = { class: "yk-import-excel__stat yk-import-excel__stat--danger" }, nn = {
3261
3268
  key: 0,
3262
3269
  class: "yk-import-excel__progress"
3263
- }, tn = { class: "yk-import-excel__progress-meta" }, ln = { class: "yk-import-excel__danger-text" }, on = { class: "yk-import-excel__progress-eta" }, nn = { class: "yk-import-excel__body" }, an = ["title"], sn = {
3270
+ }, an = { class: "yk-import-excel__progress-meta" }, sn = { class: "yk-import-excel__danger-text" }, rn = { class: "yk-import-excel__progress-eta" }, un = { class: "yk-import-excel__body" }, dn = ["title"], cn = {
3264
3271
  key: 0,
3265
3272
  class: "yk-import-excel__spin"
3266
- }, rn = {
3273
+ }, pn = {
3267
3274
  key: 0,
3268
3275
  class: "yk-import-excel__msg yk-import-excel__msg--danger"
3269
- }, un = {
3276
+ }, mn = {
3270
3277
  key: 1,
3271
3278
  class: "yk-import-excel__msg yk-import-excel__msg--danger"
3272
- }, dn = {
3279
+ }, fn = {
3273
3280
  key: 1,
3274
3281
  class: "yk-import-excel__action-placeholder"
3275
- }, cn = { class: "yk-import-excel__empty-hint" }, pn = {
3282
+ }, vn = { class: "yk-import-excel__empty-hint" }, yn = {
3276
3283
  key: 1,
3277
3284
  class: "yk-import-excel__drop-mask"
3278
- }, mn = /* @__PURE__ */ te({
3285
+ }, gn = /* @__PURE__ */ te({
3279
3286
  __name: "importExcel",
3280
3287
  props: {
3281
3288
  columns: {},
@@ -3285,149 +3292,149 @@ const Uo = /* @__PURE__ */ te({
3285
3292
  autoScroll: { type: Boolean, default: !0 }
3286
3293
  },
3287
3294
  emits: ["loaded", "selection-change", "processed", "row-update", "row-remove"],
3288
- setup(e, { expose: y, emit: l }) {
3289
- const t = e, a = l, {
3295
+ setup(e, { expose: y, emit: t }) {
3296
+ const l = e, a = t, {
3290
3297
  rows: f,
3291
- fileName: i,
3298
+ fileName: r,
3292
3299
  sheetName: d,
3293
- loading: r,
3300
+ loading: u,
3294
3301
  processing: w,
3295
3302
  stopping: F,
3296
3303
  processingTotal: A,
3297
- progressDone: L,
3298
- progressSuccess: B,
3304
+ progressDone: U,
3305
+ progressSuccess: E,
3299
3306
  progressFailed: h,
3300
3307
  hasData: _,
3301
3308
  invalidCount: Y,
3302
- successCount: Q,
3309
+ successCount: N,
3303
3310
  failedCount: J,
3304
- selectedCount: K,
3305
- pendingCount: s,
3311
+ selectedCount: j,
3312
+ pendingCount: i,
3306
3313
  loadFile: g,
3307
3314
  syncSelection: z,
3308
- saveRowEdit: N,
3309
- removeRow: q,
3315
+ saveRowEdit: O,
3316
+ removeRow: L,
3310
3317
  startProcessing: ue,
3311
3318
  stopProcessing: ie,
3312
3319
  clear: X
3313
- } = Xt({
3314
- columns: se(t, "columns"),
3315
- processor: se(t, "processor"),
3316
- parser: se(t, "parser")
3317
- }), S = T(), b = T(), R = {
3320
+ } = al({
3321
+ columns: ne(l, "columns"),
3322
+ processor: ne(l, "processor"),
3323
+ parser: ne(l, "parser")
3324
+ }), x = T(), b = T(), R = {
3318
3325
  valid: { label: "待处理", type: "info" },
3319
3326
  invalid: { label: "校验失败", type: "danger" },
3320
3327
  processing: { label: "处理中", type: "warning" },
3321
3328
  success: { label: "成功", type: "success" },
3322
3329
  failed: { label: "失败", type: "danger" }
3323
- }, M = O(
3330
+ }, M = q(
3324
3331
  () => Object.keys(R).map((k) => ({
3325
- text: `${R[k].label}(${f.value.filter((E) => E.status === k).length})`,
3332
+ text: `${R[k].label}(${f.value.filter((D) => D.status === k).length})`,
3326
3333
  value: k
3327
3334
  }))
3328
3335
  );
3329
- function Z(k, E) {
3330
- return E.status === k;
3336
+ function Z(k, D) {
3337
+ return D.status === k;
3331
3338
  }
3332
3339
  function W(k) {
3333
- var Pe, Ne;
3334
- if (!t.autoScroll) return;
3335
- const E = (Pe = S.value) == null ? void 0 : Pe.$el, H = E == null ? void 0 : E.querySelector(".el-table__body-wrapper .el-scrollbar__wrap"), ae = E == null ? void 0 : E.querySelector(".el-table__body-wrapper tbody");
3336
- if (!E || !H || !ae) return;
3337
- const xe = f.value.findIndex((me) => me.rowNumber === k), $e = ae.querySelectorAll("tr")[xe];
3338
- if (!$e) return;
3339
- const c = H.getBoundingClientRect(), oe = $e.getBoundingClientRect(), G = Math.max(0, H.scrollHeight - H.clientHeight), ve = H.scrollTop + (oe.top - c.top) - (H.clientHeight - oe.height) / 2;
3340
- (Ne = S.value) == null || Ne.setScrollTop(Math.min(G, Math.max(0, Math.round(ve))));
3340
+ var _e, xe;
3341
+ if (!l.autoScroll) return;
3342
+ const D = (_e = x.value) == null ? void 0 : _e.$el, G = D == null ? void 0 : D.querySelector(".el-table__body-wrapper .el-scrollbar__wrap"), se = D == null ? void 0 : D.querySelector(".el-table__body-wrapper tbody");
3343
+ if (!D || !G || !se) return;
3344
+ const be = f.value.findIndex((Xe) => Xe.rowNumber === k), Qe = se.querySelectorAll("tr")[be];
3345
+ if (!Qe) return;
3346
+ const Pe = G.getBoundingClientRect(), c = Qe.getBoundingClientRect(), Q = Math.max(0, G.scrollHeight - G.clientHeight), ae = G.scrollTop + (c.top - Pe.top) - (G.clientHeight - c.height) / 2;
3347
+ (xe = x.value) == null || xe.setScrollTop(Math.min(Q, Math.max(0, Math.round(ae))));
3341
3348
  }
3342
3349
  ce(
3343
3350
  () => {
3344
3351
  var k;
3345
- return ((k = f.value.find((E) => E.status === "processing")) == null ? void 0 : k.rowNumber) ?? null;
3352
+ return ((k = f.value.find((D) => D.status === "processing")) == null ? void 0 : k.rowNumber) ?? null;
3346
3353
  },
3347
3354
  (k) => {
3348
- k !== null && Xe(() => W(k));
3355
+ k !== null && Ze(() => W(k));
3349
3356
  }
3350
3357
  );
3351
3358
  const P = T(0), V = T(0);
3352
- let j;
3353
- const ne = O(() => {
3359
+ let H;
3360
+ const oe = q(() => {
3354
3361
  const k = A.value;
3355
- return k <= 0 ? 0 : Math.min(100, L.value / k * 100);
3362
+ return k <= 0 ? 0 : Math.min(100, U.value / k * 100);
3356
3363
  });
3357
3364
  function de() {
3358
- return `${L.value}/${A.value}`;
3365
+ return `${U.value}/${A.value}`;
3359
3366
  }
3360
- const pe = O(() => {
3361
- if (!w.value || L.value === 0) return "预计剩余 计算中…";
3362
- const E = (V.value - P.value) / L.value, H = A.value - L.value;
3363
- return `预计剩余 ${Fe(E * H)}`;
3367
+ const pe = q(() => {
3368
+ if (!w.value || U.value === 0) return "预计剩余 计算中…";
3369
+ const D = (V.value - P.value) / U.value, G = A.value - U.value;
3370
+ return `预计剩余 ${Fe(D * G)}`;
3364
3371
  });
3365
3372
  function Fe(k) {
3366
- const E = Math.max(0, Math.ceil(k / 1e3));
3367
- if (E < 60) return `${E} 秒`;
3368
- const H = Math.floor(E / 60), ae = E % 60;
3369
- return ae > 0 ? `${H} 分 ${ae} 秒` : `${H} 分`;
3373
+ const D = Math.max(0, Math.ceil(k / 1e3));
3374
+ if (D < 60) return `${D} 秒`;
3375
+ const G = Math.floor(D / 60), se = D % 60;
3376
+ return se > 0 ? `${G} 分 ${se} 秒` : `${G} 分`;
3370
3377
  }
3371
3378
  ce(w, (k) => {
3372
- k ? (P.value = Date.now(), V.value = P.value, j = setInterval(() => {
3379
+ k ? (P.value = Date.now(), V.value = P.value, H = setInterval(() => {
3373
3380
  V.value = Date.now();
3374
- }, 500)) : j && (clearInterval(j), j = void 0);
3381
+ }, 500)) : H && (clearInterval(H), H = void 0);
3375
3382
  }), Ue(() => {
3376
- j && clearInterval(j);
3383
+ H && clearInterval(H);
3377
3384
  });
3378
- function he() {
3385
+ function we() {
3379
3386
  var k;
3380
3387
  (k = b.value) == null || k.click();
3381
3388
  }
3382
- const ye = T(0), Be = O(() => ye.value > 0);
3383
- function fe(k) {
3384
- var E;
3385
- return Array.from(((E = k.dataTransfer) == null ? void 0 : E.types) ?? []).includes("Files");
3389
+ const ve = T(0), De = q(() => ve.value > 0);
3390
+ function me(k) {
3391
+ var D;
3392
+ return Array.from(((D = k.dataTransfer) == null ? void 0 : D.types) ?? []).includes("Files");
3386
3393
  }
3387
3394
  function je(k) {
3388
- const E = t.accept.split(",").map((ae) => ae.trim().toLowerCase()).filter(Boolean);
3389
- if (E.length === 0) return !0;
3390
- const H = k.name.toLowerCase();
3391
- return E.some((ae) => H.endsWith(ae));
3395
+ const D = l.accept.split(",").map((se) => se.trim().toLowerCase()).filter(Boolean);
3396
+ if (D.length === 0) return !0;
3397
+ const G = k.name.toLowerCase();
3398
+ return D.some((se) => G.endsWith(se));
3392
3399
  }
3393
- async function Ee(k) {
3394
- var E;
3395
- if (!r.value) {
3400
+ async function Be(k) {
3401
+ var D;
3402
+ if (!u.value) {
3396
3403
  if (!je(k)) {
3397
- ge.error(`仅支持 ${t.accept} 格式的文件`);
3404
+ ye.error(`仅支持 ${l.accept} 格式的文件`);
3398
3405
  return;
3399
3406
  }
3400
3407
  try {
3401
- const H = await g(k);
3402
- a("loaded", H), await Xe();
3403
- for (const ae of f.value)
3404
- ae.status !== "invalid" && ((E = S.value) == null || E.toggleRowSelection(ae, !0));
3405
- ge.success(`已加载 ${H.length} 行(工作表「${d.value}」)`);
3406
- } catch (H) {
3407
- ge.error(H instanceof Error ? H.message : String(H));
3408
+ const G = await g(k);
3409
+ a("loaded", G), await Ze();
3410
+ for (const se of f.value)
3411
+ se.status !== "invalid" && ((D = x.value) == null || D.toggleRowSelection(se, !0));
3412
+ ye.success(`已加载 ${G.length} 行(工作表「${d.value}」)`);
3413
+ } catch (G) {
3414
+ ye.error(G instanceof Error ? G.message : String(G));
3408
3415
  }
3409
3416
  }
3410
3417
  }
3411
- async function Ie(k) {
3412
- var ae;
3413
- const E = k.target, H = (ae = E.files) == null ? void 0 : ae[0];
3414
- E.value = "", H && await Ee(H);
3418
+ async function Ee(k) {
3419
+ var se;
3420
+ const D = k.target, G = (se = D.files) == null ? void 0 : se[0];
3421
+ D.value = "", G && await Be(G);
3415
3422
  }
3416
- function Se(k) {
3417
- fe(k) && (ye.value += 1);
3423
+ function $e(k) {
3424
+ me(k) && (ve.value += 1);
3418
3425
  }
3419
3426
  function He(k) {
3420
- fe(k) && (k.preventDefault(), k.dataTransfer && (k.dataTransfer.dropEffect = "copy"));
3427
+ me(k) && (k.preventDefault(), k.dataTransfer && (k.dataTransfer.dropEffect = "copy"));
3421
3428
  }
3422
- function Te(k) {
3423
- fe(k) && (ye.value = Math.max(0, ye.value - 1));
3429
+ function Ie(k) {
3430
+ me(k) && (ve.value = Math.max(0, ve.value - 1));
3424
3431
  }
3425
3432
  function Ve(k) {
3426
- var H, ae;
3427
- if (!fe(k)) return;
3428
- k.preventDefault(), ye.value = 0;
3429
- const E = (ae = (H = k.dataTransfer) == null ? void 0 : H.files) == null ? void 0 : ae[0];
3430
- E && Ee(E);
3433
+ var G, se;
3434
+ if (!me(k)) return;
3435
+ k.preventDefault(), ve.value = 0;
3436
+ const D = (se = (G = k.dataTransfer) == null ? void 0 : G.files) == null ? void 0 : se[0];
3437
+ D && Be(D);
3431
3438
  }
3432
3439
  function Ge(k) {
3433
3440
  z(k), a("selection-change", k);
@@ -3435,35 +3442,35 @@ const Uo = /* @__PURE__ */ te({
3435
3442
  function We(k) {
3436
3443
  return k.status !== "invalid";
3437
3444
  }
3438
- async function Ye() {
3445
+ async function Te() {
3439
3446
  try {
3440
3447
  const k = await ue();
3441
3448
  if (!k) return;
3442
3449
  if (a("processed", k), k.stopped) {
3443
- const E = k.total - k.success - k.failed;
3444
- ge.warning(
3445
- `已停止:成功 ${k.success} 行,失败 ${k.failed} 行,剩余 ${E} 行未处理(可再次「开始处理」续跑)`
3450
+ const D = k.total - k.success - k.failed;
3451
+ ye.warning(
3452
+ `已停止:成功 ${k.success} 行,失败 ${k.failed} 行,剩余 ${D} 行未处理(可再次「开始处理」续跑)`
3446
3453
  );
3447
- } else k.failed === 0 ? ge.success(`全部处理完成,共 ${k.success} 行`) : ge.warning(`处理完成:成功 ${k.success} 行,失败 ${k.failed} 行`);
3454
+ } else k.failed === 0 ? ye.success(`全部处理完成,共 ${k.success} 行`) : ye.warning(`处理完成:成功 ${k.success} 行,失败 ${k.failed} 行`);
3448
3455
  } catch (k) {
3449
- ge.error(k instanceof Error ? k.message : String(k));
3456
+ ye.error(k instanceof Error ? k.message : String(k));
3450
3457
  }
3451
3458
  }
3452
3459
  function Re(k) {
3453
3460
  return !w.value && (k.status === "invalid" || k.status === "failed");
3454
3461
  }
3455
- const Me = T(!1), Qe = T(null);
3456
- function Je(k) {
3457
- Re(k) && (Qe.value = k, Me.value = !0);
3462
+ const Me = T(!1), Ye = T(null);
3463
+ function tt(k) {
3464
+ Re(k) && (Ye.value = k, Me.value = !0);
3458
3465
  }
3459
- async function ke(k) {
3460
- var E;
3461
- a("row-update", k), await Xe(), (E = S.value) == null || E.toggleRowSelection(k, !0), ge.success(`第 ${k.rowNumber} 行已修正,可重新处理`);
3466
+ async function Je(k) {
3467
+ var D;
3468
+ a("row-update", k), await Ze(), (D = x.value) == null || D.toggleRowSelection(k, !0), ye.success(`第 ${k.rowNumber} 行已修正,可重新处理`);
3462
3469
  }
3463
- async function et(k) {
3470
+ async function ke(k) {
3464
3471
  if (Re(k)) {
3465
3472
  try {
3466
- await ht.confirm(
3473
+ await xt.confirm(
3467
3474
  `确定删除第 ${k.rowNumber} 行吗?删除后不可恢复。`,
3468
3475
  "删除数据行",
3469
3476
  { type: "warning", confirmButtonText: "删除", cancelButtonText: "取消" }
@@ -3471,16 +3478,16 @@ const Uo = /* @__PURE__ */ te({
3471
3478
  } catch {
3472
3479
  return;
3473
3480
  }
3474
- q(k), a("row-remove", k), ge.success(`已删除第 ${k.rowNumber} 行`);
3481
+ L(k), a("row-remove", k), ye.success(`已删除第 ${k.rowNumber} 行`);
3475
3482
  }
3476
3483
  }
3477
- return y({ openFilePicker: he, startProcessing: Ye, stopProcessing: ie, clear: X }), (k, E) => {
3478
- const H = C("el-button"), ae = C("el-progress"), xe = C("el-table-column"), $e = C("el-tag"), c = C("el-table"), oe = ft("loading");
3484
+ return y({ openFilePicker: we, startProcessing: Te, stopProcessing: ie, clear: X }), (k, D) => {
3485
+ const G = S("el-button"), se = S("el-progress"), be = S("el-table-column"), Qe = S("el-tag"), Pe = S("el-table"), c = yt("loading");
3479
3486
  return o(), v("div", {
3480
3487
  class: "yk-import-excel",
3481
- onDragenter: Se,
3488
+ onDragenter: $e,
3482
3489
  onDragover: He,
3483
- onDragleave: Te,
3490
+ onDragleave: Ie,
3484
3491
  onDrop: Ve
3485
3492
  }, [
3486
3493
  m("input", {
@@ -3488,87 +3495,87 @@ const Uo = /* @__PURE__ */ te({
3488
3495
  ref: b,
3489
3496
  class: "yk-import-excel__file",
3490
3497
  type: "file",
3491
- accept: t.accept,
3492
- onChange: Ie
3493
- }, null, 40, jo),
3494
- m("div", Ho, [
3495
- p(H, {
3498
+ accept: l.accept,
3499
+ onChange: Ee
3500
+ }, null, 40, Jo),
3501
+ m("div", Xo, [
3502
+ p(G, {
3496
3503
  type: "primary",
3497
- loading: u(r),
3498
- onClick: he
3504
+ loading: s(u),
3505
+ onClick: we
3499
3506
  }, {
3500
- default: n(() => [...E[1] || (E[1] = [
3507
+ default: n(() => [...D[1] || (D[1] = [
3501
3508
  $(" 选择 Excel 文件 ", -1)
3502
3509
  ])]),
3503
3510
  _: 1
3504
3511
  }, 8, ["loading"]),
3505
- p(H, {
3512
+ p(G, {
3506
3513
  type: "success",
3507
- loading: u(w),
3508
- disabled: u(s) === 0,
3509
- onClick: Ye
3514
+ loading: s(w),
3515
+ disabled: s(i) === 0,
3516
+ onClick: Te
3510
3517
  }, {
3511
3518
  default: n(() => [
3512
- $(" 开始处理" + I(u(s) > 0 ? `(${u(s)} 行)` : ""), 1)
3519
+ $(" 开始处理" + I(s(i) > 0 ? `(${s(i)} 行)` : ""), 1)
3513
3520
  ]),
3514
3521
  _: 1
3515
3522
  }, 8, ["loading", "disabled"]),
3516
- u(w) ? (o(), x(H, {
3523
+ s(w) ? (o(), C(G, {
3517
3524
  key: 0,
3518
3525
  type: "danger",
3519
- disabled: u(F),
3520
- onClick: u(ie)
3526
+ disabled: s(F),
3527
+ onClick: s(ie)
3521
3528
  }, {
3522
3529
  default: n(() => [
3523
- $(I(u(F) ? "正在停止…" : "停止"), 1)
3530
+ $(I(s(F) ? "正在停止…" : "停止"), 1)
3524
3531
  ]),
3525
3532
  _: 1
3526
- }, 8, ["disabled", "onClick"])) : D("", !0),
3527
- p(H, {
3528
- disabled: !u(_) || u(w),
3529
- onClick: u(X)
3533
+ }, 8, ["disabled", "onClick"])) : B("", !0),
3534
+ p(G, {
3535
+ disabled: !s(_) || s(w),
3536
+ onClick: s(X)
3530
3537
  }, {
3531
- default: n(() => [...E[2] || (E[2] = [
3538
+ default: n(() => [...D[2] || (D[2] = [
3532
3539
  $("清空", -1)
3533
3540
  ])]),
3534
3541
  _: 1
3535
3542
  }, 8, ["disabled", "onClick"]),
3536
- u(i) ? (o(), v("span", {
3543
+ s(r) ? (o(), v("span", {
3537
3544
  key: 1,
3538
3545
  class: "yk-import-excel__file-name",
3539
- title: u(i)
3546
+ title: s(r)
3540
3547
  }, [
3541
- $(" 📄 " + I(u(i)), 1),
3542
- u(d) ? (o(), v(U, { key: 0 }, [
3543
- $("(工作表:" + I(u(d)) + ")", 1)
3544
- ], 64)) : D("", !0)
3545
- ], 8, Go)) : D("", !0),
3546
- u(_) ? (o(), v("div", Wo, [
3547
- m("span", Jo, "共 " + I(u(f).length) + " 行", 1),
3548
- m("span", Xo, "已选 " + I(u(K)), 1),
3549
- m("span", Zo, "校验失败 " + I(u(Y)), 1)
3550
- ])) : D("", !0)
3548
+ $(" 📄 " + I(s(r)), 1),
3549
+ s(d) ? (o(), v(K, { key: 0 }, [
3550
+ $("(工作表:" + I(s(d)) + ")", 1)
3551
+ ], 64)) : B("", !0)
3552
+ ], 8, Zo)) : B("", !0),
3553
+ s(_) ? (o(), v("div", en, [
3554
+ m("span", tn, "共 " + I(s(f).length) + " 行", 1),
3555
+ m("span", ln, "已选 " + I(s(j)), 1),
3556
+ m("span", on, "校验失败 " + I(s(Y)), 1)
3557
+ ])) : B("", !0)
3551
3558
  ]),
3552
- u(w) ? (o(), v("div", en, [
3553
- p(ae, {
3554
- percentage: ne.value,
3559
+ s(w) ? (o(), v("div", nn, [
3560
+ p(se, {
3561
+ percentage: oe.value,
3555
3562
  "stroke-width": 14,
3556
3563
  "text-inside": "",
3557
3564
  format: de,
3558
3565
  class: "yk-import-excel__progress-bar"
3559
3566
  }, null, 8, ["percentage"]),
3560
- m("span", tn, [
3561
- $(" 成功 " + I(u(B)), 1),
3562
- m("span", ln, " / 失败 " + I(u(h)), 1)
3567
+ m("span", an, [
3568
+ $(" 成功 " + I(s(E)), 1),
3569
+ m("span", sn, " / 失败 " + I(s(h)), 1)
3563
3570
  ]),
3564
- m("span", on, I(pe.value), 1)
3565
- ])) : D("", !0),
3566
- tt((o(), v("div", nn, [
3567
- u(_) ? (o(), x(c, {
3571
+ m("span", rn, I(pe.value), 1)
3572
+ ])) : B("", !0),
3573
+ lt((o(), v("div", un, [
3574
+ s(_) ? (o(), C(Pe, {
3568
3575
  key: 0,
3569
3576
  ref_key: "tableRef",
3570
- ref: S,
3571
- data: u(f),
3577
+ ref: x,
3578
+ data: s(f),
3572
3579
  height: "100%",
3573
3580
  "row-key": "rowNumber",
3574
3581
  border: "",
@@ -3576,37 +3583,37 @@ const Uo = /* @__PURE__ */ te({
3576
3583
  onSelectionChange: Ge
3577
3584
  }, {
3578
3585
  default: n(() => [
3579
- p(xe, {
3586
+ p(be, {
3580
3587
  type: "selection",
3581
3588
  width: "44",
3582
3589
  fixed: "left",
3583
3590
  selectable: We
3584
3591
  }),
3585
- p(xe, {
3592
+ p(be, {
3586
3593
  label: "行号",
3587
3594
  width: "70",
3588
3595
  align: "center",
3589
3596
  fixed: "left"
3590
3597
  }, {
3591
- default: n(({ row: G, $index: ve }) => [
3598
+ default: n(({ row: Q, $index: ae }) => [
3592
3599
  m("span", {
3593
- title: `Excel 第 ${G.rowNumber} 行`
3594
- }, I(ve + 1), 9, an)
3600
+ title: `Excel 第 ${Q.rowNumber} 行`
3601
+ }, I(ae + 1), 9, dn)
3595
3602
  ]),
3596
3603
  _: 1
3597
3604
  }),
3598
- (o(!0), v(U, null, le(t.columns, (G) => (o(), x(xe, {
3599
- key: G.name,
3600
- label: G.name,
3605
+ (o(!0), v(K, null, le(l.columns, (Q) => (o(), C(be, {
3606
+ key: Q.name,
3607
+ label: Q.name,
3601
3608
  "min-width": "120",
3602
3609
  "show-overflow-tooltip": ""
3603
3610
  }, {
3604
- default: n(({ row: ve }) => [
3605
- $(I(u(zt)(ve.data[G.name])), 1)
3611
+ default: n(({ row: ae }) => [
3612
+ $(I(s(Dt)(ae.data[Q.name])), 1)
3606
3613
  ]),
3607
3614
  _: 2
3608
3615
  }, 1032, ["label"]))), 128)),
3609
- p(xe, {
3616
+ p(be, {
3610
3617
  label: "状态",
3611
3618
  width: "200",
3612
3619
  fixed: "right",
@@ -3616,37 +3623,37 @@ const Uo = /* @__PURE__ */ te({
3616
3623
  "filter-multiple": !1,
3617
3624
  "filter-placement": "bottom-end"
3618
3625
  }, {
3619
- default: n(({ row: G }) => [
3620
- p($e, {
3621
- type: R[G.status].type,
3626
+ default: n(({ row: Q }) => [
3627
+ p(Qe, {
3628
+ type: R[Q.status].type,
3622
3629
  size: "small",
3623
3630
  "disable-transitions": ""
3624
3631
  }, {
3625
3632
  default: n(() => [
3626
- G.status === "processing" ? (o(), v("span", sn)) : D("", !0),
3627
- $(" " + I(R[G.status].label), 1)
3633
+ Q.status === "processing" ? (o(), v("span", cn)) : B("", !0),
3634
+ $(" " + I(R[Q.status].label), 1)
3628
3635
  ]),
3629
3636
  _: 2
3630
3637
  }, 1032, ["type"]),
3631
- G.status === "invalid" ? (o(), v("div", rn, I(G.errors.join(";")), 1)) : G.message ? (o(), v("div", un, I(G.message), 1)) : D("", !0)
3638
+ Q.status === "invalid" ? (o(), v("div", pn, I(Q.errors.join(";")), 1)) : Q.message ? (o(), v("div", mn, I(Q.message), 1)) : B("", !0)
3632
3639
  ]),
3633
3640
  _: 1
3634
3641
  }, 8, ["filters"]),
3635
- p(xe, {
3642
+ p(be, {
3636
3643
  label: "操作",
3637
3644
  width: "110",
3638
3645
  fixed: "right",
3639
3646
  align: "center"
3640
3647
  }, {
3641
- default: n(({ row: G }) => [
3642
- Re(G) ? (o(), v(U, { key: 0 }, [
3643
- p(H, {
3648
+ default: n(({ row: Q }) => [
3649
+ Re(Q) ? (o(), v(K, { key: 0 }, [
3650
+ p(G, {
3644
3651
  link: "",
3645
3652
  type: "primary",
3646
3653
  size: "small",
3647
- onClick: (ve) => Je(G)
3654
+ onClick: (ae) => tt(Q)
3648
3655
  }, {
3649
- default: n(() => [...E[3] || (E[3] = [
3656
+ default: n(() => [...D[3] || (D[3] = [
3650
3657
  m("svg", {
3651
3658
  class: "yk-import-excel__action-icon",
3652
3659
  viewBox: "0 0 24 24",
@@ -3664,13 +3671,13 @@ const Uo = /* @__PURE__ */ te({
3664
3671
  ])]),
3665
3672
  _: 1
3666
3673
  }, 8, ["onClick"]),
3667
- p(H, {
3674
+ p(G, {
3668
3675
  link: "",
3669
3676
  type: "danger",
3670
3677
  size: "small",
3671
- onClick: (ve) => et(G)
3678
+ onClick: (ae) => ke(Q)
3672
3679
  }, {
3673
- default: n(() => [...E[4] || (E[4] = [
3680
+ default: n(() => [...D[4] || (D[4] = [
3674
3681
  m("svg", {
3675
3682
  class: "yk-import-excel__action-icon",
3676
3683
  viewBox: "0 0 24 24",
@@ -3700,7 +3707,7 @@ const Uo = /* @__PURE__ */ te({
3700
3707
  ])]),
3701
3708
  _: 1
3702
3709
  }, 8, ["onClick"])
3703
- ], 64)) : (o(), v("span", dn, "—"))
3710
+ ], 64)) : (o(), v("span", fn, "—"))
3704
3711
  ]),
3705
3712
  _: 1
3706
3713
  })
@@ -3709,41 +3716,41 @@ const Uo = /* @__PURE__ */ te({
3709
3716
  }, 8, ["data"])) : (o(), v("div", {
3710
3717
  key: 1,
3711
3718
  class: "yk-import-excel__empty",
3712
- onClick: he
3719
+ onClick: we
3713
3720
  }, [
3714
- E[5] || (E[5] = st('<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)),
3715
- m("p", cn, "支持 " + I(t.accept) + " 格式,首行需为表头", 1)
3721
+ D[5] || (D[5] = it('<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)),
3722
+ m("p", vn, "支持 " + I(l.accept) + " 格式,首行需为表头", 1)
3716
3723
  ]))
3717
3724
  ])), [
3718
- [oe, u(r)]
3725
+ [c, s(u)]
3719
3726
  ]),
3720
- Be.value ? (o(), v("div", pn, [...E[6] || (E[6] = [
3721
- st('<div class="yk-import-excel__drop-tip" data-v-2d035039><svg 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="M12 15V3" data-v-2d035039></path><polyline points="7 8 12 3 17 8" data-v-2d035039></polyline><path d="M3 15v4a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-4" data-v-2d035039></path></svg><span data-v-2d035039>松开鼠标,加载 Excel 文件</span></div>', 1)
3722
- ])])) : D("", !0),
3723
- p(Ko, {
3727
+ De.value ? (o(), v("div", yn, [...D[6] || (D[6] = [
3728
+ it('<div class="yk-import-excel__drop-tip" data-v-2d035039><svg 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="M12 15V3" data-v-2d035039></path><polyline points="7 8 12 3 17 8" data-v-2d035039></polyline><path d="M3 15v4a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-4" data-v-2d035039></path></svg><span data-v-2d035039>松开鼠标,加载 Excel 文件</span></div>', 1)
3729
+ ])])) : B("", !0),
3730
+ p(Wo, {
3724
3731
  visible: Me.value,
3725
- "onUpdate:visible": E[0] || (E[0] = (G) => Me.value = G),
3726
- row: Qe.value,
3727
- columns: t.columns,
3728
- saver: u(N),
3729
- onSaved: ke
3732
+ "onUpdate:visible": D[0] || (D[0] = (Q) => Me.value = Q),
3733
+ row: Ye.value,
3734
+ columns: l.columns,
3735
+ saver: s(O),
3736
+ onSaved: Je
3730
3737
  }, null, 8, ["visible", "row", "columns", "saver"])
3731
3738
  ], 32);
3732
3739
  };
3733
3740
  }
3734
- }), fn = /* @__PURE__ */ re(mn, [["__scopeId", "data-v-2d035039"]]), vn = { class: "yk-infinite-list__item-body" }, yn = { class: "yk-infinite-list__item-json" }, gn = {
3741
+ }), _n = /* @__PURE__ */ re(gn, [["__scopeId", "data-v-2d035039"]]), kn = { class: "yk-infinite-list__item-body" }, bn = { class: "yk-infinite-list__item-json" }, hn = {
3735
3742
  key: 0,
3736
3743
  class: "yk-infinite-list__status"
3737
- }, _n = {
3744
+ }, wn = {
3738
3745
  key: 1,
3739
3746
  class: "yk-infinite-list__status"
3740
- }, kn = {
3747
+ }, xn = {
3741
3748
  key: 2,
3742
3749
  class: "yk-infinite-list__loading-more"
3743
- }, bn = {
3750
+ }, Cn = {
3744
3751
  key: 3,
3745
3752
  class: "yk-infinite-list__no-more"
3746
- }, hn = /* @__PURE__ */ te({
3753
+ }, Sn = /* @__PURE__ */ te({
3747
3754
  name: "YsInfiniteList",
3748
3755
  __name: "infiniteList",
3749
3756
  props: {
@@ -3786,79 +3793,79 @@ const Uo = /* @__PURE__ */ te({
3786
3793
  exportPageSize: { type: Number, default: 1e3 }
3787
3794
  },
3788
3795
  emits: ["data-loaded", "error", "selection-change"],
3789
- setup(e, { expose: y, emit: l }) {
3790
- const t = e, a = l, f = T([]), i = T(!1), d = T(!1), r = T(!0), w = T(null), F = O(() => f.value.length), A = T(null), {
3796
+ setup(e, { expose: y, emit: t }) {
3797
+ const l = e, a = t, f = T([]), r = T(!1), d = T(!1), u = T(!0), w = T(null), F = q(() => f.value.length), A = T(null), {
3791
3798
  /** 跨页累计选中的行(滚动加载更多不丢失) */
3792
- selectedRows: L,
3793
- isRowSelected: B,
3799
+ selectedRows: U,
3800
+ isRowSelected: E,
3794
3801
  toggleRowSelection: h,
3795
3802
  clearSelection: _,
3796
3803
  selectAllOnPage: Y,
3797
- invertSelectionOnPage: Q
3798
- } = _t({ tableEl: A, rows: f, rowKey: se(t, "rowKey") });
3799
- ce(L, (P) => a("selection-change", [...P]));
3800
- const J = T(0), K = T(!1), s = T(null);
3804
+ invertSelectionOnPage: N
3805
+ } = bt({ tableEl: A, rows: f, rowKey: ne(l, "rowKey") });
3806
+ ce(U, (P) => a("selection-change", [...P]));
3807
+ const J = T(0), j = T(!1), i = T(null);
3801
3808
  async function g() {
3802
- if (!t.metaFun) {
3803
- s.value = null;
3809
+ if (!l.metaFun) {
3810
+ i.value = null;
3804
3811
  return;
3805
3812
  }
3806
3813
  try {
3807
- s.value = await t.metaFun();
3814
+ i.value = await l.metaFun();
3808
3815
  } catch {
3809
- s.value = null;
3816
+ i.value = null;
3810
3817
  }
3811
3818
  }
3812
- const z = O(() => {
3813
- const P = s.value;
3819
+ const z = q(() => {
3820
+ const P = i.value;
3814
3821
  if (P)
3815
- return P.columns.map((ne, de) => ({ c: ne, i: de })).filter(({ c: ne }) => ne.showForDisplay !== !1).sort((ne, de) => (ne.c.displayOrder ?? ne.i) - (de.c.displayOrder ?? de.i)).map(({ c: ne }) => ne);
3816
- const V = /* @__PURE__ */ new Set(), j = [];
3817
- for (const ne of f.value)
3818
- for (const de of Object.keys(ne))
3819
- V.has(de) || (V.add(de), j.push({ propertyPath: de }));
3820
- return j;
3821
- }), N = O(() => {
3822
+ return P.columns.map((oe, de) => ({ c: oe, i: de })).filter(({ c: oe }) => oe.showForDisplay !== !1).sort((oe, de) => (oe.c.displayOrder ?? oe.i) - (de.c.displayOrder ?? de.i)).map(({ c: oe }) => oe);
3823
+ const V = /* @__PURE__ */ new Set(), H = [];
3824
+ for (const oe of f.value)
3825
+ for (const de of Object.keys(oe))
3826
+ V.has(de) || (V.add(de), H.push({ propertyPath: de }));
3827
+ return H;
3828
+ }), O = q(() => {
3822
3829
  var P;
3823
- return ((P = s.value) == null ? void 0 : P.displayName) ?? "数据";
3824
- }), q = T(null);
3830
+ return ((P = i.value) == null ? void 0 : P.displayName) ?? "数据";
3831
+ }), L = T(null);
3825
3832
  function ue() {
3826
3833
  var P;
3827
- (P = q.value) == null || P.openExportDialog();
3834
+ (P = L.value) == null || P.openExportDialog();
3828
3835
  }
3829
3836
  async function ie(P) {
3830
3837
  if (P) {
3831
- if (d.value || i.value || !r.value) return;
3838
+ if (d.value || r.value || !u.value) return;
3832
3839
  d.value = !0;
3833
3840
  } else {
3834
- if (i.value) return;
3835
- i.value = !0, w.value = null;
3841
+ if (r.value) return;
3842
+ r.value = !0, w.value = null;
3836
3843
  }
3837
3844
  try {
3838
- const V = P ? F.value : 0, j = await t.dataFun({ limit: t.pageSize, offset: V });
3839
- P ? f.value.push(...j.items) : f.value = j.items, r.value = j.hasNext ?? !1, j.totalCount != null && (J.value = j.totalCount, K.value = !0), a("data-loaded", j, P);
3845
+ const V = P ? F.value : 0, H = await l.dataFun({ limit: l.pageSize, offset: V });
3846
+ P ? f.value.push(...H.items) : f.value = H.items, u.value = H.hasNext ?? !1, H.totalCount != null && (J.value = H.totalCount, j.value = !0), a("data-loaded", H, P);
3840
3847
  } catch (V) {
3841
3848
  w.value = V, a("error", V);
3842
3849
  } finally {
3843
- P ? d.value = !1 : i.value = !1;
3850
+ P ? d.value = !1 : r.value = !1;
3844
3851
  }
3845
3852
  }
3846
3853
  function X() {
3847
3854
  ie(!0);
3848
3855
  }
3849
- function S() {
3850
- r.value = !0, ie(!1);
3856
+ function x() {
3857
+ u.value = !0, ie(!1);
3851
3858
  }
3852
3859
  const b = T(null), R = T(null);
3853
3860
  let M = null;
3854
3861
  function Z() {
3855
3862
  !b.value || !R.value || (M = new IntersectionObserver(
3856
3863
  (P) => {
3857
- P.some((V) => V.isIntersecting) && r.value && !i.value && !d.value && X();
3864
+ P.some((V) => V.isIntersecting) && u.value && !r.value && !d.value && X();
3858
3865
  },
3859
3866
  {
3860
3867
  root: b.value,
3861
- rootMargin: `0px 0px ${t.threshold}px 0px`,
3868
+ rootMargin: `0px 0px ${l.threshold}px 0px`,
3862
3869
  threshold: 0
3863
3870
  }
3864
3871
  ), M.observe(R.value));
@@ -3866,33 +3873,33 @@ const Uo = /* @__PURE__ */ te({
3866
3873
  function W() {
3867
3874
  M == null || M.disconnect(), M = null;
3868
3875
  }
3869
- return Ce(() => {
3870
- Z(), g(), t.immediate && ie(!1);
3871
- }), Ue(W), ce(() => t.dataFun, () => S()), ce(() => t.metaFun, () => void g()), ce(() => t.threshold, () => {
3876
+ return Se(() => {
3877
+ Z(), g(), l.immediate && ie(!1);
3878
+ }), Ue(W), ce(() => l.dataFun, () => x()), ce(() => l.metaFun, () => void g()), ce(() => l.threshold, () => {
3872
3879
  W(), Z();
3873
3880
  }), y({
3874
3881
  /** 当前已加载的全部数据 */
3875
3882
  items: f,
3876
3883
  /** 首屏加载态 */
3877
- loading: i,
3884
+ loading: r,
3878
3885
  /** 追加加载态 */
3879
3886
  loadingMore: d,
3880
3887
  /** 是否还有下一页 */
3881
- hasMore: r,
3888
+ hasMore: u,
3882
3889
  /** 重置并从第一页重新加载 */
3883
- reload: S,
3890
+ reload: x,
3884
3891
  /** 刷新:重置为第一页重新加载(与 YsTable 的 refresh 同名同义) */
3885
- refresh: S,
3892
+ refresh: x,
3886
3893
  /** 手动触发加载下一页(一般由滚动自动触发) */
3887
3894
  loadNextPage: X,
3888
3895
  /** rows 别名:当前已加载的全部数据(与 YsTable 的 rows 同名) */
3889
3896
  rows: f,
3890
3897
  /** 元数据(metaFun 加载结果;未提供 metaFun 或加载失败时为 null) */
3891
- meta: s,
3898
+ meta: i,
3892
3899
  /** 跨页累计选中的行(showCheckbox 开启时有意义) */
3893
- selectedRows: L,
3900
+ selectedRows: U,
3894
3901
  /** 某行当前是否选中 */
3895
- isRowSelected: B,
3902
+ isRowSelected: E,
3896
3903
  /** 切换某行选中态(selected 缺省时取反) */
3897
3904
  toggleRowSelection: h,
3898
3905
  /** 清空全部选中 */
@@ -3900,49 +3907,49 @@ const Uo = /* @__PURE__ */ te({
3900
3907
  /** 选中当前已加载的全部行(不影响「没有加载出来」的行) */
3901
3908
  selectAllOnPage: Y,
3902
3909
  /** 反选当前已加载的行 */
3903
- invertSelectionOnPage: Q,
3910
+ invertSelectionOnPage: N,
3904
3911
  /** 打开导出 Excel 对话框(选中 / 当前已加载 / 所有数据) */
3905
3912
  openExportDialog: ue
3906
3913
  }), (P, V) => {
3907
- const j = C("el-checkbox"), ne = C("el-empty"), de = C("el-button");
3914
+ const H = S("el-checkbox"), oe = S("el-empty"), de = S("el-button");
3908
3915
  return o(), v("div", {
3909
3916
  ref_key: "scrollEl",
3910
3917
  ref: b,
3911
3918
  class: "yk-infinite-list",
3912
- style: at({ height: e.height })
3919
+ style: st({ height: e.height })
3913
3920
  }, [
3914
- (o(!0), v(U, null, le(f.value, (pe, Fe) => (o(), v("div", {
3921
+ (o(!0), v(K, null, le(f.value, (pe, Fe) => (o(), v("div", {
3915
3922
  key: String(pe[e.rowKey]),
3916
- class: we(["yk-infinite-list__item", { "is-selected": e.showCheckbox && u(B)(pe) }])
3923
+ class: Ce(["yk-infinite-list__item", { "is-selected": e.showCheckbox && s(E)(pe) }])
3917
3924
  }, [
3918
- e.showCheckbox ? (o(), x(j, {
3925
+ e.showCheckbox ? (o(), C(H, {
3919
3926
  key: 0,
3920
3927
  class: "yk-infinite-list__item-checkbox",
3921
- "model-value": u(B)(pe),
3922
- onChange: (he) => u(h)(pe, !!he)
3923
- }, null, 8, ["model-value", "onChange"])) : D("", !0),
3924
- m("div", vn, [
3928
+ "model-value": s(E)(pe),
3929
+ onChange: (we) => s(h)(pe, !!we)
3930
+ }, null, 8, ["model-value", "onChange"])) : B("", !0),
3931
+ m("div", kn, [
3925
3932
  ee(P.$slots, "default", {
3926
3933
  row: pe,
3927
3934
  index: Fe
3928
3935
  }, () => [
3929
- m("pre", yn, I(JSON.stringify(pe, null, 2)), 1)
3936
+ m("pre", bn, I(JSON.stringify(pe, null, 2)), 1)
3930
3937
  ], !0)
3931
3938
  ])
3932
3939
  ], 2))), 128)),
3933
- !i.value && f.value.length === 0 && !w.value ? (o(), v("div", gn, [
3940
+ !r.value && f.value.length === 0 && !w.value ? (o(), v("div", hn, [
3934
3941
  ee(P.$slots, "empty", {}, () => [
3935
- p(ne, { description: "暂无数据" })
3942
+ p(oe, { description: "暂无数据" })
3936
3943
  ], !0)
3937
- ])) : w.value ? (o(), v("div", _n, [
3944
+ ])) : w.value ? (o(), v("div", wn, [
3938
3945
  ee(P.$slots, "error", { error: w.value }, () => [
3939
- p(ne, {
3946
+ p(oe, {
3940
3947
  description: `加载失败:${String(w.value)}`
3941
3948
  }, {
3942
3949
  default: n(() => [
3943
3950
  p(de, {
3944
3951
  type: "primary",
3945
- onClick: S
3952
+ onClick: x
3946
3953
  }, {
3947
3954
  default: n(() => [...V[0] || (V[0] = [
3948
3955
  $("重试", -1)
@@ -3953,47 +3960,47 @@ const Uo = /* @__PURE__ */ te({
3953
3960
  _: 1
3954
3961
  }, 8, ["description"])
3955
3962
  ], !0)
3956
- ])) : D("", !0),
3963
+ ])) : B("", !0),
3957
3964
  m("div", {
3958
3965
  ref_key: "sentinelEl",
3959
3966
  ref: R,
3960
3967
  class: "yk-infinite-list__sentinel"
3961
3968
  }, null, 512),
3962
- d.value ? (o(), v("div", kn, [
3969
+ d.value ? (o(), v("div", xn, [
3963
3970
  ee(P.$slots, "loading", {}, () => [
3964
3971
  V[1] || (V[1] = m("span", { class: "yk-infinite-list__spinner" }, null, -1)),
3965
3972
  V[2] || (V[2] = m("span", null, "加载中...", -1))
3966
3973
  ], !0)
3967
- ])) : D("", !0),
3968
- !r.value && f.value.length > 0 && !i.value ? (o(), v("div", bn, [
3974
+ ])) : B("", !0),
3975
+ !u.value && f.value.length > 0 && !r.value ? (o(), v("div", Cn, [
3969
3976
  ee(P.$slots, "no-more", {}, () => [
3970
3977
  V[3] || (V[3] = m("span", null, "— 没有更多了 —", -1))
3971
3978
  ], !0)
3972
- ])) : D("", !0),
3973
- p(wt, {
3979
+ ])) : B("", !0),
3980
+ p(Ct, {
3974
3981
  ref_key: "exportDialogRef",
3975
- ref: q,
3982
+ ref: L,
3976
3983
  "current-rows": f.value,
3977
- "selected-rows": u(L),
3978
- "data-fun": t.dataFun,
3979
- "export-page-size": t.exportPageSize,
3984
+ "selected-rows": s(U),
3985
+ "data-fun": l.dataFun,
3986
+ "export-page-size": l.exportPageSize,
3980
3987
  total: J.value,
3981
- "total-known": K.value,
3982
- "exportor-func": t.exportorFunc,
3983
- "table-name": N.value,
3988
+ "total-known": j.value,
3989
+ "exportor-func": l.exportorFunc,
3990
+ "table-name": O.value,
3984
3991
  columns: z.value,
3985
- "has-more-page": r.value,
3992
+ "has-more-page": u.value,
3986
3993
  "export-selected": e.showCheckbox,
3987
3994
  "page-scope-label": "导出当前已加载"
3988
3995
  }, null, 8, ["current-rows", "selected-rows", "data-fun", "export-page-size", "total", "total-known", "exportor-func", "table-name", "columns", "has-more-page", "export-selected"])
3989
3996
  ], 4);
3990
3997
  };
3991
3998
  }
3992
- }), wn = /* @__PURE__ */ re(hn, [["__scopeId", "data-v-4b99ac8e"]]), pt = "ys-modal-style";
3993
- function xn() {
3994
- if (document.getElementById(pt)) return;
3999
+ }), $n = /* @__PURE__ */ re(Sn, [["__scopeId", "data-v-4b99ac8e"]]), ft = "ys-modal-style";
4000
+ function Fn() {
4001
+ if (document.getElementById(ft)) return;
3995
4002
  const e = document.createElement("style");
3996
- e.id = pt, e.textContent = [
4003
+ e.id = ft, e.textContent = [
3997
4004
  // 固定高度:height 由内联 CSS 变量 --ys-modal-height 传入(每个弹窗可不同)。
3998
4005
  // .el-dialog 设为 flex column,body 区 flex:1 + overflow:auto,
3999
4006
  // 内容超出时在弹窗内纵向滚动,不会撑大弹窗。
@@ -4017,8 +4024,8 @@ function xn() {
4017
4024
  ".ys-modal-header__maximize svg{display:block;margin-top:-2px}"
4018
4025
  ].join(""), document.head.appendChild(e);
4019
4026
  }
4020
- function Cn() {
4021
- return _e(
4027
+ function Vn() {
4028
+ return ge(
4022
4029
  "svg",
4023
4030
  {
4024
4031
  viewBox: "0 0 24 24",
@@ -4030,11 +4037,11 @@ function Cn() {
4030
4037
  "stroke-linecap": "round",
4031
4038
  "stroke-linejoin": "round"
4032
4039
  },
4033
- [_e("rect", { x: 4, y: 4, width: 16, height: 16, rx: 2 })]
4040
+ [ge("rect", { x: 4, y: 4, width: 16, height: 16, rx: 2 })]
4034
4041
  );
4035
4042
  }
4036
- function Sn() {
4037
- return _e(
4043
+ function Rn() {
4044
+ return ge(
4038
4045
  "svg",
4039
4046
  {
4040
4047
  viewBox: "0 0 24 24",
@@ -4047,60 +4054,60 @@ function Sn() {
4047
4054
  "stroke-linejoin": "round"
4048
4055
  },
4049
4056
  [
4050
- _e("rect", { x: 8, y: 8, width: 12, height: 12, rx: 2 }),
4051
- _e("path", { d: "M4 16V6a2 2 0 0 1 2-2h10" })
4057
+ ge("rect", { x: 8, y: 8, width: 12, height: 12, rx: 2 }),
4058
+ ge("path", { d: "M4 16V6a2 2 0 0 1 2-2h10" })
4052
4059
  ]
4053
4060
  );
4054
4061
  }
4055
- function $n(e) {
4056
- var q;
4062
+ function Mn(e) {
4063
+ var L;
4057
4064
  const {
4058
4065
  title: y = "",
4059
- width: l = "500px",
4060
- height: t,
4066
+ width: t = "500px",
4067
+ height: l,
4061
4068
  component: a,
4062
4069
  props: f,
4063
- actions: i,
4070
+ actions: r,
4064
4071
  onCancel: d,
4065
- onClosed: r,
4072
+ onClosed: u,
4066
4073
  closeOnClickModal: w = !1,
4067
4074
  closeOnPressEscape: F = !1,
4068
4075
  maximizable: A = !1,
4069
- defaultMaximized: L = !1,
4070
- appContext: B
4076
+ defaultMaximized: U = !1,
4077
+ appContext: E
4071
4078
  } = e;
4072
- (A || t != null) && xn();
4073
- const h = t == null ? void 0 : typeof t == "number" ? `${t}px` : t, _ = document.createElement("div");
4079
+ (A || l != null) && Fn();
4080
+ const h = l == null ? void 0 : typeof l == "number" ? `${l}px` : l, _ = document.createElement("div");
4074
4081
  document.body.appendChild(_);
4075
- let Y = null, Q = !1;
4082
+ let Y = null, N = !1;
4076
4083
  const J = () => {
4077
- Q || (Q = !0, it(null, _), _.remove());
4078
- }, K = {
4079
- close: () => N == null ? void 0 : N.close(),
4080
- toggleMaximize: () => N == null ? void 0 : N.toggleMaximize(),
4081
- isMaximized: () => (N == null ? void 0 : N.isMaximized()) ?? !1,
4084
+ N || (N = !0, rt(null, _), _.remove());
4085
+ }, j = {
4086
+ close: () => O == null ? void 0 : O.close(),
4087
+ toggleMaximize: () => O == null ? void 0 : O.toggleMaximize(),
4088
+ isMaximized: () => (O == null ? void 0 : O.isMaximized()) ?? !1,
4082
4089
  getContentInstance: () => Y
4083
- }, s = te({
4090
+ }, i = te({
4084
4091
  name: "YsModalHost",
4085
4092
  setup(ue, { expose: ie }) {
4086
- const X = T(!0), S = T(-1), b = T(A && L), R = () => {
4093
+ const X = T(!0), x = T(-1), b = T(A && U), R = () => {
4087
4094
  A && (b.value = !b.value);
4088
4095
  }, M = () => {
4089
4096
  X.value = !1;
4090
4097
  }, Z = () => {
4091
- S.value >= 0 || (d == null || d(), X.value = !1);
4098
+ x.value >= 0 || (d == null || d(), X.value = !1);
4092
4099
  }, W = async (P, V) => {
4093
- if (!(S.value >= 0)) {
4094
- S.value = V;
4100
+ if (!(x.value >= 0)) {
4101
+ x.value = V;
4095
4102
  try {
4096
- await P.execute(K, Y);
4103
+ await P.execute(j, Y);
4097
4104
  } finally {
4098
- S.value = -1;
4105
+ x.value = -1;
4099
4106
  }
4100
4107
  }
4101
4108
  };
4102
- return ie({ close: M, toggleMaximize: R, isMaximized: () => b.value }), () => _e(
4103
- tl,
4109
+ return ie({ close: M, toggleMaximize: R, isMaximized: () => b.value }), () => ge(
4110
+ rl,
4104
4111
  {
4105
4112
  // Element Plus 2.x 显隐规范:modelValue + update:modelValue
4106
4113
  modelValue: X.value,
@@ -4108,7 +4115,7 @@ function $n(e) {
4108
4115
  P || Z();
4109
4116
  },
4110
4117
  title: A ? void 0 : y,
4111
- width: l,
4118
+ width: t,
4112
4119
  // 最大化时贴顶(配合样式中 --el-dialog-margin-top:0)
4113
4120
  top: b.value ? "0vh" : void 0,
4114
4121
  // 最大化 class 优先(height:100vh!important 覆盖固定高度);
@@ -4119,10 +4126,10 @@ function $n(e) {
4119
4126
  closeOnClickModal: w,
4120
4127
  closeOnPressEscape: F,
4121
4128
  // 动作执行中隐藏右上角 ✕,与底部其余按钮禁用保持一致
4122
- showClose: S.value < 0,
4129
+ showClose: x.value < 0,
4123
4130
  destroyOnClose: !0,
4124
4131
  onClosed: () => {
4125
- r == null || r(), J();
4132
+ u == null || u(), J();
4126
4133
  }
4127
4134
  },
4128
4135
  {
@@ -4132,8 +4139,8 @@ function $n(e) {
4132
4139
  // 按钮 absolute 脱离文档流,以 .el-dialog 为包含块定位。
4133
4140
  // EP 的 ✕ 关闭按钮渲染在插槽内容之外,自动保留且定位不受影响。
4134
4141
  header: A ? () => [
4135
- _e("span", { class: "el-dialog__title" }, y),
4136
- _e(
4142
+ ge("span", { class: "el-dialog__title" }, y),
4143
+ ge(
4137
4144
  "button",
4138
4145
  {
4139
4146
  type: "button",
@@ -4142,10 +4149,10 @@ function $n(e) {
4142
4149
  "aria-label": b.value ? "还原" : "最大化",
4143
4150
  onClick: R
4144
4151
  },
4145
- b.value ? Sn() : Cn()
4152
+ b.value ? Rn() : Vn()
4146
4153
  )
4147
4154
  ] : void 0,
4148
- default: () => _e(a, {
4155
+ default: () => ge(a, {
4149
4156
  ...f ?? {},
4150
4157
  // 注入关闭监听器:内容组件 defineEmits(["close"]) 后
4151
4158
  // emit("close") 即可关闭;无需在业务 props 里声明。
@@ -4156,29 +4163,29 @@ function $n(e) {
4156
4163
  Y = P;
4157
4164
  }
4158
4165
  }),
4159
- footer: () => i != null && i.length ? i.map(
4160
- (P, V) => _e(
4161
- ll,
4166
+ footer: () => r != null && r.length ? r.map(
4167
+ (P, V) => ge(
4168
+ ul,
4162
4169
  {
4163
4170
  key: P.name,
4164
4171
  // 与 commandBar 同构:'default' 归一化为 undefined
4165
4172
  type: P.type === "default" ? void 0 : P.type,
4166
4173
  title: P.desc,
4167
4174
  // 执行中:当前动作 loading,其余动作禁用
4168
- disabled: S.value >= 0 && S.value !== V,
4169
- loading: S.value === V,
4175
+ disabled: x.value >= 0 && x.value !== V,
4176
+ loading: x.value === V,
4170
4177
  onClick: () => W(P, V)
4171
4178
  },
4172
4179
  {
4173
4180
  default: () => [
4174
4181
  // 与模板 <component :is> 行为对齐:VNode 原样嵌入、组件 h() 渲染;
4175
4182
  // 外包 span 提供与 commandBar 图标一致的间距(teleport 内容无法用 scoped 样式命中)
4176
- P.icon ? _e(
4183
+ P.icon ? ge(
4177
4184
  "span",
4178
4185
  {
4179
4186
  style: "margin-right:4px;display:inline-flex;align-items:center;vertical-align:-2px"
4180
4187
  },
4181
- [It(P.icon) ? P.icon : _e(P.icon)]
4188
+ [Yt(P.icon) ? P.icon : ge(P.icon)]
4182
4189
  ) : null,
4183
4190
  P.desc
4184
4191
  ]
@@ -4188,66 +4195,66 @@ function $n(e) {
4188
4195
  }
4189
4196
  );
4190
4197
  }
4191
- }), g = p(s), z = B ?? Zt();
4198
+ }), g = p(i), z = E ?? sl();
4192
4199
  z || console.warn(
4193
4200
  "[openModal] 未检测到 AppContext:弹窗内的全局组件(如 el-form)与 inject 将不可用。请在应用入口 app.use(YsCrudElementPlus),或调用 openModal 时传入 appContext(getCurrentInstance()?.appContext)。"
4194
- ), g.appContext = z, it(g, _);
4195
- const N = (q = g.component) == null ? void 0 : q.exposed;
4196
- return K;
4201
+ ), g.appContext = z, rt(g, _);
4202
+ const O = (L = g.component) == null ? void 0 : L.exposed;
4203
+ return j;
4197
4204
  }
4198
- function zn(e) {
4205
+ function En(e) {
4199
4206
  const {
4200
4207
  confirmText: y = "确定",
4201
- cancelText: l = "取消",
4202
- confirmType: t = "primary",
4208
+ cancelText: t = "取消",
4209
+ confirmType: l = "primary",
4203
4210
  onConfirm: a,
4204
4211
  ...f
4205
4212
  } = e;
4206
- return $n({ ...f, actions: [
4207
- { name: "cancel", desc: l, execute: (d) => d.close() },
4213
+ return Mn({ ...f, actions: [
4214
+ { name: "cancel", desc: t, execute: (d) => d.close() },
4208
4215
  {
4209
4216
  name: "confirm",
4210
4217
  desc: y,
4211
- type: t,
4212
- execute: async (d, r) => {
4218
+ type: l,
4219
+ execute: async (d, u) => {
4213
4220
  if (!a) {
4214
4221
  d.close();
4215
4222
  return;
4216
4223
  }
4217
- await a(d, r) !== !1 && d.close();
4224
+ await a(d, u) !== !1 && d.close();
4218
4225
  }
4219
4226
  }
4220
4227
  ] });
4221
4228
  }
4222
- const An = {
4229
+ const In = {
4223
4230
  install(e) {
4224
- el(e._context), e.component("YsTable", xt), e.component("YsTableActionMenuButton", Ct), e.component("YsCommandBar", St), e.component("YsMainPanel", po), e.component("YsFilterPanel", Pt), e.component("YsRootFilterPanel", Mt), e.component("YsTextFilterItem", Eo), e.component("YsDateFilterItem", Io), e.component("YsDateRangeFilterItem", To), e.component("YsEnumFilterItem", Yo), e.component("YsFilterItemLayout", Ke), e.component("YsAdvancedFilterPanel", Rt), e.component("YsAdvancedValueEditor", $t), e.component("YsAdvancedConditionGroup", Vt), e.component("YsTablePage", Lo), e.component("YsImportExcel", fn), e.component("YsInfiniteList", wn);
4231
+ il(e._context), e.component("YsTable", St), e.component("YsTableActionMenuButton", $t), e.component("YsCommandBar", Ft), e.component("YsMainPanel", yo), e.component("YsFilterPanel", At), e.component("YsRootFilterPanel", zt), e.component("YsTextFilterItem", Qo), e.component("YsDateFilterItem", No), e.component("YsDateRangeFilterItem", Oo), e.component("YsEnumFilterItem", qo), e.component("YsFilterItemLayout", Ke), e.component("YsAdvancedFilterPanel", Pt), e.component("YsAdvancedValueEditor", Vt), e.component("YsAdvancedConditionGroup", Mt), e.component("YsTablePage", Ho), e.component("YsImportExcel", _n), e.component("YsInfiniteList", $n);
4225
4232
  }
4226
4233
  };
4227
4234
  export {
4228
- Vt as YsAdvancedConditionGroup,
4229
- Rt as YsAdvancedFilterPanel,
4230
- $t as YsAdvancedValueEditor,
4231
- St as YsCommandBar,
4232
- Io as YsDateFilterItem,
4233
- To as YsDateRangeFilterItem,
4234
- Yo as YsEnumFilterItem,
4235
+ Mt as YsAdvancedConditionGroup,
4236
+ Pt as YsAdvancedFilterPanel,
4237
+ Vt as YsAdvancedValueEditor,
4238
+ Ft as YsCommandBar,
4239
+ No as YsDateFilterItem,
4240
+ Oo as YsDateRangeFilterItem,
4241
+ qo as YsEnumFilterItem,
4235
4242
  Ke as YsFilterItemLayout,
4236
- Pt as YsFilterPanel,
4237
- fn as YsImportExcel,
4238
- wn as YsInfiniteList,
4239
- po as YsMainPanel,
4240
- Mt as YsRootFilterPanel,
4241
- xt as YsTable,
4242
- Ct as YsTableActionMenuButton,
4243
- Lo as YsTablePage,
4244
- Eo as YsTextFilterItem,
4245
- An as default,
4246
- En as fromArray,
4247
- In as fromBool,
4248
- Tn as fromObjectItems,
4249
- Yn as fromOptions,
4250
- zn as openDialog,
4251
- $n as openModal
4243
+ At as YsFilterPanel,
4244
+ _n as YsImportExcel,
4245
+ $n as YsInfiniteList,
4246
+ yo as YsMainPanel,
4247
+ zt as YsRootFilterPanel,
4248
+ St as YsTable,
4249
+ $t as YsTableActionMenuButton,
4250
+ Ho as YsTablePage,
4251
+ Qo as YsTextFilterItem,
4252
+ In as default,
4253
+ Qn as fromArray,
4254
+ Nn as fromBool,
4255
+ On as fromObjectItems,
4256
+ qn as fromOptions,
4257
+ En as openDialog,
4258
+ Mn as openModal
4252
4259
  };
4253
4260
  //# sourceMappingURL=index.js.map