@vue-start/pro 0.5.49 → 0.5.51

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