@vue-start/pro 0.5.64 → 0.5.66

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.es.js CHANGED
@@ -1,8 +1,8 @@
1
- import { inject as be, defineComponent as N, computed as E, provide as Se, createVNode as s, mergeProps as R, isVNode as Oe, Fragment as fe, reactive as ve, ref as Q, createTextVNode as st, toRef as Bn, nextTick as qn, KeepAlive as Un, Teleport as Ht, h as Fe, resolveComponent as Vn } from "vue";
2
- import { reduce as se, get as g, map as $, isString as ye, forEach as ie, isFunction as Y, filter as J, keys as Z, omit as F, isArray as re, split as zn, isEmpty as Wt, isObject as Ke, mergeWith as Hn, size as ee, startsWith as Wn, pick as ne, mapKeys as _n, set as he, debounce as _t, clone as Gn, some as Ie, isBoolean as Re, has as it, sortBy as Gt, every as Xt, pickBy as Yt, identity as Xn, find as lt, findIndex as Yn, countBy as Qn, findLast as Jn, isNumber as dt, join as Ze, endsWith as Qt, add as Zn, subtract as er, head as tr, cloneDeep as Jt } from "lodash";
3
- import { filter as Le, tap as Ge, merge as nr, Subject as rr } from "rxjs";
1
+ import { inject as be, defineComponent as O, computed as C, provide as Se, createVNode as s, mergeProps as L, isVNode as Oe, Fragment as fe, reactive as ve, ref as Q, createTextVNode as st, toRef as Bn, nextTick as qn, KeepAlive as Un, Teleport as Ht, h as Fe, resolveComponent as Vn } from "vue";
2
+ import { reduce as ie, get as g, map as $, isString as ye, forEach as se, isFunction as Y, filter as J, keys as Z, omit as K, isArray as re, split as zn, isEmpty as Wt, isObject as Ke, mergeWith as Hn, size as ee, startsWith as Wn, pick as ne, mapKeys as _n, set as he, debounce as _t, clone as Gn, some as Ie, isBoolean as Re, has as it, sortBy as Gt, every as Xt, pickBy as Yt, identity as Xn, find as Ge, findIndex as Yn, countBy as Qn, findLast as Jn, isNumber as dt, join as et, endsWith as Qt, add as Zn, subtract as er, head as tr, cloneDeep as Jt } from "lodash";
3
+ import { filter as Le, tap as Xe, merge as nr, Subject as rr } from "rxjs";
4
4
  import { map as ar, tap as or } from "rxjs/operators";
5
- import { mergeStateToData as ur, mergeStateToData2 as lr, useEffect as ue, useUpdateKey as et, useRuleState as at, convertCollection as Zt, useWatch as Ee, useState as xt, signTableMerge as cr, useResizeObserver as en, treeToMap as ft, findTreeItem as $e, jsonToStr as Xe, filterCollection as sr, getMenuTopNameMap as wt, findFirstValidMenu as tn, strToJson as mt, decimalFixed as ir, thousandDivision as dr, listToMap as fr, setReactiveValue as yt, restorePath as nn, isValidPath as rn, isPathHasParent as an, useSafeActivated as mr } from "@vue-start/hooks";
5
+ import { mergeStateToData as ur, mergeStateToData2 as lr, useEffect as ue, useUpdateKey as tt, useRuleState as ot, convertCollection as Zt, useWatch as Ee, useState as xt, signTableMerge as cr, useResizeObserver as en, treeToMap as ft, findTreeItem as $e, jsonToStr as Ye, filterCollection as sr, getMenuTopNameMap as wt, findFirstValidMenu as tn, strToJson as mt, decimalFixed as ir, thousandDivision as dr, listToMap as fr, setReactiveValue as yt, restorePath as nn, isValidPath as rn, isPathHasParent as an, useSafeActivated as mr } from "@vue-start/hooks";
6
6
  import { useRequestProvide as Ue, isDoneRequestActor as vt, isFailedRequestActor as on } from "@vue-start/request";
7
7
  import { useDispatchStore as un, useObservableRef as ln, useStoreConn as cn, createStateUse as sn, useStore as yr, shallowEqual as vr } from "@vue-start/store";
8
8
  import { useRoute as ht, RouterView as hr, useRouter as dn, parseQuery as Tt, stringifyQuery as gr } from "vue-router";
@@ -102,9 +102,9 @@ const mn = Symbol("logon-user"), to = () => be(mn), gt = {
102
102
  convertColumn: { type: Function },
103
103
  columnState: { type: Object },
104
104
  columnState2: { type: Object }
105
- }), Te = Cr(), tt = (e, t, n) => {
105
+ }), Te = Cr(), nt = (e, t, n) => {
106
106
  let r = e;
107
- return t && (r = ur(r, t, (o) => pe(o))), n && (r = lr(r, n, (o) => pe(o))), r;
107
+ return t && (r = ur(r, t, (a) => pe(a))), n && (r = lr(r, n, (a) => pe(a))), r;
108
108
  }, Mr = () => ({
109
109
  elementMap: { type: Object },
110
110
  formElementMap: { type: Object },
@@ -128,36 +128,36 @@ const mn = Symbol("logon-user"), to = () => be(mn), gt = {
128
128
  }, ao = () => {
129
129
  const { showNotify: e } = ae();
130
130
  return (t) => e(t);
131
- }, oo = N({
131
+ }, oo = O({
132
132
  props: {
133
133
  ...Mr()
134
134
  },
135
135
  setup: (e, { slots: t }) => {
136
- const n = se(e.registerStores, (d, i) => ({ ...d, [i.key]: i }), {}), r = se(e.registerActors, (d, i) => ({ ...d, [i.actor.name]: i }), {}), o = se(e.registerMetas, (d, i) => ({ ...d, [i.actorName]: i }), {}), { dispatchRequest: a } = Ue(), u = (d, i, h) => {
137
- const p = g(r, d);
138
- if (!!p)
139
- return a(p.actor, i, h);
136
+ const n = ie(e.registerStores, (d, m) => ({ ...d, [m.key]: m }), {}), r = ie(e.registerActors, (d, m) => ({ ...d, [m.actor.name]: m }), {}), a = ie(e.registerMetas, (d, m) => ({ ...d, [m.actorName]: m }), {}), { dispatchRequest: o } = Ue(), u = (d, m, p) => {
137
+ const v = g(r, d);
138
+ if (!!v)
139
+ return o(v.actor, m, p);
140
140
  };
141
- xr(o, r);
142
- const l = E(() => {
141
+ xr(a, r);
142
+ const l = C(() => e.formExtraMap), c = C(() => {
143
143
  var d;
144
144
  return (d = e.appConfig) == null ? void 0 : d.locale;
145
- }), c = E(() => e.localeConfig ? e.localeConfig : l.value === "en" ? Pr : Dt), f = E(() => (d) => g(c.value, d) || g(Dt, d));
145
+ }), i = C(() => e.localeConfig ? e.localeConfig : c.value === "en" ? Pr : Dt), f = C(() => (d) => g(i.value, d) || g(Dt, d));
146
146
  return Se(pt, {
147
147
  elementMap: e.elementMap,
148
148
  formElementMap: e.formElementMap,
149
- formExtraMap: e.formExtraMap,
149
+ formExtraMap: l,
150
150
  registerStoreMap: n,
151
151
  registerActorMap: r,
152
- registerMetaMap: o,
152
+ registerMetaMap: a,
153
153
  dispatchRequest: u,
154
154
  convertRouter: e.convertRouter,
155
155
  showMsg: e.showMsg,
156
156
  showModal: e.showModal,
157
157
  showNotify: e.showNotify,
158
158
  appConfig: e.appConfig,
159
- locale: l,
160
- localeConfig: c,
159
+ locale: c,
160
+ localeConfig: i,
161
161
  t: f
162
162
  }), () => {
163
163
  var d;
@@ -167,72 +167,72 @@ const mn = Symbol("logon-user"), to = () => be(mn), gt = {
167
167
  }), uo = (e = {}) => (t) => {
168
168
  t.provide(pt, e);
169
169
  }, yn = (e) => (t, n) => {
170
- const { requestSubject$: r } = Ue(), o = new Set($(t, (a) => ye(a) ? a : a.name));
170
+ const { requestSubject$: r } = Ue(), a = new Set($(t, (o) => ye(o) ? o : o.name));
171
171
  ue(() => {
172
- const a = r.pipe(
172
+ const o = r.pipe(
173
173
  Le(e),
174
- Ge((u) => {
175
- o.has(u.name) && n(u);
174
+ Xe((u) => {
175
+ a.has(u.name) && n(u);
176
176
  })
177
177
  ).subscribe();
178
178
  return () => {
179
- a.unsubscribe();
179
+ o.unsubscribe();
180
180
  };
181
181
  }, []);
182
182
  }, lo = yn(vt), co = yn(on), Er = (e, t, n) => {
183
- const { requestSubject$: r, dispatchRequest: o } = Ue(), a = new Set($(e, (l) => ye(l) ? l : l.name)), u = {};
183
+ const { requestSubject$: r, dispatchRequest: a } = Ue(), o = new Set($(e, (l) => ye(l) ? l : l.name)), u = {};
184
184
  ue(() => {
185
185
  const l = nr(
186
186
  r.pipe(
187
187
  Le(vt),
188
- Ge((c) => {
189
- var f, d;
190
- a.has(c.name) && ((f = t.onSuccess) == null || f.call(t, c), (d = t.onFinish) == null || d.call(t, c), u[c.name] = void 0);
188
+ Xe((c) => {
189
+ var i, f;
190
+ o.has(c.name) && ((i = t.onSuccess) == null || i.call(t, c), (f = t.onFinish) == null || f.call(t, c), u[c.name] = void 0);
191
191
  })
192
192
  ),
193
193
  r.pipe(
194
194
  Le(on),
195
- Ge((c) => {
196
- var f, d;
197
- a.has(c.name) && ((f = t.onFailed) == null || f.call(t, c), (d = t.onFinish) == null || d.call(t, c), u[c.name] = void 0);
195
+ Xe((c) => {
196
+ var i, f;
197
+ o.has(c.name) && ((i = t.onFailed) == null || i.call(t, c), (f = t.onFinish) == null || f.call(t, c), u[c.name] = void 0);
198
198
  })
199
199
  )
200
200
  ).subscribe();
201
201
  return () => {
202
- l.unsubscribe(), n && ie(u, (c) => {
203
- c && o({ ...c, stage: "CANCEL" });
202
+ l.unsubscribe(), n && se(u, (c) => {
203
+ c && a({ ...c, stage: "CANCEL" });
204
204
  });
205
205
  };
206
206
  }, []);
207
207
  }, Ir = (e, t, n) => {
208
- var o;
209
- const r = (o = e.res) == null ? void 0 : o.data;
208
+ var a;
209
+ const r = (a = e.res) == null ? void 0 : a.data;
210
210
  return t ? t(r, e) : n ? g(r, n) : r;
211
211
  }, vn = (e, t) => Y(e) ? "meta_" + e(t) : "meta_" + e, so = (e, t) => {
212
- const { registerMetaMap: n, dispatchRequest: r } = ae(), o = g(n, e);
213
- if (!o)
212
+ const { registerMetaMap: n, dispatchRequest: r } = ae(), a = g(n, e);
213
+ if (!a)
214
214
  return {};
215
- const a = vn(o.storeName || e, t || o.initParams), l = ln(cn((c) => g(c, a)));
216
- return l.value || r(e, t || o.initParams || {}), l;
215
+ const o = vn(a.storeName || e, t || a.initParams), l = ln(cn((c) => g(c, o)));
216
+ return l.value || r(e, t || a.initParams || {}), l;
217
217
  }, xr = (e, t) => {
218
- const { requestSubject$: n } = Ue(), r = un(), o = (a) => {
219
- const u = g(e, a.name), l = g(t, a.name);
218
+ const { requestSubject$: n } = Ue(), r = un(), a = (o) => {
219
+ const u = g(e, o.name), l = g(t, o.name);
220
220
  return !!(u && l && l.actor);
221
221
  };
222
222
  ue(() => {
223
- const a = n.pipe(
224
- Le(o),
223
+ const o = n.pipe(
224
+ Le(a),
225
225
  Le(vt),
226
- Ge((u) => {
226
+ Xe((u) => {
227
227
  const l = g(e, u.name);
228
228
  if (!l)
229
229
  return;
230
- const c = l.storeName || u.name, f = Ir(u, l.convertData, l.convertPath), d = vn(c, u.req);
231
- r(d, f, !1, void 0);
230
+ const c = l.storeName || u.name, i = Ir(u, l.convertData, l.convertPath), f = vn(c, u.req);
231
+ r(f, i, !1, void 0);
232
232
  })
233
233
  ).subscribe();
234
234
  return () => {
235
- a.unsubscribe();
235
+ o.unsubscribe();
236
236
  };
237
237
  }, []);
238
238
  }, H = {
@@ -255,6 +255,7 @@ const mn = Symbol("logon-user"), to = () => be(mn), gt = {
255
255
  FormKey: "Form$",
256
256
  FormItemKey: "FormItem$",
257
257
  TableKey: "Table$",
258
+ TableV2Key: "TableV2$",
258
259
  TableOperateKey: "TableOperate$",
259
260
  UploaderKey: "Uploader$",
260
261
  EmptyKey: "Empty$",
@@ -284,50 +285,50 @@ const Tr = () => ({
284
285
  items: {
285
286
  type: Array
286
287
  }
287
- }), De = N({
288
+ }), De = O({
288
289
  props: {
289
290
  ...Tr()
290
291
  },
291
292
  setup: (e) => {
292
293
  const t = te(), n = t(H.RowKey), r = t(H.ColKey);
293
294
  return () => {
294
- let o;
295
- return !n || !r ? null : s(n, e.row, wr(o = $(e.items, (a) => s(r, R({
296
- key: a.rowKey
297
- }, e.col, a.col), {
298
- default: () => [a.vNode]
299
- }))) ? o : {
300
- default: () => [o]
295
+ let a;
296
+ return !n || !r ? null : s(n, e.row, wr(a = $(e.items, (o) => s(r, L({
297
+ key: o.rowKey
298
+ }, e.col, o.col), {
299
+ default: () => [o.vNode]
300
+ }))) ? a : {
301
+ default: () => [a]
301
302
  });
302
303
  };
303
304
  }
304
305
  }), kr = (e, t, n) => {
305
306
  if (t) {
306
- const r = J(Z(t), (o) => !t[o]);
307
- return F(e, r);
307
+ const r = J(Z(t), (a) => !t[a]);
308
+ return K(e, r);
308
309
  }
309
310
  if (n) {
310
- const r = J(Z(n), (o) => !n[o](e));
311
- return F(e, r);
311
+ const r = J(Z(n), (a) => !n[a](e));
312
+ return K(e, r);
312
313
  }
313
314
  return e;
314
315
  }, hn = (e) => {
315
316
  if (!!e)
316
317
  return re(e) ? e : e && ye(e) && e.indexOf(".") > 0 ? zn(e, ".") : [e];
317
318
  }, io = (e, t, n) => !t || !n ? e : $(e, (r) => {
318
- const o = Y(n) ? n(r) : g(r, n), a = g(t, o);
319
- return !a || Wt(a) || Y(a) || !Ke(a) ? r : Hn(r, a, (u, l) => {
319
+ const a = Y(n) ? n(r) : g(r, n), o = g(t, a);
320
+ return !o || Wt(o) || Y(o) || !Ke(o) ? r : Hn(r, o, (u, l) => {
320
321
  if (re(u) || re(l))
321
322
  return l;
322
323
  });
323
324
  }), xe = (e, t) => {
324
- const n = se(
325
+ const n = ie(
325
326
  e,
326
- (r, o) => ({
327
+ (r, a) => ({
327
328
  ...r,
328
- [o]: (...a) => {
329
+ [a]: (...o) => {
329
330
  var u, l;
330
- return (l = (u = t.value) == null ? void 0 : u[o]) == null ? void 0 : l.call(u, ...a);
331
+ return (l = (u = t.value) == null ? void 0 : u[a]) == null ? void 0 : l.call(u, ...o);
331
332
  }
332
333
  }),
333
334
  {}
@@ -335,18 +336,18 @@ const Tr = () => ({
335
336
  return n.originRef = t, n;
336
337
  }, fo = (e, t, n) => {
337
338
  const r = { originRef: e, ...n };
338
- return t && ee(t) > 0 && ie(t, (o) => {
339
- r[o] = (...a) => {
339
+ return t && ee(t) > 0 && se(t, (a) => {
340
+ r[a] = (...o) => {
340
341
  var u, l;
341
- return (l = (u = e.value) == null ? void 0 : u[o]) == null ? void 0 : l.call(u, ...a);
342
+ return (l = (u = e.value) == null ? void 0 : u[a]) == null ? void 0 : l.call(u, ...o);
342
343
  };
343
344
  }), r;
344
345
  }, Ar = (e, t) => g(e, ["extra", t]) || g(e, t), ge = (e, t) => {
345
- const n = Z(e), r = `${t}-`, o = J(n, (u) => Wn(u, r)), a = ne(e, o);
346
- return _n(a, (u, l) => l.replace(r, ""));
346
+ const n = Z(e), r = `${t}-`, a = J(n, (u) => Wn(u, r)), o = ne(e, a);
347
+ return _n(o, (u, l) => l.replace(r, ""));
347
348
  }, gn = Symbol("pro-form-list"), pn = () => be(gn), bn = (e) => {
348
349
  Se(gn, e);
349
- }, Dr = N({
350
+ }, Dr = O({
350
351
  props: {
351
352
  pathList: {
352
353
  type: Array
@@ -397,28 +398,28 @@ const Tr = () => ({
397
398
  onRemove: {
398
399
  type: Function
399
400
  }
400
- }), mo = N({
401
+ }), mo = O({
401
402
  props: {
402
403
  ...Nt(),
403
- ...F(De.props, "items")
404
+ ...K(De.props, "items")
404
405
  },
405
406
  setup: (e, {
406
407
  slots: t
407
408
  }) => {
408
409
  const r = te()(H.FormItemKey), {
409
- formState: o,
410
- readonly: a,
410
+ formState: a,
411
+ readonly: o,
411
412
  elementMap: u,
412
413
  formElementMap: l
413
- } = Pn(), c = pn(), f = hn(e.name), d = c != null && c.pathList ? [...c.pathList, ...f] : f, [i, h] = et(), p = () => {
414
+ } = Pn(), c = pn(), i = hn(e.name), f = c != null && c.pathList ? [...c.pathList, ...i] : i, [d, m] = tt(), p = () => {
414
415
  var S;
415
416
  if (((S = e.onPreAdd) == null ? void 0 : S.call(e)) === !0)
416
417
  return;
417
418
  const I = () => {
418
- let T = g(o, d);
419
+ let T = g(a, f);
419
420
  re(T) || (T = []), T.push({
420
421
  [e.rowKey]: new Date().valueOf()
421
- }), he(o, d, T);
422
+ }), he(a, f, T);
422
423
  };
423
424
  if (e.onAdd) {
424
425
  e.onAdd(I);
@@ -426,15 +427,15 @@ const Tr = () => ({
426
427
  }
427
428
  I();
428
429
  }, v = (D, I) => {
429
- var K;
430
- if (((K = e.onPreRemove) == null ? void 0 : K.call(e, {
430
+ var R;
431
+ if (((R = e.onPreRemove) == null ? void 0 : R.call(e, {
431
432
  index: D,
432
433
  item: I
433
434
  })) === !0)
434
435
  return;
435
436
  const T = () => {
436
- const j = g(o, d);
437
- ee(j) <= 0 || (j.splice(D, 1), h());
437
+ const j = g(a, f);
438
+ ee(j) <= 0 || (j.splice(D, 1), m());
438
439
  };
439
440
  if (e.onRemove) {
440
441
  e.onRemove(T, {
@@ -444,21 +445,21 @@ const Tr = () => ({
444
445
  return;
445
446
  }
446
447
  T();
447
- }, m = (D, I) => {
448
+ }, y = (D, I) => {
448
449
  const S = pe(D);
449
450
  return S && t[S] ? t[S]({
450
451
  item: D,
451
- formState: o,
452
+ formState: a,
452
453
  pathList: I
453
454
  }) : Nn(u, l, D);
454
455
  }, b = (D, I) => {
455
456
  if (!l || ee(e.columns) <= 0)
456
457
  return null;
457
458
  if (!e.row)
458
- return $(e.columns, (T) => m(T, D));
459
+ return $(e.columns, (T) => y(T, D));
459
460
  const S = $(e.columns, (T) => ({
460
461
  rowKey: pe(T),
461
- vNode: m(T, D),
462
+ vNode: y(T, D),
462
463
  col: g(T, ["extra", "col"])
463
464
  }));
464
465
  return s(De, {
@@ -467,40 +468,40 @@ const Tr = () => ({
467
468
  items: S
468
469
  }, null);
469
470
  }, x = Z(Nt());
470
- return () => r ? s(r, R({
471
+ return () => r ? s(r, L({
471
472
  class: `pro-form-list ${e.inline ? "pro-form-list-inline" : ""}`,
472
473
  name: e.name
473
- }, F(e, x)), {
474
+ }, K(e, x)), {
474
475
  default: () => {
475
476
  var D, I, S;
476
- return [$(g(o, d), (T, K) => {
477
- const j = [...d, K];
477
+ return [$(g(a, f), (T, R) => {
478
+ const j = [...f, R];
478
479
  return s(Dr, {
479
- key: T[e.rowKey] + i.value,
480
+ key: T[e.rowKey] + d.value,
480
481
  pathList: j
481
482
  }, {
482
483
  default: () => {
483
- var G, oe, k, L, y, M;
484
+ var G, oe, N, A, h, E;
484
485
  return [s("div", {
485
486
  class: "pro-form-list-item"
486
487
  }, [(G = t.start) == null ? void 0 : G.call(t, {
487
- state: o,
488
- path: d,
489
- index: K
488
+ state: a,
489
+ path: f,
490
+ index: R
490
491
  }), b(j), (oe = t.default) == null ? void 0 : oe.call(t, {
491
- state: o,
492
- path: d,
493
- index: K
494
- }), !a.value && s(fe, null, [s("div", {
492
+ state: a,
493
+ path: f,
494
+ index: R
495
+ }), !o.value && s(fe, null, [s("div", {
495
496
  class: "pro-form-list-item-add",
496
497
  onClick: p
497
- }, [((k = t.itemAdd) == null ? void 0 : k.call(t)) || ((L = e.renderItemAdd) == null ? void 0 : L.call(e))]), s("div", {
498
+ }, [((N = t.itemAdd) == null ? void 0 : N.call(t)) || ((A = e.renderItemAdd) == null ? void 0 : A.call(e))]), s("div", {
498
499
  class: "pro-form-list-item-minus",
499
- onClick: () => v(K, T)
500
- }, [((y = t.itemMinus) == null ? void 0 : y.call(t)) || ((M = e.renderItemMinus) == null ? void 0 : M.call(e))])])])];
500
+ onClick: () => v(R, T)
501
+ }, [((h = t.itemMinus) == null ? void 0 : h.call(t)) || ((E = e.renderItemMinus) == null ? void 0 : E.call(e))])])])];
501
502
  }
502
503
  });
503
- }), !a.value && s("div", {
504
+ }), !o.value && s("div", {
504
505
  class: "pro-form-list-add",
505
506
  onClick: p
506
507
  }, [((D = t.add) == null ? void 0 : D.call(t)) || ((I = e.renderAdd) == null ? void 0 : I.call(e))]), (S = t.end) == null ? void 0 : S.call(t)];
@@ -550,6 +551,9 @@ const Ot = () => ({
550
551
  operate: {
551
552
  type: Object
552
553
  },
554
+ opeItems: {
555
+ type: Function
556
+ },
553
557
  submitLoading: {
554
558
  type: Boolean
555
559
  },
@@ -564,55 +568,55 @@ const Ot = () => ({
564
568
  type: Function,
565
569
  default: void 0
566
570
  }
567
- }), yo = N({
571
+ }), yo = O({
568
572
  inheritAttrs: !1,
569
573
  props: {
570
574
  ...Te,
571
575
  ...Ot(),
572
- ...F(De.props, "items")
576
+ ...K(De.props, "items")
573
577
  },
574
578
  setup: (e, {
575
579
  slots: t,
576
580
  emit: n,
577
581
  expose: r,
578
- attrs: o
582
+ attrs: a
579
583
  }) => {
580
584
  const {
581
- elementMap: a,
585
+ elementMap: o,
582
586
  formElementMap: u,
583
587
  t: l
584
- } = ae(), c = e.elementMap || a, f = e.formElementMap || u, d = e.model || ve({}), i = at(d, e.showStateRules, e.showState), h = at(d, e.readonlyStateRules, e.readonlyState), p = at(d, e.disableStateRules, e.disableState), v = E(() => e.readonly), m = E(() => {
585
- const O = tt(e.columns, e.columnState, e.columnState2);
586
- return e.convertColumn ? Zt(O, e.convertColumn) : O;
587
- }), b = Q(!1), x = Q(0), D = (...O) => {
588
- var C;
589
- ((C = e.onPreFinish) == null ? void 0 : C.call(e, ...O)) !== !0 && n("finish", ...O, {
588
+ } = ae(), c = e.elementMap || o, i = e.formElementMap || u, f = e.model || ve({}), d = ot(f, e.showStateRules, e.showState), m = ot(f, e.readonlyStateRules, e.readonlyState), p = ot(f, e.disableStateRules, e.disableState), v = C(() => e.readonly), y = C(() => {
589
+ const F = nt(e.columns, e.columnState, e.columnState2);
590
+ return e.convertColumn ? Zt(F, e.convertColumn) : F;
591
+ }), b = Q(!1), x = Q(0), D = (...F) => {
592
+ var M;
593
+ ((M = e.onPreFinish) == null ? void 0 : M.call(e, ...F)) !== !0 && n("finish", ...F, {
590
594
  userOpe: b,
591
595
  asyncNum: x
592
596
  });
593
- }, I = e.debounceSubmit, S = (typeof I == "object" ? I.wait : I) || 300, T = Nr((...O) => D(...O), S, I == null ? void 0 : I.options), K = (O) => {
594
- const V = kr(O, i, e.showStateRules);
595
- I !== void 0 ? T(V, O) : D(V, O);
597
+ }, I = e.debounceSubmit, S = (typeof I == "object" ? I.wait : I) || 300, T = Nr((...F) => D(...F), S, I == null ? void 0 : I.options), R = (F) => {
598
+ const z = kr(F, d, e.showStateRules);
599
+ I !== void 0 ? T(z, F) : D(z, F);
596
600
  }, j = Q();
597
601
  r({
598
602
  ...xe(e.formMethods || [], j),
599
603
  userOpe: b,
600
604
  asyncNum: x
601
605
  }), Or({
602
- formState: d,
603
- showState: i,
604
- readonlyState: h,
606
+ formState: f,
607
+ showState: d,
608
+ readonlyState: m,
605
609
  disableState: p,
606
610
  elementMap: c,
607
- formElementMap: f,
611
+ formElementMap: i,
608
612
  readonly: v,
609
- columns: m,
613
+ columns: y,
610
614
  formRef: j,
611
615
  userOpe: b,
612
616
  asyncNum: x,
613
617
  ...e.provideExtra
614
618
  }), bn({});
615
- const G = E(() => [{
619
+ const G = C(() => [{
616
620
  value: de.RESET,
617
621
  label: l.value("reset")
618
622
  }, {
@@ -622,83 +626,84 @@ const Ot = () => ({
622
626
  type: "primary"
623
627
  }
624
628
  }]), oe = () => {
625
- var O, V;
626
- if ((O = e.operate) != null && O.onReset) {
629
+ var F, z;
630
+ if ((F = e.operate) != null && F.onReset) {
627
631
  e.operate.onReset({
628
632
  form: j.value
629
633
  });
630
634
  return;
631
635
  }
632
- (V = j.value) == null || V.resetFields();
633
- }, k = () => {
634
- var O, V;
635
- if ((O = e.operate) != null && O.onSubmit) {
636
+ (z = j.value) == null || z.resetFields();
637
+ }, N = () => {
638
+ var F, z;
639
+ if ((F = e.operate) != null && F.onSubmit) {
636
640
  e.operate.onSubmit({
637
641
  form: j.value
638
642
  });
639
643
  return;
640
644
  }
641
- (V = j.value) == null || V.submit();
642
- }, L = () => {
643
- var O, V;
644
- (V = (O = e.operate) == null ? void 0 : O.onContinue) == null || V.call(O, {
645
+ (z = j.value) == null || z.submit();
646
+ }, A = () => {
647
+ var F, z;
648
+ (z = (F = e.operate) == null ? void 0 : F.onContinue) == null || z.call(F, {
645
649
  form: j.value
646
650
  });
647
- }, y = {
651
+ }, h = {
648
652
  [de.RESET]: oe,
649
- [de.SUBMIT]: k,
650
- [de.CONTINUE]: L
651
- }, M = E(() => {
652
- const O = e.operate, V = (O == null ? void 0 : O.items) || G.value;
653
- return $(V, (C) => !C.onClick && !g(O == null ? void 0 : O.itemState, [C.value, "onClick"]) ? {
654
- ...C,
655
- onClick: g(y, C.value)
656
- } : C);
657
- }), A = E(() => {
658
- var O;
653
+ [de.SUBMIT]: N,
654
+ [de.CONTINUE]: A
655
+ }, E = C(() => {
656
+ var M;
657
+ const F = e.operate, z = (F == null ? void 0 : F.items) || ((M = e.opeItems) == null ? void 0 : M.call(e)) || G.value;
658
+ return $(z, (q) => !q.onClick && !g(F == null ? void 0 : F.itemState, [q.value, "onClick"]) ? {
659
+ ...q,
660
+ onClick: g(h, q.value)
661
+ } : q);
662
+ }), k = C(() => {
663
+ var F;
659
664
  return {
660
665
  [de.SUBMIT]: {
661
666
  value: de.SUBMIT,
662
667
  loading: e.submitLoading
663
668
  },
664
- ...(O = e.operate) == null ? void 0 : O.itemState
669
+ ...(F = e.operate) == null ? void 0 : F.itemState
665
670
  };
666
- }), w = (O) => {
667
- const V = pe(O);
668
- return V && t[V] ? t[V](O, d) : Nn(c, f, O);
669
- }, P = E(() => {
670
- const O = J(m.value, (V) => {
671
- const C = pe(V);
672
- return !!g(i, C, !0);
671
+ }), w = (F) => {
672
+ const z = pe(F);
673
+ return z && t[z] ? t[z](F, f) : Nn(c, i, F);
674
+ }, P = C(() => {
675
+ const F = J(y.value, (z) => {
676
+ const M = pe(z);
677
+ return !!g(d, M, !0);
673
678
  });
674
- return e.row ? $(O, (V) => ({
675
- rowKey: pe(V),
676
- vNode: w(V),
677
- col: g(V, ["extra", "col"])
678
- })) : $(O, (V) => w(V));
679
- }), B = [...Z(Ot()), ...Z(Te)], q = Z(F(De.props, "items")), W = g(a, H.FormKey);
679
+ return e.row ? $(F, (z) => ({
680
+ rowKey: pe(z),
681
+ vNode: w(z),
682
+ col: g(z, ["extra", "col"])
683
+ })) : $(F, (z) => w(z));
684
+ }), B = [...Z(Ot()), ...Z(Te)], U = Z(K(De.props, "items")), W = g(o, H.FormKey);
680
685
  return () => {
681
686
  var ce, me, Pe;
682
687
  if (!W)
683
688
  return null;
684
- const O = (ce = t.start) == null ? void 0 : ce.call(t), V = (me = t.default) == null ? void 0 : me.call(t), C = (Pe = t.end) == null ? void 0 : Pe.call(t), z = [e.clsName], X = ee(P.value) <= 0 && !ct(O) && !ct(V);
685
- return X && z.push("is-empty"), s(W, R({
689
+ const F = (ce = t.start) == null ? void 0 : ce.call(t), z = (me = t.default) == null ? void 0 : me.call(t), M = (Pe = t.end) == null ? void 0 : Pe.call(t), q = [e.clsName], X = ee(P.value) <= 0 && !ct(F) && !ct(z);
690
+ return X && q.push("is-empty"), s(W, L({
686
691
  ref: j,
687
- class: z
688
- }, F(o, "onFinish"), F(e, ...B, ...q, "onFinish", "operate"), {
689
- model: d,
690
- onFinish: K
692
+ class: q
693
+ }, K(a, "onFinish"), K(e, ...B, ...U, "onFinish", "operate"), {
694
+ model: f,
695
+ onFinish: R
691
696
  }), {
692
- default: () => [O, f && ee(m.value) > 0 && s(fe, null, [e.row ? s(De, {
697
+ default: () => [F, i && ee(y.value) > 0 && s(fe, null, [e.row ? s(De, {
693
698
  row: e.row,
694
699
  col: e.col,
695
700
  items: P.value
696
- }, null) : P.value]), V, e.operate && !X && s(bt, R({
701
+ }, null) : P.value]), z, e.operate && !X && s(bt, L({
697
702
  class: `${e.clsName}-operate`
698
- }, F(e.operate, "items", "itemState", "onReset", "onSubmit", "onContinue"), {
699
- items: M.value,
700
- itemState: A.value
701
- }), null), C]
703
+ }, K(e.operate, "items", "itemState", "onReset", "onSubmit", "onContinue"), {
704
+ items: E.value,
705
+ itemState: k.value
706
+ }), null), M]
702
707
  });
703
708
  };
704
709
  }
@@ -714,10 +719,10 @@ const Ot = () => ({
714
719
  date: "\u8BF7\u9009\u62E9",
715
720
  time: "\u8BF7\u9009\u62E9"
716
721
  };
717
- let Ye;
722
+ let Qe;
718
723
  (function(e) {
719
724
  e.AUTO = "AUTO", e.MANUAL = "MANUAL";
720
- })(Ye || (Ye = {}));
725
+ })(Qe || (Qe = {}));
721
726
  const Ft = () => ({
722
727
  initEmit: {
723
728
  type: Boolean,
@@ -725,7 +730,7 @@ const Ft = () => ({
725
730
  },
726
731
  searchMode: {
727
732
  type: String,
728
- default: Ye.AUTO
733
+ default: Qe.AUTO
729
734
  },
730
735
  debounceKeys: {
731
736
  type: Array
@@ -738,7 +743,7 @@ const Ft = () => ({
738
743
  type: Number,
739
744
  default: 800
740
745
  }
741
- }), ho = N({
746
+ }), ho = O({
742
747
  props: {
743
748
  ...Ft(),
744
749
  needRules: {
@@ -750,41 +755,41 @@ const Ft = () => ({
750
755
  slots: t,
751
756
  expose: n
752
757
  }) => {
753
- const o = te()(H.ProFormKey), a = e.model || ve({}), u = new Set(e.debounceTypes), l = $(J(e.columns, (m) => {
754
- const b = Dn(m);
758
+ const a = te()(H.ProFormKey), o = e.model || ve({}), u = new Set(e.debounceTypes), l = $(J(e.columns, (y) => {
759
+ const b = Dn(y);
755
760
  return u.has(b);
756
- }), (m) => pe(m)), c = E(() => $(e.columns, (m) => ({
757
- ...m,
758
- formItemProps: F(m.formItemProps, "required")
759
- }))), f = Q(), d = e.formMethods || [];
760
- n(xe(d, f));
761
- const i = () => {
762
- var m;
763
- (m = f.value) == null || m.submit();
764
- }, h = _t(() => {
765
- i();
761
+ }), (y) => pe(y)), c = C(() => $(e.columns, (y) => ({
762
+ ...y,
763
+ formItemProps: K(y.formItemProps, "required")
764
+ }))), i = Q(), f = e.formMethods || [];
765
+ n(xe(f, i));
766
+ const d = () => {
767
+ var y;
768
+ (y = i.value) == null || y.submit();
769
+ }, m = _t(() => {
770
+ d();
766
771
  }, e.debounceTime);
767
772
  ue(() => {
768
- e.initEmit && i();
773
+ e.initEmit && d();
769
774
  }, []);
770
- const p = (m, b, x) => Ie(x, (D) => g(m, D) !== g(b, D));
771
- Ee((m, b) => {
772
- if (e.searchMode !== Ye.AUTO)
775
+ const p = (y, b, x) => Ie(x, (D) => g(y, D) !== g(b, D));
776
+ Ee((y, b) => {
777
+ if (e.searchMode !== Qe.AUTO)
773
778
  return;
774
779
  const x = ee(e.debounceKeys) > 0 ? e.debounceKeys : l;
775
- if (ee(x) > 0 && p(m, b, x)) {
776
- h();
780
+ if (ee(x) > 0 && p(y, b, x)) {
781
+ m();
777
782
  return;
778
783
  }
779
- i();
780
- }, () => Gn(a));
784
+ d();
785
+ }, () => Gn(o));
781
786
  const v = Z(Ft());
782
- return () => o ? s(o, R({
783
- ref: f,
787
+ return () => a ? s(a, L({
788
+ ref: i,
784
789
  class: "pro-search-form"
785
- }, F(e, v, "columns"), {
790
+ }, K(e, v, "columns"), {
786
791
  columns: c.value,
787
- model: a
792
+ model: o
788
793
  }), t) : null;
789
794
  }
790
795
  }), Fr = () => ({
@@ -796,7 +801,7 @@ const Ft = () => ({
796
801
  class: "pro-tip-dom"
797
802
  }, [st("?")])
798
803
  }
799
- }), Kr = N({
804
+ }), Kr = O({
800
805
  props: {
801
806
  ...Fr()
802
807
  },
@@ -804,10 +809,10 @@ const Ft = () => ({
804
809
  slots: t
805
810
  }) => {
806
811
  const r = te()(H.TooltipKey);
807
- return () => s(r, F(e, "renderDom"), {
812
+ return () => s(r, K(e, "renderDom"), {
808
813
  default: () => {
809
- var o, a;
810
- return [((o = t.default) == null ? void 0 : o.call(t)) || ((a = e.renderDom) == null ? void 0 : a.call(e))];
814
+ var a, o;
815
+ return [((a = t.default) == null ? void 0 : a.call(t)) || ((o = e.renderDom) == null ? void 0 : o.call(e))];
811
816
  },
812
817
  content: () => e.content,
813
818
  title: () => e.title,
@@ -837,67 +842,73 @@ const Ft = () => ({
837
842
  }), go = (e, t) => ({
838
843
  InputComp: n,
839
844
  valueType: r,
840
- name: o
841
- }) => N({
842
- name: o,
845
+ name: a
846
+ }) => O({
847
+ name: a,
843
848
  props: {
844
849
  ...e.props,
845
850
  ...Kt()
846
851
  },
847
- setup: (a, {
852
+ setup: (o, {
848
853
  slots: u
849
854
  }) => {
850
855
  const {
851
856
  formExtraMap: l,
852
857
  elementMap: c,
853
- t: f
858
+ t: i
854
859
  } = ae(), {
855
- formState: d,
856
- readonlyState: i,
857
- disableState: h,
860
+ formState: f,
861
+ readonlyState: d,
862
+ disableState: m,
858
863
  readonly: p,
859
864
  userOpe: v
860
- } = Pn(), m = pn(), b = E(() => Re(a.readonly) ? a.readonly : Re(i[a.name]) ? i[a.name] : p.value), x = () => `${g(l == null ? void 0 : l.rulePrefixMap, r) || f.value("pleaseEnter")}${a.label || ""}`, D = E(() => l != null && l.rulePrefixMap ? a.required === !0 && !a.rules ? [{
861
- required: !0,
862
- message: x()
863
- }] : a.rules ? $(a.rules, (k) => (k.required && !k.message && (k.message = x()), k)) : a.rules : a.rules), I = hn(a.name), S = m != null && m.pathList ? [...m.pathList, ...I] : I, T = (k) => {
864
- v.value = !0, he(d, S, k);
865
- }, K = Z(Kt()), j = () => {
866
- const k = g(d, S);
865
+ } = Pn(), y = pn(), b = C(() => Re(o.readonly) ? o.readonly : Re(d[o.name]) ? d[o.name] : p.value), x = () => {
866
+ var A;
867
+ return `${g((A = l.value) == null ? void 0 : A.rulePrefixMap, r) || i.value("pleaseEnter")}${o.label || ""}`;
868
+ }, D = C(() => {
869
+ var N;
870
+ return (N = l.value) != null && N.rulePrefixMap ? o.required === !0 && !o.rules ? [{
871
+ required: !0,
872
+ message: x()
873
+ }] : o.rules ? $(o.rules, (A) => (A.required && !A.message && (A.message = x()), A)) : o.rules : o.rules;
874
+ }), I = hn(o.name), S = y != null && y.pathList ? [...y.pathList, ...I] : I, T = (N) => {
875
+ v.value = !0, he(f, S, N);
876
+ }, R = Z(Kt()), j = () => {
877
+ const N = g(f, S);
867
878
  if (u.renderShow)
868
879
  return u.renderShow({
869
- value: k,
870
- record: d,
880
+ value: N,
881
+ record: f,
871
882
  path: S
872
883
  });
873
- const L = g(c, r);
874
- return L ? s(L, R({
875
- value: k
876
- }, a.fieldProps, {
877
- showProps: a.showProps
878
- }), u) : s("span", null, [k]);
884
+ const A = g(c, r);
885
+ return A ? s(A, L({
886
+ value: N
887
+ }, o.fieldProps, {
888
+ showProps: o.showProps
889
+ }), u) : s("span", null, [N]);
879
890
  }, G = () => {
880
- const k = g(d, S), L = g(h, S);
891
+ const N = g(f, S), A = g(m, S);
881
892
  return u.renderInput ? u.renderInput({
882
- value: k,
893
+ value: N,
883
894
  setValue: T,
884
- disabled: L,
885
- record: d,
895
+ disabled: A,
896
+ record: f,
886
897
  path: S
887
- }) : s(n, R(t(k, T, L), a.fieldProps), u);
888
- }, oe = () => s(fe, null, [a.label, a.tip && s(Kr, R({
889
- content: a.tip,
890
- title: a.tip
891
- }, a.tipProps), null)]);
892
- return () => s(e, R({
898
+ }) : s(n, L(t(N, T, A), o.fieldProps), u);
899
+ }, oe = () => s(fe, null, [o.label, o.tip && s(Kr, L({
900
+ content: o.tip,
901
+ title: o.tip
902
+ }, o.tipProps), null)]);
903
+ return () => s(e, L({
893
904
  class: "pro-form-item"
894
- }, F(a, ...K, "name", "rules"), {
905
+ }, K(o, ...R, "name", "rules"), {
895
906
  name: S,
896
907
  rules: D.value
897
908
  }), {
898
909
  default: () => [b.value ? j() : G()],
899
- label: a.label || a.tip ? oe : void 0,
900
- ...a.slots
910
+ label: o.label || o.tip ? oe : void 0,
911
+ ...o.slots
901
912
  });
902
913
  }
903
914
  }), Cn = sn("access", void 0, !0), Rr = () => {
@@ -910,19 +921,19 @@ const Ft = () => ({
910
921
  return [e, t, () => {
911
922
  t(void 0);
912
923
  }];
913
- }, Mn = Symbol("logon-user"), Lr = () => be(Mn), bo = N((e, { slots: t }) => {
914
- const [n, r] = xt(), [o, a] = xt();
915
- return Se(Mn, { user: n, setUser: r, per: o, setPer: a, opts: {} }), () => {
924
+ }, Mn = Symbol("logon-user"), Lr = () => be(Mn), bo = O((e, { slots: t }) => {
925
+ const [n, r] = xt(), [a, o] = xt();
926
+ return Se(Mn, { user: n, setUser: r, per: a, setPer: o, opts: {} }), () => {
916
927
  var l;
917
928
  return (l = t.default) == null ? void 0 : l.call(t);
918
929
  };
919
- }), So = N((e, { slots: t, emit: n }) => {
920
- const { access: r } = Rr(), o = E(() => r && r.token);
930
+ }), So = O((e, { slots: t, emit: n }) => {
931
+ const { access: r } = Rr(), a = C(() => r && r.token);
921
932
  return ue(() => {
922
- o.value || n("toLogin");
923
- }, o), () => {
924
- var a;
925
- return o.value ? (a = t.default) == null ? void 0 : a.call(t) : null;
933
+ a.value || n("toLogin");
934
+ }, a), () => {
935
+ var o;
936
+ return a.value ? (o = t.default) == null ? void 0 : o.call(t) : null;
926
937
  };
927
938
  }), Po = {
928
939
  Add: "add",
@@ -933,12 +944,12 @@ const Ft = () => ({
933
944
  return (n, r) => {
934
945
  if (!n)
935
946
  return !1;
936
- let o = n;
947
+ let a = n;
937
948
  if (r != null && r.suffix) {
938
- const a = t.name ? t.name.toString() : "", u = (r == null ? void 0 : r.splitStr) || "_";
939
- o = re(o) ? $(o, (l) => `${a}${u}${l}`) : `${a}${u}${o}`;
949
+ const o = t.name ? t.name.toString() : "", u = (r == null ? void 0 : r.splitStr) || "_";
950
+ a = re(a) ? $(a, (l) => `${o}${u}${l}`) : `${o}${u}${a}`;
940
951
  }
941
- return $r(e.buttonMap, o);
952
+ return $r(e.buttonMap, a);
942
953
  };
943
954
  }, In = () => {
944
955
  const e = En();
@@ -947,16 +958,16 @@ const Ft = () => ({
947
958
  suffix: { type: [String, Array] },
948
959
  value: { type: [String, Array] },
949
960
  splitStr: { type: String }
950
- }), Co = N({
961
+ }), Co = O({
951
962
  inheritAttrs: !1,
952
963
  props: {
953
964
  ...jr()
954
965
  },
955
966
  setup: (e, { slots: t }) => {
956
- const n = En(), r = E(() => e.value ? n(e.value) : e.suffix ? n(e.suffix, { suffix: !0, splitStr: e.splitStr }) : !1);
967
+ const n = En(), r = C(() => e.value ? n(e.value) : e.suffix ? n(e.suffix, { suffix: !0, splitStr: e.splitStr }) : !1);
957
968
  return () => {
958
- var o;
959
- return r.value ? (o = t.default) == null ? void 0 : o.call(t) : null;
969
+ var a;
970
+ return r.value ? (a = t.default) == null ? void 0 : a.call(t) : null;
960
971
  };
961
972
  }
962
973
  });
@@ -981,43 +992,43 @@ const qr = () => ({
981
992
  splitStr: {
982
993
  type: String
983
994
  }
984
- }), bt = N({
995
+ }), bt = O({
985
996
  props: {
986
997
  ...qr()
987
998
  },
988
999
  setup: (e, {
989
1000
  slots: t
990
1001
  }) => {
991
- const n = In(), r = E(() => {
992
- const c = J(e.items, (d) => n(d.per, d.perSuffix, e.splitStr) ? Y(d.show) ? d.show() : Re(d.show) ? d.show : !0 : !1), f = $(c, (d) => it(e.itemState, d.value) ? {
993
- ...d,
994
- ...g(e.itemState, d.value)
995
- } : d);
996
- return Gt(f, (d) => d.sort);
997
- }), o = (c) => {
998
- var f;
999
- (f = c.onClick) == null || f.call(c, c);
1000
- }, a = te(), u = e.elementKey ? a(e.elementKey) : void 0, l = a(H.TooltipKey);
1002
+ const n = In(), r = C(() => {
1003
+ const c = J(e.items, (f) => n(f.per, f.perSuffix, e.splitStr) ? Y(f.show) ? f.show() : Re(f.show) ? f.show : !0 : !1), i = $(c, (f) => it(e.itemState, f.value) ? {
1004
+ ...f,
1005
+ ...g(e.itemState, f.value)
1006
+ } : f);
1007
+ return Gt(i, (f) => f.sort);
1008
+ }), a = (c) => {
1009
+ var i;
1010
+ (i = c.onClick) == null || i.call(c, c);
1011
+ }, o = te(), u = e.elementKey ? o(e.elementKey) : void 0, l = o(H.TooltipKey);
1001
1012
  return () => s("div", {
1002
1013
  class: e.clsName
1003
1014
  }, [$(r.value, (c) => {
1004
- const f = Y(c.disabled) ? c.disabled() : c.disabled, d = Y(c.loading) ? c.loading() : c.loading, i = Y(c.label) ? c.label() : c.label, h = Y(c.extraProps) ? c.extraProps() : c.extraProps, p = {
1005
- ...F(c, "show", "disabled", "element"),
1006
- disabled: f
1015
+ const i = Y(c.disabled) ? c.disabled() : c.disabled, f = Y(c.loading) ? c.loading() : c.loading, d = Y(c.label) ? c.label() : c.label, m = Y(c.extraProps) ? c.extraProps() : c.extraProps, p = {
1016
+ ...K(c, "show", "disabled", "element"),
1017
+ disabled: i
1007
1018
  };
1008
1019
  if (c.element && Y(c.element))
1009
1020
  return c.element(p);
1010
1021
  if (t[c.value])
1011
1022
  return t[c.value](p);
1012
1023
  if (u) {
1013
- const v = s(u, R({
1014
- disabled: f,
1015
- loading: d,
1016
- onClick: () => o(c)
1017
- }, h), Br(i) ? i : {
1018
- default: () => [i]
1024
+ const v = s(u, L({
1025
+ disabled: i,
1026
+ loading: f,
1027
+ onClick: () => a(c)
1028
+ }, m), Br(d) ? d : {
1029
+ default: () => [d]
1019
1030
  });
1020
- return c.tip && l ? s(l, R({
1031
+ return c.tip && l ? s(l, L({
1021
1032
  placement: "top"
1022
1033
  }, c.tipProps), {
1023
1034
  default: () => [v],
@@ -1026,8 +1037,8 @@ const qr = () => ({
1026
1037
  }
1027
1038
  return s("div", {
1028
1039
  class: `${e.clsName}-item`,
1029
- onClick: () => o(c)
1030
- }, [i]);
1040
+ onClick: () => a(c)
1041
+ }, [d]);
1031
1042
  })]);
1032
1043
  }
1033
1044
  }), Ur = () => ({
@@ -1056,7 +1067,7 @@ const qr = () => ({
1056
1067
  resetTitle: {
1057
1068
  type: String
1058
1069
  }
1059
- }), Vr = N({
1070
+ }), Vr = O({
1060
1071
  props: {
1061
1072
  ...Ur()
1062
1073
  },
@@ -1065,58 +1076,58 @@ const qr = () => ({
1065
1076
  }) => {
1066
1077
  const {
1067
1078
  t: n
1068
- } = ae(), r = te(), o = r(H.PopoverKey), a = r(H.CheckboxKey), {
1079
+ } = ae(), r = te(), a = r(H.PopoverKey), o = r(H.CheckboxKey), {
1069
1080
  originColumns: u,
1070
1081
  selectIdsRef: l
1071
- } = zr(), [c, f] = et();
1072
- let d = {};
1073
- const i = (S) => {
1074
- d[S] = !1;
1075
- }, h = () => {
1076
- ie(l.value, (S) => {
1077
- d[S] = !0;
1082
+ } = zr(), [c, i] = tt();
1083
+ let f = {};
1084
+ const d = (S) => {
1085
+ f[S] = !1;
1086
+ }, m = () => {
1087
+ se(l.value, (S) => {
1088
+ f[S] = !0;
1078
1089
  });
1079
- }, p = E(() => se(l.value, (S, T) => ({
1090
+ }, p = C(() => ie(l.value, (S, T) => ({
1080
1091
  ...S,
1081
1092
  [T]: !0
1082
1093
  }), {})), v = (S) => Ar(S, e.signName);
1083
1094
  ue(() => {
1084
1095
  l.value = $(J(u.value, (S) => {
1085
1096
  var T;
1086
- return e.useSelectedStatus && it(d, S.dataIndex) ? d[S.dataIndex] : ((T = v(S)) == null ? void 0 : T.initShow) !== !1;
1097
+ return e.useSelectedStatus && it(f, S.dataIndex) ? f[S.dataIndex] : ((T = v(S)) == null ? void 0 : T.initShow) !== !1;
1087
1098
  }), (S) => S.dataIndex);
1088
1099
  }, u), Ee(() => {
1089
1100
  var S;
1090
- f(), h(), (S = e.onColumnSelectChange) == null || S.call(e, l.value);
1101
+ i(), m(), (S = e.onColumnSelectChange) == null || S.call(e, l.value);
1091
1102
  }, l);
1092
- const m = E(() => {
1093
- const S = Xt(u.value, (K) => {
1103
+ const y = C(() => {
1104
+ const S = Xt(u.value, (R) => {
1094
1105
  var j;
1095
- return (j = v(K)) != null && j.disabled ? !0 : g(p.value, K.dataIndex);
1096
- }), T = Ie(u.value, (K) => {
1106
+ return (j = v(R)) != null && j.disabled ? !0 : g(p.value, R.dataIndex);
1107
+ }), T = Ie(u.value, (R) => {
1097
1108
  var j;
1098
- return (j = v(K)) != null && j.disabled ? !0 : g(p.value, K.dataIndex);
1109
+ return (j = v(R)) != null && j.disabled ? !0 : g(p.value, R.dataIndex);
1099
1110
  });
1100
1111
  return {
1101
1112
  checked: S,
1102
1113
  indeterminate: S ? !1 : T
1103
1114
  };
1104
1115
  }), b = (S) => {
1105
- var K;
1106
- (Ke(S) ? (K = S.target) == null ? void 0 : K.checked : S) ? l.value = $(u.value, (j) => j.dataIndex) : l.value = $(J(u.value, (j) => {
1116
+ var R;
1117
+ (Ke(S) ? (R = S.target) == null ? void 0 : R.checked : S) ? l.value = $(u.value, (j) => j.dataIndex) : l.value = $(J(u.value, (j) => {
1107
1118
  var G;
1108
- return (G = v(j)) != null && G.disabled ? !0 : (i(j.dataIndex), !1);
1119
+ return (G = v(j)) != null && G.disabled ? !0 : (d(j.dataIndex), !1);
1109
1120
  }), (j) => j.dataIndex);
1110
1121
  }, x = () => {
1111
1122
  l.value = $(J(u.value, (S) => {
1112
1123
  var T;
1113
- return ((T = v(S)) == null ? void 0 : T.initShow) === !1 ? (i(S.dataIndex), !1) : !0;
1124
+ return ((T = v(S)) == null ? void 0 : T.initShow) === !1 ? (d(S.dataIndex), !1) : !0;
1114
1125
  }), (S) => S.dataIndex);
1115
1126
  }, D = (S, T) => {
1116
1127
  var j;
1117
- (Ke(T) ? (j = T.target) == null ? void 0 : j.checked : T) ? l.value = [...l.value, S.dataIndex] : l.value = J(l.value, (G) => S.dataIndex === G ? (i(S.dataIndex), !1) : !0);
1128
+ (Ke(T) ? (j = T.target) == null ? void 0 : j.checked : T) ? l.value = [...l.value, S.dataIndex] : l.value = J(l.value, (G) => S.dataIndex === G ? (d(S.dataIndex), !1) : !0);
1118
1129
  }, I = () => n.value("columnSettings");
1119
- return () => o ? s(o, R({
1130
+ return () => a ? s(a, L({
1120
1131
  trigger: "click"
1121
1132
  }, e.popoverProps), {
1122
1133
  default: () => {
@@ -1127,10 +1138,10 @@ const qr = () => ({
1127
1138
  class: `${e.clsName}`
1128
1139
  }, [s("div", {
1129
1140
  class: `${e.clsName}-header`
1130
- }, [s(a, {
1141
+ }, [s(o, {
1131
1142
  key: c.value,
1132
- checked: m.value.checked,
1133
- indeterminate: m.value.indeterminate,
1143
+ checked: y.value.checked,
1144
+ indeterminate: y.value.indeterminate,
1134
1145
  onChange: b
1135
1146
  }, {
1136
1147
  default: () => [e.allTitle || n.value("columnDisplay")]
@@ -1140,9 +1151,9 @@ const qr = () => ({
1140
1151
  key: c.value,
1141
1152
  class: `${e.clsName}-list`
1142
1153
  }, [$(u.value, (S) => {
1143
- const T = v(S), K = g(p.value, S.dataIndex, !1);
1144
- return s(a, {
1145
- checked: K,
1154
+ const T = v(S), R = g(p.value, S.dataIndex, !1);
1155
+ return s(o, {
1156
+ checked: R,
1146
1157
  disabled: T == null ? void 0 : T.disabled,
1147
1158
  onChange: (j) => {
1148
1159
  D(S, j);
@@ -1151,7 +1162,7 @@ const qr = () => ({
1151
1162
  default: () => [S.title]
1152
1163
  });
1153
1164
  })])]),
1154
- ...F(t, "default")
1165
+ ...K(t, "default")
1155
1166
  }) : null;
1156
1167
  }
1157
1168
  }), xn = Symbol("pro-table"), zr = () => be(xn), Hr = (e) => {
@@ -1196,8 +1207,11 @@ const qr = () => ({
1196
1207
  },
1197
1208
  dataSource: {
1198
1209
  type: Array
1210
+ },
1211
+ virtual: {
1212
+ type: Boolean
1199
1213
  }
1200
- }), Mo = N({
1214
+ }), Mo = O({
1201
1215
  inheritAttrs: !1,
1202
1216
  props: {
1203
1217
  ...Te,
@@ -1209,123 +1223,123 @@ const qr = () => ({
1209
1223
  attrs: r
1210
1224
  }) => {
1211
1225
  const {
1212
- elementMap: o,
1213
- t: a
1214
- } = ae(), u = e.elementMap || o, {
1226
+ elementMap: a,
1227
+ t: o
1228
+ } = ae(), u = e.elementMap || a, {
1215
1229
  router: l
1216
- } = Ce(), c = g(o, H.TableKey), f = () => ({
1217
- title: a.value("serialNumber"),
1230
+ } = Ce(), c = e.virtual ? g(a, H.TableV2Key) || g(a, H.TableKey) : g(a, H.TableKey), i = () => ({
1231
+ title: o.value("serialNumber"),
1218
1232
  dataIndex: "serialNumber",
1219
1233
  width: 80,
1220
1234
  ...e.column,
1221
1235
  ...Re(e.serialNumber) ? void 0 : e.serialNumber,
1222
1236
  customRender: ({
1223
- index: k
1237
+ index: N
1224
1238
  }) => {
1225
- var L, y;
1226
- return ((L = e.paginationState) == null ? void 0 : L.page) && ((y = e.paginationState) == null ? void 0 : y.pageSize) ? e.paginationState.pageSize * (e.paginationState.page - 1) + k + 1 : k + 1;
1239
+ var A, h;
1240
+ return ((A = e.paginationState) == null ? void 0 : A.page) && ((h = e.paginationState) == null ? void 0 : h.pageSize) ? e.paginationState.pageSize * (e.paginationState.page - 1) + N + 1 : N + 1;
1227
1241
  }
1228
- }), d = (k, L) => {
1229
- var M;
1230
- if (e.operateItemClickMap && e.operateItemClickMap[L.value]) {
1231
- e.operateItemClickMap[L.value](k, L);
1242
+ }), f = (N, A) => {
1243
+ var E;
1244
+ if (e.operateItemClickMap && e.operateItemClickMap[A.value]) {
1245
+ e.operateItemClickMap[A.value](N, A);
1232
1246
  return;
1233
1247
  }
1234
- const y = L.routeOpts;
1235
- if (y) {
1236
- Y(y) ? l.push(y(k)) : l.push({
1237
- name: y.name,
1238
- query: ne(k, y.query)
1248
+ const h = A.routeOpts;
1249
+ if (h) {
1250
+ Y(h) ? l.push(h(N)) : l.push({
1251
+ name: h.name,
1252
+ query: ne(N, h.query)
1239
1253
  });
1240
1254
  return;
1241
1255
  }
1242
- (M = L.onClick) == null || M.call(L, k);
1243
- }, i = ge(t, "operate"), h = () => {
1244
- const k = e.operate, L = $(k.items, (y) => ({
1245
- ...g(e.operateItemState, y.value),
1246
- ...y,
1247
- ...g(k.itemState, y.value)
1256
+ (E = A.onClick) == null || E.call(A, N);
1257
+ }, d = ge(t, "operate"), m = () => {
1258
+ const N = e.operate, A = $(N.items, (h) => ({
1259
+ ...g(e.operateItemState, h.value),
1260
+ ...h,
1261
+ ...g(N.itemState, h.value)
1248
1262
  }));
1249
1263
  return {
1250
1264
  ...e.column,
1251
- title: a.value("operate"),
1265
+ title: o.value("operate"),
1252
1266
  dataIndex: "operate",
1253
1267
  fixed: "right",
1254
- ...k.column,
1268
+ ...N.column,
1255
1269
  customRender: ({
1256
- record: y
1270
+ record: h
1257
1271
  }) => {
1258
- const M = $(L, (w) => ({
1272
+ const E = $(A, (w) => ({
1259
1273
  ...w,
1260
- show: Y(w.show) ? w.show(y) : w.show,
1261
- disabled: Y(w.disabled) ? w.disabled(y) : w.disabled,
1262
- loading: Y(w.loading) ? w.loading(y) : w.loading,
1263
- extraProps: Y(w.extraProps) ? w.extraProps(y) : w.extraProps,
1264
- element: Y(w.element) ? (P) => w.element(y, P) : w.element,
1265
- onClick: () => d(y, w),
1266
- tip: Y(w.tip) ? w.tip(y) : w.tip,
1267
- tipProps: Y(w.tipProps) ? w.tipProps(y) : w.tipProps
1268
- })), A = se(Z(i), (w, P) => ({
1274
+ show: Y(w.show) ? w.show(h) : w.show,
1275
+ disabled: Y(w.disabled) ? w.disabled(h) : w.disabled,
1276
+ loading: Y(w.loading) ? w.loading(h) : w.loading,
1277
+ extraProps: Y(w.extraProps) ? w.extraProps(h) : w.extraProps,
1278
+ element: Y(w.element) ? (P) => w.element(h, P) : w.element,
1279
+ onClick: () => f(h, w),
1280
+ tip: Y(w.tip) ? w.tip(h) : w.tip,
1281
+ tipProps: Y(w.tipProps) ? w.tipProps(h) : w.tipProps
1282
+ })), k = ie(Z(d), (w, P) => ({
1269
1283
  ...w,
1270
1284
  [P]: (B) => {
1271
- var q;
1272
- return (q = i[P]) == null ? void 0 : q.call(i, y, B);
1285
+ var U;
1286
+ return (U = d[P]) == null ? void 0 : U.call(d, h, B);
1273
1287
  }
1274
1288
  }), {});
1275
1289
  return s(bt, {
1276
1290
  class: `${e.clsName}-operate`,
1277
- items: M,
1278
- elementKey: k.elementKey || H.TableOperateKey
1279
- }, A);
1291
+ items: E,
1292
+ elementKey: N.elementKey || H.TableOperateKey
1293
+ }, k);
1280
1294
  }
1281
1295
  };
1282
- }, p = Q([]), v = E(() => {
1283
- var k;
1284
- return !!((k = e.toolbar) != null && k.columnSetting);
1285
- }), m = Bn(e, "columns"), b = E(() => {
1296
+ }, p = Q([]), v = C(() => {
1297
+ var N;
1298
+ return !!((N = e.toolbar) != null && N.columnSetting);
1299
+ }), y = Bn(e, "columns"), b = C(() => {
1286
1300
  if (!v.value)
1287
1301
  return e.columns;
1288
- const k = se(p.value, (L, y) => ({
1289
- ...L,
1290
- [y]: !0
1302
+ const N = ie(p.value, (A, h) => ({
1303
+ ...A,
1304
+ [h]: !0
1291
1305
  }), {});
1292
- return J(e.columns, (L) => g(k, L.dataIndex));
1293
- }), x = (k) => $(k, (L) => {
1294
- const y = {
1306
+ return J(e.columns, (A) => g(N, A.dataIndex));
1307
+ }), x = (N) => $(N, (A) => {
1308
+ const h = {
1295
1309
  ...e.column,
1296
- ...L
1297
- }, M = e.convertColumn ? e.convertColumn(y) : y;
1298
- return L.children && ee(L.children) > 0 ? (M.children = x(L.children), M) : (L.customRender || (M.customRender = ({
1299
- value: A
1300
- }) => typeof A > "u" || A === null || A === "" ? e.columnEmptyText : Pt(u, L, {
1301
- value: A
1310
+ ...A
1311
+ }, E = e.convertColumn ? e.convertColumn(h) : h;
1312
+ return A.children && ee(A.children) > 0 ? (E.children = x(A.children), E) : (A.customRender || (E.customRender = ({
1313
+ value: k
1314
+ }) => typeof k > "u" || k === null || k === "" ? e.columnEmptyText : Pt(u, A, {
1315
+ value: k
1302
1316
  }, {
1303
1317
  render: "tableRender"
1304
- }) || A), M);
1305
- }), D = E(() => {
1306
- const k = tt(b.value, e.columnState, e.columnState2), L = x(k);
1307
- return e.serialNumber && L.unshift(f()), e.operate && e.operate.items && Ie(e.operate.items, (y) => y.show) && L.push(h()), L;
1308
- }), I = E(() => {
1309
- var L, y;
1310
- const k = e.dataSource;
1311
- return k && (((L = e.mergeOpts) == null ? void 0 : L.rowNames) || ((y = e.mergeOpts) == null ? void 0 : y.colNames)) && cr(k, e.mergeOpts), k;
1318
+ }) || k), E);
1319
+ }), D = C(() => {
1320
+ const N = nt(b.value, e.columnState, e.columnState2), A = x(N);
1321
+ return e.serialNumber && A.unshift(i()), e.operate && e.operate.items && Ie(e.operate.items, (h) => h.show) && A.push(m()), A;
1322
+ }), I = C(() => {
1323
+ var A, h;
1324
+ const N = e.dataSource;
1325
+ return N && (((A = e.mergeOpts) == null ? void 0 : A.rowNames) || ((h = e.mergeOpts) == null ? void 0 : h.colNames)) && cr(N, e.mergeOpts), N;
1312
1326
  }), S = Q();
1313
1327
  Hr({
1314
1328
  columns: D,
1315
- originColumns: m,
1329
+ originColumns: y,
1316
1330
  selectIdsRef: p,
1317
1331
  tableRef: S,
1318
1332
  toolbar: e.toolbar,
1319
1333
  ...e.provideExtra
1320
1334
  }), n(xe(e.tableMethods || [], S));
1321
- const T = Q(), K = Q(0), j = Q(0);
1322
- en(T, (k) => {
1323
- const L = g(k, [0, "contentRect"]);
1324
- K.value = L.height, qn(() => {
1325
- const y = window.getComputedStyle(T.value);
1326
- if (y) {
1327
- const M = parseFloat(y.marginTop) || 0, A = parseFloat(y.marginBottom) || 0;
1328
- j.value = K.value + M + A;
1335
+ const T = Q(), R = Q(0), j = Q(0);
1336
+ en(T, (N) => {
1337
+ const A = g(N, [0, "contentRect"]);
1338
+ R.value = A.height, qn(() => {
1339
+ const h = window.getComputedStyle(T.value);
1340
+ if (h) {
1341
+ const E = parseFloat(h.marginTop) || 0, k = parseFloat(h.marginBottom) || 0;
1342
+ j.value = R.value + E + k;
1329
1343
  }
1330
1344
  });
1331
1345
  });
@@ -1334,21 +1348,21 @@ const qr = () => ({
1334
1348
  var w, P, B;
1335
1349
  if (!c)
1336
1350
  return null;
1337
- const k = v.value ? s(Vr, (w = e.toolbar) == null ? void 0 : w.columnSetting, oe) : null, L = (P = t.toolbar) == null ? void 0 : P.call(t), y = (B = t.toolbarExtra) == null ? void 0 : B.call(t, [k]), M = [e.clsName];
1338
- let A = "";
1339
- return K.value > 0 && (M.push("has-header"), A = `${e.clsName}-toolbar-valid`), s("div", R({
1340
- class: M,
1351
+ const N = v.value ? s(Vr, (w = e.toolbar) == null ? void 0 : w.columnSetting, oe) : null, A = (P = t.toolbar) == null ? void 0 : P.call(t), h = (B = t.toolbarExtra) == null ? void 0 : B.call(t, [N]), E = [e.clsName];
1352
+ let k = "";
1353
+ return R.value > 0 && (E.push("has-header"), k = `${e.clsName}-toolbar-valid`), s("div", L({
1354
+ class: E,
1341
1355
  style: `--pro-table-toolbar-hei: ${j.value}px`
1342
1356
  }, ne(r, "class")), [s("div", {
1343
1357
  ref: T,
1344
- class: `${e.clsName}-toolbar ${A}`
1358
+ class: `${e.clsName}-toolbar ${k}`
1345
1359
  }, [s("div", {
1346
1360
  class: `${e.clsName}-toolbar-start`
1347
- }, [L]), s("div", {
1361
+ }, [A]), s("div", {
1348
1362
  class: `${e.clsName}-toolbar-extra`
1349
- }, [y || k])]), s(c, R({
1363
+ }, [h || N])]), s(c, L({
1350
1364
  ref: S
1351
- }, F(r, "class"), F(e, G), {
1365
+ }, K(r, "class"), K(e, G), {
1352
1366
  mergeOpts: e.mergeOpts,
1353
1367
  dataSource: I.value,
1354
1368
  columns: D.value
@@ -1364,7 +1378,7 @@ const qr = () => ({
1364
1378
  type: Boolean,
1365
1379
  default: !0
1366
1380
  }
1367
- }), _r = N({
1381
+ }), _r = O({
1368
1382
  props: {
1369
1383
  ...Wr()
1370
1384
  },
@@ -1373,47 +1387,47 @@ const qr = () => ({
1373
1387
  menus: t,
1374
1388
  repeatRouteMap: n,
1375
1389
  tabs: r,
1376
- refreshRef: o,
1377
- showTabs: a,
1390
+ refreshRef: a,
1391
+ showTabs: o,
1378
1392
  convertName: u,
1379
1393
  convertValue: l
1380
1394
  } = ke(), {
1381
1395
  router: c,
1382
- route: f
1383
- } = Ce(), d = E(() => {
1384
- const v = ft(t.value, (m) => m.keep ? ee(m.children) > 0 ? Xt(m.children, (b) => b.hide) : !0 : !1);
1396
+ route: i
1397
+ } = Ce(), f = C(() => {
1398
+ const v = ft(t.value, (y) => y.keep ? ee(y.children) > 0 ? Xt(y.children, (b) => b.hide) : !0 : !1);
1385
1399
  return Yt(v, Xn);
1386
- }), i = E(() => {
1387
- const v = Z(d.value);
1388
- if (!a.value) {
1400
+ }), d = C(() => {
1401
+ const v = Z(f.value);
1402
+ if (!o.value) {
1389
1403
  const {
1390
1404
  parentList: x
1391
- } = $e(t.value, (I) => I.value === u(f), void 0, []), D = J(x, (I) => {
1405
+ } = $e(t.value, (I) => I.value === u(i), void 0, []), D = J(x, (I) => {
1392
1406
  const S = l(I);
1393
1407
  return c.hasRoute(S);
1394
1408
  });
1395
1409
  return [...v, ...e.includes, ...$(D, (I) => I.value)];
1396
1410
  }
1397
- let m = r.value;
1398
- e.tagsCache || (m = J(r.value, (x) => x.keep));
1399
- let b = $(m, (x) => x.value);
1400
- return o.value && (b = J(b, (x) => x !== f.name)), [...e.includes, ...b];
1401
- }), h = /* @__PURE__ */ new Map(), p = (v, m) => (h.has(m) || h.set(m, {
1411
+ let y = r.value;
1412
+ e.tagsCache || (y = J(r.value, (x) => x.keep));
1413
+ let b = $(y, (x) => x.value);
1414
+ return a.value && (b = J(b, (x) => x !== i.name)), [...e.includes, ...b];
1415
+ }), m = /* @__PURE__ */ new Map(), p = (v, y) => (m.has(y) || m.set(y, {
1402
1416
  ...v,
1403
1417
  type: {
1404
1418
  ...v.type,
1405
- name: u(f)
1419
+ name: u(i)
1406
1420
  }
1407
- }), h.get(m));
1421
+ }), m.get(y));
1408
1422
  return () => s(hr, null, {
1409
1423
  default: ({
1410
1424
  Component: v,
1411
- route: m
1425
+ route: y
1412
1426
  }) => {
1413
1427
  let b;
1414
- return m.name && (n.value[m.name] ? v && v.type && !v.type.name && (b = p(v, u(m))) : v && v.type && !v.type.name && (v.type.name = m.name)), s(Un, {
1415
- include: i.value
1416
- }, [o.value ? null : b ? s(b, null, null) : s(v, null, null)]);
1428
+ return y.name && (n.value[y.name] ? v && v.type && !v.type.name && (b = p(v, u(y))) : v && v.type && !v.type.name && (v.type.name = y.name)), s(Un, {
1429
+ include: d.value
1430
+ }, [a.value ? null : b ? s(b, null, null) : s(v, null, null)]);
1417
1431
  }
1418
1432
  });
1419
1433
  }
@@ -1436,7 +1450,7 @@ const qr = () => ({
1436
1450
  onItemClick: {
1437
1451
  type: Function
1438
1452
  }
1439
- }), Xr = N({
1453
+ }), Xr = O({
1440
1454
  props: {
1441
1455
  ...Gr()
1442
1456
  },
@@ -1447,59 +1461,59 @@ const qr = () => ({
1447
1461
  router: n,
1448
1462
  route: r
1449
1463
  } = Ce(), {
1450
- repeatRouteMap: o,
1451
- menuMap: a,
1464
+ repeatRouteMap: a,
1465
+ menuMap: o,
1452
1466
  tabs: u,
1453
1467
  refresh: l,
1454
1468
  convertName: c
1455
- } = ke(), f = ve({
1469
+ } = ke(), i = ve({
1456
1470
  ctxMenuPos: null,
1457
1471
  ctxMenuItem: null
1458
- }), d = (P) => e.isHideClose ? e.isHideClose(P) : !1, i = E(() => {
1472
+ }), f = (P) => e.isHideClose ? e.isHideClose(P) : !1, d = C(() => {
1459
1473
  const P = c(r);
1460
- return g(a.value, P);
1461
- }), h = ({
1474
+ return g(o.value, P);
1475
+ }), m = ({
1462
1476
  queryUpdateCb: P
1463
1477
  }) => {
1464
- const B = i.value;
1478
+ const B = d.value;
1465
1479
  if (!B)
1466
1480
  return;
1467
- let q = lt(u.value, (V) => V.value === B.value);
1468
- if (!q) {
1481
+ let U = Ge(u.value, (z) => z.value === B.value);
1482
+ if (!U) {
1469
1483
  u.value = [...u.value, {
1470
1484
  ...B,
1471
1485
  query: r.query
1472
1486
  }];
1473
1487
  return;
1474
1488
  }
1475
- const W = Xe(q.query) || "{}", O = Xe(r.query) || "{}";
1476
- if (W !== O) {
1477
- const V = {
1489
+ const W = Ye(U.query) || "{}", F = Ye(r.query) || "{}";
1490
+ if (W !== F) {
1491
+ const z = {
1478
1492
  ...B,
1479
1493
  query: r.query
1480
1494
  };
1481
- u.value = $($(u.value, (C) => C.value === B.value ? V : C)), P == null || P(V);
1495
+ u.value = $($(u.value, (M) => M.value === B.value ? z : M)), P == null || P(z);
1482
1496
  }
1483
1497
  };
1484
1498
  ue((P, B) => {
1485
- h({
1486
- queryUpdateCb: (q) => {
1487
- P !== B && x(q);
1499
+ m({
1500
+ queryUpdateCb: (U) => {
1501
+ P !== B && x(U);
1488
1502
  }
1489
1503
  });
1490
1504
  }, () => r.name), ue((P, B) => {
1491
- const q = P == null ? void 0 : P[0], W = B == null ? void 0 : B[0];
1492
- if (q !== W)
1505
+ const U = P == null ? void 0 : P[0], W = B == null ? void 0 : B[0];
1506
+ if (U !== W)
1493
1507
  return;
1494
- if (o.value[q]) {
1495
- h({});
1508
+ if (a.value[U]) {
1509
+ m({});
1496
1510
  return;
1497
1511
  }
1498
- const O = i.value;
1499
- !O || (u.value = $($(u.value, (V) => V.value === O.value ? {
1500
- ...O,
1512
+ const F = d.value;
1513
+ !F || (u.value = $($(u.value, (z) => z.value === F.value ? {
1514
+ ...F,
1501
1515
  query: r.query
1502
- } : V)));
1516
+ } : z)));
1503
1517
  }, [() => r.name, () => r.query]);
1504
1518
  const p = (P) => {
1505
1519
  if (e.onItemClick) {
@@ -1516,44 +1530,44 @@ const qr = () => ({
1516
1530
  n.openMenu(P);
1517
1531
  }, v = (P) => {
1518
1532
  var B;
1519
- if (!d(P)) {
1520
- if (P.value === ((B = i.value) == null ? void 0 : B.value)) {
1521
- const q = Yn(u.value, (W) => W.value === i.value.value);
1522
- u.value[q + 1] ? p(u.value[q + 1]) : u.value[q - 1] && p(u.value[q - 1]);
1533
+ if (!f(P)) {
1534
+ if (P.value === ((B = d.value) == null ? void 0 : B.value)) {
1535
+ const U = Yn(u.value, (W) => W.value === d.value.value);
1536
+ u.value[U + 1] ? p(u.value[U + 1]) : u.value[U - 1] && p(u.value[U - 1]);
1523
1537
  }
1524
- u.value = J(u.value, (q) => q.value !== P.value);
1538
+ u.value = J(u.value, (U) => U.value !== P.value);
1525
1539
  }
1526
- }, m = (P) => {
1540
+ }, y = (P) => {
1527
1541
  var B;
1528
- P.value !== ((B = i.value) == null ? void 0 : B.value) && p(P), u.value = J(u.value, (q) => q.value === P.value ? !0 : d(q));
1542
+ P.value !== ((B = d.value) == null ? void 0 : B.value) && p(P), u.value = J(u.value, (U) => U.value === P.value ? !0 : f(U));
1529
1543
  }, b = () => {
1530
- if (!i.value || !d(i.value)) {
1531
- const P = lt(u.value, (B) => d(B));
1544
+ if (!d.value || !f(d.value)) {
1545
+ const P = Ge(u.value, (B) => f(B));
1532
1546
  P && n.openMenu(P);
1533
1547
  }
1534
- u.value = J(u.value, (P) => d(P));
1548
+ u.value = J(u.value, (P) => f(P));
1535
1549
  }, x = (P) => {
1536
1550
  l(P);
1537
1551
  }, D = (P, B) => {
1538
1552
  P.preventDefault();
1539
- const q = P.target;
1540
- if (!q)
1553
+ const U = P.target;
1554
+ if (!U)
1541
1555
  return;
1542
- const W = q.getBoundingClientRect();
1543
- f.ctxMenuPos = {
1556
+ const W = U.getBoundingClientRect();
1557
+ i.ctxMenuPos = {
1544
1558
  x: W.x + W.width / 2,
1545
1559
  y: W.y + W.height
1546
- }, f.ctxMenuItem = B;
1560
+ }, i.ctxMenuItem = B;
1547
1561
  }, I = (P) => {
1548
1562
  P.preventDefault(), P.stopPropagation();
1549
1563
  }, S = () => {
1550
- f.ctxMenuItem = null;
1551
- }, T = Q(), [K, j] = et(), G = (P) => {
1552
- const B = se(u.value, (q, W) => ({
1553
- ...q,
1564
+ i.ctxMenuItem = null;
1565
+ }, T = Q(), [R, j] = tt(), G = (P) => {
1566
+ const B = ie(u.value, (U, W) => ({
1567
+ ...U,
1554
1568
  [W.value]: W
1555
1569
  }), {});
1556
- u.value = $(P, (q) => g(B, q)), j();
1570
+ u.value = $(P, (U) => g(B, U)), j();
1557
1571
  };
1558
1572
  ue(() => {
1559
1573
  !T.value || !e.onDragRegister || e.onDragRegister({
@@ -1568,17 +1582,17 @@ const qr = () => ({
1568
1582
  const P = (B = oe.value) == null ? void 0 : B.originRef;
1569
1583
  !P || P == null || P.handleOpen();
1570
1584
  }, oe);
1571
- const k = (P) => {
1572
- P || (f.ctxMenuItem = null);
1573
- }, L = (P) => {
1574
- P === "refresh" ? x(f.ctxMenuItem) : P === "close" ? v(f.ctxMenuItem) : P === "close-other" ? m(f.ctxMenuItem) : P === "close-all" && b(), S();
1575
- }, y = E(() => {
1576
- var B, q;
1585
+ const N = (P) => {
1586
+ P || (i.ctxMenuItem = null);
1587
+ }, A = (P) => {
1588
+ P === "refresh" ? x(i.ctxMenuItem) : P === "close" ? v(i.ctxMenuItem) : P === "close-other" ? y(i.ctxMenuItem) : P === "close-all" && b(), S();
1589
+ }, h = C(() => {
1590
+ var B, U;
1577
1591
  const P = [];
1578
- return ((B = i.value) == null ? void 0 : B.value) === ((q = f.ctxMenuItem) == null ? void 0 : q.value) && P.push({
1592
+ return ((B = d.value) == null ? void 0 : B.value) === ((U = i.ctxMenuItem) == null ? void 0 : U.value) && P.push({
1579
1593
  label: t.value("refresh"),
1580
1594
  value: "refresh"
1581
- }), d(f.ctxMenuItem) || P.push({
1595
+ }), f(i.ctxMenuItem) || P.push({
1582
1596
  label: t.value("close"),
1583
1597
  value: "close"
1584
1598
  }), P.push({
@@ -1588,43 +1602,43 @@ const qr = () => ({
1588
1602
  label: t.value("closeAll"),
1589
1603
  value: "close-all"
1590
1604
  }), $(P, (W) => e.covertMenuItem ? e.covertMenuItem(W) : W);
1591
- }), M = te(), A = M(H.DropdownKey), w = M(H.ScrollKey) || "div";
1605
+ }), E = te(), k = E(H.DropdownKey), w = E(H.ScrollKey) || "div";
1592
1606
  return () => s(fe, null, [s(w, {
1593
1607
  class: "pro-layout-tabs"
1594
1608
  }, {
1595
1609
  default: () => [s("div", {
1596
1610
  class: "pro-layout-tabs-root",
1597
1611
  ref: T,
1598
- key: K.value
1612
+ key: R.value
1599
1613
  }, [$(u.value, (P) => {
1600
- var W, O;
1601
- const B = d(P), q = P.value === ((W = i.value) == null ? void 0 : W.value);
1614
+ var W, F;
1615
+ const B = f(P), U = P.value === ((W = d.value) == null ? void 0 : W.value);
1602
1616
  return s("div", {
1603
- class: ["pro-layout-tabs-item", q ? "active" : ""],
1617
+ class: ["pro-layout-tabs-item", U ? "active" : ""],
1604
1618
  "data-url": P.value,
1605
1619
  onClick: () => p(P),
1606
- oncontextmenu: (V) => D(V, P)
1607
- }, [((O = P.itemLabel) == null ? void 0 : O.call(P, P)) || P.label, !B && s("div", {
1620
+ oncontextmenu: (z) => D(z, P)
1621
+ }, [((F = P.itemLabel) == null ? void 0 : F.call(P, P)) || P.label, !B && s("div", {
1608
1622
  class: "pro-layout-tabs-item-close",
1609
- onClick: (V) => {
1610
- V.preventDefault(), V.stopPropagation(), v(P);
1623
+ onClick: (z) => {
1624
+ z.preventDefault(), z.stopPropagation(), v(P);
1611
1625
  },
1612
1626
  oncontextmenu: I
1613
1627
  }, [st("\u2715")])]);
1614
1628
  })])]
1615
- }), f.ctxMenuItem && f.ctxMenuPos && s(Ht, {
1629
+ }), i.ctxMenuItem && i.ctxMenuPos && s(Ht, {
1616
1630
  to: "body"
1617
1631
  }, {
1618
1632
  default: () => [s("div", {
1619
1633
  class: "pro-layout-tabs-menus",
1620
- style: `left:${f.ctxMenuPos.x}px;top:${f.ctxMenuPos.y}px`
1621
- }, [s(A, {
1634
+ style: `left:${i.ctxMenuPos.x}px;top:${i.ctxMenuPos.y}px`
1635
+ }, [s(k, {
1622
1636
  ref: oe,
1623
1637
  trigger: "click",
1624
- options: y.value,
1638
+ options: h.value,
1625
1639
  hideOnClick: !1,
1626
- onCommand: L,
1627
- onVisibleChange: k
1640
+ onCommand: A,
1641
+ onVisibleChange: N
1628
1642
  }, {
1629
1643
  default: () => [s("div", null, null)]
1630
1644
  })])]
@@ -1635,7 +1649,7 @@ const qr = () => ({
1635
1649
  type: String,
1636
1650
  default: "watermark"
1637
1651
  }
1638
- }), Qr = N({
1652
+ }), Qr = O({
1639
1653
  props: {
1640
1654
  ...Yr()
1641
1655
  },
@@ -1648,8 +1662,8 @@ const qr = () => ({
1648
1662
  return;
1649
1663
  let r = document.createElement("canvas");
1650
1664
  r.width = 200, r.height = 130;
1651
- let o = r.getContext("2d");
1652
- o.rotate(-20 * Math.PI / 180), o.font = "12px Vedana", o.fillStyle = "rgba(200, 200, 200, 0.30)", o.textBaseline = "middle", o.fillText(e.str, r.width / 10, r.height / 2), n.imgStr = r.toDataURL("image/png"), o = null, r = null;
1665
+ let a = r.getContext("2d");
1666
+ a.rotate(-20 * Math.PI / 180), a.font = "12px Vedana", a.fillStyle = "rgba(200, 200, 200, 0.30)", a.textBaseline = "middle", a.fillText(e.str, r.width / 10, r.height / 2), n.imgStr = r.toDataURL("image/png"), a = null, r = null;
1653
1667
  }, [() => e.str, t]), () => s(Ht, {
1654
1668
  to: "body"
1655
1669
  }, {
@@ -1677,7 +1691,7 @@ const qr = () => ({
1677
1691
  renderEnd: {
1678
1692
  type: Function
1679
1693
  }
1680
- }), Zr = N({
1694
+ }), Zr = O({
1681
1695
  props: {
1682
1696
  ...Jr()
1683
1697
  },
@@ -1687,11 +1701,11 @@ const qr = () => ({
1687
1701
  route: n
1688
1702
  } = Ce(), {
1689
1703
  menus: r,
1690
- convertName: o
1691
- } = ke(), a = E(() => {
1704
+ convertName: a
1705
+ } = ke(), o = C(() => {
1692
1706
  const {
1693
1707
  parentList: l
1694
- } = $e(r.value, (c) => c.value === o(n), void 0, []);
1708
+ } = $e(r.value, (c) => c.value === a(n), void 0, []);
1695
1709
  return l || [];
1696
1710
  }), u = (l, c) => {
1697
1711
  e.onItemClick && e.onItemClick(l, c), !c && t.openMenu(l);
@@ -1700,35 +1714,35 @@ const qr = () => ({
1700
1714
  var l, c;
1701
1715
  return s("div", {
1702
1716
  class: "pro-layout-breadcrumb"
1703
- }, [(l = e.renderStart) == null ? void 0 : l.call(e), $(a.value, (f, d) => {
1717
+ }, [(l = e.renderStart) == null ? void 0 : l.call(e), $(o.value, (i, f) => {
1704
1718
  var p;
1705
- const i = d === ee(a.value) - 1, h = ["breadcrumb-item"];
1706
- return i || h.push("a"), s(fe, null, [s("span", {
1707
- class: h,
1708
- onClick: () => u(f, i)
1709
- }, [f.label]), !i && s("span", {
1719
+ const d = f === ee(o.value) - 1, m = ["breadcrumb-item"];
1720
+ return d || m.push("a"), s(fe, null, [s("span", {
1721
+ class: m,
1722
+ onClick: () => u(i, d)
1723
+ }, [i.label]), !d && s("span", {
1710
1724
  class: "breadcrumb-separator"
1711
- }, [((p = e.renderSeparator) == null ? void 0 : p.call(e, f)) || e.separator || "/"])]);
1725
+ }, [((p = e.renderSeparator) == null ? void 0 : p.call(e, i)) || e.separator || "/"])]);
1712
1726
  }), (c = e.renderEnd) == null ? void 0 : c.call(e)]);
1713
1727
  };
1714
1728
  }
1715
- }), He = N((e, {
1729
+ }), He = O((e, {
1716
1730
  slots: t
1717
1731
  }) => {
1718
1732
  const n = Q(), r = Q(0);
1719
- return en(n, (o) => {
1733
+ return en(n, (a) => {
1720
1734
  var u;
1721
- const a = (u = o[0]) == null ? void 0 : u.contentRect;
1722
- r.value = a == null ? void 0 : a.width;
1735
+ const o = (u = a[0]) == null ? void 0 : u.contentRect;
1736
+ r.value = o == null ? void 0 : o.width;
1723
1737
  }), () => {
1724
- var o, a, u;
1725
- return s("header", null, [(o = t.start) == null ? void 0 : o.call(t), t.menus && s("div", {
1738
+ var a, o, u;
1739
+ return s("header", null, [(a = t.start) == null ? void 0 : a.call(t), t.menus && s("div", {
1726
1740
  ref: n,
1727
1741
  class: "pro-header-menus-wrapper",
1728
1742
  style: {
1729
1743
  "--pro-header-menus-wrapper-wid": r.value + "px"
1730
1744
  }
1731
- }, [t.menus()]), (a = t.default) == null ? void 0 : a.call(t), (u = t.end) == null ? void 0 : u.call(t)]);
1745
+ }, [t.menus()]), (o = t.default) == null ? void 0 : o.call(t), (u = t.end) == null ? void 0 : u.call(t)]);
1732
1746
  };
1733
1747
  }), ea = () => ({
1734
1748
  clsName: {
@@ -1797,7 +1811,7 @@ const qr = () => ({
1797
1811
  topMenuProps: {
1798
1812
  type: Object
1799
1813
  }
1800
- }), Eo = N({
1814
+ }), Eo = O({
1801
1815
  inheritAttrs: !1,
1802
1816
  props: {
1803
1817
  ...ea()
@@ -1806,117 +1820,117 @@ const qr = () => ({
1806
1820
  slots: t,
1807
1821
  attrs: n
1808
1822
  }) => {
1809
- var O, V;
1810
- const r = te(), o = r(H.MenusKey), a = r(H.ScrollKey) || "div", {
1823
+ var F, z;
1824
+ const r = te(), a = r(H.MenusKey), o = r(H.ScrollKey) || "div", {
1811
1825
  router: u,
1812
1826
  route: l
1813
- } = Ce(), c = E(() => {
1814
- var C;
1815
- return Zt(e.menus, (z) => {
1827
+ } = Ce(), c = C(() => {
1828
+ var M;
1829
+ return Zt(e.menus, (q) => {
1816
1830
  var Ae, ze, Et, It;
1817
1831
  const X = ((Ae = e.fieldNames) == null ? void 0 : Ae.value) || "value", ce = ((ze = e.fieldNames) == null ? void 0 : ze.label) || "label", me = ((Et = e.fieldNames) == null ? void 0 : Et.hide) || "hide", Pe = ((It = e.fieldNames) == null ? void 0 : It.keep) || "keep";
1818
1832
  return {
1819
- ...F(z, X, ce, me, Pe),
1820
- value: g(z, X),
1821
- label: g(z, ce),
1822
- hide: g(z, me),
1823
- keep: g(z, Pe)
1833
+ ...K(q, X, ce, me, Pe),
1834
+ value: g(q, X),
1835
+ label: g(q, ce),
1836
+ hide: g(q, me),
1837
+ keep: g(q, Pe)
1824
1838
  };
1825
1839
  }, {
1826
- children: ((C = e.fieldNames) == null ? void 0 : C.children) || "children",
1840
+ children: ((M = e.fieldNames) == null ? void 0 : M.children) || "children",
1827
1841
  childrenName: "children"
1828
1842
  });
1829
- }), f = E(() => sr(c.value, (C) => !C.hide)), d = E(() => wt(c.value)), i = E(() => wt(f.value)), h = E(() => ft(c.value, (C) => F(C, "children"))), p = (C) => {
1843
+ }), i = C(() => sr(c.value, (M) => !M.hide)), f = C(() => wt(c.value)), d = C(() => wt(i.value)), m = C(() => ft(c.value, (M) => K(M, "children"))), p = (M) => {
1830
1844
  if (e.convertValue)
1831
- return e.convertValue(C);
1832
- const z = C.value.indexOf("?");
1833
- return z > 0 ? C.value.substring(0, z) : C.value;
1834
- }, v = E(() => {
1835
- const C = Z(Yt(Qn(h.value, (z) => p(z)), (z) => z > 1));
1836
- return se(C, (z, X) => ({
1837
- ...z,
1845
+ return e.convertValue(M);
1846
+ const q = M.value.indexOf("?");
1847
+ return q > 0 ? M.value.substring(0, q) : M.value;
1848
+ }, v = C(() => {
1849
+ const M = Z(Yt(Qn(m.value, (q) => p(q)), (q) => q > 1));
1850
+ return ie(M, (q, X) => ({
1851
+ ...q,
1838
1852
  [X]: !0
1839
1853
  }), {});
1840
- }), m = (C) => {
1854
+ }), y = (M) => {
1841
1855
  if (e.convertName)
1842
- return e.convertName(C, {
1843
- menuTopMap: d.value
1856
+ return e.convertName(M, {
1857
+ menuTopMap: f.value
1844
1858
  });
1845
- if (C.name && v.value[C.name]) {
1846
- const z = C.fullPath.indexOf("?");
1847
- return C.name + C.fullPath.substring(z);
1859
+ if (M.name && v.value[M.name]) {
1860
+ const q = M.fullPath.indexOf("?");
1861
+ return M.name + M.fullPath.substring(q);
1848
1862
  }
1849
- return C.name;
1850
- }, b = E(() => {
1863
+ return M.name;
1864
+ }, b = C(() => {
1851
1865
  if (e.findCurrentTopName)
1852
- return e.findCurrentTopName(l, d.value);
1853
- const C = m(l);
1854
- return d.value[C];
1855
- }), x = E(() => b.value ? lt(f.value, (C) => C.value === b.value) : null), D = E(() => !!(x.value && x.value.children && ee(x.value.children) > 0)), I = E(() => {
1866
+ return e.findCurrentTopName(l, f.value);
1867
+ const M = y(l);
1868
+ return f.value[M];
1869
+ }), x = C(() => b.value ? Ge(i.value, (M) => M.value === b.value) : null), D = C(() => !!(x.value && x.value.children && ee(x.value.children) > 0)), I = C(() => {
1856
1870
  if (e.findActiveKey)
1857
- return e.findActiveKey(l, d.value);
1858
- const C = m(l);
1859
- if (i.value[C])
1860
- return C;
1871
+ return e.findActiveKey(l, f.value);
1872
+ const M = y(l);
1873
+ if (d.value[M])
1874
+ return M;
1861
1875
  const {
1862
- parentList: z
1863
- } = $e(c.value, (ce) => ce.value === C, void 0, []), X = Jn(z, (ce) => !ce.hide);
1864
- return (X == null ? void 0 : X.value) || C;
1865
- }), S = (C) => {
1866
- e.onMenuItemClick ? e.onMenuItemClick(C) : u.openMenu(C);
1867
- }, T = (C) => {
1868
- const z = $e(f.value, (X) => X.value === C.value).target;
1869
- S(z);
1870
- }, K = E(() => !!e.tabs), j = () => {
1871
- var z;
1872
- let C = (z = e.tabs) == null ? void 0 : z.sessionKey;
1873
- return C === void 0 && (C = "pro-layout-tabs"), C;
1874
- }, G = ((V = (O = e.tabs) == null ? void 0 : O.findFirstMenu) == null ? void 0 : V.call(O, f.value)) || tn(f.value, (C) => !C.children || ee(C.children) <= 0), k = Q((() => {
1875
- if (!K.value)
1876
+ parentList: q
1877
+ } = $e(c.value, (ce) => ce.value === M, void 0, []), X = Jn(q, (ce) => !ce.hide);
1878
+ return (X == null ? void 0 : X.value) || M;
1879
+ }), S = (M) => {
1880
+ e.onMenuItemClick ? e.onMenuItemClick(M) : u.openMenu(M);
1881
+ }, T = (M) => {
1882
+ const q = $e(i.value, (X) => X.value === M.value).target;
1883
+ S(q);
1884
+ }, R = C(() => !!e.tabs), j = () => {
1885
+ var q;
1886
+ let M = (q = e.tabs) == null ? void 0 : q.sessionKey;
1887
+ return M === void 0 && (M = "pro-layout-tabs"), M;
1888
+ }, G = ((z = (F = e.tabs) == null ? void 0 : F.findFirstMenu) == null ? void 0 : z.call(F, i.value)) || tn(i.value, (M) => !M.children || ee(M.children) <= 0), N = Q((() => {
1889
+ if (!R.value)
1876
1890
  return [];
1877
- const C = j();
1878
- let z = [];
1879
- if (C) {
1880
- const X = window.sessionStorage.getItem(C), ce = X ? mt(X) : [];
1881
- z = $(ce, (me) => ({
1882
- ...g(h.value, me.name),
1891
+ const M = j();
1892
+ let q = [];
1893
+ if (M) {
1894
+ const X = window.sessionStorage.getItem(M), ce = X ? mt(X) : [];
1895
+ q = $(ce, (me) => ({
1896
+ ...g(m.value, me.name),
1883
1897
  query: me.query
1884
1898
  }));
1885
1899
  }
1886
- return ee(z) <= 0 && G && (z = [G]), z;
1887
- })()), L = (C) => C.value === (G == null ? void 0 : G.value), y = (C) => {
1888
- k.value = J(k.value, (z) => z.value !== C);
1900
+ return ee(q) <= 0 && G && (q = [G]), q;
1901
+ })()), A = (M) => M.value === (G == null ? void 0 : G.value), h = (M) => {
1902
+ N.value = J(N.value, (q) => q.value !== M);
1889
1903
  };
1890
1904
  Ee(() => {
1891
- const C = j();
1892
- if (!C)
1905
+ const M = j();
1906
+ if (!M)
1893
1907
  return;
1894
- const z = $(k.value, (X) => ({
1908
+ const q = $(N.value, (X) => ({
1895
1909
  name: X.value,
1896
1910
  query: X.query
1897
1911
  }));
1898
- window.sessionStorage.setItem(C, Xe(z));
1899
- }, k);
1900
- const M = () => {
1901
- var z;
1902
- const C = (z = e.tabs) == null ? void 0 : z.clearWhileUnmount;
1903
- return C === void 0 ? !0 : C;
1912
+ window.sessionStorage.setItem(M, Ye(q));
1913
+ }, N);
1914
+ const E = () => {
1915
+ var q;
1916
+ const M = (q = e.tabs) == null ? void 0 : q.clearWhileUnmount;
1917
+ return M === void 0 ? !0 : M;
1904
1918
  };
1905
1919
  ue(() => () => {
1906
- const C = j();
1907
- C && M() && window.sessionStorage.removeItem(C);
1920
+ const M = j();
1921
+ M && E() && window.sessionStorage.removeItem(M);
1908
1922
  }, []);
1909
- const A = E(() => !!e.breadcrumb), w = Q(!1);
1923
+ const k = C(() => !!e.breadcrumb), w = Q(!1);
1910
1924
  Se(wn, {
1911
- convertName: m,
1925
+ convertName: y,
1912
1926
  convertValue: p,
1913
1927
  menus: c,
1914
- showMenus: f,
1928
+ showMenus: i,
1915
1929
  repeatRouteMap: v,
1916
- menuMap: h,
1917
- tabs: k,
1918
- showTabs: K,
1919
- closeTab: y,
1930
+ menuMap: m,
1931
+ tabs: N,
1932
+ showTabs: R,
1933
+ closeTab: h,
1920
1934
  refreshRef: w,
1921
1935
  refresh: () => {
1922
1936
  w.value = !0, setTimeout(() => {
@@ -1924,73 +1938,73 @@ const qr = () => ({
1924
1938
  }, 0);
1925
1939
  }
1926
1940
  });
1927
- const B = ge(t, "header"), q = ge(t, "menu"), W = (C) => {
1928
- var z, X;
1941
+ const B = ge(t, "header"), U = ge(t, "menu"), W = (M) => {
1942
+ var q, X;
1929
1943
  return s("div", {
1930
1944
  class: `${e.clsName}-menus-wrapper`
1931
- }, [(z = q.start) == null ? void 0 : z.call(q), s(a, {
1945
+ }, [(q = U.start) == null ? void 0 : q.call(U), s(o, {
1932
1946
  class: `${e.clsName}-menus-scroll`
1933
1947
  }, {
1934
- default: () => [s(o, C, q)]
1935
- }), (X = q.end) == null ? void 0 : X.call(q)]);
1948
+ default: () => [s(a, M, U)]
1949
+ }), (X = U.end) == null ? void 0 : X.call(U)]);
1936
1950
  };
1937
1951
  return () => {
1938
1952
  var me, Pe, Ae;
1939
- if (!o)
1953
+ if (!a)
1940
1954
  return null;
1941
- const C = [`${e.clsName} ${e.clsName}-${e.layout}`];
1942
- K.value && C.push("has-tabs"), A.value && C.push("has-breadcrumb");
1943
- const z = {
1955
+ const M = [`${e.clsName} ${e.clsName}-${e.layout}`];
1956
+ R.value && M.push("has-tabs"), k.value && M.push("has-breadcrumb");
1957
+ const q = {
1944
1958
  class: `${e.clsName}-menus`,
1945
- options: f.value,
1959
+ options: i.value,
1946
1960
  activeKey: I.value,
1947
1961
  ...ne(e, "convertSubMenuProps", "convertMenuItemProps"),
1948
1962
  onMenuItemClick: S,
1949
1963
  ...e.menuProps
1950
1964
  }, X = {
1951
1965
  collapse: e.collapse,
1952
- ...z
1953
- }, ce = s(fe, null, [K.value && s(Xr, R({
1954
- isHideClose: L
1955
- }, F(e.tabs, "sessionKey", "clearWhileUnmount")), null), A.value && s(Zr, e.breadcrumb, null), (me = t.connect) == null ? void 0 : me.call(t), s("div", {
1966
+ ...q
1967
+ }, ce = s(fe, null, [R.value && s(Xr, L({
1968
+ isHideClose: A
1969
+ }, K(e.tabs, "sessionKey", "clearWhileUnmount")), null), k.value && s(Zr, e.breadcrumb, null), (me = t.connect) == null ? void 0 : me.call(t), s("div", {
1956
1970
  class: `${e.clsName}-section`
1957
1971
  }, [(Pe = t.default) == null ? void 0 : Pe.call(t), t.routerView ? t.routerView() : s(_r, e.routeOpts, null), e.watermark && s(Qr, e.watermark, null), (Ae = t.end) == null ? void 0 : Ae.call(t)])]);
1958
- return e.layout === "vertical" ? s("main", R(n, {
1959
- class: C
1972
+ return e.layout === "vertical" ? s("main", L(n, {
1973
+ class: M
1960
1974
  }), [s(He, {
1961
1975
  class: `${e.clsName}-header`
1962
1976
  }, {
1963
- menus: () => s(o, R({
1977
+ menus: () => s(a, L({
1964
1978
  mode: "horizontal"
1965
- }, z), q),
1979
+ }, q), U),
1966
1980
  ...B
1967
- }), ce]) : e.layout === "horizontal" ? (C.push("has-left-menu"), e.collapse && C.push("mini"), s("main", R(n, {
1968
- class: C
1981
+ }), ce]) : e.layout === "horizontal" ? (M.push("has-left-menu"), e.collapse && M.push("mini"), s("main", L(n, {
1982
+ class: M
1969
1983
  }), [W(X), s("div", {
1970
1984
  class: `${e.clsName}-structure`
1971
1985
  }, [s(He, {
1972
1986
  class: `${e.clsName}-header`
1973
- }, B), ce])])) : e.layout === "horizontal-v" ? (C.push("has-left-menu"), e.collapse && C.push("mini"), s("main", R(n, {
1974
- class: C
1987
+ }, B), ce])])) : e.layout === "horizontal-v" ? (M.push("has-left-menu"), e.collapse && M.push("mini"), s("main", L(n, {
1988
+ class: M
1975
1989
  }), [s(He, {
1976
1990
  class: `${e.clsName}-header`
1977
1991
  }, B), s("div", {
1978
1992
  class: `${e.clsName}-structure`
1979
1993
  }, [W(X), s("div", {
1980
1994
  class: `${e.clsName}-right`
1981
- }, [ce])])])) : (D.value && C.push("has-left-menu"), e.collapse && C.push("mini"), s("main", R(n, {
1982
- class: C
1995
+ }, [ce])])])) : (D.value && M.push("has-left-menu"), e.collapse && M.push("mini"), s("main", L(n, {
1996
+ class: M
1983
1997
  }), [s(He, {
1984
1998
  class: `${e.clsName}-header`
1985
1999
  }, {
1986
- menus: () => s(o, R({
2000
+ menus: () => s(a, L({
1987
2001
  class: `${e.clsName}-menus`,
1988
2002
  mode: "horizontal",
1989
- options: $(f.value, (ze) => F(ze, "children")),
2003
+ options: $(i.value, (ze) => K(ze, "children")),
1990
2004
  activeKey: b.value
1991
2005
  }, e.topMenuProps, ne(e, "convertSubMenuProps", "convertMenuItemProps"), {
1992
2006
  onMenuItemClick: T
1993
- }), q),
2007
+ }), U),
1994
2008
  ...B
1995
2009
  }), s("div", {
1996
2010
  class: `${e.clsName}-structure`
@@ -2021,7 +2035,7 @@ const qr = () => ({
2021
2035
  renderBackIcon: {
2022
2036
  type: Function
2023
2037
  }
2024
- }), ot = N({
2038
+ }), ut = O({
2025
2039
  props: {
2026
2040
  ...ta()
2027
2041
  },
@@ -2032,31 +2046,31 @@ const qr = () => ({
2032
2046
  t: n
2033
2047
  } = ae(), {
2034
2048
  router: r
2035
- } = Ce(), o = () => {
2049
+ } = Ce(), a = () => {
2036
2050
  var u;
2037
2051
  if (e.onBackClick) {
2038
2052
  (u = e.onBackClick) == null || u.call(e);
2039
2053
  return;
2040
2054
  }
2041
2055
  r.back();
2042
- }, a = () => n.value("back");
2056
+ }, o = () => n.value("back");
2043
2057
  return () => {
2044
- var l, c, f, d, i;
2058
+ var l, c, i, f, d;
2045
2059
  const u = e.hideWhileNoHistory && ((c = (l = window.history) == null ? void 0 : l.state) == null ? void 0 : c.back) || e.hideWhileNoHistory === !1;
2046
2060
  return s("div", {
2047
2061
  class: "pro-page-header"
2048
2062
  }, [e.showBack && u && s("div", {
2049
2063
  class: "pro-page-header-back",
2050
- onClick: o
2051
- }, [t.backIcon ? t.backIcon() : ((f = e.renderBackIcon) == null ? void 0 : f.call(e)) || a()]), s("div", {
2064
+ onClick: a
2065
+ }, [t.backIcon ? t.backIcon() : ((i = e.renderBackIcon) == null ? void 0 : i.call(e)) || o()]), s("div", {
2052
2066
  class: "pro-page-header-title"
2053
2067
  }, [t.title ? t.title() : e.title]), s("div", {
2054
2068
  class: "pro-page-header-sub-title"
2055
2069
  }, [t.subTitle ? t.subTitle() : e.subTitle]), s("div", {
2056
2070
  class: "pro-page-header-space"
2057
- }, [(d = t.space) == null ? void 0 : d.call(t)]), s("div", {
2071
+ }, [(f = t.space) == null ? void 0 : f.call(t)]), s("div", {
2058
2072
  class: "pro-page-header-extra"
2059
- }, [(i = t.extra) == null ? void 0 : i.call(t)])]);
2073
+ }, [(d = t.extra) == null ? void 0 : d.call(t)])]);
2060
2074
  };
2061
2075
  }
2062
2076
  }), na = () => ({
@@ -2078,43 +2092,43 @@ const qr = () => ({
2078
2092
  sub: {
2079
2093
  type: Boolean
2080
2094
  }
2081
- }), Tn = N({
2095
+ }), Tn = O({
2082
2096
  props: {
2083
- ...ot.props,
2097
+ ...ut.props,
2084
2098
  ...na()
2085
2099
  },
2086
2100
  setup: (e, {
2087
2101
  slots: t
2088
2102
  }) => {
2089
- const n = ke(), r = E(() => {
2103
+ const n = ke(), r = C(() => {
2090
2104
  if (!e.layoutTabsBackMode || e.sub || !n)
2091
2105
  return e.showBack;
2092
2106
  const {
2093
- showTabs: f
2107
+ showTabs: i
2094
2108
  } = n;
2095
- return f.value ? !1 : e.showBack;
2096
- }), o = te(), a = o(H.LoadingKey), u = e.as || o(H.ScrollKey) || "div", l = () => a ? s(a, R({
2109
+ return i.value ? !1 : e.showBack;
2110
+ }), a = te(), o = a(H.LoadingKey), u = e.as || a(H.ScrollKey) || "div", l = () => o ? s(o, L({
2097
2111
  loading: !0
2098
2112
  }, e.loadingOpts), {
2099
2113
  default: () => [s("div", {
2100
2114
  class: "pro-loading-dom"
2101
2115
  }, null)]
2102
- }) : null, c = Z(ot.props).filter((f) => f !== "showBack");
2116
+ }) : null, c = Z(ut.props).filter((i) => i !== "showBack");
2103
2117
  return () => {
2104
2118
  var p;
2105
- const f = e.title || t.title || e.subTitle || t.subTitle || t.extra, d = (p = t.footer) == null ? void 0 : p.call(t), i = !e.loading && ct(d), h = ["pro-page"];
2106
- return e.sub && h.push("pro-page-sub"), e.fillMode && h.push("pro-page-fill"), f && h.push("has-header"), i && h.push("has-footer"), s(u, {
2107
- class: h
2119
+ const i = e.title || t.title || e.subTitle || t.subTitle || t.extra, f = (p = t.footer) == null ? void 0 : p.call(t), d = !e.loading && ct(f), m = ["pro-page"];
2120
+ return e.sub && m.push("pro-page-sub"), e.fillMode && m.push("pro-page-fill"), i && m.push("has-header"), d && m.push("has-footer"), s(u, {
2121
+ class: m
2108
2122
  }, {
2109
2123
  default: () => {
2110
- var v, m;
2111
- return [(v = t.start) == null ? void 0 : v.call(t), f && s(ot, R(ne(e, c), {
2124
+ var v, y;
2125
+ return [(v = t.start) == null ? void 0 : v.call(t), i && s(ut, L(ne(e, c), {
2112
2126
  showBack: r.value
2113
- }), F(t, "start", "default", "footer")), s("div", {
2127
+ }), K(t, "start", "default", "footer")), s("div", {
2114
2128
  class: "pro-page-content"
2115
- }, [e.loading ? l() : (m = t.default) == null ? void 0 : m.call(t)]), i && s("div", {
2129
+ }, [e.loading ? l() : (y = t.default) == null ? void 0 : y.call(t)]), d && s("div", {
2116
2130
  class: "pro-page-footer"
2117
- }, [d])];
2131
+ }, [f])];
2118
2132
  }
2119
2133
  });
2120
2134
  };
@@ -2156,7 +2170,7 @@ const qr = () => ({
2156
2170
  end: {
2157
2171
  type: Function
2158
2172
  }
2159
- }), oa = N({
2173
+ }), oa = O({
2160
2174
  props: {
2161
2175
  ...aa()
2162
2176
  },
@@ -2164,35 +2178,35 @@ const qr = () => ({
2164
2178
  slots: t,
2165
2179
  emit: n
2166
2180
  }) => {
2167
- const r = te(), o = r(H.ProSearchFormKey), a = r(H.ProTableKey), u = r(H.PaginationKey), l = e.pageState || ve({
2181
+ const r = te(), a = r(H.ProSearchFormKey), o = r(H.ProTableKey), u = r(H.PaginationKey), l = e.pageState || ve({
2168
2182
  ...ra
2169
2183
  });
2170
2184
  let c;
2171
- const f = () => {
2185
+ const i = () => {
2172
2186
  n("search", {
2173
2187
  ...c,
2174
2188
  ...l
2175
2189
  });
2176
- }, d = (m, b) => {
2177
- c = m, l.page = b || 1, f();
2178
- }, i = (m, b) => {
2179
- l.page = m, l.pageSize = b, f();
2180
- }, h = ge(t, "search"), p = ge(t, "table"), v = ge(t, "pagination");
2190
+ }, f = (y, b) => {
2191
+ c = y, l.page = b || 1, i();
2192
+ }, d = (y, b) => {
2193
+ l.page = y, l.pageSize = b, i();
2194
+ }, m = ge(t, "search"), p = ge(t, "table"), v = ge(t, "pagination");
2181
2195
  return () => {
2182
- var b, x, D, I, S, T, K, j;
2183
- const m = t.search ? t.search({
2184
- executeSearchWithResetPage: d,
2196
+ var b, x, D, I, S, T, R, j;
2197
+ const y = t.search ? t.search({
2198
+ executeSearchWithResetPage: f,
2185
2199
  pageState: l
2186
- }) : s(fe, null, [o && s(o, R({
2200
+ }) : s(fe, null, [a && s(a, L({
2187
2201
  class: `${e.clsName}-search`
2188
- }, F(e.searchProps, "onFinish"), {
2189
- onFinish: (G) => d(G)
2190
- }), h)]);
2202
+ }, K(e.searchProps, "onFinish"), {
2203
+ onFinish: (G) => f(G)
2204
+ }), m)]);
2191
2205
  return s("div", {
2192
2206
  class: e.clsName
2193
- }, [((b = t.start) == null ? void 0 : b.call(t)) || ((x = e.start) == null ? void 0 : x.call(e)), !e.searchInTable && m, ((D = t.divide) == null ? void 0 : D.call(t)) || ((I = e.divide) == null ? void 0 : I.call(e)), t.table ? t.table({
2207
+ }, [((b = t.start) == null ? void 0 : b.call(t)) || ((x = e.start) == null ? void 0 : x.call(e)), !e.searchInTable && y, ((D = t.divide) == null ? void 0 : D.call(t)) || ((I = e.divide) == null ? void 0 : I.call(e)), t.table ? t.table({
2194
2208
  pageState: l
2195
- }) : s(fe, null, [a && s(a, R({
2209
+ }) : s(fe, null, [o && s(o, L({
2196
2210
  class: `${e.clsName}-table`,
2197
2211
  paginationState: {
2198
2212
  page: l.page,
@@ -2201,17 +2215,17 @@ const qr = () => ({
2201
2215
  pagination: !1
2202
2216
  }, e.tableProps), {
2203
2217
  ...p,
2204
- toolbar: e.searchInTable ? () => p.toolbar ? p.toolbar(m) : m : p.toolbar
2218
+ toolbar: e.searchInTable ? () => p.toolbar ? p.toolbar(y) : y : p.toolbar
2205
2219
  })]), ((S = t.divide2) == null ? void 0 : S.call(t)) || ((T = e.divide2) == null ? void 0 : T.call(e)), t.pagination ? t.pagination({
2206
- executePageChange: i,
2220
+ executePageChange: d,
2207
2221
  pageState: l
2208
2222
  }) : s(fe, null, [e.paginationProps !== !1 && u && s("div", {
2209
2223
  class: `${e.clsName}-pagination`
2210
- }, [s(u, R(F(Re(e.paginationProps) ? {} : e.paginationProps, "onChange"), {
2224
+ }, [s(u, L(K(Re(e.paginationProps) ? {} : e.paginationProps, "onChange"), {
2211
2225
  page: l.page,
2212
2226
  pageSize: l.pageSize,
2213
- onComposeChange: i
2214
- }), v)])]), ((K = t.end) == null ? void 0 : K.call(t)) || ((j = e.end) == null ? void 0 : j.call(e))]);
2227
+ onComposeChange: d
2228
+ }), v)])]), ((R = t.end) == null ? void 0 : R.call(t)) || ((j = e.end) == null ? void 0 : j.call(e))]);
2215
2229
  };
2216
2230
  }
2217
2231
  }), Lt = () => ({
@@ -2222,7 +2236,7 @@ const qr = () => ({
2222
2236
  model: {
2223
2237
  type: Object
2224
2238
  }
2225
- }), ua = N({
2239
+ }), ua = O({
2226
2240
  props: {
2227
2241
  ...Te,
2228
2242
  ...Lt()
@@ -2232,31 +2246,31 @@ const qr = () => ({
2232
2246
  }) => {
2233
2247
  const {
2234
2248
  elementMap: n
2235
- } = ae(), r = e.elementMap || n, o = te(), a = o(H.DescriptionsKey), u = o(H.DescriptionsItemKey), l = E(() => tt(e.columns, e.columnState, e.columnState2)), c = Z(Te), f = Z(Lt());
2236
- return () => !a || !u ? null : s(a, R({
2249
+ } = ae(), r = e.elementMap || n, a = te(), o = a(H.DescriptionsKey), u = a(H.DescriptionsItemKey), l = C(() => nt(e.columns, e.columnState, e.columnState2)), c = Z(Te), i = Z(Lt());
2250
+ return () => !o || !u ? null : s(o, L({
2237
2251
  class: e.clsName
2238
- }, F(e, ...c, ...f, "model")), {
2252
+ }, K(e, ...c, ...i, "model")), {
2239
2253
  default: () => {
2240
- var d, i;
2241
- return [(d = t.start) == null ? void 0 : d.call(t), $(l.value, (h) => {
2242
- const p = h.dataIndex, v = g(e.model, p);
2243
- return s(u, R({
2254
+ var f, d;
2255
+ return [(f = t.start) == null ? void 0 : f.call(t), $(l.value, (m) => {
2256
+ const p = m.dataIndex, v = g(e.model, p);
2257
+ return s(u, L({
2244
2258
  class: `${e.clsName}-item`
2245
- }, g(h.extra, "desc")), {
2259
+ }, g(m.extra, "desc")), {
2246
2260
  default: () => {
2247
- var m, b;
2248
- return [((m = t[p]) == null ? void 0 : m.call(t, v, h)) || ((b = t.value) == null ? void 0 : b.call(t, v, h)) || Pt(r, h, {
2261
+ var y, b;
2262
+ return [((y = t[p]) == null ? void 0 : y.call(t, v, m)) || ((b = t.value) == null ? void 0 : b.call(t, v, m)) || Pt(r, m, {
2249
2263
  value: v
2250
2264
  }, {
2251
2265
  render: "descRender"
2252
2266
  })];
2253
2267
  },
2254
2268
  label: () => {
2255
- var m;
2256
- return ((m = t.label) == null ? void 0 : m.call(t, h)) || h.title;
2269
+ var y;
2270
+ return ((y = t.label) == null ? void 0 : y.call(t, m)) || m.title;
2257
2271
  }
2258
2272
  });
2259
- }), (i = t.default) == null ? void 0 : i.call(t)];
2273
+ }), (d = t.default) == null ? void 0 : d.call(t)];
2260
2274
  },
2261
2275
  ...t
2262
2276
  });
@@ -2268,7 +2282,7 @@ const qr = () => ({
2268
2282
  emptyText: {
2269
2283
  type: String
2270
2284
  }
2271
- }), Io = N({
2285
+ }), Io = O({
2272
2286
  props: {
2273
2287
  ...la()
2274
2288
  },
@@ -2284,7 +2298,7 @@ const qr = () => ({
2284
2298
  emptyText: {
2285
2299
  type: String
2286
2300
  }
2287
- }), sa = N({
2301
+ }), sa = O({
2288
2302
  inheritAttrs: !1,
2289
2303
  props: {
2290
2304
  ...ca()
@@ -2292,17 +2306,17 @@ const qr = () => ({
2292
2306
  setup: (e, {
2293
2307
  attrs: t
2294
2308
  }) => {
2295
- const r = te()(H.PopoverKey), o = () => {
2296
- var a, u;
2297
- return e.ellipsis ? e.ellipsis === !0 ? 1 : ((a = e.ellipsis) == null ? void 0 : a.rows) || ((u = e.ellipsis) == null ? void 0 : u.num) || 1 : "unset";
2309
+ const r = te()(H.PopoverKey), a = () => {
2310
+ var o, u;
2311
+ return e.ellipsis ? e.ellipsis === !0 ? 1 : ((o = e.ellipsis) == null ? void 0 : o.rows) || ((u = e.ellipsis) == null ? void 0 : u.num) || 1 : "unset";
2298
2312
  };
2299
2313
  return () => {
2300
- const a = s("span", R({
2314
+ const o = s("span", L({
2301
2315
  class: `pro-typography ${e.ellipsis ? "pro-typography-ellipsis" : ""}`,
2302
- style: `-webkit-line-clamp:${o()}`
2316
+ style: `-webkit-line-clamp:${a()}`
2303
2317
  }, t), [kn(e.content, e.emptyText)]);
2304
- return !e.popoverProps || !r ? a : s(r, e.popoverProps, {
2305
- default: () => [a],
2318
+ return !e.popoverProps || !r ? o : s(r, e.popoverProps, {
2319
+ default: () => [o],
2306
2320
  content: () => e.content
2307
2321
  });
2308
2322
  };
@@ -2321,7 +2335,7 @@ const qr = () => ({
2321
2335
  type: Function,
2322
2336
  default: void 0
2323
2337
  }
2324
- }, nt = N({
2338
+ }, rt = O({
2325
2339
  inheritAttrs: !1,
2326
2340
  props: {
2327
2341
  ...Ve
@@ -2329,16 +2343,16 @@ const qr = () => ({
2329
2343
  setup: (e, {
2330
2344
  attrs: t
2331
2345
  }) => {
2332
- const n = E(() => {
2333
- var a;
2334
- const r = (a = e.showProps) == null ? void 0 : a.content, o = e.value || dt(e.value) ? e.value : r;
2335
- return e.convert ? e.convert(o, e) : o;
2346
+ const n = C(() => {
2347
+ var o;
2348
+ const r = (o = e.showProps) == null ? void 0 : o.content, a = e.value || dt(e.value) ? e.value : r;
2349
+ return e.convert ? e.convert(a, e) : a;
2336
2350
  });
2337
- return () => s(sa, R(ne(t, "style", "class"), F(e.showProps, "content"), {
2351
+ return () => s(sa, L(ne(t, "style", "class"), K(e.showProps, "content"), {
2338
2352
  content: n.value
2339
2353
  }), null);
2340
2354
  }
2341
- }), xo = N({
2355
+ }), xo = O({
2342
2356
  inheritAttrs: !1,
2343
2357
  props: {
2344
2358
  ...Ve,
@@ -2354,21 +2368,21 @@ const qr = () => ({
2354
2368
  setup: (e, {
2355
2369
  attrs: t
2356
2370
  }) => {
2357
- const n = E(() => {
2371
+ const n = C(() => {
2358
2372
  let r = e.value;
2359
2373
  return r && e.decimalFixed && (r = ir(r, e.decimalFixed || 2)), r && e.thousandDivision && (r = dr(r)), e.convert ? e.convert(r, e) : r;
2360
2374
  });
2361
2375
  return () => e.render ? e.render({
2362
2376
  value: n.value,
2363
2377
  props: e
2364
- }) : s(nt, R({
2378
+ }) : s(rt, L({
2365
2379
  class: "pro-show-digit"
2366
2380
  }, ne(t, "style", "class"), {
2367
2381
  value: n.value,
2368
2382
  showProps: e.showProps
2369
2383
  }), null);
2370
2384
  }
2371
- }), wo = N({
2385
+ }), wo = O({
2372
2386
  inheritAttrs: !1,
2373
2387
  props: {
2374
2388
  ...Ve,
@@ -2387,24 +2401,24 @@ const qr = () => ({
2387
2401
  setup: (e, {
2388
2402
  attrs: t
2389
2403
  }) => {
2390
- const n = E(() => fr(e.options, (a) => a.label), void 0), r = E(() => {
2391
- const a = e.value;
2404
+ const n = C(() => fr(e.options, (o) => o.label), void 0), r = C(() => {
2405
+ const o = e.value;
2392
2406
  let u = e.value;
2393
- return re(a) ? u = Ze($(a, (l) => g(n.value, l, l)), e.splitStr) : u = g(n.value, a, e.value), e.convert ? e.convert(u, e) : u;
2394
- }), o = E(() => g(e.colorMap, e.value));
2407
+ return re(o) ? u = et($(o, (l) => g(n.value, l, l)), e.splitStr) : u = g(n.value, o, e.value), e.convert ? e.convert(u, e) : u;
2408
+ }), a = C(() => g(e.colorMap, e.value));
2395
2409
  return () => e.render ? e.render({
2396
- color: o.value,
2410
+ color: a.value,
2397
2411
  value: r.value,
2398
2412
  props: e
2399
- }) : s(nt, R({
2413
+ }) : s(rt, L({
2400
2414
  class: "pro-show-options"
2401
2415
  }, ne(t, "style", "class"), {
2402
- style: `color:${o.value || ""}`,
2416
+ style: `color:${a.value || ""}`,
2403
2417
  value: r.value,
2404
2418
  showProps: e.showProps
2405
2419
  }), null);
2406
2420
  }
2407
- }), To = N({
2421
+ }), To = O({
2408
2422
  inheritAttrs: !1,
2409
2423
  props: {
2410
2424
  ...Ve,
@@ -2431,28 +2445,28 @@ const qr = () => ({
2431
2445
  setup: (e, {
2432
2446
  attrs: t
2433
2447
  }) => {
2434
- const n = E(() => {
2435
- const o = e.treeData || e.data || e.options, a = e.fieldNames || e.props;
2436
- return ft(o, (u) => g(u, (a == null ? void 0 : a.label) || "label"), {
2448
+ const n = C(() => {
2449
+ const a = e.treeData || e.data || e.options, o = e.fieldNames || e.props;
2450
+ return ft(a, (u) => g(u, (o == null ? void 0 : o.label) || "label"), {
2437
2451
  value: "value",
2438
2452
  children: "children",
2439
- ...a
2453
+ ...o
2440
2454
  });
2441
- }), r = E(() => {
2442
- let o = e.value;
2443
- return re(e.value) ? o = Ze($(e.value, (a) => g(n.value, a, a)), e.multiple ? e.splitStr2 : e.splitStr) : o = g(n.value, e.value, e.value), e.convert ? e.convert(o, e) : o;
2455
+ }), r = C(() => {
2456
+ let a = e.value;
2457
+ return re(e.value) ? a = et($(e.value, (o) => g(n.value, o, o)), e.multiple ? e.splitStr2 : e.splitStr) : a = g(n.value, e.value, e.value), e.convert ? e.convert(a, e) : a;
2444
2458
  });
2445
2459
  return () => e.render ? e.render({
2446
2460
  value: r.value,
2447
2461
  props: e
2448
- }) : s(nt, R({
2462
+ }) : s(rt, L({
2449
2463
  class: "pro-show-tree"
2450
2464
  }, ne(t, "style", "class"), {
2451
2465
  value: r.value,
2452
2466
  showProps: e.showProps
2453
2467
  }), null);
2454
2468
  }
2455
- }), ko = N({
2469
+ }), ko = O({
2456
2470
  props: {
2457
2471
  ...Ve,
2458
2472
  value: {
@@ -2474,21 +2488,21 @@ const qr = () => ({
2474
2488
  setup: (e, {
2475
2489
  attrs: t
2476
2490
  }) => {
2477
- const n = (o) => o && (e.isUnix ? kt.unix(o).format(e.format) : kt(o).format(e.format)), r = E(() => {
2478
- let o = e.value;
2479
- return re(e.value) ? o = Ze($(e.value, (a) => n(a) || ""), e.splitStr) : o = n(e.value) || "", e.convert ? e.convert(o, e) : o;
2491
+ const n = (a) => a && (e.isUnix ? kt.unix(a).format(e.format) : kt(a).format(e.format)), r = C(() => {
2492
+ let a = e.value;
2493
+ return re(e.value) ? a = et($(e.value, (o) => n(o) || ""), e.splitStr) : a = n(e.value) || "", e.convert ? e.convert(a, e) : a;
2480
2494
  });
2481
2495
  return () => e.render ? e.render({
2482
2496
  value: r.value,
2483
2497
  props: e
2484
- }) : s(nt, R({
2498
+ }) : s(rt, L({
2485
2499
  class: "pro-show-date"
2486
2500
  }, ne(t, "style", "class"), {
2487
2501
  value: r.value,
2488
2502
  showProps: e.showProps
2489
2503
  }), null);
2490
2504
  }
2491
- }), Ao = N({
2505
+ }), Ao = O({
2492
2506
  props: {
2493
2507
  fieldNames: {
2494
2508
  type: Object,
@@ -2506,39 +2520,39 @@ const qr = () => ({
2506
2520
  slots: t,
2507
2521
  emit: n
2508
2522
  }) => {
2509
- const o = te()(H.UploaderKey), a = (f) => {
2510
- const d = mt(f);
2511
- if (re(d)) {
2512
- const i = e.fieldNames;
2513
- return $(d, (h) => ({
2514
- ...F(h, i.id, i.name, i.size),
2515
- id: g(h, i.id),
2516
- name: g(h, i.name),
2517
- size: g(h, i.size)
2523
+ const a = te()(H.UploaderKey), o = (i) => {
2524
+ const f = mt(i);
2525
+ if (re(f)) {
2526
+ const d = e.fieldNames;
2527
+ return $(f, (m) => ({
2528
+ ...K(m, d.id, d.name, d.size),
2529
+ id: g(m, d.id),
2530
+ name: g(m, d.name),
2531
+ size: g(m, d.size)
2518
2532
  }));
2519
2533
  }
2520
2534
  return [];
2521
- }, u = E(() => a(e.value)), l = E(() => a(e.modelValue)), c = (f, d) => {
2522
- let i = "";
2523
- f && ee(f) > 0 && (i = Xe($(f, (h) => {
2524
- var m;
2535
+ }, u = C(() => o(e.value)), l = C(() => o(e.modelValue)), c = (i, f) => {
2536
+ let d = "";
2537
+ i && ee(i) > 0 && (d = Ye($(i, (m) => {
2538
+ var y;
2525
2539
  const p = e.fieldNames, v = {
2526
- [p.id]: h.id,
2527
- [p.name]: h.name,
2528
- [p.size || "size"]: h.size
2540
+ [p.id]: m.id,
2541
+ [p.name]: m.name,
2542
+ [p.size || "size"]: m.size
2529
2543
  };
2530
- return ((m = e.convertItem) == null ? void 0 : m.call(e, h, e.fieldNames)) || v;
2531
- }))), n(d, i);
2544
+ return ((y = e.convertItem) == null ? void 0 : y.call(e, m, e.fieldNames)) || v;
2545
+ }))), n(f, d);
2532
2546
  };
2533
- return () => o ? s(o, R({
2547
+ return () => a ? s(a, L({
2534
2548
  class: "pro-uploader-text",
2535
2549
  value: u.value,
2536
- "onUpdate:value": (f) => c(f, "update:value"),
2550
+ "onUpdate:value": (i) => c(i, "update:value"),
2537
2551
  modelValue: l.value,
2538
- "onUpdate:modelValue": (f) => c(f, "update:modelValue")
2539
- }, F(e, "value", "modelValue", "fieldNames")), t) : null;
2552
+ "onUpdate:modelValue": (i) => c(i, "update:modelValue")
2553
+ }, K(e, "value", "modelValue", "fieldNames")), t) : null;
2540
2554
  }
2541
- }), Do = N({
2555
+ }), Do = O({
2542
2556
  props: {
2543
2557
  value: [String, Array],
2544
2558
  fieldNames: {
@@ -2557,40 +2571,40 @@ const qr = () => ({
2557
2571
  const r = (u) => {
2558
2572
  var l;
2559
2573
  return !!g(u, ((l = e.fieldNames) == null ? void 0 : l.id) || "id");
2560
- }, o = E(() => {
2574
+ }, a = C(() => {
2561
2575
  let u = e.value;
2562
2576
  return u && ye(u) && (u = mt(u)), u && !re(u) && Ke(u) && r(u) && (u = [u]), re(u) ? $(J(u, (l) => r(l)), (l) => {
2563
- var i, h, p;
2564
- const c = g(l, ((i = e.fieldNames) == null ? void 0 : i.id) || "id"), f = g(l, ((h = e.fieldNames) == null ? void 0 : h.name) || "name"), d = g(l, ((p = e.fieldNames) == null ? void 0 : p.name) || "size");
2577
+ var d, m, p;
2578
+ const c = g(l, ((d = e.fieldNames) == null ? void 0 : d.id) || "id"), i = g(l, ((m = e.fieldNames) == null ? void 0 : m.name) || "name"), f = g(l, ((p = e.fieldNames) == null ? void 0 : p.name) || "size");
2565
2579
  return {
2566
2580
  ...l,
2567
2581
  id: c,
2568
- size: d,
2569
- name: f || c
2582
+ size: f,
2583
+ name: i || c
2570
2584
  };
2571
2585
  }) : [];
2572
- }), a = (u) => {
2586
+ }), o = (u) => {
2573
2587
  n("titleClick", u);
2574
2588
  };
2575
2589
  return () => {
2576
2590
  var u, l;
2577
2591
  return s("div", {
2578
2592
  class: "pro-upload-list"
2579
- }, [(u = t.start) == null ? void 0 : u.call(t), $(o.value, (c) => {
2580
- var f;
2593
+ }, [(u = t.start) == null ? void 0 : u.call(t), $(a.value, (c) => {
2594
+ var i;
2581
2595
  return s("div", {
2582
2596
  class: "pro-upload-list-item"
2583
2597
  }, [s("span", {
2584
2598
  class: "pro-upload-list-item-title",
2585
- onClick: () => a(c)
2586
- }, [c.name]), (f = t.extra) == null ? void 0 : f.call(t, c)]);
2599
+ onClick: () => o(c)
2600
+ }, [c.name]), (i = t.extra) == null ? void 0 : i.call(t, c)]);
2587
2601
  }), (l = t.default) == null ? void 0 : l.call(t)]);
2588
2602
  };
2589
2603
  }
2590
2604
  }), ia = {
2591
2605
  open: (e, t, n) => window.open(e, t, n),
2592
2606
  parseStr: (e) => {
2593
- var a;
2607
+ var o;
2594
2608
  if (!e)
2595
2609
  return null;
2596
2610
  try {
@@ -2604,11 +2618,11 @@ const qr = () => ({
2604
2618
  };
2605
2619
  } catch {
2606
2620
  }
2607
- const t = e.indexOf("//") > -1 ? (a = e.split("//")) == null ? void 0 : a[0] : "";
2621
+ const t = e.indexOf("//") > -1 ? (o = e.split("//")) == null ? void 0 : o[0] : "";
2608
2622
  let n = "", r = "";
2609
2623
  e.indexOf("?") >= -1 && (n = e.substring(0, e.indexOf("?")), r = e.substring(e.indexOf("?")));
2610
- const o = r ? Tt(r) : {};
2611
- return { protocol: t, query: o, url: n };
2624
+ const a = r ? Tt(r) : {};
2625
+ return { protocol: t, query: a, url: n };
2612
2626
  },
2613
2627
  stringifyUrl: ({ url: e, query: t }) => {
2614
2628
  const n = gr(t);
@@ -2618,9 +2632,9 @@ const qr = () => ({
2618
2632
  const { convertRouter: e } = ae(), t = dn(), n = ht(), r = ke(), u = { ...t, openMenu: (c) => {
2619
2633
  if (!!c) {
2620
2634
  if (ee(c.children) > 0) {
2621
- const f = tn(c.children, (d) => !d.children || ee(d.children) <= 0);
2622
- if (f) {
2623
- t.push({ name: f.value });
2635
+ const i = tn(c.children, (f) => !f.children || ee(f.children) <= 0);
2636
+ if (i) {
2637
+ t.push({ name: i.value });
2624
2638
  return;
2625
2639
  }
2626
2640
  }
@@ -2628,10 +2642,10 @@ const qr = () => ({
2628
2642
  }
2629
2643
  }, back: () => {
2630
2644
  if (r) {
2631
- const { showTabs: c, convertName: f, closeTab: d } = r;
2645
+ const { showTabs: c, convertName: i, closeTab: f } = r;
2632
2646
  if (c.value) {
2633
- const i = f(n);
2634
- d(i);
2647
+ const d = i(n);
2648
+ f(d);
2635
2649
  }
2636
2650
  }
2637
2651
  t.back();
@@ -2642,40 +2656,40 @@ const qr = () => ({
2642
2656
  return !1;
2643
2657
  const t = e[0];
2644
2658
  return ye(t) ? Qt(t, "$") : !1;
2645
- }, fa = (e) => typeof e != "object" || !e.type$ ? !1 : e.type$ === "data$" && e.type$, ma = (e) => typeof e != "object" || !e.type$ ? !1 : e.type$ === "obj", ya = { get: g, pick: ne, add: Zn, subtract: er }, Qe = (e, t) => {
2659
+ }, fa = (e) => typeof e != "object" || !e.type$ ? !1 : e.type$ === "data$" && e.type$, ma = (e) => typeof e != "object" || !e.type$ ? !1 : e.type$ === "obj", ya = { get: g, pick: ne, add: Zn, subtract: er }, Je = (e, t) => {
2646
2660
  if (fa(e)) {
2647
2661
  const n = g(t, e.name$);
2648
2662
  return e.namePath$ ? g(n, e.namePath$) : n;
2649
2663
  } else if (ma(e)) {
2650
2664
  const n = {};
2651
- return ie(e, (r, o) => {
2652
- if (o !== "type$")
2653
- if (Qt(o, "$")) {
2654
- const a = Qe(r, t);
2655
- he(n, o.replace("$", ""), a);
2665
+ return se(e, (r, a) => {
2666
+ if (a !== "type$")
2667
+ if (Qt(a, "$")) {
2668
+ const o = Je(r, t);
2669
+ he(n, a.replace("$", ""), o);
2656
2670
  } else
2657
- n[o] = r;
2671
+ n[a] = r;
2658
2672
  }), n;
2659
2673
  } else if (da(e)) {
2660
- const [n, ...r] = e, o = t.expressionMethods || ya, a = g(o, n.replace("$", ""));
2661
- if (!a) {
2674
+ const [n, ...r] = e, a = t.expressionMethods || ya, o = g(a, n.replace("$", ""));
2675
+ if (!o) {
2662
2676
  console.log("ex", "\u672A\u627E\u5230\u5BF9\u5E94\u7684\u65B9\u6CD5", e);
2663
2677
  return;
2664
2678
  }
2665
- const u = $(r, (l) => Qe(l, t));
2666
- return a(...u);
2679
+ const u = $(r, (l) => Je(l, t));
2680
+ return o(...u);
2667
2681
  }
2668
2682
  return e;
2669
2683
  }, va = () => {
2670
2684
  const e = un(), { registerStoreMap: t } = ae();
2671
2685
  return (n, r) => {
2672
- const o = g(t, n);
2673
- !o || e(n, r, !!o.persist, o.initialState);
2686
+ const a = g(t, n);
2687
+ !a || e(n, r, !!a.persist, a.initialState);
2674
2688
  };
2675
2689
  }, No = (e) => {
2676
2690
  const { registerStoreMap: t } = ae(), n = g(t, e), r = `${n != null && n.persist ? "$" : ""}${n == null ? void 0 : n.key}`;
2677
- return ln(cn((a) => {
2678
- const u = g(a, r);
2691
+ return ln(cn((o) => {
2692
+ const u = g(o, r);
2679
2693
  return u || (Y(n == null ? void 0 : n.initialState) ? n == null ? void 0 : n.initialState() : n == null ? void 0 : n.initialState);
2680
2694
  }));
2681
2695
  }, An = Symbol("pro-module"), we = () => be(An), ha = (e) => {
@@ -2720,7 +2734,7 @@ const qr = () => ({
2720
2734
  requests: {
2721
2735
  type: Array
2722
2736
  }
2723
- }), We = N({
2737
+ }), We = O({
2724
2738
  props: {
2725
2739
  ...ga()
2726
2740
  },
@@ -2729,134 +2743,134 @@ const qr = () => ({
2729
2743
  expose: n
2730
2744
  }) => {
2731
2745
  const r = yr(), {
2732
- router: o
2746
+ router: a
2733
2747
  } = Ce(), {
2734
- elementMap: a,
2748
+ elementMap: o,
2735
2749
  registerStoreMap: u,
2736
2750
  expressionMethods: l
2737
- } = ae(), c = e.elementMap || a, f = (y) => re(y) ? Ct(c, y) : Be(c, y), d = new rr(), i = (y) => {
2738
- d.next(y);
2739
- }, h = J(e.storeKeys, (y) => it(u, y)), p = () => se(h, (y, M) => {
2740
- const A = g(u, M);
2751
+ } = ae(), c = e.elementMap || o, i = (h) => re(h) ? Ct(c, h) : Be(c, h), f = new rr(), d = (h) => {
2752
+ f.next(h);
2753
+ }, m = J(e.storeKeys, (h) => it(u, h)), p = () => ie(m, (h, E) => {
2754
+ const k = g(u, E);
2741
2755
  return {
2742
- ...y,
2743
- [M]: g(r.value, `${A.persist ? "$" : ""}${M}`) || g(u, [M, "initialState"])
2756
+ ...h,
2757
+ [E]: g(r.value, `${k.persist ? "$" : ""}${E}`) || g(u, [E, "initialState"])
2744
2758
  };
2745
- }, {}), v = p(), m = e.state || ve({
2759
+ }, {}), v = p(), y = e.state || ve({
2746
2760
  ...v,
2747
2761
  ...e.initState
2748
- }), b = {}, x = (y) => {
2749
- const M = m[y.type], A = Y(y.payload) ? y.payload(M) : y.payload;
2750
- if (!re(M) && Ke(M)) {
2751
- yt(m[y.type], A);
2762
+ }), b = {}, x = (h) => {
2763
+ const E = y[h.type], k = Y(h.payload) ? h.payload(E) : h.payload;
2764
+ if (!re(E) && Ke(E)) {
2765
+ yt(y[h.type], k);
2752
2766
  return;
2753
2767
  }
2754
- m[y.type] = A;
2768
+ y[h.type] = k;
2755
2769
  }, D = va(), I = {
2756
2770
  dispatch: x,
2757
2771
  dispatchStore: D
2758
2772
  };
2759
2773
  ue(() => {
2760
- const y = r.pipe(ar(() => p()), or((M) => {
2761
- ie(M, (A, w) => {
2762
- const P = g(m, w);
2763
- vr(P, A) || x({
2774
+ const h = r.pipe(ar(() => p()), or((E) => {
2775
+ se(E, (k, w) => {
2776
+ const P = g(y, w);
2777
+ vr(P, k) || x({
2764
2778
  type: w,
2765
- payload: A
2779
+ payload: k
2766
2780
  });
2767
2781
  });
2768
2782
  })).subscribe();
2769
2783
  return () => {
2770
- y.unsubscribe();
2784
+ h.unsubscribe();
2771
2785
  };
2772
2786
  }, []);
2773
2787
  const {
2774
2788
  dispatchRequest: S
2775
- } = Ue(), K = (() => {
2776
- const y = {}, M = se(e.actors || [], (A, w) => ({
2777
- ...A,
2789
+ } = Ue(), R = (() => {
2790
+ const h = {}, E = ie(e.actors || [], (k, w) => ({
2791
+ ...k,
2778
2792
  [w.name]: w
2779
2793
  }), {});
2780
- return ie(e.requests, (A) => {
2781
- if (ye(A.actor)) {
2782
- const w = g(M, A.actor);
2794
+ return se(e.requests, (k) => {
2795
+ if (ye(k.actor)) {
2796
+ const w = g(E, k.actor);
2783
2797
  if (!w)
2784
2798
  return;
2785
- A.actor = w;
2799
+ k.actor = w;
2786
2800
  }
2787
- !A.actor || (y[A.actor.name] = A, A.action && (y[A.action] = A));
2788
- }), y;
2789
- })(), j = (y, ...M) => y.convertParams ? y.convertParams(...M) : y.convertParamsEx ? k(y.convertParamsEx, M) : g(M, 0), G = (y, M) => {
2790
- var A;
2791
- return y.convertData ? y.convertData(M) : y.convertDataEx ? k(y.convertDataEx, M) : (A = M.res) == null ? void 0 : A.data;
2792
- }, oe = (y, ...M) => {
2793
- const A = g(K, y);
2794
- if (!A)
2801
+ !k.actor || (h[k.actor.name] = k, k.action && (h[k.action] = k));
2802
+ }), h;
2803
+ })(), j = (h, ...E) => h.convertParams ? h.convertParams(...E) : h.convertParamsEx ? N(h.convertParamsEx, E) : g(E, 0), G = (h, E) => {
2804
+ var k;
2805
+ return h.convertData ? h.convertData(E) : h.convertDataEx ? N(h.convertDataEx, E) : (k = E.res) == null ? void 0 : k.data;
2806
+ }, oe = (h, ...E) => {
2807
+ const k = g(R, h);
2808
+ if (!k)
2795
2809
  return;
2796
- const w = j(A, ...M);
2797
- A.loadingName && x({
2798
- type: A.loadingName,
2810
+ const w = j(k, ...E);
2811
+ k.loadingName && x({
2812
+ type: k.loadingName,
2799
2813
  payload: !0
2800
- }), S(A.actor, w);
2814
+ }), S(k.actor, w);
2801
2815
  };
2802
- Er(Z(K), {
2803
- onSuccess: (y) => {
2816
+ Er(Z(R), {
2817
+ onSuccess: (h) => {
2804
2818
  var w;
2805
- const M = g(K, y.name), A = G(M, y);
2806
- M != null && M.stateName && x({
2807
- type: M.stateName,
2808
- payload: A
2809
- }), i({
2819
+ const E = g(R, h.name), k = G(E, h);
2820
+ E != null && E.stateName && x({
2821
+ type: E.stateName,
2822
+ payload: k
2823
+ }), d({
2810
2824
  type: je.Success,
2811
2825
  payload: {
2812
- actor: y,
2813
- requestOpts: M
2826
+ actor: h,
2827
+ requestOpts: E
2814
2828
  }
2815
- }), (w = M.onSuccess) == null || w.call(M, y), M.onSuccessEx && L(M.onSuccessEx, [A]);
2829
+ }), (w = E.onSuccess) == null || w.call(E, h), E.onSuccessEx && A(E.onSuccessEx, [k]);
2816
2830
  },
2817
- onFailed: (y) => {
2818
- var A;
2819
- const M = g(K, y.name);
2820
- i({
2831
+ onFailed: (h) => {
2832
+ var k;
2833
+ const E = g(R, h.name);
2834
+ d({
2821
2835
  type: je.Fail,
2822
2836
  payload: {
2823
- actor: y,
2824
- requestOpts: M
2837
+ actor: h,
2838
+ requestOpts: E
2825
2839
  }
2826
- }), (A = M.onFailed) == null || A.call(M, y), M.onFailedEx && L(M.onFailedEx, [y.err]);
2840
+ }), (k = E.onFailed) == null || k.call(E, h), E.onFailedEx && A(E.onFailedEx, [h.err]);
2827
2841
  },
2828
- onFinish: (y) => {
2829
- const M = g(K, [y.name, "loadingName"]);
2830
- M && x({
2831
- type: M,
2842
+ onFinish: (h) => {
2843
+ const E = g(R, [h.name, "loadingName"]);
2844
+ E && x({
2845
+ type: E,
2832
2846
  payload: !1
2833
2847
  });
2834
2848
  }
2835
2849
  }, !0);
2836
- const k = (y, M) => Qe(y, {
2837
- state: m,
2850
+ const N = (h, E) => Je(h, {
2851
+ state: y,
2838
2852
  data: b,
2839
- args: M,
2853
+ args: E,
2840
2854
  expressionMethods: l
2841
- }), L = (y, M) => {
2842
- if (!y)
2855
+ }), A = (h, E) => {
2856
+ if (!h)
2843
2857
  return;
2844
- const A = {
2845
- state: m,
2858
+ const k = {
2859
+ state: y,
2846
2860
  data: b,
2847
- args: M,
2861
+ args: E,
2848
2862
  expressionMethods: l
2849
2863
  };
2850
- ie(y, (w) => {
2864
+ se(h, (w) => {
2851
2865
  if (!re(w) || ee(w) < 2) {
2852
2866
  console.log("execute invalid", w);
2853
2867
  return;
2854
2868
  }
2855
- const [P, B, ...q] = w;
2869
+ const [P, B, ...U] = w;
2856
2870
  let W;
2857
2871
  switch (P) {
2858
2872
  case "router":
2859
- W = g(o, B);
2873
+ W = g(a, B);
2860
2874
  break;
2861
2875
  case "state":
2862
2876
  W = g(I, B);
@@ -2864,101 +2878,101 @@ const qr = () => ({
2864
2878
  }
2865
2879
  if (W)
2866
2880
  try {
2867
- const O = $(q, (V) => Qe(V, A));
2868
- W(...O);
2869
- } catch (O) {
2870
- console.log("execute err", O);
2881
+ const F = $(U, (z) => Je(z, k));
2882
+ W(...F);
2883
+ } catch (F) {
2884
+ console.log("execute err", F);
2871
2885
  }
2872
2886
  });
2873
2887
  };
2874
2888
  return ha({
2875
2889
  elementMap: c,
2876
- subject$: d,
2877
- sendEvent: i,
2878
- state: m,
2890
+ subject$: f,
2891
+ sendEvent: d,
2892
+ state: y,
2879
2893
  dispatch: x,
2880
2894
  data: b,
2881
2895
  requests: e.requests,
2882
2896
  sendRequest: oe,
2883
- executeExp: k,
2884
- execute: L
2897
+ executeExp: N,
2898
+ execute: A
2885
2899
  }), n({
2886
- sendEvent: i,
2900
+ sendEvent: d,
2887
2901
  sendRequest: oe
2888
2902
  }), () => {
2889
- var y;
2890
- return s(fe, null, [ee(e.elementConfigs) > 0 && f(e.elementConfigs), (y = t.default) == null ? void 0 : y.call(t)]);
2903
+ var h;
2904
+ return s(fe, null, [ee(e.elementConfigs) > 0 && i(e.elementConfigs), (h = t.default) == null ? void 0 : h.call(t)]);
2891
2905
  };
2892
2906
  }
2893
2907
  }), ct = (e) => {
2894
2908
  var t, n;
2895
2909
  return !(!e || ((n = (t = e == null ? void 0 : e[0]) == null ? void 0 : t.type) == null ? void 0 : n.toString()) === "Symbol(Comment)");
2896
2910
  }, Dn = (e) => e.formValueType || e.valueType || "text", pe = (e) => {
2897
- var r, o;
2911
+ var r, a;
2898
2912
  const t = (r = e.formItemProps) == null ? void 0 : r.name;
2899
- return ((o = e.inputProps) == null ? void 0 : o.name) || t || e.dataIndex;
2913
+ return ((a = e.inputProps) == null ? void 0 : a.name) || t || e.dataIndex;
2900
2914
  }, pa = (e, t) => {
2901
2915
  let n = t;
2902
2916
  return ye(t) && (n = g(e, t)), Y(n) || (n = g(e, "render")), Y(n) ? n : void 0;
2903
2917
  }, Pt = (e, t, n, r) => {
2904
- var d, i, h;
2905
- const o = pa(t, r == null ? void 0 : r.render);
2906
- if (o)
2907
- return o({
2918
+ var f, d, m;
2919
+ const a = pa(t, r == null ? void 0 : r.render);
2920
+ if (a)
2921
+ return a({
2908
2922
  ...n,
2909
2923
  column: t
2910
2924
  });
2911
- const a = t.valueType || "text", u = g(e, a);
2925
+ const o = t.valueType || "text", u = g(e, o);
2912
2926
  if (!u)
2913
2927
  return null;
2914
- const l = ((d = t.props) == null ? void 0 : d.slots) || ((i = t.formFieldProps) == null ? void 0 : i.slots) || {}, c = n || {};
2915
- u.props.showProps && (c.showProps = t.props ? (h = t.props) == null ? void 0 : h.showProps : t.showProps);
2916
- const f = t.props ? {
2917
- ...F(t.props, "slots"),
2928
+ const l = ((f = t.props) == null ? void 0 : f.slots) || ((d = t.formFieldProps) == null ? void 0 : d.slots) || {}, c = n || {};
2929
+ u.props.showProps && (c.showProps = t.props ? (m = t.props) == null ? void 0 : m.showProps : t.showProps);
2930
+ const i = t.props ? {
2931
+ ...K(t.props, "slots"),
2918
2932
  ...c
2919
2933
  } : {
2920
- ...F(t.formFieldProps, "slots"),
2934
+ ...K(t.formFieldProps, "slots"),
2921
2935
  ...c
2922
2936
  };
2923
2937
  return Fe(u, {
2924
- ...f
2938
+ ...i
2925
2939
  }, l);
2926
2940
  }, Nn = (e, t, n) => {
2927
- var d, i;
2928
- const r = Dn(n), o = g(t, r);
2929
- if (!o)
2941
+ var f, d;
2942
+ const r = Dn(n), a = g(t, r);
2943
+ if (!a)
2930
2944
  return null;
2931
- const a = n.inputProps, u = ((d = a == null ? void 0 : a.fieldProps) == null ? void 0 : d.slots) || ((i = n.formFieldProps) == null ? void 0 : i.slots) || {};
2932
- !u.renderInput && Y(n.inputRender) && (u.renderInput = (h) => n.inputRender({
2933
- ...h,
2945
+ const o = n.inputProps, u = ((f = o == null ? void 0 : o.fieldProps) == null ? void 0 : f.slots) || ((d = n.formFieldProps) == null ? void 0 : d.slots) || {};
2946
+ !u.renderInput && Y(n.inputRender) && (u.renderInput = (m) => n.inputRender({
2947
+ ...m,
2934
2948
  column: n
2935
- })), u.renderShow || (u.renderShow = (h) => Pt(e, n, {
2936
- value: h.value
2949
+ })), u.renderShow || (u.renderShow = (m) => Pt(e, n, {
2950
+ value: m.value
2937
2951
  }, {
2938
2952
  render: "formReadRender"
2939
- }) || h.value);
2940
- const l = pe(n), c = n.title, f = a ? {
2941
- ...a,
2942
- fieldProps: F(a.fieldProps, "slots")
2953
+ }) || m.value);
2954
+ const l = pe(n), c = n.title, i = o ? {
2955
+ ...o,
2956
+ fieldProps: K(o.fieldProps, "slots")
2943
2957
  } : {
2944
2958
  ...n.formItemProps,
2945
- fieldProps: F(n.formFieldProps, "slots"),
2959
+ fieldProps: K(n.formFieldProps, "slots"),
2946
2960
  showProps: n.showProps
2947
2961
  };
2948
- return Fe(o, {
2962
+ return Fe(a, {
2949
2963
  key: l,
2950
2964
  name: l,
2951
2965
  label: c,
2952
- ...f
2966
+ ...i
2953
2967
  }, u);
2954
2968
  }, ba = (e) => e && !Y(e) && e.elementType, Ct = (e, t) => $(t, (n) => Be(e, n)), On = (e, t) => {
2955
- var a;
2969
+ var o;
2956
2970
  const n = t.elementProps, r = {
2957
2971
  ...t.elementProps
2958
- }, o = n == null ? void 0 : n.class;
2959
- return o && (typeof o == "object" ? r.class = At(o) : ye(o) && o.indexOf(":") > 0 && (r.class = At`
2960
- ${o}
2961
- `)), ie((a = t.highConfig$) == null ? void 0 : a.registerPropsTrans, (u) => {
2972
+ }, a = n == null ? void 0 : n.class;
2973
+ return a && (typeof a == "object" ? r.class = At(a) : ye(a) && a.indexOf(":") > 0 && (r.class = At`
2974
+ ${a}
2975
+ `)), se((o = t.highConfig$) == null ? void 0 : o.registerPropsTrans, (u) => {
2962
2976
  const l = g(n, u.name);
2963
2977
  if (!(!l || Oe(l))) {
2964
2978
  if (re(l)) {
@@ -2968,22 +2982,22 @@ const qr = () => ({
2968
2982
  return;
2969
2983
  }
2970
2984
  !l.elementType || (u.isFun ? he(r, u.name, (...c) => {
2971
- const f = u.needParams ? {
2985
+ const i = u.needParams ? {
2972
2986
  ...l.elementProps,
2973
2987
  params$: c
2974
2988
  } : l.elementProps;
2975
2989
  return Be(e, {
2976
2990
  ...l,
2977
- elementProps: f
2991
+ elementProps: i
2978
2992
  });
2979
2993
  }) : he(r, u.name, Be(e, l)));
2980
2994
  }
2981
2995
  }), r;
2982
2996
  }, Fn = (e, t) => {
2983
- const n = ee(t.children) > 0 ? Ct(e, t.children) : void 0, r = t.childrenSlotName || "default", o = F(t.slots, n ? r : "");
2984
- return ie(Z(o), (a) => {
2985
- const u = o[a];
2986
- ba(u) ? o[a] = (...l) => {
2997
+ const n = ee(t.children) > 0 ? Ct(e, t.children) : void 0, r = t.childrenSlotName || "default", a = K(t.slots, n ? r : "");
2998
+ return se(Z(a), (o) => {
2999
+ const u = a[o];
3000
+ ba(u) ? a[o] = (...l) => {
2987
3001
  const c = u.needParams ? {
2988
3002
  ...u.elementProps,
2989
3003
  params$: l
@@ -2992,10 +3006,10 @@ const qr = () => ({
2992
3006
  ...u,
2993
3007
  elementProps: c
2994
3008
  });
2995
- } : (ye(u) || dt(u)) && (o[a] = () => u);
3009
+ } : (ye(u) || dt(u)) && (a[o] = () => u);
2996
3010
  }), {
2997
3011
  [r]: n ? () => n : void 0,
2998
- ...o
3012
+ ...a
2999
3013
  };
3000
3014
  }, Be = (e, t) => {
3001
3015
  const n = g(e, t.elementType) || t.elementType;
@@ -3005,12 +3019,12 @@ const qr = () => ({
3005
3019
  elementMap: e,
3006
3020
  elementConfig: t
3007
3021
  });
3008
- const r = Fn(e, t), o = On(e, t);
3022
+ const r = Fn(e, t), a = On(e, t);
3009
3023
  return Fe(n, {
3010
3024
  key: t.elementId,
3011
- ...o
3025
+ ...a
3012
3026
  }, r);
3013
- }, Sa = (e) => re(e) ? tr(e) : ye(e) && e.indexOf(".") > 0 ? e.substring(0, e.indexOf(".")) : e, Pa = N({
3027
+ }, Sa = (e) => re(e) ? tr(e) : ye(e) && e.indexOf(".") > 0 ? e.substring(0, e.indexOf(".")) : e, Pa = O({
3014
3028
  props: {
3015
3029
  elementMap: {
3016
3030
  type: Object
@@ -3026,67 +3040,67 @@ const qr = () => ({
3026
3040
  sendEvent: n,
3027
3041
  execute: r
3028
3042
  } = we(), {
3029
- elementMap: o,
3030
- elementConfig: a
3031
- } = e, u = a.highConfig$, l = On(o, a);
3032
- ie((p = a.highConfig$) == null ? void 0 : p.registerEventList, (v) => {
3033
- const m = (...x) => {
3034
- const D = `${a.elementId}-${v.name}`;
3043
+ elementMap: a,
3044
+ elementConfig: o
3045
+ } = e, u = o.highConfig$, l = On(a, o);
3046
+ se((p = o.highConfig$) == null ? void 0 : p.registerEventList, (v) => {
3047
+ const y = (...x) => {
3048
+ const D = `${o.elementId}-${v.name}`;
3035
3049
  n({
3036
3050
  type: D,
3037
3051
  payload: x
3038
3052
  }), r(v.executeList, x);
3039
3053
  }, b = nn(v.name, l);
3040
- l && rn(b) && an(b, l) && he(l, b, m);
3054
+ l && rn(b) && an(b, l) && he(l, b, y);
3041
3055
  });
3042
- const c = E(() => {
3056
+ const c = C(() => {
3043
3057
  if (!u.registerStateList || ee(u.registerStateList) <= 0)
3044
3058
  return;
3045
3059
  const v = {
3046
3060
  ...l
3047
- }, m = J(u.registerStateList, (x) => !x.target || x.target === "prop"), b = $(m, (x) => {
3061
+ }, y = J(u.registerStateList, (x) => !x.target || x.target === "prop"), b = $(y, (x) => {
3048
3062
  const D = x.mapName || x.name, I = g(t, x.name);
3049
3063
  return he(v, D, I), Sa(D);
3050
3064
  });
3051
3065
  return ne(v, b);
3052
- }), f = g(o, a.elementType) || a.elementType, d = Fn(o, a), i = se(J(u.registerStateList, (v) => v.target === "slot"), (v, m) => ({
3066
+ }), i = g(a, o.elementType) || o.elementType, f = Fn(a, o), d = ie(J(u.registerStateList, (v) => v.target === "slot"), (v, y) => ({
3053
3067
  ...v,
3054
- [m.mapName]: () => g(t, m.name)
3055
- }), {}), h = {
3056
- ...d,
3057
- ...i
3068
+ [y.mapName]: () => g(t, y.name)
3069
+ }), {}), m = {
3070
+ ...f,
3071
+ ...d
3058
3072
  };
3059
- return () => g(c.value, "show$") === !1 ? null : Fe(f, {
3060
- key: a.elementId,
3073
+ return () => g(c.value, "show$") === !1 ? null : Fe(i, {
3074
+ key: o.elementId,
3061
3075
  ...l,
3062
- ...F(c.value, "show$")
3063
- }, h);
3076
+ ...K(c.value, "show$")
3077
+ }, m);
3064
3078
  }
3065
3079
  }), Ca = (e, t) => {
3066
- !e || !t || Wt(t) || Oe(e) || ie(t, (n, r) => {
3067
- const o = nn(r, e);
3068
- if (!rn(o)) {
3080
+ !e || !t || Wt(t) || Oe(e) || se(t, (n, r) => {
3081
+ const a = nn(r, e);
3082
+ if (!rn(a)) {
3069
3083
  console.log("ConfigExtra\uFF1A\u8865\u5145\u5BF9\u8C61key\u8F6C\u6362\u5931\u8D25", e.elementId, r);
3070
3084
  return;
3071
3085
  }
3072
- if (!an(o, e)) {
3073
- console.log("ConfigExtra\uFF1A\u8865\u5145\u5BF9\u8C61key\u672A\u627E\u5230\u7236\u7EA7", e.elementId, r, "->", o);
3086
+ if (!an(a, e)) {
3087
+ console.log("ConfigExtra\uFF1A\u8865\u5145\u5BF9\u8C61key\u672A\u627E\u5230\u7236\u7EA7", e.elementId, r, "->", a);
3074
3088
  return;
3075
3089
  }
3076
- he(e, o, n);
3090
+ he(e, a, n);
3077
3091
  });
3078
3092
  }, Ne = (e, t) => {
3079
3093
  Ca(e, g(t, e.elementId));
3080
3094
  const n = g(e, ["highConfig$", "registerPropsTrans"]);
3081
- n && ee(n) > 0 && ie(n, (r) => {
3082
- const o = g(e.elementProps, r.name);
3083
- re(o) ? ie(o, (a) => {
3084
- Ne(a, t);
3085
- }) : Ne(o, t);
3086
- }), e.children && ee(e.children) > 0 && ie(e.children, (r) => {
3095
+ n && ee(n) > 0 && se(n, (r) => {
3096
+ const a = g(e.elementProps, r.name);
3097
+ re(a) ? se(a, (o) => {
3098
+ Ne(o, t);
3099
+ }) : Ne(a, t);
3100
+ }), e.children && ee(e.children) > 0 && se(e.children, (r) => {
3087
3101
  Ne(r, t);
3088
3102
  });
3089
- }, Ma = N({
3103
+ }, Ma = O({
3090
3104
  props: {
3091
3105
  initExecuteList: {
3092
3106
  type: Array
@@ -3105,21 +3119,21 @@ const qr = () => ({
3105
3119
  configData: t,
3106
3120
  configDataExtra: n,
3107
3121
  Logic: r
3108
- }) => N(() => {
3109
- const o = Q(), a = (c) => {
3110
- const f = Jt(c);
3111
- return n && (re(f) ? ie(f, (d) => Ne(d, n)) : Ne(f, n)), f;
3122
+ }) => O(() => {
3123
+ const a = Q(), o = (c) => {
3124
+ const i = Jt(c);
3125
+ return n && (re(i) ? se(i, (f) => Ne(f, n)) : Ne(i, n)), i;
3112
3126
  };
3113
3127
  ue(() => {
3114
- t && t.elementConfigs && (o.value = a(t.elementConfigs)), t != null && t.elementConfigs;
3128
+ t && t.elementConfigs && (a.value = o(t.elementConfigs)), t != null && t.elementConfigs;
3115
3129
  }, []);
3116
3130
  const l = te()(H.LoadingKey);
3117
- return () => o.value ? s(We, {
3131
+ return () => a.value ? s(We, {
3118
3132
  initState: t == null ? void 0 : t.initState,
3119
3133
  storeKeys: t == null ? void 0 : t.storeKeys,
3120
3134
  actors: e,
3121
3135
  requests: t == null ? void 0 : t.requests,
3122
- elementConfigs: o.value
3136
+ elementConfigs: a.value
3123
3137
  }, {
3124
3138
  default: () => [s(Ma, null, null), r && s(r, null, null)]
3125
3139
  }) : l ? s(l, {
@@ -3130,7 +3144,7 @@ const qr = () => ({
3130
3144
  }, null)]
3131
3145
  }) : null;
3132
3146
  }), Kn = Symbol("pro-curd"), le = () => be(Kn), Ea = (e) => Se(Kn, e);
3133
- var U = /* @__PURE__ */ ((e) => (e.LIST = "LIST", e.DETAIL = "DETAIL", e.ADD = "ADD", e.EDIT = "EDIT", e.DELETE = "DELETE", e))(U || {}), _ = /* @__PURE__ */ ((e) => (e.EMIT = "EMIT", e.EXECUTE = "EXECUTE", e.PAGE = "PAGE", e.SUCCESS = "SUCCESS", e.FAIL = "FAIL", e))(_ || {}), Me = /* @__PURE__ */ ((e) => (e.ADD = "ADD", e.EDIT = "EDIT", e.DETAIL = "DETAIL", e))(Me || {}), qe = /* @__PURE__ */ ((e) => (e.NORMAL = "NORMAL", e.CONTINUE = "CONTINUE", e))(qe || {});
3147
+ var V = /* @__PURE__ */ ((e) => (e.LIST = "LIST", e.DETAIL = "DETAIL", e.ADD = "ADD", e.EDIT = "EDIT", e.DELETE = "DELETE", e))(V || {}), _ = /* @__PURE__ */ ((e) => (e.EMIT = "EMIT", e.EXECUTE = "EXECUTE", e.PAGE = "PAGE", e.SUCCESS = "SUCCESS", e.FAIL = "FAIL", e))(_ || {}), Me = /* @__PURE__ */ ((e) => (e.ADD = "ADD", e.EDIT = "EDIT", e.DETAIL = "DETAIL", e))(Me || {}), qe = /* @__PURE__ */ ((e) => (e.NORMAL = "NORMAL", e.CONTINUE = "CONTINUE", e))(qe || {});
3134
3148
  const Ia = () => ({
3135
3149
  rowKey: {
3136
3150
  type: String,
@@ -3169,7 +3183,7 @@ const Ia = () => ({
3169
3183
  subPageProps: {
3170
3184
  type: Object
3171
3185
  }
3172
- }), Mt = ["sendCurdEvent", "refreshList", "sendEvent", "sendRequest"], $t = N({
3186
+ }), Mt = ["sendCurdEvent", "refreshList", "sendEvent", "sendRequest"], $t = O({
3173
3187
  inheritAttrs: !1,
3174
3188
  props: {
3175
3189
  ...Te,
@@ -3180,112 +3194,109 @@ const Ia = () => ({
3180
3194
  expose: n
3181
3195
  }) => {
3182
3196
  const r = ke(), {
3183
- route: o
3197
+ route: a
3184
3198
  } = Ce(), {
3185
- elementMap: a,
3199
+ elementMap: o,
3186
3200
  state: u,
3187
3201
  sendEvent: l,
3188
3202
  sendRequest: c
3189
- } = we(), f = E(() => {
3203
+ } = we(), i = C(() => {
3190
3204
  if (e.title)
3191
3205
  return e.title;
3192
3206
  if (e.useMenuName && r) {
3193
3207
  const {
3194
- menus: y,
3195
- convertName: M
3208
+ menus: h,
3209
+ convertName: E
3196
3210
  } = r, {
3197
- target: A
3198
- } = $e(y.value, (w) => w.value === M(o));
3199
- return (A == null ? void 0 : A.label) || "";
3211
+ target: k
3212
+ } = $e(h.value, (w) => w.value === E(a));
3213
+ return (k == null ? void 0 : k.label) || "";
3200
3214
  }
3201
3215
  return "";
3202
- }), d = E(() => tt(e.columns, e.columnState, e.columnState2)), i = (y, M) => {
3203
- const A = J(d.value, (w) => {
3204
- const P = g(w, ["extra", y]) || g(w, y);
3205
- return M ? P !== !1 : P;
3216
+ }), f = C(() => nt(e.columns, e.columnState, e.columnState2)), d = (h, E) => {
3217
+ const k = J(f.value, (w) => {
3218
+ const P = g(w, ["extra", h]) || g(w, h);
3219
+ return E ? P !== !1 : P;
3206
3220
  });
3207
- return Gt(A, (w) => g(w, ["extra", `${y}Sort`]) || g(w, `${y}Sort`));
3208
- }, h = E(() => i("form", !0)), p = E(() => i("detail", !0)), v = E(() => i("table", !0)), m = E(() => i("search"));
3221
+ return Gt(k, (w) => g(w, ["extra", `${h}Sort`]) || g(w, `${h}Sort`));
3222
+ }, m = C(() => d("form", !0)), p = C(() => d("detail", !0)), v = C(() => d("table", !0)), y = C(() => d("search"));
3209
3223
  let b;
3210
- const x = (y) => {
3211
- c(U.LIST, {
3224
+ const x = (h) => {
3225
+ c(V.LIST, {
3212
3226
  ...b,
3213
- ...y
3227
+ ...h
3214
3228
  });
3215
- }, D = (y) => {
3229
+ }, D = (h) => {
3216
3230
  l({
3217
- type: y.action,
3218
- payload: F(y, "action", "source"),
3219
- source: y.source
3231
+ type: h.action,
3232
+ payload: K(h, "action", "source"),
3233
+ source: h.source
3220
3234
  });
3221
3235
  };
3222
3236
  St(({
3223
- type: y,
3224
- payload: M,
3225
- source: A
3237
+ type: h,
3238
+ payload: E,
3239
+ source: k
3226
3240
  }) => {
3227
- if (A)
3241
+ if (k)
3228
3242
  return;
3229
- let w = y, P = M == null ? void 0 : M.type;
3230
- w === je.Success && (w = g(M, ["requestOpts", "action"]), P = _.SUCCESS);
3243
+ let w = h, P = E == null ? void 0 : E.type;
3244
+ w === je.Success && (w = g(E, ["requestOpts", "action"]), P = _.SUCCESS);
3231
3245
  const {
3232
3246
  values: B,
3233
- record: q
3234
- } = M;
3247
+ record: U
3248
+ } = E;
3235
3249
  switch (w) {
3236
- case U.LIST:
3250
+ case V.LIST:
3237
3251
  P === _.EMIT && (b = B, x());
3238
3252
  return;
3239
- case U.ADD:
3240
- P === _.EXECUTE && c(U.ADD, B, u.detailData);
3253
+ case V.ADD:
3254
+ P === _.EXECUTE && c(V.ADD, B, u.detailData);
3241
3255
  return;
3242
- case U.EDIT:
3243
- P === _.EXECUTE && c(U.EDIT, B, u.detailData);
3256
+ case V.EDIT:
3257
+ P === _.EXECUTE && c(V.EDIT, B, u.detailData);
3244
3258
  return;
3245
- case U.DELETE:
3246
- P === _.EMIT ? c(U.DELETE, q, e.rowKey) : P === _.SUCCESS && x();
3259
+ case V.DELETE:
3260
+ P === _.EMIT ? c(V.DELETE, U, e.rowKey) : P === _.SUCCESS && x();
3247
3261
  return;
3248
3262
  }
3249
- w && y === _.EXECUTE && c(w, B);
3263
+ w && h === _.EXECUTE && c(w, B);
3250
3264
  });
3251
- const I = se(e.operates, (y, M) => ({
3252
- ...y,
3253
- [M.action]: M
3254
- }), {}), S = (y) => g(I, y), T = E(() => e.defaultAddRecord), K = E(() => e.listProps), j = E(() => e.formProps), G = E(() => e.descProps), oe = E(() => e.modalProps), k = E(() => e.pageProps), L = E(() => e.subPageProps);
3265
+ const I = C(() => e.operates), S = (h) => Ge(e.operates, (E) => E.action === h), T = C(() => e.defaultAddRecord), R = C(() => e.listProps), j = C(() => e.formProps), G = C(() => e.descProps), oe = C(() => e.modalProps), N = C(() => e.pageProps), A = C(() => e.subPageProps);
3255
3266
  return Ea({
3256
- columns: d,
3257
- getSignColumns: i,
3258
- elementMap: a,
3267
+ columns: f,
3268
+ getSignColumns: d,
3269
+ elementMap: o,
3259
3270
  formElementMap: e.formElementMap,
3260
3271
  rowKey: e.rowKey,
3261
3272
  curdState: u,
3262
- formColumns: h,
3273
+ formColumns: m,
3263
3274
  descColumns: p,
3264
3275
  tableColumns: v,
3265
- searchColumns: m,
3276
+ searchColumns: y,
3266
3277
  sendCurdEvent: D,
3267
- operates: e.operates,
3278
+ operates: I,
3268
3279
  getOperate: S,
3269
3280
  refreshList: x,
3270
3281
  defaultAddRecord: T,
3271
- title: f.value,
3272
- listProps: K,
3282
+ title: i.value,
3283
+ listProps: R,
3273
3284
  formProps: j,
3274
3285
  descProps: G,
3275
3286
  modalProps: oe,
3276
- pageProps: k,
3277
- subPageProps: L
3287
+ pageProps: N,
3288
+ subPageProps: A
3278
3289
  }), n({
3279
3290
  sendCurdEvent: D,
3280
3291
  refreshList: x
3281
3292
  }), () => {
3282
- var y;
3283
- return (y = t.default) == null ? void 0 : y.call(t);
3293
+ var h;
3294
+ return (h = t.default) == null ? void 0 : h.call(t);
3284
3295
  };
3285
3296
  }
3286
- }), Je = N({
3297
+ }), Ze = O({
3287
3298
  props: {
3288
- ...F(We.props, "state", "requests"),
3299
+ ...K(We.props, "state", "requests"),
3289
3300
  ...$t.props,
3290
3301
  curdState: {
3291
3302
  type: Object
@@ -3297,12 +3308,12 @@ const Ia = () => ({
3297
3308
  }) => {
3298
3309
  const {
3299
3310
  elementMap: r,
3300
- formElementMap: o,
3301
- t: a
3311
+ formElementMap: a,
3312
+ t: o
3302
3313
  } = ae(), u = Q(), l = Q(), c = e.curdState || ve({
3303
3314
  detailData: {}
3304
- }), f = {
3305
- [U.LIST]: {
3315
+ }), i = C(() => ({
3316
+ [V.LIST]: {
3306
3317
  convertParams: (p) => p,
3307
3318
  convertData: (p) => {
3308
3319
  var v;
@@ -3311,7 +3322,7 @@ const Ia = () => ({
3311
3322
  loadingName: "listLoading",
3312
3323
  stateName: "listData"
3313
3324
  },
3314
- [U.DETAIL]: {
3325
+ [V.DETAIL]: {
3315
3326
  convertParams: (p, v) => ne(p, v),
3316
3327
  convertData: (p) => {
3317
3328
  var v;
@@ -3319,9 +3330,9 @@ const Ia = () => ({
3319
3330
  },
3320
3331
  loadingName: "detailLoading",
3321
3332
  stateName: "detailData",
3322
- label: a.value("details")
3333
+ label: o.value("details")
3323
3334
  },
3324
- [U.ADD]: {
3335
+ [V.ADD]: {
3325
3336
  convertParams: (p, v) => ({
3326
3337
  body: {
3327
3338
  ...v,
@@ -3329,9 +3340,9 @@ const Ia = () => ({
3329
3340
  }
3330
3341
  }),
3331
3342
  loadingName: "operateLoading",
3332
- label: a.value("add")
3343
+ label: o.value("add")
3333
3344
  },
3334
- [U.EDIT]: {
3345
+ [V.EDIT]: {
3335
3346
  convertParams: (p, v) => ({
3336
3347
  body: {
3337
3348
  ...v,
@@ -3339,20 +3350,20 @@ const Ia = () => ({
3339
3350
  }
3340
3351
  }),
3341
3352
  loadingName: "operateLoading",
3342
- label: a.value("edit")
3353
+ label: o.value("edit")
3343
3354
  },
3344
- [U.DELETE]: {
3355
+ [V.DELETE]: {
3345
3356
  convertParams: (p, v) => ne(p, v),
3346
- label: a.value("delete")
3357
+ label: o.value("delete")
3347
3358
  }
3348
- }, d = $(e.operates, (p) => {
3359
+ })), f = C(() => $(e.operates, (p) => {
3349
3360
  var b;
3350
- const v = g(f, p.action), m = ((b = e.convertOperate) == null ? void 0 : b.call(e, p, v)) || p;
3361
+ const v = g(i.value, p.action), y = ((b = e.convertOperate) == null ? void 0 : b.call(e, p, v)) || p;
3351
3362
  return {
3352
3363
  ...v,
3353
- ...m
3364
+ ...y
3354
3365
  };
3355
- }), i = J(d, (p) => p.actor), h = Z(F(We.props, "state", "requests"));
3366
+ })), d = C(() => J(f.value, (p) => p.actor)), m = Z(K(We.props, "state", "requests"));
3356
3367
  return n({
3357
3368
  sendCurdEvent: (p) => {
3358
3369
  var v;
@@ -3367,21 +3378,21 @@ const Ia = () => ({
3367
3378
  (v = u.value) == null || v.sendEvent(p);
3368
3379
  },
3369
3380
  sendRequest: (p, ...v) => {
3370
- var m;
3371
- (m = u.value) == null || m.sendRequest(p, ...v);
3381
+ var y;
3382
+ (y = u.value) == null || y.sendRequest(p, ...v);
3372
3383
  }
3373
- }), () => s(We, R({
3384
+ }), () => s(We, L({
3374
3385
  ref: u
3375
- }, ne(e, h), {
3386
+ }, ne(e, m), {
3376
3387
  elementMap: e.elementMap || r,
3377
3388
  state: c,
3378
- requests: i
3389
+ requests: d.value
3379
3390
  }), {
3380
- default: () => [s($t, R({
3391
+ default: () => [s($t, L({
3381
3392
  ref: l
3382
- }, F(e, ...h, "curdState", "operates", "convertOperate"), {
3383
- formElementMap: e.formElementMap || o,
3384
- operates: d
3393
+ }, K(e, ...m, "curdState", "operates", "convertOperate"), {
3394
+ formElementMap: e.formElementMap || a,
3395
+ operates: f.value
3385
3396
  }), t)]
3386
3397
  });
3387
3398
  }
@@ -3392,7 +3403,7 @@ const Ia = () => ({
3392
3403
  curdState: t,
3393
3404
  getOperate: n,
3394
3405
  title: r
3395
- } = le(), o = () => {
3406
+ } = le(), a = () => {
3396
3407
  e({
3397
3408
  type: "mode",
3398
3409
  payload: void 0
@@ -3406,12 +3417,12 @@ const Ia = () => ({
3406
3417
  type: "addAction",
3407
3418
  payload: void 0
3408
3419
  });
3409
- }, a = E(() => {
3420
+ }, o = C(() => {
3410
3421
  const l = t.mode;
3411
3422
  if (!!l)
3412
3423
  return n(l);
3413
- }), u = E(() => {
3414
- const l = a.value;
3424
+ }), u = C(() => {
3425
+ const l = o.value;
3415
3426
  if (!l)
3416
3427
  return "";
3417
3428
  if (l.title)
@@ -3420,15 +3431,15 @@ const Ia = () => ({
3420
3431
  return r && ye(c) ? `${r}-${c}` : c;
3421
3432
  });
3422
3433
  return {
3423
- clearMode: o,
3424
- operate: a,
3434
+ clearMode: a,
3435
+ operate: o,
3425
3436
  opeTitle: u
3426
3437
  };
3427
3438
  }, xa = () => ({
3428
3439
  defaultAddRecord: {
3429
3440
  type: Object
3430
3441
  }
3431
- }), _e = N({
3442
+ }), _e = O({
3432
3443
  props: {
3433
3444
  ...xa()
3434
3445
  },
@@ -3439,68 +3450,68 @@ const Ia = () => ({
3439
3450
  sendRequest: n
3440
3451
  } = we(), {
3441
3452
  rowKey: r,
3442
- curdState: o,
3443
- listProps: a,
3453
+ curdState: a,
3454
+ listProps: o,
3444
3455
  getOperate: u,
3445
3456
  refreshList: l,
3446
3457
  defaultAddRecord: c
3447
- } = le(), f = (v = a == null ? void 0 : a.value) == null ? void 0 : v.pageState, d = (m) => {
3448
- const b = u(U.DETAIL);
3449
- b != null && b.actor ? n(U.DETAIL, m, r) : t({
3458
+ } = le(), i = (v = o == null ? void 0 : o.value) == null ? void 0 : v.pageState, f = (y) => {
3459
+ const b = u(V.DETAIL);
3460
+ b != null && b.actor ? n(V.DETAIL, y, r) : t({
3450
3461
  type: "detailData",
3451
- payload: Jt(m)
3462
+ payload: Jt(y)
3452
3463
  });
3453
- }, i = (m, {
3464
+ }, d = (y, {
3454
3465
  record: b
3455
3466
  }) => {
3456
- m === _.EMIT && (t({
3467
+ y === _.EMIT && (t({
3457
3468
  type: "mode",
3458
3469
  payload: Me.DETAIL
3459
- }), d(b));
3460
- }, h = (m) => {
3461
- m === _.EMIT ? (t({
3470
+ }), f(b));
3471
+ }, m = (y) => {
3472
+ y === _.EMIT ? (t({
3462
3473
  type: "mode",
3463
3474
  payload: Me.ADD
3464
3475
  }), t({
3465
3476
  type: "detailData",
3466
3477
  payload: e.defaultAddRecord || (c == null ? void 0 : c.value) || {}
3467
- })) : m === _.SUCCESS && (f && (f.page = 1), l(), o.addAction === qe.CONTINUE ? t({
3478
+ })) : y === _.SUCCESS && (i && (i.page = 1), l(), a.addAction === qe.CONTINUE ? t({
3468
3479
  type: "detailData",
3469
3480
  payload: e.defaultAddRecord || (c == null ? void 0 : c.value) || {}
3470
3481
  }) : t({
3471
3482
  type: "mode",
3472
3483
  payload: void 0
3473
3484
  }));
3474
- }, p = (m, {
3485
+ }, p = (y, {
3475
3486
  record: b
3476
3487
  }) => {
3477
- m === _.EMIT ? (t({
3488
+ y === _.EMIT ? (t({
3478
3489
  type: "mode",
3479
3490
  payload: Me.EDIT
3480
- }), d(b)) : m === _.SUCCESS && (t({
3491
+ }), f(b)) : y === _.SUCCESS && (t({
3481
3492
  type: "mode",
3482
3493
  payload: void 0
3483
3494
  }), l());
3484
3495
  };
3485
3496
  return St(({
3486
- type: m,
3497
+ type: y,
3487
3498
  payload: b,
3488
3499
  source: x
3489
3500
  }) => {
3490
3501
  if (x)
3491
3502
  return;
3492
- let D = m, I = b == null ? void 0 : b.type;
3503
+ let D = y, I = b == null ? void 0 : b.type;
3493
3504
  const S = b == null ? void 0 : b.record;
3494
3505
  switch (D === je.Success && (D = g(b, ["requestOpts", "action"]), I = _.SUCCESS), D) {
3495
- case U.DETAIL:
3496
- i(I, {
3506
+ case V.DETAIL:
3507
+ d(I, {
3497
3508
  record: S
3498
3509
  });
3499
3510
  break;
3500
- case U.ADD:
3501
- h(I);
3511
+ case V.ADD:
3512
+ m(I);
3502
3513
  break;
3503
- case U.EDIT:
3514
+ case V.EDIT:
3504
3515
  p(I, {
3505
3516
  record: S
3506
3517
  });
@@ -3508,9 +3519,9 @@ const Ia = () => ({
3508
3519
  }
3509
3520
  }), () => null;
3510
3521
  }
3511
- }), Fo = N({
3522
+ }), Fo = O({
3512
3523
  props: {
3513
- ...Je.props,
3524
+ ...Ze.props,
3514
3525
  ..._e.props
3515
3526
  },
3516
3527
  setup: (e, {
@@ -3519,13 +3530,13 @@ const Ia = () => ({
3519
3530
  }) => {
3520
3531
  const r = Q();
3521
3532
  n(xe(Mt, r));
3522
- const o = Z(_e.props), u = te()(H.ProCurdKey);
3523
- return () => u ? s(u, R({
3533
+ const a = Z(_e.props), u = te()(H.ProCurdKey);
3534
+ return () => u ? s(u, L({
3524
3535
  ref: r
3525
- }, F(e, o)), {
3536
+ }, K(e, a)), {
3526
3537
  default: () => {
3527
3538
  var l;
3528
- return [s(_e, ne(e, o), null), (l = t.default) == null ? void 0 : l.call(t)];
3539
+ return [s(_e, ne(e, a), null), (l = t.default) == null ? void 0 : l.call(t)];
3529
3540
  }
3530
3541
  }) : null;
3531
3542
  }
@@ -3536,19 +3547,19 @@ const Ia = () => ({
3536
3547
  routeBack: {
3537
3548
  type: Function
3538
3549
  }
3539
- }), ut = N({
3550
+ }), lt = O({
3540
3551
  props: {
3541
3552
  ...wa()
3542
3553
  },
3543
3554
  setup: (e) => {
3544
3555
  const t = dn(), n = ht(), {
3545
3556
  dispatch: r,
3546
- sendRequest: o
3557
+ sendRequest: a
3547
3558
  } = we(), {
3548
- rowKey: a,
3559
+ rowKey: o,
3549
3560
  curdState: u
3550
- } = le(), l = (i) => {
3551
- i === _.PAGE && (r({
3561
+ } = le(), l = (d) => {
3562
+ d === _.PAGE && (r({
3552
3563
  type: "mode",
3553
3564
  payload: void 0
3554
3565
  }), r({
@@ -3561,73 +3572,73 @@ const Ia = () => ({
3561
3572
  type: "addAction",
3562
3573
  payload: void 0
3563
3574
  }));
3564
- }, c = (i, {
3565
- record: h
3575
+ }, c = (d, {
3576
+ record: m
3566
3577
  }) => {
3567
- i === _.EMIT ? t.push({
3578
+ d === _.EMIT ? t.push({
3568
3579
  path: `${n.path}/detail`,
3569
- query: ne(h, a)
3570
- }) : i === _.PAGE && (r({
3580
+ query: ne(m, o)
3581
+ }) : d === _.PAGE && (r({
3571
3582
  type: "mode",
3572
3583
  payload: Me.DETAIL
3573
- }), o(U.DETAIL, n.query, a));
3574
- }, f = (i) => {
3575
- i === _.EMIT ? t.push({
3584
+ }), a(V.DETAIL, n.query, o));
3585
+ }, i = (d) => {
3586
+ d === _.EMIT ? t.push({
3576
3587
  path: `${n.path}/add`
3577
- }) : i === _.PAGE ? (r({
3588
+ }) : d === _.PAGE ? (r({
3578
3589
  type: "mode",
3579
3590
  payload: Me.ADD
3580
3591
  }), r({
3581
3592
  type: "detailData",
3582
3593
  payload: e.defaultAddRecord || {}
3583
- })) : i === _.SUCCESS && (u.addAction === qe.CONTINUE ? r({
3594
+ })) : d === _.SUCCESS && (u.addAction === qe.CONTINUE ? r({
3584
3595
  type: "detailData",
3585
3596
  payload: e.defaultAddRecord || {}
3586
- }) : e.routeBack ? e.routeBack(U.ADD) : t.go(-1));
3587
- }, d = (i, {
3588
- record: h
3597
+ }) : e.routeBack ? e.routeBack(V.ADD) : t.go(-1));
3598
+ }, f = (d, {
3599
+ record: m
3589
3600
  }) => {
3590
- i === _.EMIT ? t.push({
3601
+ d === _.EMIT ? t.push({
3591
3602
  path: `${n.path}/edit`,
3592
- query: ne(h, a)
3593
- }) : i === _.PAGE ? (r({
3603
+ query: ne(m, o)
3604
+ }) : d === _.PAGE ? (r({
3594
3605
  type: "mode",
3595
3606
  payload: Me.EDIT
3596
- }), o(U.DETAIL, n.query, a)) : i === _.SUCCESS && (e.routeBack ? e.routeBack(U.EDIT) : t.go(-1));
3607
+ }), a(V.DETAIL, n.query, o)) : d === _.SUCCESS && (e.routeBack ? e.routeBack(V.EDIT) : t.go(-1));
3597
3608
  };
3598
3609
  return St(({
3599
- type: i,
3600
- payload: h,
3610
+ type: d,
3611
+ payload: m,
3601
3612
  source: p
3602
3613
  }) => {
3603
3614
  if (p)
3604
3615
  return;
3605
- let v = i, m = h == null ? void 0 : h.type;
3606
- const b = h == null ? void 0 : h.record;
3607
- switch (v === je.Success && (v = g(h, ["requestOpts", "action"]), m = _.SUCCESS), v) {
3608
- case U.LIST:
3609
- l(m);
3616
+ let v = d, y = m == null ? void 0 : m.type;
3617
+ const b = m == null ? void 0 : m.record;
3618
+ switch (v === je.Success && (v = g(m, ["requestOpts", "action"]), y = _.SUCCESS), v) {
3619
+ case V.LIST:
3620
+ l(y);
3610
3621
  break;
3611
- case U.DETAIL:
3612
- c(m, {
3622
+ case V.DETAIL:
3623
+ c(y, {
3613
3624
  record: b
3614
3625
  });
3615
3626
  break;
3616
- case U.ADD:
3617
- f(m);
3627
+ case V.ADD:
3628
+ i(y);
3618
3629
  break;
3619
- case U.EDIT:
3620
- d(m, {
3630
+ case V.EDIT:
3631
+ f(y, {
3621
3632
  record: b
3622
3633
  });
3623
3634
  break;
3624
3635
  }
3625
3636
  }), () => null;
3626
3637
  }
3627
- }), Ko = N({
3638
+ }), Ko = O({
3628
3639
  props: {
3629
- ...Je.props,
3630
- ...ut.props
3640
+ ...Ze.props,
3641
+ ...lt.props
3631
3642
  },
3632
3643
  setup: (e, {
3633
3644
  slots: t,
@@ -3635,17 +3646,17 @@ const Ia = () => ({
3635
3646
  }) => {
3636
3647
  const r = Q();
3637
3648
  n(xe(Mt, r));
3638
- const o = Z(ut.props);
3639
- return () => s(Je, R({
3649
+ const a = Z(lt.props);
3650
+ return () => s(Ze, L({
3640
3651
  ref: r
3641
- }, F(e, o)), {
3652
+ }, K(e, a)), {
3642
3653
  default: () => {
3643
- var a;
3644
- return [s(ut, ne(e, o), null), (a = t.default) == null ? void 0 : a.call(t)];
3654
+ var o;
3655
+ return [s(lt, ne(e, a), null), (o = t.default) == null ? void 0 : o.call(t)];
3645
3656
  }
3646
3657
  });
3647
3658
  }
3648
- }), jt = N({
3659
+ }), jt = O({
3649
3660
  props: {
3650
3661
  buttonProps: Object
3651
3662
  },
@@ -3654,25 +3665,29 @@ const Ia = () => ({
3654
3665
  }) => {
3655
3666
  const n = In(), {
3656
3667
  getOperate: r,
3657
- sendCurdEvent: o
3658
- } = le(), a = r(U.ADD), u = () => {
3659
- if (a != null && a.onClick) {
3660
- a.onClick();
3668
+ sendCurdEvent: a
3669
+ } = le(), o = C(() => r(V.ADD)), u = () => {
3670
+ var i;
3671
+ if ((i = o.value) != null && i.onClick) {
3672
+ o.value.onClick();
3661
3673
  return;
3662
3674
  }
3663
- o({
3664
- action: U.ADD,
3675
+ a({
3676
+ action: V.ADD,
3665
3677
  type: _.EMIT
3666
3678
  });
3667
3679
  }, c = te()(H.ButtonKey);
3668
- return () => !a || !n(a.per, a.perSuffix) || !(Y(a.show) ? a.show({}) : a.show) ? null : a.element ? a.element({}, a) : t.default ? t.default(a, u) : c ? s(c, R({
3669
- class: "pro-curd-add-button",
3670
- disabled: Y(a.disabled) ? a.disabled() : a.disabled
3671
- }, e.buttonProps, {
3672
- onClick: u
3673
- }), {
3674
- default: () => [a.label]
3675
- }) : null;
3680
+ return () => {
3681
+ const i = o.value;
3682
+ return !i || !n(i.per, i.perSuffix) || !(Y(i.show) ? i.show({}) : i.show) ? null : i.element ? i.element({}, i) : t.default ? t.default(i, u) : c ? s(c, L({
3683
+ class: "pro-curd-add-button",
3684
+ disabled: Y(i.disabled) ? i.disabled() : i.disabled
3685
+ }, e.buttonProps, {
3686
+ onClick: u
3687
+ }), {
3688
+ default: () => [i.label]
3689
+ }) : null;
3690
+ };
3676
3691
  }
3677
3692
  }), Bt = () => ({
3678
3693
  addConfig: {
@@ -3685,7 +3700,7 @@ const Ia = () => ({
3685
3700
  type: Boolean,
3686
3701
  default: !0
3687
3702
  }
3688
- }), Ln = N({
3703
+ }), Ln = O({
3689
3704
  props: {
3690
3705
  ...oa.props,
3691
3706
  ...Bt()
@@ -3696,20 +3711,20 @@ const Ia = () => ({
3696
3711
  const {
3697
3712
  elementMap: n,
3698
3713
  formElementMap: r,
3699
- curdState: o,
3700
- searchColumns: a,
3714
+ curdState: a,
3715
+ searchColumns: o,
3701
3716
  tableColumns: u,
3702
3717
  sendCurdEvent: l,
3703
3718
  operates: c,
3704
- refreshList: f
3705
- } = le(), d = $(
3706
- J(c, (I) => {
3719
+ refreshList: i
3720
+ } = le(), f = C(() => $(
3721
+ J(c.value, (I) => {
3707
3722
  const S = I.action;
3708
- return S === U.DETAIL || S === U.EDIT || S === U.DELETE || I.tableOperate;
3723
+ return S === V.DETAIL || S === V.EDIT || S === V.DELETE || I.tableOperate;
3709
3724
  }),
3710
3725
  (I) => {
3711
3726
  const S = {
3712
- ...F(I, "action", "actor", "convertParams"),
3727
+ ...K(I, "action", "actor", "convertParams"),
3713
3728
  value: I.action
3714
3729
  };
3715
3730
  return S.onClick || (S.onClick = (T) => {
@@ -3720,79 +3735,79 @@ const Ia = () => ({
3720
3735
  });
3721
3736
  }), S;
3722
3737
  }
3723
- ), i = (I) => {
3738
+ )), d = (I) => {
3724
3739
  l({
3725
- action: U.LIST,
3740
+ action: V.LIST,
3726
3741
  type: _.EMIT,
3727
3742
  values: I
3728
3743
  });
3729
3744
  };
3730
3745
  mr(() => {
3731
- e.activatedRefresh && f();
3746
+ e.activatedRefresh && i();
3732
3747
  });
3733
- const h = E(() => ({
3748
+ const m = C(() => ({
3734
3749
  formElementMap: r,
3735
- columns: a.value,
3750
+ columns: o.value,
3736
3751
  ...e.searchProps
3737
- })), p = E(() => {
3752
+ })), p = C(() => {
3738
3753
  var I, S;
3739
3754
  return {
3740
3755
  elementMap: n,
3741
3756
  columns: u.value,
3742
- loading: o.listLoading,
3743
- dataSource: (I = o.listData) == null ? void 0 : I.dataSource,
3744
- ...F(e.tableProps, "operate"),
3757
+ loading: a.listLoading,
3758
+ dataSource: (I = a.listData) == null ? void 0 : I.dataSource,
3759
+ ...K(e.tableProps, "operate"),
3745
3760
  operate: {
3746
- items: d,
3761
+ items: f.value,
3747
3762
  ...(S = e.tableProps) == null ? void 0 : S.operate
3748
3763
  }
3749
3764
  };
3750
- }), v = E(() => {
3765
+ }), v = C(() => {
3751
3766
  var I;
3752
3767
  return e.paginationProps === !1 ? !1 : {
3753
- total: (I = o.listData) == null ? void 0 : I.total,
3768
+ total: (I = a.listData) == null ? void 0 : I.total,
3754
3769
  ...e.paginationProps
3755
3770
  };
3756
- }), m = E(() => {
3771
+ }), y = C(() => {
3757
3772
  var I;
3758
- return e.paginationProps === !1 ? !1 : !!((I = o.listData) != null && I.total);
3773
+ return e.paginationProps === !1 ? !1 : !!((I = a.listData) != null && I.total);
3759
3774
  }), b = Z(Bt()), D = te()(H.ProListKey);
3760
3775
  return () => {
3761
3776
  var S, T;
3762
3777
  if (!D)
3763
3778
  return null;
3764
3779
  const I = ["pro-curd-list"];
3765
- return m.value && I.push("has-pagination"), s(D, R({
3780
+ return y.value && I.push("has-pagination"), s(D, L({
3766
3781
  class: I
3767
- }, F(e, ...b, "searchProps", "tableProps", "paginationProps"), {
3768
- searchProps: h.value,
3782
+ }, K(e, ...b, "searchProps", "tableProps", "paginationProps"), {
3783
+ searchProps: m.value,
3769
3784
  tableProps: p.value,
3770
3785
  paginationProps: v.value,
3771
- onSearch: i
3786
+ onSearch: d
3772
3787
  }), {
3773
3788
  "search-end": (S = e.addConfig) != null && S.inSearch ? () => {
3774
- var K;
3789
+ var R;
3775
3790
  return s("div", {
3776
3791
  class: "pro-curd-list-search-end"
3777
- }, [s(jt, (K = e.addConfig) == null ? void 0 : K.buttonProps, null)]);
3792
+ }, [s(jt, (R = e.addConfig) == null ? void 0 : R.buttonProps, null)]);
3778
3793
  } : void 0,
3779
- "table-toolbarExtra": (T = e.addConfig) != null && T.inTable ? (K) => {
3794
+ "table-toolbarExtra": (T = e.addConfig) != null && T.inTable ? (R) => {
3780
3795
  var j;
3781
- return s(fe, null, [s(jt, (j = e.addConfig) == null ? void 0 : j.buttonProps, null), K]);
3796
+ return s(fe, null, [s(jt, (j = e.addConfig) == null ? void 0 : j.buttonProps, null), R]);
3782
3797
  } : void 0,
3783
3798
  ...t,
3784
- search: t.search ? (K) => t.search(K, h.value) : void 0,
3785
- table: t.table ? (K) => t.table(K, p.value) : void 0,
3786
- pagination: t.pagination ? (K) => t.pagination(K, v.value) : void 0
3799
+ search: t.search ? (R) => t.search(R, m.value) : void 0,
3800
+ table: t.table ? (R) => t.table(R, p.value) : void 0,
3801
+ pagination: t.pagination ? (R) => t.pagination(R, v.value) : void 0
3787
3802
  });
3788
3803
  };
3789
3804
  }
3790
- }), Ta = N(() => {
3805
+ }), Ta = O(() => {
3791
3806
  const {
3792
3807
  listProps: e
3793
3808
  } = le();
3794
- return () => s(Ln, F(e == null ? void 0 : e.value, "slots"), g(e == null ? void 0 : e.value, "slots"));
3795
- }), ka = N({
3809
+ return () => s(Ln, K(e == null ? void 0 : e.value, "slots"), g(e == null ? void 0 : e.value, "slots"));
3810
+ }), ka = O({
3796
3811
  props: {
3797
3812
  ...Tn.props,
3798
3813
  as: {
@@ -3805,11 +3820,11 @@ const Ia = () => ({
3805
3820
  }) => {
3806
3821
  const {
3807
3822
  listProps: n
3808
- } = le(), o = te()(H.ProPageKey);
3809
- return () => s(o, R({
3823
+ } = le(), a = te()(H.ProPageKey);
3824
+ return () => s(a, L({
3810
3825
  class: "curd-list has-footer"
3811
3826
  }, e), {
3812
- default: () => [s(Ln, F(n.value, "slots"), {
3827
+ default: () => [s(Ln, K(n.value, "slots"), {
3813
3828
  divide2: () => s("div", {
3814
3829
  class: "curd-list-grow"
3815
3830
  }, null),
@@ -3818,16 +3833,16 @@ const Ia = () => ({
3818
3833
  ...t
3819
3834
  });
3820
3835
  }
3821
- }), Aa = N(() => {
3836
+ }), Aa = O(() => {
3822
3837
  const {
3823
3838
  pageProps: e
3824
3839
  } = le();
3825
- return () => s(ka, F(e == null ? void 0 : e.value, "slots"), g(e == null ? void 0 : e.value, "slots"));
3840
+ return () => s(ka, K(e == null ? void 0 : e.value, "slots"), g(e == null ? void 0 : e.value, "slots"));
3826
3841
  }), Da = () => ({
3827
3842
  signName: {
3828
3843
  type: String
3829
3844
  }
3830
- }), rt = N({
3845
+ }), at = O({
3831
3846
  props: {
3832
3847
  ...Da()
3833
3848
  },
@@ -3837,65 +3852,65 @@ const Ia = () => ({
3837
3852
  attrs: r
3838
3853
  }) => {
3839
3854
  const {
3840
- t: o
3855
+ t: a
3841
3856
  } = ae(), {
3842
- elementMap: a,
3857
+ elementMap: o,
3843
3858
  formElementMap: u,
3844
3859
  curdState: l,
3845
3860
  formColumns: c,
3846
- getSignColumns: f,
3847
- sendCurdEvent: d
3848
- } = le(), i = Q();
3849
- n(xe(e.formMethods || [], i));
3850
- const h = E(() => e.signName ? f(e.signName) : c.value), p = () => {
3861
+ getSignColumns: i,
3862
+ sendCurdEvent: f
3863
+ } = le(), d = Q();
3864
+ n(xe(e.formMethods || [], d));
3865
+ const m = C(() => e.signName ? i(e.signName) : c.value), p = () => {
3851
3866
  var I;
3852
- l.addAction = qe.NORMAL, (I = i.value) == null || I.submit();
3867
+ l.addAction = qe.NORMAL, (I = d.value) == null || I.submit();
3853
3868
  }, v = () => {
3854
3869
  var I;
3855
- l.addAction = qe.CONTINUE, (I = i.value) == null || I.submit();
3856
- }, m = E(() => [
3870
+ l.addAction = qe.CONTINUE, (I = d.value) == null || I.submit();
3871
+ }, y = C(() => [
3857
3872
  {
3858
3873
  value: de.RESET,
3859
- label: o.value("reset")
3874
+ label: a.value("reset")
3860
3875
  },
3861
3876
  {
3862
3877
  value: de.SUBMIT,
3863
- label: o.value("submit"),
3878
+ label: a.value("submit"),
3864
3879
  extraProps: {
3865
3880
  type: "primary"
3866
3881
  }
3867
3882
  },
3868
3883
  {
3869
3884
  value: de.CONTINUE,
3870
- label: o.value("confirmAndContinue"),
3885
+ label: a.value("confirmAndContinue"),
3871
3886
  extraProps: {
3872
3887
  type: "primary"
3873
3888
  },
3874
3889
  show: !1
3875
3890
  }
3876
3891
  ]), b = (I) => {
3877
- r.onFinish || (l.mode === U.EDIT ? d({
3878
- action: U.EDIT,
3892
+ r.onFinish || (l.mode === V.EDIT ? f({
3893
+ action: V.EDIT,
3879
3894
  type: _.EXECUTE,
3880
3895
  values: I
3881
- }) : d({
3882
- action: U.ADD,
3896
+ }) : f({
3897
+ action: V.ADD,
3883
3898
  type: _.EXECUTE,
3884
3899
  values: I
3885
3900
  }));
3886
3901
  }, D = te()(H.ProFormKey);
3887
- return () => D ? s(D, R({
3888
- ref: i,
3902
+ return () => D ? s(D, L({
3903
+ ref: d,
3889
3904
  class: "pro-curd-form"
3890
- }, F(e, "operate"), {
3891
- elementMap: e.elementMap || a,
3905
+ }, K(e, "operate"), {
3906
+ elementMap: e.elementMap || o,
3892
3907
  formElementMap: e.formElementMap || u,
3893
- columns: e.columns || h.value,
3894
- readonly: l.mode === U.DETAIL,
3908
+ columns: e.columns || m.value,
3909
+ readonly: l.mode === V.DETAIL,
3895
3910
  model: e.model || l.detailData,
3896
- hideRequiredMark: l.mode === U.DETAIL,
3911
+ hideRequiredMark: l.mode === V.DETAIL,
3897
3912
  operate: e.operate ? {
3898
- items: m.value,
3913
+ items: y.value,
3899
3914
  onSubmit: p,
3900
3915
  onContinue: v,
3901
3916
  ...e.operate
@@ -3903,16 +3918,16 @@ const Ia = () => ({
3903
3918
  onFinish: b
3904
3919
  }), t) : null;
3905
3920
  }
3906
- }), Ro = N(() => {
3921
+ }), Ro = O(() => {
3907
3922
  const {
3908
3923
  formProps: e
3909
3924
  } = le();
3910
- return () => s(rt, F(e == null ? void 0 : e.value, "slots"), g(e == null ? void 0 : e.value, "slots"));
3925
+ return () => s(at, K(e == null ? void 0 : e.value, "slots"), g(e == null ? void 0 : e.value, "slots"));
3911
3926
  }), Na = () => ({
3912
3927
  signName: {
3913
3928
  type: String
3914
3929
  }
3915
- }), Oa = N({
3930
+ }), Oa = O({
3916
3931
  props: {
3917
3932
  ...Na()
3918
3933
  },
@@ -3922,24 +3937,24 @@ const Ia = () => ({
3922
3937
  const {
3923
3938
  curdState: n,
3924
3939
  descColumns: r,
3925
- getSignColumns: o
3926
- } = le(), a = E(() => e.signName ? o(e.signName) : r.value);
3927
- return () => s(ua, R(F(e, "signName", "model", "columns"), {
3940
+ getSignColumns: a
3941
+ } = le(), o = C(() => e.signName ? a(e.signName) : r.value);
3942
+ return () => s(ua, L(K(e, "signName", "model", "columns"), {
3928
3943
  model: e.model || n.detailData,
3929
- columns: a.value
3944
+ columns: o.value
3930
3945
  }), t);
3931
3946
  }
3932
- }), Lo = N(() => {
3947
+ }), Lo = O(() => {
3933
3948
  const {
3934
3949
  descProps: e
3935
3950
  } = le();
3936
- return () => s(Oa, R({
3951
+ return () => s(Oa, L({
3937
3952
  class: "pro-curd-desc"
3938
- }, F(e == null ? void 0 : e.value, "slots")), g(e == null ? void 0 : e.value, "slots"));
3953
+ }, K(e == null ? void 0 : e.value, "slots")), g(e == null ? void 0 : e.value, "slots"));
3939
3954
  }), qt = () => ({
3940
3955
  validMode: {
3941
3956
  type: Array,
3942
- default: [U.ADD, U.DETAIL, U.EDIT]
3957
+ default: [V.ADD, V.DETAIL, V.EDIT]
3943
3958
  },
3944
3959
  loadingOpts: {
3945
3960
  type: Object
@@ -3947,7 +3962,7 @@ const Ia = () => ({
3947
3962
  overrideProps: {
3948
3963
  type: Object
3949
3964
  }
3950
- }), $n = N({
3965
+ }), $n = O({
3951
3966
  props: {
3952
3967
  ...qt()
3953
3968
  },
@@ -3958,29 +3973,29 @@ const Ia = () => ({
3958
3973
  curdState: n
3959
3974
  } = le(), {
3960
3975
  clearMode: r,
3961
- opeTitle: o
3962
- } = Rn(), a = E(() => e.title || o.value), u = E(() => !!Ie(e.validMode, (h) => h === n.mode)), l = (h) => {
3963
- h || r();
3964
- }, c = Z(qt()), f = te(), d = f(H.ModalKey), i = f(H.LoadingKey);
3976
+ opeTitle: a
3977
+ } = Rn(), o = C(() => e.title || a.value), u = C(() => !!Ie(e.validMode, (m) => m === n.mode)), l = (m) => {
3978
+ m || r();
3979
+ }, c = Z(qt()), i = te(), f = i(H.ModalKey), d = i(H.LoadingKey);
3965
3980
  return () => {
3966
3981
  if (!u.value)
3967
3982
  return null;
3968
- const h = n.mode;
3969
- return s(d, R({
3983
+ const m = n.mode;
3984
+ return s(f, L({
3970
3985
  class: "pro-curd-modal"
3971
- }, F(e, c), {
3986
+ }, K(e, c), {
3972
3987
  visible: !0,
3973
- title: a.value,
3988
+ title: o.value,
3974
3989
  confirmLoading: n.operateLoading,
3975
- maskClosable: h === U.DETAIL,
3976
- footer: n.detailLoading || h === U.DETAIL ? !1 : void 0
3990
+ maskClosable: m === V.DETAIL,
3991
+ footer: n.detailLoading || m === V.DETAIL ? !1 : void 0
3977
3992
  }, e.overrideProps, {
3978
3993
  "onUpdate:modelValue": l,
3979
3994
  "onUpdate:visible": l
3980
3995
  }), {
3981
3996
  default: () => {
3982
3997
  var p;
3983
- return [n.detailLoading && i ? s(i, R({
3998
+ return [n.detailLoading && d ? s(d, L({
3984
3999
  loading: !0
3985
4000
  }, e.loadingOpts), {
3986
4001
  default: () => [s("div", {
@@ -3988,11 +4003,11 @@ const Ia = () => ({
3988
4003
  }, null)]
3989
4004
  }) : (p = t.default) == null ? void 0 : p.call(t)];
3990
4005
  },
3991
- ...F(t, "default")
4006
+ ...K(t, "default")
3992
4007
  });
3993
4008
  };
3994
4009
  }
3995
- }), $o = N({
4010
+ }), $o = O({
3996
4011
  props: {
3997
4012
  modalProps: Object,
3998
4013
  formProps: Object
@@ -4000,39 +4015,39 @@ const Ia = () => ({
4000
4015
  setup: (e, {
4001
4016
  slots: t
4002
4017
  }) => {
4003
- const n = Q(), r = ge(t, "modal"), o = ge(t, "form");
4004
- return () => s($n, R(e.modalProps, {
4018
+ const n = Q(), r = ge(t, "modal"), a = ge(t, "form");
4019
+ return () => s($n, L(e.modalProps, {
4005
4020
  onOk: () => {
4006
- var a;
4007
- (a = n.value) == null || a.submit();
4021
+ var o;
4022
+ (o = n.value) == null || o.submit();
4008
4023
  }
4009
4024
  }), {
4010
- default: () => [s(rt, R({
4025
+ default: () => [s(at, L({
4011
4026
  ref: n
4012
- }, e.formProps), o)],
4027
+ }, e.formProps), a)],
4013
4028
  ...r
4014
4029
  });
4015
4030
  }
4016
- }), Fa = N(() => {
4031
+ }), Fa = O(() => {
4017
4032
  const {
4018
4033
  modalProps: e,
4019
4034
  formProps: t
4020
4035
  } = le(), n = Q();
4021
- return () => s($n, R(F(e == null ? void 0 : e.value, "slots"), {
4036
+ return () => s($n, L(K(e == null ? void 0 : e.value, "slots"), {
4022
4037
  onOk: () => {
4023
4038
  var r;
4024
4039
  (r = n.value) == null || r.submit();
4025
4040
  }
4026
4041
  }), {
4027
- default: () => [s(rt, R({
4042
+ default: () => [s(at, L({
4028
4043
  ref: n
4029
- }, F(t == null ? void 0 : t.value, "slots")), g(t == null ? void 0 : t.value, "slots"))],
4044
+ }, K(t == null ? void 0 : t.value, "slots")), g(t == null ? void 0 : t.value, "slots"))],
4030
4045
  ...g(e == null ? void 0 : e.value, "slots")
4031
4046
  });
4032
4047
  }), Ut = () => ({
4033
4048
  validMode: {
4034
4049
  type: Array,
4035
- default: [U.ADD, U.DETAIL, U.EDIT]
4050
+ default: [V.ADD, V.DETAIL, V.EDIT]
4036
4051
  },
4037
4052
  operate: {
4038
4053
  type: Object
@@ -4043,7 +4058,7 @@ const Ia = () => ({
4043
4058
  okText: {
4044
4059
  type: String
4045
4060
  }
4046
- }), Vt = N({
4061
+ }), Vt = O({
4047
4062
  props: {
4048
4063
  ...Tn.props,
4049
4064
  sub: {
@@ -4063,44 +4078,44 @@ const Ia = () => ({
4063
4078
  const {
4064
4079
  t: r
4065
4080
  } = ae(), {
4066
- curdState: o
4081
+ curdState: a
4067
4082
  } = le(), {
4068
- clearMode: a,
4083
+ clearMode: o,
4069
4084
  opeTitle: u
4070
- } = Rn(), l = E(() => e.title || u.value), c = E(() => !!Ie(e.validMode, (v) => v === o.mode)), f = () => {
4085
+ } = Rn(), l = C(() => e.title || u.value), c = C(() => !!Ie(e.validMode, (v) => v === a.mode)), i = () => {
4071
4086
  t("ok");
4072
- }, d = E(() => {
4073
- var m;
4074
- if (o.mode === U.DETAIL)
4087
+ }, f = C(() => {
4088
+ var y;
4089
+ if (a.mode === V.DETAIL)
4075
4090
  return [];
4076
- const v = (m = e.operate) == null ? void 0 : m.items;
4091
+ const v = (y = e.operate) == null ? void 0 : y.items;
4077
4092
  return ee(v) > 0 ? v : [{
4078
4093
  value: "cancel",
4079
4094
  label: r.value("cancel"),
4080
- onClick: a
4095
+ onClick: o
4081
4096
  }, {
4082
4097
  value: "ok",
4083
4098
  label: r.value("confirm"),
4084
4099
  extraProps: {
4085
4100
  type: "primary"
4086
4101
  },
4087
- loading: o.operateLoading,
4088
- onClick: f
4102
+ loading: a.operateLoading,
4103
+ onClick: i
4089
4104
  }];
4090
- }), h = te()(H.ProPageKey), p = Z(Ut());
4091
- return () => c.value ? s(h, R({
4105
+ }), m = te()(H.ProPageKey), p = Z(Ut());
4106
+ return () => c.value ? s(m, L({
4092
4107
  class: "curd"
4093
- }, F(e, p), {
4108
+ }, K(e, p), {
4094
4109
  title: l.value,
4095
- onBackClick: e.onBackClick || a
4110
+ onBackClick: e.onBackClick || o
4096
4111
  }), {
4097
- footer: () => o.mode === U.DETAIL ? null : s(bt, R(e.operate, {
4098
- items: d.value
4112
+ footer: () => a.mode === V.DETAIL ? null : s(bt, L(e.operate, {
4113
+ items: f.value
4099
4114
  }), null),
4100
4115
  ...n
4101
4116
  }) : null;
4102
4117
  }
4103
- }), Ka = N({
4118
+ }), Ka = O({
4104
4119
  props: {
4105
4120
  ...Vt.props
4106
4121
  },
@@ -4109,27 +4124,27 @@ const Ia = () => ({
4109
4124
  }) => {
4110
4125
  const {
4111
4126
  formProps: n
4112
- } = le(), r = Q(), o = () => {
4113
- var a;
4114
- (a = r.value) == null || a.submit();
4127
+ } = le(), r = Q(), a = () => {
4128
+ var o;
4129
+ (o = r.value) == null || o.submit();
4115
4130
  };
4116
- return () => s(Vt, R(e, {
4117
- onOk: o
4131
+ return () => s(Vt, L(e, {
4132
+ onOk: a
4118
4133
  }), {
4119
4134
  default: () => {
4120
- var a, u;
4121
- return [(a = t.start) == null ? void 0 : a.call(t), s(rt, R({
4135
+ var o, u;
4136
+ return [(o = t.start) == null ? void 0 : o.call(t), s(at, L({
4122
4137
  ref: r
4123
- }, F(n == null ? void 0 : n.value, "slots")), g(n == null ? void 0 : n.value, "slots")), (u = t.end) == null ? void 0 : u.call(t)];
4138
+ }, K(n == null ? void 0 : n.value, "slots")), g(n == null ? void 0 : n.value, "slots")), (u = t.end) == null ? void 0 : u.call(t)];
4124
4139
  },
4125
- ...F(t, "start")
4140
+ ...K(t, "start")
4126
4141
  });
4127
4142
  }
4128
- }), Ra = N(() => {
4143
+ }), Ra = O(() => {
4129
4144
  const {
4130
4145
  subPageProps: e
4131
4146
  } = le();
4132
- return () => s(Ka, F(e == null ? void 0 : e.value, "slots"), g(e == null ? void 0 : e.value, "slots"));
4147
+ return () => s(Ka, K(e == null ? void 0 : e.value, "slots"), g(e == null ? void 0 : e.value, "slots"));
4133
4148
  }), zt = () => ({
4134
4149
  listType: {
4135
4150
  type: String,
@@ -4138,9 +4153,9 @@ const Ia = () => ({
4138
4153
  modalType: {
4139
4154
  type: String
4140
4155
  }
4141
- }), jo = N({
4156
+ }), jo = O({
4142
4157
  props: {
4143
- ...Je.props,
4158
+ ...Ze.props,
4144
4159
  ...zt()
4145
4160
  },
4146
4161
  setup: (e, {
@@ -4149,15 +4164,15 @@ const Ia = () => ({
4149
4164
  }) => {
4150
4165
  const r = Q();
4151
4166
  n(xe(Mt, r));
4152
- const a = te()(H.ProCurdKey), u = Z(zt());
4167
+ const o = te()(H.ProCurdKey), u = Z(zt());
4153
4168
  return () => {
4154
4169
  const l = e.listType, c = e.modalType;
4155
- return s(a, R({
4170
+ return s(o, L({
4156
4171
  ref: r
4157
- }, F(e, u)), {
4172
+ }, K(e, u)), {
4158
4173
  default: () => {
4159
- var f;
4160
- return [l === "page" && s(Aa, null, null), l === "list" && s(Ta, null, null), c === "page" && s(Ra, null, null), c === "modal" && s(Fa, null, null), (c === "page" || c === "modal") && s(_e, null, null), (f = t.default) == null ? void 0 : f.call(t)];
4174
+ var i;
4175
+ return [l === "page" && s(Aa, null, null), l === "list" && s(Ta, null, null), c === "page" && s(Ra, null, null), c === "modal" && s(Fa, null, null), (c === "page" || c === "modal") && s(_e, null, null), (i = t.default) == null ? void 0 : i.call(t)];
4161
4176
  }
4162
4177
  });
4163
4178
  };
@@ -4188,7 +4203,7 @@ const Ia = () => ({
4188
4203
  columns: {
4189
4204
  type: Array
4190
4205
  }
4191
- }), Bo = N({
4206
+ }), Bo = O({
4192
4207
  props: {
4193
4208
  ...$a()
4194
4209
  },
@@ -4198,22 +4213,22 @@ const Ia = () => ({
4198
4213
  }) => {
4199
4214
  const {
4200
4215
  appConfig: r,
4201
- setAppConfig: o,
4202
- delAppConfig: a
4216
+ setAppConfig: a,
4217
+ delAppConfig: o
4203
4218
  } = jn(), u = ve({
4204
4219
  ...r
4205
4220
  }), l = () => {
4206
4221
  n("cancel");
4207
4222
  };
4208
4223
  Ee(() => {
4209
- o((b) => ({
4224
+ a((b) => ({
4210
4225
  ...b,
4211
4226
  ...u
4212
4227
  }));
4213
4228
  }, u);
4214
4229
  const c = (b) => {
4215
4230
  u.layout = b, l();
4216
- }, f = [
4231
+ }, i = [
4217
4232
  {
4218
4233
  title: "\u5E03\u5C40\u5207\u6362",
4219
4234
  dataIndex: "\u5E03\u5C40\u5207\u6362",
@@ -4317,7 +4332,7 @@ const Ia = () => ({
4317
4332
  }]
4318
4333
  }
4319
4334
  }
4320
- ], d = [{
4335
+ ], f = [{
4321
4336
  key: "compose",
4322
4337
  child: ["top", "left"]
4323
4338
  }, {
@@ -4329,7 +4344,7 @@ const Ia = () => ({
4329
4344
  }, {
4330
4345
  key: "horizontal-v",
4331
4346
  child: ["left"]
4332
- }], i = E(() => $(e.columns || f, (b) => b.valueType === "title" ? {
4347
+ }], d = C(() => $(e.columns || i, (b) => b.valueType === "title" ? {
4333
4348
  ...ne(b, "dataIndex"),
4334
4349
  formItemProps: {
4335
4350
  class: "pro-app-config_form_title"
@@ -4339,7 +4354,7 @@ const Ia = () => ({
4339
4354
  ...ne(b, "dataIndex"),
4340
4355
  inputRender: () => s("div", {
4341
4356
  class: "pro-app-config_form_layout"
4342
- }, [$(d, (x) => {
4357
+ }, [$(f, (x) => {
4343
4358
  const D = r.layout === x.key;
4344
4359
  return s("div", {
4345
4360
  class: D ? "selected" : void 0,
@@ -4348,9 +4363,9 @@ const Ia = () => ({
4348
4363
  class: I
4349
4364
  }, null))]);
4350
4365
  })])
4351
- } : b)), h = () => {
4352
- a(), l();
4353
- }, p = te(), v = p(H.DrawerKey), m = p(H.ProFormKey);
4366
+ } : b)), m = () => {
4367
+ o(), l();
4368
+ }, p = te(), v = p(H.DrawerKey), y = p(H.ProFormKey);
4354
4369
  return () => s(v, {
4355
4370
  title: "\u8BBE\u7F6E",
4356
4371
  size: "260px",
@@ -4358,15 +4373,15 @@ const Ia = () => ({
4358
4373
  }, {
4359
4374
  default: () => {
4360
4375
  var b;
4361
- return [s(m, {
4376
+ return [s(y, {
4362
4377
  class: "pro-app-config_form",
4363
4378
  model: u,
4364
- columns: i.value
4379
+ columns: d.value
4365
4380
  }, null), (b = t.default) == null ? void 0 : b.call(t), s("div", {
4366
4381
  class: "pro-app-config_btm"
4367
4382
  }, [s(Vn("pro-button"), {
4368
4383
  type: "primary",
4369
- onClick: h
4384
+ onClick: m
4370
4385
  }, {
4371
4386
  default: () => [st("\u6062\u590D\u9ED8\u8BA4\u914D\u7F6E")]
4372
4387
  })])];
@@ -4374,10 +4389,10 @@ const Ia = () => ({
4374
4389
  });
4375
4390
  }
4376
4391
  }), ja = (e, t) => fn(t / 10, "#000000", e), Ba = (e, t) => fn(t / 10, "#ffffff", e), qa = (e, t) => {
4377
- var o, a, u, l, c, f, d, i, h, p, v, m;
4392
+ var a, o, u, l, c, i, f, d, m, p, v, y;
4378
4393
  const n = [1, 2, 3, 4, 5, 6, 7, 8, 9], r = (b) => ({
4379
4394
  base: b,
4380
- light: se(n, (x, D) => ({
4395
+ light: ie(n, (x, D) => ({
4381
4396
  ...x,
4382
4397
  [String(D)]: Ba(b, D)
4383
4398
  }), {}),
@@ -4387,12 +4402,12 @@ const Ia = () => ({
4387
4402
  });
4388
4403
  return {
4389
4404
  color: {
4390
- primary: r(((o = e == null ? void 0 : e.color) == null ? void 0 : o.primary) || ((a = t == null ? void 0 : t.color) == null ? void 0 : a.primary)),
4405
+ primary: r(((a = e == null ? void 0 : e.color) == null ? void 0 : a.primary) || ((o = t == null ? void 0 : t.color) == null ? void 0 : o.primary)),
4391
4406
  success: r(((u = e == null ? void 0 : e.color) == null ? void 0 : u.success) || ((l = t == null ? void 0 : t.color) == null ? void 0 : l.success)),
4392
- warning: r(((c = e == null ? void 0 : e.color) == null ? void 0 : c.warning) || ((f = t == null ? void 0 : t.color) == null ? void 0 : f.warning)),
4393
- danger: r(((d = e == null ? void 0 : e.color) == null ? void 0 : d.danger) || ((i = t == null ? void 0 : t.color) == null ? void 0 : i.danger)),
4394
- error: r(((h = e == null ? void 0 : e.color) == null ? void 0 : h.error) || ((p = t == null ? void 0 : t.color) == null ? void 0 : p.error)),
4395
- info: r(((v = e == null ? void 0 : e.color) == null ? void 0 : v.info) || ((m = t == null ? void 0 : t.color) == null ? void 0 : m.info)),
4407
+ warning: r(((c = e == null ? void 0 : e.color) == null ? void 0 : c.warning) || ((i = t == null ? void 0 : t.color) == null ? void 0 : i.warning)),
4408
+ danger: r(((f = e == null ? void 0 : e.color) == null ? void 0 : f.danger) || ((d = t == null ? void 0 : t.color) == null ? void 0 : d.danger)),
4409
+ error: r(((m = e == null ? void 0 : e.color) == null ? void 0 : m.error) || ((p = t == null ? void 0 : t.color) == null ? void 0 : p.error)),
4410
+ info: r(((v = e == null ? void 0 : e.color) == null ? void 0 : v.info) || ((y = t == null ? void 0 : t.color) == null ? void 0 : y.info)),
4396
4411
  ...t == null ? void 0 : t.extraColor
4397
4412
  },
4398
4413
  radius: {
@@ -4414,7 +4429,7 @@ const Ia = () => ({
4414
4429
  md: 1.5714285714285714,
4415
4430
  sm: 1.6666666666666667
4416
4431
  },
4417
- spacing: se(n, (b, x) => ({
4432
+ spacing: ie(n, (b, x) => ({
4418
4433
  ...b,
4419
4434
  [String(x)]: x * (t == null ? void 0 : t.spacing) + "px"
4420
4435
  }), {}),
@@ -4451,7 +4466,7 @@ const Ia = () => ({
4451
4466
  type: Object,
4452
4467
  default: br
4453
4468
  }
4454
- }), qo = N({
4469
+ }), qo = O({
4455
4470
  props: {
4456
4471
  ...Ua()
4457
4472
  },
@@ -4460,47 +4475,47 @@ const Ia = () => ({
4460
4475
  }) => {
4461
4476
  const {
4462
4477
  appConfig: n
4463
- } = jn(), [r, o] = et(), a = E(() => e.mode ? e.mode : n.isDark ? "dark" : "light"), u = () => {
4464
- var h;
4478
+ } = jn(), [r, a] = tt(), o = C(() => e.mode ? e.mode : n.isDark ? "dark" : "light"), u = () => {
4479
+ var m;
4465
4480
  if (e.theme)
4466
4481
  return e.theme;
4467
- const i = e.themeToken;
4482
+ const d = e.themeToken;
4468
4483
  return qa({
4469
- ...i,
4484
+ ...d,
4470
4485
  color: {
4471
- ...i == null ? void 0 : i.color,
4472
- primary: ((h = i == null ? void 0 : i.color) == null ? void 0 : h.primary) || n.primary
4486
+ ...d == null ? void 0 : d.color,
4487
+ primary: ((m = d == null ? void 0 : d.color) == null ? void 0 : m.primary) || n.primary
4473
4488
  }
4474
- }, a.value === "dark" ? e.darkThemeToken : e.lightThemeToken);
4489
+ }, o.value === "dark" ? e.darkThemeToken : e.lightThemeToken);
4475
4490
  }, l = ve({
4476
4491
  ...u()
4477
4492
  });
4478
4493
  Ee(() => {
4479
4494
  yt(l, u());
4480
4495
  }, [() => e.theme, () => e.themeToken, () => n.primary, () => n.isDark]), ue(() => {
4481
- var i, h;
4482
- a.value === "dark" ? (i = document.querySelector("html")) == null || i.classList.add("dark") : (h = document.querySelector("html")) == null || h.classList.remove("dark");
4483
- }, a), Ee(() => {
4484
- o();
4496
+ var d, m;
4497
+ o.value === "dark" ? (d = document.querySelector("html")) == null || d.classList.add("dark") : (m = document.querySelector("html")) == null || m.classList.remove("dark");
4498
+ }, o), Ee(() => {
4499
+ a();
4485
4500
  }, l, {
4486
4501
  deep: !0
4487
4502
  }), Se(mn, {
4488
4503
  theme: l
4489
4504
  });
4490
- const c = E(() => e.createCssVar ? e.createCssVar(l, a.value) : {}), f = E(() => a.value === "dark" ? {
4505
+ const c = C(() => e.createCssVar ? e.createCssVar(l, o.value) : {}), i = C(() => o.value === "dark" ? {
4491
4506
  "html.dark": c.value
4492
4507
  } : {
4493
4508
  ":root": c.value
4494
- }), d = E(() => Ze($(c.value, (i, h) => `${h}:${i}`), ";"));
4509
+ }), f = C(() => et($(c.value, (d, m) => `${m}:${d}`), ";"));
4495
4510
  return () => {
4496
- var i, h;
4511
+ var d, m;
4497
4512
  return e.global ? s(fe, null, [e.createCssVar && s(pr, {
4498
4513
  key: r.value,
4499
- styles: f.value
4500
- }, null), (i = t.default) == null ? void 0 : i.call(t)]) : s("div", {
4514
+ styles: i.value
4515
+ }, null), (d = t.default) == null ? void 0 : d.call(t)]) : s("div", {
4501
4516
  class: "pro-theme",
4502
- style: d.value
4503
- }, [(h = t.default) == null ? void 0 : h.call(t)]);
4517
+ style: f.value
4518
+ }, [(m = t.default) == null ? void 0 : m.call(t)]);
4504
4519
  };
4505
4520
  }
4506
4521
  });
@@ -4508,7 +4523,7 @@ export {
4508
4523
  jt as AddButton,
4509
4524
  Sr as AppConfig,
4510
4525
  Vr as ColumnSetting,
4511
- U as CurdAction,
4526
+ V as CurdAction,
4512
4527
  qe as CurdAddAction,
4513
4528
  Me as CurdCurrentMode,
4514
4529
  Mt as CurdMethods,
@@ -4521,15 +4536,15 @@ export {
4521
4536
  Mn as LogonUserKey,
4522
4537
  _e as ModalCurdOpe,
4523
4538
  So as MustLogon,
4524
- ot as PageHeader,
4539
+ ut as PageHeader,
4525
4540
  Po as PerSuffix,
4526
4541
  Co as Permission,
4527
4542
  Bo as ProAppConfigDrawer,
4528
4543
  oo as ProConfig,
4529
- Je as ProCurd,
4544
+ Ze as ProCurd,
4530
4545
  Oa as ProCurdDesc,
4531
4546
  Lo as ProCurdDescConnect,
4532
- rt as ProCurdForm,
4547
+ at as ProCurdForm,
4533
4548
  Ro as ProCurdFormConnect,
4534
4549
  Ka as ProCurdFormPage,
4535
4550
  Ln as ProCurdList,
@@ -4559,7 +4574,7 @@ export {
4559
4574
  ko as ProShowDate,
4560
4575
  xo as ProShowDigit,
4561
4576
  wo as ProShowOptions,
4562
- nt as ProShowText,
4577
+ rt as ProShowText,
4563
4578
  To as ProShowTree,
4564
4579
  Mo as ProTable,
4565
4580
  qo as ProTheme,
@@ -4571,7 +4586,7 @@ export {
4571
4586
  Qr as ProWatermark,
4572
4587
  je as RequestAction,
4573
4588
  ia as RouterMethods,
4574
- Ye as SearchMode,
4589
+ Qe as SearchMode,
4575
4590
  mn as ThemeKey,
4576
4591
  gt as ThemeToken,
4577
4592
  Pa as Wrapper,
@@ -4593,7 +4608,7 @@ export {
4593
4608
  kr as getValidValues,
4594
4609
  ba as isValidConfig,
4595
4610
  ct as isValidNode,
4596
- tt as mergeState,
4611
+ nt as mergeState,
4597
4612
  io as mergeStateToList,
4598
4613
  Te as proBaseProps,
4599
4614
  Ea as provideProCurd,