@vue-start/pro 0.5.64 → 0.5.65

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