@vue-start/pro 0.5.61 → 0.5.62

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,16 +1,16 @@
1
- import { inject as be, defineComponent as N, provide as Se, createVNode as s, mergeProps as F, isVNode as De, Fragment as fe, reactive as ve, computed as I, ref as Q, createTextVNode as st, toRef as jn, KeepAlive as Bn, Teleport as zt, h as Ke, resolveComponent as qn } from "vue";
2
- import { reduce as ce, get as p, map as R, isString as ye, forEach as se, isFunction as Y, filter as J, keys as Z, omit as D, isArray as ae, split as Un, isEmpty as Ht, isObject as Fe, mergeWith as Vn, size as ee, startsWith as zn, pick as ne, mapKeys as Hn, set as he, debounce as Wt, clone as Wn, some as Ie, isBoolean as Re, has as it, sortBy as _t, every as Gt, pickBy as Xt, identity as _n, find as ct, findIndex as Gn, countBy as Xn, findLast as Yn, isNumber as dt, join as et, endsWith as Yt, add as Qn, subtract as Jn, head as Zn, cloneDeep as Qt } from "lodash";
3
- import { filter as Le, tap as Xe, merge as er, Subject as tr } from "rxjs";
4
- import { map as nr, tap as rr } from "rxjs/operators";
5
- import { mergeStateToData as ar, mergeStateToData2 as or, useEffect as oe, useUpdateKey as tt, useRuleState as ot, convertCollection as Jt, useWatch as Me, useState as Et, signTableMerge as ur, useResizeObserver as Zt, treeToMap as ft, findTreeItem as $e, jsonToStr as Ye, filterCollection as lr, getMenuTopNameMap as wt, findFirstValidMenu as en, strToJson as mt, decimalFixed as cr, thousandDivision as sr, listToMap as ir, setReactiveValue as yt, restorePath as tn, isValidPath as nn, isPathHasParent as rn, useSafeActivated as dr } from "@vue-start/hooks";
6
- import { useRequestProvide as Ve, isDoneRequestActor as vt, isFailedRequestActor as an } from "@vue-start/request";
7
- import { useDispatchStore as on, useObservableRef as un, useStoreConn as ln, createStateUse as cn, useStore as fr, shallowEqual as mr } from "@vue-start/store";
8
- import { useRoute as ht, RouterView as yr, useRouter as sn, parseQuery as Tt, stringifyQuery as vr } from "vue-router";
1
+ import { inject as be, defineComponent as k, provide as Se, createVNode as s, mergeProps as F, isVNode as De, Fragment as fe, reactive as ve, computed as x, ref as Y, createTextVNode as st, toRef as jn, nextTick as Bn, KeepAlive as qn, Teleport as zt, h as Ke, resolveComponent as Un } from "vue";
2
+ import { reduce as ce, get as p, map as L, isString as ye, forEach as se, isFunction as X, filter as Q, keys as J, omit as O, isArray as ae, split as Vn, isEmpty as Ht, isObject as Fe, mergeWith as zn, size as ee, startsWith as Hn, pick as ne, mapKeys as Wn, set as he, debounce as Wt, clone as _n, some as Ie, isBoolean as Re, has as it, sortBy as _t, every as Gt, pickBy as Xt, identity as Gn, find as lt, findIndex as Xn, countBy as Yn, findLast as Qn, isNumber as dt, join as Ze, endsWith as Yt, add as Jn, subtract as Zn, head as er, cloneDeep as Qt } from "lodash";
3
+ import { filter as Le, tap as Ge, merge as tr, Subject as nr } from "rxjs";
4
+ import { map as rr, tap as ar } from "rxjs/operators";
5
+ import { mergeStateToData as or, mergeStateToData2 as ur, useEffect as oe, useUpdateKey as et, useRuleState as at, convertCollection as Jt, useWatch as Me, useState as Et, signTableMerge as lr, useResizeObserver as Zt, treeToMap as ft, findTreeItem as $e, jsonToStr as Xe, filterCollection as cr, getMenuTopNameMap as wt, findFirstValidMenu as en, strToJson as mt, decimalFixed as sr, thousandDivision as ir, listToMap as dr, setReactiveValue as yt, restorePath as tn, isValidPath as nn, isPathHasParent as rn, useSafeActivated as fr } from "@vue-start/hooks";
6
+ import { useRequestProvide as Ue, isDoneRequestActor as vt, isFailedRequestActor as an } from "@vue-start/request";
7
+ import { useDispatchStore as on, useObservableRef as un, useStoreConn as ln, createStateUse as cn, useStore as mr, shallowEqual as yr } from "@vue-start/store";
8
+ import { useRoute as ht, RouterView as vr, useRouter as sn, parseQuery as Tt, stringifyQuery as hr } from "vue-router";
9
9
  import kt from "dayjs";
10
10
  import { css as Nt } from "@emotion/css";
11
11
  import { mix as dn } from "polished";
12
- import { Global as hr } from "@vue-start/css";
13
- const fn = Symbol("logon-user"), Ja = () => be(fn), gt = {
12
+ import { Global as gr } from "@vue-start/css";
13
+ const fn = Symbol("logon-user"), Za = () => be(fn), gt = {
14
14
  color: {
15
15
  primary: "#409eff",
16
16
  success: "#67c23a",
@@ -28,7 +28,7 @@ const fn = Symbol("logon-user"), Ja = () => be(fn), gt = {
28
28
  radius: "4px",
29
29
  lineHeight: 1.5714285714285714,
30
30
  spacing: 4
31
- }, gr = {
31
+ }, pr = {
32
32
  ...gt,
33
33
  extraColor: {
34
34
  text: { base: "#E5EAF3", regular: "#CFD3DC", secondary: "#A3A6AD", placeholder: "#8D9095", disabled: "#6C6E72" },
@@ -36,7 +36,7 @@ const fn = Symbol("logon-user"), Ja = () => be(fn), gt = {
36
36
  bg: { base: "black", light: "#141414" },
37
37
  mode: { base: "black", rgb: "0,0,0", reverse: "white", "reverse-rgb": "255,255,255" }
38
38
  }
39
- }, pr = {
39
+ }, br = {
40
40
  layout: "compose",
41
41
  primary: gt.color.primary,
42
42
  isDark: !1,
@@ -53,17 +53,17 @@ const fn = Symbol("logon-user"), Ja = () => be(fn), gt = {
53
53
  isGray: !1,
54
54
  isInvert: !1,
55
55
  isWatermark: !0
56
- }, br = () => ({
56
+ }, Sr = () => ({
57
57
  elementMap: { type: Object },
58
58
  formElementMap: { type: Object },
59
59
  columns: { type: Array },
60
60
  convertColumn: { type: Function },
61
61
  columnState: { type: Object },
62
62
  columnState2: { type: Object }
63
- }), we = br(), nt = (e, t, r) => {
63
+ }), we = Sr(), tt = (e, t, r) => {
64
64
  let a = e;
65
- return t && (a = ar(a, t, (o) => pe(o))), r && (a = or(a, r, (o) => pe(o))), a;
66
- }, Sr = () => ({
65
+ return t && (a = or(a, t, (o) => pe(o))), r && (a = ur(a, r, (o) => pe(o))), a;
66
+ }, Pr = () => ({
67
67
  elementMap: { type: Object },
68
68
  formElementMap: { type: Object },
69
69
  formExtraMap: { type: Object },
@@ -75,27 +75,27 @@ const fn = Symbol("logon-user"), Ja = () => be(fn), gt = {
75
75
  showMsg: { type: Function },
76
76
  showModal: { type: Function },
77
77
  showNotify: { type: Function },
78
- appConfig: { type: Object, default: pr }
79
- }), pt = Symbol("pro-config"), ie = () => be(pt) || {}, Za = () => {
78
+ appConfig: { type: Object, default: br }
79
+ }), pt = Symbol("pro-config"), ie = () => be(pt) || {}, eo = () => {
80
80
  const { showMsg: e } = ie();
81
81
  return (t) => e(t);
82
- }, eo = () => {
82
+ }, to = () => {
83
83
  const { showModal: e } = ie();
84
84
  return (t) => e(t);
85
- }, to = () => {
85
+ }, no = () => {
86
86
  const { showNotify: e } = ie();
87
87
  return (t) => e(t);
88
- }, no = N({
88
+ }, ro = k({
89
89
  props: {
90
- ...Sr()
90
+ ...Pr()
91
91
  },
92
92
  setup: (e, { slots: t }) => {
93
- const r = ce(e.registerStores, (l, c) => ({ ...l, [c.key]: c }), {}), a = ce(e.registerActors, (l, c) => ({ ...l, [c.actor.name]: c }), {}), o = ce(e.registerMetas, (l, c) => ({ ...l, [c.actorName]: c }), {}), { dispatchRequest: n } = Ve(), u = (l, c, i) => {
93
+ const r = ce(e.registerStores, (l, c) => ({ ...l, [c.key]: c }), {}), a = ce(e.registerActors, (l, c) => ({ ...l, [c.actor.name]: c }), {}), o = ce(e.registerMetas, (l, c) => ({ ...l, [c.actorName]: c }), {}), { dispatchRequest: n } = Ue(), u = (l, c, i) => {
94
94
  const f = p(a, l);
95
95
  if (!!f)
96
96
  return n(f.actor, c, i);
97
97
  };
98
- return Mr(o, a), Se(pt, {
98
+ return Ir(o, a), Se(pt, {
99
99
  elementMap: e.elementMap,
100
100
  formElementMap: e.formElementMap,
101
101
  formExtraMap: e.formExtraMap,
@@ -113,14 +113,14 @@ const fn = Symbol("logon-user"), Ja = () => be(fn), gt = {
113
113
  return (l = t.default) == null ? void 0 : l.call(t);
114
114
  };
115
115
  }
116
- }), ro = (e = {}) => (t) => {
116
+ }), ao = (e = {}) => (t) => {
117
117
  t.provide(pt, e);
118
118
  }, mn = (e) => (t, r) => {
119
- const { requestSubject$: a } = Ve(), o = new Set(R(t, (n) => ye(n) ? n : n.name));
119
+ const { requestSubject$: a } = Ue(), o = new Set(L(t, (n) => ye(n) ? n : n.name));
120
120
  oe(() => {
121
121
  const n = a.pipe(
122
122
  Le(e),
123
- Xe((u) => {
123
+ Ge((u) => {
124
124
  o.has(u.name) && r(u);
125
125
  })
126
126
  ).subscribe();
@@ -128,20 +128,20 @@ const fn = Symbol("logon-user"), Ja = () => be(fn), gt = {
128
128
  n.unsubscribe();
129
129
  };
130
130
  }, []);
131
- }, ao = mn(vt), oo = mn(an), Pr = (e, t, r) => {
132
- const { requestSubject$: a, dispatchRequest: o } = Ve(), n = new Set(R(e, (l) => ye(l) ? l : l.name)), u = {};
131
+ }, oo = mn(vt), uo = mn(an), Cr = (e, t, r) => {
132
+ const { requestSubject$: a, dispatchRequest: o } = Ue(), n = new Set(L(e, (l) => ye(l) ? l : l.name)), u = {};
133
133
  oe(() => {
134
- const l = er(
134
+ const l = tr(
135
135
  a.pipe(
136
136
  Le(vt),
137
- Xe((c) => {
137
+ Ge((c) => {
138
138
  var i, f;
139
139
  n.has(c.name) && ((i = t.onSuccess) == null || i.call(t, c), (f = t.onFinish) == null || f.call(t, c), u[c.name] = void 0);
140
140
  })
141
141
  ),
142
142
  a.pipe(
143
143
  Le(an),
144
- Xe((c) => {
144
+ Ge((c) => {
145
145
  var i, f;
146
146
  n.has(c.name) && ((i = t.onFailed) == null || i.call(t, c), (f = t.onFinish) == null || f.call(t, c), u[c.name] = void 0);
147
147
  })
@@ -153,18 +153,18 @@ const fn = Symbol("logon-user"), Ja = () => be(fn), gt = {
153
153
  });
154
154
  };
155
155
  }, []);
156
- }, Cr = (e, t, r) => {
156
+ }, Mr = (e, t, r) => {
157
157
  var o;
158
158
  const a = (o = e.res) == null ? void 0 : o.data;
159
159
  return t ? t(a, e) : r ? p(a, r) : a;
160
- }, yn = (e, t) => Y(e) ? "meta_" + e(t) : "meta_" + e, uo = (e, t) => {
160
+ }, yn = (e, t) => X(e) ? "meta_" + e(t) : "meta_" + e, lo = (e, t) => {
161
161
  const { registerMetaMap: r, dispatchRequest: a } = ie(), o = p(r, e);
162
162
  if (!o)
163
163
  return {};
164
164
  const n = yn(o.storeName || e, t || o.initParams), l = un(ln((c) => p(c, n)));
165
165
  return l.value || a(e, t || o.initParams || {}), l;
166
- }, Mr = (e, t) => {
167
- const { requestSubject$: r } = Ve(), a = on(), o = (n) => {
166
+ }, Ir = (e, t) => {
167
+ const { requestSubject$: r } = Ue(), a = on(), o = (n) => {
168
168
  const u = p(e, n.name), l = p(t, n.name);
169
169
  return !!(u && l && l.actor);
170
170
  };
@@ -172,11 +172,11 @@ const fn = Symbol("logon-user"), Ja = () => be(fn), gt = {
172
172
  const n = r.pipe(
173
173
  Le(o),
174
174
  Le(vt),
175
- Xe((u) => {
175
+ Ge((u) => {
176
176
  const l = p(e, u.name);
177
177
  if (!l)
178
178
  return;
179
- const c = l.storeName || u.name, i = Cr(u, l.convertData, l.convertPath), f = yn(c, u.req);
179
+ const c = l.storeName || u.name, i = Mr(u, l.convertData, l.convertPath), f = yn(c, u.req);
180
180
  a(f, i, !1, void 0);
181
181
  })
182
182
  ).subscribe();
@@ -219,10 +219,10 @@ const fn = Symbol("logon-user"), Ja = () => be(fn), gt = {
219
219
  const { elementMap: e } = ie();
220
220
  return (t) => p(e, t);
221
221
  };
222
- function Ir(e) {
222
+ function xr(e) {
223
223
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !De(e);
224
224
  }
225
- const xr = () => ({
225
+ const Er = () => ({
226
226
  row: {
227
227
  type: Object,
228
228
  default: void 0
@@ -233,15 +233,15 @@ const xr = () => ({
233
233
  items: {
234
234
  type: Array
235
235
  }
236
- }), Ae = N({
236
+ }), Ae = k({
237
237
  props: {
238
- ...xr()
238
+ ...Er()
239
239
  },
240
240
  setup: (e) => {
241
241
  const t = te(), r = t(z.RowKey), a = t(z.ColKey);
242
242
  return () => {
243
243
  let o;
244
- return !r || !a ? null : s(r, e.row, Ir(o = R(e.items, (n) => s(a, F({
244
+ return !r || !a ? null : s(r, e.row, xr(o = L(e.items, (n) => s(a, F({
245
245
  key: n.rowKey
246
246
  }, e.col, n.col), {
247
247
  default: () => [n.vNode]
@@ -250,22 +250,22 @@ const xr = () => ({
250
250
  });
251
251
  };
252
252
  }
253
- }), Er = (e, t, r) => {
253
+ }), wr = (e, t, r) => {
254
254
  if (t) {
255
- const a = J(Z(t), (o) => !t[o]);
256
- return D(e, a);
255
+ const a = Q(J(t), (o) => !t[o]);
256
+ return O(e, a);
257
257
  }
258
258
  if (r) {
259
- const a = J(Z(r), (o) => !r[o](e));
260
- return D(e, a);
259
+ const a = Q(J(r), (o) => !r[o](e));
260
+ return O(e, a);
261
261
  }
262
262
  return e;
263
263
  }, vn = (e) => {
264
264
  if (!!e)
265
- return ae(e) ? e : e && ye(e) && e.indexOf(".") > 0 ? Un(e, ".") : [e];
266
- }, lo = (e, t, r) => !t || !r ? e : R(e, (a) => {
267
- const o = Y(r) ? r(a) : p(a, r), n = p(t, o);
268
- return !n || Ht(n) || Y(n) || !Fe(n) ? a : Vn(a, n, (u, l) => {
265
+ return ae(e) ? e : e && ye(e) && e.indexOf(".") > 0 ? Vn(e, ".") : [e];
266
+ }, co = (e, t, r) => !t || !r ? e : L(e, (a) => {
267
+ const o = X(r) ? r(a) : p(a, r), n = p(t, o);
268
+ return !n || Ht(n) || X(n) || !Fe(n) ? a : zn(a, n, (u, l) => {
269
269
  if (ae(u) || ae(l))
270
270
  return l;
271
271
  });
@@ -282,7 +282,7 @@ const xr = () => ({
282
282
  {}
283
283
  );
284
284
  return r.originRef = t, r;
285
- }, co = (e, t, r) => {
285
+ }, so = (e, t, r) => {
286
286
  const a = { originRef: e, ...r };
287
287
  return t && ee(t) > 0 && se(t, (o) => {
288
288
  a[o] = (...n) => {
@@ -290,12 +290,12 @@ const xr = () => ({
290
290
  return (l = (u = e.value) == null ? void 0 : u[o]) == null ? void 0 : l.call(u, ...n);
291
291
  };
292
292
  }), a;
293
- }, wr = (e, t) => p(e, ["extra", t]) || p(e, t), ge = (e, t) => {
294
- const r = Z(e), a = `${t}-`, o = J(r, (u) => zn(u, a)), n = ne(e, o);
295
- return Hn(n, (u, l) => l.replace(a, ""));
293
+ }, Tr = (e, t) => p(e, ["extra", t]) || p(e, t), ge = (e, t) => {
294
+ const r = J(e), a = `${t}-`, o = Q(r, (u) => Hn(u, a)), n = ne(e, o);
295
+ return Wn(n, (u, l) => l.replace(a, ""));
296
296
  }, hn = Symbol("pro-form-list"), gn = () => be(hn), pn = (e) => {
297
297
  Se(hn, e);
298
- }, Tr = N({
298
+ }, kr = k({
299
299
  props: {
300
300
  pathList: {
301
301
  type: Array
@@ -346,10 +346,10 @@ const xr = () => ({
346
346
  onRemove: {
347
347
  type: Function
348
348
  }
349
- }), so = N({
349
+ }), io = k({
350
350
  props: {
351
351
  ...At(),
352
- ...D(Ae.props, "items")
352
+ ...O(Ae.props, "items")
353
353
  },
354
354
  setup: (e, {
355
355
  slots: t
@@ -359,53 +359,53 @@ const xr = () => ({
359
359
  readonly: n,
360
360
  elementMap: u,
361
361
  formElementMap: l
362
- } = Sn(), c = gn(), i = vn(e.name), f = c != null && c.pathList ? [...c.pathList, ...i] : i, [m, d] = tt(), g = () => {
363
- var w;
364
- if (((w = e.onPreAdd) == null ? void 0 : w.call(e)) === !0)
362
+ } = Sn(), c = gn(), i = vn(e.name), f = c != null && c.pathList ? [...c.pathList, ...i] : i, [m, d] = et(), g = () => {
363
+ var T;
364
+ if (((T = e.onPreAdd) == null ? void 0 : T.call(e)) === !0)
365
365
  return;
366
- const M = () => {
366
+ const C = () => {
367
367
  let K = p(o, f);
368
368
  ae(K) || (K = []), K.push({
369
369
  [e.rowKey]: new Date().valueOf()
370
370
  }), he(o, f, K);
371
371
  };
372
372
  if (e.onAdd) {
373
- e.onAdd(M);
373
+ e.onAdd(C);
374
374
  return;
375
375
  }
376
- M();
377
- }, C = (h, M) => {
378
- var $;
379
- if ((($ = e.onPreRemove) == null ? void 0 : $.call(e, {
376
+ C();
377
+ }, P = (h, C) => {
378
+ var R;
379
+ if (((R = e.onPreRemove) == null ? void 0 : R.call(e, {
380
380
  index: h,
381
- item: M
381
+ item: C
382
382
  })) === !0)
383
383
  return;
384
384
  const K = () => {
385
- const G = p(o, f);
386
- ee(G) <= 0 || (G.splice(h, 1), d());
385
+ const _ = p(o, f);
386
+ ee(_) <= 0 || (_.splice(h, 1), d());
387
387
  };
388
388
  if (e.onRemove) {
389
389
  e.onRemove(K, {
390
390
  index: h,
391
- item: M
391
+ item: C
392
392
  });
393
393
  return;
394
394
  }
395
395
  K();
396
- }, v = (h, M) => {
397
- const w = pe(h);
398
- return w && t[w] ? t[w]({
396
+ }, v = (h, C) => {
397
+ const T = pe(h);
398
+ return T && t[T] ? t[T]({
399
399
  item: h,
400
400
  formState: o,
401
- pathList: M
401
+ pathList: C
402
402
  }) : An(u, l, h);
403
- }, b = (h, M) => {
403
+ }, S = (h, C) => {
404
404
  if (!l || ee(e.columns) <= 0)
405
405
  return null;
406
406
  if (!e.row)
407
- return R(e.columns, (K) => v(K, h));
408
- const w = R(e.columns, (K) => ({
407
+ return L(e.columns, (K) => v(K, h));
408
+ const T = L(e.columns, (K) => ({
409
409
  rowKey: pe(K),
410
410
  vNode: v(K, h),
411
411
  col: p(K, ["extra", "col"])
@@ -413,46 +413,50 @@ const xr = () => ({
413
413
  return s(Ae, {
414
414
  row: e.row,
415
415
  col: e.col,
416
- items: w
416
+ items: T
417
417
  }, null);
418
- }, E = Z(At());
418
+ }, w = J(At());
419
419
  return () => a ? s(a, F({
420
420
  class: `pro-form-list ${e.inline ? "pro-form-list-inline" : ""}`,
421
421
  name: e.name
422
- }, D(e, E)), {
422
+ }, O(e, w)), {
423
423
  default: () => {
424
- var h, M;
425
- return [R(p(o, f), (w, K) => {
426
- const $ = [...f, K];
427
- return s(Tr, {
428
- key: w[e.rowKey] + m.value,
429
- pathList: $
424
+ var h, C, T;
425
+ return [L(p(o, f), (K, R) => {
426
+ const _ = [...f, R];
427
+ return s(kr, {
428
+ key: K[e.rowKey] + m.value,
429
+ pathList: _
430
430
  }, {
431
431
  default: () => {
432
- var G, L, T, k, W, S;
432
+ var Z, D, A, $, b, M;
433
433
  return [s("div", {
434
434
  class: "pro-form-list-item"
435
- }, [(G = t.start) == null ? void 0 : G.call(t, {
435
+ }, [(Z = t.start) == null ? void 0 : Z.call(t, {
436
436
  state: o,
437
437
  path: f,
438
- index: K
439
- }), b($), (L = t.default) == null ? void 0 : L.call(t), !n.value && s(fe, null, [s("div", {
438
+ index: R
439
+ }), S(_), (D = t.default) == null ? void 0 : D.call(t, {
440
+ state: o,
441
+ path: f,
442
+ index: R
443
+ }), !n.value && s(fe, null, [s("div", {
440
444
  class: "pro-form-list-item-add",
441
445
  onClick: g
442
- }, [((T = t.itemAdd) == null ? void 0 : T.call(t)) || ((k = e.renderItemAdd) == null ? void 0 : k.call(e))]), s("div", {
446
+ }, [((A = t.itemAdd) == null ? void 0 : A.call(t)) || (($ = e.renderItemAdd) == null ? void 0 : $.call(e))]), s("div", {
443
447
  class: "pro-form-list-item-minus",
444
- onClick: () => C(K, w)
445
- }, [((W = t.itemMinus) == null ? void 0 : W.call(t)) || ((S = e.renderItemMinus) == null ? void 0 : S.call(e))])])])];
448
+ onClick: () => P(R, K)
449
+ }, [((b = t.itemMinus) == null ? void 0 : b.call(t)) || ((M = e.renderItemMinus) == null ? void 0 : M.call(e))])])])];
446
450
  }
447
451
  });
448
452
  }), !n.value && s("div", {
449
453
  class: "pro-form-list-add",
450
454
  onClick: g
451
- }, [((h = t.add) == null ? void 0 : h.call(t)) || ((M = e.renderAdd) == null ? void 0 : M.call(e))])];
455
+ }, [((h = t.add) == null ? void 0 : h.call(t)) || ((C = e.renderAdd) == null ? void 0 : C.call(e))]), (T = t.end) == null ? void 0 : T.call(t)];
452
456
  }
453
457
  }) : null;
454
458
  }
455
- }), bn = Symbol("pro-form"), Sn = () => be(bn), kr = (e, t = 300, r) => Wt(e, t, r), Nr = (e) => {
459
+ }), bn = Symbol("pro-form"), Sn = () => be(bn), Nr = (e, t = 300, r) => Wt(e, t, r), Ar = (e) => {
456
460
  Se(bn, e);
457
461
  };
458
462
  let de;
@@ -509,12 +513,12 @@ const Ot = () => ({
509
513
  type: Function,
510
514
  default: void 0
511
515
  }
512
- }), io = N({
516
+ }), fo = k({
513
517
  inheritAttrs: !1,
514
518
  props: {
515
519
  ...we,
516
520
  ...Ot(),
517
- ...D(Ae.props, "items")
521
+ ...O(Ae.props, "items")
518
522
  },
519
523
  setup: (e, {
520
524
  slots: t,
@@ -525,24 +529,24 @@ const Ot = () => ({
525
529
  const {
526
530
  elementMap: n,
527
531
  formElementMap: u
528
- } = ie(), l = e.elementMap || n, c = e.formElementMap || u, i = e.model || ve({}), f = ot(i, e.showStateRules, e.showState), m = ot(i, e.readonlyStateRules, e.readonlyState), d = ot(i, e.disableStateRules, e.disableState), g = I(() => e.readonly), C = I(() => {
529
- const O = nt(e.columns, e.columnState, e.columnState2);
530
- return e.convertColumn ? Jt(O, e.convertColumn) : O;
531
- }), v = Q(!1), b = Q(0), E = (...O) => {
532
+ } = ie(), l = e.elementMap || n, c = e.formElementMap || u, i = e.model || ve({}), f = at(i, e.showStateRules, e.showState), m = at(i, e.readonlyStateRules, e.readonlyState), d = at(i, e.disableStateRules, e.disableState), g = x(() => e.readonly), P = x(() => {
533
+ const N = tt(e.columns, e.columnState, e.columnState2);
534
+ return e.convertColumn ? Jt(N, e.convertColumn) : N;
535
+ }), v = Y(!1), S = Y(0), w = (...N) => {
532
536
  var re;
533
- ((re = e.onPreFinish) == null ? void 0 : re.call(e, ...O)) !== !0 && r("finish", ...O, {
537
+ ((re = e.onPreFinish) == null ? void 0 : re.call(e, ...N)) !== !0 && r("finish", ...N, {
534
538
  userOpe: v,
535
- asyncNum: b
539
+ asyncNum: S
536
540
  });
537
- }, h = e.debounceSubmit, M = (typeof h == "object" ? h.wait : h) || 300, w = kr((...O) => E(...O), M, h == null ? void 0 : h.options), K = (O) => {
538
- const B = Er(O, f, e.showStateRules);
539
- h !== void 0 ? w(B, O) : E(B, O);
540
- }, $ = Q();
541
+ }, h = e.debounceSubmit, C = (typeof h == "object" ? h.wait : h) || 300, T = Nr((...N) => w(...N), C, h == null ? void 0 : h.options), K = (N) => {
542
+ const B = wr(N, f, e.showStateRules);
543
+ h !== void 0 ? T(B, N) : w(B, N);
544
+ }, R = Y();
541
545
  a({
542
- ...xe(e.formMethods || [], $),
546
+ ...xe(e.formMethods || [], R),
543
547
  userOpe: v,
544
- asyncNum: b
545
- }), Nr({
548
+ asyncNum: S
549
+ }), Ar({
546
550
  formState: i,
547
551
  showState: f,
548
552
  readonlyState: m,
@@ -550,13 +554,13 @@ const Ot = () => ({
550
554
  elementMap: l,
551
555
  formElementMap: c,
552
556
  readonly: g,
553
- columns: C,
554
- formRef: $,
557
+ columns: P,
558
+ formRef: R,
555
559
  userOpe: v,
556
- asyncNum: b,
560
+ asyncNum: S,
557
561
  ...e.provideExtra
558
562
  }), pn({});
559
- const G = [{
563
+ const _ = [{
560
564
  value: de.RESET,
561
565
  label: "\u91CD\u7F6E"
562
566
  }, {
@@ -565,88 +569,88 @@ const Ot = () => ({
565
569
  extraProps: {
566
570
  type: "primary"
567
571
  }
568
- }], L = () => {
569
- var O, B;
570
- if ((O = e.operate) != null && O.onReset) {
572
+ }], Z = () => {
573
+ var N, B;
574
+ if ((N = e.operate) != null && N.onReset) {
571
575
  e.operate.onReset({
572
- form: $.value
576
+ form: R.value
573
577
  });
574
578
  return;
575
579
  }
576
- (B = $.value) == null || B.resetFields();
577
- }, T = () => {
578
- var O, B;
579
- if ((O = e.operate) != null && O.onSubmit) {
580
+ (B = R.value) == null || B.resetFields();
581
+ }, D = () => {
582
+ var N, B;
583
+ if ((N = e.operate) != null && N.onSubmit) {
580
584
  e.operate.onSubmit({
581
- form: $.value
585
+ form: R.value
582
586
  });
583
587
  return;
584
588
  }
585
- (B = $.value) == null || B.submit();
586
- }, k = () => {
587
- var O, B;
588
- (B = (O = e.operate) == null ? void 0 : O.onContinue) == null || B.call(O, {
589
- form: $.value
589
+ (B = R.value) == null || B.submit();
590
+ }, A = () => {
591
+ var N, B;
592
+ (B = (N = e.operate) == null ? void 0 : N.onContinue) == null || B.call(N, {
593
+ form: R.value
590
594
  });
591
- }, W = {
592
- [de.RESET]: L,
593
- [de.SUBMIT]: T,
594
- [de.CONTINUE]: k
595
- }, S = I(() => {
596
- const O = e.operate, B = (O == null ? void 0 : O.items) || G;
597
- return R(B, (re) => !re.onClick && !p(O == null ? void 0 : O.itemState, [re.value, "onClick"]) ? {
595
+ }, $ = {
596
+ [de.RESET]: Z,
597
+ [de.SUBMIT]: D,
598
+ [de.CONTINUE]: A
599
+ }, b = x(() => {
600
+ const N = e.operate, B = (N == null ? void 0 : N.items) || _;
601
+ return L(B, (re) => !re.onClick && !p(N == null ? void 0 : N.itemState, [re.value, "onClick"]) ? {
598
602
  ...re,
599
- onClick: p(W, re.value)
603
+ onClick: p($, re.value)
600
604
  } : re);
601
- }), P = I(() => {
602
- var O;
605
+ }), M = x(() => {
606
+ var N;
603
607
  return {
604
608
  [de.SUBMIT]: {
605
609
  value: de.SUBMIT,
606
610
  loading: e.submitLoading
607
611
  },
608
- ...(O = e.operate) == null ? void 0 : O.itemState
612
+ ...(N = e.operate) == null ? void 0 : N.itemState
609
613
  };
610
- }), A = (O) => {
611
- const B = pe(O);
612
- return B && t[B] ? t[B](O, i) : An(l, c, O);
613
- }, y = I(() => {
614
- const O = J(C.value, (B) => {
614
+ }), I = (N) => {
615
+ const B = pe(N);
616
+ return B && t[B] ? t[B](N, i) : An(l, c, N);
617
+ }, y = x(() => {
618
+ const N = Q(P.value, (B) => {
615
619
  const re = pe(B);
616
620
  return !!p(f, re, !0);
617
621
  });
618
- return e.row ? R(O, (B) => ({
622
+ return e.row ? L(N, (B) => ({
619
623
  rowKey: pe(B),
620
- vNode: A(B),
624
+ vNode: I(B),
621
625
  col: p(B, ["extra", "col"])
622
- })) : R(O, (B) => A(B));
623
- }), j = [...Z(Ot()), ...Z(we)], U = Z(D(Ae.props, "items")), H = p(n, z.FormKey);
626
+ })) : L(N, (B) => I(B));
627
+ }), j = [...J(Ot()), ...J(we)], U = J(O(Ae.props, "items")), H = p(n, z.FormKey);
624
628
  return () => {
625
- var X, le, me;
629
+ var G, le, me;
626
630
  if (!H)
627
631
  return null;
628
- const O = (X = t.start) == null ? void 0 : X.call(t), B = (le = t.default) == null ? void 0 : le.call(t), re = (me = t.end) == null ? void 0 : me.call(t), x = [e.clsName], V = ee(y.value) <= 0 && !Be(O) && !Be(B);
629
- return V && x.push("is-empty"), s(H, F({
630
- ref: $,
631
- class: x
632
- }, D(o, "onFinish"), D(e, ...j, ...U, "onFinish", "operate"), {
632
+ const N = (G = t.start) == null ? void 0 : G.call(t), B = (le = t.default) == null ? void 0 : le.call(t), re = (me = t.end) == null ? void 0 : me.call(t), E = [e.clsName], V = ee(y.value) <= 0 && !ct(N) && !ct(B);
633
+ return V && E.push("is-empty"), s(H, F({
634
+ ref: R,
635
+ class: E
636
+ }, O(o, "onFinish"), O(e, ...j, ...U, "onFinish", "operate"), {
633
637
  model: i,
634
638
  onFinish: K
635
639
  }), {
636
- default: () => [O, c && ee(C.value) > 0 && s(fe, null, [e.row ? s(Ae, {
640
+ default: () => [N, c && ee(P.value) > 0 && s(fe, null, [e.row ? s(Ae, {
637
641
  row: e.row,
638
642
  col: e.col,
639
643
  items: y.value
640
644
  }, null) : y.value]), B, e.operate && !V && s(bt, F({
641
645
  class: `${e.clsName}-operate`
642
- }, D(e.operate, "items", "itemState", "onReset", "onSubmit", "onContinue"), {
643
- items: S.value,
644
- itemState: P.value
646
+ }, O(e.operate, "items", "itemState", "onReset", "onSubmit", "onContinue"), {
647
+ items: b.value,
648
+ itemState: M.value
645
649
  }), null), re]
646
650
  });
647
651
  };
648
652
  }
649
- }), fo = {
653
+ }), mo = {
650
654
  text: "\u8BF7\u8F93\u5165",
651
655
  digit: "\u8BF7\u8F93\u5165",
652
656
  select: "\u8BF7\u9009\u62E9",
@@ -658,10 +662,10 @@ const Ot = () => ({
658
662
  date: "\u8BF7\u9009\u62E9",
659
663
  time: "\u8BF7\u9009\u62E9"
660
664
  };
661
- let Qe;
665
+ let Ye;
662
666
  (function(e) {
663
667
  e.AUTO = "AUTO", e.MANUAL = "MANUAL";
664
- })(Qe || (Qe = {}));
668
+ })(Ye || (Ye = {}));
665
669
  const Dt = () => ({
666
670
  initEmit: {
667
671
  type: Boolean,
@@ -669,7 +673,7 @@ const Dt = () => ({
669
673
  },
670
674
  searchMode: {
671
675
  type: String,
672
- default: Qe.AUTO
676
+ default: Ye.AUTO
673
677
  },
674
678
  debounceKeys: {
675
679
  type: Array
@@ -682,7 +686,7 @@ const Dt = () => ({
682
686
  type: Number,
683
687
  default: 800
684
688
  }
685
- }), mo = N({
689
+ }), yo = k({
686
690
  props: {
687
691
  ...Dt(),
688
692
  needRules: {
@@ -694,13 +698,13 @@ const Dt = () => ({
694
698
  slots: t,
695
699
  expose: r
696
700
  }) => {
697
- const o = te()(z.ProFormKey), n = e.model || ve({}), u = new Set(e.debounceTypes), l = R(J(e.columns, (v) => {
698
- const b = Nn(v);
699
- return u.has(b);
700
- }), (v) => pe(v)), c = I(() => R(e.columns, (v) => ({
701
+ const o = te()(z.ProFormKey), n = e.model || ve({}), u = new Set(e.debounceTypes), l = L(Q(e.columns, (v) => {
702
+ const S = Nn(v);
703
+ return u.has(S);
704
+ }), (v) => pe(v)), c = x(() => L(e.columns, (v) => ({
701
705
  ...v,
702
- formItemProps: D(v.formItemProps, "required")
703
- }))), i = Q(), f = e.formMethods || [];
706
+ formItemProps: O(v.formItemProps, "required")
707
+ }))), i = Y(), f = e.formMethods || [];
704
708
  r(xe(f, i));
705
709
  const m = () => {
706
710
  var v;
@@ -711,27 +715,27 @@ const Dt = () => ({
711
715
  oe(() => {
712
716
  e.initEmit && m();
713
717
  }, []);
714
- const g = (v, b, E) => Ie(E, (h) => p(v, h) !== p(b, h));
715
- Me((v, b) => {
716
- if (e.searchMode !== Qe.AUTO)
718
+ const g = (v, S, w) => Ie(w, (h) => p(v, h) !== p(S, h));
719
+ Me((v, S) => {
720
+ if (e.searchMode !== Ye.AUTO)
717
721
  return;
718
- const E = ee(e.debounceKeys) > 0 ? e.debounceKeys : l;
719
- if (ee(E) > 0 && g(v, b, E)) {
722
+ const w = ee(e.debounceKeys) > 0 ? e.debounceKeys : l;
723
+ if (ee(w) > 0 && g(v, S, w)) {
720
724
  d();
721
725
  return;
722
726
  }
723
727
  m();
724
- }, () => Wn(n));
725
- const C = Z(Dt());
728
+ }, () => _n(n));
729
+ const P = J(Dt());
726
730
  return () => o ? s(o, F({
727
731
  ref: i,
728
732
  class: "pro-search-form"
729
- }, D(e, C, "columns"), {
733
+ }, O(e, P, "columns"), {
730
734
  columns: c.value,
731
735
  model: n
732
736
  }), t) : null;
733
737
  }
734
- }), Ar = () => ({
738
+ }), Or = () => ({
735
739
  title: String,
736
740
  content: String,
737
741
  renderDom: {
@@ -740,15 +744,15 @@ const Dt = () => ({
740
744
  class: "pro-tip-dom"
741
745
  }, [st("?")])
742
746
  }
743
- }), Or = N({
747
+ }), Dr = k({
744
748
  props: {
745
- ...Ar()
749
+ ...Or()
746
750
  },
747
751
  setup: (e, {
748
752
  slots: t
749
753
  }) => {
750
754
  const a = te()(z.TooltipKey);
751
- return () => s(a, D(e, "renderDom"), {
755
+ return () => s(a, O(e, "renderDom"), {
752
756
  default: () => {
753
757
  var o, n;
754
758
  return [((o = t.default) == null ? void 0 : o.call(t)) || ((n = e.renderDom) == null ? void 0 : n.call(e))];
@@ -778,11 +782,11 @@ const Dt = () => ({
778
782
  tipProps: {
779
783
  type: Object
780
784
  }
781
- }), yo = (e, t) => ({
785
+ }), vo = (e, t) => ({
782
786
  InputComp: r,
783
787
  valueType: a,
784
788
  name: o
785
- }) => N({
789
+ }) => k({
786
790
  name: o,
787
791
  props: {
788
792
  ...e.props,
@@ -800,113 +804,113 @@ const Dt = () => ({
800
804
  disableState: m,
801
805
  readonly: d,
802
806
  userOpe: g
803
- } = Sn(), C = gn(), v = I(() => Re(n.readonly) ? n.readonly : Re(f[n.name]) ? f[n.name] : d.value), b = () => `${p(l == null ? void 0 : l.rulePrefixMap, a) || "\u8BF7\u8F93\u5165"}${n.label || ""}`, E = I(() => l != null && l.rulePrefixMap ? n.required === !0 && !n.rules ? [{
807
+ } = Sn(), P = gn(), v = x(() => Re(n.readonly) ? n.readonly : Re(f[n.name]) ? f[n.name] : d.value), S = () => `${p(l == null ? void 0 : l.rulePrefixMap, a) || "\u8BF7\u8F93\u5165"}${n.label || ""}`, w = x(() => l != null && l.rulePrefixMap ? n.required === !0 && !n.rules ? [{
804
808
  required: !0,
805
- message: b()
806
- }] : n.rules ? R(n.rules, (T) => (T.required && !T.message && (T.message = b()), T)) : n.rules : n.rules), h = vn(n.name), M = C != null && C.pathList ? [...C.pathList, ...h] : h, w = (T) => {
807
- g.value = !0, he(i, M, T);
808
- }, K = Z(Kt()), $ = () => {
809
- const T = p(i, M);
809
+ message: S()
810
+ }] : n.rules ? L(n.rules, (D) => (D.required && !D.message && (D.message = S()), D)) : n.rules : n.rules), h = vn(n.name), C = P != null && P.pathList ? [...P.pathList, ...h] : h, T = (D) => {
811
+ g.value = !0, he(i, C, D);
812
+ }, K = J(Kt()), R = () => {
813
+ const D = p(i, C);
810
814
  if (u.renderShow)
811
815
  return u.renderShow({
812
- value: T,
816
+ value: D,
813
817
  record: i,
814
- path: M
818
+ path: C
815
819
  });
816
- const k = p(c, a);
817
- return k ? s(k, F({
818
- value: T
820
+ const A = p(c, a);
821
+ return A ? s(A, F({
822
+ value: D
819
823
  }, n.fieldProps, {
820
824
  showProps: n.showProps
821
- }), u) : s("span", null, [T]);
822
- }, G = () => {
823
- const T = p(i, M), k = p(m, M);
825
+ }), u) : s("span", null, [D]);
826
+ }, _ = () => {
827
+ const D = p(i, C), A = p(m, C);
824
828
  return u.renderInput ? u.renderInput({
825
- value: T,
826
- setValue: w,
827
- disabled: k,
829
+ value: D,
830
+ setValue: T,
831
+ disabled: A,
828
832
  record: i,
829
- path: M
830
- }) : s(r, F(t(T, w, k), n.fieldProps), u);
831
- }, L = () => s(fe, null, [n.label, n.tip && s(Or, F({
833
+ path: C
834
+ }) : s(r, F(t(D, T, A), n.fieldProps), u);
835
+ }, Z = () => s(fe, null, [n.label, n.tip && s(Dr, F({
832
836
  content: n.tip,
833
837
  title: n.tip
834
838
  }, n.tipProps), null)]);
835
839
  return () => s(e, F({
836
840
  class: "pro-form-item"
837
- }, D(n, ...K, "name", "rules"), {
838
- name: M,
839
- rules: E.value
841
+ }, O(n, ...K, "name", "rules"), {
842
+ name: C,
843
+ rules: w.value
840
844
  }), {
841
- default: () => [v.value ? $() : G()],
842
- label: n.label || n.tip ? L : void 0,
845
+ default: () => [v.value ? R() : _()],
846
+ label: n.label || n.tip ? Z : void 0,
843
847
  ...n.slots
844
848
  });
845
849
  }
846
- }), Pn = cn("access", void 0, !0), Dr = () => {
850
+ }), Pn = cn("access", void 0, !0), Kr = () => {
847
851
  const [e, t] = Pn();
848
852
  return { access: e, setAccess: t, delAccess: () => {
849
853
  t(void 0);
850
854
  } };
851
- }, vo = () => {
855
+ }, ho = () => {
852
856
  const [e, t] = Pn();
853
857
  return [e, t, () => {
854
858
  t(void 0);
855
859
  }];
856
- }, Cn = Symbol("logon-user"), Kr = () => be(Cn), ho = N((e, { slots: t }) => {
860
+ }, Cn = Symbol("logon-user"), Fr = () => be(Cn), go = k((e, { slots: t }) => {
857
861
  const [r, a] = Et(), [o, n] = Et();
858
862
  return Se(Cn, { user: r, setUser: a, per: o, setPer: n, opts: {} }), () => {
859
863
  var l;
860
864
  return (l = t.default) == null ? void 0 : l.call(t);
861
865
  };
862
- }), go = N((e, { slots: t, emit: r }) => {
863
- const { access: a } = Dr(), o = I(() => a && a.token);
866
+ }), po = k((e, { slots: t, emit: r }) => {
867
+ const { access: a } = Kr(), o = x(() => a && a.token);
864
868
  return oe(() => {
865
869
  o.value || r("toLogin");
866
870
  }, o), () => {
867
871
  var n;
868
872
  return o.value ? (n = t.default) == null ? void 0 : n.call(t) : null;
869
873
  };
870
- }), po = {
874
+ }), bo = {
871
875
  Add: "add",
872
876
  Edit: "edit",
873
877
  Delete: "delete"
874
- }, Fr = (e, t) => !e || !t ? !1 : ae(t) ? Ie(t, (r) => e[r]) : e[t], Mn = () => {
875
- const { per: e } = Kr() || { per: { menus: [], buttonMap: {} } }, t = ht();
878
+ }, Rr = (e, t) => !e || !t ? !1 : ae(t) ? Ie(t, (r) => e[r]) : e[t], Mn = () => {
879
+ const { per: e } = Fr() || { per: { menus: [], buttonMap: {} } }, t = ht();
876
880
  return (r, a) => {
877
881
  if (!r)
878
882
  return !1;
879
883
  let o = r;
880
884
  if (a != null && a.suffix) {
881
885
  const n = t.name ? t.name.toString() : "", u = (a == null ? void 0 : a.splitStr) || "_";
882
- o = ae(o) ? R(o, (l) => `${n}${u}${l}`) : `${n}${u}${o}`;
886
+ o = ae(o) ? L(o, (l) => `${n}${u}${l}`) : `${n}${u}${o}`;
883
887
  }
884
- return Fr(e.buttonMap, o);
888
+ return Rr(e.buttonMap, o);
885
889
  };
886
890
  }, In = () => {
887
891
  const e = Mn();
888
892
  return (t, r, a) => t ? e(t) : r ? e(r, { suffix: !0, splitStr: a }) : !0;
889
- }, Rr = () => ({
893
+ }, Lr = () => ({
890
894
  suffix: { type: [String, Array] },
891
895
  value: { type: [String, Array] },
892
896
  splitStr: { type: String }
893
- }), bo = N({
897
+ }), So = k({
894
898
  inheritAttrs: !1,
895
899
  props: {
896
- ...Rr()
900
+ ...Lr()
897
901
  },
898
902
  setup: (e, { slots: t }) => {
899
- const r = Mn(), a = I(() => e.value ? r(e.value) : e.suffix ? r(e.suffix, { suffix: !0, splitStr: e.splitStr }) : !1);
903
+ const r = Mn(), a = x(() => e.value ? r(e.value) : e.suffix ? r(e.suffix, { suffix: !0, splitStr: e.splitStr }) : !1);
900
904
  return () => {
901
905
  var o;
902
906
  return a.value ? (o = t.default) == null ? void 0 : o.call(t) : null;
903
907
  };
904
908
  }
905
909
  });
906
- function Lr(e) {
910
+ function $r(e) {
907
911
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !De(e);
908
912
  }
909
- const $r = () => ({
913
+ const jr = () => ({
910
914
  clsName: {
911
915
  type: String,
912
916
  default: "pro-operate"
@@ -924,15 +928,15 @@ const $r = () => ({
924
928
  splitStr: {
925
929
  type: String
926
930
  }
927
- }), bt = N({
931
+ }), bt = k({
928
932
  props: {
929
- ...$r()
933
+ ...jr()
930
934
  },
931
935
  setup: (e, {
932
936
  slots: t
933
937
  }) => {
934
- const r = In(), a = I(() => {
935
- const c = J(e.items, (f) => r(f.per, f.perSuffix, e.splitStr) ? Y(f.show) ? f.show() : Re(f.show) ? f.show : !0 : !1), i = R(c, (f) => it(e.itemState, f.value) ? {
938
+ const r = In(), a = x(() => {
939
+ const c = Q(e.items, (f) => r(f.per, f.perSuffix, e.splitStr) ? X(f.show) ? f.show() : Re(f.show) ? f.show : !0 : !1), i = L(c, (f) => it(e.itemState, f.value) ? {
936
940
  ...f,
937
941
  ...p(e.itemState, f.value)
938
942
  } : f);
@@ -943,29 +947,29 @@ const $r = () => ({
943
947
  }, n = te(), u = e.elementKey ? n(e.elementKey) : void 0, l = n(z.TooltipKey);
944
948
  return () => s("div", {
945
949
  class: e.clsName
946
- }, [R(a.value, (c) => {
947
- const i = Y(c.disabled) ? c.disabled() : c.disabled, f = Y(c.loading) ? c.loading() : c.loading, m = Y(c.label) ? c.label() : c.label, d = Y(c.extraProps) ? c.extraProps() : c.extraProps, g = {
948
- ...D(c, "show", "disabled", "element"),
950
+ }, [L(a.value, (c) => {
951
+ const i = X(c.disabled) ? c.disabled() : c.disabled, f = X(c.loading) ? c.loading() : c.loading, m = X(c.label) ? c.label() : c.label, d = X(c.extraProps) ? c.extraProps() : c.extraProps, g = {
952
+ ...O(c, "show", "disabled", "element"),
949
953
  disabled: i
950
954
  };
951
- if (c.element && Y(c.element))
955
+ if (c.element && X(c.element))
952
956
  return c.element(g);
953
957
  if (t[c.value])
954
958
  return t[c.value](g);
955
959
  if (u) {
956
- const C = s(u, F({
960
+ const P = s(u, F({
957
961
  disabled: i,
958
962
  loading: f,
959
963
  onClick: () => o(c)
960
- }, d), Lr(m) ? m : {
964
+ }, d), $r(m) ? m : {
961
965
  default: () => [m]
962
966
  });
963
967
  return c.tip && l ? s(l, F({
964
968
  placement: "top"
965
969
  }, c.tipProps), {
966
- default: () => [C],
970
+ default: () => [P],
967
971
  content: () => c.tip
968
- }) : C;
972
+ }) : P;
969
973
  }
970
974
  return s("div", {
971
975
  class: `${e.clsName}-item`,
@@ -973,7 +977,7 @@ const $r = () => ({
973
977
  }, [m]);
974
978
  })]);
975
979
  }
976
- }), jr = () => ({
980
+ }), Br = () => ({
977
981
  clsName: {
978
982
  type: String,
979
983
  default: "pro-table-toolbar-column"
@@ -1002,9 +1006,9 @@ const $r = () => ({
1002
1006
  type: String,
1003
1007
  default: "\u91CD\u7F6E"
1004
1008
  }
1005
- }), Br = N({
1009
+ }), qr = k({
1006
1010
  props: {
1007
- ...jr()
1011
+ ...Br()
1008
1012
  },
1009
1013
  setup: (e, {
1010
1014
  slots: t
@@ -1012,7 +1016,7 @@ const $r = () => ({
1012
1016
  const r = te(), a = r(z.PopoverKey), o = r(z.CheckboxKey), {
1013
1017
  originColumns: n,
1014
1018
  selectIdsRef: u
1015
- } = qr(), [l, c] = tt();
1019
+ } = Ur(), [l, c] = et();
1016
1020
  let i = {};
1017
1021
  const f = (h) => {
1018
1022
  i[h] = !1;
@@ -1020,52 +1024,52 @@ const $r = () => ({
1020
1024
  se(u.value, (h) => {
1021
1025
  i[h] = !0;
1022
1026
  });
1023
- }, d = I(() => ce(u.value, (h, M) => ({
1027
+ }, d = x(() => ce(u.value, (h, C) => ({
1024
1028
  ...h,
1025
- [M]: !0
1026
- }), {})), g = (h) => wr(h, e.signName);
1029
+ [C]: !0
1030
+ }), {})), g = (h) => Tr(h, e.signName);
1027
1031
  oe(() => {
1028
- u.value = R(J(n.value, (h) => {
1029
- var M;
1030
- return e.useSelectedStatus && it(i, h.dataIndex) ? i[h.dataIndex] : ((M = g(h)) == null ? void 0 : M.initShow) !== !1;
1032
+ u.value = L(Q(n.value, (h) => {
1033
+ var C;
1034
+ return e.useSelectedStatus && it(i, h.dataIndex) ? i[h.dataIndex] : ((C = g(h)) == null ? void 0 : C.initShow) !== !1;
1031
1035
  }), (h) => h.dataIndex);
1032
1036
  }, n), Me(() => {
1033
1037
  var h;
1034
1038
  c(), m(), (h = e.onColumnSelectChange) == null || h.call(e, u.value);
1035
1039
  }, u);
1036
- const C = I(() => {
1037
- const h = Gt(n.value, (w) => {
1040
+ const P = x(() => {
1041
+ const h = Gt(n.value, (T) => {
1038
1042
  var K;
1039
- return (K = g(w)) != null && K.disabled ? !0 : p(d.value, w.dataIndex);
1040
- }), M = Ie(n.value, (w) => {
1043
+ return (K = g(T)) != null && K.disabled ? !0 : p(d.value, T.dataIndex);
1044
+ }), C = Ie(n.value, (T) => {
1041
1045
  var K;
1042
- return (K = g(w)) != null && K.disabled ? !0 : p(d.value, w.dataIndex);
1046
+ return (K = g(T)) != null && K.disabled ? !0 : p(d.value, T.dataIndex);
1043
1047
  });
1044
1048
  return {
1045
1049
  checked: h,
1046
- indeterminate: h ? !1 : M
1050
+ indeterminate: h ? !1 : C
1047
1051
  };
1048
1052
  }), v = (h) => {
1049
- var w;
1050
- (Fe(h) ? (w = h.target) == null ? void 0 : w.checked : h) ? u.value = R(n.value, (K) => K.dataIndex) : u.value = R(J(n.value, (K) => {
1051
- var $;
1052
- return ($ = g(K)) != null && $.disabled ? !0 : (f(K.dataIndex), !1);
1053
+ var T;
1054
+ (Fe(h) ? (T = h.target) == null ? void 0 : T.checked : h) ? u.value = L(n.value, (K) => K.dataIndex) : u.value = L(Q(n.value, (K) => {
1055
+ var R;
1056
+ return (R = g(K)) != null && R.disabled ? !0 : (f(K.dataIndex), !1);
1053
1057
  }), (K) => K.dataIndex);
1054
- }, b = () => {
1055
- u.value = R(J(n.value, (h) => {
1056
- var M;
1057
- return ((M = g(h)) == null ? void 0 : M.initShow) === !1 ? (f(h.dataIndex), !1) : !0;
1058
+ }, S = () => {
1059
+ u.value = L(Q(n.value, (h) => {
1060
+ var C;
1061
+ return ((C = g(h)) == null ? void 0 : C.initShow) === !1 ? (f(h.dataIndex), !1) : !0;
1058
1062
  }), (h) => h.dataIndex);
1059
- }, E = (h, M) => {
1063
+ }, w = (h, C) => {
1060
1064
  var K;
1061
- (Fe(M) ? (K = M.target) == null ? void 0 : K.checked : M) ? u.value = [...u.value, h.dataIndex] : u.value = J(u.value, ($) => h.dataIndex === $ ? (f(h.dataIndex), !1) : !0);
1065
+ (Fe(C) ? (K = C.target) == null ? void 0 : K.checked : C) ? u.value = [...u.value, h.dataIndex] : u.value = Q(u.value, (R) => h.dataIndex === R ? (f(h.dataIndex), !1) : !0);
1062
1066
  };
1063
1067
  return () => a ? s(a, F({
1064
1068
  trigger: "click"
1065
1069
  }, e.popoverProps), {
1066
1070
  default: () => {
1067
- var h, M;
1068
- return [((h = t.default) == null ? void 0 : h.call(t)) || ((M = e.renderDom) == null ? void 0 : M.call(e))];
1071
+ var h, C;
1072
+ return [((h = t.default) == null ? void 0 : h.call(t)) || ((C = e.renderDom) == null ? void 0 : C.call(e))];
1069
1073
  },
1070
1074
  content: () => s("div", {
1071
1075
  class: `${e.clsName}`
@@ -1073,32 +1077,32 @@ const $r = () => ({
1073
1077
  class: `${e.clsName}-header`
1074
1078
  }, [s(o, {
1075
1079
  key: l.value,
1076
- checked: C.value.checked,
1077
- indeterminate: C.value.indeterminate,
1080
+ checked: P.value.checked,
1081
+ indeterminate: P.value.indeterminate,
1078
1082
  onChange: v
1079
1083
  }, {
1080
1084
  default: () => [e.allTitle]
1081
1085
  }), s("a", {
1082
- onClick: b
1086
+ onClick: S
1083
1087
  }, [e.resetTitle])]), s("div", {
1084
1088
  key: l.value,
1085
1089
  class: `${e.clsName}-list`
1086
- }, [R(n.value, (h) => {
1087
- const M = g(h), w = p(d.value, h.dataIndex, !1);
1090
+ }, [L(n.value, (h) => {
1091
+ const C = g(h), T = p(d.value, h.dataIndex, !1);
1088
1092
  return s(o, {
1089
- checked: w,
1090
- disabled: M == null ? void 0 : M.disabled,
1093
+ checked: T,
1094
+ disabled: C == null ? void 0 : C.disabled,
1091
1095
  onChange: (K) => {
1092
- E(h, K);
1096
+ w(h, K);
1093
1097
  }
1094
1098
  }, {
1095
1099
  default: () => [h.title]
1096
1100
  });
1097
1101
  })])]),
1098
- ...D(t, "default")
1102
+ ...O(t, "default")
1099
1103
  }) : null;
1100
1104
  }
1101
- }), xn = Symbol("pro-table"), qr = () => be(xn), Ur = (e) => {
1105
+ }), xn = Symbol("pro-table"), Ur = () => be(xn), Vr = (e) => {
1102
1106
  Se(xn, e);
1103
1107
  }, Ft = () => ({
1104
1108
  clsName: {
@@ -1141,7 +1145,7 @@ const $r = () => ({
1141
1145
  dataSource: {
1142
1146
  type: Array
1143
1147
  }
1144
- }), So = N({
1148
+ }), Po = k({
1145
1149
  inheritAttrs: !1,
1146
1150
  props: {
1147
1151
  ...we,
@@ -1163,139 +1167,142 @@ const $r = () => ({
1163
1167
  ...e.column,
1164
1168
  ...Re(e.serialNumber) ? void 0 : e.serialNumber,
1165
1169
  customRender: ({
1166
- index: L
1170
+ index: D
1167
1171
  }) => {
1168
- var T, k;
1169
- return ((T = e.paginationState) == null ? void 0 : T.page) && ((k = e.paginationState) == null ? void 0 : k.pageSize) ? e.paginationState.pageSize * (e.paginationState.page - 1) + L + 1 : L + 1;
1172
+ var A, $;
1173
+ return ((A = e.paginationState) == null ? void 0 : A.page) && (($ = e.paginationState) == null ? void 0 : $.pageSize) ? e.paginationState.pageSize * (e.paginationState.page - 1) + D + 1 : D + 1;
1170
1174
  }
1171
- }), i = (L, T) => {
1172
- var W;
1173
- if (e.operateItemClickMap && e.operateItemClickMap[T.value]) {
1174
- e.operateItemClickMap[T.value](L, T);
1175
+ }), i = (D, A) => {
1176
+ var b;
1177
+ if (e.operateItemClickMap && e.operateItemClickMap[A.value]) {
1178
+ e.operateItemClickMap[A.value](D, A);
1175
1179
  return;
1176
1180
  }
1177
- const k = T.routeOpts;
1178
- if (k) {
1179
- Y(k) ? u.push(k(L)) : u.push({
1180
- name: k.name,
1181
- query: ne(L, k.query)
1181
+ const $ = A.routeOpts;
1182
+ if ($) {
1183
+ X($) ? u.push($(D)) : u.push({
1184
+ name: $.name,
1185
+ query: ne(D, $.query)
1182
1186
  });
1183
1187
  return;
1184
1188
  }
1185
- (W = T.onClick) == null || W.call(T, L);
1189
+ (b = A.onClick) == null || b.call(A, D);
1186
1190
  }, f = ge(t, "operate"), m = () => {
1187
- const L = e.operate, T = R(L.items, (k) => ({
1188
- ...p(e.operateItemState, k.value),
1189
- ...k,
1190
- ...p(L.itemState, k.value)
1191
+ const D = e.operate, A = L(D.items, ($) => ({
1192
+ ...p(e.operateItemState, $.value),
1193
+ ...$,
1194
+ ...p(D.itemState, $.value)
1191
1195
  }));
1192
1196
  return {
1193
1197
  ...e.column,
1194
1198
  title: "\u64CD\u4F5C",
1195
1199
  dataIndex: "operate",
1196
1200
  fixed: "right",
1197
- ...L.column,
1201
+ ...D.column,
1198
1202
  customRender: ({
1199
- record: k
1203
+ record: $
1200
1204
  }) => {
1201
- const W = R(T, (P) => ({
1202
- ...P,
1203
- show: Y(P.show) ? P.show(k) : P.show,
1204
- disabled: Y(P.disabled) ? P.disabled(k) : P.disabled,
1205
- loading: Y(P.loading) ? P.loading(k) : P.loading,
1206
- extraProps: Y(P.extraProps) ? P.extraProps(k) : P.extraProps,
1207
- element: Y(P.element) ? (A) => P.element(k, A) : P.element,
1208
- onClick: () => i(k, P),
1209
- tip: Y(P.tip) ? P.tip(k) : P.tip,
1210
- tipProps: Y(P.tipProps) ? P.tipProps(k) : P.tipProps
1211
- })), S = ce(Z(f), (P, A) => ({
1212
- ...P,
1213
- [A]: (y) => {
1214
- var j;
1215
- return (j = f[A]) == null ? void 0 : j.call(f, k, y);
1205
+ const b = L(A, (I) => ({
1206
+ ...I,
1207
+ show: X(I.show) ? I.show($) : I.show,
1208
+ disabled: X(I.disabled) ? I.disabled($) : I.disabled,
1209
+ loading: X(I.loading) ? I.loading($) : I.loading,
1210
+ extraProps: X(I.extraProps) ? I.extraProps($) : I.extraProps,
1211
+ element: X(I.element) ? (y) => I.element($, y) : I.element,
1212
+ onClick: () => i($, I),
1213
+ tip: X(I.tip) ? I.tip($) : I.tip,
1214
+ tipProps: X(I.tipProps) ? I.tipProps($) : I.tipProps
1215
+ })), M = ce(J(f), (I, y) => ({
1216
+ ...I,
1217
+ [y]: (j) => {
1218
+ var U;
1219
+ return (U = f[y]) == null ? void 0 : U.call(f, $, j);
1216
1220
  }
1217
1221
  }), {});
1218
1222
  return s(bt, {
1219
1223
  class: `${e.clsName}-operate`,
1220
- items: W,
1221
- elementKey: L.elementKey || z.TableOperateKey
1222
- }, S);
1224
+ items: b,
1225
+ elementKey: D.elementKey || z.TableOperateKey
1226
+ }, M);
1223
1227
  }
1224
1228
  };
1225
- }, d = Q([]), g = I(() => {
1226
- var L;
1227
- return !!((L = e.toolbar) != null && L.columnSetting);
1228
- }), C = jn(e, "columns"), v = I(() => {
1229
+ }, d = Y([]), g = x(() => {
1230
+ var D;
1231
+ return !!((D = e.toolbar) != null && D.columnSetting);
1232
+ }), P = jn(e, "columns"), v = x(() => {
1229
1233
  if (!g.value)
1230
1234
  return e.columns;
1231
- const L = ce(d.value, (T, k) => ({
1232
- ...T,
1233
- [k]: !0
1235
+ const D = ce(d.value, (A, $) => ({
1236
+ ...A,
1237
+ [$]: !0
1234
1238
  }), {});
1235
- return J(e.columns, (T) => p(L, T.dataIndex));
1236
- }), b = (L) => R(L, (T) => {
1237
- const k = {
1239
+ return Q(e.columns, (A) => p(D, A.dataIndex));
1240
+ }), S = (D) => L(D, (A) => {
1241
+ const $ = {
1238
1242
  ...e.column,
1239
- ...T
1240
- }, W = e.convertColumn ? e.convertColumn(k) : k;
1241
- return T.children && ee(T.children) > 0 ? (W.children = b(T.children), W) : (T.customRender || (W.customRender = ({
1242
- value: S
1243
- }) => typeof S > "u" || S === null || S === "" ? e.columnEmptyText : Pt(n, T, {
1244
- value: S
1243
+ ...A
1244
+ }, b = e.convertColumn ? e.convertColumn($) : $;
1245
+ return A.children && ee(A.children) > 0 ? (b.children = S(A.children), b) : (A.customRender || (b.customRender = ({
1246
+ value: M
1247
+ }) => typeof M > "u" || M === null || M === "" ? e.columnEmptyText : Pt(n, A, {
1248
+ value: M
1245
1249
  }, {
1246
1250
  render: "tableRender"
1247
- }) || S), W);
1248
- }), E = I(() => {
1249
- const L = nt(v.value, e.columnState, e.columnState2), T = b(L);
1250
- return e.serialNumber && T.unshift(c()), e.operate && e.operate.items && Ie(e.operate.items, (k) => k.show) && T.push(m()), T;
1251
- }), h = I(() => {
1252
- var T, k;
1253
- const L = e.dataSource;
1254
- return L && (((T = e.mergeOpts) == null ? void 0 : T.rowNames) || ((k = e.mergeOpts) == null ? void 0 : k.colNames)) && ur(L, e.mergeOpts), L;
1255
- }), M = Q();
1256
- Ur({
1257
- columns: E,
1258
- originColumns: C,
1251
+ }) || M), b);
1252
+ }), w = x(() => {
1253
+ const D = tt(v.value, e.columnState, e.columnState2), A = S(D);
1254
+ return e.serialNumber && A.unshift(c()), e.operate && e.operate.items && Ie(e.operate.items, ($) => $.show) && A.push(m()), A;
1255
+ }), h = x(() => {
1256
+ var A, $;
1257
+ const D = e.dataSource;
1258
+ return D && (((A = e.mergeOpts) == null ? void 0 : A.rowNames) || (($ = e.mergeOpts) == null ? void 0 : $.colNames)) && lr(D, e.mergeOpts), D;
1259
+ }), C = Y();
1260
+ Vr({
1261
+ columns: w,
1262
+ originColumns: P,
1259
1263
  selectIdsRef: d,
1260
- tableRef: M,
1264
+ tableRef: C,
1261
1265
  toolbar: e.toolbar,
1262
1266
  ...e.provideExtra
1263
- }), r(xe(e.tableMethods || [], M));
1264
- const w = Q(), K = Q(0);
1265
- Zt(w, (L) => {
1266
- const T = p(L, [0, "contentRect"]), k = window.getComputedStyle(w.value);
1267
- if (T.height && k) {
1268
- const W = k.getPropertyValue("margin-bottom"), S = parseInt(W.replace("px", ""));
1269
- K.value = T.height + S;
1270
- }
1267
+ }), r(xe(e.tableMethods || [], C));
1268
+ const T = Y(), K = Y(0), R = Y(0);
1269
+ Zt(T, (D) => {
1270
+ const A = p(D, [0, "contentRect"]);
1271
+ K.value = A.height, Bn(() => {
1272
+ const $ = window.getComputedStyle(T.value);
1273
+ if ($) {
1274
+ const b = parseFloat($.marginTop) || 0, M = parseFloat($.marginBottom) || 0;
1275
+ R.value = K.value + b + M;
1276
+ }
1277
+ });
1271
1278
  });
1272
- const $ = Z(Ft()), G = ge(t, "columnSetting");
1279
+ const _ = J(Ft()), Z = ge(t, "columnSetting");
1273
1280
  return () => {
1274
- var P, A, y;
1281
+ var I, y, j;
1275
1282
  if (!l)
1276
1283
  return null;
1277
- const L = g.value ? s(Br, (P = e.toolbar) == null ? void 0 : P.columnSetting, G) : null, T = (A = t.toolbar) == null ? void 0 : A.call(t), k = (y = t.toolbarExtra) == null ? void 0 : y.call(t, [L]), W = [e.clsName];
1278
- let S = "";
1279
- return (Be(T) || Be(k) || g.value) && (W.push("has-header"), S = `${e.clsName}-toolbar-valid`), s("div", F({
1280
- class: W,
1281
- style: `--pro-table-toolbar-hei: ${K.value}px`
1284
+ const D = g.value ? s(qr, (I = e.toolbar) == null ? void 0 : I.columnSetting, Z) : null, A = (y = t.toolbar) == null ? void 0 : y.call(t), $ = (j = t.toolbarExtra) == null ? void 0 : j.call(t, [D]), b = [e.clsName];
1285
+ let M = "";
1286
+ return K.value > 0 && (b.push("has-header"), M = `${e.clsName}-toolbar-valid`), s("div", F({
1287
+ class: b,
1288
+ style: `--pro-table-toolbar-hei: ${R.value}px`
1282
1289
  }, ne(a, "class")), [s("div", {
1283
- ref: w,
1284
- class: `${e.clsName}-toolbar ${S}`
1290
+ ref: T,
1291
+ class: `${e.clsName}-toolbar ${M}`
1285
1292
  }, [s("div", {
1286
1293
  class: `${e.clsName}-toolbar-start`
1287
- }, [T]), s("div", {
1294
+ }, [A]), s("div", {
1288
1295
  class: `${e.clsName}-toolbar-extra`
1289
- }, [k || L])]), s(l, F({
1290
- ref: M
1291
- }, D(a, "class"), D(e, $), {
1296
+ }, [$ || D])]), s(l, F({
1297
+ ref: C
1298
+ }, O(a, "class"), O(e, _), {
1292
1299
  mergeOpts: e.mergeOpts,
1293
1300
  dataSource: h.value,
1294
- columns: E.value
1301
+ columns: w.value
1295
1302
  }), t)]);
1296
1303
  };
1297
1304
  }
1298
- }), En = Symbol("pro-layout"), Te = () => be(En), Vr = () => ({
1305
+ }), En = Symbol("pro-layout"), Te = () => be(En), zr = () => ({
1299
1306
  includes: {
1300
1307
  type: Array,
1301
1308
  default: []
@@ -1304,9 +1311,9 @@ const $r = () => ({
1304
1311
  type: Boolean,
1305
1312
  default: !0
1306
1313
  }
1307
- }), zr = N({
1314
+ }), Hr = k({
1308
1315
  props: {
1309
- ...Vr()
1316
+ ...zr()
1310
1317
  },
1311
1318
  setup: (e) => {
1312
1319
  const {
@@ -1320,44 +1327,44 @@ const $r = () => ({
1320
1327
  } = Te(), {
1321
1328
  router: c,
1322
1329
  route: i
1323
- } = Pe(), f = I(() => {
1324
- const C = ft(t.value, (v) => v.keep ? ee(v.children) > 0 ? Gt(v.children, (b) => b.hide) : !0 : !1);
1325
- return Xt(C, _n);
1326
- }), m = I(() => {
1327
- const C = Z(f.value);
1330
+ } = Pe(), f = x(() => {
1331
+ const P = ft(t.value, (v) => v.keep ? ee(v.children) > 0 ? Gt(v.children, (S) => S.hide) : !0 : !1);
1332
+ return Xt(P, Gn);
1333
+ }), m = x(() => {
1334
+ const P = J(f.value);
1328
1335
  if (!n.value) {
1329
1336
  const {
1330
- parentList: E
1331
- } = $e(t.value, (M) => M.value === u(i), void 0, []), h = J(E, (M) => {
1332
- const w = l(M);
1333
- return c.hasRoute(w);
1337
+ parentList: w
1338
+ } = $e(t.value, (C) => C.value === u(i), void 0, []), h = Q(w, (C) => {
1339
+ const T = l(C);
1340
+ return c.hasRoute(T);
1334
1341
  });
1335
- return [...C, ...e.includes, ...R(h, (M) => M.value)];
1342
+ return [...P, ...e.includes, ...L(h, (C) => C.value)];
1336
1343
  }
1337
1344
  let v = a.value;
1338
- e.tagsCache || (v = J(a.value, (E) => E.keep));
1339
- let b = R(v, (E) => E.value);
1340
- return o.value && (b = J(b, (E) => E !== i.name)), [...e.includes, ...b];
1341
- }), d = /* @__PURE__ */ new Map(), g = (C, v) => (d.has(v) || d.set(v, {
1342
- ...C,
1345
+ e.tagsCache || (v = Q(a.value, (w) => w.keep));
1346
+ let S = L(v, (w) => w.value);
1347
+ return o.value && (S = Q(S, (w) => w !== i.name)), [...e.includes, ...S];
1348
+ }), d = /* @__PURE__ */ new Map(), g = (P, v) => (d.has(v) || d.set(v, {
1349
+ ...P,
1343
1350
  type: {
1344
- ...C.type,
1351
+ ...P.type,
1345
1352
  name: u(i)
1346
1353
  }
1347
1354
  }), d.get(v));
1348
- return () => s(yr, null, {
1355
+ return () => s(vr, null, {
1349
1356
  default: ({
1350
- Component: C,
1357
+ Component: P,
1351
1358
  route: v
1352
1359
  }) => {
1353
- let b;
1354
- return v.name && (r.value[v.name] ? C && C.type && !C.type.name && (b = g(C, u(v))) : C && C.type && !C.type.name && (C.type.name = v.name)), s(Bn, {
1360
+ let S;
1361
+ return v.name && (r.value[v.name] ? P && P.type && !P.type.name && (S = g(P, u(v))) : P && P.type && !P.type.name && (P.type.name = v.name)), s(qn, {
1355
1362
  include: m.value
1356
- }, [o.value ? null : b ? s(b, null, null) : s(C, null, null)]);
1363
+ }, [o.value ? null : S ? s(S, null, null) : s(P, null, null)]);
1357
1364
  }
1358
1365
  });
1359
1366
  }
1360
- }), Hr = () => ({
1367
+ }), Wr = () => ({
1361
1368
  isHideClose: {
1362
1369
  type: Function
1363
1370
  },
@@ -1376,9 +1383,9 @@ const $r = () => ({
1376
1383
  onItemClick: {
1377
1384
  type: Function
1378
1385
  }
1379
- }), Wr = N({
1386
+ }), _r = k({
1380
1387
  props: {
1381
- ...Hr()
1388
+ ...Wr()
1382
1389
  },
1383
1390
  setup: (e) => {
1384
1391
  const {
@@ -1393,7 +1400,7 @@ const $r = () => ({
1393
1400
  } = Te(), c = ve({
1394
1401
  ctxMenuPos: null,
1395
1402
  ctxMenuItem: null
1396
- }), i = (y) => e.isHideClose ? e.isHideClose(y) : !1, f = I(() => {
1403
+ }), i = (y) => e.isHideClose ? e.isHideClose(y) : !1, f = x(() => {
1397
1404
  const y = l(r);
1398
1405
  return p(o.value, y);
1399
1406
  }), m = ({
@@ -1402,7 +1409,7 @@ const $r = () => ({
1402
1409
  const j = f.value;
1403
1410
  if (!j)
1404
1411
  return;
1405
- let U = ct(n.value, (B) => B.value === j.value);
1412
+ let U = lt(n.value, (B) => B.value === j.value);
1406
1413
  if (!U) {
1407
1414
  n.value = [...n.value, {
1408
1415
  ...j,
@@ -1410,19 +1417,19 @@ const $r = () => ({
1410
1417
  }];
1411
1418
  return;
1412
1419
  }
1413
- const H = Ye(U.query) || "{}", O = Ye(r.query) || "{}";
1414
- if (H !== O) {
1420
+ const H = Xe(U.query) || "{}", N = Xe(r.query) || "{}";
1421
+ if (H !== N) {
1415
1422
  const B = {
1416
1423
  ...j,
1417
1424
  query: r.query
1418
1425
  };
1419
- n.value = R(R(n.value, (re) => re.value === j.value ? B : re)), y == null || y(B);
1426
+ n.value = L(L(n.value, (re) => re.value === j.value ? B : re)), y == null || y(B);
1420
1427
  }
1421
1428
  };
1422
1429
  oe((y, j) => {
1423
1430
  m({
1424
1431
  queryUpdateCb: (U) => {
1425
- y !== j && b(U);
1432
+ y !== j && S(U);
1426
1433
  }
1427
1434
  });
1428
1435
  }, () => r.name), oe((y, j) => {
@@ -1433,9 +1440,9 @@ const $r = () => ({
1433
1440
  m({});
1434
1441
  return;
1435
1442
  }
1436
- const O = f.value;
1437
- !O || (n.value = R(R(n.value, (B) => B.value === O.value ? {
1438
- ...O,
1443
+ const N = f.value;
1444
+ !N || (n.value = L(L(n.value, (B) => B.value === N.value ? {
1445
+ ...N,
1439
1446
  query: r.query
1440
1447
  } : B)));
1441
1448
  }, [() => r.name, () => r.query]);
@@ -1456,23 +1463,23 @@ const $r = () => ({
1456
1463
  var j;
1457
1464
  if (!i(y)) {
1458
1465
  if (y.value === ((j = f.value) == null ? void 0 : j.value)) {
1459
- const U = Gn(n.value, (H) => H.value === f.value.value);
1466
+ const U = Xn(n.value, (H) => H.value === f.value.value);
1460
1467
  n.value[U + 1] ? d(n.value[U + 1]) : n.value[U - 1] && d(n.value[U - 1]);
1461
1468
  }
1462
- n.value = J(n.value, (U) => U.value !== y.value);
1469
+ n.value = Q(n.value, (U) => U.value !== y.value);
1463
1470
  }
1464
- }, C = (y) => {
1471
+ }, P = (y) => {
1465
1472
  var j;
1466
- y.value !== ((j = f.value) == null ? void 0 : j.value) && d(y), n.value = J(n.value, (U) => U.value === y.value ? !0 : i(U));
1473
+ y.value !== ((j = f.value) == null ? void 0 : j.value) && d(y), n.value = Q(n.value, (U) => U.value === y.value ? !0 : i(U));
1467
1474
  }, v = () => {
1468
1475
  if (!f.value || !i(f.value)) {
1469
- const y = ct(n.value, (j) => i(j));
1476
+ const y = lt(n.value, (j) => i(j));
1470
1477
  y && t.openMenu(y);
1471
1478
  }
1472
- n.value = J(n.value, (y) => i(y));
1473
- }, b = (y) => {
1479
+ n.value = Q(n.value, (y) => i(y));
1480
+ }, S = (y) => {
1474
1481
  u(y);
1475
- }, E = (y, j) => {
1482
+ }, w = (y, j) => {
1476
1483
  y.preventDefault();
1477
1484
  const U = y.target;
1478
1485
  if (!U)
@@ -1484,33 +1491,33 @@ const $r = () => ({
1484
1491
  }, c.ctxMenuItem = j;
1485
1492
  }, h = (y) => {
1486
1493
  y.preventDefault(), y.stopPropagation();
1487
- }, M = () => {
1494
+ }, C = () => {
1488
1495
  c.ctxMenuItem = null;
1489
- }, w = Q(), [K, $] = tt(), G = (y) => {
1496
+ }, T = Y(), [K, R] = et(), _ = (y) => {
1490
1497
  const j = ce(n.value, (U, H) => ({
1491
1498
  ...U,
1492
1499
  [H.value]: H
1493
1500
  }), {});
1494
- n.value = R(y, (U) => p(j, U)), $();
1501
+ n.value = L(y, (U) => p(j, U)), R();
1495
1502
  };
1496
1503
  oe(() => {
1497
- !w.value || !e.onDragRegister || e.onDragRegister({
1498
- dom: w.value,
1504
+ !T.value || !e.onDragRegister || e.onDragRegister({
1505
+ dom: T.value,
1499
1506
  dataIdAttr: "data-url",
1500
- onDragEnd: G
1507
+ onDragEnd: _
1501
1508
  });
1502
- }, [w]);
1503
- const L = Q();
1509
+ }, [T]);
1510
+ const Z = Y();
1504
1511
  oe(() => {
1505
1512
  var j;
1506
- const y = (j = L.value) == null ? void 0 : j.originRef;
1513
+ const y = (j = Z.value) == null ? void 0 : j.originRef;
1507
1514
  !y || y == null || y.handleOpen();
1508
- }, L);
1509
- const T = (y) => {
1515
+ }, Z);
1516
+ const D = (y) => {
1510
1517
  y || (c.ctxMenuItem = null);
1511
- }, k = (y) => {
1512
- y === "refresh" ? b(c.ctxMenuItem) : y === "close" ? g(c.ctxMenuItem) : y === "close-other" ? C(c.ctxMenuItem) : y === "close-all" && v(), M();
1513
- }, W = I(() => {
1518
+ }, A = (y) => {
1519
+ y === "refresh" ? S(c.ctxMenuItem) : y === "close" ? g(c.ctxMenuItem) : y === "close-other" ? P(c.ctxMenuItem) : y === "close-all" && v(), C();
1520
+ }, $ = x(() => {
1514
1521
  var j, U;
1515
1522
  const y = [];
1516
1523
  return ((j = f.value) == null ? void 0 : j.value) === ((U = c.ctxMenuItem) == null ? void 0 : U.value) && y.push({
@@ -1525,24 +1532,24 @@ const $r = () => ({
1525
1532
  }, {
1526
1533
  label: "\u5168\u90E8\u5173\u95ED",
1527
1534
  value: "close-all"
1528
- }), R(y, (H) => e.covertMenuItem ? e.covertMenuItem(H) : H);
1529
- }), S = te(), P = S(z.DropdownKey), A = S(z.ScrollKey) || "div";
1530
- return () => s(fe, null, [s(A, {
1535
+ }), L(y, (H) => e.covertMenuItem ? e.covertMenuItem(H) : H);
1536
+ }), b = te(), M = b(z.DropdownKey), I = b(z.ScrollKey) || "div";
1537
+ return () => s(fe, null, [s(I, {
1531
1538
  class: "pro-layout-tabs"
1532
1539
  }, {
1533
1540
  default: () => [s("div", {
1534
1541
  class: "pro-layout-tabs-root",
1535
- ref: w,
1542
+ ref: T,
1536
1543
  key: K.value
1537
- }, [R(n.value, (y) => {
1538
- var H, O;
1544
+ }, [L(n.value, (y) => {
1545
+ var H, N;
1539
1546
  const j = i(y), U = y.value === ((H = f.value) == null ? void 0 : H.value);
1540
1547
  return s("div", {
1541
1548
  class: ["pro-layout-tabs-item", U ? "active" : ""],
1542
1549
  "data-url": y.value,
1543
1550
  onClick: () => d(y),
1544
- oncontextmenu: (B) => E(B, y)
1545
- }, [((O = y.itemLabel) == null ? void 0 : O.call(y, y)) || y.label, !j && s("div", {
1551
+ oncontextmenu: (B) => w(B, y)
1552
+ }, [((N = y.itemLabel) == null ? void 0 : N.call(y, y)) || y.label, !j && s("div", {
1546
1553
  class: "pro-layout-tabs-item-close",
1547
1554
  onClick: (B) => {
1548
1555
  B.preventDefault(), B.stopPropagation(), g(y);
@@ -1556,29 +1563,29 @@ const $r = () => ({
1556
1563
  default: () => [s("div", {
1557
1564
  class: "pro-layout-tabs-menus",
1558
1565
  style: `left:${c.ctxMenuPos.x}px;top:${c.ctxMenuPos.y}px`
1559
- }, [s(P, {
1560
- ref: L,
1566
+ }, [s(M, {
1567
+ ref: Z,
1561
1568
  trigger: "click",
1562
- options: W.value,
1569
+ options: $.value,
1563
1570
  hideOnClick: !1,
1564
- onCommand: k,
1565
- onVisibleChange: T
1571
+ onCommand: A,
1572
+ onVisibleChange: D
1566
1573
  }, {
1567
1574
  default: () => [s("div", null, null)]
1568
1575
  })])]
1569
1576
  })]);
1570
1577
  }
1571
- }), _r = () => ({
1578
+ }), Gr = () => ({
1572
1579
  str: {
1573
1580
  type: String,
1574
1581
  default: "watermark"
1575
1582
  }
1576
- }), Gr = N({
1583
+ }), Xr = k({
1577
1584
  props: {
1578
- ..._r()
1585
+ ...Gr()
1579
1586
  },
1580
1587
  setup: (e) => {
1581
- const t = Q(), r = ve({
1588
+ const t = Y(), r = ve({
1582
1589
  imgStr: ""
1583
1590
  });
1584
1591
  return oe(() => {
@@ -1598,7 +1605,7 @@ const $r = () => ({
1598
1605
  }, null)]
1599
1606
  });
1600
1607
  }
1601
- }), Xr = () => ({
1608
+ }), Yr = () => ({
1602
1609
  separator: {
1603
1610
  type: String,
1604
1611
  default: "/"
@@ -1615,9 +1622,9 @@ const $r = () => ({
1615
1622
  renderEnd: {
1616
1623
  type: Function
1617
1624
  }
1618
- }), Yr = N({
1625
+ }), Qr = k({
1619
1626
  props: {
1620
- ...Xr()
1627
+ ...Yr()
1621
1628
  },
1622
1629
  setup: (e) => {
1623
1630
  const {
@@ -1626,7 +1633,7 @@ const $r = () => ({
1626
1633
  } = Pe(), {
1627
1634
  menus: a,
1628
1635
  convertName: o
1629
- } = Te(), n = I(() => {
1636
+ } = Te(), n = x(() => {
1630
1637
  const {
1631
1638
  parentList: l
1632
1639
  } = $e(a.value, (c) => c.value === o(r), void 0, []);
@@ -1638,7 +1645,7 @@ const $r = () => ({
1638
1645
  var l, c;
1639
1646
  return s("div", {
1640
1647
  class: "pro-layout-breadcrumb"
1641
- }, [(l = e.renderStart) == null ? void 0 : l.call(e), R(n.value, (i, f) => {
1648
+ }, [(l = e.renderStart) == null ? void 0 : l.call(e), L(n.value, (i, f) => {
1642
1649
  var g;
1643
1650
  const m = f === ee(n.value) - 1, d = ["breadcrumb-item"];
1644
1651
  return m || d.push("a"), s(fe, null, [s("span", {
@@ -1650,10 +1657,10 @@ const $r = () => ({
1650
1657
  }), (c = e.renderEnd) == null ? void 0 : c.call(e)]);
1651
1658
  };
1652
1659
  }
1653
- }), We = N((e, {
1660
+ }), He = k((e, {
1654
1661
  slots: t
1655
1662
  }) => {
1656
- const r = Q(), a = Q(0);
1663
+ const r = Y(), a = Y(0);
1657
1664
  return Zt(r, (o) => {
1658
1665
  var u;
1659
1666
  const n = (u = o[0]) == null ? void 0 : u.contentRect;
@@ -1668,7 +1675,7 @@ const $r = () => ({
1668
1675
  }
1669
1676
  }, [t.menus()]), (n = t.default) == null ? void 0 : n.call(t), (u = t.end) == null ? void 0 : u.call(t)]);
1670
1677
  };
1671
- }), Qr = () => ({
1678
+ }), Jr = () => ({
1672
1679
  clsName: {
1673
1680
  type: String,
1674
1681
  default: "pro-layout"
@@ -1735,10 +1742,10 @@ const $r = () => ({
1735
1742
  topMenuProps: {
1736
1743
  type: Object
1737
1744
  }
1738
- }), Po = N({
1745
+ }), Co = k({
1739
1746
  inheritAttrs: !1,
1740
1747
  props: {
1741
- ...Qr()
1748
+ ...Jr()
1742
1749
  },
1743
1750
  setup: (e, {
1744
1751
  slots: t,
@@ -1748,113 +1755,113 @@ const $r = () => ({
1748
1755
  const a = te(), o = a(z.MenusKey), n = a(z.ScrollKey) || "div", {
1749
1756
  router: u,
1750
1757
  route: l
1751
- } = Pe(), c = I(() => {
1752
- var x;
1758
+ } = Pe(), c = x(() => {
1759
+ var E;
1753
1760
  return Jt(e.menus, (V) => {
1754
- var Ne, He, It, xt;
1755
- const X = ((Ne = e.fieldNames) == null ? void 0 : Ne.value) || "value", le = ((He = e.fieldNames) == null ? void 0 : He.label) || "label", me = ((It = e.fieldNames) == null ? void 0 : It.hide) || "hide", ke = ((xt = e.fieldNames) == null ? void 0 : xt.keep) || "keep";
1761
+ var Ne, ze, It, xt;
1762
+ const G = ((Ne = e.fieldNames) == null ? void 0 : Ne.value) || "value", le = ((ze = e.fieldNames) == null ? void 0 : ze.label) || "label", me = ((It = e.fieldNames) == null ? void 0 : It.hide) || "hide", ke = ((xt = e.fieldNames) == null ? void 0 : xt.keep) || "keep";
1756
1763
  return {
1757
- ...D(V, X, le, me, ke),
1758
- value: p(V, X),
1764
+ ...O(V, G, le, me, ke),
1765
+ value: p(V, G),
1759
1766
  label: p(V, le),
1760
1767
  hide: p(V, me),
1761
1768
  keep: p(V, ke)
1762
1769
  };
1763
1770
  }, {
1764
- children: ((x = e.fieldNames) == null ? void 0 : x.children) || "children",
1771
+ children: ((E = e.fieldNames) == null ? void 0 : E.children) || "children",
1765
1772
  childrenName: "children"
1766
1773
  });
1767
- }), i = I(() => lr(c.value, (x) => !x.hide)), f = I(() => wt(c.value)), m = I(() => wt(i.value)), d = I(() => ft(c.value, (x) => D(x, "children"))), g = (x) => {
1774
+ }), i = x(() => cr(c.value, (E) => !E.hide)), f = x(() => wt(c.value)), m = x(() => wt(i.value)), d = x(() => ft(c.value, (E) => O(E, "children"))), g = (E) => {
1768
1775
  if (e.convertValue)
1769
- return e.convertValue(x);
1770
- const V = x.value.indexOf("?");
1771
- return V > 0 ? x.value.substring(0, V) : x.value;
1772
- }, C = I(() => {
1773
- const x = Z(Xt(Xn(d.value, (V) => g(V)), (V) => V > 1));
1774
- return ce(x, (V, X) => ({
1776
+ return e.convertValue(E);
1777
+ const V = E.value.indexOf("?");
1778
+ return V > 0 ? E.value.substring(0, V) : E.value;
1779
+ }, P = x(() => {
1780
+ const E = J(Xt(Yn(d.value, (V) => g(V)), (V) => V > 1));
1781
+ return ce(E, (V, G) => ({
1775
1782
  ...V,
1776
- [X]: !0
1783
+ [G]: !0
1777
1784
  }), {});
1778
- }), v = (x) => {
1785
+ }), v = (E) => {
1779
1786
  if (e.convertName)
1780
- return e.convertName(x, {
1787
+ return e.convertName(E, {
1781
1788
  menuTopMap: f.value
1782
1789
  });
1783
- if (x.name && C.value[x.name]) {
1784
- const V = x.fullPath.indexOf("?");
1785
- return x.name + x.fullPath.substring(V);
1790
+ if (E.name && P.value[E.name]) {
1791
+ const V = E.fullPath.indexOf("?");
1792
+ return E.name + E.fullPath.substring(V);
1786
1793
  }
1787
- return x.name;
1788
- }, b = I(() => {
1794
+ return E.name;
1795
+ }, S = x(() => {
1789
1796
  if (e.findCurrentTopName)
1790
1797
  return e.findCurrentTopName(l, f.value);
1791
- const x = v(l);
1792
- return f.value[x];
1793
- }), E = I(() => b.value ? ct(i.value, (x) => x.value === b.value) : null), h = I(() => !!(E.value && E.value.children && ee(E.value.children) > 0)), M = I(() => {
1798
+ const E = v(l);
1799
+ return f.value[E];
1800
+ }), w = x(() => S.value ? lt(i.value, (E) => E.value === S.value) : null), h = x(() => !!(w.value && w.value.children && ee(w.value.children) > 0)), C = x(() => {
1794
1801
  if (e.findActiveKey)
1795
1802
  return e.findActiveKey(l, f.value);
1796
- const x = v(l);
1797
- if (m.value[x])
1798
- return x;
1803
+ const E = v(l);
1804
+ if (m.value[E])
1805
+ return E;
1799
1806
  const {
1800
1807
  parentList: V
1801
- } = $e(c.value, (le) => le.value === x, void 0, []), X = Yn(V, (le) => !le.hide);
1802
- return (X == null ? void 0 : X.value) || x;
1803
- }), w = (x) => {
1804
- e.onMenuItemClick ? e.onMenuItemClick(x) : u.openMenu(x);
1805
- }, K = (x) => {
1806
- const V = $e(i.value, (X) => X.value === x.value).target;
1807
- w(V);
1808
- }, $ = I(() => !!e.tabs), G = () => {
1808
+ } = $e(c.value, (le) => le.value === E, void 0, []), G = Qn(V, (le) => !le.hide);
1809
+ return (G == null ? void 0 : G.value) || E;
1810
+ }), T = (E) => {
1811
+ e.onMenuItemClick ? e.onMenuItemClick(E) : u.openMenu(E);
1812
+ }, K = (E) => {
1813
+ const V = $e(i.value, (G) => G.value === E.value).target;
1814
+ T(V);
1815
+ }, R = x(() => !!e.tabs), _ = () => {
1809
1816
  var V;
1810
- let x = (V = e.tabs) == null ? void 0 : V.sessionKey;
1811
- return x === void 0 && (x = "pro-layout-tabs"), x;
1812
- }, L = ((re = (B = e.tabs) == null ? void 0 : B.findFirstMenu) == null ? void 0 : re.call(B, i.value)) || en(i.value, (x) => !x.children || ee(x.children) <= 0), k = Q((() => {
1813
- if (!$.value)
1817
+ let E = (V = e.tabs) == null ? void 0 : V.sessionKey;
1818
+ return E === void 0 && (E = "pro-layout-tabs"), E;
1819
+ }, Z = ((re = (B = e.tabs) == null ? void 0 : B.findFirstMenu) == null ? void 0 : re.call(B, i.value)) || en(i.value, (E) => !E.children || ee(E.children) <= 0), A = Y((() => {
1820
+ if (!R.value)
1814
1821
  return [];
1815
- const x = G();
1822
+ const E = _();
1816
1823
  let V = [];
1817
- if (x) {
1818
- const X = window.sessionStorage.getItem(x), le = X ? mt(X) : [];
1819
- V = R(le, (me) => ({
1824
+ if (E) {
1825
+ const G = window.sessionStorage.getItem(E), le = G ? mt(G) : [];
1826
+ V = L(le, (me) => ({
1820
1827
  ...p(d.value, me.name),
1821
1828
  query: me.query
1822
1829
  }));
1823
1830
  }
1824
- return ee(V) <= 0 && L && (V = [L]), V;
1825
- })()), W = (x) => x.value === (L == null ? void 0 : L.value), S = (x) => {
1826
- k.value = J(k.value, (V) => V.value !== x);
1831
+ return ee(V) <= 0 && Z && (V = [Z]), V;
1832
+ })()), $ = (E) => E.value === (Z == null ? void 0 : Z.value), b = (E) => {
1833
+ A.value = Q(A.value, (V) => V.value !== E);
1827
1834
  };
1828
1835
  Me(() => {
1829
- const x = G();
1830
- if (!x)
1836
+ const E = _();
1837
+ if (!E)
1831
1838
  return;
1832
- const V = R(k.value, (X) => ({
1833
- name: X.value,
1834
- query: X.query
1839
+ const V = L(A.value, (G) => ({
1840
+ name: G.value,
1841
+ query: G.query
1835
1842
  }));
1836
- window.sessionStorage.setItem(x, Ye(V));
1837
- }, k);
1838
- const P = () => {
1843
+ window.sessionStorage.setItem(E, Xe(V));
1844
+ }, A);
1845
+ const M = () => {
1839
1846
  var V;
1840
- const x = (V = e.tabs) == null ? void 0 : V.clearWhileUnmount;
1841
- return x === void 0 ? !0 : x;
1847
+ const E = (V = e.tabs) == null ? void 0 : V.clearWhileUnmount;
1848
+ return E === void 0 ? !0 : E;
1842
1849
  };
1843
1850
  oe(() => () => {
1844
- const x = G();
1845
- x && P() && window.sessionStorage.removeItem(x);
1851
+ const E = _();
1852
+ E && M() && window.sessionStorage.removeItem(E);
1846
1853
  }, []);
1847
- const A = I(() => !!e.breadcrumb), y = Q(!1);
1854
+ const I = x(() => !!e.breadcrumb), y = Y(!1);
1848
1855
  Se(En, {
1849
1856
  convertName: v,
1850
1857
  convertValue: g,
1851
1858
  menus: c,
1852
1859
  showMenus: i,
1853
- repeatRouteMap: C,
1860
+ repeatRouteMap: P,
1854
1861
  menuMap: d,
1855
- tabs: k,
1856
- showTabs: $,
1857
- closeTab: S,
1862
+ tabs: A,
1863
+ showTabs: R,
1864
+ closeTab: b,
1858
1865
  refreshRef: y,
1859
1866
  refresh: () => {
1860
1867
  y.value = !0, setTimeout(() => {
@@ -1862,86 +1869,86 @@ const $r = () => ({
1862
1869
  }, 0);
1863
1870
  }
1864
1871
  });
1865
- const U = ge(t, "header"), H = ge(t, "menu"), O = (x) => {
1866
- var V, X;
1872
+ const U = ge(t, "header"), H = ge(t, "menu"), N = (E) => {
1873
+ var V, G;
1867
1874
  return s("div", {
1868
1875
  class: `${e.clsName}-menus-wrapper`
1869
1876
  }, [(V = H.start) == null ? void 0 : V.call(H), s(n, {
1870
1877
  class: `${e.clsName}-menus-scroll`
1871
1878
  }, {
1872
- default: () => [s(o, x, H)]
1873
- }), (X = H.end) == null ? void 0 : X.call(H)]);
1879
+ default: () => [s(o, E, H)]
1880
+ }), (G = H.end) == null ? void 0 : G.call(H)]);
1874
1881
  };
1875
1882
  return () => {
1876
1883
  var me, ke, Ne;
1877
1884
  if (!o)
1878
1885
  return null;
1879
- const x = [`${e.clsName} ${e.clsName}-${e.layout}`];
1880
- $.value && x.push("has-tabs"), A.value && x.push("has-breadcrumb");
1886
+ const E = [`${e.clsName} ${e.clsName}-${e.layout}`];
1887
+ R.value && E.push("has-tabs"), I.value && E.push("has-breadcrumb");
1881
1888
  const V = {
1882
1889
  class: `${e.clsName}-menus`,
1883
1890
  options: i.value,
1884
- activeKey: M.value,
1891
+ activeKey: C.value,
1885
1892
  ...ne(e, "convertSubMenuProps", "convertMenuItemProps"),
1886
- onMenuItemClick: w,
1893
+ onMenuItemClick: T,
1887
1894
  ...e.menuProps
1888
- }, X = {
1895
+ }, G = {
1889
1896
  collapse: e.collapse,
1890
1897
  ...V
1891
- }, le = s(fe, null, [$.value && s(Wr, F({
1892
- isHideClose: W
1893
- }, D(e.tabs, "sessionKey", "clearWhileUnmount")), null), A.value && s(Yr, e.breadcrumb, null), (me = t.connect) == null ? void 0 : me.call(t), s("div", {
1898
+ }, le = s(fe, null, [R.value && s(_r, F({
1899
+ isHideClose: $
1900
+ }, O(e.tabs, "sessionKey", "clearWhileUnmount")), null), I.value && s(Qr, e.breadcrumb, null), (me = t.connect) == null ? void 0 : me.call(t), s("div", {
1894
1901
  class: `${e.clsName}-section`
1895
- }, [(ke = t.default) == null ? void 0 : ke.call(t), t.routerView ? t.routerView() : s(zr, e.routeOpts, null), e.watermark && s(Gr, e.watermark, null), (Ne = t.end) == null ? void 0 : Ne.call(t)])]);
1902
+ }, [(ke = t.default) == null ? void 0 : ke.call(t), t.routerView ? t.routerView() : s(Hr, e.routeOpts, null), e.watermark && s(Xr, e.watermark, null), (Ne = t.end) == null ? void 0 : Ne.call(t)])]);
1896
1903
  return e.layout === "vertical" ? s("main", F(r, {
1897
- class: x
1898
- }), [s(We, {
1904
+ class: E
1905
+ }), [s(He, {
1899
1906
  class: `${e.clsName}-header`
1900
1907
  }, {
1901
1908
  menus: () => s(o, F({
1902
1909
  mode: "horizontal"
1903
1910
  }, V), H),
1904
1911
  ...U
1905
- }), le]) : e.layout === "horizontal" ? (x.push("has-left-menu"), e.collapse && x.push("mini"), s("main", F(r, {
1906
- class: x
1907
- }), [O(X), s("div", {
1912
+ }), le]) : e.layout === "horizontal" ? (E.push("has-left-menu"), e.collapse && E.push("mini"), s("main", F(r, {
1913
+ class: E
1914
+ }), [N(G), s("div", {
1908
1915
  class: `${e.clsName}-structure`
1909
- }, [s(We, {
1916
+ }, [s(He, {
1910
1917
  class: `${e.clsName}-header`
1911
- }, U), le])])) : e.layout === "horizontal-v" ? (x.push("has-left-menu"), e.collapse && x.push("mini"), s("main", F(r, {
1912
- class: x
1913
- }), [s(We, {
1918
+ }, U), le])])) : e.layout === "horizontal-v" ? (E.push("has-left-menu"), e.collapse && E.push("mini"), s("main", F(r, {
1919
+ class: E
1920
+ }), [s(He, {
1914
1921
  class: `${e.clsName}-header`
1915
1922
  }, U), s("div", {
1916
1923
  class: `${e.clsName}-structure`
1917
- }, [O(X), s("div", {
1924
+ }, [N(G), s("div", {
1918
1925
  class: `${e.clsName}-right`
1919
- }, [le])])])) : (h.value && x.push("has-left-menu"), e.collapse && x.push("mini"), s("main", F(r, {
1920
- class: x
1921
- }), [s(We, {
1926
+ }, [le])])])) : (h.value && E.push("has-left-menu"), e.collapse && E.push("mini"), s("main", F(r, {
1927
+ class: E
1928
+ }), [s(He, {
1922
1929
  class: `${e.clsName}-header`
1923
1930
  }, {
1924
1931
  menus: () => s(o, F({
1925
1932
  class: `${e.clsName}-menus`,
1926
1933
  mode: "horizontal",
1927
- options: R(i.value, (He) => D(He, "children")),
1928
- activeKey: b.value
1934
+ options: L(i.value, (ze) => O(ze, "children")),
1935
+ activeKey: S.value
1929
1936
  }, e.topMenuProps, ne(e, "convertSubMenuProps", "convertMenuItemProps"), {
1930
1937
  onMenuItemClick: K
1931
1938
  }), H),
1932
1939
  ...U
1933
1940
  }), s("div", {
1934
1941
  class: `${e.clsName}-structure`
1935
- }, [h.value && O({
1936
- ...X,
1937
- options: E.value.children,
1938
- key: E.value.value
1942
+ }, [h.value && N({
1943
+ ...G,
1944
+ options: w.value.children,
1945
+ key: w.value.value
1939
1946
  }), s("div", {
1940
1947
  class: `${e.clsName}-right`
1941
1948
  }, [le])])]));
1942
1949
  };
1943
1950
  }
1944
- }), Jr = () => ({
1951
+ }), Zr = () => ({
1945
1952
  title: {
1946
1953
  type: String
1947
1954
  },
@@ -1960,9 +1967,9 @@ const $r = () => ({
1960
1967
  type: Function,
1961
1968
  default: () => "\u8FD4\u56DE"
1962
1969
  }
1963
- }), ut = N({
1970
+ }), ot = k({
1964
1971
  props: {
1965
- ...Jr()
1972
+ ...Zr()
1966
1973
  },
1967
1974
  setup: (e, {
1968
1975
  slots: t
@@ -1996,7 +2003,7 @@ const $r = () => ({
1996
2003
  }, [(i = t.extra) == null ? void 0 : i.call(t)])]);
1997
2004
  };
1998
2005
  }
1999
- }), Zr = () => ({
2006
+ }), ea = () => ({
2000
2007
  loading: {
2001
2008
  type: Boolean,
2002
2009
  default: !1
@@ -2015,15 +2022,15 @@ const $r = () => ({
2015
2022
  sub: {
2016
2023
  type: Boolean
2017
2024
  }
2018
- }), wn = N({
2025
+ }), wn = k({
2019
2026
  props: {
2020
- ...ut.props,
2021
- ...Zr()
2027
+ ...ot.props,
2028
+ ...ea()
2022
2029
  },
2023
2030
  setup: (e, {
2024
2031
  slots: t
2025
2032
  }) => {
2026
- const r = Te(), a = I(() => {
2033
+ const r = Te(), a = x(() => {
2027
2034
  if (!e.layoutTabsBackMode || e.sub || !r)
2028
2035
  return e.showBack;
2029
2036
  const {
@@ -2036,18 +2043,18 @@ const $r = () => ({
2036
2043
  default: () => [s("div", {
2037
2044
  class: "pro-loading-dom"
2038
2045
  }, null)]
2039
- }) : null, c = Z(ut.props).filter((i) => i !== "showBack");
2046
+ }) : null, c = J(ot.props).filter((i) => i !== "showBack");
2040
2047
  return () => {
2041
2048
  var g;
2042
- const i = e.title || t.title || e.subTitle || t.subTitle || t.extra, f = (g = t.footer) == null ? void 0 : g.call(t), m = !e.loading && Be(f), d = ["pro-page"];
2049
+ const i = e.title || t.title || e.subTitle || t.subTitle || t.extra, f = (g = t.footer) == null ? void 0 : g.call(t), m = !e.loading && ct(f), d = ["pro-page"];
2043
2050
  return e.sub && d.push("pro-page-sub"), e.fillMode && d.push("pro-page-fill"), i && d.push("has-header"), m && d.push("has-footer"), s(u, {
2044
2051
  class: d
2045
2052
  }, {
2046
2053
  default: () => {
2047
- var C, v;
2048
- return [(C = t.start) == null ? void 0 : C.call(t), i && s(ut, F(ne(e, c), {
2054
+ var P, v;
2055
+ return [(P = t.start) == null ? void 0 : P.call(t), i && s(ot, F(ne(e, c), {
2049
2056
  showBack: a.value
2050
- }), D(t, "start", "default", "footer")), s("div", {
2057
+ }), O(t, "start", "default", "footer")), s("div", {
2051
2058
  class: "pro-page-content"
2052
2059
  }, [e.loading ? l() : (v = t.default) == null ? void 0 : v.call(t)]), m && s("div", {
2053
2060
  class: "pro-page-footer"
@@ -2056,10 +2063,10 @@ const $r = () => ({
2056
2063
  });
2057
2064
  };
2058
2065
  }
2059
- }), ea = Object.freeze({
2066
+ }), ta = Object.freeze({
2060
2067
  page: 1,
2061
2068
  pageSize: 10
2062
- }), ta = () => ({
2069
+ }), na = () => ({
2063
2070
  clsName: {
2064
2071
  type: String,
2065
2072
  default: "pro-list"
@@ -2093,16 +2100,16 @@ const $r = () => ({
2093
2100
  end: {
2094
2101
  type: Function
2095
2102
  }
2096
- }), na = N({
2103
+ }), ra = k({
2097
2104
  props: {
2098
- ...ta()
2105
+ ...na()
2099
2106
  },
2100
2107
  setup: (e, {
2101
2108
  slots: t,
2102
2109
  emit: r
2103
2110
  }) => {
2104
2111
  const a = te(), o = a(z.ProSearchFormKey), n = a(z.ProTableKey), u = a(z.PaginationKey), l = e.pageState || ve({
2105
- ...ea
2112
+ ...ta
2106
2113
  });
2107
2114
  let c;
2108
2115
  const i = () => {
@@ -2110,24 +2117,24 @@ const $r = () => ({
2110
2117
  ...c,
2111
2118
  ...l
2112
2119
  });
2113
- }, f = (v, b) => {
2114
- c = v, l.page = b || 1, i();
2115
- }, m = (v, b) => {
2116
- l.page = v, l.pageSize = b, i();
2117
- }, d = ge(t, "search"), g = ge(t, "table"), C = ge(t, "pagination");
2120
+ }, f = (v, S) => {
2121
+ c = v, l.page = S || 1, i();
2122
+ }, m = (v, S) => {
2123
+ l.page = v, l.pageSize = S, i();
2124
+ }, d = ge(t, "search"), g = ge(t, "table"), P = ge(t, "pagination");
2118
2125
  return () => {
2119
- var b, E, h, M, w, K, $, G;
2126
+ var S, w, h, C, T, K, R, _;
2120
2127
  const v = t.search ? t.search({
2121
2128
  executeSearchWithResetPage: f,
2122
2129
  pageState: l
2123
2130
  }) : s(fe, null, [o && s(o, F({
2124
2131
  class: `${e.clsName}-search`
2125
- }, D(e.searchProps, "onFinish"), {
2126
- onFinish: (L) => f(L)
2132
+ }, O(e.searchProps, "onFinish"), {
2133
+ onFinish: (Z) => f(Z)
2127
2134
  }), d)]);
2128
2135
  return s("div", {
2129
2136
  class: e.clsName
2130
- }, [((b = t.start) == null ? void 0 : b.call(t)) || ((E = e.start) == null ? void 0 : E.call(e)), !e.searchInTable && v, ((h = t.divide) == null ? void 0 : h.call(t)) || ((M = e.divide) == null ? void 0 : M.call(e)), t.table ? t.table({
2137
+ }, [((S = t.start) == null ? void 0 : S.call(t)) || ((w = e.start) == null ? void 0 : w.call(e)), !e.searchInTable && v, ((h = t.divide) == null ? void 0 : h.call(t)) || ((C = e.divide) == null ? void 0 : C.call(e)), t.table ? t.table({
2131
2138
  pageState: l
2132
2139
  }) : s(fe, null, [n && s(n, F({
2133
2140
  class: `${e.clsName}-table`,
@@ -2139,16 +2146,16 @@ const $r = () => ({
2139
2146
  }, e.tableProps), {
2140
2147
  ...g,
2141
2148
  toolbar: e.searchInTable ? () => g.toolbar ? g.toolbar(v) : v : g.toolbar
2142
- })]), ((w = t.divide2) == null ? void 0 : w.call(t)) || ((K = e.divide2) == null ? void 0 : K.call(e)), t.pagination ? t.pagination({
2149
+ })]), ((T = t.divide2) == null ? void 0 : T.call(t)) || ((K = e.divide2) == null ? void 0 : K.call(e)), t.pagination ? t.pagination({
2143
2150
  executePageChange: m,
2144
2151
  pageState: l
2145
2152
  }) : s(fe, null, [e.paginationProps !== !1 && u && s("div", {
2146
2153
  class: `${e.clsName}-pagination`
2147
- }, [s(u, F(D(Re(e.paginationProps) ? {} : e.paginationProps, "onChange"), {
2154
+ }, [s(u, F(O(Re(e.paginationProps) ? {} : e.paginationProps, "onChange"), {
2148
2155
  page: l.page,
2149
2156
  pageSize: l.pageSize,
2150
2157
  onComposeChange: m
2151
- }), C)])]), (($ = t.end) == null ? void 0 : $.call(t)) || ((G = e.end) == null ? void 0 : G.call(e))]);
2158
+ }), P)])]), ((R = t.end) == null ? void 0 : R.call(t)) || ((_ = e.end) == null ? void 0 : _.call(e))]);
2152
2159
  };
2153
2160
  }
2154
2161
  }), Rt = () => ({
@@ -2159,7 +2166,7 @@ const $r = () => ({
2159
2166
  model: {
2160
2167
  type: Object
2161
2168
  }
2162
- }), ra = N({
2169
+ }), aa = k({
2163
2170
  props: {
2164
2171
  ...we,
2165
2172
  ...Rt()
@@ -2169,21 +2176,21 @@ const $r = () => ({
2169
2176
  }) => {
2170
2177
  const {
2171
2178
  elementMap: r
2172
- } = ie(), a = e.elementMap || r, o = te(), n = o(z.DescriptionsKey), u = o(z.DescriptionsItemKey), l = I(() => nt(e.columns, e.columnState, e.columnState2)), c = Z(we), i = Z(Rt());
2179
+ } = ie(), a = e.elementMap || r, o = te(), n = o(z.DescriptionsKey), u = o(z.DescriptionsItemKey), l = x(() => tt(e.columns, e.columnState, e.columnState2)), c = J(we), i = J(Rt());
2173
2180
  return () => !n || !u ? null : s(n, F({
2174
2181
  class: e.clsName
2175
- }, D(e, ...c, ...i, "model")), {
2182
+ }, O(e, ...c, ...i, "model")), {
2176
2183
  default: () => {
2177
2184
  var f, m;
2178
- return [(f = t.start) == null ? void 0 : f.call(t), R(l.value, (d) => {
2179
- const g = d.dataIndex, C = p(e.model, g);
2185
+ return [(f = t.start) == null ? void 0 : f.call(t), L(l.value, (d) => {
2186
+ const g = d.dataIndex, P = p(e.model, g);
2180
2187
  return s(u, F({
2181
2188
  class: `${e.clsName}-item`
2182
2189
  }, p(d.extra, "desc")), {
2183
2190
  default: () => {
2184
- var v, b;
2185
- return [((v = t[g]) == null ? void 0 : v.call(t, C, d)) || ((b = t.value) == null ? void 0 : b.call(t, C, d)) || Pt(a, d, {
2186
- value: C
2191
+ var v, S;
2192
+ return [((v = t[g]) == null ? void 0 : v.call(t, P, d)) || ((S = t.value) == null ? void 0 : S.call(t, P, d)) || Pt(a, d, {
2193
+ value: P
2187
2194
  }, {
2188
2195
  render: "descRender"
2189
2196
  })];
@@ -2198,19 +2205,19 @@ const $r = () => ({
2198
2205
  ...t
2199
2206
  });
2200
2207
  }
2201
- }), Tn = (e, t) => dt(e) ? e : e || t, aa = () => ({
2208
+ }), Tn = (e, t) => dt(e) ? e : e || t, oa = () => ({
2202
2209
  value: {
2203
2210
  type: [String, Number]
2204
2211
  },
2205
2212
  emptyText: {
2206
2213
  type: String
2207
2214
  }
2208
- }), Co = N({
2215
+ }), Mo = k({
2209
2216
  props: {
2210
- ...aa()
2217
+ ...oa()
2211
2218
  },
2212
2219
  setup: (e) => () => Tn(e.value, e.emptyText)
2213
- }), oa = () => ({
2220
+ }), ua = () => ({
2214
2221
  content: {
2215
2222
  type: [String, Number]
2216
2223
  },
@@ -2221,10 +2228,10 @@ const $r = () => ({
2221
2228
  emptyText: {
2222
2229
  type: String
2223
2230
  }
2224
- }), ua = N({
2231
+ }), la = k({
2225
2232
  inheritAttrs: !1,
2226
2233
  props: {
2227
- ...oa()
2234
+ ...ua()
2228
2235
  },
2229
2236
  setup: (e, {
2230
2237
  attrs: t
@@ -2244,7 +2251,7 @@ const $r = () => ({
2244
2251
  });
2245
2252
  };
2246
2253
  }
2247
- }), ze = {
2254
+ }), Ve = {
2248
2255
  value: {
2249
2256
  type: [String, Number]
2250
2257
  },
@@ -2258,27 +2265,27 @@ const $r = () => ({
2258
2265
  type: Function,
2259
2266
  default: void 0
2260
2267
  }
2261
- }, rt = N({
2268
+ }, nt = k({
2262
2269
  inheritAttrs: !1,
2263
2270
  props: {
2264
- ...ze
2271
+ ...Ve
2265
2272
  },
2266
2273
  setup: (e, {
2267
2274
  attrs: t
2268
2275
  }) => {
2269
- const r = I(() => {
2276
+ const r = x(() => {
2270
2277
  var n;
2271
2278
  const a = (n = e.showProps) == null ? void 0 : n.content, o = e.value || dt(e.value) ? e.value : a;
2272
2279
  return e.convert ? e.convert(o, e) : o;
2273
2280
  });
2274
- return () => s(ua, F(ne(t, "style", "class"), D(e.showProps, "content"), {
2281
+ return () => s(la, F(ne(t, "style", "class"), O(e.showProps, "content"), {
2275
2282
  content: r.value
2276
2283
  }), null);
2277
2284
  }
2278
- }), Mo = N({
2285
+ }), Io = k({
2279
2286
  inheritAttrs: !1,
2280
2287
  props: {
2281
- ...ze,
2288
+ ...Ve,
2282
2289
  decimalFixed: {
2283
2290
  type: Number,
2284
2291
  default: 0
@@ -2291,24 +2298,24 @@ const $r = () => ({
2291
2298
  setup: (e, {
2292
2299
  attrs: t
2293
2300
  }) => {
2294
- const r = I(() => {
2301
+ const r = x(() => {
2295
2302
  let a = e.value;
2296
- return a && e.decimalFixed && (a = cr(a, e.decimalFixed || 2)), a && e.thousandDivision && (a = sr(a)), e.convert ? e.convert(a, e) : a;
2303
+ return a && e.decimalFixed && (a = sr(a, e.decimalFixed || 2)), a && e.thousandDivision && (a = ir(a)), e.convert ? e.convert(a, e) : a;
2297
2304
  });
2298
2305
  return () => e.render ? e.render({
2299
2306
  value: r.value,
2300
2307
  props: e
2301
- }) : s(rt, F({
2308
+ }) : s(nt, F({
2302
2309
  class: "pro-show-digit"
2303
2310
  }, ne(t, "style", "class"), {
2304
2311
  value: r.value,
2305
2312
  showProps: e.showProps
2306
2313
  }), null);
2307
2314
  }
2308
- }), Io = N({
2315
+ }), xo = k({
2309
2316
  inheritAttrs: !1,
2310
2317
  props: {
2311
- ...ze,
2318
+ ...Ve,
2312
2319
  value: {
2313
2320
  type: [String, Number, Array]
2314
2321
  },
@@ -2324,16 +2331,16 @@ const $r = () => ({
2324
2331
  setup: (e, {
2325
2332
  attrs: t
2326
2333
  }) => {
2327
- const r = I(() => ir(e.options, (n) => n.label), void 0), a = I(() => {
2334
+ const r = x(() => dr(e.options, (n) => n.label), void 0), a = x(() => {
2328
2335
  const n = e.value;
2329
2336
  let u = e.value;
2330
- return ae(n) ? u = et(R(n, (l) => p(r.value, l, l)), e.splitStr) : u = p(r.value, n, e.value), e.convert ? e.convert(u, e) : u;
2331
- }), o = I(() => p(e.colorMap, e.value));
2337
+ return ae(n) ? u = Ze(L(n, (l) => p(r.value, l, l)), e.splitStr) : u = p(r.value, n, e.value), e.convert ? e.convert(u, e) : u;
2338
+ }), o = x(() => p(e.colorMap, e.value));
2332
2339
  return () => e.render ? e.render({
2333
2340
  color: o.value,
2334
2341
  value: a.value,
2335
2342
  props: e
2336
- }) : s(rt, F({
2343
+ }) : s(nt, F({
2337
2344
  class: "pro-show-options"
2338
2345
  }, ne(t, "style", "class"), {
2339
2346
  style: `color:${o.value || ""}`,
@@ -2341,10 +2348,10 @@ const $r = () => ({
2341
2348
  showProps: e.showProps
2342
2349
  }), null);
2343
2350
  }
2344
- }), xo = N({
2351
+ }), Eo = k({
2345
2352
  inheritAttrs: !1,
2346
2353
  props: {
2347
- ...ze,
2354
+ ...Ve,
2348
2355
  value: {
2349
2356
  type: [String, Number, Array]
2350
2357
  },
@@ -2368,30 +2375,30 @@ const $r = () => ({
2368
2375
  setup: (e, {
2369
2376
  attrs: t
2370
2377
  }) => {
2371
- const r = I(() => {
2378
+ const r = x(() => {
2372
2379
  const o = e.treeData || e.data || e.options, n = e.fieldNames || e.props;
2373
2380
  return ft(o, (u) => p(u, (n == null ? void 0 : n.label) || "label"), {
2374
2381
  value: "value",
2375
2382
  children: "children",
2376
2383
  ...n
2377
2384
  });
2378
- }), a = I(() => {
2385
+ }), a = x(() => {
2379
2386
  let o = e.value;
2380
- return ae(e.value) ? o = et(R(e.value, (n) => p(r.value, n, n)), e.multiple ? e.splitStr2 : e.splitStr) : o = p(r.value, e.value, e.value), e.convert ? e.convert(o, e) : o;
2387
+ return ae(e.value) ? o = Ze(L(e.value, (n) => p(r.value, n, n)), e.multiple ? e.splitStr2 : e.splitStr) : o = p(r.value, e.value, e.value), e.convert ? e.convert(o, e) : o;
2381
2388
  });
2382
2389
  return () => e.render ? e.render({
2383
2390
  value: a.value,
2384
2391
  props: e
2385
- }) : s(rt, F({
2392
+ }) : s(nt, F({
2386
2393
  class: "pro-show-tree"
2387
2394
  }, ne(t, "style", "class"), {
2388
2395
  value: a.value,
2389
2396
  showProps: e.showProps
2390
2397
  }), null);
2391
2398
  }
2392
- }), Eo = N({
2399
+ }), wo = k({
2393
2400
  props: {
2394
- ...ze,
2401
+ ...Ve,
2395
2402
  value: {
2396
2403
  type: [String, Number, Array]
2397
2404
  },
@@ -2411,21 +2418,21 @@ const $r = () => ({
2411
2418
  setup: (e, {
2412
2419
  attrs: t
2413
2420
  }) => {
2414
- const r = (o) => o && (e.isUnix ? kt.unix(o).format(e.format) : kt(o).format(e.format)), a = I(() => {
2421
+ const r = (o) => o && (e.isUnix ? kt.unix(o).format(e.format) : kt(o).format(e.format)), a = x(() => {
2415
2422
  let o = e.value;
2416
- return ae(e.value) ? o = et(R(e.value, (n) => r(n) || ""), e.splitStr) : o = r(e.value) || "", e.convert ? e.convert(o, e) : o;
2423
+ return ae(e.value) ? o = Ze(L(e.value, (n) => r(n) || ""), e.splitStr) : o = r(e.value) || "", e.convert ? e.convert(o, e) : o;
2417
2424
  });
2418
2425
  return () => e.render ? e.render({
2419
2426
  value: a.value,
2420
2427
  props: e
2421
- }) : s(rt, F({
2428
+ }) : s(nt, F({
2422
2429
  class: "pro-show-date"
2423
2430
  }, ne(t, "style", "class"), {
2424
2431
  value: a.value,
2425
2432
  showProps: e.showProps
2426
2433
  }), null);
2427
2434
  }
2428
- }), wo = N({
2435
+ }), To = k({
2429
2436
  props: {
2430
2437
  fieldNames: {
2431
2438
  type: Object,
@@ -2447,24 +2454,24 @@ const $r = () => ({
2447
2454
  const f = mt(i);
2448
2455
  if (ae(f)) {
2449
2456
  const m = e.fieldNames;
2450
- return R(f, (d) => ({
2451
- ...D(d, m.id, m.name, m.size),
2457
+ return L(f, (d) => ({
2458
+ ...O(d, m.id, m.name, m.size),
2452
2459
  id: p(d, m.id),
2453
2460
  name: p(d, m.name),
2454
2461
  size: p(d, m.size)
2455
2462
  }));
2456
2463
  }
2457
2464
  return [];
2458
- }, u = I(() => n(e.value)), l = I(() => n(e.modelValue)), c = (i, f) => {
2465
+ }, u = x(() => n(e.value)), l = x(() => n(e.modelValue)), c = (i, f) => {
2459
2466
  let m = "";
2460
- i && ee(i) > 0 && (m = Ye(R(i, (d) => {
2467
+ i && ee(i) > 0 && (m = Xe(L(i, (d) => {
2461
2468
  var v;
2462
- const g = e.fieldNames, C = {
2469
+ const g = e.fieldNames, P = {
2463
2470
  [g.id]: d.id,
2464
2471
  [g.name]: d.name,
2465
2472
  [g.size || "size"]: d.size
2466
2473
  };
2467
- return ((v = e.convertItem) == null ? void 0 : v.call(e, d)) || C;
2474
+ return ((v = e.convertItem) == null ? void 0 : v.call(e, d)) || P;
2468
2475
  }))), r(f, m);
2469
2476
  };
2470
2477
  return () => o ? s(o, F({
@@ -2473,9 +2480,9 @@ const $r = () => ({
2473
2480
  "onUpdate:value": (i) => c(i, "update:value"),
2474
2481
  modelValue: l.value,
2475
2482
  "onUpdate:modelValue": (i) => c(i, "update:modelValue")
2476
- }, D(e, "value", "modelValue", "fieldNames")), t) : null;
2483
+ }, O(e, "value", "modelValue", "fieldNames")), t) : null;
2477
2484
  }
2478
- }), To = N({
2485
+ }), ko = k({
2479
2486
  props: {
2480
2487
  value: [String, Array],
2481
2488
  fieldNames: {
@@ -2494,9 +2501,9 @@ const $r = () => ({
2494
2501
  const a = (u) => {
2495
2502
  var l;
2496
2503
  return !!p(u, ((l = e.fieldNames) == null ? void 0 : l.id) || "id");
2497
- }, o = I(() => {
2504
+ }, o = x(() => {
2498
2505
  let u = e.value;
2499
- return u && ye(u) && (u = mt(u)), u && !ae(u) && Fe(u) && a(u) && (u = [u]), ae(u) ? R(J(u, (l) => a(l)), (l) => {
2506
+ return u && ye(u) && (u = mt(u)), u && !ae(u) && Fe(u) && a(u) && (u = [u]), ae(u) ? L(Q(u, (l) => a(l)), (l) => {
2500
2507
  var m, d, g;
2501
2508
  const c = p(l, ((m = e.fieldNames) == null ? void 0 : m.id) || "id"), i = p(l, ((d = e.fieldNames) == null ? void 0 : d.name) || "name"), f = p(l, ((g = e.fieldNames) == null ? void 0 : g.name) || "size");
2502
2509
  return {
@@ -2513,7 +2520,7 @@ const $r = () => ({
2513
2520
  var u, l;
2514
2521
  return s("div", {
2515
2522
  class: "pro-upload-list"
2516
- }, [(u = t.start) == null ? void 0 : u.call(t), R(o.value, (c) => {
2523
+ }, [(u = t.start) == null ? void 0 : u.call(t), L(o.value, (c) => {
2517
2524
  var i;
2518
2525
  return s("div", {
2519
2526
  class: "pro-upload-list-item"
@@ -2524,7 +2531,7 @@ const $r = () => ({
2524
2531
  }), (l = t.default) == null ? void 0 : l.call(t)]);
2525
2532
  };
2526
2533
  }
2527
- }), la = {
2534
+ }), ca = {
2528
2535
  open: (e, t, r) => window.open(e, t, r),
2529
2536
  parseStr: (e) => {
2530
2537
  var n;
@@ -2548,7 +2555,7 @@ const $r = () => ({
2548
2555
  return { protocol: t, query: o, url: r };
2549
2556
  },
2550
2557
  stringifyUrl: ({ url: e, query: t }) => {
2551
- const r = vr(t);
2558
+ const r = hr(t);
2552
2559
  return `${e}${r ? "?" : ""}${r || ""}`;
2553
2560
  }
2554
2561
  }, Pe = () => {
@@ -2572,50 +2579,50 @@ const $r = () => ({
2572
2579
  }
2573
2580
  }
2574
2581
  t.back();
2575
- }, ...la };
2582
+ }, ...ca };
2576
2583
  return { router: e ? e(u) : u, route: r };
2577
- }, ca = (e) => {
2584
+ }, sa = (e) => {
2578
2585
  if (!ae(e) || ee(e) <= 0)
2579
2586
  return !1;
2580
2587
  const t = e[0];
2581
2588
  return ye(t) ? Yt(t, "$") : !1;
2582
- }, sa = (e) => typeof e != "object" || !e.type$ ? !1 : e.type$ === "data$" && e.type$, ia = (e) => typeof e != "object" || !e.type$ ? !1 : e.type$ === "obj", da = { get: p, pick: ne, add: Qn, subtract: Jn }, Je = (e, t) => {
2583
- if (sa(e)) {
2589
+ }, ia = (e) => typeof e != "object" || !e.type$ ? !1 : e.type$ === "data$" && e.type$, da = (e) => typeof e != "object" || !e.type$ ? !1 : e.type$ === "obj", fa = { get: p, pick: ne, add: Jn, subtract: Zn }, Qe = (e, t) => {
2590
+ if (ia(e)) {
2584
2591
  const r = p(t, e.name$);
2585
2592
  return e.namePath$ ? p(r, e.namePath$) : r;
2586
- } else if (ia(e)) {
2593
+ } else if (da(e)) {
2587
2594
  const r = {};
2588
2595
  return se(e, (a, o) => {
2589
2596
  if (o !== "type$")
2590
2597
  if (Yt(o, "$")) {
2591
- const n = Je(a, t);
2598
+ const n = Qe(a, t);
2592
2599
  he(r, o.replace("$", ""), n);
2593
2600
  } else
2594
2601
  r[o] = a;
2595
2602
  }), r;
2596
- } else if (ca(e)) {
2597
- const [r, ...a] = e, o = t.expressionMethods || da, n = p(o, r.replace("$", ""));
2603
+ } else if (sa(e)) {
2604
+ const [r, ...a] = e, o = t.expressionMethods || fa, n = p(o, r.replace("$", ""));
2598
2605
  if (!n) {
2599
2606
  console.log("ex", "\u672A\u627E\u5230\u5BF9\u5E94\u7684\u65B9\u6CD5", e);
2600
2607
  return;
2601
2608
  }
2602
- const u = R(a, (l) => Je(l, t));
2609
+ const u = L(a, (l) => Qe(l, t));
2603
2610
  return n(...u);
2604
2611
  }
2605
2612
  return e;
2606
- }, fa = () => {
2613
+ }, ma = () => {
2607
2614
  const e = on(), { registerStoreMap: t } = ie();
2608
2615
  return (r, a) => {
2609
2616
  const o = p(t, r);
2610
2617
  !o || e(r, a, !!o.persist, o.initialState);
2611
2618
  };
2612
- }, ko = (e) => {
2619
+ }, No = (e) => {
2613
2620
  const { registerStoreMap: t } = ie(), r = p(t, e), a = `${r != null && r.persist ? "$" : ""}${r == null ? void 0 : r.key}`;
2614
2621
  return un(ln((n) => {
2615
2622
  const u = p(n, a);
2616
- return u || (Y(r == null ? void 0 : r.initialState) ? r == null ? void 0 : r.initialState() : r == null ? void 0 : r.initialState);
2623
+ return u || (X(r == null ? void 0 : r.initialState) ? r == null ? void 0 : r.initialState() : r == null ? void 0 : r.initialState);
2617
2624
  }));
2618
- }, kn = Symbol("pro-module"), Ee = () => be(kn), ma = (e) => {
2625
+ }, kn = Symbol("pro-module"), Ee = () => be(kn), ya = (e) => {
2619
2626
  Se(kn, e);
2620
2627
  }, St = (e) => {
2621
2628
  const {
@@ -2632,7 +2639,7 @@ const $r = () => ({
2632
2639
  }, je = {
2633
2640
  Success: "request-success$",
2634
2641
  Fail: "request-fail$"
2635
- }, ya = () => ({
2642
+ }, va = () => ({
2636
2643
  state: {
2637
2644
  type: Object
2638
2645
  },
@@ -2657,189 +2664,189 @@ const $r = () => ({
2657
2664
  requests: {
2658
2665
  type: Array
2659
2666
  }
2660
- }), _e = N({
2667
+ }), We = k({
2661
2668
  props: {
2662
- ...ya()
2669
+ ...va()
2663
2670
  },
2664
2671
  setup: (e, {
2665
2672
  slots: t,
2666
2673
  expose: r
2667
2674
  }) => {
2668
- const a = fr(), {
2675
+ const a = mr(), {
2669
2676
  router: o
2670
2677
  } = Pe(), {
2671
2678
  elementMap: n,
2672
2679
  registerStoreMap: u,
2673
2680
  expressionMethods: l
2674
- } = ie(), c = e.elementMap || n, i = (S) => ae(S) ? Ct(c, S) : qe(c, S), f = new tr(), m = (S) => {
2675
- f.next(S);
2676
- }, d = J(e.storeKeys, (S) => it(u, S)), g = () => ce(d, (S, P) => {
2677
- const A = p(u, P);
2681
+ } = ie(), c = e.elementMap || n, i = (b) => ae(b) ? Ct(c, b) : Be(c, b), f = new nr(), m = (b) => {
2682
+ f.next(b);
2683
+ }, d = Q(e.storeKeys, (b) => it(u, b)), g = () => ce(d, (b, M) => {
2684
+ const I = p(u, M);
2678
2685
  return {
2679
- ...S,
2680
- [P]: p(a.value, `${A.persist ? "$" : ""}${P}`) || p(u, [P, "initialState"])
2686
+ ...b,
2687
+ [M]: p(a.value, `${I.persist ? "$" : ""}${M}`) || p(u, [M, "initialState"])
2681
2688
  };
2682
- }, {}), C = g(), v = e.state || ve({
2683
- ...C,
2689
+ }, {}), P = g(), v = e.state || ve({
2690
+ ...P,
2684
2691
  ...e.initState
2685
- }), b = {}, E = (S) => {
2686
- const P = v[S.type], A = Y(S.payload) ? S.payload(P) : S.payload;
2687
- if (!ae(P) && Fe(P)) {
2688
- yt(v[S.type], A);
2692
+ }), S = {}, w = (b) => {
2693
+ const M = v[b.type], I = X(b.payload) ? b.payload(M) : b.payload;
2694
+ if (!ae(M) && Fe(M)) {
2695
+ yt(v[b.type], I);
2689
2696
  return;
2690
2697
  }
2691
- v[S.type] = A;
2692
- }, h = fa(), M = {
2693
- dispatch: E,
2698
+ v[b.type] = I;
2699
+ }, h = ma(), C = {
2700
+ dispatch: w,
2694
2701
  dispatchStore: h
2695
2702
  };
2696
2703
  oe(() => {
2697
- const S = a.pipe(nr(() => g()), rr((P) => {
2698
- se(P, (A, y) => {
2704
+ const b = a.pipe(rr(() => g()), ar((M) => {
2705
+ se(M, (I, y) => {
2699
2706
  const j = p(v, y);
2700
- mr(j, A) || E({
2707
+ yr(j, I) || w({
2701
2708
  type: y,
2702
- payload: A
2709
+ payload: I
2703
2710
  });
2704
2711
  });
2705
2712
  })).subscribe();
2706
2713
  return () => {
2707
- S.unsubscribe();
2714
+ b.unsubscribe();
2708
2715
  };
2709
2716
  }, []);
2710
2717
  const {
2711
- dispatchRequest: w
2712
- } = Ve(), $ = (() => {
2713
- const S = {}, P = ce(e.actors || [], (A, y) => ({
2714
- ...A,
2718
+ dispatchRequest: T
2719
+ } = Ue(), R = (() => {
2720
+ const b = {}, M = ce(e.actors || [], (I, y) => ({
2721
+ ...I,
2715
2722
  [y.name]: y
2716
2723
  }), {});
2717
- return se(e.requests, (A) => {
2718
- if (ye(A.actor)) {
2719
- const y = p(P, A.actor);
2724
+ return se(e.requests, (I) => {
2725
+ if (ye(I.actor)) {
2726
+ const y = p(M, I.actor);
2720
2727
  if (!y)
2721
2728
  return;
2722
- A.actor = y;
2729
+ I.actor = y;
2723
2730
  }
2724
- !A.actor || (S[A.actor.name] = A, A.action && (S[A.action] = A));
2725
- }), S;
2726
- })(), G = (S, ...P) => S.convertParams ? S.convertParams(...P) : S.convertParamsEx ? k(S.convertParamsEx, P) : p(P, 0), L = (S, P) => {
2727
- var A;
2728
- return S.convertData ? S.convertData(P) : S.convertDataEx ? k(S.convertDataEx, P) : (A = P.res) == null ? void 0 : A.data;
2729
- }, T = (S, ...P) => {
2730
- const A = p($, S);
2731
- if (!A)
2731
+ !I.actor || (b[I.actor.name] = I, I.action && (b[I.action] = I));
2732
+ }), b;
2733
+ })(), _ = (b, ...M) => b.convertParams ? b.convertParams(...M) : b.convertParamsEx ? A(b.convertParamsEx, M) : p(M, 0), Z = (b, M) => {
2734
+ var I;
2735
+ return b.convertData ? b.convertData(M) : b.convertDataEx ? A(b.convertDataEx, M) : (I = M.res) == null ? void 0 : I.data;
2736
+ }, D = (b, ...M) => {
2737
+ const I = p(R, b);
2738
+ if (!I)
2732
2739
  return;
2733
- const y = G(A, ...P);
2734
- A.loadingName && E({
2735
- type: A.loadingName,
2740
+ const y = _(I, ...M);
2741
+ I.loadingName && w({
2742
+ type: I.loadingName,
2736
2743
  payload: !0
2737
- }), w(A.actor, y);
2744
+ }), T(I.actor, y);
2738
2745
  };
2739
- Pr(Z($), {
2740
- onSuccess: (S) => {
2746
+ Cr(J(R), {
2747
+ onSuccess: (b) => {
2741
2748
  var y;
2742
- const P = p($, S.name), A = L(P, S);
2743
- P != null && P.stateName && E({
2744
- type: P.stateName,
2745
- payload: A
2749
+ const M = p(R, b.name), I = Z(M, b);
2750
+ M != null && M.stateName && w({
2751
+ type: M.stateName,
2752
+ payload: I
2746
2753
  }), m({
2747
2754
  type: je.Success,
2748
2755
  payload: {
2749
- actor: S,
2750
- requestOpts: P
2756
+ actor: b,
2757
+ requestOpts: M
2751
2758
  }
2752
- }), (y = P.onSuccess) == null || y.call(P, S), P.onSuccessEx && W(P.onSuccessEx, [A]);
2759
+ }), (y = M.onSuccess) == null || y.call(M, b), M.onSuccessEx && $(M.onSuccessEx, [I]);
2753
2760
  },
2754
- onFailed: (S) => {
2755
- var A;
2756
- const P = p($, S.name);
2761
+ onFailed: (b) => {
2762
+ var I;
2763
+ const M = p(R, b.name);
2757
2764
  m({
2758
2765
  type: je.Fail,
2759
2766
  payload: {
2760
- actor: S,
2761
- requestOpts: P
2767
+ actor: b,
2768
+ requestOpts: M
2762
2769
  }
2763
- }), (A = P.onFailed) == null || A.call(P, S), P.onFailedEx && W(P.onFailedEx, [S.err]);
2770
+ }), (I = M.onFailed) == null || I.call(M, b), M.onFailedEx && $(M.onFailedEx, [b.err]);
2764
2771
  },
2765
- onFinish: (S) => {
2766
- const P = p($, [S.name, "loadingName"]);
2767
- P && E({
2768
- type: P,
2772
+ onFinish: (b) => {
2773
+ const M = p(R, [b.name, "loadingName"]);
2774
+ M && w({
2775
+ type: M,
2769
2776
  payload: !1
2770
2777
  });
2771
2778
  }
2772
2779
  }, !0);
2773
- const k = (S, P) => Je(S, {
2780
+ const A = (b, M) => Qe(b, {
2774
2781
  state: v,
2775
- data: b,
2776
- args: P,
2782
+ data: S,
2783
+ args: M,
2777
2784
  expressionMethods: l
2778
- }), W = (S, P) => {
2779
- if (!S)
2785
+ }), $ = (b, M) => {
2786
+ if (!b)
2780
2787
  return;
2781
- const A = {
2788
+ const I = {
2782
2789
  state: v,
2783
- data: b,
2784
- args: P,
2790
+ data: S,
2791
+ args: M,
2785
2792
  expressionMethods: l
2786
2793
  };
2787
- se(S, (y) => {
2794
+ se(b, (y) => {
2788
2795
  if (!ae(y) || ee(y) < 2) {
2789
2796
  console.log("execute invalid", y);
2790
2797
  return;
2791
2798
  }
2792
2799
  const [j, U, ...H] = y;
2793
- let O;
2800
+ let N;
2794
2801
  switch (j) {
2795
2802
  case "router":
2796
- O = p(o, U);
2803
+ N = p(o, U);
2797
2804
  break;
2798
2805
  case "state":
2799
- O = p(M, U);
2806
+ N = p(C, U);
2800
2807
  break;
2801
2808
  }
2802
- if (O)
2809
+ if (N)
2803
2810
  try {
2804
- const B = R(H, (re) => Je(re, A));
2805
- O(...B);
2811
+ const B = L(H, (re) => Qe(re, I));
2812
+ N(...B);
2806
2813
  } catch (B) {
2807
2814
  console.log("execute err", B);
2808
2815
  }
2809
2816
  });
2810
2817
  };
2811
- return ma({
2818
+ return ya({
2812
2819
  elementMap: c,
2813
2820
  subject$: f,
2814
2821
  sendEvent: m,
2815
2822
  state: v,
2816
- dispatch: E,
2817
- data: b,
2823
+ dispatch: w,
2824
+ data: S,
2818
2825
  requests: e.requests,
2819
- sendRequest: T,
2820
- executeExp: k,
2821
- execute: W
2826
+ sendRequest: D,
2827
+ executeExp: A,
2828
+ execute: $
2822
2829
  }), r({
2823
2830
  sendEvent: m,
2824
- sendRequest: T
2831
+ sendRequest: D
2825
2832
  }), () => {
2826
- var S;
2827
- return s(fe, null, [ee(e.elementConfigs) > 0 && i(e.elementConfigs), (S = t.default) == null ? void 0 : S.call(t)]);
2833
+ var b;
2834
+ return s(fe, null, [ee(e.elementConfigs) > 0 && i(e.elementConfigs), (b = t.default) == null ? void 0 : b.call(t)]);
2828
2835
  };
2829
2836
  }
2830
- }), Be = (e) => {
2837
+ }), ct = (e) => {
2831
2838
  var t, r;
2832
2839
  return !(!e || ((r = (t = e == null ? void 0 : e[0]) == null ? void 0 : t.type) == null ? void 0 : r.toString()) === "Symbol(Comment)");
2833
2840
  }, Nn = (e) => e.formValueType || e.valueType || "text", pe = (e) => {
2834
2841
  var a, o;
2835
2842
  const t = (a = e.formItemProps) == null ? void 0 : a.name;
2836
2843
  return ((o = e.inputProps) == null ? void 0 : o.name) || t || e.dataIndex;
2837
- }, va = (e, t) => {
2844
+ }, ha = (e, t) => {
2838
2845
  let r = t;
2839
- return ye(t) && (r = p(e, t)), Y(r) || (r = p(e, "render")), Y(r) ? r : void 0;
2846
+ return ye(t) && (r = p(e, t)), X(r) || (r = p(e, "render")), X(r) ? r : void 0;
2840
2847
  }, Pt = (e, t, r, a) => {
2841
2848
  var f, m, d;
2842
- const o = va(t, a == null ? void 0 : a.render);
2849
+ const o = ha(t, a == null ? void 0 : a.render);
2843
2850
  if (o)
2844
2851
  return o({
2845
2852
  ...r,
@@ -2851,10 +2858,10 @@ const $r = () => ({
2851
2858
  const l = ((f = t.props) == null ? void 0 : f.slots) || ((m = t.formFieldProps) == null ? void 0 : m.slots) || {}, c = r || {};
2852
2859
  u.props.showProps && (c.showProps = t.props ? (d = t.props) == null ? void 0 : d.showProps : t.showProps);
2853
2860
  const i = t.props ? {
2854
- ...D(t.props, "slots"),
2861
+ ...O(t.props, "slots"),
2855
2862
  ...c
2856
2863
  } : {
2857
- ...D(t.formFieldProps, "slots"),
2864
+ ...O(t.formFieldProps, "slots"),
2858
2865
  ...c
2859
2866
  };
2860
2867
  return Ke(u, {
@@ -2866,7 +2873,7 @@ const $r = () => ({
2866
2873
  if (!o)
2867
2874
  return null;
2868
2875
  const n = r.inputProps, u = ((f = n == null ? void 0 : n.fieldProps) == null ? void 0 : f.slots) || ((m = r.formFieldProps) == null ? void 0 : m.slots) || {};
2869
- !u.renderInput && Y(r.inputRender) && (u.renderInput = (d) => r.inputRender({
2876
+ !u.renderInput && X(r.inputRender) && (u.renderInput = (d) => r.inputRender({
2870
2877
  ...d,
2871
2878
  column: r
2872
2879
  })), u.renderShow || (u.renderShow = (d) => Pt(e, r, {
@@ -2876,10 +2883,10 @@ const $r = () => ({
2876
2883
  }) || d.value);
2877
2884
  const l = pe(r), c = r.title, i = n ? {
2878
2885
  ...n,
2879
- fieldProps: D(n.fieldProps, "slots")
2886
+ fieldProps: O(n.fieldProps, "slots")
2880
2887
  } : {
2881
2888
  ...r.formItemProps,
2882
- fieldProps: D(r.formFieldProps, "slots"),
2889
+ fieldProps: O(r.formFieldProps, "slots"),
2883
2890
  showProps: r.showProps
2884
2891
  };
2885
2892
  return Ke(o, {
@@ -2888,7 +2895,7 @@ const $r = () => ({
2888
2895
  label: c,
2889
2896
  ...i
2890
2897
  }, u);
2891
- }, ha = (e) => e && !Y(e) && e.elementType, Ct = (e, t) => R(t, (r) => qe(e, r)), On = (e, t) => {
2898
+ }, ga = (e) => e && !X(e) && e.elementType, Ct = (e, t) => L(t, (r) => Be(e, r)), On = (e, t) => {
2892
2899
  var n;
2893
2900
  const r = t.elementProps, a = {
2894
2901
  ...t.elementProps
@@ -2909,23 +2916,23 @@ const $r = () => ({
2909
2916
  ...l.elementProps,
2910
2917
  params$: c
2911
2918
  } : l.elementProps;
2912
- return qe(e, {
2919
+ return Be(e, {
2913
2920
  ...l,
2914
2921
  elementProps: i
2915
2922
  });
2916
- }) : he(a, u.name, qe(e, l)));
2923
+ }) : he(a, u.name, Be(e, l)));
2917
2924
  }
2918
2925
  }), a;
2919
2926
  }, Dn = (e, t) => {
2920
- const r = ee(t.children) > 0 ? Ct(e, t.children) : void 0, a = t.childrenSlotName || "default", o = D(t.slots, r ? a : "");
2921
- return se(Z(o), (n) => {
2927
+ const r = ee(t.children) > 0 ? Ct(e, t.children) : void 0, a = t.childrenSlotName || "default", o = O(t.slots, r ? a : "");
2928
+ return se(J(o), (n) => {
2922
2929
  const u = o[n];
2923
- ha(u) ? o[n] = (...l) => {
2930
+ ga(u) ? o[n] = (...l) => {
2924
2931
  const c = u.needParams ? {
2925
2932
  ...u.elementProps,
2926
2933
  params$: l
2927
2934
  } : u.elementProps;
2928
- return qe(e, {
2935
+ return Be(e, {
2929
2936
  ...u,
2930
2937
  elementProps: c
2931
2938
  });
@@ -2934,10 +2941,10 @@ const $r = () => ({
2934
2941
  [a]: r ? () => r : void 0,
2935
2942
  ...o
2936
2943
  };
2937
- }, qe = (e, t) => {
2944
+ }, Be = (e, t) => {
2938
2945
  const r = p(e, t.elementType) || t.elementType;
2939
2946
  if (t.highConfig$)
2940
- return Ke(pa, {
2947
+ return Ke(ba, {
2941
2948
  key: t.elementId,
2942
2949
  elementMap: e,
2943
2950
  elementConfig: t
@@ -2947,7 +2954,7 @@ const $r = () => ({
2947
2954
  key: t.elementId,
2948
2955
  ...o
2949
2956
  }, a);
2950
- }, ga = (e) => ae(e) ? Zn(e) : ye(e) && e.indexOf(".") > 0 ? e.substring(0, e.indexOf(".")) : e, pa = N({
2957
+ }, pa = (e) => ae(e) ? er(e) : ye(e) && e.indexOf(".") > 0 ? e.substring(0, e.indexOf(".")) : e, ba = k({
2951
2958
  props: {
2952
2959
  elementMap: {
2953
2960
  type: Object
@@ -2966,28 +2973,28 @@ const $r = () => ({
2966
2973
  elementMap: o,
2967
2974
  elementConfig: n
2968
2975
  } = e, u = n.highConfig$, l = On(o, n);
2969
- se((g = n.highConfig$) == null ? void 0 : g.registerEventList, (C) => {
2970
- const v = (...E) => {
2971
- const h = `${n.elementId}-${C.name}`;
2976
+ se((g = n.highConfig$) == null ? void 0 : g.registerEventList, (P) => {
2977
+ const v = (...w) => {
2978
+ const h = `${n.elementId}-${P.name}`;
2972
2979
  r({
2973
2980
  type: h,
2974
- payload: E
2975
- }), a(C.executeList, E);
2976
- }, b = tn(C.name, l);
2977
- l && nn(b) && rn(b, l) && he(l, b, v);
2981
+ payload: w
2982
+ }), a(P.executeList, w);
2983
+ }, S = tn(P.name, l);
2984
+ l && nn(S) && rn(S, l) && he(l, S, v);
2978
2985
  });
2979
- const c = I(() => {
2986
+ const c = x(() => {
2980
2987
  if (!u.registerStateList || ee(u.registerStateList) <= 0)
2981
2988
  return;
2982
- const C = {
2989
+ const P = {
2983
2990
  ...l
2984
- }, v = J(u.registerStateList, (E) => !E.target || E.target === "prop"), b = R(v, (E) => {
2985
- const h = E.mapName || E.name, M = p(t, E.name);
2986
- return he(C, h, M), ga(h);
2991
+ }, v = Q(u.registerStateList, (w) => !w.target || w.target === "prop"), S = L(v, (w) => {
2992
+ const h = w.mapName || w.name, C = p(t, w.name);
2993
+ return he(P, h, C), pa(h);
2987
2994
  });
2988
- return ne(C, b);
2989
- }), i = p(o, n.elementType) || n.elementType, f = Dn(o, n), m = ce(J(u.registerStateList, (C) => C.target === "slot"), (C, v) => ({
2990
- ...C,
2995
+ return ne(P, S);
2996
+ }), i = p(o, n.elementType) || n.elementType, f = Dn(o, n), m = ce(Q(u.registerStateList, (P) => P.target === "slot"), (P, v) => ({
2997
+ ...P,
2991
2998
  [v.mapName]: () => p(t, v.name)
2992
2999
  }), {}), d = {
2993
3000
  ...f,
@@ -2996,10 +3003,10 @@ const $r = () => ({
2996
3003
  return () => p(c.value, "show$") === !1 ? null : Ke(i, {
2997
3004
  key: n.elementId,
2998
3005
  ...l,
2999
- ...D(c.value, "show$")
3006
+ ...O(c.value, "show$")
3000
3007
  }, d);
3001
3008
  }
3002
- }), ba = (e, t) => {
3009
+ }), Sa = (e, t) => {
3003
3010
  !e || !t || Ht(t) || De(e) || se(t, (r, a) => {
3004
3011
  const o = tn(a, e);
3005
3012
  if (!nn(o)) {
@@ -3013,7 +3020,7 @@ const $r = () => ({
3013
3020
  he(e, o, r);
3014
3021
  });
3015
3022
  }, Oe = (e, t) => {
3016
- ba(e, p(t, e.elementId));
3023
+ Sa(e, p(t, e.elementId));
3017
3024
  const r = p(e, ["highConfig$", "registerPropsTrans"]);
3018
3025
  r && ee(r) > 0 && se(r, (a) => {
3019
3026
  const o = p(e.elementProps, a.name);
@@ -3023,7 +3030,7 @@ const $r = () => ({
3023
3030
  }), e.children && ee(e.children) > 0 && se(e.children, (a) => {
3024
3031
  Oe(a, t);
3025
3032
  });
3026
- }, Sa = N({
3033
+ }, Pa = k({
3027
3034
  props: {
3028
3035
  initExecuteList: {
3029
3036
  type: Array
@@ -3037,13 +3044,13 @@ const $r = () => ({
3037
3044
  e.initExecuteList && t(e.initExecuteList, []);
3038
3045
  }, []), () => null;
3039
3046
  }
3040
- }), No = ({
3047
+ }), Ao = ({
3041
3048
  actors: e,
3042
3049
  configData: t,
3043
3050
  configDataExtra: r,
3044
3051
  Logic: a
3045
- }) => N(() => {
3046
- const o = Q(), n = (c) => {
3052
+ }) => k(() => {
3053
+ const o = Y(), n = (c) => {
3047
3054
  const i = Qt(c);
3048
3055
  return r && (ae(i) ? se(i, (f) => Oe(f, r)) : Oe(i, r)), i;
3049
3056
  };
@@ -3051,14 +3058,14 @@ const $r = () => ({
3051
3058
  t && t.elementConfigs && (o.value = n(t.elementConfigs)), t != null && t.elementConfigs;
3052
3059
  }, []);
3053
3060
  const l = te()(z.LoadingKey);
3054
- return () => o.value ? s(_e, {
3061
+ return () => o.value ? s(We, {
3055
3062
  initState: t == null ? void 0 : t.initState,
3056
3063
  storeKeys: t == null ? void 0 : t.storeKeys,
3057
3064
  actors: e,
3058
3065
  requests: t == null ? void 0 : t.requests,
3059
3066
  elementConfigs: o.value
3060
3067
  }, {
3061
- default: () => [s(Sa, null, null), a && s(a, null, null)]
3068
+ default: () => [s(Pa, null, null), a && s(a, null, null)]
3062
3069
  }) : l ? s(l, {
3063
3070
  loading: !0
3064
3071
  }, {
@@ -3066,9 +3073,9 @@ const $r = () => ({
3066
3073
  class: "pro-module-loading-dom"
3067
3074
  }, null)]
3068
3075
  }) : null;
3069
- }), Kn = Symbol("pro-curd"), ue = () => be(Kn), Pa = (e) => Se(Kn, e);
3070
- var q = /* @__PURE__ */ ((e) => (e.LIST = "LIST", e.DETAIL = "DETAIL", e.ADD = "ADD", e.EDIT = "EDIT", e.DELETE = "DELETE", e))(q || {}), _ = /* @__PURE__ */ ((e) => (e.EMIT = "EMIT", e.EXECUTE = "EXECUTE", e.PAGE = "PAGE", e.SUCCESS = "SUCCESS", e.FAIL = "FAIL", e))(_ || {}), Ce = /* @__PURE__ */ ((e) => (e.ADD = "ADD", e.EDIT = "EDIT", e.DETAIL = "DETAIL", e))(Ce || {}), Ue = /* @__PURE__ */ ((e) => (e.NORMAL = "NORMAL", e.CONTINUE = "CONTINUE", e))(Ue || {});
3071
- const Ca = () => ({
3076
+ }), Kn = Symbol("pro-curd"), ue = () => be(Kn), Ca = (e) => Se(Kn, e);
3077
+ var q = /* @__PURE__ */ ((e) => (e.LIST = "LIST", e.DETAIL = "DETAIL", e.ADD = "ADD", e.EDIT = "EDIT", e.DELETE = "DELETE", e))(q || {}), W = /* @__PURE__ */ ((e) => (e.EMIT = "EMIT", e.EXECUTE = "EXECUTE", e.PAGE = "PAGE", e.SUCCESS = "SUCCESS", e.FAIL = "FAIL", e))(W || {}), Ce = /* @__PURE__ */ ((e) => (e.ADD = "ADD", e.EDIT = "EDIT", e.DETAIL = "DETAIL", e))(Ce || {}), qe = /* @__PURE__ */ ((e) => (e.NORMAL = "NORMAL", e.CONTINUE = "CONTINUE", e))(qe || {});
3078
+ const Ma = () => ({
3072
3079
  rowKey: {
3073
3080
  type: String,
3074
3081
  default: "id"
@@ -3106,11 +3113,11 @@ const Ca = () => ({
3106
3113
  subPageProps: {
3107
3114
  type: Object
3108
3115
  }
3109
- }), Mt = ["sendCurdEvent", "refreshList", "sendEvent", "sendRequest"], Lt = N({
3116
+ }), Mt = ["sendCurdEvent", "refreshList", "sendEvent", "sendRequest"], Lt = k({
3110
3117
  inheritAttrs: !1,
3111
3118
  props: {
3112
3119
  ...we,
3113
- ...Ca()
3120
+ ...Ma()
3114
3121
  },
3115
3122
  setup: (e, {
3116
3123
  slots: t,
@@ -3123,73 +3130,73 @@ const Ca = () => ({
3123
3130
  state: u,
3124
3131
  sendEvent: l,
3125
3132
  sendRequest: c
3126
- } = Ee(), i = I(() => {
3133
+ } = Ee(), i = x(() => {
3127
3134
  if (e.title)
3128
3135
  return e.title;
3129
3136
  if (e.useMenuName && a) {
3130
3137
  const {
3131
- menus: S,
3132
- convertName: P
3138
+ menus: b,
3139
+ convertName: M
3133
3140
  } = a, {
3134
- target: A
3135
- } = $e(S.value, (y) => y.value === P(o));
3136
- return (A == null ? void 0 : A.label) || "";
3141
+ target: I
3142
+ } = $e(b.value, (y) => y.value === M(o));
3143
+ return (I == null ? void 0 : I.label) || "";
3137
3144
  }
3138
3145
  return "";
3139
- }), f = I(() => nt(e.columns, e.columnState, e.columnState2)), m = (S, P) => {
3140
- const A = J(f.value, (y) => {
3141
- const j = p(y, ["extra", S]) || p(y, S);
3142
- return P ? j !== !1 : j;
3146
+ }), f = x(() => tt(e.columns, e.columnState, e.columnState2)), m = (b, M) => {
3147
+ const I = Q(f.value, (y) => {
3148
+ const j = p(y, ["extra", b]) || p(y, b);
3149
+ return M ? j !== !1 : j;
3143
3150
  });
3144
- return _t(A, (y) => p(y, ["extra", `${S}Sort`]) || p(y, `${S}Sort`));
3145
- }, d = I(() => m("form", !0)), g = I(() => m("detail", !0)), C = I(() => m("table", !0)), v = I(() => m("search"));
3146
- let b;
3147
- const E = (S) => {
3151
+ return _t(I, (y) => p(y, ["extra", `${b}Sort`]) || p(y, `${b}Sort`));
3152
+ }, d = x(() => m("form", !0)), g = x(() => m("detail", !0)), P = x(() => m("table", !0)), v = x(() => m("search"));
3153
+ let S;
3154
+ const w = (b) => {
3148
3155
  c(q.LIST, {
3149
- ...b,
3150
- ...S
3156
+ ...S,
3157
+ ...b
3151
3158
  });
3152
- }, h = (S) => {
3159
+ }, h = (b) => {
3153
3160
  l({
3154
- type: S.action,
3155
- payload: D(S, "action", "source"),
3156
- source: S.source
3161
+ type: b.action,
3162
+ payload: O(b, "action", "source"),
3163
+ source: b.source
3157
3164
  });
3158
3165
  };
3159
3166
  St(({
3160
- type: S,
3161
- payload: P,
3162
- source: A
3167
+ type: b,
3168
+ payload: M,
3169
+ source: I
3163
3170
  }) => {
3164
- if (A)
3171
+ if (I)
3165
3172
  return;
3166
- let y = S, j = P == null ? void 0 : P.type;
3167
- y === je.Success && (y = p(P, ["requestOpts", "action"]), j = _.SUCCESS);
3173
+ let y = b, j = M == null ? void 0 : M.type;
3174
+ y === je.Success && (y = p(M, ["requestOpts", "action"]), j = W.SUCCESS);
3168
3175
  const {
3169
3176
  values: U,
3170
3177
  record: H
3171
- } = P;
3178
+ } = M;
3172
3179
  switch (y) {
3173
3180
  case q.LIST:
3174
- j === _.EMIT && (b = U, E());
3181
+ j === W.EMIT && (S = U, w());
3175
3182
  return;
3176
3183
  case q.ADD:
3177
- j === _.EXECUTE && c(q.ADD, U, u.detailData);
3184
+ j === W.EXECUTE && c(q.ADD, U, u.detailData);
3178
3185
  return;
3179
3186
  case q.EDIT:
3180
- j === _.EXECUTE && c(q.EDIT, U, u.detailData);
3187
+ j === W.EXECUTE && c(q.EDIT, U, u.detailData);
3181
3188
  return;
3182
3189
  case q.DELETE:
3183
- j === _.EMIT ? c(q.DELETE, H, e.rowKey) : j === _.SUCCESS && E();
3190
+ j === W.EMIT ? c(q.DELETE, H, e.rowKey) : j === W.SUCCESS && w();
3184
3191
  return;
3185
3192
  }
3186
- y && S === _.EXECUTE && c(y, U);
3193
+ y && b === W.EXECUTE && c(y, U);
3187
3194
  });
3188
- const M = ce(e.operates, (S, P) => ({
3189
- ...S,
3190
- [P.action]: P
3191
- }), {}), w = (S) => p(M, S), K = I(() => e.defaultAddRecord), $ = I(() => e.listProps), G = I(() => e.formProps), L = I(() => e.descProps), T = I(() => e.modalProps), k = I(() => e.pageProps), W = I(() => e.subPageProps);
3192
- return Pa({
3195
+ const C = ce(e.operates, (b, M) => ({
3196
+ ...b,
3197
+ [M.action]: M
3198
+ }), {}), T = (b) => p(C, b), K = x(() => e.defaultAddRecord), R = x(() => e.listProps), _ = x(() => e.formProps), Z = x(() => e.descProps), D = x(() => e.modalProps), A = x(() => e.pageProps), $ = x(() => e.subPageProps);
3199
+ return Ca({
3193
3200
  columns: f,
3194
3201
  getSignColumns: m,
3195
3202
  elementMap: n,
@@ -3198,31 +3205,31 @@ const Ca = () => ({
3198
3205
  curdState: u,
3199
3206
  formColumns: d,
3200
3207
  descColumns: g,
3201
- tableColumns: C,
3208
+ tableColumns: P,
3202
3209
  searchColumns: v,
3203
3210
  sendCurdEvent: h,
3204
3211
  operates: e.operates,
3205
- getOperate: w,
3206
- refreshList: E,
3212
+ getOperate: T,
3213
+ refreshList: w,
3207
3214
  defaultAddRecord: K,
3208
3215
  title: i.value,
3209
- listProps: $,
3210
- formProps: G,
3211
- descProps: L,
3212
- modalProps: T,
3213
- pageProps: k,
3214
- subPageProps: W
3216
+ listProps: R,
3217
+ formProps: _,
3218
+ descProps: Z,
3219
+ modalProps: D,
3220
+ pageProps: A,
3221
+ subPageProps: $
3215
3222
  }), r({
3216
3223
  sendCurdEvent: h,
3217
- refreshList: E
3224
+ refreshList: w
3218
3225
  }), () => {
3219
- var S;
3220
- return (S = t.default) == null ? void 0 : S.call(t);
3226
+ var b;
3227
+ return (b = t.default) == null ? void 0 : b.call(t);
3221
3228
  };
3222
3229
  }
3223
- }), Ze = N({
3230
+ }), Je = k({
3224
3231
  props: {
3225
- ...D(_e.props, "state", "requests"),
3232
+ ...O(We.props, "state", "requests"),
3226
3233
  ...Lt.props,
3227
3234
  curdState: {
3228
3235
  type: Object
@@ -3235,7 +3242,7 @@ const Ca = () => ({
3235
3242
  const {
3236
3243
  elementMap: a,
3237
3244
  formElementMap: o
3238
- } = ie(), n = Q(), u = Q(), l = e.curdState || ve({
3245
+ } = ie(), n = Y(), u = Y(), l = e.curdState || ve({
3239
3246
  detailData: {}
3240
3247
  }), c = {
3241
3248
  [q.LIST]: {
@@ -3281,14 +3288,14 @@ const Ca = () => ({
3281
3288
  convertParams: (d, g) => ne(d, g),
3282
3289
  label: "\u5220\u9664"
3283
3290
  }
3284
- }, i = R(e.operates, (d) => {
3291
+ }, i = L(e.operates, (d) => {
3285
3292
  var v;
3286
- const g = p(c, d.action), C = ((v = e.convertOperate) == null ? void 0 : v.call(e, d, g)) || d;
3293
+ const g = p(c, d.action), P = ((v = e.convertOperate) == null ? void 0 : v.call(e, d, g)) || d;
3287
3294
  return {
3288
3295
  ...g,
3289
- ...C
3296
+ ...P
3290
3297
  };
3291
- }), f = J(i, (d) => d.actor), m = Z(D(_e.props, "state", "requests"));
3298
+ }), f = Q(i, (d) => d.actor), m = J(O(We.props, "state", "requests"));
3292
3299
  return r({
3293
3300
  sendCurdEvent: (d) => {
3294
3301
  var g;
@@ -3303,10 +3310,10 @@ const Ca = () => ({
3303
3310
  (g = n.value) == null || g.sendEvent(d);
3304
3311
  },
3305
3312
  sendRequest: (d, ...g) => {
3306
- var C;
3307
- (C = n.value) == null || C.sendRequest(d, ...g);
3313
+ var P;
3314
+ (P = n.value) == null || P.sendRequest(d, ...g);
3308
3315
  }
3309
- }), () => s(_e, F({
3316
+ }), () => s(We, F({
3310
3317
  ref: n
3311
3318
  }, ne(e, m), {
3312
3319
  elementMap: e.elementMap || a,
@@ -3315,7 +3322,7 @@ const Ca = () => ({
3315
3322
  }), {
3316
3323
  default: () => [s(Lt, F({
3317
3324
  ref: u
3318
- }, D(e, ...m, "curdState", "operates", "convertOperate"), {
3325
+ }, O(e, ...m, "curdState", "operates", "convertOperate"), {
3319
3326
  formElementMap: e.formElementMap || o,
3320
3327
  operates: i
3321
3328
  }), t)]
@@ -3342,11 +3349,11 @@ const Ca = () => ({
3342
3349
  type: "addAction",
3343
3350
  payload: void 0
3344
3351
  });
3345
- }, n = I(() => {
3352
+ }, n = x(() => {
3346
3353
  const l = t.mode;
3347
3354
  if (!!l)
3348
3355
  return r(l);
3349
- }), u = I(() => {
3356
+ }), u = x(() => {
3350
3357
  const l = n.value;
3351
3358
  if (!l)
3352
3359
  return "";
@@ -3360,16 +3367,16 @@ const Ca = () => ({
3360
3367
  operate: n,
3361
3368
  opeTitle: u
3362
3369
  };
3363
- }, Ma = () => ({
3370
+ }, Ia = () => ({
3364
3371
  defaultAddRecord: {
3365
3372
  type: Object
3366
3373
  }
3367
- }), Ge = N({
3374
+ }), _e = k({
3368
3375
  props: {
3369
- ...Ma()
3376
+ ...Ia()
3370
3377
  },
3371
3378
  setup: (e) => {
3372
- var C;
3379
+ var P;
3373
3380
  const {
3374
3381
  dispatch: t,
3375
3382
  sendRequest: r
@@ -3380,27 +3387,27 @@ const Ca = () => ({
3380
3387
  getOperate: u,
3381
3388
  refreshList: l,
3382
3389
  defaultAddRecord: c
3383
- } = ue(), i = (C = n == null ? void 0 : n.value) == null ? void 0 : C.pageState, f = (v) => {
3384
- const b = u(q.DETAIL);
3385
- b != null && b.actor ? r(q.DETAIL, v, a) : t({
3390
+ } = ue(), i = (P = n == null ? void 0 : n.value) == null ? void 0 : P.pageState, f = (v) => {
3391
+ const S = u(q.DETAIL);
3392
+ S != null && S.actor ? r(q.DETAIL, v, a) : t({
3386
3393
  type: "detailData",
3387
3394
  payload: Qt(v)
3388
3395
  });
3389
3396
  }, m = (v, {
3390
- record: b
3397
+ record: S
3391
3398
  }) => {
3392
- v === _.EMIT && (t({
3399
+ v === W.EMIT && (t({
3393
3400
  type: "mode",
3394
3401
  payload: Ce.DETAIL
3395
- }), f(b));
3402
+ }), f(S));
3396
3403
  }, d = (v) => {
3397
- v === _.EMIT ? (t({
3404
+ v === W.EMIT ? (t({
3398
3405
  type: "mode",
3399
3406
  payload: Ce.ADD
3400
3407
  }), t({
3401
3408
  type: "detailData",
3402
3409
  payload: e.defaultAddRecord || (c == null ? void 0 : c.value) || {}
3403
- })) : v === _.SUCCESS && (i && (i.page = 1), l(), o.addAction === Ue.CONTINUE ? t({
3410
+ })) : v === W.SUCCESS && (i && (i.page = 1), l(), o.addAction === qe.CONTINUE ? t({
3404
3411
  type: "detailData",
3405
3412
  payload: e.defaultAddRecord || (c == null ? void 0 : c.value) || {}
3406
3413
  }) : t({
@@ -3408,73 +3415,73 @@ const Ca = () => ({
3408
3415
  payload: void 0
3409
3416
  }));
3410
3417
  }, g = (v, {
3411
- record: b
3418
+ record: S
3412
3419
  }) => {
3413
- v === _.EMIT ? (t({
3420
+ v === W.EMIT ? (t({
3414
3421
  type: "mode",
3415
3422
  payload: Ce.EDIT
3416
- }), f(b)) : v === _.SUCCESS && (t({
3423
+ }), f(S)) : v === W.SUCCESS && (t({
3417
3424
  type: "mode",
3418
3425
  payload: void 0
3419
3426
  }), l());
3420
3427
  };
3421
3428
  return St(({
3422
3429
  type: v,
3423
- payload: b,
3424
- source: E
3430
+ payload: S,
3431
+ source: w
3425
3432
  }) => {
3426
- if (E)
3433
+ if (w)
3427
3434
  return;
3428
- let h = v, M = b == null ? void 0 : b.type;
3429
- const w = b == null ? void 0 : b.record;
3430
- switch (h === je.Success && (h = p(b, ["requestOpts", "action"]), M = _.SUCCESS), h) {
3435
+ let h = v, C = S == null ? void 0 : S.type;
3436
+ const T = S == null ? void 0 : S.record;
3437
+ switch (h === je.Success && (h = p(S, ["requestOpts", "action"]), C = W.SUCCESS), h) {
3431
3438
  case q.DETAIL:
3432
- m(M, {
3433
- record: w
3439
+ m(C, {
3440
+ record: T
3434
3441
  });
3435
3442
  break;
3436
3443
  case q.ADD:
3437
- d(M);
3444
+ d(C);
3438
3445
  break;
3439
3446
  case q.EDIT:
3440
- g(M, {
3441
- record: w
3447
+ g(C, {
3448
+ record: T
3442
3449
  });
3443
3450
  break;
3444
3451
  }
3445
3452
  }), () => null;
3446
3453
  }
3447
- }), Ao = N({
3454
+ }), Oo = k({
3448
3455
  props: {
3449
- ...Ze.props,
3450
- ...Ge.props
3456
+ ...Je.props,
3457
+ ..._e.props
3451
3458
  },
3452
3459
  setup: (e, {
3453
3460
  slots: t,
3454
3461
  expose: r
3455
3462
  }) => {
3456
- const a = Q();
3463
+ const a = Y();
3457
3464
  r(xe(Mt, a));
3458
- const o = Z(Ge.props), u = te()(z.ProCurdKey);
3465
+ const o = J(_e.props), u = te()(z.ProCurdKey);
3459
3466
  return () => u ? s(u, F({
3460
3467
  ref: a
3461
- }, D(e, o)), {
3468
+ }, O(e, o)), {
3462
3469
  default: () => {
3463
3470
  var l;
3464
- return [s(Ge, ne(e, o), null), (l = t.default) == null ? void 0 : l.call(t)];
3471
+ return [s(_e, ne(e, o), null), (l = t.default) == null ? void 0 : l.call(t)];
3465
3472
  }
3466
3473
  }) : null;
3467
3474
  }
3468
- }), Ia = () => ({
3475
+ }), xa = () => ({
3469
3476
  defaultAddRecord: {
3470
3477
  type: Object
3471
3478
  },
3472
3479
  routeBack: {
3473
3480
  type: Function
3474
3481
  }
3475
- }), lt = N({
3482
+ }), ut = k({
3476
3483
  props: {
3477
- ...Ia()
3484
+ ...xa()
3478
3485
  },
3479
3486
  setup: (e) => {
3480
3487
  const t = sn(), r = ht(), {
@@ -3484,7 +3491,7 @@ const Ca = () => ({
3484
3491
  rowKey: n,
3485
3492
  curdState: u
3486
3493
  } = ue(), l = (m) => {
3487
- m === _.PAGE && (a({
3494
+ m === W.PAGE && (a({
3488
3495
  type: "mode",
3489
3496
  payload: void 0
3490
3497
  }), a({
@@ -3500,36 +3507,36 @@ const Ca = () => ({
3500
3507
  }, c = (m, {
3501
3508
  record: d
3502
3509
  }) => {
3503
- m === _.EMIT ? t.push({
3510
+ m === W.EMIT ? t.push({
3504
3511
  path: `${r.path}/detail`,
3505
3512
  query: ne(d, n)
3506
- }) : m === _.PAGE && (a({
3513
+ }) : m === W.PAGE && (a({
3507
3514
  type: "mode",
3508
3515
  payload: Ce.DETAIL
3509
3516
  }), o(q.DETAIL, r.query, n));
3510
3517
  }, i = (m) => {
3511
- m === _.EMIT ? t.push({
3518
+ m === W.EMIT ? t.push({
3512
3519
  path: `${r.path}/add`
3513
- }) : m === _.PAGE ? (a({
3520
+ }) : m === W.PAGE ? (a({
3514
3521
  type: "mode",
3515
3522
  payload: Ce.ADD
3516
3523
  }), a({
3517
3524
  type: "detailData",
3518
3525
  payload: e.defaultAddRecord || {}
3519
- })) : m === _.SUCCESS && (u.addAction === Ue.CONTINUE ? a({
3526
+ })) : m === W.SUCCESS && (u.addAction === qe.CONTINUE ? a({
3520
3527
  type: "detailData",
3521
3528
  payload: e.defaultAddRecord || {}
3522
3529
  }) : e.routeBack ? e.routeBack(q.ADD) : t.go(-1));
3523
3530
  }, f = (m, {
3524
3531
  record: d
3525
3532
  }) => {
3526
- m === _.EMIT ? t.push({
3533
+ m === W.EMIT ? t.push({
3527
3534
  path: `${r.path}/edit`,
3528
3535
  query: ne(d, n)
3529
- }) : m === _.PAGE ? (a({
3536
+ }) : m === W.PAGE ? (a({
3530
3537
  type: "mode",
3531
3538
  payload: Ce.EDIT
3532
- }), o(q.DETAIL, r.query, n)) : m === _.SUCCESS && (e.routeBack ? e.routeBack(q.EDIT) : t.go(-1));
3539
+ }), o(q.DETAIL, r.query, n)) : m === W.SUCCESS && (e.routeBack ? e.routeBack(q.EDIT) : t.go(-1));
3533
3540
  };
3534
3541
  return St(({
3535
3542
  type: m,
@@ -3538,15 +3545,15 @@ const Ca = () => ({
3538
3545
  }) => {
3539
3546
  if (g)
3540
3547
  return;
3541
- let C = m, v = d == null ? void 0 : d.type;
3542
- const b = d == null ? void 0 : d.record;
3543
- switch (C === je.Success && (C = p(d, ["requestOpts", "action"]), v = _.SUCCESS), C) {
3548
+ let P = m, v = d == null ? void 0 : d.type;
3549
+ const S = d == null ? void 0 : d.record;
3550
+ switch (P === je.Success && (P = p(d, ["requestOpts", "action"]), v = W.SUCCESS), P) {
3544
3551
  case q.LIST:
3545
3552
  l(v);
3546
3553
  break;
3547
3554
  case q.DETAIL:
3548
3555
  c(v, {
3549
- record: b
3556
+ record: S
3550
3557
  });
3551
3558
  break;
3552
3559
  case q.ADD:
@@ -3554,34 +3561,34 @@ const Ca = () => ({
3554
3561
  break;
3555
3562
  case q.EDIT:
3556
3563
  f(v, {
3557
- record: b
3564
+ record: S
3558
3565
  });
3559
3566
  break;
3560
3567
  }
3561
3568
  }), () => null;
3562
3569
  }
3563
- }), Oo = N({
3570
+ }), Do = k({
3564
3571
  props: {
3565
- ...Ze.props,
3566
- ...lt.props
3572
+ ...Je.props,
3573
+ ...ut.props
3567
3574
  },
3568
3575
  setup: (e, {
3569
3576
  slots: t,
3570
3577
  expose: r
3571
3578
  }) => {
3572
- const a = Q();
3579
+ const a = Y();
3573
3580
  r(xe(Mt, a));
3574
- const o = Z(lt.props);
3575
- return () => s(Ze, F({
3581
+ const o = J(ut.props);
3582
+ return () => s(Je, F({
3576
3583
  ref: a
3577
- }, D(e, o)), {
3584
+ }, O(e, o)), {
3578
3585
  default: () => {
3579
3586
  var n;
3580
- return [s(lt, ne(e, o), null), (n = t.default) == null ? void 0 : n.call(t)];
3587
+ return [s(ut, ne(e, o), null), (n = t.default) == null ? void 0 : n.call(t)];
3581
3588
  }
3582
3589
  });
3583
3590
  }
3584
- }), $t = N({
3591
+ }), $t = k({
3585
3592
  props: {
3586
3593
  buttonProps: Object
3587
3594
  },
@@ -3598,12 +3605,12 @@ const Ca = () => ({
3598
3605
  }
3599
3606
  o({
3600
3607
  action: q.ADD,
3601
- type: _.EMIT
3608
+ type: W.EMIT
3602
3609
  });
3603
3610
  }, c = te()(z.ButtonKey);
3604
- return () => !n || !r(n.per, n.perSuffix) || !(Y(n.show) ? n.show({}) : n.show) ? null : n.element ? n.element({}, n) : t.default ? t.default(n, u) : c ? s(c, F({
3611
+ return () => !n || !r(n.per, n.perSuffix) || !(X(n.show) ? n.show({}) : n.show) ? null : n.element ? n.element({}, n) : t.default ? t.default(n, u) : c ? s(c, F({
3605
3612
  class: "pro-curd-add-button",
3606
- disabled: Y(n.disabled) ? n.disabled() : n.disabled
3613
+ disabled: X(n.disabled) ? n.disabled() : n.disabled
3607
3614
  }, e.buttonProps, {
3608
3615
  onClick: u
3609
3616
  }), {
@@ -3621,9 +3628,9 @@ const Ca = () => ({
3621
3628
  type: Boolean,
3622
3629
  default: !0
3623
3630
  }
3624
- }), Rn = N({
3631
+ }), Rn = k({
3625
3632
  props: {
3626
- ...na.props,
3633
+ ...ra.props,
3627
3634
  ...jt()
3628
3635
  },
3629
3636
  setup: (e, {
@@ -3638,97 +3645,97 @@ const Ca = () => ({
3638
3645
  sendCurdEvent: l,
3639
3646
  operates: c,
3640
3647
  refreshList: i
3641
- } = ue(), f = R(
3642
- J(c, (M) => {
3643
- const w = M.action;
3644
- return w === q.DETAIL || w === q.EDIT || w === q.DELETE || M.tableOperate;
3648
+ } = ue(), f = L(
3649
+ Q(c, (C) => {
3650
+ const T = C.action;
3651
+ return T === q.DETAIL || T === q.EDIT || T === q.DELETE || C.tableOperate;
3645
3652
  }),
3646
- (M) => {
3647
- const w = {
3648
- ...D(M, "action", "actor", "convertParams"),
3649
- value: M.action
3653
+ (C) => {
3654
+ const T = {
3655
+ ...O(C, "action", "actor", "convertParams"),
3656
+ value: C.action
3650
3657
  };
3651
- return w.onClick || (w.onClick = (K) => {
3658
+ return T.onClick || (T.onClick = (K) => {
3652
3659
  l({
3653
- action: M.action,
3654
- type: _.EMIT,
3660
+ action: C.action,
3661
+ type: W.EMIT,
3655
3662
  record: K
3656
3663
  });
3657
- }), w;
3664
+ }), T;
3658
3665
  }
3659
- ), m = (M) => {
3666
+ ), m = (C) => {
3660
3667
  l({
3661
3668
  action: q.LIST,
3662
- type: _.EMIT,
3663
- values: M
3669
+ type: W.EMIT,
3670
+ values: C
3664
3671
  });
3665
3672
  };
3666
- dr(() => {
3673
+ fr(() => {
3667
3674
  e.activatedRefresh && i();
3668
3675
  });
3669
- const d = I(() => ({
3676
+ const d = x(() => ({
3670
3677
  formElementMap: a,
3671
3678
  columns: n.value,
3672
3679
  ...e.searchProps
3673
- })), g = I(() => {
3674
- var M, w;
3680
+ })), g = x(() => {
3681
+ var C, T;
3675
3682
  return {
3676
3683
  elementMap: r,
3677
3684
  columns: u.value,
3678
3685
  loading: o.listLoading,
3679
- dataSource: (M = o.listData) == null ? void 0 : M.dataSource,
3680
- ...D(e.tableProps, "operate"),
3686
+ dataSource: (C = o.listData) == null ? void 0 : C.dataSource,
3687
+ ...O(e.tableProps, "operate"),
3681
3688
  operate: {
3682
3689
  items: f,
3683
- ...(w = e.tableProps) == null ? void 0 : w.operate
3690
+ ...(T = e.tableProps) == null ? void 0 : T.operate
3684
3691
  }
3685
3692
  };
3686
- }), C = I(() => {
3687
- var M;
3693
+ }), P = x(() => {
3694
+ var C;
3688
3695
  return e.paginationProps === !1 ? !1 : {
3689
- total: (M = o.listData) == null ? void 0 : M.total,
3696
+ total: (C = o.listData) == null ? void 0 : C.total,
3690
3697
  ...e.paginationProps
3691
3698
  };
3692
- }), v = I(() => {
3693
- var M;
3694
- return e.paginationProps === !1 ? !1 : !!((M = o.listData) != null && M.total);
3695
- }), b = Z(jt()), h = te()(z.ProListKey);
3699
+ }), v = x(() => {
3700
+ var C;
3701
+ return e.paginationProps === !1 ? !1 : !!((C = o.listData) != null && C.total);
3702
+ }), S = J(jt()), h = te()(z.ProListKey);
3696
3703
  return () => {
3697
- var w, K;
3704
+ var T, K;
3698
3705
  if (!h)
3699
3706
  return null;
3700
- const M = ["pro-curd-list"];
3701
- return v.value && M.push("has-pagination"), s(h, F({
3702
- class: M
3703
- }, D(e, ...b, "searchProps", "tableProps", "paginationProps"), {
3707
+ const C = ["pro-curd-list"];
3708
+ return v.value && C.push("has-pagination"), s(h, F({
3709
+ class: C
3710
+ }, O(e, ...S, "searchProps", "tableProps", "paginationProps"), {
3704
3711
  searchProps: d.value,
3705
3712
  tableProps: g.value,
3706
- paginationProps: C.value,
3713
+ paginationProps: P.value,
3707
3714
  onSearch: m
3708
3715
  }), {
3709
- "search-end": (w = e.addConfig) != null && w.inSearch ? () => {
3710
- var $;
3716
+ "search-end": (T = e.addConfig) != null && T.inSearch ? () => {
3717
+ var R;
3711
3718
  return s("div", {
3712
3719
  class: "pro-curd-list-search-end"
3713
- }, [s($t, ($ = e.addConfig) == null ? void 0 : $.buttonProps, null)]);
3720
+ }, [s($t, (R = e.addConfig) == null ? void 0 : R.buttonProps, null)]);
3714
3721
  } : void 0,
3715
- "table-toolbarExtra": (K = e.addConfig) != null && K.inTable ? ($) => {
3716
- var G;
3717
- return s(fe, null, [s($t, (G = e.addConfig) == null ? void 0 : G.buttonProps, null), $]);
3722
+ "table-toolbarExtra": (K = e.addConfig) != null && K.inTable ? (R) => {
3723
+ var _;
3724
+ return s(fe, null, [s($t, (_ = e.addConfig) == null ? void 0 : _.buttonProps, null), R]);
3718
3725
  } : void 0,
3719
3726
  ...t,
3720
- search: t.search ? ($) => t.search($, d.value) : void 0,
3721
- table: t.table ? ($) => t.table($, g.value) : void 0,
3722
- pagination: t.pagination ? ($) => t.pagination($, C.value) : void 0
3727
+ search: t.search ? (R) => t.search(R, d.value) : void 0,
3728
+ table: t.table ? (R) => t.table(R, g.value) : void 0,
3729
+ pagination: t.pagination ? (R) => t.pagination(R, P.value) : void 0
3723
3730
  });
3724
3731
  };
3725
3732
  }
3726
- }), xa = N(() => {
3733
+ }), Ea = k(() => {
3727
3734
  const {
3728
3735
  listProps: e
3729
3736
  } = ue();
3730
- return () => s(Rn, D(e == null ? void 0 : e.value, "slots"), p(e == null ? void 0 : e.value, "slots"));
3731
- }), Ea = N({
3737
+ return () => s(Rn, O(e == null ? void 0 : e.value, "slots"), p(e == null ? void 0 : e.value, "slots"));
3738
+ }), wa = k({
3732
3739
  props: {
3733
3740
  ...wn.props,
3734
3741
  as: {
@@ -3745,7 +3752,7 @@ const Ca = () => ({
3745
3752
  return () => s(o, F({
3746
3753
  class: "curd-list has-footer"
3747
3754
  }, e), {
3748
- default: () => [s(Rn, D(r.value, "slots"), {
3755
+ default: () => [s(Rn, O(r.value, "slots"), {
3749
3756
  divide2: () => s("div", {
3750
3757
  class: "curd-list-grow"
3751
3758
  }, null),
@@ -3754,18 +3761,18 @@ const Ca = () => ({
3754
3761
  ...t
3755
3762
  });
3756
3763
  }
3757
- }), wa = N(() => {
3764
+ }), Ta = k(() => {
3758
3765
  const {
3759
3766
  pageProps: e
3760
3767
  } = ue();
3761
- return () => s(Ea, D(e == null ? void 0 : e.value, "slots"), p(e == null ? void 0 : e.value, "slots"));
3762
- }), Ta = () => ({
3768
+ return () => s(wa, O(e == null ? void 0 : e.value, "slots"), p(e == null ? void 0 : e.value, "slots"));
3769
+ }), ka = () => ({
3763
3770
  signName: {
3764
3771
  type: String
3765
3772
  }
3766
- }), at = N({
3773
+ }), rt = k({
3767
3774
  props: {
3768
- ...Ta()
3775
+ ...ka()
3769
3776
  },
3770
3777
  setup: (e, {
3771
3778
  slots: t,
@@ -3779,15 +3786,15 @@ const Ca = () => ({
3779
3786
  formColumns: l,
3780
3787
  getSignColumns: c,
3781
3788
  sendCurdEvent: i
3782
- } = ue(), f = Q();
3789
+ } = ue(), f = Y();
3783
3790
  r(xe(e.formMethods || [], f));
3784
- const m = I(() => e.signName ? c(e.signName) : l.value), d = () => {
3791
+ const m = x(() => e.signName ? c(e.signName) : l.value), d = () => {
3785
3792
  var h;
3786
- u.addAction = Ue.NORMAL, (h = f.value) == null || h.submit();
3793
+ u.addAction = qe.NORMAL, (h = f.value) == null || h.submit();
3787
3794
  }, g = () => {
3788
3795
  var h;
3789
- u.addAction = Ue.CONTINUE, (h = f.value) == null || h.submit();
3790
- }, C = [
3796
+ u.addAction = qe.CONTINUE, (h = f.value) == null || h.submit();
3797
+ }, P = [
3791
3798
  {
3792
3799
  value: de.RESET,
3793
3800
  label: "\u91CD\u7F6E"
@@ -3810,18 +3817,18 @@ const Ca = () => ({
3810
3817
  ], v = (h) => {
3811
3818
  a.onFinish || (u.mode === q.EDIT ? i({
3812
3819
  action: q.EDIT,
3813
- type: _.EXECUTE,
3820
+ type: W.EXECUTE,
3814
3821
  values: h
3815
3822
  }) : i({
3816
3823
  action: q.ADD,
3817
- type: _.EXECUTE,
3824
+ type: W.EXECUTE,
3818
3825
  values: h
3819
3826
  }));
3820
- }, E = te()(z.ProFormKey);
3821
- return () => E ? s(E, F({
3827
+ }, w = te()(z.ProFormKey);
3828
+ return () => w ? s(w, F({
3822
3829
  ref: f,
3823
3830
  class: "pro-curd-form"
3824
- }, D(e, "operate"), {
3831
+ }, O(e, "operate"), {
3825
3832
  elementMap: e.elementMap || o,
3826
3833
  formElementMap: e.formElementMap || n,
3827
3834
  columns: e.columns || m.value,
@@ -3829,7 +3836,7 @@ const Ca = () => ({
3829
3836
  model: e.model || u.detailData,
3830
3837
  hideRequiredMark: u.mode === q.DETAIL,
3831
3838
  operate: e.operate ? {
3832
- items: C,
3839
+ items: P,
3833
3840
  onSubmit: d,
3834
3841
  onContinue: g,
3835
3842
  ...e.operate
@@ -3837,18 +3844,18 @@ const Ca = () => ({
3837
3844
  onFinish: v
3838
3845
  }), t) : null;
3839
3846
  }
3840
- }), Do = N(() => {
3847
+ }), Ko = k(() => {
3841
3848
  const {
3842
3849
  formProps: e
3843
3850
  } = ue();
3844
- return () => s(at, D(e == null ? void 0 : e.value, "slots"), p(e == null ? void 0 : e.value, "slots"));
3845
- }), ka = () => ({
3851
+ return () => s(rt, O(e == null ? void 0 : e.value, "slots"), p(e == null ? void 0 : e.value, "slots"));
3852
+ }), Na = () => ({
3846
3853
  signName: {
3847
3854
  type: String
3848
3855
  }
3849
- }), Na = N({
3856
+ }), Aa = k({
3850
3857
  props: {
3851
- ...ka()
3858
+ ...Na()
3852
3859
  },
3853
3860
  setup: (e, {
3854
3861
  slots: t
@@ -3857,19 +3864,19 @@ const Ca = () => ({
3857
3864
  curdState: r,
3858
3865
  descColumns: a,
3859
3866
  getSignColumns: o
3860
- } = ue(), n = I(() => e.signName ? o(e.signName) : a.value);
3861
- return () => s(ra, F(D(e, "signName", "model", "columns"), {
3867
+ } = ue(), n = x(() => e.signName ? o(e.signName) : a.value);
3868
+ return () => s(aa, F(O(e, "signName", "model", "columns"), {
3862
3869
  model: e.model || r.detailData,
3863
3870
  columns: n.value
3864
3871
  }), t);
3865
3872
  }
3866
- }), Ko = N(() => {
3873
+ }), Fo = k(() => {
3867
3874
  const {
3868
3875
  descProps: e
3869
3876
  } = ue();
3870
- return () => s(Na, F({
3877
+ return () => s(Aa, F({
3871
3878
  class: "pro-curd-desc"
3872
- }, D(e == null ? void 0 : e.value, "slots")), p(e == null ? void 0 : e.value, "slots"));
3879
+ }, O(e == null ? void 0 : e.value, "slots")), p(e == null ? void 0 : e.value, "slots"));
3873
3880
  }), Bt = () => ({
3874
3881
  validMode: {
3875
3882
  type: Array,
@@ -3881,7 +3888,7 @@ const Ca = () => ({
3881
3888
  overrideProps: {
3882
3889
  type: Object
3883
3890
  }
3884
- }), Ln = N({
3891
+ }), Ln = k({
3885
3892
  props: {
3886
3893
  ...Bt()
3887
3894
  },
@@ -3893,16 +3900,16 @@ const Ca = () => ({
3893
3900
  } = ue(), {
3894
3901
  clearMode: a,
3895
3902
  opeTitle: o
3896
- } = Fn(), n = I(() => e.title || o.value), u = I(() => !!Ie(e.validMode, (d) => d === r.mode)), l = (d) => {
3903
+ } = Fn(), n = x(() => e.title || o.value), u = x(() => !!Ie(e.validMode, (d) => d === r.mode)), l = (d) => {
3897
3904
  d || a();
3898
- }, c = Z(Bt()), i = te(), f = i(z.ModalKey), m = i(z.LoadingKey);
3905
+ }, c = J(Bt()), i = te(), f = i(z.ModalKey), m = i(z.LoadingKey);
3899
3906
  return () => {
3900
3907
  if (!u.value)
3901
3908
  return null;
3902
3909
  const d = r.mode;
3903
3910
  return s(f, F({
3904
3911
  class: "pro-curd-modal"
3905
- }, D(e, c), {
3912
+ }, O(e, c), {
3906
3913
  visible: !0,
3907
3914
  title: n.value,
3908
3915
  confirmLoading: r.operateLoading,
@@ -3922,11 +3929,11 @@ const Ca = () => ({
3922
3929
  }, null)]
3923
3930
  }) : (g = t.default) == null ? void 0 : g.call(t)];
3924
3931
  },
3925
- ...D(t, "default")
3932
+ ...O(t, "default")
3926
3933
  });
3927
3934
  };
3928
3935
  }
3929
- }), Fo = N({
3936
+ }), Ro = k({
3930
3937
  props: {
3931
3938
  modalProps: Object,
3932
3939
  formProps: Object
@@ -3934,33 +3941,33 @@ const Ca = () => ({
3934
3941
  setup: (e, {
3935
3942
  slots: t
3936
3943
  }) => {
3937
- const r = Q(), a = ge(t, "modal"), o = ge(t, "form");
3944
+ const r = Y(), a = ge(t, "modal"), o = ge(t, "form");
3938
3945
  return () => s(Ln, F(e.modalProps, {
3939
3946
  onOk: () => {
3940
3947
  var n;
3941
3948
  (n = r.value) == null || n.submit();
3942
3949
  }
3943
3950
  }), {
3944
- default: () => [s(at, F({
3951
+ default: () => [s(rt, F({
3945
3952
  ref: r
3946
3953
  }, e.formProps), o)],
3947
3954
  ...a
3948
3955
  });
3949
3956
  }
3950
- }), Aa = N(() => {
3957
+ }), Oa = k(() => {
3951
3958
  const {
3952
3959
  modalProps: e,
3953
3960
  formProps: t
3954
- } = ue(), r = Q();
3955
- return () => s(Ln, F(D(e == null ? void 0 : e.value, "slots"), {
3961
+ } = ue(), r = Y();
3962
+ return () => s(Ln, F(O(e == null ? void 0 : e.value, "slots"), {
3956
3963
  onOk: () => {
3957
3964
  var a;
3958
3965
  (a = r.value) == null || a.submit();
3959
3966
  }
3960
3967
  }), {
3961
- default: () => [s(at, F({
3968
+ default: () => [s(rt, F({
3962
3969
  ref: r
3963
- }, D(t == null ? void 0 : t.value, "slots")), p(t == null ? void 0 : t.value, "slots"))],
3970
+ }, O(t == null ? void 0 : t.value, "slots")), p(t == null ? void 0 : t.value, "slots"))],
3964
3971
  ...p(e == null ? void 0 : e.value, "slots")
3965
3972
  });
3966
3973
  }), qt = () => ({
@@ -3979,7 +3986,7 @@ const Ca = () => ({
3979
3986
  type: String,
3980
3987
  default: "\u786E\u8BA4"
3981
3988
  }
3982
- }), Ut = N({
3989
+ }), Ut = k({
3983
3990
  props: {
3984
3991
  ...wn.props,
3985
3992
  sub: {
@@ -4001,13 +4008,13 @@ const Ca = () => ({
4001
4008
  } = ue(), {
4002
4009
  clearMode: o,
4003
4010
  opeTitle: n
4004
- } = Fn(), u = I(() => e.title || n.value), l = I(() => !!Ie(e.validMode, (g) => g === a.mode)), c = () => {
4011
+ } = Fn(), u = x(() => e.title || n.value), l = x(() => !!Ie(e.validMode, (g) => g === a.mode)), c = () => {
4005
4012
  t("ok");
4006
- }, i = I(() => {
4007
- var C;
4013
+ }, i = x(() => {
4014
+ var P;
4008
4015
  if (a.mode === q.DETAIL)
4009
4016
  return [];
4010
- const g = (C = e.operate) == null ? void 0 : C.items;
4017
+ const g = (P = e.operate) == null ? void 0 : P.items;
4011
4018
  return ee(g) > 0 ? g : [{
4012
4019
  value: "cancel",
4013
4020
  label: e.cancelText,
@@ -4021,10 +4028,10 @@ const Ca = () => ({
4021
4028
  loading: a.operateLoading,
4022
4029
  onClick: c
4023
4030
  }];
4024
- }), m = te()(z.ProPageKey), d = Z(qt());
4031
+ }), m = te()(z.ProPageKey), d = J(qt());
4025
4032
  return () => l.value ? s(m, F({
4026
4033
  class: "curd"
4027
- }, D(e, d), {
4034
+ }, O(e, d), {
4028
4035
  title: u.value,
4029
4036
  onBackClick: e.onBackClick || o
4030
4037
  }), {
@@ -4034,7 +4041,7 @@ const Ca = () => ({
4034
4041
  ...r
4035
4042
  }) : null;
4036
4043
  }
4037
- }), Oa = N({
4044
+ }), Da = k({
4038
4045
  props: {
4039
4046
  ...Ut.props
4040
4047
  },
@@ -4043,7 +4050,7 @@ const Ca = () => ({
4043
4050
  }) => {
4044
4051
  const {
4045
4052
  formProps: r
4046
- } = ue(), a = Q(), o = () => {
4053
+ } = ue(), a = Y(), o = () => {
4047
4054
  var n;
4048
4055
  (n = a.value) == null || n.submit();
4049
4056
  };
@@ -4052,18 +4059,18 @@ const Ca = () => ({
4052
4059
  }), {
4053
4060
  default: () => {
4054
4061
  var n, u;
4055
- return [(n = t.start) == null ? void 0 : n.call(t), s(at, F({
4062
+ return [(n = t.start) == null ? void 0 : n.call(t), s(rt, F({
4056
4063
  ref: a
4057
- }, D(r == null ? void 0 : r.value, "slots")), p(r == null ? void 0 : r.value, "slots")), (u = t.end) == null ? void 0 : u.call(t)];
4064
+ }, O(r == null ? void 0 : r.value, "slots")), p(r == null ? void 0 : r.value, "slots")), (u = t.end) == null ? void 0 : u.call(t)];
4058
4065
  },
4059
- ...D(t, "start")
4066
+ ...O(t, "start")
4060
4067
  });
4061
4068
  }
4062
- }), Da = N(() => {
4069
+ }), Ka = k(() => {
4063
4070
  const {
4064
4071
  subPageProps: e
4065
4072
  } = ue();
4066
- return () => s(Oa, D(e == null ? void 0 : e.value, "slots"), p(e == null ? void 0 : e.value, "slots"));
4073
+ return () => s(Da, O(e == null ? void 0 : e.value, "slots"), p(e == null ? void 0 : e.value, "slots"));
4067
4074
  }), Vt = () => ({
4068
4075
  listType: {
4069
4076
  type: String,
@@ -4072,34 +4079,34 @@ const Ca = () => ({
4072
4079
  modalType: {
4073
4080
  type: String
4074
4081
  }
4075
- }), Ro = N({
4082
+ }), Lo = k({
4076
4083
  props: {
4077
- ...Ze.props,
4084
+ ...Je.props,
4078
4085
  ...Vt()
4079
4086
  },
4080
4087
  setup: (e, {
4081
4088
  slots: t,
4082
4089
  expose: r
4083
4090
  }) => {
4084
- const a = Q();
4091
+ const a = Y();
4085
4092
  r(xe(Mt, a));
4086
- const n = te()(z.ProCurdKey), u = Z(Vt());
4093
+ const n = te()(z.ProCurdKey), u = J(Vt());
4087
4094
  return () => {
4088
4095
  const l = e.listType, c = e.modalType;
4089
4096
  return s(n, F({
4090
4097
  ref: a
4091
- }, D(e, u)), {
4098
+ }, O(e, u)), {
4092
4099
  default: () => {
4093
4100
  var i;
4094
- return [l === "page" && s(wa, null, null), l === "list" && s(xa, null, null), c === "page" && s(Da, null, null), c === "modal" && s(Aa, null, null), (c === "page" || c === "modal") && s(Ge, null, null), (i = t.default) == null ? void 0 : i.call(t)];
4101
+ return [l === "page" && s(Ta, null, null), l === "list" && s(Ea, null, null), c === "page" && s(Ka, null, null), c === "modal" && s(Oa, null, null), (c === "page" || c === "modal") && s(_e, null, null), (i = t.default) == null ? void 0 : i.call(t)];
4095
4102
  }
4096
4103
  });
4097
4104
  };
4098
4105
  }
4099
- }), Ka = cn("app-config", void 0, !0), $n = () => {
4106
+ }), Fa = cn("app-config", void 0, !0), $n = () => {
4100
4107
  const {
4101
4108
  appConfig: e
4102
- } = ie(), [t, r] = Ka(), a = ve({
4109
+ } = ie(), [t, r] = Fa(), a = ve({
4103
4110
  ...e,
4104
4111
  ...t
4105
4112
  });
@@ -4111,20 +4118,20 @@ const Ca = () => ({
4111
4118
  }, t), {
4112
4119
  appConfig: a,
4113
4120
  setAppConfig: (u) => {
4114
- const l = Y(u) ? u(a) : u;
4121
+ const l = X(u) ? u(a) : u;
4115
4122
  r(l);
4116
4123
  },
4117
4124
  delAppConfig: () => {
4118
4125
  r(void 0);
4119
4126
  }
4120
4127
  };
4121
- }, Fa = () => ({
4128
+ }, Ra = () => ({
4122
4129
  columns: {
4123
4130
  type: Array
4124
4131
  }
4125
- }), Lo = N({
4132
+ }), $o = k({
4126
4133
  props: {
4127
- ...Fa()
4134
+ ...Ra()
4128
4135
  },
4129
4136
  setup: (e, {
4130
4137
  slots: t,
@@ -4140,13 +4147,13 @@ const Ca = () => ({
4140
4147
  r("cancel");
4141
4148
  };
4142
4149
  Me(() => {
4143
- o((b) => ({
4144
- ...b,
4150
+ o((S) => ({
4151
+ ...S,
4145
4152
  ...u
4146
4153
  }));
4147
4154
  }, u);
4148
- const c = (b) => {
4149
- u.layout = b, l();
4155
+ const c = (S) => {
4156
+ u.layout = S, l();
4150
4157
  }, i = [
4151
4158
  {
4152
4159
  title: "\u5E03\u5C40\u5207\u6362",
@@ -4249,42 +4256,42 @@ const Ca = () => ({
4249
4256
  }, {
4250
4257
  key: "horizontal-v",
4251
4258
  child: ["left"]
4252
- }], m = I(() => R(e.columns || i, (b) => b.valueType === "title" ? {
4253
- ...ne(b, "dataIndex"),
4259
+ }], m = x(() => L(e.columns || i, (S) => S.valueType === "title" ? {
4260
+ ...ne(S, "dataIndex"),
4254
4261
  formItemProps: {
4255
4262
  class: "pro-app-config_form_title"
4256
4263
  },
4257
- inputRender: () => b.title
4258
- } : b.valueType === "layout" ? {
4259
- ...ne(b, "dataIndex"),
4264
+ inputRender: () => S.title
4265
+ } : S.valueType === "layout" ? {
4266
+ ...ne(S, "dataIndex"),
4260
4267
  inputRender: () => s("div", {
4261
4268
  class: "pro-app-config_form_layout"
4262
- }, [R(f, (E) => {
4263
- const h = a.layout === E.key;
4269
+ }, [L(f, (w) => {
4270
+ const h = a.layout === w.key;
4264
4271
  return s("div", {
4265
4272
  class: h ? "selected" : void 0,
4266
- onClick: () => c(E.key)
4267
- }, [R(E.child, (M) => s("div", {
4268
- class: M
4273
+ onClick: () => c(w.key)
4274
+ }, [L(w.child, (C) => s("div", {
4275
+ class: C
4269
4276
  }, null))]);
4270
4277
  })])
4271
- } : b)), d = () => {
4278
+ } : S)), d = () => {
4272
4279
  n(), l();
4273
- }, g = te(), C = g(z.DrawerKey), v = g(z.ProFormKey);
4274
- return () => s(C, {
4280
+ }, g = te(), P = g(z.DrawerKey), v = g(z.ProFormKey);
4281
+ return () => s(P, {
4275
4282
  title: "\u8BBE\u7F6E",
4276
4283
  size: "260px",
4277
4284
  footer: !1
4278
4285
  }, {
4279
4286
  default: () => {
4280
- var b;
4287
+ var S;
4281
4288
  return [s(v, {
4282
4289
  class: "pro-app-config_form",
4283
4290
  model: u,
4284
4291
  columns: m.value
4285
- }, null), (b = t.default) == null ? void 0 : b.call(t), s("div", {
4292
+ }, null), (S = t.default) == null ? void 0 : S.call(t), s("div", {
4286
4293
  class: "pro-app-config_btm"
4287
- }, [s(qn("pro-button"), {
4294
+ }, [s(Un("pro-button"), {
4288
4295
  type: "primary",
4289
4296
  onClick: d
4290
4297
  }, {
@@ -4293,16 +4300,16 @@ const Ca = () => ({
4293
4300
  }
4294
4301
  });
4295
4302
  }
4296
- }), Ra = (e, t) => dn(t / 10, "#000000", e), La = (e, t) => dn(t / 10, "#ffffff", e), $a = (e, t) => {
4297
- var o, n, u, l, c, i, f, m, d, g, C, v;
4298
- const r = [1, 2, 3, 4, 5, 6, 7, 8, 9], a = (b) => ({
4299
- base: b,
4300
- light: ce(r, (E, h) => ({
4301
- ...E,
4302
- [String(h)]: La(b, h)
4303
+ }), La = (e, t) => dn(t / 10, "#000000", e), $a = (e, t) => dn(t / 10, "#ffffff", e), ja = (e, t) => {
4304
+ var o, n, u, l, c, i, f, m, d, g, P, v;
4305
+ const r = [1, 2, 3, 4, 5, 6, 7, 8, 9], a = (S) => ({
4306
+ base: S,
4307
+ light: ce(r, (w, h) => ({
4308
+ ...w,
4309
+ [String(h)]: $a(S, h)
4303
4310
  }), {}),
4304
4311
  dark: {
4305
- 2: Ra(b, 2)
4312
+ 2: La(S, 2)
4306
4313
  }
4307
4314
  });
4308
4315
  return {
@@ -4312,7 +4319,7 @@ const Ca = () => ({
4312
4319
  warning: a(((c = e == null ? void 0 : e.color) == null ? void 0 : c.warning) || ((i = t == null ? void 0 : t.color) == null ? void 0 : i.warning)),
4313
4320
  danger: a(((f = e == null ? void 0 : e.color) == null ? void 0 : f.danger) || ((m = t == null ? void 0 : t.color) == null ? void 0 : m.danger)),
4314
4321
  error: a(((d = e == null ? void 0 : e.color) == null ? void 0 : d.error) || ((g = t == null ? void 0 : t.color) == null ? void 0 : g.error)),
4315
- info: a(((C = e == null ? void 0 : e.color) == null ? void 0 : C.info) || ((v = t == null ? void 0 : t.color) == null ? void 0 : v.info)),
4322
+ info: a(((P = e == null ? void 0 : e.color) == null ? void 0 : P.info) || ((v = t == null ? void 0 : t.color) == null ? void 0 : v.info)),
4316
4323
  ...t == null ? void 0 : t.extraColor
4317
4324
  },
4318
4325
  radius: {
@@ -4334,9 +4341,9 @@ const Ca = () => ({
4334
4341
  md: 1.5714285714285714,
4335
4342
  sm: 1.6666666666666667
4336
4343
  },
4337
- spacing: ce(r, (b, E) => ({
4338
- ...b,
4339
- [String(E)]: E * (t == null ? void 0 : t.spacing) + "px"
4344
+ spacing: ce(r, (S, w) => ({
4345
+ ...S,
4346
+ [String(w)]: w * (t == null ? void 0 : t.spacing) + "px"
4340
4347
  }), {}),
4341
4348
  shadow: {
4342
4349
  base: "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",
@@ -4346,7 +4353,7 @@ const Ca = () => ({
4346
4353
  inner: "inset 0 2px 4px 0 rgb(0 0 0 / 0.05)"
4347
4354
  }
4348
4355
  };
4349
- }, ja = () => ({
4356
+ }, Ba = () => ({
4350
4357
  theme: {
4351
4358
  type: Object
4352
4359
  },
@@ -4369,23 +4376,23 @@ const Ca = () => ({
4369
4376
  },
4370
4377
  darkThemeToken: {
4371
4378
  type: Object,
4372
- default: gr
4379
+ default: pr
4373
4380
  }
4374
- }), $o = N({
4381
+ }), jo = k({
4375
4382
  props: {
4376
- ...ja()
4383
+ ...Ba()
4377
4384
  },
4378
4385
  setup: (e, {
4379
4386
  slots: t
4380
4387
  }) => {
4381
4388
  const {
4382
4389
  appConfig: r
4383
- } = $n(), [a, o] = tt(), n = I(() => e.mode ? e.mode : r.isDark ? "dark" : "light"), u = () => {
4390
+ } = $n(), [a, o] = et(), n = x(() => e.mode ? e.mode : r.isDark ? "dark" : "light"), u = () => {
4384
4391
  var d;
4385
4392
  if (e.theme)
4386
4393
  return e.theme;
4387
4394
  const m = e.themeToken;
4388
- return $a({
4395
+ return ja({
4389
4396
  ...m,
4390
4397
  color: {
4391
4398
  ...m == null ? void 0 : m.color,
@@ -4407,14 +4414,14 @@ const Ca = () => ({
4407
4414
  }), Se(fn, {
4408
4415
  theme: l
4409
4416
  });
4410
- const c = I(() => e.createCssVar ? e.createCssVar(l, n.value) : {}), i = I(() => n.value === "dark" ? {
4417
+ const c = x(() => e.createCssVar ? e.createCssVar(l, n.value) : {}), i = x(() => n.value === "dark" ? {
4411
4418
  "html.dark": c.value
4412
4419
  } : {
4413
4420
  ":root": c.value
4414
- }), f = I(() => et(R(c.value, (m, d) => `${d}:${m}`), ";"));
4421
+ }), f = x(() => Ze(L(c.value, (m, d) => `${d}:${m}`), ";"));
4415
4422
  return () => {
4416
4423
  var m, d;
4417
- return e.global ? s(fe, null, [e.createCssVar && s(hr, {
4424
+ return e.global ? s(fe, null, [e.createCssVar && s(gr, {
4418
4425
  key: a.value,
4419
4426
  styles: i.value
4420
4427
  }, null), (m = t.default) == null ? void 0 : m.call(t)]) : s("div", {
@@ -4426,131 +4433,131 @@ const Ca = () => ({
4426
4433
  });
4427
4434
  export {
4428
4435
  $t as AddButton,
4429
- pr as AppConfig,
4430
- Br as ColumnSetting,
4436
+ br as AppConfig,
4437
+ qr as ColumnSetting,
4431
4438
  q as CurdAction,
4432
- Ue as CurdAddAction,
4439
+ qe as CurdAddAction,
4433
4440
  Ce as CurdCurrentMode,
4434
4441
  Mt as CurdMethods,
4435
- _ as CurdSubAction,
4436
- gr as DarkThemeToken,
4442
+ W as CurdSubAction,
4443
+ pr as DarkThemeToken,
4437
4444
  z as ElementKeys,
4438
4445
  de as FormAction,
4439
- fo as FormRulePrefixMap,
4440
- ho as LogonUser,
4446
+ mo as FormRulePrefixMap,
4447
+ go as LogonUser,
4441
4448
  Cn as LogonUserKey,
4442
- Ge as ModalCurdOpe,
4443
- go as MustLogon,
4444
- ut as PageHeader,
4445
- po as PerSuffix,
4446
- bo as Permission,
4447
- Lo as ProAppConfigDrawer,
4448
- no as ProConfig,
4449
- Ze as ProCurd,
4450
- Na as ProCurdDesc,
4451
- Ko as ProCurdDescConnect,
4452
- at as ProCurdForm,
4453
- Do as ProCurdFormConnect,
4454
- Oa as ProCurdFormPage,
4449
+ _e as ModalCurdOpe,
4450
+ po as MustLogon,
4451
+ ot as PageHeader,
4452
+ bo as PerSuffix,
4453
+ So as Permission,
4454
+ $o as ProAppConfigDrawer,
4455
+ ro as ProConfig,
4456
+ Je as ProCurd,
4457
+ Aa as ProCurdDesc,
4458
+ Fo as ProCurdDescConnect,
4459
+ rt as ProCurdForm,
4460
+ Ko as ProCurdFormConnect,
4461
+ Da as ProCurdFormPage,
4455
4462
  Rn as ProCurdList,
4456
- xa as ProCurdListConnect,
4457
- Ea as ProCurdListPage,
4458
- wa as ProCurdListPageConnect,
4463
+ Ea as ProCurdListConnect,
4464
+ wa as ProCurdListPage,
4465
+ Ta as ProCurdListPageConnect,
4459
4466
  Ln as ProCurdModal,
4460
- Fo as ProCurdModalForm,
4461
- Aa as ProCurdModalFormConnect,
4462
- Ro as ProCurdModule,
4467
+ Ro as ProCurdModalForm,
4468
+ Oa as ProCurdModalFormConnect,
4469
+ Lo as ProCurdModule,
4463
4470
  Ut as ProCurdPage,
4464
- Da as ProCurdPageConnect,
4465
- ra as ProDesc,
4466
- io as ProForm,
4467
- so as ProFormList,
4471
+ Ka as ProCurdPageConnect,
4472
+ aa as ProDesc,
4473
+ fo as ProForm,
4474
+ io as ProFormList,
4468
4475
  Ae as ProGrid,
4469
- Po as ProLayout,
4476
+ Co as ProLayout,
4470
4477
  En as ProLayoutKey,
4471
- na as ProList,
4472
- Ao as ProModalCurd,
4473
- _e as ProModule,
4478
+ ra as ProList,
4479
+ Oo as ProModalCurd,
4480
+ We as ProModule,
4474
4481
  bt as ProOperate,
4475
4482
  wn as ProPage,
4476
- Oo as ProPageCurd,
4477
- zr as ProRouterView,
4478
- mo as ProSearchForm,
4479
- Eo as ProShowDate,
4480
- Mo as ProShowDigit,
4481
- Io as ProShowOptions,
4482
- rt as ProShowText,
4483
- xo as ProShowTree,
4484
- So as ProTable,
4485
- $o as ProTheme,
4486
- Or as ProTip,
4487
- ua as ProTypography,
4488
- To as ProUploadList,
4489
- wo as ProUploaderText,
4490
- Co as ProValue,
4491
- Gr as ProWatermark,
4483
+ Do as ProPageCurd,
4484
+ Hr as ProRouterView,
4485
+ yo as ProSearchForm,
4486
+ wo as ProShowDate,
4487
+ Io as ProShowDigit,
4488
+ xo as ProShowOptions,
4489
+ nt as ProShowText,
4490
+ Eo as ProShowTree,
4491
+ Po as ProTable,
4492
+ jo as ProTheme,
4493
+ Dr as ProTip,
4494
+ la as ProTypography,
4495
+ ko as ProUploadList,
4496
+ To as ProUploaderText,
4497
+ Mo as ProValue,
4498
+ Xr as ProWatermark,
4492
4499
  je as RequestAction,
4493
- la as RouterMethods,
4494
- Qe as SearchMode,
4500
+ ca as RouterMethods,
4501
+ Ye as SearchMode,
4495
4502
  fn as ThemeKey,
4496
4503
  gt as ThemeToken,
4497
- pa as Wrapper,
4504
+ ba as Wrapper,
4498
4505
  vn as convertPathToList,
4499
- Cr as convertResData,
4506
+ Mr as convertResData,
4500
4507
  xe as createExpose,
4501
- co as createExposeObj,
4502
- yo as createFormItemCompFn,
4503
- No as createModule,
4504
- ro as createProConfig,
4505
- $a as createTheme,
4506
- ea as defaultPage,
4508
+ so as createExposeObj,
4509
+ vo as createFormItemCompFn,
4510
+ Ao as createModule,
4511
+ ao as createProConfig,
4512
+ ja as createTheme,
4513
+ ta as defaultPage,
4507
4514
  ge as filterSlotsByPrefix,
4508
4515
  pe as getColumnFormItemName,
4509
4516
  Nn as getColumnValueType,
4510
- ga as getFirstPropName,
4511
- va as getRealRender,
4512
- wr as getSignValue,
4513
- Er as getValidValues,
4514
- ha as isValidConfig,
4515
- Be as isValidNode,
4516
- nt as mergeState,
4517
- lo as mergeStateToList,
4517
+ pa as getFirstPropName,
4518
+ ha as getRealRender,
4519
+ Tr as getSignValue,
4520
+ wr as getValidValues,
4521
+ ga as isValidConfig,
4522
+ ct as isValidNode,
4523
+ tt as mergeState,
4524
+ co as mergeStateToList,
4518
4525
  we as proBaseProps,
4519
- Pa as provideProCurd,
4526
+ Ca as provideProCurd,
4520
4527
  pn as provideProFormList,
4521
- ma as provideProModule,
4528
+ ya as provideProModule,
4522
4529
  Pt as renderColumn,
4523
- qe as renderElement,
4530
+ Be as renderElement,
4524
4531
  Ct as renderElements,
4525
4532
  An as renderInputColumn,
4526
4533
  Tn as showValue,
4527
- Dr as useAccess,
4528
- vo as useAccessMgr,
4534
+ Kr as useAccess,
4535
+ ho as useAccessMgr,
4529
4536
  $n as useAppConfig,
4530
- Pr as useComposeRequestActor,
4537
+ Cr as useComposeRequestActor,
4531
4538
  Fn as useCurdCommon,
4532
- fa as useDispatchStore,
4533
- ao as useDoneRequestActor,
4534
- oo as useFailedRequestActor,
4535
- kr as useFormSubmit,
4539
+ ma as useDispatchStore,
4540
+ oo as useDoneRequestActor,
4541
+ uo as useFailedRequestActor,
4542
+ Nr as useFormSubmit,
4536
4543
  te as useGetCompByKey,
4537
4544
  Mn as useHasPer,
4538
4545
  In as useHasPer2,
4539
- Kr as useLogonUser,
4540
- uo as useMeta,
4541
- Mr as useMetaRegister,
4546
+ Fr as useLogonUser,
4547
+ lo as useMeta,
4548
+ Ir as useMetaRegister,
4542
4549
  St as useModuleEvent,
4543
4550
  ie as useProConfig,
4544
4551
  ue as useProCurd,
4545
4552
  Sn as useProForm,
4546
4553
  gn as useProFormList,
4547
4554
  Te as useProLayout,
4548
- eo as useProModal,
4555
+ to as useProModal,
4549
4556
  Ee as useProModule,
4550
- Za as useProMsg,
4551
- to as useProNotify,
4557
+ eo as useProMsg,
4558
+ no as useProNotify,
4552
4559
  Pe as useProRouter,
4553
- qr as useProTable,
4554
- ko as useReadStore,
4555
- Ja as useTheme
4560
+ Ur as useProTable,
4561
+ No as useReadStore,
4562
+ Za as useTheme
4556
4563
  };