@vue-start/pro 0.5.41 → 0.5.42

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 Nn, startsWith as wn, mapKeys as On, debounce as Rt, clone as Kn, isBoolean as Ne, 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), Na = 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;
117
- }, Na = () => {
118
- const e = Gt(), { registerMetaMap: t, dispatchRequest: a } = oe();
119
- return (o) => {
120
- const n = g(t, o);
115
+ const u = (n = e.res) == null ? void 0 : n.data;
116
+ return t ? t(u, e) : a ? g(u, a) : u;
117
+ }, wa = () => {
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,96 +150,96 @@ 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();
241
241
  }, []);
242
- }, Ne = {
242
+ }, we = {
243
243
  Success: "request-success$",
244
244
  Fail: "request-fail$"
245
245
  }, fr = () => ({
@@ -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 = {}, N = (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
- dispatch: w,
303
+ dispatch: N,
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) || N({
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: w
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 && N({
345
+ type: v.loadingName,
346
346
  payload: !0
347
- }), x(i.actor, C);
347
+ }), w(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({
357
- type: Ne.Success,
351
+ var b;
352
+ const f = g(K, c.name), v = B(f, c);
353
+ f != null && f.stateName && N({
354
+ type: f.stateName,
355
+ payload: v
356
+ }), P({
357
+ type: we.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({
368
- type: Ne.Fail,
365
+ var v;
366
+ const f = g(K, c.name);
367
+ P({
368
+ type: we.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 && N({
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,
426
- dispatch: w,
427
- data: T,
423
+ subject$: S,
424
+ sendEvent: P,
425
+ state: h,
426
+ dispatch: N,
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 = (...N) => {
581
+ const m = `${r.elementId}-${C.name}`;
582
582
  a({
583
583
  type: m,
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);
584
+ payload: N
585
+ }), u(C.executeList, N);
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) => {
595
- const m = w.mapName || w.name, M = g(t, w.name);
596
- return ie(P, m, M), vr(m);
594
+ }, h = X(o.registerStateList, (N) => !N.target || N.target === "prop"), O = $(h, (N) => {
595
+ const m = N.mapName || N.name, M = g(t, N.name);
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 : Nn(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) => wn(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 w;
787
+ if (((w = e.onPreAdd) == null ? void 0 : w.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 w = de(m);
821
+ return w && t[w] ? t[w]({
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 w = $(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: w
840
840
  }, null);
841
- }, w = Q(Ct());
842
- return () => o ? d(o, R({
841
+ }, N = 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, N)), {
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), (w, E) => {
849
+ const K = [...S, E];
850
+ return i(Pr, {
851
+ key: w[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, w)
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), N = (...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, w = Cr((...T) => N(...T), M, m == null ? void 0 : m.options), E = (T) => {
961
+ const L = Sr(T, S, e.showStateRules);
962
+ m !== void 0 ? w(L, T) : N(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, N) => he(N, (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 N = _(e.debounceKeys) > 0 ? e.debounceKeys : l;
1142
+ if (_(N) > 0 && p(h, O, N)) {
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(() => Ne(r.readonly) ? r.readonly : Ne(S[r.name]) ? S[r.name] : y.value), O = () => `${g(l == null ? void 0 : l.rulePrefixMap, u) || "\u8BF7\u8F93\u5165"}${r.label || ""}`, N = 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, w = (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: w,
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, w, 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
- rules: w.value
1259
+ rules: N.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
+ }, Nr = (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
1307
  return Nr(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;
1309
+ }, fn = () => {
1310
+ const e = dn();
1311
+ return (t, a, u) => t ? e(t) : a ? e(a, { suffix: !0, splitStr: u }) : !0;
1312
1312
  }, wr = () => ({
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
1319
  ...wr()
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() : Ne(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,105 +1417,105 @@ 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, (w) => {
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(w)) != null && E.disabled ? !0 : g(y.value, w.dataIndex);
1455
+ }), M = he(r.value, (w) => {
1456
1456
  var E;
1457
- return (E = S(x)) != null && E.disabled ? !0 : g(v.value, x.dataIndex);
1457
+ return (E = p(w)) != null && E.disabled ? !0 : g(y.value, w.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 w;
1465
+ (Ie(m) ? (w = m.target) == null ? void 0 : w.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
- }, w = (m, M) => {
1474
+ }, N = (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), w = g(y.value, m.dataIndex, !1);
1503
+ return i(n, {
1504
+ checked: w,
1505
1505
  disabled: M == null ? void 0 : M.disabled,
1506
1506
  onChange: (E) => {
1507
- w(m, E);
1507
+ N(m, E);
1508
1508
  }
1509
1509
  }, {
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
+ ...Ne(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
+ }), N = 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(), w = 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
+ w.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: ${w.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
- dataSource: w.value,
1704
- columns: T.value
1703
+ dataSource: N.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,48 @@ 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(() => !e.layoutTabsBackMode || !a ? e.showBack : !1), n = ee(), r = n(q.LoadingKey), o = e.as || n(q.ScrollKey) || "div", l = () => r ? i(r, R({
1783
1786
  loading: !0
1784
1787
  }, e.loadingOpts), {
1785
- default: () => [d("div", {
1788
+ default: () => [i("div", {
1786
1789
  class: "pro-loading-dom"
1787
1790
  }, null)]
1788
- }) : null, u = Q(We.props);
1791
+ }) : null, s = Y(Ge.props).filter((d) => d !== "showBack");
1789
1792
  return () => {
1790
1793
  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
1794
+ 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"];
1795
+ return e.fillMode && y.push("pro-page-fill"), d && y.push("has-header"), P && y.push("has-footer"), i(o, {
1796
+ class: y
1794
1797
  }, {
1795
1798
  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", {
1799
+ var C, h;
1800
+ return [(C = t.start) == null ? void 0 : C.call(t), d && i(Ge, R(J(e, s), {
1801
+ showBack: u.value
1802
+ }), F(t, "start", "default", "footer")), i("div", {
1798
1803
  class: "pro-page-content"
1799
- }, [e.loading ? r() : (S = t.default) == null ? void 0 : S.call(t)]), f && d("div", {
1804
+ }, [e.loading ? l() : (h = t.default) == null ? void 0 : h.call(t)]), P && i("div", {
1800
1805
  class: "pro-page-footer"
1801
- }, [s])];
1806
+ }, [S])];
1802
1807
  }
1803
1808
  });
1804
1809
  };
1805
1810
  }
1806
- }), jr = Object.freeze({
1811
+ }), kr = Object.freeze({
1807
1812
  page: 1,
1808
1813
  pageSize: 10
1809
- }), kr = () => ({
1814
+ }), jr = () => ({
1810
1815
  clsName: {
1811
1816
  type: String,
1812
1817
  default: "pro-list"
@@ -1840,43 +1845,43 @@ const Kr = () => ({
1840
1845
  end: {
1841
1846
  type: Function
1842
1847
  }
1843
- }), Ur = K({
1848
+ }), Br = D({
1844
1849
  props: {
1845
- ...kr()
1850
+ ...jr()
1846
1851
  },
1847
1852
  setup: (e, {
1848
1853
  slots: t,
1849
1854
  emit: a
1850
1855
  }) => {
1851
- const o = ee(), n = o(B.ProSearchFormKey), r = o(B.ProTableKey), u = o(B.PaginationKey), l = e.pageState || be({
1852
- ...jr
1856
+ const u = ee(), n = u(q.ProSearchFormKey), r = u(q.ProTableKey), o = u(q.PaginationKey), l = e.pageState || be({
1857
+ ...kr
1853
1858
  });
1854
1859
  let s;
1855
- const f = () => {
1860
+ const d = () => {
1856
1861
  a("search", {
1857
1862
  ...s,
1858
1863
  ...l
1859
1864
  });
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");
1865
+ }, S = (h, O) => {
1866
+ s = h, l.page = O || 1, d();
1867
+ }, P = (h, O) => {
1868
+ l.page = h, l.pageSize = O, d();
1869
+ }, y = fe(t, "search"), p = fe(t, "table"), C = fe(t, "pagination");
1865
1870
  return () => {
1866
- var T, w, m, M, x, E, O, k;
1867
- const b = t.search ? t.search({
1868
- executeSearchWithResetPage: h,
1871
+ var O, N, m, M, w, E, K, j;
1872
+ const h = t.search ? t.search({
1873
+ executeSearchWithResetPage: S,
1869
1874
  pageState: l
1870
- }) : d(le, null, [n && d(n, R({
1875
+ }) : i(le, null, [n && i(n, R({
1871
1876
  class: `${e.clsName}-search`
1872
- }, D(e.searchProps, "onFinish"), {
1873
- onFinish: (U) => h(U)
1874
- }), v)]);
1875
- return d("div", {
1877
+ }, F(e.searchProps, "onFinish"), {
1878
+ onFinish: (B) => S(B)
1879
+ }), y)]);
1880
+ return i("div", {
1876
1881
  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({
1882
+ }, [((O = t.start) == null ? void 0 : O.call(t)) || ((N = e.start) == null ? void 0 : N.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
1883
  pageState: l
1879
- }) : d(le, null, [r && d(r, R({
1884
+ }) : i(le, null, [r && i(r, R({
1880
1885
  class: `${e.clsName}-table`,
1881
1886
  paginationState: {
1882
1887
  page: l.page,
@@ -1884,21 +1889,21 @@ const Kr = () => ({
1884
1889
  },
1885
1890
  pagination: !1
1886
1891
  }, 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,
1892
+ ...p,
1893
+ toolbar: e.searchInTable ? () => p.toolbar ? p.toolbar(h) : h : p.toolbar
1894
+ })]), ((w = t.divide2) == null ? void 0 : w.call(t)) || ((E = e.divide2) == null ? void 0 : E.call(e)), t.pagination ? t.pagination({
1895
+ executePageChange: P,
1891
1896
  pageState: l
1892
- }) : d(le, null, [e.paginationProps !== !1 && u && d("div", {
1897
+ }) : i(le, null, [e.paginationProps !== !1 && o && i("div", {
1893
1898
  class: `${e.clsName}-pagination`
1894
- }, [d(u, R(D(Ie(e.paginationProps) ? {} : e.paginationProps, "onChange"), {
1899
+ }, [i(o, R(F(Ne(e.paginationProps) ? {} : e.paginationProps, "onChange"), {
1895
1900
  page: l.page,
1896
1901
  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))]);
1902
+ onComposeChange: P
1903
+ }), C)])]), ((K = t.end) == null ? void 0 : K.call(t)) || ((j = e.end) == null ? void 0 : j.call(e))]);
1899
1904
  };
1900
1905
  }
1901
- }), It = () => ({
1906
+ }), Nt = () => ({
1902
1907
  clsName: {
1903
1908
  type: String,
1904
1909
  default: "pro-desc"
@@ -1906,57 +1911,57 @@ const Kr = () => ({
1906
1911
  model: {
1907
1912
  type: Object
1908
1913
  }
1909
- }), qr = K({
1914
+ }), Ur = D({
1910
1915
  props: {
1911
- ...pe,
1912
- ...It()
1916
+ ...Se,
1917
+ ...Nt()
1913
1918
  },
1914
1919
  setup: (e, {
1915
1920
  slots: t
1916
1921
  }) => {
1917
1922
  const {
1918
1923
  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({
1924
+ } = 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(Nt());
1925
+ return () => !r || !o ? null : i(r, R({
1921
1926
  class: e.clsName
1922
- }, D(e, ...s, ...f, "model")), {
1927
+ }, F(e, ...s, ...d, "model")), {
1923
1928
  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({
1929
+ var S, P;
1930
+ return [(S = t.start) == null ? void 0 : S.call(t), $(l.value, (y) => {
1931
+ const p = y.dataIndex, C = g(e.model, p);
1932
+ return i(o, R({
1928
1933
  class: `${e.clsName}-item`
1929
- }, g(v.extra, "desc")), {
1934
+ }, g(y.extra, "desc")), {
1930
1935
  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
1936
+ var h, O;
1937
+ 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, {
1938
+ value: C
1934
1939
  }, {
1935
1940
  render: "descRender"
1936
1941
  })];
1937
1942
  },
1938
1943
  label: () => {
1939
- var b;
1940
- return ((b = t.label) == null ? void 0 : b.call(t, v)) || v.title;
1944
+ var h;
1945
+ return ((h = t.label) == null ? void 0 : h.call(t, y)) || y.title;
1941
1946
  }
1942
1947
  });
1943
- }), (p = t.default) == null ? void 0 : p.call(t)];
1948
+ }), (P = t.default) == null ? void 0 : P.call(t)];
1944
1949
  },
1945
1950
  ...t
1946
1951
  });
1947
1952
  }
1948
- }), yn = (e, t) => Ze(e) ? e : e || t, Br = () => ({
1953
+ }), hn = (e, t) => et(e) ? e : e || t, qr = () => ({
1949
1954
  value: {
1950
1955
  type: [String, Number]
1951
1956
  },
1952
1957
  emptyText: {
1953
1958
  type: String
1954
1959
  }
1955
- }), za = K({
1960
+ }), Ha = D({
1956
1961
  props: {
1957
- ...Br()
1962
+ ...qr()
1958
1963
  },
1959
- setup: (e) => () => yn(e.value, e.emptyText)
1964
+ setup: (e) => () => hn(e.value, e.emptyText)
1960
1965
  }), Vr = () => ({
1961
1966
  content: {
1962
1967
  type: [String, Number]
@@ -1968,7 +1973,7 @@ const Kr = () => ({
1968
1973
  emptyText: {
1969
1974
  type: String
1970
1975
  }
1971
- }), zr = K({
1976
+ }), zr = D({
1972
1977
  inheritAttrs: !1,
1973
1978
  props: {
1974
1979
  ...Vr()
@@ -1976,22 +1981,22 @@ const Kr = () => ({
1976
1981
  setup: (e, {
1977
1982
  attrs: t
1978
1983
  }) => {
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";
1984
+ const u = ee()(q.PopoverKey), n = () => {
1985
+ var r, o;
1986
+ 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
1987
  };
1983
1988
  return () => {
1984
- const r = d("span", R({
1989
+ const r = i("span", R({
1985
1990
  class: `pro-typography ${e.ellipsis ? "pro-typography-ellipsis" : ""}`,
1986
1991
  style: `-webkit-line-clamp:${n()}`
1987
- }, t), [yn(e.content, e.emptyText)]);
1988
- return !e.popoverProps || !o ? r : d(o, e.popoverProps, {
1992
+ }, t), [hn(e.content, e.emptyText)]);
1993
+ return !e.popoverProps || !u ? r : i(u, e.popoverProps, {
1989
1994
  default: () => [r],
1990
1995
  content: () => e.content
1991
1996
  });
1992
1997
  };
1993
1998
  }
1994
- }), Ae = {
1999
+ }), De = {
1995
2000
  value: {
1996
2001
  type: [String, Number]
1997
2002
  },
@@ -2000,28 +2005,32 @@ const Kr = () => ({
2000
2005
  },
2001
2006
  convert: {
2002
2007
  type: Function
2008
+ },
2009
+ render: {
2010
+ type: Function,
2011
+ default: void 0
2003
2012
  }
2004
- }, ze = K({
2013
+ }, He = D({
2005
2014
  inheritAttrs: !1,
2006
2015
  props: {
2007
- ...Ae
2016
+ ...De
2008
2017
  },
2009
2018
  setup: (e, {
2010
2019
  attrs: t
2011
2020
  }) => {
2012
- const a = N(() => {
2021
+ const a = I(() => {
2013
2022
  var r;
2014
- const o = (r = e.showProps) == null ? void 0 : r.content, n = e.value || Ze(e.value) ? e.value : o;
2023
+ const u = (r = e.showProps) == null ? void 0 : r.content, n = e.value || et(e.value) ? e.value : u;
2015
2024
  return e.convert ? e.convert(n, e) : n;
2016
2025
  });
2017
- return () => d(zr, R(Z(t, "style", "class"), D(e.showProps, "content"), {
2026
+ return () => i(zr, R(J(t, "style", "class"), F(e.showProps, "content"), {
2018
2027
  content: a.value
2019
2028
  }), null);
2020
2029
  }
2021
- }), Ha = K({
2030
+ }), Wa = D({
2022
2031
  inheritAttrs: !1,
2023
2032
  props: {
2024
- ...Ae,
2033
+ ...De,
2025
2034
  decimalFixed: {
2026
2035
  type: Number,
2027
2036
  default: 0
@@ -2034,19 +2043,24 @@ const Kr = () => ({
2034
2043
  setup: (e, {
2035
2044
  attrs: t
2036
2045
  }) => {
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;
2046
+ const a = I(() => {
2047
+ let u = e.value;
2048
+ return u && e.decimalFixed && (u = qn(u, e.decimalFixed || 2)), u && e.thousandDivision && (u = Vn(u)), e.convert ? e.convert(u, e) : u;
2040
2049
  });
2041
- return () => d(ze, R(Z(t, "style", "class"), {
2050
+ return () => e.render ? e.render({
2051
+ value: a.value,
2052
+ props: e
2053
+ }) : i(He, R({
2054
+ class: "pro-show-digit"
2055
+ }, J(t, "style", "class"), {
2042
2056
  value: a.value,
2043
2057
  showProps: e.showProps
2044
2058
  }), null);
2045
2059
  }
2046
- }), Wa = K({
2060
+ }), Ga = D({
2047
2061
  inheritAttrs: !1,
2048
2062
  props: {
2049
- ...Ae,
2063
+ ...De,
2050
2064
  value: {
2051
2065
  type: [String, Number, Array]
2052
2066
  },
@@ -2062,21 +2076,27 @@ const Kr = () => ({
2062
2076
  setup: (e, {
2063
2077
  attrs: t
2064
2078
  }) => {
2065
- const a = N(() => zn(e.options, (r) => r.label), void 0), o = N(() => {
2079
+ const a = I(() => zn(e.options, (r) => r.label), void 0), u = I(() => {
2066
2080
  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"), {
2081
+ let o = e.value;
2082
+ 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;
2083
+ }), n = I(() => g(e.colorMap, e.value));
2084
+ return () => e.render ? e.render({
2085
+ color: n.value,
2086
+ value: u.value,
2087
+ props: e
2088
+ }) : i(He, R({
2089
+ class: "pro-show-options"
2090
+ }, J(t, "style", "class"), {
2071
2091
  style: `color:${n.value || ""}`,
2072
- value: o.value,
2092
+ value: u.value,
2073
2093
  showProps: e.showProps
2074
2094
  }), null);
2075
2095
  }
2076
- }), Ga = K({
2096
+ }), Xa = D({
2077
2097
  inheritAttrs: !1,
2078
2098
  props: {
2079
- ...Ae,
2099
+ ...De,
2080
2100
  value: {
2081
2101
  type: [String, Number, Array]
2082
2102
  },
@@ -2093,25 +2113,30 @@ const Kr = () => ({
2093
2113
  setup: (e, {
2094
2114
  attrs: t
2095
2115
  }) => {
2096
- const a = N(() => {
2116
+ const a = I(() => {
2097
2117
  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"), {
2118
+ return zt(n, (o) => g(o, (r == null ? void 0 : r.label) || "label"), {
2099
2119
  value: "value",
2100
2120
  children: "children",
2101
2121
  ...r
2102
2122
  });
2103
- }), o = N(() => {
2123
+ }), u = I(() => {
2104
2124
  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;
2125
+ 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
2126
  });
2107
- return () => d(ze, R(Z(t, "style", "class"), {
2108
- value: o.value,
2127
+ return () => e.render ? e.render({
2128
+ value: u.value,
2129
+ props: e
2130
+ }) : i(He, R({
2131
+ class: "pro-show-tree"
2132
+ }, J(t, "style", "class"), {
2133
+ value: u.value,
2109
2134
  showProps: e.showProps
2110
2135
  }), null);
2111
2136
  }
2112
- }), Xa = K({
2137
+ }), _a = D({
2113
2138
  props: {
2114
- ...Ae,
2139
+ ...De,
2115
2140
  value: {
2116
2141
  type: [String, Number, Array]
2117
2142
  },
@@ -2131,16 +2156,54 @@ const Kr = () => ({
2131
2156
  setup: (e, {
2132
2157
  attrs: t
2133
2158
  }) => {
2134
- const a = (n) => n && (e.isUnix ? Pt.unix(n).format(e.format) : Pt(n).format(e.format)), o = N(() => {
2159
+ const a = (n) => n && (e.isUnix ? Ct.unix(n).format(e.format) : Ct(n).format(e.format)), u = I(() => {
2135
2160
  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;
2161
+ 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
2162
  });
2138
- return () => d(ze, R(Z(t, "style", "class"), {
2139
- value: o.value,
2163
+ return () => e.render ? e.render({
2164
+ value: u.value,
2165
+ props: e
2166
+ }) : i(He, R({
2167
+ class: "pro-show-date"
2168
+ }, J(t, "style", "class"), {
2169
+ value: u.value,
2140
2170
  showProps: e.showProps
2141
2171
  }), null);
2142
2172
  }
2143
- }), vn = Symbol("pro-layout"), hn = () => ye(vn), Hr = () => ({
2173
+ }), Hr = () => ({
2174
+ convertValue: {
2175
+ type: Function
2176
+ },
2177
+ includes: {
2178
+ type: Array
2179
+ }
2180
+ }), Wr = D({
2181
+ props: {
2182
+ ...Hr()
2183
+ },
2184
+ setup: (e) => {
2185
+ const {
2186
+ tabs: t,
2187
+ refreshRef: a,
2188
+ showTabs: u
2189
+ } = dt(), {
2190
+ route: n
2191
+ } = ze(), r = I(() => {
2192
+ if (!u.value)
2193
+ return e.includes || [];
2194
+ const o = $(t.value, (l) => e.convertValue ? e.convertValue(l) : l.value);
2195
+ return a.value ? X(o, (l) => l !== n.name) : o;
2196
+ });
2197
+ return () => i(Jn, null, {
2198
+ default: ({
2199
+ Component: o,
2200
+ route: l
2201
+ }) => (o && o.type && !o.type.name && l.name && (o.type.name = l.name), i(Cn, {
2202
+ include: r.value
2203
+ }, [a.value ? null : i(o, null, null)]))
2204
+ });
2205
+ }
2206
+ }), Gr = () => ({
2144
2207
  isHideClose: {
2145
2208
  type: Function
2146
2209
  },
@@ -2156,51 +2219,51 @@ const Kr = () => ({
2156
2219
  onDragRegister: {
2157
2220
  type: Function
2158
2221
  }
2159
- }), Wr = K({
2222
+ }), Xr = D({
2160
2223
  props: {
2161
- ...Hr()
2224
+ ...Gr()
2162
2225
  },
2163
2226
  setup: (e) => {
2164
2227
  const {
2165
2228
  router: t,
2166
2229
  route: a
2167
- } = Ve(), {
2168
- menuMap: o,
2230
+ } = ze(), {
2231
+ menuMap: u,
2169
2232
  tabs: n,
2170
2233
  refresh: r
2171
- } = hn(), u = be({
2234
+ } = dt(), o = be({
2172
2235
  ctxMenuPos: null,
2173
2236
  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);
2237
+ }), l = (c) => e.isHideClose ? e.isHideClose(c) : !1, s = I(() => {
2238
+ var f;
2239
+ const c = ((f = e.convertName) == null ? void 0 : f.call(e, a)) || a.name;
2240
+ return g(u.value, c);
2178
2241
  });
2179
2242
  ae(() => {
2180
2243
  const c = s.value;
2181
2244
  if (!c)
2182
2245
  return;
2183
- let y = _e(n.value, (i) => i.value === c.value);
2184
- if (y) {
2246
+ let f = Ye(n.value, (v) => v.value === c.value);
2247
+ if (f) {
2185
2248
  if (c.hide) {
2186
- const i = ke(y.query) || "{}", C = ke(c.query) || "{}";
2187
- if (i !== C) {
2188
- const F = {
2249
+ const v = Be(f.query) || "{}", b = Be(a.query) || "{}";
2250
+ if (v !== b) {
2251
+ const A = {
2189
2252
  ...c,
2190
2253
  query: a.query
2191
2254
  };
2192
- n.value = $($(n.value, (A) => A.value === c.value ? F : A)), S(F);
2255
+ n.value = $($(n.value, (x) => x.value === c.value ? A : x)), p(A);
2193
2256
  }
2194
2257
  }
2195
2258
  } else {
2196
- const i = c.hide ? {
2259
+ const v = c.hide ? {
2197
2260
  ...c,
2198
2261
  query: a.query
2199
2262
  } : c;
2200
- n.value = [...n.value, i];
2263
+ n.value = [...n.value, v];
2201
2264
  }
2202
2265
  }, a);
2203
- const f = (c) => {
2266
+ const d = (c) => {
2204
2267
  if (c.hide) {
2205
2268
  t.push({
2206
2269
  name: c.value,
@@ -2209,71 +2272,71 @@ const Kr = () => ({
2209
2272
  return;
2210
2273
  }
2211
2274
  t.openMenu(c);
2212
- }, h = (c) => {
2213
- var y;
2275
+ }, S = (c) => {
2276
+ var f;
2214
2277
  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]);
2278
+ if (c.value === ((f = s.value) == null ? void 0 : f.value)) {
2279
+ const v = Dn(n.value, (b) => b.value === s.value.value);
2280
+ n.value[v + 1] ? d(n.value[v + 1]) : n.value[v - 1] && d(n.value[v - 1]);
2218
2281
  }
2219
- n.value = _(n.value, (i) => i.value !== c.value);
2282
+ n.value = X(n.value, (v) => v.value !== c.value);
2220
2283
  }
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 = () => {
2284
+ }, P = (c) => {
2285
+ var f;
2286
+ 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));
2287
+ }, y = () => {
2225
2288
  if (!s.value || !l(s.value)) {
2226
- const c = _e(n.value, (y) => l(y));
2289
+ const c = Ye(n.value, (f) => l(f));
2227
2290
  c && t.openMenu(c);
2228
2291
  }
2229
- n.value = _(n.value, (c) => l(c));
2230
- }, S = (c) => {
2292
+ n.value = X(n.value, (c) => l(c));
2293
+ }, p = (c) => {
2231
2294
  r(c);
2232
- }, P = (c, y) => {
2295
+ }, C = (c, f) => {
2233
2296
  c.preventDefault();
2234
- const i = c.target;
2235
- if (!i)
2297
+ const v = c.target;
2298
+ if (!v)
2236
2299
  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) => {
2300
+ const b = v.getBoundingClientRect();
2301
+ o.ctxMenuPos = {
2302
+ x: b.x + b.width / 2,
2303
+ y: b.y + b.height
2304
+ }, o.ctxMenuItem = f;
2305
+ }, h = (c) => {
2243
2306
  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
2307
+ }, O = () => {
2308
+ o.ctxMenuItem = null;
2309
+ }, N = H(), [m, M] = nt(), w = (c) => {
2310
+ const f = re(n.value, (v, b) => ({
2311
+ ...v,
2312
+ [b.value]: b
2250
2313
  }), {});
2251
- n.value = $(c, (i) => g(y, i)), M();
2314
+ n.value = $(c, (v) => g(f, v)), M();
2252
2315
  };
2253
2316
  ae(() => {
2254
- !w.value || !e.onDragRegister || e.onDragRegister({
2255
- dom: w.value,
2317
+ !N.value || !e.onDragRegister || e.onDragRegister({
2318
+ dom: N.value,
2256
2319
  dataIdAttr: "data-url",
2257
- onDragEnd: x
2320
+ onDragEnd: w
2258
2321
  });
2259
- }, [w]);
2260
- const E = z();
2322
+ }, [N]);
2323
+ const E = H();
2261
2324
  ae(() => {
2262
- var y;
2263
- const c = (y = E.value) == null ? void 0 : y.originRef;
2325
+ var f;
2326
+ const c = (f = E.value) == null ? void 0 : f.originRef;
2264
2327
  !c || c == null || c.handleOpen();
2265
2328
  }, 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;
2329
+ const K = (c) => {
2330
+ c || (o.ctxMenuItem = null);
2331
+ }, j = (c) => {
2332
+ c === "refresh" ? p(o.ctxMenuItem) : c === "close" ? S(o.ctxMenuItem) : c === "close-other" ? P(o.ctxMenuItem) : c === "close-all" && y(), O();
2333
+ }, B = I(() => {
2334
+ var f, v;
2272
2335
  const c = [];
2273
- return ((y = s.value) == null ? void 0 : y.value) === ((i = u.ctxMenuItem) == null ? void 0 : i.value) && c.push({
2336
+ return ((f = s.value) == null ? void 0 : f.value) === ((v = o.ctxMenuItem) == null ? void 0 : v.value) && c.push({
2274
2337
  label: "\u5237\u65B0",
2275
2338
  value: "refresh"
2276
- }), l(u.ctxMenuItem) || c.push({
2339
+ }), l(o.ctxMenuItem) || c.push({
2277
2340
  label: "\u5173\u95ED",
2278
2341
  value: "close"
2279
2342
  }), c.push({
@@ -2282,93 +2345,65 @@ const Kr = () => ({
2282
2345
  }, {
2283
2346
  label: "\u5168\u90E8\u5173\u95ED",
2284
2347
  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, {
2348
+ }), $(c, (b) => e.covertMenuItem ? e.covertMenuItem(b) : b);
2349
+ }), U = ee(), z = U(q.DropdownKey), te = U(q.ScrollKey) || "div";
2350
+ return () => i(le, null, [i(te, {
2288
2351
  class: "pro-layout-tabs"
2289
2352
  }, {
2290
- default: () => [d("div", {
2353
+ default: () => [i("div", {
2291
2354
  class: "pro-layout-tabs-root",
2292
- ref: w,
2355
+ ref: N,
2293
2356
  key: m.value
2294
2357
  }, [$(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" : ""],
2358
+ var b, A;
2359
+ const f = l(c), v = c.value === ((b = s.value) == null ? void 0 : b.value);
2360
+ return i("div", {
2361
+ class: ["pro-layout-tabs-item", v ? "active" : ""],
2299
2362
  "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", {
2363
+ onClick: () => d(c),
2364
+ oncontextmenu: (x) => C(x, c)
2365
+ }, [((A = c.itemLabel) == null ? void 0 : A.call(c, c)) || c.label, !f && i("div", {
2303
2366
  class: "pro-layout-tabs-item-close",
2304
- onClick: (A) => {
2305
- A.preventDefault(), A.stopPropagation(), h(c);
2367
+ onClick: (x) => {
2368
+ x.preventDefault(), x.stopPropagation(), S(c);
2306
2369
  },
2307
- oncontextmenu: b
2308
- }, [Fe("\u2715")])]);
2370
+ oncontextmenu: h
2371
+ }, [Le("\u2715")])]);
2309
2372
  })])]
2310
- }), u.ctxMenuItem && u.ctxMenuPos && d(Cn, {
2373
+ }), o.ctxMenuItem && o.ctxMenuPos && i(Mn, {
2311
2374
  to: "body"
2312
2375
  }, {
2313
- default: () => [d("div", {
2376
+ default: () => [i("div", {
2314
2377
  class: "pro-layout-tabs-menus",
2315
- style: `left:${u.ctxMenuPos.x}px;top:${u.ctxMenuPos.y}px`
2316
- }, [d(H, {
2378
+ style: `left:${o.ctxMenuPos.x}px;top:${o.ctxMenuPos.y}px`
2379
+ }, [i(z, {
2317
2380
  ref: E,
2318
2381
  trigger: "click",
2319
- options: U.value,
2382
+ options: B.value,
2320
2383
  hideOnClick: !1,
2321
- onCommand: k,
2322
- onVisibleChange: O
2384
+ onCommand: j,
2385
+ onVisibleChange: K
2323
2386
  }, {
2324
- default: () => [d("div", null, null)]
2387
+ default: () => [i("div", null, null)]
2325
2388
  })])]
2326
2389
  })]);
2327
2390
  }
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, {
2391
+ }), Fe = D((e, {
2357
2392
  slots: t
2358
2393
  }) => {
2359
- const a = z(), o = z(0);
2394
+ const a = H(), u = H(0);
2360
2395
  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;
2396
+ var o;
2397
+ const r = (o = n[0]) == null ? void 0 : o.contentRect;
2398
+ u.value = r == null ? void 0 : r.width;
2364
2399
  }), () => {
2365
- var n, r, u;
2366
- return d("header", null, [(n = t.start) == null ? void 0 : n.call(t), t.menus && d("div", {
2400
+ var n, r, o;
2401
+ return i("header", null, [(n = t.start) == null ? void 0 : n.call(t), t.menus && i("div", {
2367
2402
  ref: a,
2368
2403
  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)]);
2404
+ }, [t.menus(u.value)]), (r = t.default) == null ? void 0 : r.call(t), (o = t.end) == null ? void 0 : o.call(t)]);
2370
2405
  };
2371
- }), Xr = () => ({
2406
+ }), _r = () => ({
2372
2407
  clsName: {
2373
2408
  type: String,
2374
2409
  default: "pro-layout"
@@ -2393,6 +2428,10 @@ const Kr = () => ({
2393
2428
  collapse: {
2394
2429
  type: Boolean
2395
2430
  },
2431
+ routeOpts: {
2432
+ type: Object,
2433
+ default: void 0
2434
+ },
2396
2435
  menus: {
2397
2436
  type: Array
2398
2437
  },
@@ -2417,182 +2456,187 @@ const Kr = () => ({
2417
2456
  menuProps: {
2418
2457
  type: Object
2419
2458
  }
2420
- }), _a = K({
2459
+ }), Ya = D({
2421
2460
  inheritAttrs: !1,
2422
2461
  props: {
2423
- ...Xr()
2462
+ ..._r()
2424
2463
  },
2425
2464
  setup: (e, {
2426
2465
  slots: t,
2427
2466
  attrs: a
2428
2467
  }) => {
2429
- const o = ee(), n = o(B.MenusKey), r = o(B.ScrollKey) || "div", {
2430
- router: u,
2468
+ const u = ee(), n = u(q.MenusKey), r = u(q.ScrollKey) || "div", {
2469
+ router: o,
2431
2470
  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";
2471
+ } = ze(), s = I(() => {
2472
+ var b;
2473
+ return Vt(e.menus, (A) => {
2474
+ var L, Z, Ce;
2475
+ 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
2476
  return {
2438
- ...D(C, F, A, X),
2439
- value: g(C, F),
2440
- label: g(C, A),
2441
- hide: g(C, X)
2477
+ ...F(A, x, G, T),
2478
+ value: g(A, x),
2479
+ label: g(A, G),
2480
+ hide: g(A, T)
2442
2481
  };
2443
2482
  }, {
2444
- children: ((i = e.fieldNames) == null ? void 0 : i.children) || "children",
2483
+ children: ((b = e.fieldNames) == null ? void 0 : b.children) || "children",
2445
2484
  childrenName: "children"
2446
2485
  });
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(() => {
2486
+ }), 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
2487
  var A;
2488
+ if (e.findCurrentTopName)
2489
+ return e.findCurrentTopName(l, S.value);
2490
+ const b = ((A = e.convertName) == null ? void 0 : A.call(e, l)) || l.name;
2491
+ return S.value[b];
2492
+ }), 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(() => {
2493
+ var G;
2455
2494
  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;
2495
+ return e.findActiveKey(l, S.value);
2496
+ const b = ((G = e.convertName) == null ? void 0 : G.call(e, l)) || l.name;
2497
+ if (P.value[b])
2498
+ return b;
2460
2499
  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
2500
+ parentList: A
2501
+ } = St(s.value, (T) => T.value === b, void 0, []), x = Fn(A, (T) => !T.hide);
2502
+ return (x == null ? void 0 : x.value) || b;
2503
+ }), N = (b) => {
2504
+ e.onMenuItemClick ? e.onMenuItemClick(b) : o.openMenu(b);
2505
+ }, m = (b) => {
2506
+ const A = St(d.value, (x) => x.value === b.value).target;
2507
+ N(A);
2508
+ }, M = I(() => !!e.tabs), w = () => {
2509
+ var A;
2510
+ let b = (A = e.tabs) == null ? void 0 : A.sessionKey;
2511
+ return b === void 0 && (b = "pro-layout-tabs"), b;
2512
+ }, E = kt(d.value, (b) => !b.children || _(b.children) <= 0), j = H((() => {
2513
+ if (!M.value)
2514
+ return [];
2515
+ const b = w();
2516
+ let A = [];
2517
+ if (b) {
2518
+ const x = window.sessionStorage.getItem(b), G = x ? at(x) : [];
2519
+ A = $(G, (T) => ({
2520
+ ...g(y.value, T.name),
2521
+ query: T.query
2481
2522
  }));
2482
2523
  }
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)
2524
+ return _(A) <= 0 && E && (A = [E]), A;
2525
+ })()), B = (b) => b.value === (E == null ? void 0 : E.value);
2526
+ rt(() => {
2527
+ const b = w();
2528
+ if (!b)
2488
2529
  return;
2489
- const C = $(k.value, (F) => ({
2490
- name: F.value,
2491
- query: F.query
2530
+ const A = $(j.value, (x) => ({
2531
+ name: x.value,
2532
+ query: x.query
2492
2533
  }));
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;
2534
+ window.sessionStorage.setItem(b, Be(A));
2535
+ }, j);
2536
+ const U = () => {
2537
+ var A;
2538
+ const b = (A = e.tabs) == null ? void 0 : A.clearWhileUnmount;
2539
+ return b === void 0 ? !0 : b;
2499
2540
  };
2500
2541
  ae(() => () => {
2501
- const i = x();
2502
- i && H() && window.sessionStorage.removeItem(i);
2503
- }, []), me(vn, {
2504
- menus: f,
2505
- menuMap: S,
2506
- tabs: k,
2542
+ const b = w();
2543
+ b && U() && window.sessionStorage.removeItem(b);
2544
+ }, []);
2545
+ const z = H(!1);
2546
+ me(vn, {
2547
+ menus: s,
2548
+ menuMap: y,
2549
+ tabs: j,
2550
+ showTabs: M,
2551
+ refreshRef: z,
2507
2552
  refresh: () => {
2508
- var i;
2509
- (i = s.value) == null || i.refresh();
2553
+ z.value = !0, setTimeout(() => {
2554
+ z.value = !1;
2555
+ }, 0);
2510
2556
  }
2511
2557
  });
2512
- const G = fe(t, "header"), c = fe(t, "menu"), y = (i) => {
2513
- var C, F;
2514
- return d("div", {
2558
+ const c = fe(t, "header"), f = fe(t, "menu"), v = (b) => {
2559
+ var A, x;
2560
+ return i("div", {
2515
2561
  class: `${e.clsName}-menus-wrapper`
2516
- }, [(C = c.start) == null ? void 0 : C.call(c), d(r, {
2562
+ }, [(A = f.start) == null ? void 0 : A.call(f), i(r, {
2517
2563
  class: `${e.clsName}-menus-scroll`
2518
2564
  }, {
2519
- default: () => [d(n, i, c)]
2520
- }), (F = c.end) == null ? void 0 : F.call(c)]);
2565
+ default: () => [i(n, b, f)]
2566
+ }), (x = f.end) == null ? void 0 : x.call(f)]);
2521
2567
  };
2522
2568
  return () => {
2523
- var X;
2569
+ var T;
2524
2570
  if (!n)
2525
2571
  return null;
2526
- const i = [`${e.clsName} ${e.clsName}-${e.layout}`];
2527
- U.value && i.push("has-tabs");
2528
- const C = {
2572
+ const b = [`${e.clsName} ${e.clsName}-${e.layout}`];
2573
+ M.value && b.push("has-tabs");
2574
+ const A = {
2529
2575
  class: `${e.clsName}-menus`,
2530
- options: h.value,
2531
- activeKey: w.value,
2532
- ...Z(e, "convertSubMenuProps", "convertMenuItemProps"),
2533
- onMenuItemClick: m,
2576
+ options: d.value,
2577
+ activeKey: O.value,
2578
+ ...J(e, "convertSubMenuProps", "convertMenuItemProps"),
2579
+ onMenuItemClick: N,
2534
2580
  ...e.menuProps
2535
- }, F = {
2581
+ }, x = {
2536
2582
  collapse: e.collapse,
2537
- ...C
2538
- }, A = d(le, null, [U.value && d(Wr, R({
2539
- isHideClose: q,
2583
+ ...A
2584
+ }, G = i(le, null, [M.value && i(Xr, R({
2585
+ isHideClose: B,
2540
2586
  convertName: e.convertName
2541
- }, D(e.tabs, "sessionKey", "clearWhileUnmount")), null), d("div", {
2587
+ }, F(e.tabs, "sessionKey", "clearWhileUnmount")), null), i("div", {
2542
2588
  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, {
2589
+ }, [(T = t.default) == null ? void 0 : T.call(t), t.routerView ? t.routerView() : i(Wr, e.routeOpts, null)])]);
2590
+ return e.layout === "vertical" ? i("main", R(a, {
2591
+ class: b
2592
+ }), [i(Fe, {
2549
2593
  class: `${e.clsName}-header`
2550
2594
  }, {
2551
- menus: (I) => I ? d(n, R({
2552
- style: `width:${I}px`,
2595
+ menus: (L) => L ? i(n, R({
2596
+ style: `width:${L}px`,
2553
2597
  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", {
2598
+ }, A), f) : null,
2599
+ ...c
2600
+ }), G]) : e.layout === "horizontal" ? (b.push("has-left-menu"), e.collapse && b.push("mini"), i("main", R(a, {
2601
+ class: b
2602
+ }), [v(x), i("div", {
2559
2603
  class: `${e.clsName}-structure`
2560
- }, [d(De, {
2604
+ }, [i(Fe, {
2561
2605
  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, {
2606
+ }, c), G])])) : e.layout === "horizontal-v" ? (b.push("has-left-menu"), e.collapse && b.push("mini"), i("main", R(a, {
2607
+ class: b
2608
+ }), [i(Fe, {
2565
2609
  class: `${e.clsName}-header`
2566
- }, G), d("div", {
2610
+ }, c), i("div", {
2567
2611
  class: `${e.clsName}-structure`
2568
- }, [y(F), d("div", {
2612
+ }, [v(x), i("div", {
2569
2613
  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, {
2614
+ }, [G])])])) : (h.value && b.push("has-left-menu"), e.collapse && b.push("mini"), i("main", R(a, {
2615
+ class: b
2616
+ }), [i(Fe, {
2573
2617
  class: `${e.clsName}-header`
2574
2618
  }, {
2575
- menus: (I) => I ? d(n, R({
2576
- style: `width:${I}px`,
2619
+ menus: (L) => L ? i(n, R({
2620
+ style: `width:${L}px`,
2577
2621
  class: `${e.clsName}-menus`,
2578
2622
  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", {
2623
+ options: $(d.value, (Z) => F(Z, "children")),
2624
+ activeKey: p.value
2625
+ }, J(e, "convertSubMenuProps", "convertMenuItemProps"), {
2626
+ onMenuItemClick: m
2627
+ }), f) : null,
2628
+ ...c
2629
+ }), i("div", {
2586
2630
  class: `${e.clsName}-structure`
2587
- }, [T.value && y({
2588
- ...F,
2589
- options: b.value.children
2590
- }), d("div", {
2631
+ }, [h.value && v({
2632
+ ...x,
2633
+ options: C.value.children
2634
+ }), i("div", {
2591
2635
  class: `${e.clsName}-right`
2592
- }, [A])])]));
2636
+ }, [G])])]));
2593
2637
  };
2594
2638
  }
2595
- }), Ya = K({
2639
+ }), Qa = D({
2596
2640
  props: {
2597
2641
  fieldNames: {
2598
2642
  type: Object,
@@ -2610,39 +2654,39 @@ const Kr = () => ({
2610
2654
  slots: t,
2611
2655
  emit: a
2612
2656
  }) => {
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)
2657
+ const n = ee()(q.UploaderKey), r = (d) => {
2658
+ const S = at(d);
2659
+ if (Q(S)) {
2660
+ const P = e.fieldNames;
2661
+ return $(S, (y) => ({
2662
+ ...F(y, P.id, P.name, P.size),
2663
+ id: g(y, P.id),
2664
+ name: g(y, P.name),
2665
+ size: g(y, P.size)
2622
2666
  }));
2623
2667
  }
2624
2668
  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
2669
+ }, o = I(() => r(e.value)), l = I(() => r(e.modelValue)), s = (d, S) => {
2670
+ let P = "";
2671
+ d && _(d) > 0 && (P = Be($(d, (y) => {
2672
+ var h;
2673
+ const p = e.fieldNames, C = {
2674
+ [p.id]: y.id,
2675
+ [p.name]: y.name,
2676
+ [p.size || "size"]: y.size
2633
2677
  };
2634
- return ((b = e.convertItem) == null ? void 0 : b.call(e, v)) || P;
2635
- }))), a(h, p);
2678
+ return ((h = e.convertItem) == null ? void 0 : h.call(e, y)) || C;
2679
+ }))), a(S, P);
2636
2680
  };
2637
- return () => n ? d(n, R({
2681
+ return () => n ? i(n, R({
2638
2682
  class: "pro-uploader-text",
2639
- value: u.value,
2640
- "onUpdate:value": (f) => s(f, "update:value"),
2683
+ value: o.value,
2684
+ "onUpdate:value": (d) => s(d, "update:value"),
2641
2685
  modelValue: l.value,
2642
- "onUpdate:modelValue": (f) => s(f, "update:modelValue")
2643
- }, D(e, "value", "modelValue", "fieldNames")), t) : null;
2686
+ "onUpdate:modelValue": (d) => s(d, "update:modelValue")
2687
+ }, F(e, "value", "modelValue", "fieldNames")), t) : null;
2644
2688
  }
2645
- }), Qa = K({
2689
+ }), Ja = D({
2646
2690
  props: {
2647
2691
  value: [String, Array],
2648
2692
  fieldNames: {
@@ -2658,64 +2702,64 @@ const Kr = () => ({
2658
2702
  slots: t,
2659
2703
  emit: a
2660
2704
  }) => {
2661
- const o = (u) => {
2705
+ const u = (o) => {
2662
2706
  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");
2707
+ return !!g(o, ((l = e.fieldNames) == null ? void 0 : l.id) || "id");
2708
+ }, n = I(() => {
2709
+ let o = e.value;
2710
+ return o && se(o) && (o = at(o)), o && !Q(o) && Ie(o) && u(o) && (o = [o]), Q(o) ? $(X(o, (l) => u(l)), (l) => {
2711
+ var P, y, p;
2712
+ 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
2713
  return {
2670
2714
  ...l,
2671
2715
  id: s,
2672
- size: h,
2673
- name: f || s
2716
+ size: S,
2717
+ name: d || s
2674
2718
  };
2675
2719
  }) : [];
2676
- }), r = (u) => {
2677
- a("titleClick", u);
2720
+ }), r = (o) => {
2721
+ a("titleClick", o);
2678
2722
  };
2679
2723
  return () => {
2680
- var u, l;
2681
- return d("div", {
2724
+ var o, l;
2725
+ return i("div", {
2682
2726
  class: "pro-upload-list"
2683
- }, [(u = t.start) == null ? void 0 : u.call(t), $(n.value, (s) => {
2684
- var f;
2685
- return d("div", {
2727
+ }, [(o = t.start) == null ? void 0 : o.call(t), $(n.value, (s) => {
2728
+ var d;
2729
+ return i("div", {
2686
2730
  class: "pro-upload-list-item"
2687
- }, [d("span", {
2731
+ }, [i("span", {
2688
2732
  class: "pro-upload-list-item-title",
2689
2733
  onClick: () => r(s)
2690
- }, [s.name]), (f = t.extra) == null ? void 0 : f.call(t, s)]);
2734
+ }, [s.name]), (d = t.extra) == null ? void 0 : d.call(t, s)]);
2691
2735
  }), (l = t.default) == null ? void 0 : l.call(t)]);
2692
2736
  };
2693
2737
  }
2694
- }), _r = (e, t) => {
2695
- !e || !t || Dt(t) || Te(e) || ne(t, (a, o) => {
2696
- const n = kt(o, e);
2738
+ }), Yr = (e, t) => {
2739
+ !e || !t || Ft(t) || xe(e) || ne(t, (a, u) => {
2740
+ const n = Bt(u, e);
2697
2741
  if (!Ut(n)) {
2698
- console.log("ConfigExtra\uFF1A\u8865\u5145\u5BF9\u8C61key\u8F6C\u6362\u5931\u8D25", e.elementId, o);
2742
+ console.log("ConfigExtra\uFF1A\u8865\u5145\u5BF9\u8C61key\u8F6C\u6362\u5931\u8D25", e.elementId, u);
2699
2743
  return;
2700
2744
  }
2701
2745
  if (!qt(n, e)) {
2702
- console.log("ConfigExtra\uFF1A\u8865\u5145\u5BF9\u8C61key\u672A\u627E\u5230\u7236\u7EA7", e.elementId, o, "->", n);
2746
+ console.log("ConfigExtra\uFF1A\u8865\u5145\u5BF9\u8C61key\u672A\u627E\u5230\u7236\u7EA7", e.elementId, u, "->", n);
2703
2747
  return;
2704
2748
  }
2705
2749
  ie(e, n, a);
2706
2750
  });
2707
- }, Me = (e, t) => {
2708
- _r(e, g(t, e.elementId));
2751
+ }, Ee = (e, t) => {
2752
+ Yr(e, g(t, e.elementId));
2709
2753
  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);
2754
+ a && _(a) > 0 && ne(a, (u) => {
2755
+ const n = g(e.elementProps, u.name);
2756
+ Q(n) ? ne(n, (r) => {
2757
+ Ee(r, t);
2758
+ }) : Ee(n, t);
2759
+ }), e.children && _(e.children) > 0 && ne(e.children, (u) => {
2760
+ Ee(u, t);
2717
2761
  });
2718
- }, Yr = K({
2762
+ }, Qr = D({
2719
2763
  props: {
2720
2764
  initExecuteList: {
2721
2765
  type: Array
@@ -2724,43 +2768,43 @@ const Kr = () => ({
2724
2768
  setup: (e) => {
2725
2769
  const {
2726
2770
  execute: t
2727
- } = Se();
2771
+ } = pe();
2728
2772
  return ae(() => {
2729
2773
  e.initExecuteList && t(e.initExecuteList, []);
2730
2774
  }, []), () => null;
2731
2775
  }
2732
- }), Ja = ({
2776
+ }), Za = ({
2733
2777
  actors: e,
2734
2778
  configData: t,
2735
2779
  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;
2780
+ Logic: u
2781
+ }) => D(() => {
2782
+ const n = H(), r = (s) => {
2783
+ const d = Lt(s);
2784
+ return a && (Q(d) ? ne(d, (S) => Ee(S, a)) : Ee(d, a)), d;
2741
2785
  };
2742
2786
  ae(() => {
2743
2787
  t && t.elementConfigs && (n.value = r(t.elementConfigs)), t != null && t.elementConfigs;
2744
2788
  }, []);
2745
- const l = ee()(B.LoadingKey);
2746
- return () => n.value ? d($e, {
2789
+ const l = ee()(q.LoadingKey);
2790
+ return () => n.value ? i($e, {
2747
2791
  initState: t == null ? void 0 : t.initState,
2748
2792
  storeKeys: t == null ? void 0 : t.storeKeys,
2749
2793
  actors: e,
2750
2794
  requests: t == null ? void 0 : t.requests,
2751
2795
  elementConfigs: n.value
2752
2796
  }, {
2753
- default: () => [d(Yr, null, null), o && d(o, null, null)]
2754
- }) : l ? d(l, {
2797
+ default: () => [i(Qr, null, null), u && i(u, null, null)]
2798
+ }) : l ? i(l, {
2755
2799
  loading: !0
2756
2800
  }, {
2757
- default: () => [d("div", {
2801
+ default: () => [i("div", {
2758
2802
  class: "pro-module-loading-dom"
2759
2803
  }, null)]
2760
2804
  }) : 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 = () => ({
2805
+ }), bn = Symbol("pro-curd"), ce = () => ye(bn), Jr = (e) => me(bn, e);
2806
+ 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 || {});
2807
+ const Zr = () => ({
2764
2808
  rowKey: {
2765
2809
  type: String,
2766
2810
  default: "id"
@@ -2783,104 +2827,104 @@ const Jr = () => ({
2783
2827
  modalProps: {
2784
2828
  type: Object
2785
2829
  }
2786
- }), gn = ["sendCurdEvent", "refreshList", "sendEvent", "sendRequest"], Nt = K({
2830
+ }), gn = ["sendCurdEvent", "refreshList", "sendEvent", "sendRequest"], wt = D({
2787
2831
  props: {
2788
- ...pe,
2789
- ...Jr()
2832
+ ...Se,
2833
+ ...Zr()
2790
2834
  },
2791
2835
  setup: (e, {
2792
2836
  slots: t,
2793
2837
  expose: a
2794
2838
  }) => {
2795
2839
  const {
2796
- elementMap: o,
2840
+ elementMap: u,
2797
2841
  state: n,
2798
2842
  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;
2843
+ sendRequest: o
2844
+ } = pe(), l = I(() => Ve(e.columns, e.columnState, e.columnState2)), s = (K, j) => {
2845
+ const B = X(l.value, (U) => {
2846
+ const z = g(U, ["extra", K]) || g(U, K);
2847
+ return j ? z !== !1 : z;
2804
2848
  });
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
2849
+ return $t(B, (U) => g(U, ["extra", `${K}Sort`]) || g(U, `${K}Sort`));
2850
+ }, d = I(() => s("form", !0)), S = I(() => s("detail", !0)), P = I(() => s("table", !0)), y = I(() => s("search"));
2851
+ let p;
2852
+ const C = (K) => {
2853
+ o(k.LIST, {
2854
+ ...p,
2855
+ ...K
2812
2856
  });
2813
- }, b = (O) => {
2857
+ }, h = (K) => {
2814
2858
  r({
2815
- type: O.action,
2816
- payload: D(O, "action", "source"),
2817
- source: O.source
2859
+ type: K.action,
2860
+ payload: F(K, "action", "source"),
2861
+ source: K.source
2818
2862
  });
2819
2863
  };
2820
- lt(({
2821
- type: O,
2822
- payload: k,
2823
- source: U
2864
+ ct(({
2865
+ type: K,
2866
+ payload: j,
2867
+ source: B
2824
2868
  }) => {
2825
- if (U)
2869
+ if (B)
2826
2870
  return;
2827
- let q = O, H = k == null ? void 0 : k.type;
2828
- q === Ne.Success && (q = g(k, ["requestOpts", "action"]), H = V.SUCCESS);
2871
+ let U = K, z = j == null ? void 0 : j.type;
2872
+ U === we.Success && (U = g(j, ["requestOpts", "action"]), z = V.SUCCESS);
2829
2873
  const {
2830
- values: G,
2874
+ values: te,
2831
2875
  record: c
2832
- } = k;
2833
- switch (q) {
2834
- case L.LIST:
2835
- H === V.EMIT && (S = G, P());
2876
+ } = j;
2877
+ switch (U) {
2878
+ case k.LIST:
2879
+ z === V.EMIT && (p = te, C());
2836
2880
  return;
2837
- case L.ADD:
2838
- H === V.EXECUTE && u(L.ADD, G, n.detailData);
2881
+ case k.ADD:
2882
+ z === V.EXECUTE && o(k.ADD, te, n.detailData);
2839
2883
  return;
2840
- case L.EDIT:
2841
- H === V.EXECUTE && u(L.EDIT, G, n.detailData);
2884
+ case k.EDIT:
2885
+ z === V.EXECUTE && o(k.EDIT, te, n.detailData);
2842
2886
  return;
2843
- case L.DELETE:
2844
- H === V.EMIT ? u(L.DELETE, c, e.rowKey) : H === V.SUCCESS && P();
2887
+ case k.DELETE:
2888
+ z === V.EMIT ? o(k.DELETE, c, e.rowKey) : z === V.SUCCESS && C();
2845
2889
  return;
2846
2890
  }
2847
- q && O === V.EXECUTE && u(q, G);
2891
+ U && K === V.EXECUTE && o(U, te);
2848
2892
  });
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({
2893
+ const O = re(e.operates, (K, j) => ({
2894
+ ...K,
2895
+ [j.action]: j
2896
+ }), {}), N = (K) => g(O, K), m = I(() => e.listProps), M = I(() => e.formProps), w = I(() => e.descProps), E = I(() => e.modalProps);
2897
+ return Jr({
2854
2898
  columns: l,
2855
2899
  getSignColumns: s,
2856
- elementMap: o,
2900
+ elementMap: u,
2857
2901
  formElementMap: e.formElementMap,
2858
2902
  rowKey: e.rowKey,
2859
2903
  curdState: n,
2860
- formColumns: f,
2861
- descColumns: h,
2862
- tableColumns: p,
2863
- searchColumns: v,
2864
- sendCurdEvent: b,
2904
+ formColumns: d,
2905
+ descColumns: S,
2906
+ tableColumns: P,
2907
+ searchColumns: y,
2908
+ sendCurdEvent: h,
2865
2909
  operates: e.operates,
2866
- getOperate: w,
2867
- refreshList: P,
2910
+ getOperate: N,
2911
+ refreshList: C,
2868
2912
  listProps: m,
2869
2913
  formProps: M,
2870
- descProps: x,
2914
+ descProps: w,
2871
2915
  modalProps: E
2872
2916
  }), a({
2873
- sendCurdEvent: b,
2874
- refreshList: P
2917
+ sendCurdEvent: h,
2918
+ refreshList: C
2875
2919
  }), () => {
2876
- var O;
2877
- return (O = t.default) == null ? void 0 : O.call(t);
2920
+ var K;
2921
+ return (K = t.default) == null ? void 0 : K.call(t);
2878
2922
  };
2879
2923
  }
2880
- }), Qe = K({
2924
+ }), Je = D({
2881
2925
  props: {
2882
- ...D($e.props, "state", "requests"),
2883
- ...Nt.props,
2926
+ ...F($e.props, "state", "requests"),
2927
+ ...wt.props,
2884
2928
  curdState: {
2885
2929
  type: Object
2886
2930
  }
@@ -2890,344 +2934,344 @@ const Jr = () => ({
2890
2934
  expose: a
2891
2935
  }) => {
2892
2936
  const {
2893
- elementMap: o,
2937
+ elementMap: u,
2894
2938
  formElementMap: n
2895
- } = oe(), r = z(), u = z(), l = e.curdState || be({
2939
+ } = oe(), r = H(), o = H(), l = e.curdState || be({
2896
2940
  detailData: {}
2897
2941
  }), s = {
2898
- [L.LIST]: {
2899
- convertParams: (v) => v,
2900
- convertData: (v) => {
2901
- var S;
2902
- return (S = v.res) == null ? void 0 : S.data;
2942
+ [k.LIST]: {
2943
+ convertParams: (y) => y,
2944
+ convertData: (y) => {
2945
+ var p;
2946
+ return (p = y.res) == null ? void 0 : p.data;
2903
2947
  },
2904
2948
  loadingName: "listLoading",
2905
2949
  stateName: "listData"
2906
2950
  },
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;
2951
+ [k.DETAIL]: {
2952
+ convertParams: (y, p) => J(y, p),
2953
+ convertData: (y) => {
2954
+ var p;
2955
+ return (p = y.res) == null ? void 0 : p.data;
2912
2956
  },
2913
2957
  loadingName: "detailLoading",
2914
2958
  stateName: "detailData",
2915
2959
  label: "\u8BE6\u60C5"
2916
2960
  },
2917
- [L.ADD]: {
2918
- convertParams: (v, S) => ({
2961
+ [k.ADD]: {
2962
+ convertParams: (y, p) => ({
2919
2963
  body: {
2920
- ...S,
2921
- ...v
2964
+ ...p,
2965
+ ...y
2922
2966
  }
2923
2967
  }),
2924
2968
  loadingName: "operateLoading",
2925
2969
  label: "\u6DFB\u52A0"
2926
2970
  },
2927
- [L.EDIT]: {
2928
- convertParams: (v, S) => ({
2971
+ [k.EDIT]: {
2972
+ convertParams: (y, p) => ({
2929
2973
  body: {
2930
- ...S,
2931
- ...v
2974
+ ...p,
2975
+ ...y
2932
2976
  }
2933
2977
  }),
2934
2978
  loadingName: "operateLoading",
2935
2979
  label: "\u7F16\u8F91"
2936
2980
  },
2937
- [L.DELETE]: {
2938
- convertParams: (v, S) => Z(v, S),
2981
+ [k.DELETE]: {
2982
+ convertParams: (y, p) => J(y, p),
2939
2983
  label: "\u5220\u9664"
2940
2984
  }
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;
2985
+ }, d = $(e.operates, (y) => {
2986
+ var h;
2987
+ const p = g(s, y.action), C = ((h = e.convertOperate) == null ? void 0 : h.call(e, y, p)) || y;
2944
2988
  return {
2945
- ...S,
2946
- ...P
2989
+ ...p,
2990
+ ...C
2947
2991
  };
2948
- }), h = _(f, (v) => v.actor), p = Q(D($e.props, "state", "requests"));
2992
+ }), S = X(d, (y) => y.actor), P = Y(F($e.props, "state", "requests"));
2949
2993
  return a({
2950
- sendCurdEvent: (v) => {
2951
- var S;
2952
- (S = u.value) == null || S.sendCurdEvent(v);
2994
+ sendCurdEvent: (y) => {
2995
+ var p;
2996
+ (p = o.value) == null || p.sendCurdEvent(y);
2953
2997
  },
2954
- refreshList: (v) => {
2955
- var S;
2956
- (S = u.value) == null || S.refreshList(v);
2998
+ refreshList: (y) => {
2999
+ var p;
3000
+ (p = o.value) == null || p.refreshList(y);
2957
3001
  },
2958
- sendEvent: (v) => {
2959
- var S;
2960
- (S = r.value) == null || S.sendEvent(v);
3002
+ sendEvent: (y) => {
3003
+ var p;
3004
+ (p = r.value) == null || p.sendEvent(y);
2961
3005
  },
2962
- sendRequest: (v, ...S) => {
2963
- var P;
2964
- (P = r.value) == null || P.sendRequest(v, ...S);
3006
+ sendRequest: (y, ...p) => {
3007
+ var C;
3008
+ (C = r.value) == null || C.sendRequest(y, ...p);
2965
3009
  }
2966
- }), () => d($e, R({
3010
+ }), () => i($e, R({
2967
3011
  ref: r
2968
- }, Z(e, p), {
2969
- elementMap: e.elementMap || o,
3012
+ }, J(e, P), {
3013
+ elementMap: e.elementMap || u,
2970
3014
  state: l,
2971
- requests: h
3015
+ requests: S
2972
3016
  }), {
2973
- default: () => [d(Nt, R({
2974
- ref: u
2975
- }, D(e, ...p, "curdState", "operates", "convertOperate"), {
3017
+ default: () => [i(wt, R({
3018
+ ref: o
3019
+ }, F(e, ...P, "curdState", "operates", "convertOperate"), {
2976
3020
  formElementMap: e.formElementMap || n,
2977
- operates: f
3021
+ operates: d
2978
3022
  }), t)]
2979
3023
  });
2980
3024
  }
2981
- }), Zr = () => ({
3025
+ }), ea = () => ({
2982
3026
  defaultAddRecord: {
2983
3027
  type: Object
2984
3028
  }
2985
- }), Ge = K({
3029
+ }), Xe = D({
2986
3030
  props: {
2987
- ...Zr()
3031
+ ...ea()
2988
3032
  },
2989
3033
  setup: (e) => {
2990
- var S;
3034
+ var p;
2991
3035
  const {
2992
3036
  dispatch: t,
2993
3037
  sendRequest: a
2994
- } = Se(), {
2995
- rowKey: o,
3038
+ } = pe(), {
3039
+ rowKey: u,
2996
3040
  curdState: n,
2997
3041
  listProps: r,
2998
- getOperate: u,
3042
+ getOperate: o,
2999
3043
  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({
3044
+ } = ce(), s = (p = r == null ? void 0 : r.value) == null ? void 0 : p.pageState, d = (C) => {
3045
+ const h = o(k.DETAIL);
3046
+ h != null && h.actor ? a(k.DETAIL, C, u) : t({
3003
3047
  type: "detailData",
3004
- payload: Ft(P)
3048
+ payload: Lt(C)
3005
3049
  });
3006
- }, h = (P, {
3007
- record: b
3050
+ }, S = (C, {
3051
+ record: h
3008
3052
  }) => {
3009
- P === V.EMIT && (t({
3053
+ C === V.EMIT && (t({
3010
3054
  type: "mode",
3011
3055
  payload: ve.DETAIL
3012
- }), f(b));
3013
- }, p = (P) => {
3014
- P === V.EMIT ? (t({
3056
+ }), d(h));
3057
+ }, P = (C) => {
3058
+ C === V.EMIT ? (t({
3015
3059
  type: "mode",
3016
3060
  payload: ve.ADD
3017
3061
  }), t({
3018
3062
  type: "detailData",
3019
3063
  payload: e.defaultAddRecord || {}
3020
- })) : P === V.SUCCESS && (s && (s.page = 1), l(), n.addAction === Oe.CONTINUE ? t({
3064
+ })) : C === V.SUCCESS && (s && (s.page = 1), l(), n.addAction === Ke.CONTINUE ? t({
3021
3065
  type: "detailData",
3022
3066
  payload: e.defaultAddRecord || {}
3023
3067
  }) : t({
3024
3068
  type: "mode",
3025
3069
  payload: void 0
3026
3070
  }));
3027
- }, v = (P, {
3028
- record: b
3071
+ }, y = (C, {
3072
+ record: h
3029
3073
  }) => {
3030
- P === V.EMIT ? (t({
3074
+ C === V.EMIT ? (t({
3031
3075
  type: "mode",
3032
3076
  payload: ve.EDIT
3033
- }), f(b)) : P === V.SUCCESS && (t({
3077
+ }), d(h)) : C === V.SUCCESS && (t({
3034
3078
  type: "mode",
3035
3079
  payload: void 0
3036
3080
  }), l());
3037
3081
  };
3038
- return lt(({
3039
- type: P,
3040
- payload: b,
3041
- source: T
3082
+ return ct(({
3083
+ type: C,
3084
+ payload: h,
3085
+ source: O
3042
3086
  }) => {
3043
- if (T)
3087
+ if (O)
3044
3088
  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, {
3089
+ let N = C, m = h == null ? void 0 : h.type;
3090
+ const M = h == null ? void 0 : h.record;
3091
+ switch (N === we.Success && (N = g(h, ["requestOpts", "action"]), m = V.SUCCESS), N) {
3092
+ case k.DETAIL:
3093
+ S(m, {
3050
3094
  record: M
3051
3095
  });
3052
3096
  break;
3053
- case L.ADD:
3054
- p(m);
3097
+ case k.ADD:
3098
+ P(m);
3055
3099
  break;
3056
- case L.EDIT:
3057
- v(m, {
3100
+ case k.EDIT:
3101
+ y(m, {
3058
3102
  record: M
3059
3103
  });
3060
3104
  break;
3061
3105
  }
3062
3106
  }), () => null;
3063
3107
  }
3064
- }), Za = K({
3108
+ }), eo = D({
3065
3109
  props: {
3066
- ...Qe.props,
3067
- ...Ge.props
3110
+ ...Je.props,
3111
+ ...Xe.props
3068
3112
  },
3069
3113
  setup: (e, {
3070
3114
  slots: t,
3071
3115
  expose: a
3072
3116
  }) => {
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)), {
3117
+ const u = H();
3118
+ a(Pe(gn, u));
3119
+ const n = Y(Xe.props), o = ee()(q.ProCurdKey);
3120
+ return () => o ? i(o, R({
3121
+ ref: u
3122
+ }, F(e, n)), {
3079
3123
  default: () => {
3080
3124
  var l;
3081
- return [d(Ge, Z(e, n), null), (l = t.default) == null ? void 0 : l.call(t)];
3125
+ return [i(Xe, J(e, n), null), (l = t.default) == null ? void 0 : l.call(t)];
3082
3126
  }
3083
3127
  }) : null;
3084
3128
  }
3085
- }), ea = () => ({
3129
+ }), ta = () => ({
3086
3130
  defaultAddRecord: {
3087
3131
  type: Object
3088
3132
  },
3089
3133
  routeBack: {
3090
3134
  type: Function
3091
3135
  }
3092
- }), Xe = K({
3136
+ }), _e = D({
3093
3137
  props: {
3094
- ...ea()
3138
+ ...ta()
3095
3139
  },
3096
3140
  setup: (e) => {
3097
- const t = at(), a = ot(), {
3098
- dispatch: o,
3141
+ const t = ot(), a = ut(), {
3142
+ dispatch: u,
3099
3143
  sendRequest: n
3100
- } = Se(), {
3144
+ } = pe(), {
3101
3145
  rowKey: r,
3102
- curdState: u
3103
- } = ce(), l = (p) => {
3104
- p === V.PAGE && (o({
3146
+ curdState: o
3147
+ } = ce(), l = (P) => {
3148
+ P === V.PAGE && (u({
3105
3149
  type: "mode",
3106
3150
  payload: void 0
3107
- }), o({
3151
+ }), u({
3108
3152
  type: "detailData",
3109
3153
  payload: {}
3110
- }), o({
3154
+ }), u({
3111
3155
  type: "detailLoading",
3112
3156
  payload: !1
3113
- }), o({
3157
+ }), u({
3114
3158
  type: "addAction",
3115
3159
  payload: void 0
3116
3160
  }));
3117
- }, s = (p, {
3118
- record: v
3161
+ }, s = (P, {
3162
+ record: y
3119
3163
  }) => {
3120
- p === V.EMIT ? t.push({
3164
+ P === V.EMIT ? t.push({
3121
3165
  path: `${a.path}/detail`,
3122
- query: Z(v, r)
3123
- }) : p === V.PAGE && (o({
3166
+ query: J(y, r)
3167
+ }) : P === V.PAGE && (u({
3124
3168
  type: "mode",
3125
3169
  payload: ve.DETAIL
3126
- }), n(L.DETAIL, a.query, r));
3127
- }, f = (p) => {
3128
- p === V.EMIT ? t.push({
3170
+ }), n(k.DETAIL, a.query, r));
3171
+ }, d = (P) => {
3172
+ P === V.EMIT ? t.push({
3129
3173
  path: `${a.path}/add`
3130
- }) : p === V.PAGE ? (o({
3174
+ }) : P === V.PAGE ? (u({
3131
3175
  type: "mode",
3132
3176
  payload: ve.ADD
3133
- }), o({
3177
+ }), u({
3134
3178
  type: "detailData",
3135
3179
  payload: e.defaultAddRecord || {}
3136
- })) : p === V.SUCCESS && (u.addAction === Oe.CONTINUE ? o({
3180
+ })) : P === V.SUCCESS && (o.addAction === Ke.CONTINUE ? u({
3137
3181
  type: "detailData",
3138
3182
  payload: e.defaultAddRecord || {}
3139
- }) : e.routeBack ? e.routeBack(L.ADD) : t.go(-1));
3140
- }, h = (p, {
3141
- record: v
3183
+ }) : e.routeBack ? e.routeBack(k.ADD) : t.go(-1));
3184
+ }, S = (P, {
3185
+ record: y
3142
3186
  }) => {
3143
- p === V.EMIT ? t.push({
3187
+ P === V.EMIT ? t.push({
3144
3188
  path: `${a.path}/edit`,
3145
- query: Z(v, r)
3146
- }) : p === V.PAGE ? (o({
3189
+ query: J(y, r)
3190
+ }) : P === V.PAGE ? (u({
3147
3191
  type: "mode",
3148
3192
  payload: ve.EDIT
3149
- }), n(L.DETAIL, a.query, r)) : p === V.SUCCESS && (e.routeBack ? e.routeBack(L.EDIT) : t.go(-1));
3193
+ }), n(k.DETAIL, a.query, r)) : P === V.SUCCESS && (e.routeBack ? e.routeBack(k.EDIT) : t.go(-1));
3150
3194
  };
3151
- return lt(({
3152
- type: p,
3153
- payload: v,
3154
- source: S
3195
+ return ct(({
3196
+ type: P,
3197
+ payload: y,
3198
+ source: p
3155
3199
  }) => {
3156
- if (S)
3200
+ if (p)
3157
3201
  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);
3202
+ let C = P, h = y == null ? void 0 : y.type;
3203
+ const O = y == null ? void 0 : y.record;
3204
+ switch (C === we.Success && (C = g(y, ["requestOpts", "action"]), h = V.SUCCESS), C) {
3205
+ case k.LIST:
3206
+ l(h);
3163
3207
  break;
3164
- case L.DETAIL:
3165
- s(b, {
3166
- record: T
3208
+ case k.DETAIL:
3209
+ s(h, {
3210
+ record: O
3167
3211
  });
3168
3212
  break;
3169
- case L.ADD:
3170
- f(b);
3213
+ case k.ADD:
3214
+ d(h);
3171
3215
  break;
3172
- case L.EDIT:
3173
- h(b, {
3174
- record: T
3216
+ case k.EDIT:
3217
+ S(h, {
3218
+ record: O
3175
3219
  });
3176
3220
  break;
3177
3221
  }
3178
3222
  }), () => null;
3179
3223
  }
3180
- }), eo = K({
3224
+ }), to = D({
3181
3225
  props: {
3182
- ...Qe.props,
3183
- ...Xe.props
3226
+ ...Je.props,
3227
+ ..._e.props
3184
3228
  },
3185
3229
  setup: (e, {
3186
3230
  slots: t,
3187
3231
  expose: a
3188
3232
  }) => {
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)), {
3233
+ const u = H();
3234
+ a(Pe(gn, u));
3235
+ const n = Y(_e.props);
3236
+ return () => i(Je, R({
3237
+ ref: u
3238
+ }, F(e, n)), {
3195
3239
  default: () => {
3196
3240
  var r;
3197
- return [d(Xe, Z(e, n), null), (r = t.default) == null ? void 0 : r.call(t)];
3241
+ return [i(_e, J(e, n), null), (r = t.default) == null ? void 0 : r.call(t)];
3198
3242
  }
3199
3243
  });
3200
3244
  }
3201
- }), wt = K({
3245
+ }), Ot = D({
3202
3246
  props: {
3203
3247
  buttonProps: Object
3204
3248
  },
3205
3249
  setup: (e, {
3206
3250
  slots: t
3207
3251
  }) => {
3208
- const a = dn(), {
3209
- getOperate: o,
3252
+ const a = fn(), {
3253
+ getOperate: u,
3210
3254
  sendCurdEvent: n
3211
- } = ce(), r = o(L.ADD), u = () => {
3255
+ } = ce(), r = u(k.ADD), o = () => {
3212
3256
  if (r != null && r.onClick) {
3213
3257
  r.onClick();
3214
3258
  return;
3215
3259
  }
3216
3260
  n({
3217
- action: L.ADD,
3261
+ action: k.ADD,
3218
3262
  type: V.EMIT
3219
3263
  });
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({
3264
+ }, s = ee()(q.ButtonKey);
3265
+ 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
3266
  class: "pro-curd-add-button",
3223
3267
  disabled: W(r.disabled) ? r.disabled() : r.disabled
3224
3268
  }, e.buttonProps, {
3225
- onClick: u
3269
+ onClick: o
3226
3270
  }), {
3227
3271
  default: () => [r.label]
3228
3272
  }) : null;
3229
3273
  }
3230
- }), Ot = () => ({
3274
+ }), Kt = () => ({
3231
3275
  addConfig: {
3232
3276
  type: Object,
3233
3277
  default: {
@@ -3238,136 +3282,136 @@ const Jr = () => ({
3238
3282
  type: Boolean,
3239
3283
  default: !0
3240
3284
  }
3241
- }), ta = K({
3285
+ }), na = D({
3242
3286
  props: {
3243
- ...Ur.props,
3244
- ...Ot()
3287
+ ...Br.props,
3288
+ ...Kt()
3245
3289
  },
3246
3290
  setup: (e, {
3247
3291
  slots: t
3248
3292
  }) => {
3249
3293
  const {
3250
3294
  elementMap: a,
3251
- formElementMap: o,
3295
+ formElementMap: u,
3252
3296
  curdState: n,
3253
3297
  searchColumns: r,
3254
- tableColumns: u,
3298
+ tableColumns: o,
3255
3299
  sendCurdEvent: l,
3256
3300
  operates: s,
3257
- refreshList: f
3258
- } = ce(), h = $(
3259
- _(s, (m) => {
3301
+ refreshList: d
3302
+ } = ce(), S = $(
3303
+ X(s, (m) => {
3260
3304
  const M = m.action;
3261
- return M === L.DETAIL || M === L.EDIT || M === L.DELETE || m.tableOperate;
3305
+ return M === k.DETAIL || M === k.EDIT || M === k.DELETE || m.tableOperate;
3262
3306
  }),
3263
3307
  (m) => {
3264
3308
  const M = {
3265
- ...Z(m, "label", "show", "disabled", "loading", "extraProps", "onClick", "element", "sort", "per", "perSuffix", "tip", "tipProps"),
3309
+ ...J(m, "label", "show", "disabled", "loading", "extraProps", "onClick", "element", "sort", "per", "perSuffix", "tip", "tipProps"),
3266
3310
  value: m.action
3267
3311
  };
3268
- return M.onClick || (M.onClick = (x) => {
3312
+ return M.onClick || (M.onClick = (w) => {
3269
3313
  l({
3270
3314
  action: m.action,
3271
3315
  type: V.EMIT,
3272
- record: x
3316
+ record: w
3273
3317
  });
3274
3318
  }), M;
3275
3319
  }
3276
- ), p = (m) => {
3320
+ ), P = (m) => {
3277
3321
  l({
3278
- action: L.LIST,
3322
+ action: k.LIST,
3279
3323
  type: V.EMIT,
3280
3324
  values: m
3281
3325
  });
3282
3326
  };
3283
3327
  Wn(() => {
3284
- e.activatedRefresh && f();
3328
+ e.activatedRefresh && d();
3285
3329
  });
3286
- const v = N(() => ({
3287
- formElementMap: o,
3330
+ const y = I(() => ({
3331
+ formElementMap: u,
3288
3332
  columns: r.value,
3289
3333
  ...e.searchProps
3290
- })), S = N(() => {
3334
+ })), p = I(() => {
3291
3335
  var m, M;
3292
3336
  return {
3293
3337
  elementMap: a,
3294
- columns: u.value,
3338
+ columns: o.value,
3295
3339
  loading: n.listLoading,
3296
3340
  dataSource: (m = n.listData) == null ? void 0 : m.dataSource,
3297
- ...D(e.tableProps, "operate"),
3341
+ ...F(e.tableProps, "operate"),
3298
3342
  operate: {
3299
- items: h,
3343
+ items: S,
3300
3344
  ...(M = e.tableProps) == null ? void 0 : M.operate
3301
3345
  }
3302
3346
  };
3303
- }), P = N(() => {
3347
+ }), C = I(() => {
3304
3348
  var m;
3305
3349
  return e.paginationProps === !1 ? !1 : {
3306
3350
  total: (m = n.listData) == null ? void 0 : m.total,
3307
3351
  ...e.paginationProps
3308
3352
  };
3309
- }), b = Q(Ot()), w = ee()(B.ProListKey);
3353
+ }), h = Y(Kt()), N = ee()(q.ProListKey);
3310
3354
  return () => {
3311
3355
  var m, M;
3312
- return w ? d(w, R({
3356
+ return N ? i(N, R({
3313
3357
  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
3358
+ }, F(e, ...h, "searchProps", "tableProps", "paginationProps"), {
3359
+ searchProps: y.value,
3360
+ tableProps: p.value,
3361
+ paginationProps: C.value,
3362
+ onSearch: P
3319
3363
  }), {
3320
3364
  "search-end": (m = e.addConfig) != null && m.inSearch ? () => {
3321
- var x;
3322
- return d("div", {
3365
+ var w;
3366
+ return i("div", {
3323
3367
  class: "pro-curd-list-search-end"
3324
- }, [d(wt, (x = e.addConfig) == null ? void 0 : x.buttonProps, null)]);
3368
+ }, [i(Ot, (w = e.addConfig) == null ? void 0 : w.buttonProps, null)]);
3325
3369
  } : void 0,
3326
- "table-toolbarExtra": (M = e.addConfig) != null && M.inTable ? (x) => {
3370
+ "table-toolbarExtra": (M = e.addConfig) != null && M.inTable ? (w) => {
3327
3371
  var E;
3328
- return d(le, null, [d(wt, (E = e.addConfig) == null ? void 0 : E.buttonProps, null), x]);
3372
+ return i(le, null, [i(Ot, (E = e.addConfig) == null ? void 0 : E.buttonProps, null), w]);
3329
3373
  } : void 0,
3330
3374
  ...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
3375
+ search: t.search ? (w) => t.search(w, y.value) : void 0,
3376
+ table: t.table ? (w) => t.table(w, p.value) : void 0,
3377
+ pagination: t.pagination ? (w) => t.pagination(w, C.value) : void 0
3334
3378
  }) : null;
3335
3379
  };
3336
3380
  }
3337
- }), to = K(() => {
3381
+ }), no = D(() => {
3338
3382
  const {
3339
3383
  listProps: e
3340
3384
  } = ce();
3341
- return () => d(ta, D(e == null ? void 0 : e.value, "slots"), g(e == null ? void 0 : e.value, "slots"));
3342
- }), na = () => ({
3385
+ return () => i(na, F(e == null ? void 0 : e.value, "slots"), g(e == null ? void 0 : e.value, "slots"));
3386
+ }), ra = () => ({
3343
3387
  signName: {
3344
3388
  type: String
3345
3389
  }
3346
- }), it = K({
3390
+ }), ft = D({
3347
3391
  props: {
3348
- ...na()
3392
+ ...ra()
3349
3393
  },
3350
3394
  setup: (e, {
3351
3395
  slots: t,
3352
3396
  expose: a,
3353
- attrs: o
3397
+ attrs: u
3354
3398
  }) => {
3355
3399
  const {
3356
3400
  elementMap: n,
3357
3401
  formElementMap: r,
3358
- curdState: u,
3402
+ curdState: o,
3359
3403
  formColumns: l,
3360
3404
  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 = () => {
3405
+ sendCurdEvent: d
3406
+ } = ce(), S = H();
3407
+ a(Pe(e.formMethods || [], S));
3408
+ const P = I(() => e.signName ? s(e.signName) : l.value), y = () => {
3365
3409
  var m;
3366
- u.addAction = Oe.NORMAL, (m = h.value) == null || m.submit();
3367
- }, S = () => {
3410
+ o.addAction = Ke.NORMAL, (m = S.value) == null || m.submit();
3411
+ }, p = () => {
3368
3412
  var m;
3369
- u.addAction = Oe.CONTINUE, (m = h.value) == null || m.submit();
3370
- }, P = [
3413
+ o.addAction = Ke.CONTINUE, (m = S.value) == null || m.submit();
3414
+ }, C = [
3371
3415
  {
3372
3416
  value: ue.RESET,
3373
3417
  label: "\u91CD\u7F6E"
@@ -3387,73 +3431,73 @@ const Jr = () => ({
3387
3431
  },
3388
3432
  show: !1
3389
3433
  }
3390
- ], b = (m) => {
3391
- o.onFinish || (u.mode === L.EDIT ? f({
3392
- action: L.EDIT,
3434
+ ], h = (m) => {
3435
+ u.onFinish || (o.mode === k.EDIT ? d({
3436
+ action: k.EDIT,
3393
3437
  type: V.EXECUTE,
3394
3438
  values: m
3395
- }) : f({
3396
- action: L.ADD,
3439
+ }) : d({
3440
+ action: k.ADD,
3397
3441
  type: V.EXECUTE,
3398
3442
  values: m
3399
3443
  }));
3400
- }, w = ee()(B.ProFormKey);
3401
- return () => w ? d(w, R({
3402
- ref: h,
3444
+ }, N = ee()(q.ProFormKey);
3445
+ return () => N ? i(N, R({
3446
+ ref: S,
3403
3447
  class: "pro-curd-form"
3404
- }, D(e, "operate"), {
3448
+ }, F(e, "operate"), {
3405
3449
  elementMap: e.elementMap || n,
3406
3450
  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,
3451
+ columns: e.columns || P.value,
3452
+ readonly: o.mode === k.DETAIL,
3453
+ model: e.model || o.detailData,
3454
+ hideRequiredMark: o.mode === k.DETAIL,
3411
3455
  operate: e.operate ? {
3412
- items: P,
3413
- onSubmit: v,
3414
- onContinue: S,
3456
+ items: C,
3457
+ onSubmit: y,
3458
+ onContinue: p,
3415
3459
  ...e.operate
3416
3460
  } : void 0,
3417
- onFinish: b
3461
+ onFinish: h
3418
3462
  }), t) : null;
3419
3463
  }
3420
- }), no = K(() => {
3464
+ }), ro = D(() => {
3421
3465
  const {
3422
3466
  formProps: e
3423
3467
  } = ce();
3424
- return () => d(it, D(e == null ? void 0 : e.value, "slots"), g(e == null ? void 0 : e.value, "slots"));
3425
- }), ra = () => ({
3468
+ return () => i(ft, F(e == null ? void 0 : e.value, "slots"), g(e == null ? void 0 : e.value, "slots"));
3469
+ }), aa = () => ({
3426
3470
  signName: {
3427
3471
  type: String
3428
3472
  }
3429
- }), aa = K({
3473
+ }), oa = D({
3430
3474
  props: {
3431
- ...ra()
3475
+ ...aa()
3432
3476
  },
3433
3477
  setup: (e, {
3434
3478
  slots: t
3435
3479
  }) => {
3436
3480
  const {
3437
3481
  curdState: a,
3438
- descColumns: o,
3482
+ descColumns: u,
3439
3483
  getSignColumns: n
3440
- } = ce(), r = N(() => e.signName ? n(e.signName) : o.value);
3441
- return () => d(qr, R(D(e, "signName", "model", "columns"), {
3484
+ } = ce(), r = I(() => e.signName ? n(e.signName) : u.value);
3485
+ return () => i(Ur, R(F(e, "signName", "model", "columns"), {
3442
3486
  model: e.model || a.detailData,
3443
3487
  columns: r.value
3444
3488
  }), t);
3445
3489
  }
3446
- }), ro = K(() => {
3490
+ }), ao = D(() => {
3447
3491
  const {
3448
3492
  descProps: e
3449
3493
  } = ce();
3450
- return () => d(aa, R({
3494
+ return () => i(oa, R({
3451
3495
  class: "pro-curd-desc"
3452
- }, D(e == null ? void 0 : e.value, "slots")), g(e == null ? void 0 : e.value, "slots"));
3453
- }), Kt = () => ({
3496
+ }, F(e == null ? void 0 : e.value, "slots")), g(e == null ? void 0 : e.value, "slots"));
3497
+ }), At = () => ({
3454
3498
  validMode: {
3455
3499
  type: Array,
3456
- default: [L.ADD, L.DETAIL, L.EDIT]
3500
+ default: [k.ADD, k.DETAIL, k.EDIT]
3457
3501
  },
3458
3502
  loadingOpts: {
3459
3503
  type: Object
@@ -3461,48 +3505,48 @@ const Jr = () => ({
3461
3505
  overrideProps: {
3462
3506
  type: Object
3463
3507
  }
3464
- }), pn = K({
3508
+ }), Sn = D({
3465
3509
  props: {
3466
- ...Kt()
3510
+ ...At()
3467
3511
  },
3468
3512
  setup: (e, {
3469
3513
  slots: t
3470
3514
  }) => {
3471
- const a = ee(), o = a(B.ModalKey), n = a(B.LoadingKey), {
3515
+ const a = ee(), u = a(q.ModalKey), n = a(q.LoadingKey), {
3472
3516
  curdState: r,
3473
- getOperate: u
3517
+ getOperate: o
3474
3518
  } = ce(), l = () => {
3475
3519
  r.mode = void 0, jt(r.detailData, {}), r.detailLoading = !1, r.addAction = void 0;
3476
- }, s = Q(Kt());
3520
+ }, s = Y(At());
3477
3521
  return () => {
3478
- var h;
3479
- const f = r.mode;
3480
- return !he(e.validMode, (p) => p === f) || !o ? null : d(o, R({
3522
+ var S;
3523
+ const d = r.mode;
3524
+ return !he(e.validMode, (P) => P === d) || !u ? null : i(u, R({
3481
3525
  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),
3526
+ }, F(e, s), {
3527
+ visible: he(e.validMode, (P) => P === d),
3528
+ title: e.title || ((S = o(r.mode)) == null ? void 0 : S.label),
3485
3529
  confirmLoading: r.operateLoading,
3486
- maskClosable: r.mode === L.DETAIL,
3487
- footer: r.detailLoading || r.mode === L.DETAIL ? !1 : void 0
3530
+ maskClosable: r.mode === k.DETAIL,
3531
+ footer: r.detailLoading || r.mode === k.DETAIL ? !1 : void 0
3488
3532
  }, e.overrideProps, {
3489
3533
  onCancel: l
3490
3534
  }), {
3491
3535
  default: () => {
3492
- var p;
3493
- return [r.detailLoading && n ? d(n, R({
3536
+ var P;
3537
+ return [r.detailLoading && n ? i(n, R({
3494
3538
  loading: !0
3495
3539
  }, e.loadingOpts), {
3496
- default: () => [d("div", {
3540
+ default: () => [i("div", {
3497
3541
  class: "pro-curd-modal-loading-dom"
3498
3542
  }, null)]
3499
- }) : (p = t.default) == null ? void 0 : p.call(t)];
3543
+ }) : (P = t.default) == null ? void 0 : P.call(t)];
3500
3544
  },
3501
- ...D(t, "default")
3545
+ ...F(t, "default")
3502
3546
  });
3503
3547
  };
3504
3548
  }
3505
- }), ao = K({
3549
+ }), oo = D({
3506
3550
  props: {
3507
3551
  modalProps: Object,
3508
3552
  formProps: Object
@@ -3510,36 +3554,36 @@ const Jr = () => ({
3510
3554
  setup: (e, {
3511
3555
  slots: t
3512
3556
  }) => {
3513
- const a = z(), o = fe(t, "modal"), n = fe(t, "form");
3514
- return () => d(pn, R(e.modalProps, {
3557
+ const a = H(), u = fe(t, "modal"), n = fe(t, "form");
3558
+ return () => i(Sn, R(e.modalProps, {
3515
3559
  onOk: () => {
3516
3560
  var r;
3517
3561
  (r = a.value) == null || r.submit();
3518
3562
  }
3519
3563
  }), {
3520
- default: () => [d(it, R({
3564
+ default: () => [i(ft, R({
3521
3565
  ref: a
3522
3566
  }, e.formProps), n)],
3523
- ...o
3567
+ ...u
3524
3568
  });
3525
3569
  }
3526
- }), oo = K(() => {
3570
+ }), uo = D(() => {
3527
3571
  const {
3528
3572
  modalProps: e,
3529
3573
  formProps: t
3530
- } = ce(), a = z();
3531
- return () => d(pn, R(D(e == null ? void 0 : e.value, "slots"), {
3574
+ } = ce(), a = H();
3575
+ return () => i(Sn, R(F(e == null ? void 0 : e.value, "slots"), {
3532
3576
  onOk: () => {
3533
- var o;
3534
- (o = a.value) == null || o.submit();
3577
+ var u;
3578
+ (u = a.value) == null || u.submit();
3535
3579
  }
3536
3580
  }), {
3537
- default: () => [d(it, R({
3581
+ default: () => [i(ft, R({
3538
3582
  ref: a
3539
- }, D(t == null ? void 0 : t.value, "slots")), g(t == null ? void 0 : t.value, "slots"))],
3583
+ }, F(t == null ? void 0 : t.value, "slots")), g(t == null ? void 0 : t.value, "slots"))],
3540
3584
  ...g(e == null ? void 0 : e.value, "slots")
3541
3585
  });
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 = {
3586
+ }), 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
3587
  color: {
3544
3588
  primary: "#409eff",
3545
3589
  success: "#67c23a",
@@ -3551,26 +3595,26 @@ const Jr = () => ({
3551
3595
  radius: "4px",
3552
3596
  lineHeight: 1.5714285714285714,
3553
3597
  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)
3598
+ }, ca = (e) => {
3599
+ var u, n, r, o, l, s, d, S, P, y, p, C;
3600
+ const t = [1, 2, 3, 4, 5, 6, 7, 8, 9], a = (h) => ({
3601
+ base: h,
3602
+ light: re(t, (O, N) => ({
3603
+ ...O,
3604
+ [String(N)]: la(h, N)
3561
3605
  }), {}),
3562
3606
  dark: {
3563
- 2: oa(b, 2)
3607
+ 2: ua(h, 2)
3564
3608
  }
3565
3609
  });
3566
3610
  return {
3567
3611
  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)),
3612
+ primary: a(((u = e == null ? void 0 : e.color) == null ? void 0 : u.primary) || ((n = ge.color) == null ? void 0 : n.primary)),
3613
+ success: a(((r = e == null ? void 0 : e.color) == null ? void 0 : r.success) || ((o = ge.color) == null ? void 0 : o.success)),
3570
3614
  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)),
3615
+ danger: a(((d = e == null ? void 0 : e.color) == null ? void 0 : d.danger) || ((S = ge.color) == null ? void 0 : S.danger)),
3616
+ error: a(((P = e == null ? void 0 : e.color) == null ? void 0 : P.error) || ((y = ge.color) == null ? void 0 : y.error)),
3617
+ info: a(((p = e == null ? void 0 : e.color) == null ? void 0 : p.info) || ((C = ge.color) == null ? void 0 : C.info)),
3574
3618
  text: {
3575
3619
  base: "#303133",
3576
3620
  regular: "#606266",
@@ -3603,9 +3647,9 @@ const Jr = () => ({
3603
3647
  md: 1.5714285714285714,
3604
3648
  sm: 1.6666666666666667
3605
3649
  },
3606
- spacing: re(t, (b, T) => ({
3607
- ...b,
3608
- [String(T)]: T * 4 + "px"
3650
+ spacing: re(t, (h, O) => ({
3651
+ ...h,
3652
+ [String(O)]: O * 4 + "px"
3609
3653
  }), {}),
3610
3654
  shadow: {
3611
3655
  base: "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",
@@ -3615,7 +3659,7 @@ const Jr = () => ({
3615
3659
  inner: "inset 0 2px 4px 0 rgb(0 0 0 / 0.05)"
3616
3660
  }
3617
3661
  };
3618
- }, ca = () => ({
3662
+ }, sa = () => ({
3619
3663
  theme: {
3620
3664
  type: Object
3621
3665
  },
@@ -3629,138 +3673,139 @@ const Jr = () => ({
3629
3673
  createCssVar: {
3630
3674
  type: Function
3631
3675
  }
3632
- }), lo = K({
3676
+ }), co = D({
3633
3677
  props: {
3634
- ...ca()
3678
+ ...sa()
3635
3679
  },
3636
3680
  setup: (e, {
3637
3681
  slots: t
3638
3682
  }) => {
3639
- const o = be({
3640
- ...(() => e.theme ? e.theme : la(e.themeToken))()
3683
+ const u = be({
3684
+ ...(() => e.theme ? e.theme : ca(e.themeToken))()
3641
3685
  });
3642
- return me(Sn, o), () => {
3686
+ return me(pn, u), () => {
3643
3687
  var n, r;
3644
- return e.global ? d(le, null, [e.createCssVar && d(Zn, {
3688
+ return e.global ? i(le, null, [e.createCssVar && i(Zn, {
3645
3689
  styles: {
3646
- ":root": e.createCssVar(o)
3690
+ ":root": e.createCssVar(u)
3647
3691
  }
3648
3692
  }, null), (n = t.default) == null ? void 0 : n.call(t)]) : (r = t.default) == null ? void 0 : r.call(t);
3649
3693
  };
3650
3694
  }
3651
3695
  });
3652
3696
  export {
3653
- wt as AddButton,
3697
+ Ot as AddButton,
3654
3698
  Dr as ColumnSetting,
3655
- L as CurdAction,
3656
- Oe as CurdAddAction,
3699
+ k as CurdAction,
3700
+ Ke as CurdAddAction,
3657
3701
  ve as CurdCurrentMode,
3658
3702
  gn as CurdMethods,
3659
3703
  V as CurdSubAction,
3660
- B as ElementKeys,
3704
+ q as ElementKeys,
3661
3705
  ue as FormAction,
3662
3706
  Ra as FormRulePrefixMap,
3663
3707
  ja as LogonUser,
3664
- cn as LogonUserKey,
3665
- Ge as ModalCurdOpe,
3666
- ka as MustLogon,
3667
- We as PageHeader,
3708
+ sn as LogonUserKey,
3709
+ Xe as ModalCurdOpe,
3710
+ Ba as MustLogon,
3711
+ Ge as PageHeader,
3668
3712
  Ua as PerSuffix,
3669
3713
  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,
3714
+ Ta as ProConfig,
3715
+ Je as ProCurd,
3716
+ oa as ProCurdDesc,
3717
+ ao as ProCurdDescConnect,
3718
+ ft as ProCurdForm,
3719
+ ro as ProCurdFormConnect,
3720
+ na as ProCurdList,
3721
+ no as ProCurdListConnect,
3722
+ Sn as ProCurdModal,
3723
+ oo as ProCurdModalForm,
3724
+ uo as ProCurdModalFormConnect,
3725
+ Ur as ProDesc,
3726
+ Fa as ProForm,
3727
+ Da as ProFormList,
3728
+ Me as ProGrid,
3729
+ Ya as ProLayout,
3730
+ Br as ProList,
3731
+ eo as ProModalCurd,
3688
3732
  $e as ProModule,
3689
- fn as ProOperate,
3690
- Va as ProPage,
3691
- eo as ProPageCurd,
3733
+ mn as ProOperate,
3734
+ za as ProPage,
3735
+ to as ProPageCurd,
3736
+ Wr as ProRouterView,
3692
3737
  $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,
3738
+ _a as ProShowDate,
3739
+ Wa as ProShowDigit,
3740
+ Ga as ProShowOptions,
3741
+ He as ProShowText,
3742
+ Xa as ProShowTree,
3743
+ Va as ProTable,
3744
+ co as ProTheme,
3700
3745
  Tr as ProTip,
3701
3746
  zr as ProTypography,
3702
- Qa as ProUploadList,
3703
- Ya as ProUploaderText,
3704
- za as ProValue,
3705
- Ne as RequestAction,
3747
+ Ja as ProUploadList,
3748
+ Qa as ProUploaderText,
3749
+ Ha as ProValue,
3750
+ we as RequestAction,
3706
3751
  or as RouterMethods,
3707
3752
  qe as SearchMode,
3708
- Sn as ThemeKey,
3753
+ pn as ThemeKey,
3709
3754
  ge as ThemeToken,
3710
3755
  hr as Wrapper,
3711
- tn as convertPathToList,
3756
+ nn as convertPathToList,
3712
3757
  rr as convertResData,
3713
3758
  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,
3759
+ Aa as createExposeObj,
3760
+ La as createFormItemCompFn,
3761
+ Za as createModule,
3762
+ xa as createProConfig,
3763
+ ca as createTheme,
3764
+ kr as defaultPage,
3720
3765
  fe as filterSlotsByPrefix,
3721
3766
  de as getColumnFormItemName,
3722
- Qt as getColumnValueType,
3767
+ Jt as getColumnValueType,
3723
3768
  vr as getFirstPropName,
3724
3769
  mr as getRealRender,
3725
- Sr as getSignValue,
3726
- pr as getValidValues,
3770
+ pr as getSignValue,
3771
+ Sr as getValidValues,
3727
3772
  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,
3773
+ Qe as isValidNode,
3774
+ Ve as mergeState,
3775
+ Ka as mergeStateToList,
3776
+ Se as proBaseProps,
3777
+ Jr as provideProCurd,
3778
+ on as provideProFormList,
3734
3779
  dr as provideProModule,
3735
- ct as renderColumn,
3736
- we as renderElement,
3737
- st as renderElements,
3738
- Jt as renderInputColumn,
3739
- yn as showValue,
3780
+ st as renderColumn,
3781
+ Oe as renderElement,
3782
+ it as renderElements,
3783
+ Zt as renderInputColumn,
3784
+ hn as showValue,
3740
3785
  xr as useAccess,
3741
- La as useAccessMgr,
3786
+ ka as useAccessMgr,
3742
3787
  nr as useComposeRequestActor,
3743
- Na as useDispatchMeta,
3788
+ wa as useDispatchMeta,
3744
3789
  ir as useDispatchStore,
3745
- xa as useDoneRequestActor,
3746
- Ia as useFailedRequestActor,
3790
+ Ia as useDoneRequestActor,
3791
+ Na as useFailedRequestActor,
3747
3792
  Cr as useFormSubmit,
3748
3793
  ee as useGetCompByKey,
3749
- sn as useHasPer,
3750
- dn as useHasPer2,
3794
+ dn as useHasPer,
3795
+ fn as useHasPer2,
3751
3796
  Ir as useLogonUser,
3752
3797
  ar as useMetaRegister,
3753
- lt as useModuleEvent,
3798
+ ct as useModuleEvent,
3754
3799
  oe as useProConfig,
3755
3800
  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
3801
+ ln as useProForm,
3802
+ an as useProFormList,
3803
+ Ma as useProModal,
3804
+ pe as useProModule,
3805
+ Ca as useProMsg,
3806
+ Ea as useProNotify,
3807
+ ze as useProRouter,
3808
+ Fr as useProTable,
3809
+ Oa as useReadStore,
3810
+ lo as useTheme
3766
3811
  };