@vue-start/pro 0.5.41 → 0.5.43

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,15 +1,15 @@
1
- import { defineComponent as K, provide as me, inject as ye, reactive as be, createVNode as d, Fragment as le, computed as N, h as Ee, isVNode as Te, mergeProps as R, ref as z, createTextVNode as Fe, toRef as Pn, Teleport as Cn, KeepAlive as Mn } from "vue";
2
- import { reduce as re, get as g, map as $, isString as se, forEach as ne, size as Y, endsWith as At, set as ie, isArray as J, pick as Z, add as En, subtract as Tn, isFunction as W, filter as _, has as Je, keys as Q, isObject as xe, omit as D, some as he, isNumber as Ze, head as xn, split as In, isEmpty as Dt, mergeWith as Nn, startsWith as wn, mapKeys as On, debounce as Rt, clone as Kn, isBoolean as Ie, sortBy as $t, every as An, join as et, find as _e, findIndex as Dn, findLast as Rn, cloneDeep as Ft } from "lodash";
3
- import { filter as Le, tap as je, merge as $n, Subject as Fn } from "rxjs";
4
- import { map as Ln, tap as jn } from "rxjs/operators";
5
- import { mergeStateToData as kn, mergeStateToData2 as Un, useEffect as ae, findFirstValidMenu as Lt, setReactiveValue as jt, restorePath as kt, isValidPath as Ut, isPathHasParent as qt, useUpdateKey as tt, useRuleState as He, convertCollection as Bt, useWatch as nt, useState as ht, signTableMerge as qn, useResizeObserver as Re, decimalFixed as Bn, thousandDivision as Vn, listToMap as zn, treeToMap as Vt, jsonToStr as ke, filterCollection as Hn, getMenuTopNameMap as bt, findTreeItem as gt, strToJson as rt, useSafeActivated as Wn } from "@vue-start/hooks";
6
- import { useRequestProvide as Ke, isDoneRequestActor as zt, isFailedRequestActor as Ht } from "@vue-start/request";
7
- import { useDispatchStore as Wt, useStore as Gt, useObservableRef as Gn, useStoreConn as Xn, shallowEqual as _n, createStateUse as Yn } from "@vue-start/store";
8
- import { parseQuery as pt, stringifyQuery as Qn, useRouter as at, useRoute as ot, RouterView as Jn } from "vue-router";
9
- import { css as St } from "@emotion/css";
10
- import Pt from "dayjs";
1
+ import { defineComponent as D, provide as me, inject as ye, reactive as be, createVNode as i, Fragment as le, computed as I, h as Te, isVNode as xe, mergeProps as R, ref as H, createTextVNode as Le, toRef as Pn, KeepAlive as Cn, Teleport as Mn } from "vue";
2
+ import { reduce as re, get as g, map as $, isString as se, forEach as ne, size as _, endsWith as Dt, set as ie, isArray as Q, pick as J, add as En, subtract as Tn, isFunction as W, filter as X, has as Ze, keys as Y, isObject as Ie, omit as F, some as he, isNumber as et, head as xn, split as In, isEmpty as Ft, mergeWith as wn, startsWith as Nn, mapKeys as On, debounce as Rt, clone as Kn, isBoolean as we, sortBy as $t, every as An, join as tt, find as Ye, findIndex as Dn, findLast as Fn, cloneDeep as Lt } from "lodash";
3
+ import { filter as ke, tap as je, merge as Rn, Subject as $n } from "rxjs";
4
+ import { map as Ln, tap as kn } from "rxjs/operators";
5
+ import { mergeStateToData as jn, mergeStateToData2 as Bn, useEffect as ae, findFirstValidMenu as kt, setReactiveValue as jt, restorePath as Bt, isValidPath as Ut, isPathHasParent as qt, useUpdateKey as nt, useRuleState as We, convertCollection as Vt, useWatch as rt, useState as bt, signTableMerge as Un, useResizeObserver as Re, decimalFixed as qn, thousandDivision as Vn, listToMap as zn, treeToMap as zt, jsonToStr as Be, filterCollection as Hn, getMenuTopNameMap as gt, findTreeItem as St, strToJson as at, useSafeActivated as Wn } from "@vue-start/hooks";
6
+ import { useRequestProvide as Ae, isDoneRequestActor as Ht, isFailedRequestActor as Wt } from "@vue-start/request";
7
+ import { useDispatchStore as Gt, useStore as Xt, useObservableRef as Gn, useStoreConn as Xn, shallowEqual as _n, createStateUse as Yn } from "@vue-start/store";
8
+ import { parseQuery as pt, stringifyQuery as Qn, useRouter as ot, useRoute as ut, RouterView as Jn } from "vue-router";
9
+ import { css as Pt } from "@emotion/css";
10
+ import Ct from "dayjs";
11
11
  import { Global as Zn } from "@vue-start/css";
12
- import { mix as Xt } from "polished";
12
+ import { mix as _t } from "polished";
13
13
  const er = () => ({
14
14
  elementMap: { type: Object },
15
15
  formElementMap: { type: Object },
@@ -17,9 +17,9 @@ const er = () => ({
17
17
  convertColumn: { type: Function },
18
18
  columnState: { type: Object },
19
19
  columnState2: { type: Object }
20
- }), pe = er(), Be = (e, t, a) => {
21
- let o = e;
22
- return t && (o = kn(o, t, (n) => de(n))), a && (o = Un(o, a, (n) => de(n))), o;
20
+ }), Se = er(), Ve = (e, t, a) => {
21
+ let u = e;
22
+ return t && (u = jn(u, t, (n) => de(n))), a && (u = Bn(u, a, (n) => de(n))), u;
23
23
  }, tr = () => ({
24
24
  elementMap: { type: Object },
25
25
  formElementMap: { type: Object },
@@ -32,35 +32,35 @@ const er = () => ({
32
32
  showMsg: { type: Function },
33
33
  showModal: { type: Function },
34
34
  showNotify: { type: Function }
35
- }), ut = Symbol("pro-config"), oe = () => ye(ut) || {}, Pa = () => {
35
+ }), lt = Symbol("pro-config"), oe = () => ye(lt) || {}, Ca = () => {
36
36
  const { showMsg: e } = oe();
37
37
  return (t) => e(t);
38
- }, Ca = () => {
38
+ }, Ma = () => {
39
39
  const { showModal: e } = oe();
40
40
  return (t) => e(t);
41
- }, Ma = () => {
41
+ }, Ea = () => {
42
42
  const { showNotify: e } = oe();
43
43
  return (t) => e(t);
44
- }, Ea = K({
44
+ }, Ta = D({
45
45
  props: {
46
46
  ...tr()
47
47
  },
48
48
  setup: (e, { slots: t }) => {
49
- const a = re(e.registerStores, (l, s) => ({ ...l, [s.key]: s }), {}), o = re(e.registerActors, (l, s) => ({ ...l, [s.actor.name]: s }), {}), n = re(e.registerMetas, (l, s) => ({ ...l, [s.actorName]: s }), {});
50
- ar(n, o);
51
- const { dispatchRequest: r } = Ke(), u = (l, s, f) => {
52
- const h = g(o, l);
53
- if (!!h)
54
- return r(h.actor, s, f);
49
+ const a = re(e.registerStores, (l, s) => ({ ...l, [s.key]: s }), {}), u = re(e.registerActors, (l, s) => ({ ...l, [s.actor.name]: s }), {}), n = re(e.registerMetas, (l, s) => ({ ...l, [s.actorName]: s }), {});
50
+ ar(n, u);
51
+ const { dispatchRequest: r } = Ae(), o = (l, s, d) => {
52
+ const S = g(u, l);
53
+ if (!!S)
54
+ return r(S.actor, s, d);
55
55
  };
56
- return me(ut, {
56
+ return me(lt, {
57
57
  elementMap: e.elementMap,
58
58
  formElementMap: e.formElementMap,
59
59
  formExtraMap: e.formExtraMap,
60
60
  registerStoreMap: a,
61
- registerActorMap: o,
61
+ registerActorMap: u,
62
62
  registerMetaMap: n,
63
- dispatchRequest: u,
63
+ dispatchRequest: o,
64
64
  convertRouter: e.convertRouter,
65
65
  showMsg: e.showMsg,
66
66
  showModal: e.showModal,
@@ -70,73 +70,73 @@ const er = () => ({
70
70
  return (l = t.default) == null ? void 0 : l.call(t);
71
71
  };
72
72
  }
73
- }), Ta = (e = {}) => (t) => {
74
- t.provide(ut, e);
75
- }, _t = (e) => (t, a) => {
76
- const { requestSubject$: o } = Ke(), n = new Set($(t, (r) => se(r) ? r : r.name));
73
+ }), xa = (e = {}) => (t) => {
74
+ t.provide(lt, e);
75
+ }, Yt = (e) => (t, a) => {
76
+ const { requestSubject$: u } = Ae(), n = new Set($(t, (r) => se(r) ? r : r.name));
77
77
  ae(() => {
78
- const r = o.pipe(
79
- Le(e),
80
- je((u) => {
81
- n.has(u.name) && a(u);
78
+ const r = u.pipe(
79
+ ke(e),
80
+ je((o) => {
81
+ n.has(o.name) && a(o);
82
82
  })
83
83
  ).subscribe();
84
84
  return () => {
85
85
  r.unsubscribe();
86
86
  };
87
87
  }, []);
88
- }, xa = _t(zt), Ia = _t(Ht), nr = (e, t, a) => {
89
- const { requestSubject$: o, dispatchRequest: n } = Ke(), r = new Set($(e, (l) => se(l) ? l : l.name)), u = {};
88
+ }, Ia = Yt(Ht), wa = Yt(Wt), nr = (e, t, a) => {
89
+ const { requestSubject$: u, dispatchRequest: n } = Ae(), r = new Set($(e, (l) => se(l) ? l : l.name)), o = {};
90
90
  ae(() => {
91
- const l = $n(
92
- o.pipe(
93
- Le(zt),
91
+ const l = Rn(
92
+ u.pipe(
93
+ ke(Ht),
94
94
  je((s) => {
95
- var f, h;
96
- r.has(s.name) && ((f = t.onSuccess) == null || f.call(t, s), (h = t.onFinish) == null || h.call(t, s), u[s.name] = void 0);
95
+ var d, S;
96
+ r.has(s.name) && ((d = t.onSuccess) == null || d.call(t, s), (S = t.onFinish) == null || S.call(t, s), o[s.name] = void 0);
97
97
  })
98
98
  ),
99
- o.pipe(
100
- Le(Ht),
99
+ u.pipe(
100
+ ke(Wt),
101
101
  je((s) => {
102
- var f, h;
103
- r.has(s.name) && ((f = t.onFailed) == null || f.call(t, s), (h = t.onFinish) == null || h.call(t, s), u[s.name] = void 0);
102
+ var d, S;
103
+ r.has(s.name) && ((d = t.onFailed) == null || d.call(t, s), (S = t.onFinish) == null || S.call(t, s), o[s.name] = void 0);
104
104
  })
105
105
  )
106
106
  ).subscribe();
107
107
  return () => {
108
- l.unsubscribe(), a && ne(u, (s) => {
108
+ l.unsubscribe(), a && ne(o, (s) => {
109
109
  s && n({ ...s, stage: "CANCEL" });
110
110
  });
111
111
  };
112
112
  }, []);
113
113
  }, rr = (e, t, a) => {
114
114
  var n;
115
- const o = (n = e.res) == null ? void 0 : n.data;
116
- return t ? t(o, e) : a ? g(o, a) : o;
115
+ const u = (n = e.res) == null ? void 0 : n.data;
116
+ return t ? t(u, e) : a ? g(u, a) : u;
117
117
  }, Na = () => {
118
- const e = Gt(), { registerMetaMap: t, dispatchRequest: a } = oe();
119
- return (o) => {
120
- const n = g(t, o);
118
+ const e = Xt(), { registerMetaMap: t, dispatchRequest: a } = oe();
119
+ return (u) => {
120
+ const n = g(t, u);
121
121
  if (!n)
122
122
  return;
123
- const r = n.storeName || o;
124
- g(e.value, r) || a(o, n.initParams || {});
123
+ const r = n.storeName || u;
124
+ g(e.value, r) || a(u, n.initParams || {});
125
125
  };
126
126
  }, ar = (e, t) => {
127
- const { requestSubject$: a } = Ke(), o = Wt(), n = (r) => {
128
- const u = g(e, r.name), l = g(t, r.name);
129
- return !!(u && l && l.actor);
127
+ const { requestSubject$: a } = Ae(), u = Gt(), n = (r) => {
128
+ const o = g(e, r.name), l = g(t, r.name);
129
+ return !!(o && l && l.actor);
130
130
  };
131
131
  ae(() => {
132
132
  const r = a.pipe(
133
- Le(n),
134
- je((u) => {
135
- const l = g(e, u.name);
133
+ ke(n),
134
+ je((o) => {
135
+ const l = g(e, o.name);
136
136
  if (!l)
137
137
  return;
138
- const s = l.storeName || u.name, f = rr(u, l.convertData, l.convertPath);
139
- o(s, f, !1, void 0);
138
+ const s = l.storeName || o.name, d = rr(o, l.convertData, l.convertPath);
139
+ u(s, d, !1, void 0);
140
140
  })
141
141
  ).subscribe();
142
142
  return () => {
@@ -150,91 +150,91 @@ const er = () => ({
150
150
  if (!e)
151
151
  return null;
152
152
  try {
153
- const u = new URL(e);
153
+ const o = new URL(e);
154
154
  return {
155
- protocol: u.protocol,
156
- path: u.pathname,
157
- origin: u.origin,
158
- query: pt(u.search),
159
- url: u.origin + u.pathname
155
+ protocol: o.protocol,
156
+ path: o.pathname,
157
+ origin: o.origin,
158
+ query: pt(o.search),
159
+ url: o.origin + o.pathname
160
160
  };
161
161
  } catch {
162
162
  }
163
163
  const t = e.indexOf("//") > -1 ? (r = e.split("//")) == null ? void 0 : r[0] : "";
164
- let a = "", o = "";
165
- e.indexOf("?") >= -1 && (a = e.substring(0, e.indexOf("?")), o = e.substring(e.indexOf("?")));
166
- const n = o ? pt(o) : {};
164
+ let a = "", u = "";
165
+ e.indexOf("?") >= -1 && (a = e.substring(0, e.indexOf("?")), u = e.substring(e.indexOf("?")));
166
+ const n = u ? pt(u) : {};
167
167
  return { protocol: t, query: n, url: a };
168
168
  },
169
169
  stringifyUrl: ({ url: e, query: t }) => {
170
170
  const a = Qn(t);
171
171
  return `${e}${a ? "?" : ""}${a || ""}`;
172
172
  }
173
- }, Ve = () => {
174
- const { convertRouter: e } = oe(), t = at(), a = ot(), n = { ...t, openMenu: (u) => {
175
- if (!!u) {
176
- if (Y(u.children) > 0) {
177
- const l = Lt(u.children, (s) => !s.children || Y(s.children) <= 0);
173
+ }, ze = () => {
174
+ const { convertRouter: e } = oe(), t = ot(), a = ut(), n = { ...t, openMenu: (o) => {
175
+ if (!!o) {
176
+ if (_(o.children) > 0) {
177
+ const l = kt(o.children, (s) => !s.children || _(s.children) <= 0);
178
178
  if (l) {
179
179
  t.push({ name: l.value });
180
180
  return;
181
181
  }
182
182
  }
183
- t.push({ name: u.value });
183
+ t.push({ name: o.value });
184
184
  }
185
185
  }, ...or };
186
186
  return { router: e ? e(n) : n, route: a };
187
187
  }, ur = (e) => {
188
- if (!J(e) || Y(e) <= 0)
188
+ if (!Q(e) || _(e) <= 0)
189
189
  return !1;
190
190
  const t = e[0];
191
- return se(t) ? At(t, "$") : !1;
192
- }, lr = (e) => typeof e != "object" || !e.type$ ? !1 : e.type$ === "data$" && e.type$, cr = (e) => typeof e != "object" || !e.type$ ? !1 : e.type$ === "obj", sr = { get: g, pick: Z, add: En, subtract: Tn }, Ue = (e, t) => {
191
+ return se(t) ? Dt(t, "$") : !1;
192
+ }, lr = (e) => typeof e != "object" || !e.type$ ? !1 : e.type$ === "data$" && e.type$, cr = (e) => typeof e != "object" || !e.type$ ? !1 : e.type$ === "obj", sr = { get: g, pick: J, add: En, subtract: Tn }, Ue = (e, t) => {
193
193
  if (lr(e)) {
194
194
  const a = g(t, e.name$);
195
195
  return e.namePath$ ? g(a, e.namePath$) : a;
196
196
  } else if (cr(e)) {
197
197
  const a = {};
198
- return ne(e, (o, n) => {
198
+ return ne(e, (u, n) => {
199
199
  if (n !== "type$")
200
- if (At(n, "$")) {
201
- const r = Ue(o, t);
200
+ if (Dt(n, "$")) {
201
+ const r = Ue(u, t);
202
202
  ie(a, n.replace("$", ""), r);
203
203
  } else
204
- a[n] = o;
204
+ a[n] = u;
205
205
  }), a;
206
206
  } else if (ur(e)) {
207
- const [a, ...o] = e, n = t.expressionMethods || sr, r = g(n, a.replace("$", ""));
207
+ const [a, ...u] = e, n = t.expressionMethods || sr, r = g(n, a.replace("$", ""));
208
208
  if (!r) {
209
209
  console.log("ex", "\u672A\u627E\u5230\u5BF9\u5E94\u7684\u65B9\u6CD5", e);
210
210
  return;
211
211
  }
212
- const u = $(o, (l) => Ue(l, t));
213
- return r(...u);
212
+ const o = $(u, (l) => Ue(l, t));
213
+ return r(...o);
214
214
  }
215
215
  return e;
216
216
  }, ir = () => {
217
- const e = Wt(), { registerStoreMap: t } = oe();
218
- return (a, o) => {
217
+ const e = Gt(), { registerStoreMap: t } = oe();
218
+ return (a, u) => {
219
219
  const n = g(t, a);
220
- !n || e(a, o, !!n.persist, n.initialState);
220
+ !n || e(a, u, !!n.persist, n.initialState);
221
221
  };
222
- }, wa = (e) => {
223
- const { registerStoreMap: t } = oe(), a = g(t, e), o = `${a != null && a.persist ? "$" : ""}${a == null ? void 0 : a.key}`;
222
+ }, Oa = (e) => {
223
+ const { registerStoreMap: t } = oe(), a = g(t, e), u = `${a != null && a.persist ? "$" : ""}${a == null ? void 0 : a.key}`;
224
224
  return Gn(Xn((r) => {
225
- const u = g(r, o);
226
- return u || (W(a == null ? void 0 : a.initialState) ? a == null ? void 0 : a.initialState() : a == null ? void 0 : a.initialState);
225
+ const o = g(r, u);
226
+ return o || (W(a == null ? void 0 : a.initialState) ? a == null ? void 0 : a.initialState() : a == null ? void 0 : a.initialState);
227
227
  }));
228
- }, Yt = Symbol("pro-module"), Se = () => ye(Yt), dr = (e) => {
229
- me(Yt, e);
230
- }, lt = (e) => {
228
+ }, Qt = Symbol("pro-module"), pe = () => ye(Qt), dr = (e) => {
229
+ me(Qt, e);
230
+ }, ct = (e) => {
231
231
  const {
232
232
  subject$: t
233
- } = Se();
233
+ } = pe();
234
234
  ae(() => {
235
235
  const a = t.subscribe({
236
- next: (o) => {
237
- e(o);
236
+ next: (u) => {
237
+ e(u);
238
238
  }
239
239
  });
240
240
  return () => a.unsubscribe();
@@ -267,7 +267,7 @@ const er = () => ({
267
267
  requests: {
268
268
  type: Array
269
269
  }
270
- }), $e = K({
270
+ }), $e = D({
271
271
  props: {
272
272
  ...fr()
273
273
  },
@@ -275,41 +275,41 @@ const er = () => ({
275
275
  slots: t,
276
276
  expose: a
277
277
  }) => {
278
- const o = Gt(), {
278
+ const u = Xt(), {
279
279
  router: n
280
- } = Ve(), {
280
+ } = ze(), {
281
281
  elementMap: r,
282
- registerStoreMap: u,
282
+ registerStoreMap: o,
283
283
  expressionMethods: l
284
- } = oe(), s = e.elementMap || r, f = (c) => J(c) ? st(s, c) : we(s, c), h = new Fn(), p = (c) => {
285
- h.next(c);
286
- }, v = _(e.storeKeys, (c) => Je(u, c)), S = () => re(v, (c, y) => {
287
- const i = g(u, y);
284
+ } = oe(), s = e.elementMap || r, d = (c) => Q(c) ? it(s, c) : Oe(s, c), S = new $n(), P = (c) => {
285
+ S.next(c);
286
+ }, y = X(e.storeKeys, (c) => Ze(o, c)), p = () => re(y, (c, f) => {
287
+ const v = g(o, f);
288
288
  return {
289
289
  ...c,
290
- [y]: g(o.value, `${i.persist ? "$" : ""}${y}`) || g(u, [y, "initialState"])
290
+ [f]: g(u.value, `${v.persist ? "$" : ""}${f}`) || g(o, [f, "initialState"])
291
291
  };
292
- }, {}), P = S(), b = e.state || be({
293
- ...P,
292
+ }, {}), C = p(), h = e.state || be({
293
+ ...C,
294
294
  ...e.initState
295
- }), T = {}, w = (c) => {
296
- const y = b[c.type], i = W(c.payload) ? c.payload(y) : c.payload;
297
- if (!J(y) && xe(y)) {
298
- jt(b[c.type], i);
295
+ }), O = {}, w = (c) => {
296
+ const f = h[c.type], v = W(c.payload) ? c.payload(f) : c.payload;
297
+ if (!Q(f) && Ie(f)) {
298
+ jt(h[c.type], v);
299
299
  return;
300
300
  }
301
- b[c.type] = i;
301
+ h[c.type] = v;
302
302
  }, m = ir(), M = {
303
303
  dispatch: w,
304
304
  dispatchStore: m
305
305
  };
306
306
  ae(() => {
307
- const c = o.pipe(Ln(() => S()), jn((y) => {
308
- ne(y, (i, C) => {
309
- const F = g(b, C);
310
- _n(F, i) || w({
311
- type: C,
312
- payload: i
307
+ const c = u.pipe(Ln(() => p()), kn((f) => {
308
+ ne(f, (v, b) => {
309
+ const A = g(h, b);
310
+ _n(A, v) || w({
311
+ type: b,
312
+ payload: v
313
313
  });
314
314
  });
315
315
  })).subscribe();
@@ -318,246 +318,246 @@ const er = () => ({
318
318
  };
319
319
  }, []);
320
320
  const {
321
- dispatchRequest: x
322
- } = Ke(), O = (() => {
323
- const c = {}, y = re(e.actors || [], (i, C) => ({
324
- ...i,
325
- [C.name]: C
321
+ dispatchRequest: N
322
+ } = Ae(), K = (() => {
323
+ const c = {}, f = re(e.actors || [], (v, b) => ({
324
+ ...v,
325
+ [b.name]: b
326
326
  }), {});
327
- return ne(e.requests, (i) => {
328
- if (se(i.actor)) {
329
- const C = g(y, i.actor);
330
- if (!C)
327
+ return ne(e.requests, (v) => {
328
+ if (se(v.actor)) {
329
+ const b = g(f, v.actor);
330
+ if (!b)
331
331
  return;
332
- i.actor = C;
332
+ v.actor = b;
333
333
  }
334
- !i.actor || (c[i.actor.name] = i, i.action && (c[i.action] = i));
334
+ !v.actor || (c[v.actor.name] = v, v.action && (c[v.action] = v));
335
335
  }), c;
336
- })(), k = (c, ...y) => c.convertParams ? c.convertParams(...y) : c.convertParamsEx ? H(c.convertParamsEx, y) : g(y, 0), U = (c, y) => {
337
- var i;
338
- return c.convertData ? c.convertData(y) : c.convertDataEx ? H(c.convertDataEx, y) : (i = y.res) == null ? void 0 : i.data;
339
- }, q = (c, ...y) => {
340
- const i = g(O, c);
341
- if (!i)
336
+ })(), j = (c, ...f) => c.convertParams ? c.convertParams(...f) : c.convertParamsEx ? z(c.convertParamsEx, f) : g(f, 0), B = (c, f) => {
337
+ var v;
338
+ return c.convertData ? c.convertData(f) : c.convertDataEx ? z(c.convertDataEx, f) : (v = f.res) == null ? void 0 : v.data;
339
+ }, U = (c, ...f) => {
340
+ const v = g(K, c);
341
+ if (!v)
342
342
  return;
343
- const C = k(i, ...y);
344
- i.loadingName && w({
345
- type: i.loadingName,
343
+ const b = j(v, ...f);
344
+ v.loadingName && w({
345
+ type: v.loadingName,
346
346
  payload: !0
347
- }), x(i.actor, C);
347
+ }), N(v.actor, b);
348
348
  };
349
- nr(Q(O), {
349
+ nr(Y(K), {
350
350
  onSuccess: (c) => {
351
- var C;
352
- const y = g(O, c.name), i = U(y, c);
353
- y != null && y.stateName && w({
354
- type: y.stateName,
355
- payload: i
356
- }), p({
351
+ var b;
352
+ const f = g(K, c.name), v = B(f, c);
353
+ f != null && f.stateName && w({
354
+ type: f.stateName,
355
+ payload: v
356
+ }), P({
357
357
  type: Ne.Success,
358
358
  payload: {
359
359
  actor: c,
360
- requestOpts: y
360
+ requestOpts: f
361
361
  }
362
- }), (C = y.onSuccess) == null || C.call(y, c), y.onSuccessEx && G(y.onSuccessEx, [i]);
362
+ }), (b = f.onSuccess) == null || b.call(f, c), f.onSuccessEx && te(f.onSuccessEx, [v]);
363
363
  },
364
364
  onFailed: (c) => {
365
- var i;
366
- const y = g(O, c.name);
367
- p({
365
+ var v;
366
+ const f = g(K, c.name);
367
+ P({
368
368
  type: Ne.Fail,
369
369
  payload: {
370
370
  actor: c,
371
- requestOpts: y
371
+ requestOpts: f
372
372
  }
373
- }), (i = y.onFailed) == null || i.call(y, c), y.onFailedEx && G(y.onFailedEx, [c.err]);
373
+ }), (v = f.onFailed) == null || v.call(f, c), f.onFailedEx && te(f.onFailedEx, [c.err]);
374
374
  },
375
375
  onFinish: (c) => {
376
- const y = g(O, [c.name, "loadingName"]);
377
- y && w({
378
- type: y,
376
+ const f = g(K, [c.name, "loadingName"]);
377
+ f && w({
378
+ type: f,
379
379
  payload: !1
380
380
  });
381
381
  }
382
382
  }, !0);
383
- const H = (c, y) => Ue(c, {
384
- state: b,
385
- data: T,
386
- args: y,
383
+ const z = (c, f) => Ue(c, {
384
+ state: h,
385
+ data: O,
386
+ args: f,
387
387
  expressionMethods: l
388
- }), G = (c, y) => {
388
+ }), te = (c, f) => {
389
389
  if (!c)
390
390
  return;
391
- const i = {
392
- state: b,
393
- data: T,
394
- args: y,
391
+ const v = {
392
+ state: h,
393
+ data: O,
394
+ args: f,
395
395
  expressionMethods: l
396
396
  };
397
- ne(c, (C) => {
398
- if (!J(C) || Y(C) < 2) {
399
- console.log("execute invalid", C);
397
+ ne(c, (b) => {
398
+ if (!Q(b) || _(b) < 2) {
399
+ console.log("execute invalid", b);
400
400
  return;
401
401
  }
402
- const [F, A, ...X] = C;
403
- let I;
404
- switch (F) {
402
+ const [A, x, ...G] = b;
403
+ let T;
404
+ switch (A) {
405
405
  case "router":
406
- I = g(n, A);
406
+ T = g(n, x);
407
407
  break;
408
408
  case "state":
409
- I = g(M, A);
409
+ T = g(M, x);
410
410
  break;
411
411
  }
412
- if (I)
412
+ if (T)
413
413
  try {
414
- const j = $(X, (te) => Ue(te, i));
415
- I(...j);
416
- } catch (j) {
417
- console.log("execute err", j);
414
+ const L = $(G, (Z) => Ue(Z, v));
415
+ T(...L);
416
+ } catch (L) {
417
+ console.log("execute err", L);
418
418
  }
419
419
  });
420
420
  };
421
421
  return dr({
422
422
  elementMap: s,
423
- subject$: h,
424
- sendEvent: p,
425
- state: b,
423
+ subject$: S,
424
+ sendEvent: P,
425
+ state: h,
426
426
  dispatch: w,
427
- data: T,
427
+ data: O,
428
428
  requests: e.requests,
429
- sendRequest: q,
430
- executeExp: H,
431
- execute: G
429
+ sendRequest: U,
430
+ executeExp: z,
431
+ execute: te
432
432
  }), a({
433
- sendEvent: p,
434
- sendRequest: q
433
+ sendEvent: P,
434
+ sendRequest: U
435
435
  }), () => {
436
436
  var c;
437
- return d(le, null, [Y(e.elementConfigs) > 0 && f(e.elementConfigs), (c = t.default) == null ? void 0 : c.call(t)]);
437
+ return i(le, null, [_(e.elementConfigs) > 0 && d(e.elementConfigs), (c = t.default) == null ? void 0 : c.call(t)]);
438
438
  };
439
439
  }
440
- }), Ye = (e) => {
440
+ }), Qe = (e) => {
441
441
  var t, a;
442
442
  return !(!e || ((a = (t = e == null ? void 0 : e[0]) == null ? void 0 : t.type) == null ? void 0 : a.toString()) === "Symbol(Comment)");
443
- }, Qt = (e) => e.formValueType || e.valueType || "text", de = (e) => {
444
- var o, n;
445
- const t = (o = e.formItemProps) == null ? void 0 : o.name;
443
+ }, Jt = (e) => e.formValueType || e.valueType || "text", de = (e) => {
444
+ var u, n;
445
+ const t = (u = e.formItemProps) == null ? void 0 : u.name;
446
446
  return ((n = e.inputProps) == null ? void 0 : n.name) || t || e.dataIndex;
447
447
  }, mr = (e, t) => {
448
448
  let a = t;
449
449
  return se(t) && (a = g(e, t)), W(a) || (a = g(e, "render")), W(a) ? a : void 0;
450
- }, ct = (e, t, a, o) => {
451
- var h, p, v;
452
- const n = mr(t, o == null ? void 0 : o.render);
450
+ }, st = (e, t, a, u) => {
451
+ var S, P, y;
452
+ const n = mr(t, u == null ? void 0 : u.render);
453
453
  if (n)
454
454
  return n({
455
455
  ...a,
456
456
  column: t
457
457
  });
458
- const r = t.valueType || "text", u = g(e, r);
459
- if (!u)
458
+ const r = t.valueType || "text", o = g(e, r);
459
+ if (!o)
460
460
  return null;
461
- const l = ((h = t.props) == null ? void 0 : h.slots) || ((p = t.formFieldProps) == null ? void 0 : p.slots) || {}, s = a || {};
462
- u.props.showProps && (s.showProps = t.props ? (v = t.props) == null ? void 0 : v.showProps : t.showProps);
463
- const f = t.props ? {
464
- ...D(t.props, "slots"),
461
+ const l = ((S = t.props) == null ? void 0 : S.slots) || ((P = t.formFieldProps) == null ? void 0 : P.slots) || {}, s = a || {};
462
+ o.props.showProps && (s.showProps = t.props ? (y = t.props) == null ? void 0 : y.showProps : t.showProps);
463
+ const d = t.props ? {
464
+ ...F(t.props, "slots"),
465
465
  ...s
466
466
  } : {
467
- ...D(t.formFieldProps, "slots"),
467
+ ...F(t.formFieldProps, "slots"),
468
468
  ...s
469
469
  };
470
- return Ee(u, {
471
- ...f
470
+ return Te(o, {
471
+ ...d
472
472
  }, l);
473
- }, Jt = (e, t, a) => {
474
- var h, p;
475
- const o = Qt(a), n = g(t, o);
473
+ }, Zt = (e, t, a) => {
474
+ var S, P;
475
+ const u = Jt(a), n = g(t, u);
476
476
  if (!n)
477
477
  return null;
478
- const r = a.inputProps, u = ((h = r == null ? void 0 : r.fieldProps) == null ? void 0 : h.slots) || ((p = a.formFieldProps) == null ? void 0 : p.slots) || {};
479
- !u.renderInput && W(a.inputRender) && (u.renderInput = (v) => a.inputRender({
480
- ...v,
478
+ const r = a.inputProps, o = ((S = r == null ? void 0 : r.fieldProps) == null ? void 0 : S.slots) || ((P = a.formFieldProps) == null ? void 0 : P.slots) || {};
479
+ !o.renderInput && W(a.inputRender) && (o.renderInput = (y) => a.inputRender({
480
+ ...y,
481
481
  column: a
482
- })), u.renderShow || (u.renderShow = (v) => ct(e, a, {
483
- value: v.value
482
+ })), o.renderShow || (o.renderShow = (y) => st(e, a, {
483
+ value: y.value
484
484
  }, {
485
485
  render: "formReadRender"
486
- }) || v.value);
487
- const l = de(a), s = a.title, f = r ? {
486
+ }) || y.value);
487
+ const l = de(a), s = a.title, d = r ? {
488
488
  ...r,
489
- fieldProps: D(r.fieldProps, "slots")
489
+ fieldProps: F(r.fieldProps, "slots")
490
490
  } : {
491
491
  ...a.formItemProps,
492
- fieldProps: D(a.formFieldProps, "slots"),
492
+ fieldProps: F(a.formFieldProps, "slots"),
493
493
  showProps: a.showProps
494
494
  };
495
- return Ee(n, {
495
+ return Te(n, {
496
496
  key: l,
497
497
  name: l,
498
498
  label: s,
499
- ...f
500
- }, u);
501
- }, yr = (e) => e && !W(e) && e.elementType, st = (e, t) => $(t, (a) => we(e, a)), Zt = (e, t) => {
499
+ ...d
500
+ }, o);
501
+ }, yr = (e) => e && !W(e) && e.elementType, it = (e, t) => $(t, (a) => Oe(e, a)), en = (e, t) => {
502
502
  var r;
503
- const a = t.elementProps, o = {
503
+ const a = t.elementProps, u = {
504
504
  ...t.elementProps
505
505
  }, n = a == null ? void 0 : a.class;
506
- return n && (typeof n == "object" ? o.class = St(n) : se(n) && n.indexOf(":") > 0 && (o.class = St`
506
+ return n && (typeof n == "object" ? u.class = Pt(n) : se(n) && n.indexOf(":") > 0 && (u.class = Pt`
507
507
  ${n}
508
- `)), ne((r = t.highConfig$) == null ? void 0 : r.registerPropsTrans, (u) => {
509
- const l = g(a, u.name);
510
- if (!(!l || Te(l))) {
511
- if (J(l)) {
512
- if (he(l, (s) => Te(s)))
508
+ `)), ne((r = t.highConfig$) == null ? void 0 : r.registerPropsTrans, (o) => {
509
+ const l = g(a, o.name);
510
+ if (!(!l || xe(l))) {
511
+ if (Q(l)) {
512
+ if (he(l, (s) => xe(s)))
513
513
  return;
514
- ie(o, u.name, st(e, l));
514
+ ie(u, o.name, it(e, l));
515
515
  return;
516
516
  }
517
- !l.elementType || (u.isFun ? ie(o, u.name, (...s) => {
518
- const f = u.needParams ? {
517
+ !l.elementType || (o.isFun ? ie(u, o.name, (...s) => {
518
+ const d = o.needParams ? {
519
519
  ...l.elementProps,
520
520
  params$: s
521
521
  } : l.elementProps;
522
- return we(e, {
522
+ return Oe(e, {
523
523
  ...l,
524
- elementProps: f
524
+ elementProps: d
525
525
  });
526
- }) : ie(o, u.name, we(e, l)));
526
+ }) : ie(u, o.name, Oe(e, l)));
527
527
  }
528
- }), o;
529
- }, en = (e, t) => {
530
- const a = Y(t.children) > 0 ? st(e, t.children) : void 0, o = t.childrenSlotName || "default", n = D(t.slots, a ? o : "");
531
- return ne(Q(n), (r) => {
532
- const u = n[r];
533
- yr(u) ? n[r] = (...l) => {
534
- const s = u.needParams ? {
535
- ...u.elementProps,
528
+ }), u;
529
+ }, tn = (e, t) => {
530
+ const a = _(t.children) > 0 ? it(e, t.children) : void 0, u = t.childrenSlotName || "default", n = F(t.slots, a ? u : "");
531
+ return ne(Y(n), (r) => {
532
+ const o = n[r];
533
+ yr(o) ? n[r] = (...l) => {
534
+ const s = o.needParams ? {
535
+ ...o.elementProps,
536
536
  params$: l
537
- } : u.elementProps;
538
- return we(e, {
539
- ...u,
537
+ } : o.elementProps;
538
+ return Oe(e, {
539
+ ...o,
540
540
  elementProps: s
541
541
  });
542
- } : (se(u) || Ze(u)) && (n[r] = () => u);
542
+ } : (se(o) || et(o)) && (n[r] = () => o);
543
543
  }), {
544
- [o]: a ? () => a : void 0,
544
+ [u]: a ? () => a : void 0,
545
545
  ...n
546
546
  };
547
- }, we = (e, t) => {
547
+ }, Oe = (e, t) => {
548
548
  const a = g(e, t.elementType) || t.elementType;
549
549
  if (t.highConfig$)
550
- return Ee(hr, {
550
+ return Te(hr, {
551
551
  key: t.elementId,
552
552
  elementMap: e,
553
553
  elementConfig: t
554
554
  });
555
- const o = en(e, t), n = Zt(e, t);
556
- return Ee(a, {
555
+ const u = tn(e, t), n = en(e, t);
556
+ return Te(a, {
557
557
  key: t.elementId,
558
558
  ...n
559
- }, o);
560
- }, vr = (e) => J(e) ? xn(e) : se(e) && e.indexOf(".") > 0 ? e.substring(0, e.indexOf(".")) : e, hr = K({
559
+ }, u);
560
+ }, vr = (e) => Q(e) ? xn(e) : se(e) && e.indexOf(".") > 0 ? e.substring(0, e.indexOf(".")) : e, hr = D({
561
561
  props: {
562
562
  elementMap: {
563
563
  type: Object
@@ -567,49 +567,49 @@ const er = () => ({
567
567
  }
568
568
  },
569
569
  setup: (e) => {
570
- var S;
570
+ var p;
571
571
  const {
572
572
  state: t,
573
573
  sendEvent: a,
574
- execute: o
575
- } = Se(), {
574
+ execute: u
575
+ } = pe(), {
576
576
  elementMap: n,
577
577
  elementConfig: r
578
- } = e, u = r.highConfig$, l = Zt(n, r);
579
- ne((S = r.highConfig$) == null ? void 0 : S.registerEventList, (P) => {
580
- const b = (...w) => {
581
- const m = `${r.elementId}-${P.name}`;
578
+ } = e, o = r.highConfig$, l = en(n, r);
579
+ ne((p = r.highConfig$) == null ? void 0 : p.registerEventList, (C) => {
580
+ const h = (...w) => {
581
+ const m = `${r.elementId}-${C.name}`;
582
582
  a({
583
583
  type: m,
584
584
  payload: w
585
- }), o(P.executeList, w);
586
- }, T = kt(P.name, l);
587
- l && Ut(T) && qt(T, l) && ie(l, T, b);
585
+ }), u(C.executeList, w);
586
+ }, O = Bt(C.name, l);
587
+ l && Ut(O) && qt(O, l) && ie(l, O, h);
588
588
  });
589
- const s = N(() => {
590
- if (!u.registerStateList || Y(u.registerStateList) <= 0)
589
+ const s = I(() => {
590
+ if (!o.registerStateList || _(o.registerStateList) <= 0)
591
591
  return;
592
- const P = {
592
+ const C = {
593
593
  ...l
594
- }, b = _(u.registerStateList, (w) => !w.target || w.target === "prop"), T = $(b, (w) => {
594
+ }, h = X(o.registerStateList, (w) => !w.target || w.target === "prop"), O = $(h, (w) => {
595
595
  const m = w.mapName || w.name, M = g(t, w.name);
596
- return ie(P, m, M), vr(m);
596
+ return ie(C, m, M), vr(m);
597
597
  });
598
- return Z(P, T);
599
- }), f = g(n, r.elementType) || r.elementType, h = en(n, r), p = re(_(u.registerStateList, (P) => P.target === "slot"), (P, b) => ({
600
- ...P,
601
- [b.mapName]: () => g(t, b.name)
602
- }), {}), v = {
603
- ...h,
604
- ...p
598
+ return J(C, O);
599
+ }), d = g(n, r.elementType) || r.elementType, S = tn(n, r), P = re(X(o.registerStateList, (C) => C.target === "slot"), (C, h) => ({
600
+ ...C,
601
+ [h.mapName]: () => g(t, h.name)
602
+ }), {}), y = {
603
+ ...S,
604
+ ...P
605
605
  };
606
- return () => g(s.value, "show$") === !1 ? null : Ee(f, {
606
+ return () => g(s.value, "show$") === !1 ? null : Te(d, {
607
607
  key: r.elementId,
608
608
  ...l,
609
- ...D(s.value, "show$")
610
- }, v);
609
+ ...F(s.value, "show$")
610
+ }, y);
611
611
  }
612
- }), B = {
612
+ }), q = {
613
613
  TypographyKey: "Typography$",
614
614
  LoadingKey: "Loading$",
615
615
  RowKey: "Row$",
@@ -643,7 +643,7 @@ const er = () => ({
643
643
  return (t) => g(e, t);
644
644
  };
645
645
  function br(e) {
646
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Te(e);
646
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !xe(e);
647
647
  }
648
648
  const gr = () => ({
649
649
  row: {
@@ -656,15 +656,15 @@ const gr = () => ({
656
656
  items: {
657
657
  type: Array
658
658
  }
659
- }), Ce = K({
659
+ }), Me = D({
660
660
  props: {
661
661
  ...gr()
662
662
  },
663
663
  setup: (e) => {
664
- const t = ee(), a = t(B.RowKey), o = t(B.ColKey);
664
+ const t = ee(), a = t(q.RowKey), u = t(q.ColKey);
665
665
  return () => {
666
666
  let n;
667
- return !a || !o ? null : d(a, e.row, br(n = $(e.items, (r) => d(o, R({
667
+ return !a || !u ? null : i(a, e.row, br(n = $(e.items, (r) => i(u, R({
668
668
  key: r.rowKey
669
669
  }, e.col, r.col), {
670
670
  default: () => [r.vNode]
@@ -673,52 +673,52 @@ const gr = () => ({
673
673
  });
674
674
  };
675
675
  }
676
- }), pr = (e, t, a) => {
676
+ }), Sr = (e, t, a) => {
677
677
  if (t) {
678
- const o = _(Q(t), (n) => !t[n]);
679
- return D(e, o);
678
+ const u = X(Y(t), (n) => !t[n]);
679
+ return F(e, u);
680
680
  }
681
681
  if (a) {
682
- const o = _(Q(a), (n) => !a[n](e));
683
- return D(e, o);
682
+ const u = X(Y(a), (n) => !a[n](e));
683
+ return F(e, u);
684
684
  }
685
685
  return e;
686
- }, tn = (e) => {
686
+ }, nn = (e) => {
687
687
  if (!!e)
688
- return J(e) ? e : e && se(e) && e.indexOf(".") > 0 ? In(e, ".") : [e];
689
- }, Oa = (e, t, a) => !t || !a ? e : $(e, (o) => {
690
- const n = W(a) ? a(o) : g(o, a), r = g(t, n);
691
- return !r || Dt(r) || W(r) || !xe(r) ? o : Nn(o, r, (u, l) => {
692
- if (J(u) || J(l))
688
+ return Q(e) ? e : e && se(e) && e.indexOf(".") > 0 ? In(e, ".") : [e];
689
+ }, Ka = (e, t, a) => !t || !a ? e : $(e, (u) => {
690
+ const n = W(a) ? a(u) : g(u, a), r = g(t, n);
691
+ return !r || Ft(r) || W(r) || !Ie(r) ? u : wn(u, r, (o, l) => {
692
+ if (Q(o) || Q(l))
693
693
  return l;
694
694
  });
695
695
  }), Pe = (e, t) => {
696
696
  const a = re(
697
697
  e,
698
- (o, n) => ({
699
- ...o,
698
+ (u, n) => ({
699
+ ...u,
700
700
  [n]: (...r) => {
701
- var u, l;
702
- return (l = (u = t.value) == null ? void 0 : u[n]) == null ? void 0 : l.call(u, ...r);
701
+ var o, l;
702
+ return (l = (o = t.value) == null ? void 0 : o[n]) == null ? void 0 : l.call(o, ...r);
703
703
  }
704
704
  }),
705
705
  {}
706
706
  );
707
707
  return a.originRef = t, a;
708
- }, Ka = (e, t, a) => {
709
- const o = { originRef: e, ...a };
710
- return t && Y(t) > 0 && ne(t, (n) => {
711
- o[n] = (...r) => {
712
- var u, l;
713
- return (l = (u = e.value) == null ? void 0 : u[n]) == null ? void 0 : l.call(u, ...r);
708
+ }, Aa = (e, t, a) => {
709
+ const u = { originRef: e, ...a };
710
+ return t && _(t) > 0 && ne(t, (n) => {
711
+ u[n] = (...r) => {
712
+ var o, l;
713
+ return (l = (o = e.value) == null ? void 0 : o[n]) == null ? void 0 : l.call(o, ...r);
714
714
  };
715
- }), o;
716
- }, Sr = (e, t) => g(e, ["extra", t]) || g(e, t), fe = (e, t) => {
717
- const a = Q(e), o = `${t}-`, n = _(a, (u) => wn(u, o)), r = Z(e, n);
718
- return On(r, (u, l) => l.replace(o, ""));
719
- }, nn = Symbol("pro-form-list"), rn = () => ye(nn), an = (e) => {
720
- me(nn, e);
721
- }, Pr = K({
715
+ }), u;
716
+ }, pr = (e, t) => g(e, ["extra", t]) || g(e, t), fe = (e, t) => {
717
+ const a = Y(e), u = `${t}-`, n = X(a, (o) => Nn(o, u)), r = J(e, n);
718
+ return On(r, (o, l) => l.replace(u, ""));
719
+ }, rn = Symbol("pro-form-list"), an = () => ye(rn), on = (e) => {
720
+ me(rn, e);
721
+ }, Pr = D({
722
722
  props: {
723
723
  pathList: {
724
724
  type: Array
@@ -726,13 +726,13 @@ const gr = () => ({
726
726
  },
727
727
  setup: (e, {
728
728
  slots: t
729
- }) => (an({
729
+ }) => (on({
730
730
  pathList: e.pathList
731
731
  }), () => {
732
732
  var a;
733
733
  return (a = t.default) == null ? void 0 : a.call(t);
734
734
  })
735
- }), Ct = () => ({
735
+ }), Mt = () => ({
736
736
  rowKey: {
737
737
  type: String,
738
738
  default: "id"
@@ -769,44 +769,44 @@ const gr = () => ({
769
769
  onRemove: {
770
770
  type: Function
771
771
  }
772
- }), Aa = K({
772
+ }), Da = D({
773
773
  props: {
774
- ...Ct(),
775
- ...D(Ce.props, "items")
774
+ ...Mt(),
775
+ ...F(Me.props, "items")
776
776
  },
777
777
  setup: (e, {
778
778
  slots: t
779
779
  }) => {
780
- const o = ee()(B.FormItemKey), {
780
+ const u = ee()(q.FormItemKey), {
781
781
  formState: n,
782
782
  readonly: r,
783
- elementMap: u,
783
+ elementMap: o,
784
784
  formElementMap: l
785
- } = un(), s = rn(), f = tn(e.name), h = s != null && s.pathList ? [...s.pathList, ...f] : f, [p, v] = tt(), S = () => {
786
- var x;
787
- if (((x = e.onPreAdd) == null ? void 0 : x.call(e)) === !0)
785
+ } = ln(), s = an(), d = nn(e.name), S = s != null && s.pathList ? [...s.pathList, ...d] : d, [P, y] = nt(), p = () => {
786
+ var N;
787
+ if (((N = e.onPreAdd) == null ? void 0 : N.call(e)) === !0)
788
788
  return;
789
789
  const M = () => {
790
- let E = g(n, h);
791
- J(E) || (E = []), E.push({
790
+ let E = g(n, S);
791
+ Q(E) || (E = []), E.push({
792
792
  [e.rowKey]: new Date().valueOf()
793
- }), ie(n, h, E);
793
+ }), ie(n, S, E);
794
794
  };
795
795
  if (e.onAdd) {
796
796
  e.onAdd(M);
797
797
  return;
798
798
  }
799
799
  M();
800
- }, P = (m, M) => {
801
- var O;
802
- if (((O = e.onPreRemove) == null ? void 0 : O.call(e, {
800
+ }, C = (m, M) => {
801
+ var K;
802
+ if (((K = e.onPreRemove) == null ? void 0 : K.call(e, {
803
803
  index: m,
804
804
  item: M
805
805
  })) === !0)
806
806
  return;
807
807
  const E = () => {
808
- const k = g(n, h);
809
- Y(k) <= 0 || (k.splice(m, 1), v());
808
+ const j = g(n, S);
809
+ _(j) <= 0 || (j.splice(m, 1), y());
810
810
  };
811
811
  if (e.onRemove) {
812
812
  e.onRemove(E, {
@@ -816,73 +816,73 @@ const gr = () => ({
816
816
  return;
817
817
  }
818
818
  E();
819
- }, b = (m, M) => {
820
- const x = de(m);
821
- return x && t[x] ? t[x]({
819
+ }, h = (m, M) => {
820
+ const N = de(m);
821
+ return N && t[N] ? t[N]({
822
822
  item: m,
823
823
  formState: n,
824
824
  pathList: M
825
- }) : Jt(u, l, m);
826
- }, T = (m, M) => {
827
- if (!l || Y(e.columns) <= 0)
825
+ }) : Zt(o, l, m);
826
+ }, O = (m, M) => {
827
+ if (!l || _(e.columns) <= 0)
828
828
  return null;
829
829
  if (!e.row)
830
- return $(e.columns, (E) => b(E, m));
831
- const x = $(e.columns, (E) => ({
830
+ return $(e.columns, (E) => h(E, m));
831
+ const N = $(e.columns, (E) => ({
832
832
  rowKey: de(E),
833
- vNode: b(E, m),
833
+ vNode: h(E, m),
834
834
  col: g(E, ["extra", "col"])
835
835
  }));
836
- return d(Ce, {
836
+ return i(Me, {
837
837
  row: e.row,
838
838
  col: e.col,
839
- items: x
839
+ items: N
840
840
  }, null);
841
- }, w = Q(Ct());
842
- return () => o ? d(o, R({
841
+ }, w = Y(Mt());
842
+ return () => u ? i(u, R({
843
843
  class: `pro-form-list ${e.inline ? "pro-form-list-inline" : ""}`,
844
844
  name: e.name
845
- }, D(e, w)), {
845
+ }, F(e, w)), {
846
846
  default: () => {
847
847
  var m, M;
848
- return [$(g(n, h), (x, E) => {
849
- const O = [...h, E];
850
- return d(Pr, {
851
- key: x[e.rowKey] + p.value,
852
- pathList: O
848
+ return [$(g(n, S), (N, E) => {
849
+ const K = [...S, E];
850
+ return i(Pr, {
851
+ key: N[e.rowKey] + P.value,
852
+ pathList: K
853
853
  }, {
854
854
  default: () => {
855
- var k, U, q, H, G, c;
856
- return [d("div", {
855
+ var j, B, U, z, te, c;
856
+ return [i("div", {
857
857
  class: "pro-form-list-item"
858
- }, [(k = t.start) == null ? void 0 : k.call(t, {
858
+ }, [(j = t.start) == null ? void 0 : j.call(t, {
859
859
  state: n,
860
- path: h,
860
+ path: S,
861
861
  index: E
862
- }), T(O), (U = t.default) == null ? void 0 : U.call(t), !r.value && d(le, null, [d("div", {
862
+ }), O(K), (B = t.default) == null ? void 0 : B.call(t), !r.value && i(le, null, [i("div", {
863
863
  class: "pro-form-list-item-add",
864
- onClick: S
865
- }, [((q = t.itemAdd) == null ? void 0 : q.call(t)) || ((H = e.renderItemAdd) == null ? void 0 : H.call(e))]), d("div", {
864
+ onClick: p
865
+ }, [((U = t.itemAdd) == null ? void 0 : U.call(t)) || ((z = e.renderItemAdd) == null ? void 0 : z.call(e))]), i("div", {
866
866
  class: "pro-form-list-item-minus",
867
- onClick: () => P(E, x)
868
- }, [((G = t.itemMinus) == null ? void 0 : G.call(t)) || ((c = e.renderItemMinus) == null ? void 0 : c.call(e))])])])];
867
+ onClick: () => C(E, N)
868
+ }, [((te = t.itemMinus) == null ? void 0 : te.call(t)) || ((c = e.renderItemMinus) == null ? void 0 : c.call(e))])])])];
869
869
  }
870
870
  });
871
- }), !r.value && d("div", {
871
+ }), !r.value && i("div", {
872
872
  class: "pro-form-list-add",
873
- onClick: S
873
+ onClick: p
874
874
  }, [((m = t.add) == null ? void 0 : m.call(t)) || ((M = e.renderAdd) == null ? void 0 : M.call(e))])];
875
875
  }
876
876
  }) : null;
877
877
  }
878
- }), on = Symbol("pro-form"), un = () => ye(on), Cr = (e, t = 300, a) => Rt(e, t, a), Mr = (e) => {
879
- me(on, e);
878
+ }), un = Symbol("pro-form"), ln = () => ye(un), Cr = (e, t = 300, a) => Rt(e, t, a), Mr = (e) => {
879
+ me(un, e);
880
880
  };
881
881
  let ue;
882
882
  (function(e) {
883
883
  e.RESET = "RESET", e.SUBMIT = "SUBMIT", e.CONTINUE = "CONTINUE";
884
884
  })(ue || (ue = {}));
885
- const Mt = () => ({
885
+ const Et = () => ({
886
886
  clsName: {
887
887
  type: String,
888
888
  default: "pro-form"
@@ -932,54 +932,54 @@ const Mt = () => ({
932
932
  type: Function,
933
933
  default: void 0
934
934
  }
935
- }), Da = K({
935
+ }), Fa = D({
936
936
  inheritAttrs: !1,
937
937
  props: {
938
- ...pe,
939
- ...Mt(),
940
- ...D(Ce.props, "items")
938
+ ...Se,
939
+ ...Et(),
940
+ ...F(Me.props, "items")
941
941
  },
942
942
  setup: (e, {
943
943
  slots: t,
944
944
  emit: a,
945
- expose: o,
945
+ expose: u,
946
946
  attrs: n
947
947
  }) => {
948
948
  const {
949
949
  elementMap: r,
950
- formElementMap: u
951
- } = oe(), l = e.elementMap || r, s = e.formElementMap || u, f = e.model || be({}), h = He(f, e.showStateRules, e.showState), p = He(f, e.readonlyStateRules, e.readonlyState), v = He(f, e.disableStateRules, e.disableState), S = N(() => e.readonly), P = N(() => {
952
- const I = Be(e.columns, e.columnState, e.columnState2);
953
- return e.convertColumn ? Bt(I, e.convertColumn) : I;
954
- }), b = z(!1), T = z(0), w = (...I) => {
955
- var te;
956
- ((te = e.onPreFinish) == null ? void 0 : te.call(e, ...I)) !== !0 && a("finish", ...I, {
957
- userOpe: b,
958
- asyncNum: T
950
+ formElementMap: o
951
+ } = oe(), l = e.elementMap || r, s = e.formElementMap || o, d = e.model || be({}), S = We(d, e.showStateRules, e.showState), P = We(d, e.readonlyStateRules, e.readonlyState), y = We(d, e.disableStateRules, e.disableState), p = I(() => e.readonly), C = I(() => {
952
+ const T = Ve(e.columns, e.columnState, e.columnState2);
953
+ return e.convertColumn ? Vt(T, e.convertColumn) : T;
954
+ }), h = H(!1), O = H(0), w = (...T) => {
955
+ var Z;
956
+ ((Z = e.onPreFinish) == null ? void 0 : Z.call(e, ...T)) !== !0 && a("finish", ...T, {
957
+ userOpe: h,
958
+ asyncNum: O
959
959
  });
960
- }, m = e.debounceSubmit, M = (typeof m == "object" ? m.wait : m) || 300, x = Cr((...I) => w(...I), M, m == null ? void 0 : m.options), E = (I) => {
961
- const j = pr(I, h, e.showStateRules);
962
- m !== void 0 ? x(j, I) : w(j, I);
963
- }, O = z();
964
- o({
965
- ...Pe(e.formMethods || [], O),
966
- userOpe: b,
967
- asyncNum: T
960
+ }, m = e.debounceSubmit, M = (typeof m == "object" ? m.wait : m) || 300, N = Cr((...T) => w(...T), M, m == null ? void 0 : m.options), E = (T) => {
961
+ const L = Sr(T, S, e.showStateRules);
962
+ m !== void 0 ? N(L, T) : w(L, T);
963
+ }, K = H();
964
+ u({
965
+ ...Pe(e.formMethods || [], K),
966
+ userOpe: h,
967
+ asyncNum: O
968
968
  }), Mr({
969
- formState: f,
970
- showState: h,
971
- readonlyState: p,
972
- disableState: v,
969
+ formState: d,
970
+ showState: S,
971
+ readonlyState: P,
972
+ disableState: y,
973
973
  elementMap: l,
974
974
  formElementMap: s,
975
- readonly: S,
976
- columns: P,
977
- formRef: O,
978
- userOpe: b,
979
- asyncNum: T,
975
+ readonly: p,
976
+ columns: C,
977
+ formRef: K,
978
+ userOpe: h,
979
+ asyncNum: O,
980
980
  ...e.provideExtra
981
- }), an({});
982
- const k = [{
981
+ }), on({});
982
+ const j = [{
983
983
  value: ue.RESET,
984
984
  label: "\u91CD\u7F6E"
985
985
  }, {
@@ -988,84 +988,84 @@ const Mt = () => ({
988
988
  extraProps: {
989
989
  type: "primary"
990
990
  }
991
- }], U = () => {
992
- var I, j;
993
- if ((I = e.operate) != null && I.onReset) {
991
+ }], B = () => {
992
+ var T, L;
993
+ if ((T = e.operate) != null && T.onReset) {
994
994
  e.operate.onReset({
995
- form: O.value
995
+ form: K.value
996
996
  });
997
997
  return;
998
998
  }
999
- (j = O.value) == null || j.resetFields();
1000
- }, q = () => {
1001
- var I, j;
1002
- if ((I = e.operate) != null && I.onSubmit) {
999
+ (L = K.value) == null || L.resetFields();
1000
+ }, U = () => {
1001
+ var T, L;
1002
+ if ((T = e.operate) != null && T.onSubmit) {
1003
1003
  e.operate.onSubmit({
1004
- form: O.value
1004
+ form: K.value
1005
1005
  });
1006
1006
  return;
1007
1007
  }
1008
- (j = O.value) == null || j.submit();
1009
- }, H = () => {
1010
- var I, j;
1011
- (j = (I = e.operate) == null ? void 0 : I.onContinue) == null || j.call(I, {
1012
- form: O.value
1008
+ (L = K.value) == null || L.submit();
1009
+ }, z = () => {
1010
+ var T, L;
1011
+ (L = (T = e.operate) == null ? void 0 : T.onContinue) == null || L.call(T, {
1012
+ form: K.value
1013
1013
  });
1014
- }, G = {
1015
- [ue.RESET]: U,
1016
- [ue.SUBMIT]: q,
1017
- [ue.CONTINUE]: H
1018
- }, c = N(() => {
1019
- const I = e.operate, j = (I == null ? void 0 : I.items) || k;
1020
- return $(j, (te) => !te.onClick && !g(I == null ? void 0 : I.itemState, [te.value, "onClick"]) ? {
1021
- ...te,
1022
- onClick: g(G, te.value)
1023
- } : te);
1024
- }), y = N(() => {
1025
- var I;
1014
+ }, te = {
1015
+ [ue.RESET]: B,
1016
+ [ue.SUBMIT]: U,
1017
+ [ue.CONTINUE]: z
1018
+ }, c = I(() => {
1019
+ const T = e.operate, L = (T == null ? void 0 : T.items) || j;
1020
+ return $(L, (Z) => !Z.onClick && !g(T == null ? void 0 : T.itemState, [Z.value, "onClick"]) ? {
1021
+ ...Z,
1022
+ onClick: g(te, Z.value)
1023
+ } : Z);
1024
+ }), f = I(() => {
1025
+ var T;
1026
1026
  return {
1027
1027
  [ue.SUBMIT]: {
1028
1028
  value: ue.SUBMIT,
1029
1029
  loading: e.submitLoading
1030
1030
  },
1031
- ...(I = e.operate) == null ? void 0 : I.itemState
1031
+ ...(T = e.operate) == null ? void 0 : T.itemState
1032
1032
  };
1033
- }), i = (I) => {
1034
- const j = de(I);
1035
- return j && t[j] ? t[j](I, f) : Jt(l, s, I);
1036
- }, C = N(() => {
1037
- const I = _(P.value, (j) => {
1038
- const te = de(j);
1039
- return !!g(h, te, !0);
1033
+ }), v = (T) => {
1034
+ const L = de(T);
1035
+ return L && t[L] ? t[L](T, d) : Zt(l, s, T);
1036
+ }, b = I(() => {
1037
+ const T = X(C.value, (L) => {
1038
+ const Z = de(L);
1039
+ return !!g(S, Z, !0);
1040
1040
  });
1041
- return e.row ? $(I, (j) => ({
1042
- rowKey: de(j),
1043
- vNode: i(j),
1044
- col: g(j, ["extra", "col"])
1045
- })) : $(I, (j) => i(j));
1046
- }), F = [...Q(Mt()), ...Q(pe)], A = Q(D(Ce.props, "items")), X = g(r, B.FormKey);
1041
+ return e.row ? $(T, (L) => ({
1042
+ rowKey: de(L),
1043
+ vNode: v(L),
1044
+ col: g(L, ["extra", "col"])
1045
+ })) : $(T, (L) => v(L));
1046
+ }), A = [...Y(Et()), ...Y(Se)], x = Y(F(Me.props, "items")), G = g(r, q.FormKey);
1047
1047
  return () => {
1048
- var mt, yt, vt;
1049
- if (!X)
1048
+ var yt, vt, ht;
1049
+ if (!G)
1050
1050
  return null;
1051
- const I = (mt = t.start) == null ? void 0 : mt.call(t), j = (yt = t.default) == null ? void 0 : yt.call(t), te = (vt = t.end) == null ? void 0 : vt.call(t), dt = [e.clsName], ft = Y(C.value) <= 0 && !Ye(I) && !Ye(j);
1052
- return ft && dt.push("is-empty"), d(X, R({
1053
- ref: O,
1054
- class: dt
1055
- }, D(n, "onFinish"), D(e, ...F, ...A, "onFinish", "operate"), {
1056
- model: f,
1051
+ const T = (yt = t.start) == null ? void 0 : yt.call(t), L = (vt = t.default) == null ? void 0 : vt.call(t), Z = (ht = t.end) == null ? void 0 : ht.call(t), Ce = [e.clsName], mt = _(b.value) <= 0 && !Qe(T) && !Qe(L);
1052
+ return mt && Ce.push("is-empty"), i(G, R({
1053
+ ref: K,
1054
+ class: Ce
1055
+ }, F(n, "onFinish"), F(e, ...A, ...x, "onFinish", "operate"), {
1056
+ model: d,
1057
1057
  onFinish: E
1058
1058
  }), {
1059
- default: () => [I, s && Y(P.value) > 0 && d(le, null, [e.row ? d(Ce, {
1059
+ default: () => [T, s && _(C.value) > 0 && i(le, null, [e.row ? i(Me, {
1060
1060
  row: e.row,
1061
1061
  col: e.col,
1062
- items: C.value
1063
- }, null) : C.value]), j, e.operate && !ft && d(fn, R({
1062
+ items: b.value
1063
+ }, null) : b.value]), L, e.operate && !mt && i(mn, R({
1064
1064
  class: `${e.clsName}-operate`
1065
- }, D(e.operate, "items", "itemState", "onReset", "onSubmit", "onContinue"), {
1065
+ }, F(e.operate, "items", "itemState", "onReset", "onSubmit", "onContinue"), {
1066
1066
  items: c.value,
1067
- itemState: y.value
1068
- }), null), te]
1067
+ itemState: f.value
1068
+ }), null), Z]
1069
1069
  });
1070
1070
  };
1071
1071
  }
@@ -1085,7 +1085,7 @@ let qe;
1085
1085
  (function(e) {
1086
1086
  e.AUTO = "AUTO", e.MANUAL = "MANUAL";
1087
1087
  })(qe || (qe = {}));
1088
- const Et = () => ({
1088
+ const Tt = () => ({
1089
1089
  initEmit: {
1090
1090
  type: Boolean,
1091
1091
  default: !0
@@ -1105,9 +1105,9 @@ const Et = () => ({
1105
1105
  type: Number,
1106
1106
  default: 800
1107
1107
  }
1108
- }), $a = K({
1108
+ }), $a = D({
1109
1109
  props: {
1110
- ...Et(),
1110
+ ...Tt(),
1111
1111
  needRules: {
1112
1112
  type: Boolean,
1113
1113
  default: !1
@@ -1117,39 +1117,39 @@ const Et = () => ({
1117
1117
  slots: t,
1118
1118
  expose: a
1119
1119
  }) => {
1120
- const n = ee()(B.ProFormKey), r = e.model || be({}), u = new Set(e.debounceTypes), l = $(_(e.columns, (b) => {
1121
- const T = Qt(b);
1122
- return u.has(T);
1123
- }), (b) => de(b)), s = N(() => $(e.columns, (b) => ({
1124
- ...b,
1125
- formItemProps: D(b.formItemProps, "required")
1126
- }))), f = z(), h = e.formMethods || [];
1127
- a(Pe(h, f));
1128
- const p = () => {
1129
- var b;
1130
- (b = f.value) == null || b.submit();
1131
- }, v = Rt(() => {
1132
- p();
1120
+ const n = ee()(q.ProFormKey), r = e.model || be({}), o = new Set(e.debounceTypes), l = $(X(e.columns, (h) => {
1121
+ const O = Jt(h);
1122
+ return o.has(O);
1123
+ }), (h) => de(h)), s = I(() => $(e.columns, (h) => ({
1124
+ ...h,
1125
+ formItemProps: F(h.formItemProps, "required")
1126
+ }))), d = H(), S = e.formMethods || [];
1127
+ a(Pe(S, d));
1128
+ const P = () => {
1129
+ var h;
1130
+ (h = d.value) == null || h.submit();
1131
+ }, y = Rt(() => {
1132
+ P();
1133
1133
  }, e.debounceTime);
1134
1134
  ae(() => {
1135
- e.initEmit && p();
1135
+ e.initEmit && P();
1136
1136
  }, []);
1137
- const S = (b, T, w) => he(w, (m) => g(b, m) !== g(T, m));
1138
- nt((b, T) => {
1137
+ const p = (h, O, w) => he(w, (m) => g(h, m) !== g(O, m));
1138
+ rt((h, O) => {
1139
1139
  if (e.searchMode !== qe.AUTO)
1140
1140
  return;
1141
- const w = Y(e.debounceKeys) > 0 ? e.debounceKeys : l;
1142
- if (Y(w) > 0 && S(b, T, w)) {
1143
- v();
1141
+ const w = _(e.debounceKeys) > 0 ? e.debounceKeys : l;
1142
+ if (_(w) > 0 && p(h, O, w)) {
1143
+ y();
1144
1144
  return;
1145
1145
  }
1146
- p();
1146
+ P();
1147
1147
  }, () => Kn(r));
1148
- const P = Q(Et());
1149
- return () => n ? d(n, R({
1150
- ref: f,
1148
+ const C = Y(Tt());
1149
+ return () => n ? i(n, R({
1150
+ ref: d,
1151
1151
  class: "pro-search-form"
1152
- }, D(e, P, "columns"), {
1152
+ }, F(e, C, "columns"), {
1153
1153
  columns: s.value,
1154
1154
  model: r
1155
1155
  }), t) : null;
@@ -1159,19 +1159,19 @@ const Et = () => ({
1159
1159
  content: String,
1160
1160
  renderDom: {
1161
1161
  type: Function,
1162
- default: () => d("span", {
1162
+ default: () => i("span", {
1163
1163
  class: "pro-tip-dom"
1164
- }, [Fe("?")])
1164
+ }, [Le("?")])
1165
1165
  }
1166
- }), Tr = K({
1166
+ }), Tr = D({
1167
1167
  props: {
1168
1168
  ...Er()
1169
1169
  },
1170
1170
  setup: (e, {
1171
1171
  slots: t
1172
1172
  }) => {
1173
- const o = ee()(B.TooltipKey);
1174
- return () => d(o, D(e, "renderDom"), {
1173
+ const u = ee()(q.TooltipKey);
1174
+ return () => i(u, F(e, "renderDom"), {
1175
1175
  default: () => {
1176
1176
  var n, r;
1177
1177
  return [((n = t.default) == null ? void 0 : n.call(t)) || ((r = e.renderDom) == null ? void 0 : r.call(e))];
@@ -1181,7 +1181,7 @@ const Et = () => ({
1181
1181
  ...t
1182
1182
  });
1183
1183
  }
1184
- }), Tt = () => ({
1184
+ }), xt = () => ({
1185
1185
  readonly: {
1186
1186
  type: Boolean,
1187
1187
  default: void 0
@@ -1201,89 +1201,89 @@ const Et = () => ({
1201
1201
  tipProps: {
1202
1202
  type: Object
1203
1203
  }
1204
- }), Fa = (e, t) => ({
1204
+ }), La = (e, t) => ({
1205
1205
  InputComp: a,
1206
- valueType: o,
1206
+ valueType: u,
1207
1207
  name: n
1208
- }) => K({
1208
+ }) => D({
1209
1209
  name: n,
1210
1210
  props: {
1211
1211
  ...e.props,
1212
- ...Tt()
1212
+ ...xt()
1213
1213
  },
1214
1214
  setup: (r, {
1215
- slots: u
1215
+ slots: o
1216
1216
  }) => {
1217
1217
  const {
1218
1218
  formExtraMap: l,
1219
1219
  elementMap: s
1220
1220
  } = oe(), {
1221
- formState: f,
1222
- readonlyState: h,
1223
- disableState: p,
1224
- readonly: v,
1225
- userOpe: S
1226
- } = un(), P = rn(), b = N(() => Ie(r.readonly) ? r.readonly : Ie(h[r.name]) ? h[r.name] : v.value), T = () => `${g(l == null ? void 0 : l.rulePrefixMap, o) || "\u8BF7\u8F93\u5165"}${r.label || ""}`, w = N(() => l != null && l.rulePrefixMap ? r.required === !0 && !r.rules ? [{
1221
+ formState: d,
1222
+ readonlyState: S,
1223
+ disableState: P,
1224
+ readonly: y,
1225
+ userOpe: p
1226
+ } = ln(), C = an(), h = I(() => we(r.readonly) ? r.readonly : we(S[r.name]) ? S[r.name] : y.value), O = () => `${g(l == null ? void 0 : l.rulePrefixMap, u) || "\u8BF7\u8F93\u5165"}${r.label || ""}`, w = I(() => l != null && l.rulePrefixMap ? r.required === !0 && !r.rules ? [{
1227
1227
  required: !0,
1228
- message: T()
1229
- }] : r.rules ? $(r.rules, (U) => (U.required && !U.message && (U.message = T()), U)) : r.rules : r.rules), m = tn(r.name), M = P != null && P.pathList ? [...P.pathList, ...m] : m, x = (U) => {
1230
- S.value = !0, ie(f, M, U);
1231
- }, E = Q(Tt()), O = () => {
1232
- const U = g(f, M);
1233
- if (u.renderShow)
1234
- return u.renderShow({
1235
- value: U,
1236
- record: f,
1228
+ message: O()
1229
+ }] : r.rules ? $(r.rules, (B) => (B.required && !B.message && (B.message = O()), B)) : r.rules : r.rules), m = nn(r.name), M = C != null && C.pathList ? [...C.pathList, ...m] : m, N = (B) => {
1230
+ p.value = !0, ie(d, M, B);
1231
+ }, E = Y(xt()), K = () => {
1232
+ const B = g(d, M);
1233
+ if (o.renderShow)
1234
+ return o.renderShow({
1235
+ value: B,
1236
+ record: d,
1237
1237
  path: M
1238
1238
  });
1239
- const q = g(s, o);
1240
- return q ? d(q, R({
1241
- value: U
1239
+ const U = g(s, u);
1240
+ return U ? i(U, R({
1241
+ value: B
1242
1242
  }, r.fieldProps, {
1243
1243
  showProps: r.showProps
1244
- }), u) : d("span", null, [U]);
1245
- }, k = () => {
1246
- const U = g(f, M), q = g(p, M);
1247
- return u.renderInput ? u.renderInput({
1248
- value: U,
1249
- setValue: x,
1250
- disabled: q,
1251
- record: f,
1244
+ }), o) : i("span", null, [B]);
1245
+ }, j = () => {
1246
+ const B = g(d, M), U = g(P, M);
1247
+ return o.renderInput ? o.renderInput({
1248
+ value: B,
1249
+ setValue: N,
1250
+ disabled: U,
1251
+ record: d,
1252
1252
  path: M
1253
- }) : d(a, R(t(U, x, q), r.fieldProps), u);
1253
+ }) : i(a, R(t(B, N, U), r.fieldProps), o);
1254
1254
  };
1255
- return () => d(e, R({
1255
+ return () => i(e, R({
1256
1256
  class: "pro-form-item"
1257
- }, D(r, ...E, "name", "rules"), {
1257
+ }, F(r, ...E, "name", "rules"), {
1258
1258
  name: M,
1259
1259
  rules: w.value
1260
1260
  }), {
1261
- default: () => [b.value ? O() : k()],
1262
- label: () => d(le, null, [r.label, r.tip && d(Tr, R({
1261
+ default: () => [h.value ? K() : j()],
1262
+ label: () => i(le, null, [r.label, r.tip && i(Tr, R({
1263
1263
  content: r.tip,
1264
1264
  title: r.tip
1265
1265
  }, r.tipProps), null)]),
1266
1266
  ...r.slots
1267
1267
  });
1268
1268
  }
1269
- }), ln = Yn("access", void 0, !0), xr = () => {
1270
- const [e, t] = ln();
1269
+ }), cn = Yn("access", void 0, !0), xr = () => {
1270
+ const [e, t] = cn();
1271
1271
  return { access: e, setAccess: t, delAccess: () => {
1272
1272
  t(void 0);
1273
1273
  } };
1274
- }, La = () => {
1275
- const [e, t] = ln();
1274
+ }, ka = () => {
1275
+ const [e, t] = cn();
1276
1276
  return [e, t, () => {
1277
1277
  t(void 0);
1278
1278
  }];
1279
- }, cn = Symbol("logon-user"), Ir = () => ye(cn), ja = K((e, { slots: t }) => {
1280
- const [a, o] = ht(), [n, r] = ht();
1281
- return me(cn, { user: a, setUser: o, per: n, setPer: r, opts: {} }), () => {
1279
+ }, sn = Symbol("logon-user"), Ir = () => ye(sn), ja = D((e, { slots: t }) => {
1280
+ const [a, u] = bt(), [n, r] = bt();
1281
+ return me(sn, { user: a, setUser: u, per: n, setPer: r, opts: {} }), () => {
1282
1282
  var l;
1283
1283
  return (l = t.default) == null ? void 0 : l.call(t);
1284
1284
  };
1285
- }), ka = K((e, { slots: t, emit: a }) => {
1286
- const { access: o } = xr(), n = N(() => o && o.token);
1285
+ }), Ba = D((e, { slots: t, emit: a }) => {
1286
+ const { access: u } = xr(), n = I(() => u && u.token);
1287
1287
  return ae(() => {
1288
1288
  n.value || a("toLogin");
1289
1289
  }, n), () => {
@@ -1294,40 +1294,40 @@ const Et = () => ({
1294
1294
  Add: "add",
1295
1295
  Edit: "edit",
1296
1296
  Delete: "delete"
1297
- }, Nr = (e, t) => !e || !t ? !1 : J(t) ? he(t, (a) => e[a]) : e[t], sn = () => {
1298
- const { per: e } = Ir() || { per: { menus: [], buttonMap: {} } }, t = ot();
1299
- return (a, o) => {
1297
+ }, wr = (e, t) => !e || !t ? !1 : Q(t) ? he(t, (a) => e[a]) : e[t], dn = () => {
1298
+ const { per: e } = Ir() || { per: { menus: [], buttonMap: {} } }, t = ut();
1299
+ return (a, u) => {
1300
1300
  if (!a)
1301
1301
  return !1;
1302
1302
  let n = a;
1303
- if (o != null && o.suffix) {
1304
- const r = t.name ? t.name.toString() : "", u = (o == null ? void 0 : o.splitStr) || "_";
1305
- n = J(n) ? $(n, (l) => `${r}${u}${l}`) : `${r}${u}${n}`;
1303
+ if (u != null && u.suffix) {
1304
+ const r = t.name ? t.name.toString() : "", o = (u == null ? void 0 : u.splitStr) || "_";
1305
+ n = Q(n) ? $(n, (l) => `${r}${o}${l}`) : `${r}${o}${n}`;
1306
1306
  }
1307
- return Nr(e.buttonMap, n);
1307
+ return wr(e.buttonMap, n);
1308
1308
  };
1309
- }, dn = () => {
1310
- const e = sn();
1311
- return (t, a, o) => t ? e(t) : a ? e(a, { suffix: !0, splitStr: o }) : !0;
1312
- }, wr = () => ({
1309
+ }, fn = () => {
1310
+ const e = dn();
1311
+ return (t, a, u) => t ? e(t) : a ? e(a, { suffix: !0, splitStr: u }) : !0;
1312
+ }, Nr = () => ({
1313
1313
  suffix: { type: [String, Array] },
1314
1314
  value: { type: [String, Array] },
1315
1315
  splitStr: { type: String }
1316
- }), qa = K({
1316
+ }), qa = D({
1317
1317
  inheritAttrs: !1,
1318
1318
  props: {
1319
- ...wr()
1319
+ ...Nr()
1320
1320
  },
1321
1321
  setup: (e, { slots: t }) => {
1322
- const a = sn(), o = N(() => e.value ? a(e.value) : e.suffix ? a(e.suffix, { suffix: !0, splitStr: e.splitStr }) : !1);
1322
+ const a = dn(), u = I(() => e.value ? a(e.value) : e.suffix ? a(e.suffix, { suffix: !0, splitStr: e.splitStr }) : !1);
1323
1323
  return () => {
1324
1324
  var n;
1325
- return o.value ? (n = t.default) == null ? void 0 : n.call(t) : null;
1325
+ return u.value ? (n = t.default) == null ? void 0 : n.call(t) : null;
1326
1326
  };
1327
1327
  }
1328
1328
  });
1329
1329
  function Or(e) {
1330
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Te(e);
1330
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !xe(e);
1331
1331
  }
1332
1332
  const Kr = () => ({
1333
1333
  clsName: {
@@ -1342,58 +1342,58 @@ const Kr = () => ({
1342
1342
  },
1343
1343
  elementKey: {
1344
1344
  type: String,
1345
- default: B.ButtonKey
1345
+ default: q.ButtonKey
1346
1346
  },
1347
1347
  splitStr: {
1348
1348
  type: String
1349
1349
  }
1350
- }), fn = K({
1350
+ }), mn = D({
1351
1351
  props: {
1352
1352
  ...Kr()
1353
1353
  },
1354
1354
  setup: (e, {
1355
1355
  slots: t
1356
1356
  }) => {
1357
- const a = dn(), o = N(() => {
1358
- const s = _(e.items, (h) => a(h.per, h.perSuffix, e.splitStr) ? W(h.show) ? h.show() : Ie(h.show) ? h.show : !0 : !1), f = $(s, (h) => Je(e.itemState, h.value) ? {
1359
- ...h,
1360
- ...g(e.itemState, h.value)
1361
- } : h);
1362
- return $t(f, (h) => h.sort);
1357
+ const a = fn(), u = I(() => {
1358
+ const s = X(e.items, (S) => a(S.per, S.perSuffix, e.splitStr) ? W(S.show) ? S.show() : we(S.show) ? S.show : !0 : !1), d = $(s, (S) => Ze(e.itemState, S.value) ? {
1359
+ ...S,
1360
+ ...g(e.itemState, S.value)
1361
+ } : S);
1362
+ return $t(d, (S) => S.sort);
1363
1363
  }), n = (s) => {
1364
- var f;
1365
- (f = s.onClick) == null || f.call(s, s);
1366
- }, r = ee(), u = e.elementKey ? r(e.elementKey) : void 0, l = r(B.TooltipKey);
1367
- return () => d("div", {
1364
+ var d;
1365
+ (d = s.onClick) == null || d.call(s, s);
1366
+ }, r = ee(), o = e.elementKey ? r(e.elementKey) : void 0, l = r(q.TooltipKey);
1367
+ return () => i("div", {
1368
1368
  class: e.clsName
1369
- }, [$(o.value, (s) => {
1370
- const f = W(s.disabled) ? s.disabled() : s.disabled, h = W(s.loading) ? s.loading() : s.loading, p = W(s.label) ? s.label() : s.label, v = W(s.extraProps) ? s.extraProps() : s.extraProps, S = {
1371
- ...D(s, "show", "disabled", "element"),
1372
- disabled: f
1369
+ }, [$(u.value, (s) => {
1370
+ const d = W(s.disabled) ? s.disabled() : s.disabled, S = W(s.loading) ? s.loading() : s.loading, P = W(s.label) ? s.label() : s.label, y = W(s.extraProps) ? s.extraProps() : s.extraProps, p = {
1371
+ ...F(s, "show", "disabled", "element"),
1372
+ disabled: d
1373
1373
  };
1374
1374
  if (s.element && W(s.element))
1375
- return s.element(S);
1375
+ return s.element(p);
1376
1376
  if (t[s.value])
1377
- return t[s.value](S);
1378
- if (u) {
1379
- const P = d(u, R({
1380
- disabled: f,
1381
- loading: h,
1377
+ return t[s.value](p);
1378
+ if (o) {
1379
+ const C = i(o, R({
1380
+ disabled: d,
1381
+ loading: S,
1382
1382
  onClick: () => n(s)
1383
- }, v), Or(p) ? p : {
1384
- default: () => [p]
1383
+ }, y), Or(P) ? P : {
1384
+ default: () => [P]
1385
1385
  });
1386
- return s.tip && l ? d(l, R({
1386
+ return s.tip && l ? i(l, R({
1387
1387
  placement: "top"
1388
1388
  }, s.tipProps), {
1389
- default: () => [P],
1389
+ default: () => [C],
1390
1390
  content: () => s.tip
1391
- }) : P;
1391
+ }) : C;
1392
1392
  }
1393
- return d("div", {
1393
+ return i("div", {
1394
1394
  class: `${e.clsName}-item`,
1395
1395
  onClick: () => n(s)
1396
- }, [p]);
1396
+ }, [P]);
1397
1397
  })]);
1398
1398
  }
1399
1399
  }), Ar = () => ({
@@ -1417,91 +1417,91 @@ const Kr = () => ({
1417
1417
  type: Function,
1418
1418
  default: () => "\u5217\u8BBE\u7F6E"
1419
1419
  }
1420
- }), Dr = K({
1420
+ }), Dr = D({
1421
1421
  props: {
1422
1422
  ...Ar()
1423
1423
  },
1424
1424
  setup: (e, {
1425
1425
  slots: t
1426
1426
  }) => {
1427
- const a = ee(), o = a(B.PopoverKey), n = a(B.CheckboxKey), {
1427
+ const a = ee(), u = a(q.PopoverKey), n = a(q.CheckboxKey), {
1428
1428
  originColumns: r,
1429
- selectIdsRef: u
1430
- } = Rr(), [l, s] = tt();
1431
- let f = {};
1432
- const h = (m) => {
1433
- f[m] = !1;
1434
- }, p = () => {
1435
- ne(u.value, (m) => {
1436
- f[m] = !0;
1429
+ selectIdsRef: o
1430
+ } = Fr(), [l, s] = nt();
1431
+ let d = {};
1432
+ const S = (m) => {
1433
+ d[m] = !1;
1434
+ }, P = () => {
1435
+ ne(o.value, (m) => {
1436
+ d[m] = !0;
1437
1437
  });
1438
- }, v = N(() => re(u.value, (m, M) => ({
1438
+ }, y = I(() => re(o.value, (m, M) => ({
1439
1439
  ...m,
1440
1440
  [M]: !0
1441
- }), {})), S = (m) => Sr(m, e.signName);
1441
+ }), {})), p = (m) => pr(m, e.signName);
1442
1442
  ae(() => {
1443
- u.value = $(_(r.value, (m) => {
1443
+ o.value = $(X(r.value, (m) => {
1444
1444
  var M;
1445
- return e.useSelectedStatus && Je(f, m.dataIndex) ? f[m.dataIndex] : ((M = S(m)) == null ? void 0 : M.initShow) !== !1;
1445
+ return e.useSelectedStatus && Ze(d, m.dataIndex) ? d[m.dataIndex] : ((M = p(m)) == null ? void 0 : M.initShow) !== !1;
1446
1446
  }), (m) => m.dataIndex);
1447
- }, r), nt(() => {
1447
+ }, r), rt(() => {
1448
1448
  var m;
1449
- s(), p(), (m = e.onColumnSelectChange) == null || m.call(e, u.value);
1450
- }, u);
1451
- const P = N(() => {
1452
- const m = An(r.value, (x) => {
1449
+ s(), P(), (m = e.onColumnSelectChange) == null || m.call(e, o.value);
1450
+ }, o);
1451
+ const C = I(() => {
1452
+ const m = An(r.value, (N) => {
1453
1453
  var E;
1454
- return (E = S(x)) != null && E.disabled ? !0 : g(v.value, x.dataIndex);
1455
- }), M = he(r.value, (x) => {
1454
+ return (E = p(N)) != null && E.disabled ? !0 : g(y.value, N.dataIndex);
1455
+ }), M = he(r.value, (N) => {
1456
1456
  var E;
1457
- return (E = S(x)) != null && E.disabled ? !0 : g(v.value, x.dataIndex);
1457
+ return (E = p(N)) != null && E.disabled ? !0 : g(y.value, N.dataIndex);
1458
1458
  });
1459
1459
  return {
1460
1460
  checked: m,
1461
1461
  indeterminate: m ? !1 : M
1462
1462
  };
1463
- }), b = (m) => {
1464
- var x;
1465
- (xe(m) ? (x = m.target) == null ? void 0 : x.checked : m) ? u.value = $(r.value, (E) => E.dataIndex) : u.value = $(_(r.value, (E) => {
1466
- var O;
1467
- return (O = S(E)) != null && O.disabled ? !0 : (h(E.dataIndex), !1);
1463
+ }), h = (m) => {
1464
+ var N;
1465
+ (Ie(m) ? (N = m.target) == null ? void 0 : N.checked : m) ? o.value = $(r.value, (E) => E.dataIndex) : o.value = $(X(r.value, (E) => {
1466
+ var K;
1467
+ return (K = p(E)) != null && K.disabled ? !0 : (S(E.dataIndex), !1);
1468
1468
  }), (E) => E.dataIndex);
1469
- }, T = () => {
1470
- u.value = $(_(r.value, (m) => {
1469
+ }, O = () => {
1470
+ o.value = $(X(r.value, (m) => {
1471
1471
  var M;
1472
- return ((M = S(m)) == null ? void 0 : M.initShow) === !1 ? (h(m.dataIndex), !1) : !0;
1472
+ return ((M = p(m)) == null ? void 0 : M.initShow) === !1 ? (S(m.dataIndex), !1) : !0;
1473
1473
  }), (m) => m.dataIndex);
1474
1474
  }, w = (m, M) => {
1475
1475
  var E;
1476
- (xe(M) ? (E = M.target) == null ? void 0 : E.checked : M) ? u.value = [...u.value, m.dataIndex] : u.value = _(u.value, (O) => m.dataIndex === O ? (h(m.dataIndex), !1) : !0);
1476
+ (Ie(M) ? (E = M.target) == null ? void 0 : E.checked : M) ? o.value = [...o.value, m.dataIndex] : o.value = X(o.value, (K) => m.dataIndex === K ? (S(m.dataIndex), !1) : !0);
1477
1477
  };
1478
- return () => o ? d(o, R({
1478
+ return () => u ? i(u, R({
1479
1479
  trigger: "click"
1480
1480
  }, e.popoverProps), {
1481
1481
  default: () => {
1482
1482
  var m, M;
1483
1483
  return [((m = t.default) == null ? void 0 : m.call(t)) || ((M = e.renderDom) == null ? void 0 : M.call(e))];
1484
1484
  },
1485
- content: () => d("div", {
1485
+ content: () => i("div", {
1486
1486
  class: `${e.clsName}`
1487
- }, [d("div", {
1487
+ }, [i("div", {
1488
1488
  class: `${e.clsName}-header`
1489
- }, [d(n, {
1489
+ }, [i(n, {
1490
1490
  key: l.value,
1491
- checked: P.value.checked,
1492
- indeterminate: P.value.indeterminate,
1493
- onChange: b
1491
+ checked: C.value.checked,
1492
+ indeterminate: C.value.indeterminate,
1493
+ onChange: h
1494
1494
  }, {
1495
- default: () => [Fe("\u5217\u5C55\u793A")]
1496
- }), d("a", {
1497
- onClick: T
1498
- }, [Fe("\u91CD\u7F6E")])]), d("div", {
1495
+ default: () => [Le("\u5217\u5C55\u793A")]
1496
+ }), i("a", {
1497
+ onClick: O
1498
+ }, [Le("\u91CD\u7F6E")])]), i("div", {
1499
1499
  key: l.value,
1500
1500
  class: `${e.clsName}-list`
1501
1501
  }, [$(r.value, (m) => {
1502
- const M = S(m), x = g(v.value, m.dataIndex, !1);
1503
- return d(n, {
1504
- checked: x,
1502
+ const M = p(m), N = g(y.value, m.dataIndex, !1);
1503
+ return i(n, {
1504
+ checked: N,
1505
1505
  disabled: M == null ? void 0 : M.disabled,
1506
1506
  onChange: (E) => {
1507
1507
  w(m, E);
@@ -1510,12 +1510,12 @@ const Kr = () => ({
1510
1510
  default: () => [m.title]
1511
1511
  });
1512
1512
  })])]),
1513
- ...D(t, "default")
1513
+ ...F(t, "default")
1514
1514
  }) : null;
1515
1515
  }
1516
- }), mn = Symbol("pro-table"), Rr = () => ye(mn), $r = (e) => {
1517
- me(mn, e);
1518
- }, xt = () => ({
1516
+ }), yn = Symbol("pro-table"), Fr = () => ye(yn), Rr = (e) => {
1517
+ me(yn, e);
1518
+ }, It = () => ({
1519
1519
  clsName: {
1520
1520
  type: String,
1521
1521
  default: "pro-table"
@@ -1556,43 +1556,43 @@ const Kr = () => ({
1556
1556
  dataSource: {
1557
1557
  type: Array
1558
1558
  }
1559
- }), Ba = K({
1559
+ }), Va = D({
1560
1560
  inheritAttrs: !1,
1561
1561
  props: {
1562
- ...pe,
1563
- ...xt()
1562
+ ...Se,
1563
+ ...It()
1564
1564
  },
1565
1565
  setup: (e, {
1566
1566
  slots: t,
1567
1567
  expose: a,
1568
- attrs: o
1568
+ attrs: u
1569
1569
  }) => {
1570
1570
  const {
1571
1571
  elementMap: n
1572
- } = oe(), r = e.elementMap || n, u = g(n, B.TableKey), l = () => ({
1572
+ } = oe(), r = e.elementMap || n, o = g(n, q.TableKey), l = () => ({
1573
1573
  title: "\u5E8F\u53F7",
1574
1574
  dataIndex: "serialNumber",
1575
1575
  width: 80,
1576
1576
  ...e.column,
1577
- ...Ie(e.serialNumber) ? void 0 : e.serialNumber,
1577
+ ...we(e.serialNumber) ? void 0 : e.serialNumber,
1578
1578
  customRender: ({
1579
1579
  index: c
1580
1580
  }) => {
1581
- var y, i;
1582
- return ((y = e.paginationState) == null ? void 0 : y.page) && ((i = e.paginationState) == null ? void 0 : i.pageSize) ? e.paginationState.pageSize * (e.paginationState.page - 1) + c + 1 : c + 1;
1581
+ var f, v;
1582
+ return ((f = e.paginationState) == null ? void 0 : f.page) && ((v = e.paginationState) == null ? void 0 : v.pageSize) ? e.paginationState.pageSize * (e.paginationState.page - 1) + c + 1 : c + 1;
1583
1583
  }
1584
- }), s = (c, y) => {
1585
- var i;
1586
- if (e.operateItemClickMap && e.operateItemClickMap[y.value]) {
1587
- e.operateItemClickMap[y.value](c, y);
1584
+ }), s = (c, f) => {
1585
+ var v;
1586
+ if (e.operateItemClickMap && e.operateItemClickMap[f.value]) {
1587
+ e.operateItemClickMap[f.value](c, f);
1588
1588
  return;
1589
1589
  }
1590
- (i = y.onClick) == null || i.call(y, c);
1591
- }, f = fe(t, "operate"), h = () => {
1592
- const c = e.operate, y = $(c.items, (i) => ({
1593
- ...g(e.operateItemState, i.value),
1594
- ...i,
1595
- ...g(c.itemState, i.value)
1590
+ (v = f.onClick) == null || v.call(f, c);
1591
+ }, d = fe(t, "operate"), S = () => {
1592
+ const c = e.operate, f = $(c.items, (v) => ({
1593
+ ...g(e.operateItemState, v.value),
1594
+ ...v,
1595
+ ...g(c.itemState, v.value)
1596
1596
  }));
1597
1597
  return {
1598
1598
  ...e.column,
@@ -1601,111 +1601,111 @@ const Kr = () => ({
1601
1601
  fixed: "right",
1602
1602
  ...c.column,
1603
1603
  customRender: ({
1604
- record: i
1604
+ record: v
1605
1605
  }) => {
1606
- const C = $(y, (A) => ({
1607
- ...A,
1608
- show: W(A.show) ? A.show(i) : A.show,
1609
- disabled: W(A.disabled) ? A.disabled(i) : A.disabled,
1610
- loading: W(A.loading) ? A.loading(i) : A.loading,
1611
- extraProps: W(A.extraProps) ? A.extraProps(i) : A.extraProps,
1612
- element: W(A.element) ? (X) => A.element(i, X) : A.element,
1613
- onClick: () => s(i, A),
1614
- tip: W(A.tip) ? A.tip(i) : A.tip,
1615
- tipProps: W(A.tipProps) ? A.tipProps(i) : A.tipProps
1616
- })), F = re(Q(f), (A, X) => ({
1617
- ...A,
1618
- [X]: (I) => {
1619
- var j;
1620
- return (j = f[X]) == null ? void 0 : j.call(f, i, I);
1606
+ const b = $(f, (x) => ({
1607
+ ...x,
1608
+ show: W(x.show) ? x.show(v) : x.show,
1609
+ disabled: W(x.disabled) ? x.disabled(v) : x.disabled,
1610
+ loading: W(x.loading) ? x.loading(v) : x.loading,
1611
+ extraProps: W(x.extraProps) ? x.extraProps(v) : x.extraProps,
1612
+ element: W(x.element) ? (G) => x.element(v, G) : x.element,
1613
+ onClick: () => s(v, x),
1614
+ tip: W(x.tip) ? x.tip(v) : x.tip,
1615
+ tipProps: W(x.tipProps) ? x.tipProps(v) : x.tipProps
1616
+ })), A = re(Y(d), (x, G) => ({
1617
+ ...x,
1618
+ [G]: (T) => {
1619
+ var L;
1620
+ return (L = d[G]) == null ? void 0 : L.call(d, v, T);
1621
1621
  }
1622
1622
  }), {});
1623
- return d(fn, {
1623
+ return i(mn, {
1624
1624
  class: `${e.clsName}-operate`,
1625
- items: C,
1626
- elementKey: c.elementKey || B.TableOperateKey
1627
- }, F);
1625
+ items: b,
1626
+ elementKey: c.elementKey || q.TableOperateKey
1627
+ }, A);
1628
1628
  }
1629
1629
  };
1630
- }, p = z([]), v = N(() => {
1630
+ }, P = H([]), y = I(() => {
1631
1631
  var c;
1632
1632
  return !!((c = e.toolbar) != null && c.columnSetting);
1633
- }), S = Pn(e, "columns"), P = N(() => {
1634
- if (!v.value)
1633
+ }), p = Pn(e, "columns"), C = I(() => {
1634
+ if (!y.value)
1635
1635
  return e.columns;
1636
- const c = re(p.value, (y, i) => ({
1637
- ...y,
1638
- [i]: !0
1636
+ const c = re(P.value, (f, v) => ({
1637
+ ...f,
1638
+ [v]: !0
1639
1639
  }), {});
1640
- return _(e.columns, (y) => g(c, y.dataIndex));
1641
- }), b = (c) => $(c, (y) => {
1642
- const i = {
1640
+ return X(e.columns, (f) => g(c, f.dataIndex));
1641
+ }), h = (c) => $(c, (f) => {
1642
+ const v = {
1643
1643
  ...e.column,
1644
- ...y
1645
- }, C = e.convertColumn ? e.convertColumn(i) : i;
1646
- return y.children && Y(y.children) > 0 ? (C.children = b(y.children), C) : (y.customRender || (C.customRender = ({
1647
- value: F
1648
- }) => typeof F > "u" || F === null || F === "" ? e.columnEmptyText : ct(r, y, {
1649
- value: F
1644
+ ...f
1645
+ }, b = e.convertColumn ? e.convertColumn(v) : v;
1646
+ return f.children && _(f.children) > 0 ? (b.children = h(f.children), b) : (f.customRender || (b.customRender = ({
1647
+ value: A
1648
+ }) => typeof A > "u" || A === null || A === "" ? e.columnEmptyText : st(r, f, {
1649
+ value: A
1650
1650
  }, {
1651
1651
  render: "tableRender"
1652
- }) || F), C);
1653
- }), T = N(() => {
1654
- const c = Be(P.value, e.columnState, e.columnState2), y = b(c);
1655
- return e.serialNumber && y.unshift(l()), e.operate && e.operate.items && he(e.operate.items, (i) => i.show) && y.push(h()), y;
1656
- }), w = N(() => {
1657
- var y, i;
1652
+ }) || A), b);
1653
+ }), O = I(() => {
1654
+ const c = Ve(C.value, e.columnState, e.columnState2), f = h(c);
1655
+ return e.serialNumber && f.unshift(l()), e.operate && e.operate.items && he(e.operate.items, (v) => v.show) && f.push(S()), f;
1656
+ }), w = I(() => {
1657
+ var f, v;
1658
1658
  const c = e.dataSource;
1659
- return c && (((y = e.mergeOpts) == null ? void 0 : y.rowNames) || ((i = e.mergeOpts) == null ? void 0 : i.colNames)) && qn(c, e.mergeOpts), c;
1660
- }), m = z();
1661
- $r({
1662
- columns: T,
1663
- originColumns: S,
1664
- selectIdsRef: p,
1659
+ return c && (((f = e.mergeOpts) == null ? void 0 : f.rowNames) || ((v = e.mergeOpts) == null ? void 0 : v.colNames)) && Un(c, e.mergeOpts), c;
1660
+ }), m = H();
1661
+ Rr({
1662
+ columns: O,
1663
+ originColumns: p,
1664
+ selectIdsRef: P,
1665
1665
  tableRef: m,
1666
1666
  toolbar: e.toolbar,
1667
1667
  ...e.provideExtra
1668
1668
  }), a(Pe(e.tableMethods || [], m));
1669
- const M = z(), x = z(0), E = z(), O = z(!1), k = z(), U = z(!1);
1669
+ const M = H(), N = H(0), E = H(), K = H(!1), j = H(), B = H(!1);
1670
1670
  Re(M, (c) => {
1671
- const y = g(c, [0, "contentRect"]), i = window.getComputedStyle(M.value);
1672
- if (y.height && i) {
1673
- const C = i.getPropertyValue("margin-bottom"), F = parseInt(C.replace("px", ""));
1674
- x.value = y.height + F;
1671
+ const f = g(c, [0, "contentRect"]), v = window.getComputedStyle(M.value);
1672
+ if (f.height && v) {
1673
+ const b = v.getPropertyValue("margin-bottom"), A = parseInt(b.replace("px", ""));
1674
+ N.value = f.height + A;
1675
1675
  }
1676
1676
  }), Re(E, () => {
1677
- O.value = !!E.value.innerText;
1678
- }), Re(k, () => {
1679
- U.value = !!k.value.innerText;
1677
+ K.value = !!E.value.innerText;
1678
+ }), Re(j, () => {
1679
+ B.value = !!j.value.innerText;
1680
1680
  });
1681
- const q = N(() => U.value || O.value ? `${e.clsName}-toolbar-valid` : ""), H = Q(xt()), G = fe(t, "columnSetting");
1681
+ const U = I(() => B.value || K.value ? `${e.clsName}-toolbar-valid` : ""), z = Y(It()), te = fe(t, "columnSetting");
1682
1682
  return () => {
1683
- var y, i;
1684
- if (!u)
1683
+ var f, v;
1684
+ if (!o)
1685
1685
  return null;
1686
- const c = v.value ? d(Dr, (y = e.toolbar) == null ? void 0 : y.columnSetting, G) : null;
1687
- return d("div", R({
1686
+ const c = y.value ? i(Dr, (f = e.toolbar) == null ? void 0 : f.columnSetting, te) : null;
1687
+ return i("div", R({
1688
1688
  class: e.clsName,
1689
- style: `--pro-table-toolbar-hei: ${x.value}px`
1690
- }, Z(o, "class")), [d("div", {
1689
+ style: `--pro-table-toolbar-hei: ${N.value}px`
1690
+ }, J(u, "class")), [i("div", {
1691
1691
  ref: M,
1692
- class: `${e.clsName}-toolbar ${q.value}`
1693
- }, [d("div", {
1692
+ class: `${e.clsName}-toolbar ${U.value}`
1693
+ }, [i("div", {
1694
1694
  ref: E,
1695
1695
  class: `${e.clsName}-toolbar-start`
1696
- }, [(i = t.toolbar) == null ? void 0 : i.call(t)]), d("div", {
1697
- ref: k,
1696
+ }, [(v = t.toolbar) == null ? void 0 : v.call(t)]), i("div", {
1697
+ ref: j,
1698
1698
  class: `${e.clsName}-toolbar-extra`
1699
- }, [t.toolbarExtra ? t.toolbarExtra([c]) : d(le, null, [c])])]), d(u, R({
1699
+ }, [t.toolbarExtra ? t.toolbarExtra([c]) : i(le, null, [c])])]), i(o, R({
1700
1700
  ref: m
1701
- }, D(o, "class"), D(e, H), {
1701
+ }, F(u, "class"), F(e, z), {
1702
1702
  mergeOpts: e.mergeOpts,
1703
1703
  dataSource: w.value,
1704
- columns: T.value
1704
+ columns: O.value
1705
1705
  }), t)]);
1706
1706
  };
1707
1707
  }
1708
- }), Fr = () => ({
1708
+ }), vn = Symbol("pro-layout"), dt = () => ye(vn), $r = () => ({
1709
1709
  title: {
1710
1710
  type: String
1711
1711
  },
@@ -1724,14 +1724,14 @@ const Kr = () => ({
1724
1724
  type: Function,
1725
1725
  default: () => "\u8FD4\u56DE"
1726
1726
  }
1727
- }), We = K({
1727
+ }), Ge = D({
1728
1728
  props: {
1729
- ...Fr()
1729
+ ...$r()
1730
1730
  },
1731
1731
  setup: (e, {
1732
1732
  slots: t
1733
1733
  }) => {
1734
- const a = at(), o = () => {
1734
+ const a = ot(), u = () => {
1735
1735
  var n;
1736
1736
  if (e.onBackClick) {
1737
1737
  (n = e.onBackClick) == null || n.call(e);
@@ -1740,22 +1740,22 @@ const Kr = () => ({
1740
1740
  a.back();
1741
1741
  };
1742
1742
  return () => {
1743
- var r, u, l, s, f;
1744
- const n = e.hideWhileNoHistory && ((u = (r = window.history) == null ? void 0 : r.state) == null ? void 0 : u.back) || e.hideWhileNoHistory === !1;
1745
- return d("div", {
1743
+ var r, o, l, s, d;
1744
+ const n = e.hideWhileNoHistory && ((o = (r = window.history) == null ? void 0 : r.state) == null ? void 0 : o.back) || e.hideWhileNoHistory === !1;
1745
+ return i("div", {
1746
1746
  class: "pro-page-header"
1747
- }, [e.showBack && n && d("div", {
1747
+ }, [e.showBack && n && i("div", {
1748
1748
  class: "pro-page-header-back",
1749
- onClick: o
1750
- }, [t.backIcon ? t.backIcon() : (l = e.renderBackIcon) == null ? void 0 : l.call(e)]), d("div", {
1749
+ onClick: u
1750
+ }, [t.backIcon ? t.backIcon() : (l = e.renderBackIcon) == null ? void 0 : l.call(e)]), i("div", {
1751
1751
  class: "pro-page-header-title"
1752
- }, [t.title ? t.title() : e.title]), d("div", {
1752
+ }, [t.title ? t.title() : e.title]), i("div", {
1753
1753
  class: "pro-page-header-sub-title"
1754
- }, [t.subTitle ? t.subTitle() : e.subTitle]), d("div", {
1754
+ }, [t.subTitle ? t.subTitle() : e.subTitle]), i("div", {
1755
1755
  class: "pro-page-header-space"
1756
- }, [(s = t.space) == null ? void 0 : s.call(t)]), d("div", {
1756
+ }, [(s = t.space) == null ? void 0 : s.call(t)]), i("div", {
1757
1757
  class: "pro-page-header-extra"
1758
- }, [(f = t.extra) == null ? void 0 : f.call(t)])]);
1758
+ }, [(d = t.extra) == null ? void 0 : d.call(t)])]);
1759
1759
  };
1760
1760
  }
1761
1761
  }), Lr = () => ({
@@ -1770,43 +1770,55 @@ const Kr = () => ({
1770
1770
  },
1771
1771
  as: {
1772
1772
  type: String
1773
+ },
1774
+ layoutTabsBackMode: {
1775
+ type: Boolean
1773
1776
  }
1774
- }), Va = K({
1777
+ }), za = D({
1775
1778
  props: {
1776
- ...We.props,
1779
+ ...Ge.props,
1777
1780
  ...Lr()
1778
1781
  },
1779
1782
  setup: (e, {
1780
1783
  slots: t
1781
1784
  }) => {
1782
- const a = ee(), o = a(B.LoadingKey), n = e.as || a(B.ScrollKey) || "div", r = () => o ? d(o, R({
1785
+ const a = dt(), u = I(() => {
1786
+ if (!e.layoutTabsBackMode || !a)
1787
+ return e.showBack;
1788
+ const {
1789
+ showTabs: d
1790
+ } = a;
1791
+ return d.value ? !1 : e.showBack;
1792
+ }), n = ee(), r = n(q.LoadingKey), o = e.as || n(q.ScrollKey) || "div", l = () => r ? i(r, R({
1783
1793
  loading: !0
1784
1794
  }, e.loadingOpts), {
1785
- default: () => [d("div", {
1795
+ default: () => [i("div", {
1786
1796
  class: "pro-loading-dom"
1787
1797
  }, null)]
1788
- }) : null, u = Q(We.props);
1798
+ }) : null, s = Y(Ge.props).filter((d) => d !== "showBack");
1789
1799
  return () => {
1790
1800
  var p;
1791
- const l = e.title || t.title || e.subTitle || t.subTitle || t.extra, s = (p = t.footer) == null ? void 0 : p.call(t), f = !e.loading && Ye(s), h = ["pro-page"];
1792
- return e.fillMode && h.push("pro-page-fill"), l && h.push("has-header"), f && h.push("has-footer"), d(n, {
1793
- class: h
1801
+ const d = e.title || t.title || e.subTitle || t.subTitle || t.extra, S = (p = t.footer) == null ? void 0 : p.call(t), P = !e.loading && Qe(S), y = ["pro-page"];
1802
+ return e.fillMode && y.push("pro-page-fill"), d && y.push("has-header"), P && y.push("has-footer"), i(o, {
1803
+ class: y
1794
1804
  }, {
1795
1805
  default: () => {
1796
- var v, S;
1797
- return [(v = t.start) == null ? void 0 : v.call(t), l && d(We, Z(e, u), D(t, "start", "default", "footer")), d("div", {
1806
+ var C, h;
1807
+ return [(C = t.start) == null ? void 0 : C.call(t), d && i(Ge, R(J(e, s), {
1808
+ showBack: u.value
1809
+ }), F(t, "start", "default", "footer")), i("div", {
1798
1810
  class: "pro-page-content"
1799
- }, [e.loading ? r() : (S = t.default) == null ? void 0 : S.call(t)]), f && d("div", {
1811
+ }, [e.loading ? l() : (h = t.default) == null ? void 0 : h.call(t)]), P && i("div", {
1800
1812
  class: "pro-page-footer"
1801
- }, [s])];
1813
+ }, [S])];
1802
1814
  }
1803
1815
  });
1804
1816
  };
1805
1817
  }
1806
- }), jr = Object.freeze({
1818
+ }), kr = Object.freeze({
1807
1819
  page: 1,
1808
1820
  pageSize: 10
1809
- }), kr = () => ({
1821
+ }), jr = () => ({
1810
1822
  clsName: {
1811
1823
  type: String,
1812
1824
  default: "pro-list"
@@ -1840,43 +1852,43 @@ const Kr = () => ({
1840
1852
  end: {
1841
1853
  type: Function
1842
1854
  }
1843
- }), Ur = K({
1855
+ }), Br = D({
1844
1856
  props: {
1845
- ...kr()
1857
+ ...jr()
1846
1858
  },
1847
1859
  setup: (e, {
1848
1860
  slots: t,
1849
1861
  emit: a
1850
1862
  }) => {
1851
- const o = ee(), n = o(B.ProSearchFormKey), r = o(B.ProTableKey), u = o(B.PaginationKey), l = e.pageState || be({
1852
- ...jr
1863
+ const u = ee(), n = u(q.ProSearchFormKey), r = u(q.ProTableKey), o = u(q.PaginationKey), l = e.pageState || be({
1864
+ ...kr
1853
1865
  });
1854
1866
  let s;
1855
- const f = () => {
1867
+ const d = () => {
1856
1868
  a("search", {
1857
1869
  ...s,
1858
1870
  ...l
1859
1871
  });
1860
- }, h = (b, T) => {
1861
- s = b, l.page = T || 1, f();
1862
- }, p = (b, T) => {
1863
- l.page = b, l.pageSize = T, f();
1864
- }, v = fe(t, "search"), S = fe(t, "table"), P = fe(t, "pagination");
1872
+ }, S = (h, O) => {
1873
+ s = h, l.page = O || 1, d();
1874
+ }, P = (h, O) => {
1875
+ l.page = h, l.pageSize = O, d();
1876
+ }, y = fe(t, "search"), p = fe(t, "table"), C = fe(t, "pagination");
1865
1877
  return () => {
1866
- var T, w, m, M, x, E, O, k;
1867
- const b = t.search ? t.search({
1868
- executeSearchWithResetPage: h,
1878
+ var O, w, m, M, N, E, K, j;
1879
+ const h = t.search ? t.search({
1880
+ executeSearchWithResetPage: S,
1869
1881
  pageState: l
1870
- }) : d(le, null, [n && d(n, R({
1882
+ }) : i(le, null, [n && i(n, R({
1871
1883
  class: `${e.clsName}-search`
1872
- }, D(e.searchProps, "onFinish"), {
1873
- onFinish: (U) => h(U)
1874
- }), v)]);
1875
- return d("div", {
1884
+ }, F(e.searchProps, "onFinish"), {
1885
+ onFinish: (B) => S(B)
1886
+ }), y)]);
1887
+ return i("div", {
1876
1888
  class: e.clsName
1877
- }, [((T = t.start) == null ? void 0 : T.call(t)) || ((w = e.start) == null ? void 0 : w.call(e)), !e.searchInTable && b, ((m = t.divide) == null ? void 0 : m.call(t)) || ((M = e.divide) == null ? void 0 : M.call(e)), t.table ? t.table({
1889
+ }, [((O = t.start) == null ? void 0 : O.call(t)) || ((w = e.start) == null ? void 0 : w.call(e)), !e.searchInTable && h, ((m = t.divide) == null ? void 0 : m.call(t)) || ((M = e.divide) == null ? void 0 : M.call(e)), t.table ? t.table({
1878
1890
  pageState: l
1879
- }) : d(le, null, [r && d(r, R({
1891
+ }) : i(le, null, [r && i(r, R({
1880
1892
  class: `${e.clsName}-table`,
1881
1893
  paginationState: {
1882
1894
  page: l.page,
@@ -1884,21 +1896,21 @@ const Kr = () => ({
1884
1896
  },
1885
1897
  pagination: !1
1886
1898
  }, e.tableProps), {
1887
- ...S,
1888
- toolbar: e.searchInTable ? () => S.toolbar ? S.toolbar(b) : b : S.toolbar
1889
- })]), ((x = t.divide2) == null ? void 0 : x.call(t)) || ((E = e.divide2) == null ? void 0 : E.call(e)), t.pagination ? t.pagination({
1890
- executePageChange: p,
1899
+ ...p,
1900
+ toolbar: e.searchInTable ? () => p.toolbar ? p.toolbar(h) : h : p.toolbar
1901
+ })]), ((N = t.divide2) == null ? void 0 : N.call(t)) || ((E = e.divide2) == null ? void 0 : E.call(e)), t.pagination ? t.pagination({
1902
+ executePageChange: P,
1891
1903
  pageState: l
1892
- }) : d(le, null, [e.paginationProps !== !1 && u && d("div", {
1904
+ }) : i(le, null, [e.paginationProps !== !1 && o && i("div", {
1893
1905
  class: `${e.clsName}-pagination`
1894
- }, [d(u, R(D(Ie(e.paginationProps) ? {} : e.paginationProps, "onChange"), {
1906
+ }, [i(o, R(F(we(e.paginationProps) ? {} : e.paginationProps, "onChange"), {
1895
1907
  page: l.page,
1896
1908
  pageSize: l.pageSize,
1897
- onComposeChange: p
1898
- }), P)])]), ((O = t.end) == null ? void 0 : O.call(t)) || ((k = e.end) == null ? void 0 : k.call(e))]);
1909
+ onComposeChange: P
1910
+ }), C)])]), ((K = t.end) == null ? void 0 : K.call(t)) || ((j = e.end) == null ? void 0 : j.call(e))]);
1899
1911
  };
1900
1912
  }
1901
- }), It = () => ({
1913
+ }), wt = () => ({
1902
1914
  clsName: {
1903
1915
  type: String,
1904
1916
  default: "pro-desc"
@@ -1906,57 +1918,57 @@ const Kr = () => ({
1906
1918
  model: {
1907
1919
  type: Object
1908
1920
  }
1909
- }), qr = K({
1921
+ }), Ur = D({
1910
1922
  props: {
1911
- ...pe,
1912
- ...It()
1923
+ ...Se,
1924
+ ...wt()
1913
1925
  },
1914
1926
  setup: (e, {
1915
1927
  slots: t
1916
1928
  }) => {
1917
1929
  const {
1918
1930
  elementMap: a
1919
- } = oe(), o = e.elementMap || a, n = ee(), r = n(B.DescriptionsKey), u = n(B.DescriptionsItemKey), l = N(() => Be(e.columns, e.columnState, e.columnState2)), s = Q(pe), f = Q(It());
1920
- return () => !r || !u ? null : d(r, R({
1931
+ } = oe(), u = e.elementMap || a, n = ee(), r = n(q.DescriptionsKey), o = n(q.DescriptionsItemKey), l = I(() => Ve(e.columns, e.columnState, e.columnState2)), s = Y(Se), d = Y(wt());
1932
+ return () => !r || !o ? null : i(r, R({
1921
1933
  class: e.clsName
1922
- }, D(e, ...s, ...f, "model")), {
1934
+ }, F(e, ...s, ...d, "model")), {
1923
1935
  default: () => {
1924
- var h, p;
1925
- return [(h = t.start) == null ? void 0 : h.call(t), $(l.value, (v) => {
1926
- const S = v.dataIndex, P = g(e.model, S);
1927
- return d(u, R({
1936
+ var S, P;
1937
+ return [(S = t.start) == null ? void 0 : S.call(t), $(l.value, (y) => {
1938
+ const p = y.dataIndex, C = g(e.model, p);
1939
+ return i(o, R({
1928
1940
  class: `${e.clsName}-item`
1929
- }, g(v.extra, "desc")), {
1941
+ }, g(y.extra, "desc")), {
1930
1942
  default: () => {
1931
- var b, T;
1932
- return [((b = t[S]) == null ? void 0 : b.call(t, P, v)) || ((T = t.value) == null ? void 0 : T.call(t, P, v)) || ct(o, v, {
1933
- value: P
1943
+ var h, O;
1944
+ return [((h = t[p]) == null ? void 0 : h.call(t, C, y)) || ((O = t.value) == null ? void 0 : O.call(t, C, y)) || st(u, y, {
1945
+ value: C
1934
1946
  }, {
1935
1947
  render: "descRender"
1936
1948
  })];
1937
1949
  },
1938
1950
  label: () => {
1939
- var b;
1940
- return ((b = t.label) == null ? void 0 : b.call(t, v)) || v.title;
1951
+ var h;
1952
+ return ((h = t.label) == null ? void 0 : h.call(t, y)) || y.title;
1941
1953
  }
1942
1954
  });
1943
- }), (p = t.default) == null ? void 0 : p.call(t)];
1955
+ }), (P = t.default) == null ? void 0 : P.call(t)];
1944
1956
  },
1945
1957
  ...t
1946
1958
  });
1947
1959
  }
1948
- }), yn = (e, t) => Ze(e) ? e : e || t, Br = () => ({
1960
+ }), hn = (e, t) => et(e) ? e : e || t, qr = () => ({
1949
1961
  value: {
1950
1962
  type: [String, Number]
1951
1963
  },
1952
1964
  emptyText: {
1953
1965
  type: String
1954
1966
  }
1955
- }), za = K({
1967
+ }), Ha = D({
1956
1968
  props: {
1957
- ...Br()
1969
+ ...qr()
1958
1970
  },
1959
- setup: (e) => () => yn(e.value, e.emptyText)
1971
+ setup: (e) => () => hn(e.value, e.emptyText)
1960
1972
  }), Vr = () => ({
1961
1973
  content: {
1962
1974
  type: [String, Number]
@@ -1968,7 +1980,7 @@ const Kr = () => ({
1968
1980
  emptyText: {
1969
1981
  type: String
1970
1982
  }
1971
- }), zr = K({
1983
+ }), zr = D({
1972
1984
  inheritAttrs: !1,
1973
1985
  props: {
1974
1986
  ...Vr()
@@ -1976,22 +1988,22 @@ const Kr = () => ({
1976
1988
  setup: (e, {
1977
1989
  attrs: t
1978
1990
  }) => {
1979
- const o = ee()(B.PopoverKey), n = () => {
1980
- var r, u;
1981
- return e.ellipsis ? e.ellipsis === !0 ? 1 : ((r = e.ellipsis) == null ? void 0 : r.rows) || ((u = e.ellipsis) == null ? void 0 : u.num) || 1 : "unset";
1991
+ const u = ee()(q.PopoverKey), n = () => {
1992
+ var r, o;
1993
+ return e.ellipsis ? e.ellipsis === !0 ? 1 : ((r = e.ellipsis) == null ? void 0 : r.rows) || ((o = e.ellipsis) == null ? void 0 : o.num) || 1 : "unset";
1982
1994
  };
1983
1995
  return () => {
1984
- const r = d("span", R({
1996
+ const r = i("span", R({
1985
1997
  class: `pro-typography ${e.ellipsis ? "pro-typography-ellipsis" : ""}`,
1986
1998
  style: `-webkit-line-clamp:${n()}`
1987
- }, t), [yn(e.content, e.emptyText)]);
1988
- return !e.popoverProps || !o ? r : d(o, e.popoverProps, {
1999
+ }, t), [hn(e.content, e.emptyText)]);
2000
+ return !e.popoverProps || !u ? r : i(u, e.popoverProps, {
1989
2001
  default: () => [r],
1990
2002
  content: () => e.content
1991
2003
  });
1992
2004
  };
1993
2005
  }
1994
- }), Ae = {
2006
+ }), De = {
1995
2007
  value: {
1996
2008
  type: [String, Number]
1997
2009
  },
@@ -2000,28 +2012,32 @@ const Kr = () => ({
2000
2012
  },
2001
2013
  convert: {
2002
2014
  type: Function
2015
+ },
2016
+ render: {
2017
+ type: Function,
2018
+ default: void 0
2003
2019
  }
2004
- }, ze = K({
2020
+ }, He = D({
2005
2021
  inheritAttrs: !1,
2006
2022
  props: {
2007
- ...Ae
2023
+ ...De
2008
2024
  },
2009
2025
  setup: (e, {
2010
2026
  attrs: t
2011
2027
  }) => {
2012
- const a = N(() => {
2028
+ const a = I(() => {
2013
2029
  var r;
2014
- const o = (r = e.showProps) == null ? void 0 : r.content, n = e.value || Ze(e.value) ? e.value : o;
2030
+ const u = (r = e.showProps) == null ? void 0 : r.content, n = e.value || et(e.value) ? e.value : u;
2015
2031
  return e.convert ? e.convert(n, e) : n;
2016
2032
  });
2017
- return () => d(zr, R(Z(t, "style", "class"), D(e.showProps, "content"), {
2033
+ return () => i(zr, R(J(t, "style", "class"), F(e.showProps, "content"), {
2018
2034
  content: a.value
2019
2035
  }), null);
2020
2036
  }
2021
- }), Ha = K({
2037
+ }), Wa = D({
2022
2038
  inheritAttrs: !1,
2023
2039
  props: {
2024
- ...Ae,
2040
+ ...De,
2025
2041
  decimalFixed: {
2026
2042
  type: Number,
2027
2043
  default: 0
@@ -2034,19 +2050,24 @@ const Kr = () => ({
2034
2050
  setup: (e, {
2035
2051
  attrs: t
2036
2052
  }) => {
2037
- const a = N(() => {
2038
- let o = e.value;
2039
- return o && e.decimalFixed && (o = Bn(o, e.decimalFixed || 2)), o && e.thousandDivision && (o = Vn(o)), e.convert ? e.convert(o, e) : o;
2053
+ const a = I(() => {
2054
+ let u = e.value;
2055
+ return u && e.decimalFixed && (u = qn(u, e.decimalFixed || 2)), u && e.thousandDivision && (u = Vn(u)), e.convert ? e.convert(u, e) : u;
2040
2056
  });
2041
- return () => d(ze, R(Z(t, "style", "class"), {
2057
+ return () => e.render ? e.render({
2058
+ value: a.value,
2059
+ props: e
2060
+ }) : i(He, R({
2061
+ class: "pro-show-digit"
2062
+ }, J(t, "style", "class"), {
2042
2063
  value: a.value,
2043
2064
  showProps: e.showProps
2044
2065
  }), null);
2045
2066
  }
2046
- }), Wa = K({
2067
+ }), Ga = D({
2047
2068
  inheritAttrs: !1,
2048
2069
  props: {
2049
- ...Ae,
2070
+ ...De,
2050
2071
  value: {
2051
2072
  type: [String, Number, Array]
2052
2073
  },
@@ -2062,21 +2083,27 @@ const Kr = () => ({
2062
2083
  setup: (e, {
2063
2084
  attrs: t
2064
2085
  }) => {
2065
- const a = N(() => zn(e.options, (r) => r.label), void 0), o = N(() => {
2086
+ const a = I(() => zn(e.options, (r) => r.label), void 0), u = I(() => {
2066
2087
  const r = e.value;
2067
- let u = e.value;
2068
- return J(r) ? u = et($(r, (l) => g(a.value, l, l)), e.splitStr) : u = g(a.value, r, e.value), e.convert ? e.convert(u, e) : u;
2069
- }), n = N(() => g(e.colorMap, e.value));
2070
- return () => d(ze, R(Z(t, "style", "class"), {
2088
+ let o = e.value;
2089
+ return Q(r) ? o = tt($(r, (l) => g(a.value, l, l)), e.splitStr) : o = g(a.value, r, e.value), e.convert ? e.convert(o, e) : o;
2090
+ }), n = I(() => g(e.colorMap, e.value));
2091
+ return () => e.render ? e.render({
2092
+ color: n.value,
2093
+ value: u.value,
2094
+ props: e
2095
+ }) : i(He, R({
2096
+ class: "pro-show-options"
2097
+ }, J(t, "style", "class"), {
2071
2098
  style: `color:${n.value || ""}`,
2072
- value: o.value,
2099
+ value: u.value,
2073
2100
  showProps: e.showProps
2074
2101
  }), null);
2075
2102
  }
2076
- }), Ga = K({
2103
+ }), Xa = D({
2077
2104
  inheritAttrs: !1,
2078
2105
  props: {
2079
- ...Ae,
2106
+ ...De,
2080
2107
  value: {
2081
2108
  type: [String, Number, Array]
2082
2109
  },
@@ -2093,25 +2120,30 @@ const Kr = () => ({
2093
2120
  setup: (e, {
2094
2121
  attrs: t
2095
2122
  }) => {
2096
- const a = N(() => {
2123
+ const a = I(() => {
2097
2124
  const n = e.treeData || e.data || e.options, r = e.fieldNames || e.props;
2098
- return Vt(n, (u) => g(u, (r == null ? void 0 : r.label) || "label"), {
2125
+ return zt(n, (o) => g(o, (r == null ? void 0 : r.label) || "label"), {
2099
2126
  value: "value",
2100
2127
  children: "children",
2101
2128
  ...r
2102
2129
  });
2103
- }), o = N(() => {
2130
+ }), u = I(() => {
2104
2131
  let n = e.value;
2105
- return J(e.value) ? n = et($(e.value, (r) => g(a.value, r, r)), e.splitStr) : n = g(a.value, e.value, e.value), e.convert ? e.convert(n, e) : n;
2132
+ return Q(e.value) ? n = tt($(e.value, (r) => g(a.value, r, r)), e.splitStr) : n = g(a.value, e.value, e.value), e.convert ? e.convert(n, e) : n;
2106
2133
  });
2107
- return () => d(ze, R(Z(t, "style", "class"), {
2108
- value: o.value,
2134
+ return () => e.render ? e.render({
2135
+ value: u.value,
2136
+ props: e
2137
+ }) : i(He, R({
2138
+ class: "pro-show-tree"
2139
+ }, J(t, "style", "class"), {
2140
+ value: u.value,
2109
2141
  showProps: e.showProps
2110
2142
  }), null);
2111
2143
  }
2112
- }), Xa = K({
2144
+ }), _a = D({
2113
2145
  props: {
2114
- ...Ae,
2146
+ ...De,
2115
2147
  value: {
2116
2148
  type: [String, Number, Array]
2117
2149
  },
@@ -2131,16 +2163,54 @@ const Kr = () => ({
2131
2163
  setup: (e, {
2132
2164
  attrs: t
2133
2165
  }) => {
2134
- const a = (n) => n && (e.isUnix ? Pt.unix(n).format(e.format) : Pt(n).format(e.format)), o = N(() => {
2166
+ const a = (n) => n && (e.isUnix ? Ct.unix(n).format(e.format) : Ct(n).format(e.format)), u = I(() => {
2135
2167
  let n = e.value;
2136
- return J(e.value) ? n = et($(e.value, (r) => a(r) || ""), e.splitStr) : n = a(e.value) || "", e.convert ? e.convert(n, e) : n;
2168
+ return Q(e.value) ? n = tt($(e.value, (r) => a(r) || ""), e.splitStr) : n = a(e.value) || "", e.convert ? e.convert(n, e) : n;
2137
2169
  });
2138
- return () => d(ze, R(Z(t, "style", "class"), {
2139
- value: o.value,
2170
+ return () => e.render ? e.render({
2171
+ value: u.value,
2172
+ props: e
2173
+ }) : i(He, R({
2174
+ class: "pro-show-date"
2175
+ }, J(t, "style", "class"), {
2176
+ value: u.value,
2140
2177
  showProps: e.showProps
2141
2178
  }), null);
2142
2179
  }
2143
- }), vn = Symbol("pro-layout"), hn = () => ye(vn), Hr = () => ({
2180
+ }), Hr = () => ({
2181
+ convertValue: {
2182
+ type: Function
2183
+ },
2184
+ includes: {
2185
+ type: Array
2186
+ }
2187
+ }), Wr = D({
2188
+ props: {
2189
+ ...Hr()
2190
+ },
2191
+ setup: (e) => {
2192
+ const {
2193
+ tabs: t,
2194
+ refreshRef: a,
2195
+ showTabs: u
2196
+ } = dt(), {
2197
+ route: n
2198
+ } = ze(), r = I(() => {
2199
+ if (!u.value)
2200
+ return e.includes || [];
2201
+ const o = $(t.value, (l) => e.convertValue ? e.convertValue(l) : l.value);
2202
+ return a.value ? X(o, (l) => l !== n.name) : o;
2203
+ });
2204
+ return () => i(Jn, null, {
2205
+ default: ({
2206
+ Component: o,
2207
+ route: l
2208
+ }) => (o && o.type && !o.type.name && l.name && (o.type.name = l.name), i(Cn, {
2209
+ include: r.value
2210
+ }, [a.value ? null : i(o, null, null)]))
2211
+ });
2212
+ }
2213
+ }), Gr = () => ({
2144
2214
  isHideClose: {
2145
2215
  type: Function
2146
2216
  },
@@ -2156,51 +2226,51 @@ const Kr = () => ({
2156
2226
  onDragRegister: {
2157
2227
  type: Function
2158
2228
  }
2159
- }), Wr = K({
2229
+ }), Xr = D({
2160
2230
  props: {
2161
- ...Hr()
2231
+ ...Gr()
2162
2232
  },
2163
2233
  setup: (e) => {
2164
2234
  const {
2165
2235
  router: t,
2166
2236
  route: a
2167
- } = Ve(), {
2168
- menuMap: o,
2237
+ } = ze(), {
2238
+ menuMap: u,
2169
2239
  tabs: n,
2170
2240
  refresh: r
2171
- } = hn(), u = be({
2241
+ } = dt(), o = be({
2172
2242
  ctxMenuPos: null,
2173
2243
  ctxMenuItem: null
2174
- }), l = (c) => e.isHideClose ? e.isHideClose(c) : !1, s = N(() => {
2175
- var y;
2176
- const c = ((y = e.convertName) == null ? void 0 : y.call(e, a)) || a.name;
2177
- return g(o.value, c);
2244
+ }), l = (c) => e.isHideClose ? e.isHideClose(c) : !1, s = I(() => {
2245
+ var f;
2246
+ const c = ((f = e.convertName) == null ? void 0 : f.call(e, a)) || a.name;
2247
+ return g(u.value, c);
2178
2248
  });
2179
2249
  ae(() => {
2180
2250
  const c = s.value;
2181
2251
  if (!c)
2182
2252
  return;
2183
- let y = _e(n.value, (i) => i.value === c.value);
2184
- if (y) {
2253
+ let f = Ye(n.value, (v) => v.value === c.value);
2254
+ if (f) {
2185
2255
  if (c.hide) {
2186
- const i = ke(y.query) || "{}", C = ke(c.query) || "{}";
2187
- if (i !== C) {
2188
- const F = {
2256
+ const v = Be(f.query) || "{}", b = Be(a.query) || "{}";
2257
+ if (v !== b) {
2258
+ const A = {
2189
2259
  ...c,
2190
2260
  query: a.query
2191
2261
  };
2192
- n.value = $($(n.value, (A) => A.value === c.value ? F : A)), S(F);
2262
+ n.value = $($(n.value, (x) => x.value === c.value ? A : x)), p(A);
2193
2263
  }
2194
2264
  }
2195
2265
  } else {
2196
- const i = c.hide ? {
2266
+ const v = c.hide ? {
2197
2267
  ...c,
2198
2268
  query: a.query
2199
2269
  } : c;
2200
- n.value = [...n.value, i];
2270
+ n.value = [...n.value, v];
2201
2271
  }
2202
2272
  }, a);
2203
- const f = (c) => {
2273
+ const d = (c) => {
2204
2274
  if (c.hide) {
2205
2275
  t.push({
2206
2276
  name: c.value,
@@ -2209,71 +2279,71 @@ const Kr = () => ({
2209
2279
  return;
2210
2280
  }
2211
2281
  t.openMenu(c);
2212
- }, h = (c) => {
2213
- var y;
2282
+ }, S = (c) => {
2283
+ var f;
2214
2284
  if (!l(c)) {
2215
- if (c.value === ((y = s.value) == null ? void 0 : y.value)) {
2216
- const i = Dn(n.value, (C) => C.value === s.value.value);
2217
- n.value[i + 1] ? f(n.value[i + 1]) : n.value[i - 1] && f(n.value[i - 1]);
2285
+ if (c.value === ((f = s.value) == null ? void 0 : f.value)) {
2286
+ const v = Dn(n.value, (b) => b.value === s.value.value);
2287
+ n.value[v + 1] ? d(n.value[v + 1]) : n.value[v - 1] && d(n.value[v - 1]);
2218
2288
  }
2219
- n.value = _(n.value, (i) => i.value !== c.value);
2289
+ n.value = X(n.value, (v) => v.value !== c.value);
2220
2290
  }
2221
- }, p = (c) => {
2222
- var y;
2223
- c.value !== ((y = s.value) == null ? void 0 : y.value) && f(s.value), n.value = _(n.value, (i) => i.value === c.value ? !0 : l(c));
2224
- }, v = () => {
2291
+ }, P = (c) => {
2292
+ var f;
2293
+ c.value !== ((f = s.value) == null ? void 0 : f.value) && d(s.value), n.value = X(n.value, (v) => v.value === c.value ? !0 : l(c));
2294
+ }, y = () => {
2225
2295
  if (!s.value || !l(s.value)) {
2226
- const c = _e(n.value, (y) => l(y));
2296
+ const c = Ye(n.value, (f) => l(f));
2227
2297
  c && t.openMenu(c);
2228
2298
  }
2229
- n.value = _(n.value, (c) => l(c));
2230
- }, S = (c) => {
2299
+ n.value = X(n.value, (c) => l(c));
2300
+ }, p = (c) => {
2231
2301
  r(c);
2232
- }, P = (c, y) => {
2302
+ }, C = (c, f) => {
2233
2303
  c.preventDefault();
2234
- const i = c.target;
2235
- if (!i)
2304
+ const v = c.target;
2305
+ if (!v)
2236
2306
  return;
2237
- const C = i.getBoundingClientRect();
2238
- u.ctxMenuPos = {
2239
- x: C.x + C.width / 2,
2240
- y: C.y + C.height
2241
- }, u.ctxMenuItem = y;
2242
- }, b = (c) => {
2307
+ const b = v.getBoundingClientRect();
2308
+ o.ctxMenuPos = {
2309
+ x: b.x + b.width / 2,
2310
+ y: b.y + b.height
2311
+ }, o.ctxMenuItem = f;
2312
+ }, h = (c) => {
2243
2313
  c.preventDefault(), c.stopPropagation();
2244
- }, T = () => {
2245
- u.ctxMenuItem = null;
2246
- }, w = z(), [m, M] = tt(), x = (c) => {
2247
- const y = re(n.value, (i, C) => ({
2248
- ...i,
2249
- [C.value]: C
2314
+ }, O = () => {
2315
+ o.ctxMenuItem = null;
2316
+ }, w = H(), [m, M] = nt(), N = (c) => {
2317
+ const f = re(n.value, (v, b) => ({
2318
+ ...v,
2319
+ [b.value]: b
2250
2320
  }), {});
2251
- n.value = $(c, (i) => g(y, i)), M();
2321
+ n.value = $(c, (v) => g(f, v)), M();
2252
2322
  };
2253
2323
  ae(() => {
2254
2324
  !w.value || !e.onDragRegister || e.onDragRegister({
2255
2325
  dom: w.value,
2256
2326
  dataIdAttr: "data-url",
2257
- onDragEnd: x
2327
+ onDragEnd: N
2258
2328
  });
2259
2329
  }, [w]);
2260
- const E = z();
2330
+ const E = H();
2261
2331
  ae(() => {
2262
- var y;
2263
- const c = (y = E.value) == null ? void 0 : y.originRef;
2332
+ var f;
2333
+ const c = (f = E.value) == null ? void 0 : f.originRef;
2264
2334
  !c || c == null || c.handleOpen();
2265
2335
  }, E);
2266
- const O = (c) => {
2267
- c || (u.ctxMenuItem = null);
2268
- }, k = (c) => {
2269
- c === "refresh" ? S(u.ctxMenuItem) : c === "close" ? h(u.ctxMenuItem) : c === "close-other" ? p(u.ctxMenuItem) : c === "close-all" && v(), T();
2270
- }, U = N(() => {
2271
- var y, i;
2336
+ const K = (c) => {
2337
+ c || (o.ctxMenuItem = null);
2338
+ }, j = (c) => {
2339
+ c === "refresh" ? p(o.ctxMenuItem) : c === "close" ? S(o.ctxMenuItem) : c === "close-other" ? P(o.ctxMenuItem) : c === "close-all" && y(), O();
2340
+ }, B = I(() => {
2341
+ var f, v;
2272
2342
  const c = [];
2273
- return ((y = s.value) == null ? void 0 : y.value) === ((i = u.ctxMenuItem) == null ? void 0 : i.value) && c.push({
2343
+ return ((f = s.value) == null ? void 0 : f.value) === ((v = o.ctxMenuItem) == null ? void 0 : v.value) && c.push({
2274
2344
  label: "\u5237\u65B0",
2275
2345
  value: "refresh"
2276
- }), l(u.ctxMenuItem) || c.push({
2346
+ }), l(o.ctxMenuItem) || c.push({
2277
2347
  label: "\u5173\u95ED",
2278
2348
  value: "close"
2279
2349
  }), c.push({
@@ -2282,93 +2352,65 @@ const Kr = () => ({
2282
2352
  }, {
2283
2353
  label: "\u5168\u90E8\u5173\u95ED",
2284
2354
  value: "close-all"
2285
- }), $(c, (C) => e.covertMenuItem ? e.covertMenuItem(C) : C);
2286
- }), q = ee(), H = q(B.DropdownKey), G = q(B.ScrollKey) || "div";
2287
- return () => d(le, null, [d(G, {
2355
+ }), $(c, (b) => e.covertMenuItem ? e.covertMenuItem(b) : b);
2356
+ }), U = ee(), z = U(q.DropdownKey), te = U(q.ScrollKey) || "div";
2357
+ return () => i(le, null, [i(te, {
2288
2358
  class: "pro-layout-tabs"
2289
2359
  }, {
2290
- default: () => [d("div", {
2360
+ default: () => [i("div", {
2291
2361
  class: "pro-layout-tabs-root",
2292
2362
  ref: w,
2293
2363
  key: m.value
2294
2364
  }, [$(n.value, (c) => {
2295
- var C, F;
2296
- const y = l(c), i = c.value === ((C = s.value) == null ? void 0 : C.value);
2297
- return d("div", {
2298
- class: ["pro-layout-tabs-item", i ? "active" : ""],
2365
+ var b, A;
2366
+ const f = l(c), v = c.value === ((b = s.value) == null ? void 0 : b.value);
2367
+ return i("div", {
2368
+ class: ["pro-layout-tabs-item", v ? "active" : ""],
2299
2369
  "data-url": c.value,
2300
- onClick: () => f(c),
2301
- oncontextmenu: (A) => P(A, c)
2302
- }, [((F = c.itemLabel) == null ? void 0 : F.call(c, c)) || c.label, !y && d("div", {
2370
+ onClick: () => d(c),
2371
+ oncontextmenu: (x) => C(x, c)
2372
+ }, [((A = c.itemLabel) == null ? void 0 : A.call(c, c)) || c.label, !f && i("div", {
2303
2373
  class: "pro-layout-tabs-item-close",
2304
- onClick: (A) => {
2305
- A.preventDefault(), A.stopPropagation(), h(c);
2374
+ onClick: (x) => {
2375
+ x.preventDefault(), x.stopPropagation(), S(c);
2306
2376
  },
2307
- oncontextmenu: b
2308
- }, [Fe("\u2715")])]);
2377
+ oncontextmenu: h
2378
+ }, [Le("\u2715")])]);
2309
2379
  })])]
2310
- }), u.ctxMenuItem && u.ctxMenuPos && d(Cn, {
2380
+ }), o.ctxMenuItem && o.ctxMenuPos && i(Mn, {
2311
2381
  to: "body"
2312
2382
  }, {
2313
- default: () => [d("div", {
2383
+ default: () => [i("div", {
2314
2384
  class: "pro-layout-tabs-menus",
2315
- style: `left:${u.ctxMenuPos.x}px;top:${u.ctxMenuPos.y}px`
2316
- }, [d(H, {
2385
+ style: `left:${o.ctxMenuPos.x}px;top:${o.ctxMenuPos.y}px`
2386
+ }, [i(z, {
2317
2387
  ref: E,
2318
2388
  trigger: "click",
2319
- options: U.value,
2389
+ options: B.value,
2320
2390
  hideOnClick: !1,
2321
- onCommand: k,
2322
- onVisibleChange: O
2391
+ onCommand: j,
2392
+ onVisibleChange: K
2323
2393
  }, {
2324
- default: () => [d("div", null, null)]
2394
+ default: () => [i("div", null, null)]
2325
2395
  })])]
2326
2396
  })]);
2327
2397
  }
2328
- }), Gr = K({
2329
- props: {},
2330
- setup: (e, {
2331
- expose: t
2332
- }) => {
2333
- const {
2334
- tabs: a
2335
- } = hn(), {
2336
- route: o
2337
- } = Ve(), n = z(!1), r = N(() => {
2338
- const l = $(a.value, (s) => s.value);
2339
- return n.value ? _(l, (s) => s !== o.name) : l;
2340
- });
2341
- return t({
2342
- refresh: () => {
2343
- n.value = !0, setTimeout(() => {
2344
- n.value = !1;
2345
- }, 0);
2346
- }
2347
- }), () => d(Jn, null, {
2348
- default: ({
2349
- Component: l,
2350
- route: s
2351
- }) => (l && l.type && !l.type.name && s.name && (l.type.name = s.name), d(Mn, {
2352
- include: r.value
2353
- }, [n.value ? null : d(l, null, null)]))
2354
- });
2355
- }
2356
- }), De = K((e, {
2398
+ }), Fe = D((e, {
2357
2399
  slots: t
2358
2400
  }) => {
2359
- const a = z(), o = z(0);
2401
+ const a = H(), u = H(0);
2360
2402
  return Re(a, (n) => {
2361
- var u;
2362
- const r = (u = n[0]) == null ? void 0 : u.contentRect;
2363
- o.value = r == null ? void 0 : r.width;
2403
+ var o;
2404
+ const r = (o = n[0]) == null ? void 0 : o.contentRect;
2405
+ u.value = r == null ? void 0 : r.width;
2364
2406
  }), () => {
2365
- var n, r, u;
2366
- return d("header", null, [(n = t.start) == null ? void 0 : n.call(t), t.menus && d("div", {
2407
+ var n, r, o;
2408
+ return i("header", null, [(n = t.start) == null ? void 0 : n.call(t), t.menus && i("div", {
2367
2409
  ref: a,
2368
2410
  class: "pro-header-menus-wrapper"
2369
- }, [t.menus(o.value)]), (r = t.default) == null ? void 0 : r.call(t), (u = t.end) == null ? void 0 : u.call(t)]);
2411
+ }, [t.menus(u.value)]), (r = t.default) == null ? void 0 : r.call(t), (o = t.end) == null ? void 0 : o.call(t)]);
2370
2412
  };
2371
- }), Xr = () => ({
2413
+ }), _r = () => ({
2372
2414
  clsName: {
2373
2415
  type: String,
2374
2416
  default: "pro-layout"
@@ -2393,6 +2435,10 @@ const Kr = () => ({
2393
2435
  collapse: {
2394
2436
  type: Boolean
2395
2437
  },
2438
+ routeOpts: {
2439
+ type: Object,
2440
+ default: void 0
2441
+ },
2396
2442
  menus: {
2397
2443
  type: Array
2398
2444
  },
@@ -2417,182 +2463,187 @@ const Kr = () => ({
2417
2463
  menuProps: {
2418
2464
  type: Object
2419
2465
  }
2420
- }), _a = K({
2466
+ }), Ya = D({
2421
2467
  inheritAttrs: !1,
2422
2468
  props: {
2423
- ...Xr()
2469
+ ..._r()
2424
2470
  },
2425
2471
  setup: (e, {
2426
2472
  slots: t,
2427
2473
  attrs: a
2428
2474
  }) => {
2429
- const o = ee(), n = o(B.MenusKey), r = o(B.ScrollKey) || "div", {
2430
- router: u,
2475
+ const u = ee(), n = u(q.MenusKey), r = u(q.ScrollKey) || "div", {
2476
+ router: o,
2431
2477
  route: l
2432
- } = Ve(), s = z(), f = N(() => {
2433
- var i;
2434
- return Bt(e.menus, (C) => {
2435
- var I, j, te;
2436
- const F = ((I = e.fieldNames) == null ? void 0 : I.value) || "value", A = ((j = e.fieldNames) == null ? void 0 : j.label) || "label", X = ((te = e.fieldNames) == null ? void 0 : te.hide) || "hide";
2478
+ } = ze(), s = I(() => {
2479
+ var b;
2480
+ return Vt(e.menus, (A) => {
2481
+ var L, Z, Ce;
2482
+ const x = ((L = e.fieldNames) == null ? void 0 : L.value) || "value", G = ((Z = e.fieldNames) == null ? void 0 : Z.label) || "label", T = ((Ce = e.fieldNames) == null ? void 0 : Ce.hide) || "hide";
2437
2483
  return {
2438
- ...D(C, F, A, X),
2439
- value: g(C, F),
2440
- label: g(C, A),
2441
- hide: g(C, X)
2484
+ ...F(A, x, G, T),
2485
+ value: g(A, x),
2486
+ label: g(A, G),
2487
+ hide: g(A, T)
2442
2488
  };
2443
2489
  }, {
2444
- children: ((i = e.fieldNames) == null ? void 0 : i.children) || "children",
2490
+ children: ((b = e.fieldNames) == null ? void 0 : b.children) || "children",
2445
2491
  childrenName: "children"
2446
2492
  });
2447
- }), h = N(() => Hn(f.value, (i) => !i.hide)), p = N(() => bt(f.value)), v = N(() => bt(h.value)), S = N(() => Vt(f.value, (i) => D(i, "children"))), P = N(() => {
2448
- var C;
2449
- if (e.findCurrentTopName)
2450
- return e.findCurrentTopName(l, p.value);
2451
- const i = ((C = e.convertName) == null ? void 0 : C.call(e, l)) || l.name;
2452
- return p.value[i];
2453
- }), b = N(() => P.value ? _e(h.value, (i) => i.value === P.value) : null), T = N(() => !!(b.value && b.value.children && Y(b.value.children) > 0)), w = N(() => {
2493
+ }), d = I(() => Hn(s.value, (b) => !b.hide)), S = I(() => gt(s.value)), P = I(() => gt(d.value)), y = I(() => zt(s.value, (b) => F(b, "children"))), p = I(() => {
2454
2494
  var A;
2495
+ if (e.findCurrentTopName)
2496
+ return e.findCurrentTopName(l, S.value);
2497
+ const b = ((A = e.convertName) == null ? void 0 : A.call(e, l)) || l.name;
2498
+ return S.value[b];
2499
+ }), C = I(() => p.value ? Ye(d.value, (b) => b.value === p.value) : null), h = I(() => !!(C.value && C.value.children && _(C.value.children) > 0)), O = I(() => {
2500
+ var G;
2455
2501
  if (e.findActiveKey)
2456
- return e.findActiveKey(l, p.value);
2457
- const i = ((A = e.convertName) == null ? void 0 : A.call(e, l)) || l.name;
2458
- if (v.value[i])
2459
- return i;
2502
+ return e.findActiveKey(l, S.value);
2503
+ const b = ((G = e.convertName) == null ? void 0 : G.call(e, l)) || l.name;
2504
+ if (P.value[b])
2505
+ return b;
2460
2506
  const {
2461
- parentList: C
2462
- } = gt(f.value, (X) => X.value === i, void 0, []), F = Rn(C, (X) => !X.hide);
2463
- return (F == null ? void 0 : F.value) || i;
2464
- }), m = (i) => {
2465
- e.onMenuItemClick ? e.onMenuItemClick(i) : u.openMenu(i);
2466
- }, M = (i) => {
2467
- const C = gt(h.value, (F) => F.value === i.value).target;
2468
- m(C);
2469
- }, x = () => {
2470
- var C;
2471
- let i = (C = e.tabs) == null ? void 0 : C.sessionKey;
2472
- return i === void 0 && (i = "pro-layout-tabs"), i;
2473
- }, E = Lt(h.value, (i) => !i.children || Y(i.children) <= 0), k = z((() => {
2474
- const i = x();
2475
- let C = [];
2476
- if (i) {
2477
- const F = window.sessionStorage.getItem(i), A = F ? rt(F) : [];
2478
- C = $(A, (X) => ({
2479
- ...g(S.value, X.name),
2480
- query: X.query
2507
+ parentList: A
2508
+ } = St(s.value, (T) => T.value === b, void 0, []), x = Fn(A, (T) => !T.hide);
2509
+ return (x == null ? void 0 : x.value) || b;
2510
+ }), w = (b) => {
2511
+ e.onMenuItemClick ? e.onMenuItemClick(b) : o.openMenu(b);
2512
+ }, m = (b) => {
2513
+ const A = St(d.value, (x) => x.value === b.value).target;
2514
+ w(A);
2515
+ }, M = I(() => !!e.tabs), N = () => {
2516
+ var A;
2517
+ let b = (A = e.tabs) == null ? void 0 : A.sessionKey;
2518
+ return b === void 0 && (b = "pro-layout-tabs"), b;
2519
+ }, E = kt(d.value, (b) => !b.children || _(b.children) <= 0), j = H((() => {
2520
+ if (!M.value)
2521
+ return [];
2522
+ const b = N();
2523
+ let A = [];
2524
+ if (b) {
2525
+ const x = window.sessionStorage.getItem(b), G = x ? at(x) : [];
2526
+ A = $(G, (T) => ({
2527
+ ...g(y.value, T.name),
2528
+ query: T.query
2481
2529
  }));
2482
2530
  }
2483
- return Y(C) <= 0 && E && (C = [E]), C;
2484
- })()), U = N(() => !!e.tabs), q = (i) => i.value === (E == null ? void 0 : E.value);
2485
- nt(() => {
2486
- const i = x();
2487
- if (!i)
2531
+ return _(A) <= 0 && E && (A = [E]), A;
2532
+ })()), B = (b) => b.value === (E == null ? void 0 : E.value);
2533
+ rt(() => {
2534
+ const b = N();
2535
+ if (!b)
2488
2536
  return;
2489
- const C = $(k.value, (F) => ({
2490
- name: F.value,
2491
- query: F.query
2537
+ const A = $(j.value, (x) => ({
2538
+ name: x.value,
2539
+ query: x.query
2492
2540
  }));
2493
- window.sessionStorage.setItem(i, ke(C));
2494
- }, k);
2495
- const H = () => {
2496
- var C;
2497
- const i = (C = e.tabs) == null ? void 0 : C.clearWhileUnmount;
2498
- return i === void 0 ? !0 : i;
2541
+ window.sessionStorage.setItem(b, Be(A));
2542
+ }, j);
2543
+ const U = () => {
2544
+ var A;
2545
+ const b = (A = e.tabs) == null ? void 0 : A.clearWhileUnmount;
2546
+ return b === void 0 ? !0 : b;
2499
2547
  };
2500
2548
  ae(() => () => {
2501
- const i = x();
2502
- i && H() && window.sessionStorage.removeItem(i);
2503
- }, []), me(vn, {
2504
- menus: f,
2505
- menuMap: S,
2506
- tabs: k,
2549
+ const b = N();
2550
+ b && U() && window.sessionStorage.removeItem(b);
2551
+ }, []);
2552
+ const z = H(!1);
2553
+ me(vn, {
2554
+ menus: s,
2555
+ menuMap: y,
2556
+ tabs: j,
2557
+ showTabs: M,
2558
+ refreshRef: z,
2507
2559
  refresh: () => {
2508
- var i;
2509
- (i = s.value) == null || i.refresh();
2560
+ z.value = !0, setTimeout(() => {
2561
+ z.value = !1;
2562
+ }, 0);
2510
2563
  }
2511
2564
  });
2512
- const G = fe(t, "header"), c = fe(t, "menu"), y = (i) => {
2513
- var C, F;
2514
- return d("div", {
2565
+ const c = fe(t, "header"), f = fe(t, "menu"), v = (b) => {
2566
+ var A, x;
2567
+ return i("div", {
2515
2568
  class: `${e.clsName}-menus-wrapper`
2516
- }, [(C = c.start) == null ? void 0 : C.call(c), d(r, {
2569
+ }, [(A = f.start) == null ? void 0 : A.call(f), i(r, {
2517
2570
  class: `${e.clsName}-menus-scroll`
2518
2571
  }, {
2519
- default: () => [d(n, i, c)]
2520
- }), (F = c.end) == null ? void 0 : F.call(c)]);
2572
+ default: () => [i(n, b, f)]
2573
+ }), (x = f.end) == null ? void 0 : x.call(f)]);
2521
2574
  };
2522
2575
  return () => {
2523
- var X;
2576
+ var T;
2524
2577
  if (!n)
2525
2578
  return null;
2526
- const i = [`${e.clsName} ${e.clsName}-${e.layout}`];
2527
- U.value && i.push("has-tabs");
2528
- const C = {
2579
+ const b = [`${e.clsName} ${e.clsName}-${e.layout}`];
2580
+ M.value && b.push("has-tabs");
2581
+ const A = {
2529
2582
  class: `${e.clsName}-menus`,
2530
- options: h.value,
2531
- activeKey: w.value,
2532
- ...Z(e, "convertSubMenuProps", "convertMenuItemProps"),
2533
- onMenuItemClick: m,
2583
+ options: d.value,
2584
+ activeKey: O.value,
2585
+ ...J(e, "convertSubMenuProps", "convertMenuItemProps"),
2586
+ onMenuItemClick: w,
2534
2587
  ...e.menuProps
2535
- }, F = {
2588
+ }, x = {
2536
2589
  collapse: e.collapse,
2537
- ...C
2538
- }, A = d(le, null, [U.value && d(Wr, R({
2539
- isHideClose: q,
2590
+ ...A
2591
+ }, G = i(le, null, [M.value && i(Xr, R({
2592
+ isHideClose: B,
2540
2593
  convertName: e.convertName
2541
- }, D(e.tabs, "sessionKey", "clearWhileUnmount")), null), d("div", {
2594
+ }, F(e.tabs, "sessionKey", "clearWhileUnmount")), null), i("div", {
2542
2595
  class: `${e.clsName}-section`
2543
- }, [(X = t.default) == null ? void 0 : X.call(t), d(Gr, {
2544
- ref: s
2545
- }, null)])]);
2546
- return e.layout === "vertical" ? d("main", R(a, {
2547
- class: i
2548
- }), [d(De, {
2596
+ }, [(T = t.default) == null ? void 0 : T.call(t), t.routerView ? t.routerView() : i(Wr, e.routeOpts, null)])]);
2597
+ return e.layout === "vertical" ? i("main", R(a, {
2598
+ class: b
2599
+ }), [i(Fe, {
2549
2600
  class: `${e.clsName}-header`
2550
2601
  }, {
2551
- menus: (I) => I ? d(n, R({
2552
- style: `width:${I}px`,
2602
+ menus: (L) => L ? i(n, R({
2603
+ style: `width:${L}px`,
2553
2604
  mode: "horizontal"
2554
- }, C), c) : null,
2555
- ...G
2556
- }), A]) : e.layout === "horizontal" ? (i.push("has-left-menu"), e.collapse && i.push("mini"), d("main", R(a, {
2557
- class: i
2558
- }), [y(F), d("div", {
2605
+ }, A), f) : null,
2606
+ ...c
2607
+ }), G]) : e.layout === "horizontal" ? (b.push("has-left-menu"), e.collapse && b.push("mini"), i("main", R(a, {
2608
+ class: b
2609
+ }), [v(x), i("div", {
2559
2610
  class: `${e.clsName}-structure`
2560
- }, [d(De, {
2611
+ }, [i(Fe, {
2561
2612
  class: `${e.clsName}-header`
2562
- }, G), A])])) : e.layout === "horizontal-v" ? (i.push("has-left-menu"), e.collapse && i.push("mini"), d("main", R(a, {
2563
- class: i
2564
- }), [d(De, {
2613
+ }, c), G])])) : e.layout === "horizontal-v" ? (b.push("has-left-menu"), e.collapse && b.push("mini"), i("main", R(a, {
2614
+ class: b
2615
+ }), [i(Fe, {
2565
2616
  class: `${e.clsName}-header`
2566
- }, G), d("div", {
2617
+ }, c), i("div", {
2567
2618
  class: `${e.clsName}-structure`
2568
- }, [y(F), d("div", {
2619
+ }, [v(x), i("div", {
2569
2620
  class: `${e.clsName}-right`
2570
- }, [A])])])) : (T.value && i.push("has-left-menu"), e.collapse && i.push("mini"), d("main", R(a, {
2571
- class: i
2572
- }), [d(De, {
2621
+ }, [G])])])) : (h.value && b.push("has-left-menu"), e.collapse && b.push("mini"), i("main", R(a, {
2622
+ class: b
2623
+ }), [i(Fe, {
2573
2624
  class: `${e.clsName}-header`
2574
2625
  }, {
2575
- menus: (I) => I ? d(n, R({
2576
- style: `width:${I}px`,
2626
+ menus: (L) => L ? i(n, R({
2627
+ style: `width:${L}px`,
2577
2628
  class: `${e.clsName}-menus`,
2578
2629
  mode: "horizontal",
2579
- options: $(h.value, (j) => D(j, "children")),
2580
- activeKey: P.value
2581
- }, Z(e, "convertSubMenuProps", "convertMenuItemProps"), {
2582
- onMenuItemClick: M
2583
- }), c) : null,
2584
- ...G
2585
- }), d("div", {
2630
+ options: $(d.value, (Z) => F(Z, "children")),
2631
+ activeKey: p.value
2632
+ }, J(e, "convertSubMenuProps", "convertMenuItemProps"), {
2633
+ onMenuItemClick: m
2634
+ }), f) : null,
2635
+ ...c
2636
+ }), i("div", {
2586
2637
  class: `${e.clsName}-structure`
2587
- }, [T.value && y({
2588
- ...F,
2589
- options: b.value.children
2590
- }), d("div", {
2638
+ }, [h.value && v({
2639
+ ...x,
2640
+ options: C.value.children
2641
+ }), i("div", {
2591
2642
  class: `${e.clsName}-right`
2592
- }, [A])])]));
2643
+ }, [G])])]));
2593
2644
  };
2594
2645
  }
2595
- }), Ya = K({
2646
+ }), Qa = D({
2596
2647
  props: {
2597
2648
  fieldNames: {
2598
2649
  type: Object,
@@ -2610,39 +2661,39 @@ const Kr = () => ({
2610
2661
  slots: t,
2611
2662
  emit: a
2612
2663
  }) => {
2613
- const n = ee()(B.UploaderKey), r = (f) => {
2614
- const h = rt(f);
2615
- if (J(h)) {
2616
- const p = e.fieldNames;
2617
- return $(h, (v) => ({
2618
- ...D(v, p.id, p.name, p.size),
2619
- id: g(v, p.id),
2620
- name: g(v, p.name),
2621
- size: g(v, p.size)
2664
+ const n = ee()(q.UploaderKey), r = (d) => {
2665
+ const S = at(d);
2666
+ if (Q(S)) {
2667
+ const P = e.fieldNames;
2668
+ return $(S, (y) => ({
2669
+ ...F(y, P.id, P.name, P.size),
2670
+ id: g(y, P.id),
2671
+ name: g(y, P.name),
2672
+ size: g(y, P.size)
2622
2673
  }));
2623
2674
  }
2624
2675
  return [];
2625
- }, u = N(() => r(e.value)), l = N(() => r(e.modelValue)), s = (f, h) => {
2626
- let p = "";
2627
- f && Y(f) > 0 && (p = ke($(f, (v) => {
2628
- var b;
2629
- const S = e.fieldNames, P = {
2630
- [S.id]: v.id,
2631
- [S.name]: v.name,
2632
- [S.size || "size"]: v.size
2676
+ }, o = I(() => r(e.value)), l = I(() => r(e.modelValue)), s = (d, S) => {
2677
+ let P = "";
2678
+ d && _(d) > 0 && (P = Be($(d, (y) => {
2679
+ var h;
2680
+ const p = e.fieldNames, C = {
2681
+ [p.id]: y.id,
2682
+ [p.name]: y.name,
2683
+ [p.size || "size"]: y.size
2633
2684
  };
2634
- return ((b = e.convertItem) == null ? void 0 : b.call(e, v)) || P;
2635
- }))), a(h, p);
2685
+ return ((h = e.convertItem) == null ? void 0 : h.call(e, y)) || C;
2686
+ }))), a(S, P);
2636
2687
  };
2637
- return () => n ? d(n, R({
2688
+ return () => n ? i(n, R({
2638
2689
  class: "pro-uploader-text",
2639
- value: u.value,
2640
- "onUpdate:value": (f) => s(f, "update:value"),
2690
+ value: o.value,
2691
+ "onUpdate:value": (d) => s(d, "update:value"),
2641
2692
  modelValue: l.value,
2642
- "onUpdate:modelValue": (f) => s(f, "update:modelValue")
2643
- }, D(e, "value", "modelValue", "fieldNames")), t) : null;
2693
+ "onUpdate:modelValue": (d) => s(d, "update:modelValue")
2694
+ }, F(e, "value", "modelValue", "fieldNames")), t) : null;
2644
2695
  }
2645
- }), Qa = K({
2696
+ }), Ja = D({
2646
2697
  props: {
2647
2698
  value: [String, Array],
2648
2699
  fieldNames: {
@@ -2658,64 +2709,64 @@ const Kr = () => ({
2658
2709
  slots: t,
2659
2710
  emit: a
2660
2711
  }) => {
2661
- const o = (u) => {
2712
+ const u = (o) => {
2662
2713
  var l;
2663
- return !!g(u, ((l = e.fieldNames) == null ? void 0 : l.id) || "id");
2664
- }, n = N(() => {
2665
- let u = e.value;
2666
- return u && se(u) && (u = rt(u)), u && !J(u) && xe(u) && o(u) && (u = [u]), J(u) ? $(_(u, (l) => o(l)), (l) => {
2667
- var p, v, S;
2668
- const s = g(l, ((p = e.fieldNames) == null ? void 0 : p.id) || "id"), f = g(l, ((v = e.fieldNames) == null ? void 0 : v.name) || "name"), h = g(l, ((S = e.fieldNames) == null ? void 0 : S.name) || "size");
2714
+ return !!g(o, ((l = e.fieldNames) == null ? void 0 : l.id) || "id");
2715
+ }, n = I(() => {
2716
+ let o = e.value;
2717
+ return o && se(o) && (o = at(o)), o && !Q(o) && Ie(o) && u(o) && (o = [o]), Q(o) ? $(X(o, (l) => u(l)), (l) => {
2718
+ var P, y, p;
2719
+ const s = g(l, ((P = e.fieldNames) == null ? void 0 : P.id) || "id"), d = g(l, ((y = e.fieldNames) == null ? void 0 : y.name) || "name"), S = g(l, ((p = e.fieldNames) == null ? void 0 : p.name) || "size");
2669
2720
  return {
2670
2721
  ...l,
2671
2722
  id: s,
2672
- size: h,
2673
- name: f || s
2723
+ size: S,
2724
+ name: d || s
2674
2725
  };
2675
2726
  }) : [];
2676
- }), r = (u) => {
2677
- a("titleClick", u);
2727
+ }), r = (o) => {
2728
+ a("titleClick", o);
2678
2729
  };
2679
2730
  return () => {
2680
- var u, l;
2681
- return d("div", {
2731
+ var o, l;
2732
+ return i("div", {
2682
2733
  class: "pro-upload-list"
2683
- }, [(u = t.start) == null ? void 0 : u.call(t), $(n.value, (s) => {
2684
- var f;
2685
- return d("div", {
2734
+ }, [(o = t.start) == null ? void 0 : o.call(t), $(n.value, (s) => {
2735
+ var d;
2736
+ return i("div", {
2686
2737
  class: "pro-upload-list-item"
2687
- }, [d("span", {
2738
+ }, [i("span", {
2688
2739
  class: "pro-upload-list-item-title",
2689
2740
  onClick: () => r(s)
2690
- }, [s.name]), (f = t.extra) == null ? void 0 : f.call(t, s)]);
2741
+ }, [s.name]), (d = t.extra) == null ? void 0 : d.call(t, s)]);
2691
2742
  }), (l = t.default) == null ? void 0 : l.call(t)]);
2692
2743
  };
2693
2744
  }
2694
- }), _r = (e, t) => {
2695
- !e || !t || Dt(t) || Te(e) || ne(t, (a, o) => {
2696
- const n = kt(o, e);
2745
+ }), Yr = (e, t) => {
2746
+ !e || !t || Ft(t) || xe(e) || ne(t, (a, u) => {
2747
+ const n = Bt(u, e);
2697
2748
  if (!Ut(n)) {
2698
- console.log("ConfigExtra\uFF1A\u8865\u5145\u5BF9\u8C61key\u8F6C\u6362\u5931\u8D25", e.elementId, o);
2749
+ console.log("ConfigExtra\uFF1A\u8865\u5145\u5BF9\u8C61key\u8F6C\u6362\u5931\u8D25", e.elementId, u);
2699
2750
  return;
2700
2751
  }
2701
2752
  if (!qt(n, e)) {
2702
- console.log("ConfigExtra\uFF1A\u8865\u5145\u5BF9\u8C61key\u672A\u627E\u5230\u7236\u7EA7", e.elementId, o, "->", n);
2753
+ console.log("ConfigExtra\uFF1A\u8865\u5145\u5BF9\u8C61key\u672A\u627E\u5230\u7236\u7EA7", e.elementId, u, "->", n);
2703
2754
  return;
2704
2755
  }
2705
2756
  ie(e, n, a);
2706
2757
  });
2707
- }, Me = (e, t) => {
2708
- _r(e, g(t, e.elementId));
2758
+ }, Ee = (e, t) => {
2759
+ Yr(e, g(t, e.elementId));
2709
2760
  const a = g(e, ["highConfig$", "registerPropsTrans"]);
2710
- a && Y(a) > 0 && ne(a, (o) => {
2711
- const n = g(e.elementProps, o.name);
2712
- J(n) ? ne(n, (r) => {
2713
- Me(r, t);
2714
- }) : Me(n, t);
2715
- }), e.children && Y(e.children) > 0 && ne(e.children, (o) => {
2716
- Me(o, t);
2761
+ a && _(a) > 0 && ne(a, (u) => {
2762
+ const n = g(e.elementProps, u.name);
2763
+ Q(n) ? ne(n, (r) => {
2764
+ Ee(r, t);
2765
+ }) : Ee(n, t);
2766
+ }), e.children && _(e.children) > 0 && ne(e.children, (u) => {
2767
+ Ee(u, t);
2717
2768
  });
2718
- }, Yr = K({
2769
+ }, Qr = D({
2719
2770
  props: {
2720
2771
  initExecuteList: {
2721
2772
  type: Array
@@ -2724,43 +2775,43 @@ const Kr = () => ({
2724
2775
  setup: (e) => {
2725
2776
  const {
2726
2777
  execute: t
2727
- } = Se();
2778
+ } = pe();
2728
2779
  return ae(() => {
2729
2780
  e.initExecuteList && t(e.initExecuteList, []);
2730
2781
  }, []), () => null;
2731
2782
  }
2732
- }), Ja = ({
2783
+ }), Za = ({
2733
2784
  actors: e,
2734
2785
  configData: t,
2735
2786
  configDataExtra: a,
2736
- Logic: o
2737
- }) => K(() => {
2738
- const n = z(), r = (s) => {
2739
- const f = Ft(s);
2740
- return a && (J(f) ? ne(f, (h) => Me(h, a)) : Me(f, a)), f;
2787
+ Logic: u
2788
+ }) => D(() => {
2789
+ const n = H(), r = (s) => {
2790
+ const d = Lt(s);
2791
+ return a && (Q(d) ? ne(d, (S) => Ee(S, a)) : Ee(d, a)), d;
2741
2792
  };
2742
2793
  ae(() => {
2743
2794
  t && t.elementConfigs && (n.value = r(t.elementConfigs)), t != null && t.elementConfigs;
2744
2795
  }, []);
2745
- const l = ee()(B.LoadingKey);
2746
- return () => n.value ? d($e, {
2796
+ const l = ee()(q.LoadingKey);
2797
+ return () => n.value ? i($e, {
2747
2798
  initState: t == null ? void 0 : t.initState,
2748
2799
  storeKeys: t == null ? void 0 : t.storeKeys,
2749
2800
  actors: e,
2750
2801
  requests: t == null ? void 0 : t.requests,
2751
2802
  elementConfigs: n.value
2752
2803
  }, {
2753
- default: () => [d(Yr, null, null), o && d(o, null, null)]
2754
- }) : l ? d(l, {
2804
+ default: () => [i(Qr, null, null), u && i(u, null, null)]
2805
+ }) : l ? i(l, {
2755
2806
  loading: !0
2756
2807
  }, {
2757
- default: () => [d("div", {
2808
+ default: () => [i("div", {
2758
2809
  class: "pro-module-loading-dom"
2759
2810
  }, null)]
2760
2811
  }) : null;
2761
- }), bn = Symbol("pro-curd"), ce = () => ye(bn), Qr = (e) => me(bn, e);
2762
- var L = /* @__PURE__ */ ((e) => (e.LIST = "LIST", e.DETAIL = "DETAIL", e.ADD = "ADD", e.EDIT = "EDIT", e.DELETE = "DELETE", e))(L || {}), V = /* @__PURE__ */ ((e) => (e.EMIT = "EMIT", e.EXECUTE = "EXECUTE", e.PAGE = "PAGE", e.SUCCESS = "SUCCESS", e.FAIL = "FAIL", e))(V || {}), ve = /* @__PURE__ */ ((e) => (e.ADD = "ADD", e.EDIT = "EDIT", e.DETAIL = "DETAIL", e))(ve || {}), Oe = /* @__PURE__ */ ((e) => (e.NORMAL = "NORMAL", e.CONTINUE = "CONTINUE", e))(Oe || {});
2763
- const Jr = () => ({
2812
+ }), bn = Symbol("pro-curd"), ce = () => ye(bn), Jr = (e) => me(bn, e);
2813
+ var k = /* @__PURE__ */ ((e) => (e.LIST = "LIST", e.DETAIL = "DETAIL", e.ADD = "ADD", e.EDIT = "EDIT", e.DELETE = "DELETE", e))(k || {}), V = /* @__PURE__ */ ((e) => (e.EMIT = "EMIT", e.EXECUTE = "EXECUTE", e.PAGE = "PAGE", e.SUCCESS = "SUCCESS", e.FAIL = "FAIL", e))(V || {}), ve = /* @__PURE__ */ ((e) => (e.ADD = "ADD", e.EDIT = "EDIT", e.DETAIL = "DETAIL", e))(ve || {}), Ke = /* @__PURE__ */ ((e) => (e.NORMAL = "NORMAL", e.CONTINUE = "CONTINUE", e))(Ke || {});
2814
+ const Zr = () => ({
2764
2815
  rowKey: {
2765
2816
  type: String,
2766
2817
  default: "id"
@@ -2783,103 +2834,103 @@ const Jr = () => ({
2783
2834
  modalProps: {
2784
2835
  type: Object
2785
2836
  }
2786
- }), gn = ["sendCurdEvent", "refreshList", "sendEvent", "sendRequest"], Nt = K({
2837
+ }), gn = ["sendCurdEvent", "refreshList", "sendEvent", "sendRequest"], Nt = D({
2787
2838
  props: {
2788
- ...pe,
2789
- ...Jr()
2839
+ ...Se,
2840
+ ...Zr()
2790
2841
  },
2791
2842
  setup: (e, {
2792
2843
  slots: t,
2793
2844
  expose: a
2794
2845
  }) => {
2795
2846
  const {
2796
- elementMap: o,
2847
+ elementMap: u,
2797
2848
  state: n,
2798
2849
  sendEvent: r,
2799
- sendRequest: u
2800
- } = Se(), l = N(() => Be(e.columns, e.columnState, e.columnState2)), s = (O, k) => {
2801
- const U = _(l.value, (q) => {
2802
- const H = g(q, ["extra", O]) || g(q, O);
2803
- return k ? H !== !1 : H;
2850
+ sendRequest: o
2851
+ } = pe(), l = I(() => Ve(e.columns, e.columnState, e.columnState2)), s = (K, j) => {
2852
+ const B = X(l.value, (U) => {
2853
+ const z = g(U, ["extra", K]) || g(U, K);
2854
+ return j ? z !== !1 : z;
2804
2855
  });
2805
- return $t(U, (q) => g(q, ["extra", `${O}Sort`]) || g(q, `${O}Sort`));
2806
- }, f = N(() => s("form", !0)), h = N(() => s("detail", !0)), p = N(() => s("table", !0)), v = N(() => s("search"));
2807
- let S;
2808
- const P = (O) => {
2809
- u(L.LIST, {
2810
- ...S,
2811
- ...O
2856
+ return $t(B, (U) => g(U, ["extra", `${K}Sort`]) || g(U, `${K}Sort`));
2857
+ }, d = I(() => s("form", !0)), S = I(() => s("detail", !0)), P = I(() => s("table", !0)), y = I(() => s("search"));
2858
+ let p;
2859
+ const C = (K) => {
2860
+ o(k.LIST, {
2861
+ ...p,
2862
+ ...K
2812
2863
  });
2813
- }, b = (O) => {
2864
+ }, h = (K) => {
2814
2865
  r({
2815
- type: O.action,
2816
- payload: D(O, "action", "source"),
2817
- source: O.source
2866
+ type: K.action,
2867
+ payload: F(K, "action", "source"),
2868
+ source: K.source
2818
2869
  });
2819
2870
  };
2820
- lt(({
2821
- type: O,
2822
- payload: k,
2823
- source: U
2871
+ ct(({
2872
+ type: K,
2873
+ payload: j,
2874
+ source: B
2824
2875
  }) => {
2825
- if (U)
2876
+ if (B)
2826
2877
  return;
2827
- let q = O, H = k == null ? void 0 : k.type;
2828
- q === Ne.Success && (q = g(k, ["requestOpts", "action"]), H = V.SUCCESS);
2878
+ let U = K, z = j == null ? void 0 : j.type;
2879
+ U === Ne.Success && (U = g(j, ["requestOpts", "action"]), z = V.SUCCESS);
2829
2880
  const {
2830
- values: G,
2881
+ values: te,
2831
2882
  record: c
2832
- } = k;
2833
- switch (q) {
2834
- case L.LIST:
2835
- H === V.EMIT && (S = G, P());
2883
+ } = j;
2884
+ switch (U) {
2885
+ case k.LIST:
2886
+ z === V.EMIT && (p = te, C());
2836
2887
  return;
2837
- case L.ADD:
2838
- H === V.EXECUTE && u(L.ADD, G, n.detailData);
2888
+ case k.ADD:
2889
+ z === V.EXECUTE && o(k.ADD, te, n.detailData);
2839
2890
  return;
2840
- case L.EDIT:
2841
- H === V.EXECUTE && u(L.EDIT, G, n.detailData);
2891
+ case k.EDIT:
2892
+ z === V.EXECUTE && o(k.EDIT, te, n.detailData);
2842
2893
  return;
2843
- case L.DELETE:
2844
- H === V.EMIT ? u(L.DELETE, c, e.rowKey) : H === V.SUCCESS && P();
2894
+ case k.DELETE:
2895
+ z === V.EMIT ? o(k.DELETE, c, e.rowKey) : z === V.SUCCESS && C();
2845
2896
  return;
2846
2897
  }
2847
- q && O === V.EXECUTE && u(q, G);
2898
+ U && K === V.EXECUTE && o(U, te);
2848
2899
  });
2849
- const T = re(e.operates, (O, k) => ({
2850
- ...O,
2851
- [k.action]: k
2852
- }), {}), w = (O) => g(T, O), m = N(() => e.listProps), M = N(() => e.formProps), x = N(() => e.descProps), E = N(() => e.modalProps);
2853
- return Qr({
2900
+ const O = re(e.operates, (K, j) => ({
2901
+ ...K,
2902
+ [j.action]: j
2903
+ }), {}), w = (K) => g(O, K), m = I(() => e.listProps), M = I(() => e.formProps), N = I(() => e.descProps), E = I(() => e.modalProps);
2904
+ return Jr({
2854
2905
  columns: l,
2855
2906
  getSignColumns: s,
2856
- elementMap: o,
2907
+ elementMap: u,
2857
2908
  formElementMap: e.formElementMap,
2858
2909
  rowKey: e.rowKey,
2859
2910
  curdState: n,
2860
- formColumns: f,
2861
- descColumns: h,
2862
- tableColumns: p,
2863
- searchColumns: v,
2864
- sendCurdEvent: b,
2911
+ formColumns: d,
2912
+ descColumns: S,
2913
+ tableColumns: P,
2914
+ searchColumns: y,
2915
+ sendCurdEvent: h,
2865
2916
  operates: e.operates,
2866
2917
  getOperate: w,
2867
- refreshList: P,
2918
+ refreshList: C,
2868
2919
  listProps: m,
2869
2920
  formProps: M,
2870
- descProps: x,
2921
+ descProps: N,
2871
2922
  modalProps: E
2872
2923
  }), a({
2873
- sendCurdEvent: b,
2874
- refreshList: P
2924
+ sendCurdEvent: h,
2925
+ refreshList: C
2875
2926
  }), () => {
2876
- var O;
2877
- return (O = t.default) == null ? void 0 : O.call(t);
2927
+ var K;
2928
+ return (K = t.default) == null ? void 0 : K.call(t);
2878
2929
  };
2879
2930
  }
2880
- }), Qe = K({
2931
+ }), Je = D({
2881
2932
  props: {
2882
- ...D($e.props, "state", "requests"),
2933
+ ...F($e.props, "state", "requests"),
2883
2934
  ...Nt.props,
2884
2935
  curdState: {
2885
2936
  type: Object
@@ -2890,344 +2941,344 @@ const Jr = () => ({
2890
2941
  expose: a
2891
2942
  }) => {
2892
2943
  const {
2893
- elementMap: o,
2944
+ elementMap: u,
2894
2945
  formElementMap: n
2895
- } = oe(), r = z(), u = z(), l = e.curdState || be({
2946
+ } = oe(), r = H(), o = H(), l = e.curdState || be({
2896
2947
  detailData: {}
2897
2948
  }), s = {
2898
- [L.LIST]: {
2899
- convertParams: (v) => v,
2900
- convertData: (v) => {
2901
- var S;
2902
- return (S = v.res) == null ? void 0 : S.data;
2949
+ [k.LIST]: {
2950
+ convertParams: (y) => y,
2951
+ convertData: (y) => {
2952
+ var p;
2953
+ return (p = y.res) == null ? void 0 : p.data;
2903
2954
  },
2904
2955
  loadingName: "listLoading",
2905
2956
  stateName: "listData"
2906
2957
  },
2907
- [L.DETAIL]: {
2908
- convertParams: (v, S) => Z(v, S),
2909
- convertData: (v) => {
2910
- var S;
2911
- return (S = v.res) == null ? void 0 : S.data;
2958
+ [k.DETAIL]: {
2959
+ convertParams: (y, p) => J(y, p),
2960
+ convertData: (y) => {
2961
+ var p;
2962
+ return (p = y.res) == null ? void 0 : p.data;
2912
2963
  },
2913
2964
  loadingName: "detailLoading",
2914
2965
  stateName: "detailData",
2915
2966
  label: "\u8BE6\u60C5"
2916
2967
  },
2917
- [L.ADD]: {
2918
- convertParams: (v, S) => ({
2968
+ [k.ADD]: {
2969
+ convertParams: (y, p) => ({
2919
2970
  body: {
2920
- ...S,
2921
- ...v
2971
+ ...p,
2972
+ ...y
2922
2973
  }
2923
2974
  }),
2924
2975
  loadingName: "operateLoading",
2925
2976
  label: "\u6DFB\u52A0"
2926
2977
  },
2927
- [L.EDIT]: {
2928
- convertParams: (v, S) => ({
2978
+ [k.EDIT]: {
2979
+ convertParams: (y, p) => ({
2929
2980
  body: {
2930
- ...S,
2931
- ...v
2981
+ ...p,
2982
+ ...y
2932
2983
  }
2933
2984
  }),
2934
2985
  loadingName: "operateLoading",
2935
2986
  label: "\u7F16\u8F91"
2936
2987
  },
2937
- [L.DELETE]: {
2938
- convertParams: (v, S) => Z(v, S),
2988
+ [k.DELETE]: {
2989
+ convertParams: (y, p) => J(y, p),
2939
2990
  label: "\u5220\u9664"
2940
2991
  }
2941
- }, f = $(e.operates, (v) => {
2942
- var b;
2943
- const S = g(s, v.action), P = ((b = e.convertOperate) == null ? void 0 : b.call(e, v, S)) || v;
2992
+ }, d = $(e.operates, (y) => {
2993
+ var h;
2994
+ const p = g(s, y.action), C = ((h = e.convertOperate) == null ? void 0 : h.call(e, y, p)) || y;
2944
2995
  return {
2945
- ...S,
2946
- ...P
2996
+ ...p,
2997
+ ...C
2947
2998
  };
2948
- }), h = _(f, (v) => v.actor), p = Q(D($e.props, "state", "requests"));
2999
+ }), S = X(d, (y) => y.actor), P = Y(F($e.props, "state", "requests"));
2949
3000
  return a({
2950
- sendCurdEvent: (v) => {
2951
- var S;
2952
- (S = u.value) == null || S.sendCurdEvent(v);
3001
+ sendCurdEvent: (y) => {
3002
+ var p;
3003
+ (p = o.value) == null || p.sendCurdEvent(y);
2953
3004
  },
2954
- refreshList: (v) => {
2955
- var S;
2956
- (S = u.value) == null || S.refreshList(v);
3005
+ refreshList: (y) => {
3006
+ var p;
3007
+ (p = o.value) == null || p.refreshList(y);
2957
3008
  },
2958
- sendEvent: (v) => {
2959
- var S;
2960
- (S = r.value) == null || S.sendEvent(v);
3009
+ sendEvent: (y) => {
3010
+ var p;
3011
+ (p = r.value) == null || p.sendEvent(y);
2961
3012
  },
2962
- sendRequest: (v, ...S) => {
2963
- var P;
2964
- (P = r.value) == null || P.sendRequest(v, ...S);
3013
+ sendRequest: (y, ...p) => {
3014
+ var C;
3015
+ (C = r.value) == null || C.sendRequest(y, ...p);
2965
3016
  }
2966
- }), () => d($e, R({
3017
+ }), () => i($e, R({
2967
3018
  ref: r
2968
- }, Z(e, p), {
2969
- elementMap: e.elementMap || o,
3019
+ }, J(e, P), {
3020
+ elementMap: e.elementMap || u,
2970
3021
  state: l,
2971
- requests: h
3022
+ requests: S
2972
3023
  }), {
2973
- default: () => [d(Nt, R({
2974
- ref: u
2975
- }, D(e, ...p, "curdState", "operates", "convertOperate"), {
3024
+ default: () => [i(Nt, R({
3025
+ ref: o
3026
+ }, F(e, ...P, "curdState", "operates", "convertOperate"), {
2976
3027
  formElementMap: e.formElementMap || n,
2977
- operates: f
3028
+ operates: d
2978
3029
  }), t)]
2979
3030
  });
2980
3031
  }
2981
- }), Zr = () => ({
3032
+ }), ea = () => ({
2982
3033
  defaultAddRecord: {
2983
3034
  type: Object
2984
3035
  }
2985
- }), Ge = K({
3036
+ }), Xe = D({
2986
3037
  props: {
2987
- ...Zr()
3038
+ ...ea()
2988
3039
  },
2989
3040
  setup: (e) => {
2990
- var S;
3041
+ var p;
2991
3042
  const {
2992
3043
  dispatch: t,
2993
3044
  sendRequest: a
2994
- } = Se(), {
2995
- rowKey: o,
3045
+ } = pe(), {
3046
+ rowKey: u,
2996
3047
  curdState: n,
2997
3048
  listProps: r,
2998
- getOperate: u,
3049
+ getOperate: o,
2999
3050
  refreshList: l
3000
- } = ce(), s = (S = r == null ? void 0 : r.value) == null ? void 0 : S.pageState, f = (P) => {
3001
- const b = u(L.DETAIL);
3002
- b != null && b.actor ? a(L.DETAIL, P, o) : t({
3051
+ } = ce(), s = (p = r == null ? void 0 : r.value) == null ? void 0 : p.pageState, d = (C) => {
3052
+ const h = o(k.DETAIL);
3053
+ h != null && h.actor ? a(k.DETAIL, C, u) : t({
3003
3054
  type: "detailData",
3004
- payload: Ft(P)
3055
+ payload: Lt(C)
3005
3056
  });
3006
- }, h = (P, {
3007
- record: b
3057
+ }, S = (C, {
3058
+ record: h
3008
3059
  }) => {
3009
- P === V.EMIT && (t({
3060
+ C === V.EMIT && (t({
3010
3061
  type: "mode",
3011
3062
  payload: ve.DETAIL
3012
- }), f(b));
3013
- }, p = (P) => {
3014
- P === V.EMIT ? (t({
3063
+ }), d(h));
3064
+ }, P = (C) => {
3065
+ C === V.EMIT ? (t({
3015
3066
  type: "mode",
3016
3067
  payload: ve.ADD
3017
3068
  }), t({
3018
3069
  type: "detailData",
3019
3070
  payload: e.defaultAddRecord || {}
3020
- })) : P === V.SUCCESS && (s && (s.page = 1), l(), n.addAction === Oe.CONTINUE ? t({
3071
+ })) : C === V.SUCCESS && (s && (s.page = 1), l(), n.addAction === Ke.CONTINUE ? t({
3021
3072
  type: "detailData",
3022
3073
  payload: e.defaultAddRecord || {}
3023
3074
  }) : t({
3024
3075
  type: "mode",
3025
3076
  payload: void 0
3026
3077
  }));
3027
- }, v = (P, {
3028
- record: b
3078
+ }, y = (C, {
3079
+ record: h
3029
3080
  }) => {
3030
- P === V.EMIT ? (t({
3081
+ C === V.EMIT ? (t({
3031
3082
  type: "mode",
3032
3083
  payload: ve.EDIT
3033
- }), f(b)) : P === V.SUCCESS && (t({
3084
+ }), d(h)) : C === V.SUCCESS && (t({
3034
3085
  type: "mode",
3035
3086
  payload: void 0
3036
3087
  }), l());
3037
3088
  };
3038
- return lt(({
3039
- type: P,
3040
- payload: b,
3041
- source: T
3089
+ return ct(({
3090
+ type: C,
3091
+ payload: h,
3092
+ source: O
3042
3093
  }) => {
3043
- if (T)
3094
+ if (O)
3044
3095
  return;
3045
- let w = P, m = b == null ? void 0 : b.type;
3046
- const M = b == null ? void 0 : b.record;
3047
- switch (w === Ne.Success && (w = g(b, ["requestOpts", "action"]), m = V.SUCCESS), w) {
3048
- case L.DETAIL:
3049
- h(m, {
3096
+ let w = C, m = h == null ? void 0 : h.type;
3097
+ const M = h == null ? void 0 : h.record;
3098
+ switch (w === Ne.Success && (w = g(h, ["requestOpts", "action"]), m = V.SUCCESS), w) {
3099
+ case k.DETAIL:
3100
+ S(m, {
3050
3101
  record: M
3051
3102
  });
3052
3103
  break;
3053
- case L.ADD:
3054
- p(m);
3104
+ case k.ADD:
3105
+ P(m);
3055
3106
  break;
3056
- case L.EDIT:
3057
- v(m, {
3107
+ case k.EDIT:
3108
+ y(m, {
3058
3109
  record: M
3059
3110
  });
3060
3111
  break;
3061
3112
  }
3062
3113
  }), () => null;
3063
3114
  }
3064
- }), Za = K({
3115
+ }), eo = D({
3065
3116
  props: {
3066
- ...Qe.props,
3067
- ...Ge.props
3117
+ ...Je.props,
3118
+ ...Xe.props
3068
3119
  },
3069
3120
  setup: (e, {
3070
3121
  slots: t,
3071
3122
  expose: a
3072
3123
  }) => {
3073
- const o = z();
3074
- a(Pe(gn, o));
3075
- const n = Q(Ge.props), u = ee()(B.ProCurdKey);
3076
- return () => u ? d(u, R({
3077
- ref: o
3078
- }, D(e, n)), {
3124
+ const u = H();
3125
+ a(Pe(gn, u));
3126
+ const n = Y(Xe.props), o = ee()(q.ProCurdKey);
3127
+ return () => o ? i(o, R({
3128
+ ref: u
3129
+ }, F(e, n)), {
3079
3130
  default: () => {
3080
3131
  var l;
3081
- return [d(Ge, Z(e, n), null), (l = t.default) == null ? void 0 : l.call(t)];
3132
+ return [i(Xe, J(e, n), null), (l = t.default) == null ? void 0 : l.call(t)];
3082
3133
  }
3083
3134
  }) : null;
3084
3135
  }
3085
- }), ea = () => ({
3136
+ }), ta = () => ({
3086
3137
  defaultAddRecord: {
3087
3138
  type: Object
3088
3139
  },
3089
3140
  routeBack: {
3090
3141
  type: Function
3091
3142
  }
3092
- }), Xe = K({
3143
+ }), _e = D({
3093
3144
  props: {
3094
- ...ea()
3145
+ ...ta()
3095
3146
  },
3096
3147
  setup: (e) => {
3097
- const t = at(), a = ot(), {
3098
- dispatch: o,
3148
+ const t = ot(), a = ut(), {
3149
+ dispatch: u,
3099
3150
  sendRequest: n
3100
- } = Se(), {
3151
+ } = pe(), {
3101
3152
  rowKey: r,
3102
- curdState: u
3103
- } = ce(), l = (p) => {
3104
- p === V.PAGE && (o({
3153
+ curdState: o
3154
+ } = ce(), l = (P) => {
3155
+ P === V.PAGE && (u({
3105
3156
  type: "mode",
3106
3157
  payload: void 0
3107
- }), o({
3158
+ }), u({
3108
3159
  type: "detailData",
3109
3160
  payload: {}
3110
- }), o({
3161
+ }), u({
3111
3162
  type: "detailLoading",
3112
3163
  payload: !1
3113
- }), o({
3164
+ }), u({
3114
3165
  type: "addAction",
3115
3166
  payload: void 0
3116
3167
  }));
3117
- }, s = (p, {
3118
- record: v
3168
+ }, s = (P, {
3169
+ record: y
3119
3170
  }) => {
3120
- p === V.EMIT ? t.push({
3171
+ P === V.EMIT ? t.push({
3121
3172
  path: `${a.path}/detail`,
3122
- query: Z(v, r)
3123
- }) : p === V.PAGE && (o({
3173
+ query: J(y, r)
3174
+ }) : P === V.PAGE && (u({
3124
3175
  type: "mode",
3125
3176
  payload: ve.DETAIL
3126
- }), n(L.DETAIL, a.query, r));
3127
- }, f = (p) => {
3128
- p === V.EMIT ? t.push({
3177
+ }), n(k.DETAIL, a.query, r));
3178
+ }, d = (P) => {
3179
+ P === V.EMIT ? t.push({
3129
3180
  path: `${a.path}/add`
3130
- }) : p === V.PAGE ? (o({
3181
+ }) : P === V.PAGE ? (u({
3131
3182
  type: "mode",
3132
3183
  payload: ve.ADD
3133
- }), o({
3184
+ }), u({
3134
3185
  type: "detailData",
3135
3186
  payload: e.defaultAddRecord || {}
3136
- })) : p === V.SUCCESS && (u.addAction === Oe.CONTINUE ? o({
3187
+ })) : P === V.SUCCESS && (o.addAction === Ke.CONTINUE ? u({
3137
3188
  type: "detailData",
3138
3189
  payload: e.defaultAddRecord || {}
3139
- }) : e.routeBack ? e.routeBack(L.ADD) : t.go(-1));
3140
- }, h = (p, {
3141
- record: v
3190
+ }) : e.routeBack ? e.routeBack(k.ADD) : t.go(-1));
3191
+ }, S = (P, {
3192
+ record: y
3142
3193
  }) => {
3143
- p === V.EMIT ? t.push({
3194
+ P === V.EMIT ? t.push({
3144
3195
  path: `${a.path}/edit`,
3145
- query: Z(v, r)
3146
- }) : p === V.PAGE ? (o({
3196
+ query: J(y, r)
3197
+ }) : P === V.PAGE ? (u({
3147
3198
  type: "mode",
3148
3199
  payload: ve.EDIT
3149
- }), n(L.DETAIL, a.query, r)) : p === V.SUCCESS && (e.routeBack ? e.routeBack(L.EDIT) : t.go(-1));
3200
+ }), n(k.DETAIL, a.query, r)) : P === V.SUCCESS && (e.routeBack ? e.routeBack(k.EDIT) : t.go(-1));
3150
3201
  };
3151
- return lt(({
3152
- type: p,
3153
- payload: v,
3154
- source: S
3202
+ return ct(({
3203
+ type: P,
3204
+ payload: y,
3205
+ source: p
3155
3206
  }) => {
3156
- if (S)
3207
+ if (p)
3157
3208
  return;
3158
- let P = p, b = v == null ? void 0 : v.type;
3159
- const T = v == null ? void 0 : v.record;
3160
- switch (P === Ne.Success && (P = g(v, ["requestOpts", "action"]), b = V.SUCCESS), P) {
3161
- case L.LIST:
3162
- l(b);
3209
+ let C = P, h = y == null ? void 0 : y.type;
3210
+ const O = y == null ? void 0 : y.record;
3211
+ switch (C === Ne.Success && (C = g(y, ["requestOpts", "action"]), h = V.SUCCESS), C) {
3212
+ case k.LIST:
3213
+ l(h);
3163
3214
  break;
3164
- case L.DETAIL:
3165
- s(b, {
3166
- record: T
3215
+ case k.DETAIL:
3216
+ s(h, {
3217
+ record: O
3167
3218
  });
3168
3219
  break;
3169
- case L.ADD:
3170
- f(b);
3220
+ case k.ADD:
3221
+ d(h);
3171
3222
  break;
3172
- case L.EDIT:
3173
- h(b, {
3174
- record: T
3223
+ case k.EDIT:
3224
+ S(h, {
3225
+ record: O
3175
3226
  });
3176
3227
  break;
3177
3228
  }
3178
3229
  }), () => null;
3179
3230
  }
3180
- }), eo = K({
3231
+ }), to = D({
3181
3232
  props: {
3182
- ...Qe.props,
3183
- ...Xe.props
3233
+ ...Je.props,
3234
+ ..._e.props
3184
3235
  },
3185
3236
  setup: (e, {
3186
3237
  slots: t,
3187
3238
  expose: a
3188
3239
  }) => {
3189
- const o = z();
3190
- a(Pe(gn, o));
3191
- const n = Q(Xe.props);
3192
- return () => d(Qe, R({
3193
- ref: o
3194
- }, D(e, n)), {
3240
+ const u = H();
3241
+ a(Pe(gn, u));
3242
+ const n = Y(_e.props);
3243
+ return () => i(Je, R({
3244
+ ref: u
3245
+ }, F(e, n)), {
3195
3246
  default: () => {
3196
3247
  var r;
3197
- return [d(Xe, Z(e, n), null), (r = t.default) == null ? void 0 : r.call(t)];
3248
+ return [i(_e, J(e, n), null), (r = t.default) == null ? void 0 : r.call(t)];
3198
3249
  }
3199
3250
  });
3200
3251
  }
3201
- }), wt = K({
3252
+ }), Ot = D({
3202
3253
  props: {
3203
3254
  buttonProps: Object
3204
3255
  },
3205
3256
  setup: (e, {
3206
3257
  slots: t
3207
3258
  }) => {
3208
- const a = dn(), {
3209
- getOperate: o,
3259
+ const a = fn(), {
3260
+ getOperate: u,
3210
3261
  sendCurdEvent: n
3211
- } = ce(), r = o(L.ADD), u = () => {
3262
+ } = ce(), r = u(k.ADD), o = () => {
3212
3263
  if (r != null && r.onClick) {
3213
3264
  r.onClick();
3214
3265
  return;
3215
3266
  }
3216
3267
  n({
3217
- action: L.ADD,
3268
+ action: k.ADD,
3218
3269
  type: V.EMIT
3219
3270
  });
3220
- }, s = ee()(B.ButtonKey);
3221
- return () => !r || !a(r.per, r.perSuffix) || !(W(r.show) ? r.show({}) : r.show) ? null : r.element ? r.element({}, r) : t.default ? t.default(r, u) : s ? d(s, R({
3271
+ }, s = ee()(q.ButtonKey);
3272
+ return () => !r || !a(r.per, r.perSuffix) || !(W(r.show) ? r.show({}) : r.show) ? null : r.element ? r.element({}, r) : t.default ? t.default(r, o) : s ? i(s, R({
3222
3273
  class: "pro-curd-add-button",
3223
3274
  disabled: W(r.disabled) ? r.disabled() : r.disabled
3224
3275
  }, e.buttonProps, {
3225
- onClick: u
3276
+ onClick: o
3226
3277
  }), {
3227
3278
  default: () => [r.label]
3228
3279
  }) : null;
3229
3280
  }
3230
- }), Ot = () => ({
3281
+ }), Kt = () => ({
3231
3282
  addConfig: {
3232
3283
  type: Object,
3233
3284
  default: {
@@ -3238,136 +3289,136 @@ const Jr = () => ({
3238
3289
  type: Boolean,
3239
3290
  default: !0
3240
3291
  }
3241
- }), ta = K({
3292
+ }), na = D({
3242
3293
  props: {
3243
- ...Ur.props,
3244
- ...Ot()
3294
+ ...Br.props,
3295
+ ...Kt()
3245
3296
  },
3246
3297
  setup: (e, {
3247
3298
  slots: t
3248
3299
  }) => {
3249
3300
  const {
3250
3301
  elementMap: a,
3251
- formElementMap: o,
3302
+ formElementMap: u,
3252
3303
  curdState: n,
3253
3304
  searchColumns: r,
3254
- tableColumns: u,
3305
+ tableColumns: o,
3255
3306
  sendCurdEvent: l,
3256
3307
  operates: s,
3257
- refreshList: f
3258
- } = ce(), h = $(
3259
- _(s, (m) => {
3308
+ refreshList: d
3309
+ } = ce(), S = $(
3310
+ X(s, (m) => {
3260
3311
  const M = m.action;
3261
- return M === L.DETAIL || M === L.EDIT || M === L.DELETE || m.tableOperate;
3312
+ return M === k.DETAIL || M === k.EDIT || M === k.DELETE || m.tableOperate;
3262
3313
  }),
3263
3314
  (m) => {
3264
3315
  const M = {
3265
- ...Z(m, "label", "show", "disabled", "loading", "extraProps", "onClick", "element", "sort", "per", "perSuffix", "tip", "tipProps"),
3316
+ ...J(m, "label", "show", "disabled", "loading", "extraProps", "onClick", "element", "sort", "per", "perSuffix", "tip", "tipProps"),
3266
3317
  value: m.action
3267
3318
  };
3268
- return M.onClick || (M.onClick = (x) => {
3319
+ return M.onClick || (M.onClick = (N) => {
3269
3320
  l({
3270
3321
  action: m.action,
3271
3322
  type: V.EMIT,
3272
- record: x
3323
+ record: N
3273
3324
  });
3274
3325
  }), M;
3275
3326
  }
3276
- ), p = (m) => {
3327
+ ), P = (m) => {
3277
3328
  l({
3278
- action: L.LIST,
3329
+ action: k.LIST,
3279
3330
  type: V.EMIT,
3280
3331
  values: m
3281
3332
  });
3282
3333
  };
3283
3334
  Wn(() => {
3284
- e.activatedRefresh && f();
3335
+ e.activatedRefresh && d();
3285
3336
  });
3286
- const v = N(() => ({
3287
- formElementMap: o,
3337
+ const y = I(() => ({
3338
+ formElementMap: u,
3288
3339
  columns: r.value,
3289
3340
  ...e.searchProps
3290
- })), S = N(() => {
3341
+ })), p = I(() => {
3291
3342
  var m, M;
3292
3343
  return {
3293
3344
  elementMap: a,
3294
- columns: u.value,
3345
+ columns: o.value,
3295
3346
  loading: n.listLoading,
3296
3347
  dataSource: (m = n.listData) == null ? void 0 : m.dataSource,
3297
- ...D(e.tableProps, "operate"),
3348
+ ...F(e.tableProps, "operate"),
3298
3349
  operate: {
3299
- items: h,
3350
+ items: S,
3300
3351
  ...(M = e.tableProps) == null ? void 0 : M.operate
3301
3352
  }
3302
3353
  };
3303
- }), P = N(() => {
3354
+ }), C = I(() => {
3304
3355
  var m;
3305
3356
  return e.paginationProps === !1 ? !1 : {
3306
3357
  total: (m = n.listData) == null ? void 0 : m.total,
3307
3358
  ...e.paginationProps
3308
3359
  };
3309
- }), b = Q(Ot()), w = ee()(B.ProListKey);
3360
+ }), h = Y(Kt()), w = ee()(q.ProListKey);
3310
3361
  return () => {
3311
3362
  var m, M;
3312
- return w ? d(w, R({
3363
+ return w ? i(w, R({
3313
3364
  class: "pro-curd-list"
3314
- }, D(e, ...b, "searchProps", "tableProps", "paginationProps"), {
3315
- searchProps: v.value,
3316
- tableProps: S.value,
3317
- paginationProps: P.value,
3318
- onSearch: p
3365
+ }, F(e, ...h, "searchProps", "tableProps", "paginationProps"), {
3366
+ searchProps: y.value,
3367
+ tableProps: p.value,
3368
+ paginationProps: C.value,
3369
+ onSearch: P
3319
3370
  }), {
3320
3371
  "search-end": (m = e.addConfig) != null && m.inSearch ? () => {
3321
- var x;
3322
- return d("div", {
3372
+ var N;
3373
+ return i("div", {
3323
3374
  class: "pro-curd-list-search-end"
3324
- }, [d(wt, (x = e.addConfig) == null ? void 0 : x.buttonProps, null)]);
3375
+ }, [i(Ot, (N = e.addConfig) == null ? void 0 : N.buttonProps, null)]);
3325
3376
  } : void 0,
3326
- "table-toolbarExtra": (M = e.addConfig) != null && M.inTable ? (x) => {
3377
+ "table-toolbarExtra": (M = e.addConfig) != null && M.inTable ? (N) => {
3327
3378
  var E;
3328
- return d(le, null, [d(wt, (E = e.addConfig) == null ? void 0 : E.buttonProps, null), x]);
3379
+ return i(le, null, [i(Ot, (E = e.addConfig) == null ? void 0 : E.buttonProps, null), N]);
3329
3380
  } : void 0,
3330
3381
  ...t,
3331
- search: t.search ? (x) => t.search(x, v.value) : void 0,
3332
- table: t.table ? (x) => t.table(x, S.value) : void 0,
3333
- pagination: t.pagination ? (x) => t.pagination(x, P.value) : void 0
3382
+ search: t.search ? (N) => t.search(N, y.value) : void 0,
3383
+ table: t.table ? (N) => t.table(N, p.value) : void 0,
3384
+ pagination: t.pagination ? (N) => t.pagination(N, C.value) : void 0
3334
3385
  }) : null;
3335
3386
  };
3336
3387
  }
3337
- }), to = K(() => {
3388
+ }), no = D(() => {
3338
3389
  const {
3339
3390
  listProps: e
3340
3391
  } = ce();
3341
- return () => d(ta, D(e == null ? void 0 : e.value, "slots"), g(e == null ? void 0 : e.value, "slots"));
3342
- }), na = () => ({
3392
+ return () => i(na, F(e == null ? void 0 : e.value, "slots"), g(e == null ? void 0 : e.value, "slots"));
3393
+ }), ra = () => ({
3343
3394
  signName: {
3344
3395
  type: String
3345
3396
  }
3346
- }), it = K({
3397
+ }), ft = D({
3347
3398
  props: {
3348
- ...na()
3399
+ ...ra()
3349
3400
  },
3350
3401
  setup: (e, {
3351
3402
  slots: t,
3352
3403
  expose: a,
3353
- attrs: o
3404
+ attrs: u
3354
3405
  }) => {
3355
3406
  const {
3356
3407
  elementMap: n,
3357
3408
  formElementMap: r,
3358
- curdState: u,
3409
+ curdState: o,
3359
3410
  formColumns: l,
3360
3411
  getSignColumns: s,
3361
- sendCurdEvent: f
3362
- } = ce(), h = z();
3363
- a(Pe(e.formMethods || [], h));
3364
- const p = N(() => e.signName ? s(e.signName) : l.value), v = () => {
3412
+ sendCurdEvent: d
3413
+ } = ce(), S = H();
3414
+ a(Pe(e.formMethods || [], S));
3415
+ const P = I(() => e.signName ? s(e.signName) : l.value), y = () => {
3365
3416
  var m;
3366
- u.addAction = Oe.NORMAL, (m = h.value) == null || m.submit();
3367
- }, S = () => {
3417
+ o.addAction = Ke.NORMAL, (m = S.value) == null || m.submit();
3418
+ }, p = () => {
3368
3419
  var m;
3369
- u.addAction = Oe.CONTINUE, (m = h.value) == null || m.submit();
3370
- }, P = [
3420
+ o.addAction = Ke.CONTINUE, (m = S.value) == null || m.submit();
3421
+ }, C = [
3371
3422
  {
3372
3423
  value: ue.RESET,
3373
3424
  label: "\u91CD\u7F6E"
@@ -3387,73 +3438,73 @@ const Jr = () => ({
3387
3438
  },
3388
3439
  show: !1
3389
3440
  }
3390
- ], b = (m) => {
3391
- o.onFinish || (u.mode === L.EDIT ? f({
3392
- action: L.EDIT,
3441
+ ], h = (m) => {
3442
+ u.onFinish || (o.mode === k.EDIT ? d({
3443
+ action: k.EDIT,
3393
3444
  type: V.EXECUTE,
3394
3445
  values: m
3395
- }) : f({
3396
- action: L.ADD,
3446
+ }) : d({
3447
+ action: k.ADD,
3397
3448
  type: V.EXECUTE,
3398
3449
  values: m
3399
3450
  }));
3400
- }, w = ee()(B.ProFormKey);
3401
- return () => w ? d(w, R({
3402
- ref: h,
3451
+ }, w = ee()(q.ProFormKey);
3452
+ return () => w ? i(w, R({
3453
+ ref: S,
3403
3454
  class: "pro-curd-form"
3404
- }, D(e, "operate"), {
3455
+ }, F(e, "operate"), {
3405
3456
  elementMap: e.elementMap || n,
3406
3457
  formElementMap: e.formElementMap || r,
3407
- columns: e.columns || p.value,
3408
- readonly: u.mode === L.DETAIL,
3409
- model: e.model || u.detailData,
3410
- hideRequiredMark: u.mode === L.DETAIL,
3458
+ columns: e.columns || P.value,
3459
+ readonly: o.mode === k.DETAIL,
3460
+ model: e.model || o.detailData,
3461
+ hideRequiredMark: o.mode === k.DETAIL,
3411
3462
  operate: e.operate ? {
3412
- items: P,
3413
- onSubmit: v,
3414
- onContinue: S,
3463
+ items: C,
3464
+ onSubmit: y,
3465
+ onContinue: p,
3415
3466
  ...e.operate
3416
3467
  } : void 0,
3417
- onFinish: b
3468
+ onFinish: h
3418
3469
  }), t) : null;
3419
3470
  }
3420
- }), no = K(() => {
3471
+ }), ro = D(() => {
3421
3472
  const {
3422
3473
  formProps: e
3423
3474
  } = ce();
3424
- return () => d(it, D(e == null ? void 0 : e.value, "slots"), g(e == null ? void 0 : e.value, "slots"));
3425
- }), ra = () => ({
3475
+ return () => i(ft, F(e == null ? void 0 : e.value, "slots"), g(e == null ? void 0 : e.value, "slots"));
3476
+ }), aa = () => ({
3426
3477
  signName: {
3427
3478
  type: String
3428
3479
  }
3429
- }), aa = K({
3480
+ }), oa = D({
3430
3481
  props: {
3431
- ...ra()
3482
+ ...aa()
3432
3483
  },
3433
3484
  setup: (e, {
3434
3485
  slots: t
3435
3486
  }) => {
3436
3487
  const {
3437
3488
  curdState: a,
3438
- descColumns: o,
3489
+ descColumns: u,
3439
3490
  getSignColumns: n
3440
- } = ce(), r = N(() => e.signName ? n(e.signName) : o.value);
3441
- return () => d(qr, R(D(e, "signName", "model", "columns"), {
3491
+ } = ce(), r = I(() => e.signName ? n(e.signName) : u.value);
3492
+ return () => i(Ur, R(F(e, "signName", "model", "columns"), {
3442
3493
  model: e.model || a.detailData,
3443
3494
  columns: r.value
3444
3495
  }), t);
3445
3496
  }
3446
- }), ro = K(() => {
3497
+ }), ao = D(() => {
3447
3498
  const {
3448
3499
  descProps: e
3449
3500
  } = ce();
3450
- return () => d(aa, R({
3501
+ return () => i(oa, R({
3451
3502
  class: "pro-curd-desc"
3452
- }, D(e == null ? void 0 : e.value, "slots")), g(e == null ? void 0 : e.value, "slots"));
3453
- }), Kt = () => ({
3503
+ }, F(e == null ? void 0 : e.value, "slots")), g(e == null ? void 0 : e.value, "slots"));
3504
+ }), At = () => ({
3454
3505
  validMode: {
3455
3506
  type: Array,
3456
- default: [L.ADD, L.DETAIL, L.EDIT]
3507
+ default: [k.ADD, k.DETAIL, k.EDIT]
3457
3508
  },
3458
3509
  loadingOpts: {
3459
3510
  type: Object
@@ -3461,48 +3512,48 @@ const Jr = () => ({
3461
3512
  overrideProps: {
3462
3513
  type: Object
3463
3514
  }
3464
- }), pn = K({
3515
+ }), Sn = D({
3465
3516
  props: {
3466
- ...Kt()
3517
+ ...At()
3467
3518
  },
3468
3519
  setup: (e, {
3469
3520
  slots: t
3470
3521
  }) => {
3471
- const a = ee(), o = a(B.ModalKey), n = a(B.LoadingKey), {
3522
+ const a = ee(), u = a(q.ModalKey), n = a(q.LoadingKey), {
3472
3523
  curdState: r,
3473
- getOperate: u
3524
+ getOperate: o
3474
3525
  } = ce(), l = () => {
3475
3526
  r.mode = void 0, jt(r.detailData, {}), r.detailLoading = !1, r.addAction = void 0;
3476
- }, s = Q(Kt());
3527
+ }, s = Y(At());
3477
3528
  return () => {
3478
- var h;
3479
- const f = r.mode;
3480
- return !he(e.validMode, (p) => p === f) || !o ? null : d(o, R({
3529
+ var S;
3530
+ const d = r.mode;
3531
+ return !he(e.validMode, (P) => P === d) || !u ? null : i(u, R({
3481
3532
  class: "pro-curd-modal"
3482
- }, D(e, s), {
3483
- visible: he(e.validMode, (p) => p === f),
3484
- title: e.title || ((h = u(r.mode)) == null ? void 0 : h.label),
3533
+ }, F(e, s), {
3534
+ visible: he(e.validMode, (P) => P === d),
3535
+ title: e.title || ((S = o(r.mode)) == null ? void 0 : S.label),
3485
3536
  confirmLoading: r.operateLoading,
3486
- maskClosable: r.mode === L.DETAIL,
3487
- footer: r.detailLoading || r.mode === L.DETAIL ? !1 : void 0
3537
+ maskClosable: r.mode === k.DETAIL,
3538
+ footer: r.detailLoading || r.mode === k.DETAIL ? !1 : void 0
3488
3539
  }, e.overrideProps, {
3489
3540
  onCancel: l
3490
3541
  }), {
3491
3542
  default: () => {
3492
- var p;
3493
- return [r.detailLoading && n ? d(n, R({
3543
+ var P;
3544
+ return [r.detailLoading && n ? i(n, R({
3494
3545
  loading: !0
3495
3546
  }, e.loadingOpts), {
3496
- default: () => [d("div", {
3547
+ default: () => [i("div", {
3497
3548
  class: "pro-curd-modal-loading-dom"
3498
3549
  }, null)]
3499
- }) : (p = t.default) == null ? void 0 : p.call(t)];
3550
+ }) : (P = t.default) == null ? void 0 : P.call(t)];
3500
3551
  },
3501
- ...D(t, "default")
3552
+ ...F(t, "default")
3502
3553
  });
3503
3554
  };
3504
3555
  }
3505
- }), ao = K({
3556
+ }), oo = D({
3506
3557
  props: {
3507
3558
  modalProps: Object,
3508
3559
  formProps: Object
@@ -3510,36 +3561,36 @@ const Jr = () => ({
3510
3561
  setup: (e, {
3511
3562
  slots: t
3512
3563
  }) => {
3513
- const a = z(), o = fe(t, "modal"), n = fe(t, "form");
3514
- return () => d(pn, R(e.modalProps, {
3564
+ const a = H(), u = fe(t, "modal"), n = fe(t, "form");
3565
+ return () => i(Sn, R(e.modalProps, {
3515
3566
  onOk: () => {
3516
3567
  var r;
3517
3568
  (r = a.value) == null || r.submit();
3518
3569
  }
3519
3570
  }), {
3520
- default: () => [d(it, R({
3571
+ default: () => [i(ft, R({
3521
3572
  ref: a
3522
3573
  }, e.formProps), n)],
3523
- ...o
3574
+ ...u
3524
3575
  });
3525
3576
  }
3526
- }), oo = K(() => {
3577
+ }), uo = D(() => {
3527
3578
  const {
3528
3579
  modalProps: e,
3529
3580
  formProps: t
3530
- } = ce(), a = z();
3531
- return () => d(pn, R(D(e == null ? void 0 : e.value, "slots"), {
3581
+ } = ce(), a = H();
3582
+ return () => i(Sn, R(F(e == null ? void 0 : e.value, "slots"), {
3532
3583
  onOk: () => {
3533
- var o;
3534
- (o = a.value) == null || o.submit();
3584
+ var u;
3585
+ (u = a.value) == null || u.submit();
3535
3586
  }
3536
3587
  }), {
3537
- default: () => [d(it, R({
3588
+ default: () => [i(ft, R({
3538
3589
  ref: a
3539
- }, D(t == null ? void 0 : t.value, "slots")), g(t == null ? void 0 : t.value, "slots"))],
3590
+ }, F(t == null ? void 0 : t.value, "slots")), g(t == null ? void 0 : t.value, "slots"))],
3540
3591
  ...g(e == null ? void 0 : e.value, "slots")
3541
3592
  });
3542
- }), Sn = Symbol("logon-user"), uo = () => ye(Sn), oa = (e, t) => Xt(t / 10, "#000000", e), ua = (e, t) => Xt(t / 10, "#ffffff", e), ge = {
3593
+ }), pn = Symbol("logon-user"), lo = () => ye(pn), ua = (e, t) => _t(t / 10, "#000000", e), la = (e, t) => _t(t / 10, "#ffffff", e), ge = {
3543
3594
  color: {
3544
3595
  primary: "#409eff",
3545
3596
  success: "#67c23a",
@@ -3551,26 +3602,26 @@ const Jr = () => ({
3551
3602
  radius: "4px",
3552
3603
  lineHeight: 1.5714285714285714,
3553
3604
  spacing: 4
3554
- }, la = (e) => {
3555
- var o, n, r, u, l, s, f, h, p, v, S, P;
3556
- const t = [1, 2, 3, 4, 5, 6, 7, 8, 9], a = (b) => ({
3557
- base: b,
3558
- light: re(t, (T, w) => ({
3559
- ...T,
3560
- [String(w)]: ua(b, w)
3605
+ }, ca = (e) => {
3606
+ var u, n, r, o, l, s, d, S, P, y, p, C;
3607
+ const t = [1, 2, 3, 4, 5, 6, 7, 8, 9], a = (h) => ({
3608
+ base: h,
3609
+ light: re(t, (O, w) => ({
3610
+ ...O,
3611
+ [String(w)]: la(h, w)
3561
3612
  }), {}),
3562
3613
  dark: {
3563
- 2: oa(b, 2)
3614
+ 2: ua(h, 2)
3564
3615
  }
3565
3616
  });
3566
3617
  return {
3567
3618
  color: {
3568
- primary: a(((o = e == null ? void 0 : e.color) == null ? void 0 : o.primary) || ((n = ge.color) == null ? void 0 : n.primary)),
3569
- success: a(((r = e == null ? void 0 : e.color) == null ? void 0 : r.success) || ((u = ge.color) == null ? void 0 : u.success)),
3619
+ primary: a(((u = e == null ? void 0 : e.color) == null ? void 0 : u.primary) || ((n = ge.color) == null ? void 0 : n.primary)),
3620
+ success: a(((r = e == null ? void 0 : e.color) == null ? void 0 : r.success) || ((o = ge.color) == null ? void 0 : o.success)),
3570
3621
  warning: a(((l = e == null ? void 0 : e.color) == null ? void 0 : l.warning) || ((s = ge.color) == null ? void 0 : s.warning)),
3571
- danger: a(((f = e == null ? void 0 : e.color) == null ? void 0 : f.danger) || ((h = ge.color) == null ? void 0 : h.danger)),
3572
- error: a(((p = e == null ? void 0 : e.color) == null ? void 0 : p.error) || ((v = ge.color) == null ? void 0 : v.error)),
3573
- info: a(((S = e == null ? void 0 : e.color) == null ? void 0 : S.info) || ((P = ge.color) == null ? void 0 : P.info)),
3622
+ danger: a(((d = e == null ? void 0 : e.color) == null ? void 0 : d.danger) || ((S = ge.color) == null ? void 0 : S.danger)),
3623
+ error: a(((P = e == null ? void 0 : e.color) == null ? void 0 : P.error) || ((y = ge.color) == null ? void 0 : y.error)),
3624
+ info: a(((p = e == null ? void 0 : e.color) == null ? void 0 : p.info) || ((C = ge.color) == null ? void 0 : C.info)),
3574
3625
  text: {
3575
3626
  base: "#303133",
3576
3627
  regular: "#606266",
@@ -3603,9 +3654,9 @@ const Jr = () => ({
3603
3654
  md: 1.5714285714285714,
3604
3655
  sm: 1.6666666666666667
3605
3656
  },
3606
- spacing: re(t, (b, T) => ({
3607
- ...b,
3608
- [String(T)]: T * 4 + "px"
3657
+ spacing: re(t, (h, O) => ({
3658
+ ...h,
3659
+ [String(O)]: O * 4 + "px"
3609
3660
  }), {}),
3610
3661
  shadow: {
3611
3662
  base: "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",
@@ -3615,7 +3666,7 @@ const Jr = () => ({
3615
3666
  inner: "inset 0 2px 4px 0 rgb(0 0 0 / 0.05)"
3616
3667
  }
3617
3668
  };
3618
- }, ca = () => ({
3669
+ }, sa = () => ({
3619
3670
  theme: {
3620
3671
  type: Object
3621
3672
  },
@@ -3629,138 +3680,141 @@ const Jr = () => ({
3629
3680
  createCssVar: {
3630
3681
  type: Function
3631
3682
  }
3632
- }), lo = K({
3683
+ }), co = D({
3633
3684
  props: {
3634
- ...ca()
3685
+ ...sa()
3635
3686
  },
3636
3687
  setup: (e, {
3637
3688
  slots: t
3638
3689
  }) => {
3639
- const o = be({
3640
- ...(() => e.theme ? e.theme : la(e.themeToken))()
3690
+ const u = be({
3691
+ ...(() => e.theme ? e.theme : ca(e.themeToken))()
3641
3692
  });
3642
- return me(Sn, o), () => {
3693
+ return me(pn, u), () => {
3643
3694
  var n, r;
3644
- return e.global ? d(le, null, [e.createCssVar && d(Zn, {
3695
+ return e.global ? i(le, null, [e.createCssVar && i(Zn, {
3645
3696
  styles: {
3646
- ":root": e.createCssVar(o)
3697
+ ":root": e.createCssVar(u)
3647
3698
  }
3648
3699
  }, null), (n = t.default) == null ? void 0 : n.call(t)]) : (r = t.default) == null ? void 0 : r.call(t);
3649
3700
  };
3650
3701
  }
3651
3702
  });
3652
3703
  export {
3653
- wt as AddButton,
3704
+ Ot as AddButton,
3654
3705
  Dr as ColumnSetting,
3655
- L as CurdAction,
3656
- Oe as CurdAddAction,
3706
+ k as CurdAction,
3707
+ Ke as CurdAddAction,
3657
3708
  ve as CurdCurrentMode,
3658
3709
  gn as CurdMethods,
3659
3710
  V as CurdSubAction,
3660
- B as ElementKeys,
3711
+ q as ElementKeys,
3661
3712
  ue as FormAction,
3662
3713
  Ra as FormRulePrefixMap,
3663
3714
  ja as LogonUser,
3664
- cn as LogonUserKey,
3665
- Ge as ModalCurdOpe,
3666
- ka as MustLogon,
3667
- We as PageHeader,
3715
+ sn as LogonUserKey,
3716
+ Xe as ModalCurdOpe,
3717
+ Ba as MustLogon,
3718
+ Ge as PageHeader,
3668
3719
  Ua as PerSuffix,
3669
3720
  qa as Permission,
3670
- Ea as ProConfig,
3671
- Qe as ProCurd,
3672
- aa as ProCurdDesc,
3673
- ro as ProCurdDescConnect,
3674
- it as ProCurdForm,
3675
- no as ProCurdFormConnect,
3676
- ta as ProCurdList,
3677
- to as ProCurdListConnect,
3678
- pn as ProCurdModal,
3679
- ao as ProCurdModalForm,
3680
- oo as ProCurdModalFormConnect,
3681
- qr as ProDesc,
3682
- Da as ProForm,
3683
- Aa as ProFormList,
3684
- Ce as ProGrid,
3685
- _a as ProLayout,
3686
- Ur as ProList,
3687
- Za as ProModalCurd,
3721
+ Ta as ProConfig,
3722
+ Je as ProCurd,
3723
+ oa as ProCurdDesc,
3724
+ ao as ProCurdDescConnect,
3725
+ ft as ProCurdForm,
3726
+ ro as ProCurdFormConnect,
3727
+ na as ProCurdList,
3728
+ no as ProCurdListConnect,
3729
+ Sn as ProCurdModal,
3730
+ oo as ProCurdModalForm,
3731
+ uo as ProCurdModalFormConnect,
3732
+ Ur as ProDesc,
3733
+ Fa as ProForm,
3734
+ Da as ProFormList,
3735
+ Me as ProGrid,
3736
+ Ya as ProLayout,
3737
+ vn as ProLayoutKey,
3738
+ Br as ProList,
3739
+ eo as ProModalCurd,
3688
3740
  $e as ProModule,
3689
- fn as ProOperate,
3690
- Va as ProPage,
3691
- eo as ProPageCurd,
3741
+ mn as ProOperate,
3742
+ za as ProPage,
3743
+ to as ProPageCurd,
3744
+ Wr as ProRouterView,
3692
3745
  $a as ProSearchForm,
3693
- Xa as ProShowDate,
3694
- Ha as ProShowDigit,
3695
- Wa as ProShowOptions,
3696
- ze as ProShowText,
3697
- Ga as ProShowTree,
3698
- Ba as ProTable,
3699
- lo as ProTheme,
3746
+ _a as ProShowDate,
3747
+ Wa as ProShowDigit,
3748
+ Ga as ProShowOptions,
3749
+ He as ProShowText,
3750
+ Xa as ProShowTree,
3751
+ Va as ProTable,
3752
+ co as ProTheme,
3700
3753
  Tr as ProTip,
3701
3754
  zr as ProTypography,
3702
- Qa as ProUploadList,
3703
- Ya as ProUploaderText,
3704
- za as ProValue,
3755
+ Ja as ProUploadList,
3756
+ Qa as ProUploaderText,
3757
+ Ha as ProValue,
3705
3758
  Ne as RequestAction,
3706
3759
  or as RouterMethods,
3707
3760
  qe as SearchMode,
3708
- Sn as ThemeKey,
3761
+ pn as ThemeKey,
3709
3762
  ge as ThemeToken,
3710
3763
  hr as Wrapper,
3711
- tn as convertPathToList,
3764
+ nn as convertPathToList,
3712
3765
  rr as convertResData,
3713
3766
  Pe as createExpose,
3714
- Ka as createExposeObj,
3715
- Fa as createFormItemCompFn,
3716
- Ja as createModule,
3717
- Ta as createProConfig,
3718
- la as createTheme,
3719
- jr as defaultPage,
3767
+ Aa as createExposeObj,
3768
+ La as createFormItemCompFn,
3769
+ Za as createModule,
3770
+ xa as createProConfig,
3771
+ ca as createTheme,
3772
+ kr as defaultPage,
3720
3773
  fe as filterSlotsByPrefix,
3721
3774
  de as getColumnFormItemName,
3722
- Qt as getColumnValueType,
3775
+ Jt as getColumnValueType,
3723
3776
  vr as getFirstPropName,
3724
3777
  mr as getRealRender,
3725
- Sr as getSignValue,
3726
- pr as getValidValues,
3778
+ pr as getSignValue,
3779
+ Sr as getValidValues,
3727
3780
  yr as isValidConfig,
3728
- Ye as isValidNode,
3729
- Be as mergeState,
3730
- Oa as mergeStateToList,
3731
- pe as proBaseProps,
3732
- Qr as provideProCurd,
3733
- an as provideProFormList,
3781
+ Qe as isValidNode,
3782
+ Ve as mergeState,
3783
+ Ka as mergeStateToList,
3784
+ Se as proBaseProps,
3785
+ Jr as provideProCurd,
3786
+ on as provideProFormList,
3734
3787
  dr as provideProModule,
3735
- ct as renderColumn,
3736
- we as renderElement,
3737
- st as renderElements,
3738
- Jt as renderInputColumn,
3739
- yn as showValue,
3788
+ st as renderColumn,
3789
+ Oe as renderElement,
3790
+ it as renderElements,
3791
+ Zt as renderInputColumn,
3792
+ hn as showValue,
3740
3793
  xr as useAccess,
3741
- La as useAccessMgr,
3794
+ ka as useAccessMgr,
3742
3795
  nr as useComposeRequestActor,
3743
3796
  Na as useDispatchMeta,
3744
3797
  ir as useDispatchStore,
3745
- xa as useDoneRequestActor,
3746
- Ia as useFailedRequestActor,
3798
+ Ia as useDoneRequestActor,
3799
+ wa as useFailedRequestActor,
3747
3800
  Cr as useFormSubmit,
3748
3801
  ee as useGetCompByKey,
3749
- sn as useHasPer,
3750
- dn as useHasPer2,
3802
+ dn as useHasPer,
3803
+ fn as useHasPer2,
3751
3804
  Ir as useLogonUser,
3752
3805
  ar as useMetaRegister,
3753
- lt as useModuleEvent,
3806
+ ct as useModuleEvent,
3754
3807
  oe as useProConfig,
3755
3808
  ce as useProCurd,
3756
- un as useProForm,
3757
- rn as useProFormList,
3758
- Ca as useProModal,
3759
- Se as useProModule,
3760
- Pa as useProMsg,
3761
- Ma as useProNotify,
3762
- Ve as useProRouter,
3763
- Rr as useProTable,
3764
- wa as useReadStore,
3765
- uo as useTheme
3809
+ ln as useProForm,
3810
+ an as useProFormList,
3811
+ dt as useProLayout,
3812
+ Ma as useProModal,
3813
+ pe as useProModule,
3814
+ Ca as useProMsg,
3815
+ Ea as useProNotify,
3816
+ ze as useProRouter,
3817
+ Fr as useProTable,
3818
+ Oa as useReadStore,
3819
+ lo as useTheme
3766
3820
  };