@vue-start/pro 0.5.40 → 0.5.41

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