@vue-start/pro 0.5.29 → 0.5.31

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,20 +1,24 @@
1
- import { defineComponent as D, provide as fe, inject as ye, reactive as Ne, createVNode as s, Fragment as ae, computed as I, h as Ce, isVNode as pe, mergeProps as O, ref as G, createTextVNode as tt, toRef as Zt } from "vue";
2
- import { reduce as ne, get as y, map as L, isString as oe, forEach as Z, endsWith as ht, set as ce, isArray as H, size as Q, pick as V, add as en, subtract as tn, isFunction as X, filter as _, has as He, keys as z, isObject as Ee, omit as $, some as me, isNumber as bt, head as nn, split as rn, isEmpty as gt, mergeWith as an, startsWith as on, mapKeys as un, debounce as St, clone as cn, isBoolean as ve, sortBy as Pt, every as ln, join as Ge, findLast as sn, cloneDeep as Ct } from "lodash";
3
- import { filter as we, tap as xe, merge as dn, Subject as mn } from "rxjs";
4
- import { map as fn, tap as yn } from "rxjs/operators";
5
- import { useEffect as ue, setReactiveValue as pt, restorePath as Et, isValidPath as Mt, isPathHasParent as Tt, useRuleState as Ue, mergeStateToData as Le, convertCollection as It, useWatch as Nt, useState as nt, useUpdateKey as vn, useResizeObserver as ze, decimalFixed as hn, thousandDivision as bn, listToMap as gn, treeToMap as Sn, getMenuTopNameMap as Pn, findTreeItem as rt, strToJson as $t, jsonToStr as Cn } from "@vue-start/hooks";
6
- import { useRequestProvide as $e, isDoneRequestActor as At, isFailedRequestActor as Ot } from "@vue-start/request";
7
- import { useDispatchStore as Dt, useStore as wt, useObservableRef as pn, useStoreConn as En, shallowEqual as Mn, createStateUse as Tn } from "@vue-start/store";
8
- import { useRouter as Xe, useRoute as Re } from "vue-router";
9
- import { css as at } from "@emotion/css";
10
- import ot from "dayjs";
11
- const In = () => ({
1
+ import { defineComponent as w, provide as me, inject as ye, reactive as Ne, createVNode as s, Fragment as ae, computed as N, h as pe, isVNode as Ce, mergeProps as O, ref as G, createTextVNode as tt, toRef as nn } from "vue";
2
+ import { reduce as ne, get as m, map as F, isString as oe, forEach as Z, size as _, endsWith as bt, set as le, isArray as W, pick as V, add as rn, subtract as an, isFunction as X, filter as Y, has as He, keys as z, isObject as Ee, omit as A, some as fe, isNumber as gt, head as on, split as un, isEmpty as St, mergeWith as cn, startsWith as ln, mapKeys as sn, debounce as Pt, clone as dn, isBoolean as ve, sortBy as pt, every as fn, join as We, findLast as mn, cloneDeep as Ct } from "lodash";
3
+ import { filter as De, tap as xe, merge as yn, Subject as vn } from "rxjs";
4
+ import { map as hn, tap as bn } from "rxjs/operators";
5
+ import { mergeStateToData as gn, mergeStateToData2 as Sn, useEffect as ue, findFirstValidMenu as Pn, setReactiveValue as Et, restorePath as Mt, isValidPath as Tt, isPathHasParent as It, useRuleState as ke, convertCollection as Nt, useWatch as $t, useState as nt, useUpdateKey as pn, useResizeObserver as Ve, decimalFixed as Cn, thousandDivision as En, listToMap as Mn, treeToMap as Tn, getMenuTopNameMap as In, findTreeItem as rt, strToJson as At, jsonToStr as Nn, useSafeActivated as $n } from "@vue-start/hooks";
6
+ import { useRequestProvide as $e, isDoneRequestActor as Ot, isFailedRequestActor as wt } from "@vue-start/request";
7
+ import { useDispatchStore as Dt, useStore as xt, useObservableRef as An, useStoreConn as On, shallowEqual as wn, createStateUse as Dn } from "@vue-start/store";
8
+ import { parseQuery as at, stringifyQuery as xn, useRouter as Ge, useRoute as Xe } from "vue-router";
9
+ import { css as ot } from "@emotion/css";
10
+ import ut from "dayjs";
11
+ const Kn = () => ({
12
12
  elementMap: { type: Object },
13
13
  formElementMap: { type: Object },
14
14
  columns: { type: Array },
15
15
  convertColumn: { type: Function },
16
- columnState: { type: Object }
17
- }), he = In(), Nn = () => ({
16
+ columnState: { type: Object },
17
+ columnState2: { type: Object }
18
+ }), he = Kn(), Fe = (e, t, a) => {
19
+ let o = e;
20
+ return t && (o = gn(o, t, (r) => ie(r))), a && (o = Sn(o, a, (r) => ie(r))), o;
21
+ }, Ln = () => ({
18
22
  elementMap: { type: Object },
19
23
  formElementMap: { type: Object },
20
24
  formExtraMap: { type: Object },
@@ -26,34 +30,34 @@ const In = () => ({
26
30
  showMsg: { type: Object },
27
31
  showModal: { type: Object },
28
32
  showNotify: { type: Object }
29
- }), _e = Symbol("pro-config"), ee = () => ye(_e) || {}, Kr = () => {
33
+ }), _e = Symbol("pro-config"), ee = () => ye(_e) || {}, qr = () => {
30
34
  const { showMsg: e } = ee();
31
35
  return (t) => e(t);
32
- }, Fr = () => {
36
+ }, Vr = () => {
33
37
  const { showModal: e } = ee();
34
38
  return (t) => e(t);
35
- }, Lr = () => {
39
+ }, zr = () => {
36
40
  const { showNotify: e } = ee();
37
41
  return (t) => e(t);
38
- }, Rr = D({
42
+ }, Hr = w({
39
43
  props: {
40
- ...Nn()
44
+ ...Ln()
41
45
  },
42
46
  setup: (e, { slots: t }) => {
43
- const o = ne(e.registerStores, (c, l) => ({ ...c, [l.key]: l }), {}), a = ne(e.registerActors, (c, l) => ({ ...c, [l.actor.name]: l }), {}), n = ne(e.registerMetas, (c, l) => ({ ...c, [l.actorName]: l }), {});
44
- On(n, a);
45
- const { dispatchRequest: r } = $e(), u = (c, l, i) => {
46
- const C = y(a, c);
47
- if (!!C)
48
- return r(C.actor, l, i);
47
+ const a = ne(e.registerStores, (c, d) => ({ ...c, [d.key]: d }), {}), o = ne(e.registerActors, (c, d) => ({ ...c, [d.actor.name]: d }), {}), r = ne(e.registerMetas, (c, d) => ({ ...c, [d.actorName]: d }), {});
48
+ jn(r, o);
49
+ const { dispatchRequest: n } = $e(), u = (c, d, i) => {
50
+ const P = m(o, c);
51
+ if (!!P)
52
+ return n(P.actor, d, i);
49
53
  };
50
- return fe(_e, {
54
+ return me(_e, {
51
55
  elementMap: e.elementMap,
52
56
  formElementMap: e.formElementMap,
53
57
  formExtraMap: e.formExtraMap,
54
- registerStoreMap: o,
55
- registerActorMap: a,
56
- registerMetaMap: n,
58
+ registerStoreMap: a,
59
+ registerActorMap: o,
60
+ registerMetaMap: r,
57
61
  dispatchRequest: u,
58
62
  convertRouter: e.convertRouter,
59
63
  showMsg: e.showMsg,
@@ -64,142 +68,179 @@ const In = () => ({
64
68
  return (c = t.default) == null ? void 0 : c.call(t);
65
69
  };
66
70
  }
67
- }), jr = (e = {}) => (t) => {
71
+ }), Wr = (e = {}) => (t) => {
68
72
  t.provide(_e, e);
69
- }, xt = (e) => (t, o) => {
70
- const { requestSubject$: a } = $e(), n = new Set(L(t, (r) => oe(r) ? r : r.name));
73
+ }, Kt = (e) => (t, a) => {
74
+ const { requestSubject$: o } = $e(), r = new Set(F(t, (n) => oe(n) ? n : n.name));
71
75
  ue(() => {
72
- const r = a.pipe(
73
- we(e),
76
+ const n = o.pipe(
77
+ De(e),
74
78
  xe((u) => {
75
- n.has(u.name) && o(u);
79
+ r.has(u.name) && a(u);
76
80
  })
77
81
  ).subscribe();
78
82
  return () => {
79
- r.unsubscribe();
83
+ n.unsubscribe();
80
84
  };
81
85
  }, []);
82
- }, kr = xt(At), Ur = xt(Ot), $n = (e, t, o) => {
83
- const { requestSubject$: a, dispatchRequest: n } = $e(), r = new Set(L(e, (c) => oe(c) ? c : c.name)), u = {};
86
+ }, Gr = Kt(Ot), Xr = Kt(wt), Fn = (e, t, a) => {
87
+ const { requestSubject$: o, dispatchRequest: r } = $e(), n = new Set(F(e, (c) => oe(c) ? c : c.name)), u = {};
84
88
  ue(() => {
85
- const c = dn(
86
- a.pipe(
87
- we(At),
88
- xe((l) => {
89
- var i, C;
90
- r.has(l.name) && ((i = t.onSuccess) == null || i.call(t, l), (C = t.onFinish) == null || C.call(t, l), u[l.name] = void 0);
89
+ const c = yn(
90
+ o.pipe(
91
+ De(Ot),
92
+ xe((d) => {
93
+ var i, P;
94
+ n.has(d.name) && ((i = t.onSuccess) == null || i.call(t, d), (P = t.onFinish) == null || P.call(t, d), u[d.name] = void 0);
91
95
  })
92
96
  ),
93
- a.pipe(
94
- we(Ot),
95
- xe((l) => {
96
- var i, C;
97
- r.has(l.name) && ((i = t.onFailed) == null || i.call(t, l), (C = t.onFinish) == null || C.call(t, l), u[l.name] = void 0);
97
+ o.pipe(
98
+ De(wt),
99
+ xe((d) => {
100
+ var i, P;
101
+ n.has(d.name) && ((i = t.onFailed) == null || i.call(t, d), (P = t.onFinish) == null || P.call(t, d), u[d.name] = void 0);
98
102
  })
99
103
  )
100
104
  ).subscribe();
101
105
  return () => {
102
- c.unsubscribe(), o && Z(u, (l) => {
103
- l && n({ ...l, stage: "CANCEL" });
106
+ c.unsubscribe(), a && Z(u, (d) => {
107
+ d && r({ ...d, stage: "CANCEL" });
104
108
  });
105
109
  };
106
110
  }, []);
107
- }, An = (e, t, o) => {
108
- var n;
109
- const a = (n = e.res) == null ? void 0 : n.data;
110
- return t ? t(a, e) : o ? y(a, o) : a;
111
- }, Br = () => {
112
- const e = wt(), { registerMetaMap: t, dispatchRequest: o } = ee();
113
- return (a) => {
114
- const n = y(t, a);
115
- if (!n)
111
+ }, Rn = (e, t, a) => {
112
+ var r;
113
+ const o = (r = e.res) == null ? void 0 : r.data;
114
+ return t ? t(o, e) : a ? m(o, a) : o;
115
+ }, _r = () => {
116
+ const e = xt(), { registerMetaMap: t, dispatchRequest: a } = ee();
117
+ return (o) => {
118
+ const r = m(t, o);
119
+ if (!r)
116
120
  return;
117
- const r = n.storeName || a;
118
- y(e.value, r) || o(a, n.initParams || {});
121
+ const n = r.storeName || o;
122
+ m(e.value, n) || a(o, r.initParams || {});
119
123
  };
120
- }, On = (e, t) => {
121
- const { requestSubject$: o } = $e(), a = Dt(), n = (r) => {
122
- const u = y(e, r.name), c = y(t, r.name);
124
+ }, jn = (e, t) => {
125
+ const { requestSubject$: a } = $e(), o = Dt(), r = (n) => {
126
+ const u = m(e, n.name), c = m(t, n.name);
123
127
  return !!(u && c && c.actor);
124
128
  };
125
129
  ue(() => {
126
- const r = o.pipe(
127
- we(n),
130
+ const n = a.pipe(
131
+ De(r),
128
132
  xe((u) => {
129
- const c = y(e, u.name);
133
+ const c = m(e, u.name);
130
134
  if (!c)
131
135
  return;
132
- const l = c.storeName || u.name, i = An(u, c.convertData, c.convertPath);
133
- a(l, i, !1, void 0);
136
+ const d = c.storeName || u.name, i = Rn(u, c.convertData, c.convertPath);
137
+ o(d, i, !1, void 0);
134
138
  })
135
139
  ).subscribe();
136
140
  return () => {
137
- r.unsubscribe();
141
+ n.unsubscribe();
138
142
  };
139
143
  }, []);
140
- }, Dn = () => {
141
- const { convertRouter: e } = ee(), t = Xe(), o = Re(), r = { ...t, open: (c, l, i) => window.open(c, l, i), openMenu: (c) => {
142
- } };
143
- return { router: e ? e(r) : r, route: o };
144
- }, wn = (e) => {
145
- if (!H(e) || Q(e) <= 0)
144
+ }, kn = {
145
+ open: (e, t, a) => window.open(e, t, a),
146
+ parseStr: (e) => {
147
+ var n;
148
+ if (!e)
149
+ return null;
150
+ try {
151
+ const u = new URL(e);
152
+ return {
153
+ protocol: u.protocol,
154
+ path: u.pathname,
155
+ origin: u.origin,
156
+ query: at(u.search),
157
+ url: u.origin + u.pathname
158
+ };
159
+ } catch {
160
+ }
161
+ const t = e.indexOf("//") > -1 ? (n = e.split("//")) == null ? void 0 : n[0] : "";
162
+ let a = "", o = "";
163
+ e.indexOf("?") >= -1 && (a = e.substring(0, e.indexOf("?")), o = e.substring(e.indexOf("?")));
164
+ const r = o ? at(o) : {};
165
+ return { protocol: t, query: r, url: a };
166
+ },
167
+ stringifyUrl: ({ url: e, query: t }) => {
168
+ const a = xn(t);
169
+ return `${e}${a ? "?" : ""}${a || ""}`;
170
+ }
171
+ }, Lt = () => {
172
+ const { convertRouter: e } = ee(), t = Ge(), a = Xe(), r = { ...t, openMenu: (u) => {
173
+ if (!!u) {
174
+ if (_(u.children) > 0) {
175
+ const c = Pn(u.children, (d) => !d.children || _(d.children) <= 0);
176
+ if (c) {
177
+ t.push({ name: c.value });
178
+ return;
179
+ }
180
+ }
181
+ t.push({ name: u.value });
182
+ }
183
+ }, ...kn };
184
+ return { router: e ? e(r) : r, route: a };
185
+ }, Un = (e) => {
186
+ if (!W(e) || _(e) <= 0)
146
187
  return !1;
147
188
  const t = e[0];
148
- return oe(t) ? ht(t, "$") : !1;
149
- }, xn = (e) => typeof e != "object" || !e.type$ ? !1 : e.type$ === "data$" && e.type$, Kn = (e) => typeof e != "object" || !e.type$ ? !1 : e.type$ === "obj", Fn = { get: y, pick: V, add: en, subtract: tn }, Ke = (e, t) => {
150
- if (xn(e)) {
151
- const o = y(t, e.name$);
152
- return e.namePath$ ? y(o, e.namePath$) : o;
153
- } else if (Kn(e)) {
154
- const o = {};
155
- return Z(e, (a, n) => {
156
- if (n !== "type$")
157
- if (ht(n, "$")) {
158
- const r = Ke(a, t);
159
- ce(o, n.replace("$", ""), r);
189
+ return oe(t) ? bt(t, "$") : !1;
190
+ }, Bn = (e) => typeof e != "object" || !e.type$ ? !1 : e.type$ === "data$" && e.type$, qn = (e) => typeof e != "object" || !e.type$ ? !1 : e.type$ === "obj", Vn = { get: m, pick: V, add: rn, subtract: an }, Ke = (e, t) => {
191
+ if (Bn(e)) {
192
+ const a = m(t, e.name$);
193
+ return e.namePath$ ? m(a, e.namePath$) : a;
194
+ } else if (qn(e)) {
195
+ const a = {};
196
+ return Z(e, (o, r) => {
197
+ if (r !== "type$")
198
+ if (bt(r, "$")) {
199
+ const n = Ke(o, t);
200
+ le(a, r.replace("$", ""), n);
160
201
  } else
161
- o[n] = a;
162
- }), o;
163
- } else if (wn(e)) {
164
- const [o, ...a] = e, n = t.expressionMethods || Fn, r = y(n, o.replace("$", ""));
165
- if (!r) {
202
+ a[r] = o;
203
+ }), a;
204
+ } else if (Un(e)) {
205
+ const [a, ...o] = e, r = t.expressionMethods || Vn, n = m(r, a.replace("$", ""));
206
+ if (!n) {
166
207
  console.log("ex", "\u672A\u627E\u5230\u5BF9\u5E94\u7684\u65B9\u6CD5", e);
167
208
  return;
168
209
  }
169
- const u = L(a, (c) => Ke(c, t));
170
- return r(...u);
210
+ const u = F(o, (c) => Ke(c, t));
211
+ return n(...u);
171
212
  }
172
213
  return e;
173
- }, Ln = () => {
214
+ }, zn = () => {
174
215
  const e = Dt(), { registerStoreMap: t } = ee();
175
- return (o, a) => {
176
- const n = y(t, o);
177
- !n || e(o, a, !!n.persist, n.initialState);
216
+ return (a, o) => {
217
+ const r = m(t, a);
218
+ !r || e(a, o, !!r.persist, r.initialState);
178
219
  };
179
- }, qr = (e) => {
180
- const { registerStoreMap: t } = ee(), o = y(t, e), a = `${o != null && o.persist ? "$" : ""}${o == null ? void 0 : o.key}`;
181
- return pn(En((r) => {
182
- const u = y(r, a);
183
- return u || (X(o == null ? void 0 : o.initialState) ? o == null ? void 0 : o.initialState() : o == null ? void 0 : o.initialState);
220
+ }, Yr = (e) => {
221
+ const { registerStoreMap: t } = ee(), a = m(t, e), o = `${a != null && a.persist ? "$" : ""}${a == null ? void 0 : a.key}`;
222
+ return An(On((n) => {
223
+ const u = m(n, o);
224
+ return u || (X(a == null ? void 0 : a.initialState) ? a == null ? void 0 : a.initialState() : a == null ? void 0 : a.initialState);
184
225
  }));
185
- }, Kt = Symbol("pro-module"), be = () => ye(Kt), Rn = (e) => {
186
- fe(Kt, e);
226
+ }, Ft = Symbol("pro-module"), be = () => ye(Ft), Hn = (e) => {
227
+ me(Ft, e);
187
228
  }, Ye = (e) => {
188
229
  const {
189
230
  subject$: t
190
231
  } = be();
191
232
  ue(() => {
192
- const o = t.subscribe({
193
- next: (a) => {
194
- e(a);
233
+ const a = t.subscribe({
234
+ next: (o) => {
235
+ e(o);
195
236
  }
196
237
  });
197
- return () => o.unsubscribe();
238
+ return () => a.unsubscribe();
198
239
  }, []);
199
240
  }, Me = {
200
241
  Success: "request-success$",
201
242
  Fail: "request-fail$"
202
- }, jn = () => ({
243
+ }, Wn = () => ({
203
244
  state: {
204
245
  type: Object
205
246
  },
@@ -224,49 +265,49 @@ const In = () => ({
224
265
  requests: {
225
266
  type: Array
226
267
  }
227
- }), De = D({
268
+ }), we = w({
228
269
  props: {
229
- ...jn()
270
+ ...Wn()
230
271
  },
231
272
  setup: (e, {
232
273
  slots: t,
233
- expose: o
274
+ expose: a
234
275
  }) => {
235
- const a = wt(), {
236
- router: n
237
- } = Dn(), {
238
- elementMap: r,
276
+ const o = xt(), {
277
+ router: r
278
+ } = Lt(), {
279
+ elementMap: n,
239
280
  registerStoreMap: u,
240
281
  expressionMethods: c
241
- } = ee(), l = e.elementMap || r, i = (S) => H(S) ? Ze(l, S) : Te(l, S), C = new mn(), h = (S) => {
242
- C.next(S);
243
- }, v = _(e.storeKeys, (S) => He(u, S)), m = () => ne(v, (S, M) => {
244
- const E = y(u, M);
282
+ } = ee(), d = e.elementMap || n, i = (S) => W(S) ? Ze(d, S) : Te(d, S), P = new vn(), b = (S) => {
283
+ P.next(S);
284
+ }, y = Y(e.storeKeys, (S) => He(u, S)), v = () => ne(y, (S, g) => {
285
+ const D = m(u, g);
245
286
  return {
246
287
  ...S,
247
- [M]: y(a.value, `${E.persist ? "$" : ""}${M}`) || y(u, [M, "initialState"])
288
+ [g]: m(o.value, `${D.persist ? "$" : ""}${g}`) || m(u, [g, "initialState"])
248
289
  };
249
- }, {}), b = m(), d = e.state || Ne({
250
- ...b,
290
+ }, {}), p = v(), l = e.state || Ne({
291
+ ...p,
251
292
  ...e.initState
252
- }), g = {}, P = (S) => {
253
- const M = d[S.type], E = X(S.payload) ? S.payload(M) : S.payload;
254
- if (Ee(M)) {
255
- pt(d[S.type], E);
293
+ }), h = {}, E = (S) => {
294
+ const g = l[S.type], D = X(S.payload) ? S.payload(g) : S.payload;
295
+ if (Ee(g)) {
296
+ Et(l[S.type], D);
256
297
  return;
257
298
  }
258
- d[S.type] = E;
259
- }, f = Ln(), p = {
260
- dispatch: P,
299
+ l[S.type] = D;
300
+ }, f = zn(), C = {
301
+ dispatch: E,
261
302
  dispatchStore: f
262
303
  };
263
304
  ue(() => {
264
- const S = a.pipe(fn(() => m()), yn((M) => {
265
- Z(M, (E, U) => {
266
- const se = y(d, U);
267
- Mn(se, E) || P({
268
- type: U,
269
- payload: E
305
+ const S = o.pipe(hn(() => v()), bn((g) => {
306
+ Z(g, (D, q) => {
307
+ const ce = m(l, q);
308
+ wn(ce, D) || E({
309
+ type: q,
310
+ payload: D
270
311
  });
271
312
  });
272
313
  })).subscribe();
@@ -275,210 +316,210 @@ const In = () => ({
275
316
  };
276
317
  }, []);
277
318
  const {
278
- dispatchRequest: F
279
- } = $e(), j = (() => {
280
- const S = {}, M = ne(e.actors || [], (E, U) => ({
281
- ...E,
282
- [U.name]: U
319
+ dispatchRequest: T
320
+ } = $e(), R = (() => {
321
+ const S = {}, g = ne(e.actors || [], (D, q) => ({
322
+ ...D,
323
+ [q.name]: q
283
324
  }), {});
284
- return Z(e.requests, (E) => {
285
- if (oe(E.actor)) {
286
- const U = y(M, E.actor);
287
- if (!U)
325
+ return Z(e.requests, (D) => {
326
+ if (oe(D.actor)) {
327
+ const q = m(g, D.actor);
328
+ if (!q)
288
329
  return;
289
- E.actor = U;
330
+ D.actor = q;
290
331
  }
291
- !E.actor || (S[E.actor.name] = E, E.action && (S[E.action] = E));
332
+ !D.actor || (S[D.actor.name] = D, D.action && (S[D.action] = D));
292
333
  }), S;
293
- })(), W = (S, ...M) => S.convertParams ? S.convertParams(...M) : S.convertParamsEx ? A(S.convertParamsEx, M) : y(M, 0), w = (S, M) => {
294
- var E;
295
- return S.convertData ? S.convertData(M) : S.convertDataEx ? A(S.convertDataEx, M) : (E = M.res) == null ? void 0 : E.data;
296
- }, x = (S, ...M) => {
297
- const E = y(j, S);
298
- if (!E)
334
+ })(), H = (S, ...g) => S.convertParams ? S.convertParams(...g) : S.convertParamsEx ? L(S.convertParamsEx, g) : m(g, 0), M = (S, g) => {
335
+ var D;
336
+ return S.convertData ? S.convertData(g) : S.convertDataEx ? L(S.convertDataEx, g) : (D = g.res) == null ? void 0 : D.data;
337
+ }, I = (S, ...g) => {
338
+ const D = m(R, S);
339
+ if (!D)
299
340
  return;
300
- const U = W(E, ...M);
301
- E.loadingName && P({
302
- type: E.loadingName,
341
+ const q = H(D, ...g);
342
+ D.loadingName && E({
343
+ type: D.loadingName,
303
344
  payload: !0
304
- }), F(E.actor, U);
345
+ }), T(D.actor, q);
305
346
  };
306
- $n(z(j), {
347
+ Fn(z(R), {
307
348
  onSuccess: (S) => {
308
- var U;
309
- const M = y(j, S.name), E = w(M, S);
310
- M != null && M.stateName && P({
311
- type: M.stateName,
312
- payload: E
313
- }), h({
349
+ var q;
350
+ const g = m(R, S.name), D = M(g, S);
351
+ g != null && g.stateName && E({
352
+ type: g.stateName,
353
+ payload: D
354
+ }), b({
314
355
  type: Me.Success,
315
356
  payload: {
316
357
  actor: S,
317
- requestOpts: M
358
+ requestOpts: g
318
359
  }
319
- }), (U = M.onSuccess) == null || U.call(M, S), M.onSuccessEx && N(M.onSuccessEx, [E]);
360
+ }), (q = g.onSuccess) == null || q.call(g, S), g.onSuccessEx && k(g.onSuccessEx, [D]);
320
361
  },
321
362
  onFailed: (S) => {
322
- var E;
323
- const M = y(j, S.name);
324
- h({
363
+ var D;
364
+ const g = m(R, S.name);
365
+ b({
325
366
  type: Me.Fail,
326
367
  payload: {
327
368
  actor: S,
328
- requestOpts: M
369
+ requestOpts: g
329
370
  }
330
- }), (E = M.onFailed) == null || E.call(M, S), M.onFailedEx && N(M.onFailedEx, [S.err]);
371
+ }), (D = g.onFailed) == null || D.call(g, S), g.onFailedEx && k(g.onFailedEx, [S.err]);
331
372
  },
332
373
  onFinish: (S) => {
333
- const M = y(j, [S.name, "loadingName"]);
334
- M && P({
335
- type: M,
374
+ const g = m(R, [S.name, "loadingName"]);
375
+ g && E({
376
+ type: g,
336
377
  payload: !1
337
378
  });
338
379
  }
339
380
  }, !0);
340
- const A = (S, M) => Ke(S, {
341
- state: d,
342
- data: g,
343
- args: M,
381
+ const L = (S, g) => Ke(S, {
382
+ state: l,
383
+ data: h,
384
+ args: g,
344
385
  expressionMethods: c
345
- }), N = (S, M) => {
386
+ }), k = (S, g) => {
346
387
  if (!S)
347
388
  return;
348
- const E = {
349
- state: d,
350
- data: g,
351
- args: M,
389
+ const D = {
390
+ state: l,
391
+ data: h,
392
+ args: g,
352
393
  expressionMethods: c
353
394
  };
354
- Z(S, (U) => {
355
- if (!H(U) || Q(U) < 2) {
356
- console.log("execute invalid", U);
395
+ Z(S, (q) => {
396
+ if (!W(q) || _(q) < 2) {
397
+ console.log("execute invalid", q);
357
398
  return;
358
399
  }
359
- const [se, T, ...q] = U;
400
+ const [ce, $, ...B] = q;
360
401
  let J;
361
- switch (se) {
402
+ switch (ce) {
362
403
  case "router":
363
- J = y(n, T);
404
+ J = m(r, $);
364
405
  break;
365
406
  case "state":
366
- J = y(p, T);
407
+ J = m(C, $);
367
408
  break;
368
409
  }
369
410
  if (J)
370
411
  try {
371
- const ke = L(q, (Qt) => Ke(Qt, E));
372
- J(...ke);
373
- } catch (ke) {
374
- console.log("execute err", ke);
412
+ const je = F(B, (tn) => Ke(tn, D));
413
+ J(...je);
414
+ } catch (je) {
415
+ console.log("execute err", je);
375
416
  }
376
417
  });
377
418
  };
378
- return Rn({
379
- elementMap: l,
380
- subject$: C,
381
- sendEvent: h,
382
- state: d,
383
- dispatch: P,
384
- data: g,
419
+ return Hn({
420
+ elementMap: d,
421
+ subject$: P,
422
+ sendEvent: b,
423
+ state: l,
424
+ dispatch: E,
425
+ data: h,
385
426
  requests: e.requests,
386
- sendRequest: x,
387
- executeExp: A,
388
- execute: N
389
- }), o({
390
- sendEvent: h,
391
- sendRequest: x
427
+ sendRequest: I,
428
+ executeExp: L,
429
+ execute: k
430
+ }), a({
431
+ sendEvent: b,
432
+ sendRequest: I
392
433
  }), () => {
393
434
  var S;
394
- return s(ae, null, [Q(e.elementConfigs) > 0 && i(e.elementConfigs), (S = t.default) == null ? void 0 : S.call(t)]);
435
+ return s(ae, null, [_(e.elementConfigs) > 0 && i(e.elementConfigs), (S = t.default) == null ? void 0 : S.call(t)]);
395
436
  };
396
437
  }
397
- }), Ft = (e) => e.formValueType || e.valueType || "text", ie = (e) => {
438
+ }), Rt = (e) => e.formValueType || e.valueType || "text", ie = (e) => {
398
439
  var t;
399
440
  return ((t = e.formItemProps) == null ? void 0 : t.name) || e.dataIndex;
400
- }, Je = (e, t) => {
401
- var r;
402
- const o = Ft(t), a = y(e, o);
403
- if (!a)
441
+ }, Qe = (e, t) => {
442
+ var n;
443
+ const a = Rt(t), o = m(e, a);
444
+ if (!o)
404
445
  return null;
405
- const n = ie(t);
406
- return Ce(a, {
407
- key: n,
408
- name: n,
446
+ const r = ie(t);
447
+ return pe(o, {
448
+ key: r,
449
+ name: r,
409
450
  label: t.title,
410
451
  ...t.formItemProps,
411
- fieldProps: $(t.formFieldProps, "slots"),
452
+ fieldProps: A(t.formFieldProps, "slots"),
412
453
  showProps: t.showProps
413
- }, (r = t.formFieldProps) == null ? void 0 : r.slots);
414
- }, Qe = (e, t, o) => {
415
- var r;
416
- const a = t.valueType || "text", n = y(e, a);
417
- return n ? Ce(n, {
418
- ...$(t.formFieldProps, "slots"),
454
+ }, (n = t.formFieldProps) == null ? void 0 : n.slots);
455
+ }, Je = (e, t, a) => {
456
+ var n;
457
+ const o = t.valueType || "text", r = m(e, o);
458
+ return r ? pe(r, {
459
+ ...A(t.formFieldProps, "slots"),
419
460
  showProps: t.showProps,
420
- value: o
421
- }, (r = t.formFieldProps) == null ? void 0 : r.slots) : null;
422
- }, kn = (e) => e && !X(e) && e.elementType, Ze = (e, t) => L(t, (o) => Te(e, o)), Lt = (e, t) => {
423
- var r;
424
- const o = t.elementProps, a = {
461
+ value: a
462
+ }, (n = t.formFieldProps) == null ? void 0 : n.slots) : null;
463
+ }, Gn = (e) => e && !X(e) && e.elementType, Ze = (e, t) => F(t, (a) => Te(e, a)), jt = (e, t) => {
464
+ var n;
465
+ const a = t.elementProps, o = {
425
466
  ...t.elementProps
426
- }, n = o == null ? void 0 : o.class;
427
- return n && (typeof n == "object" ? a.class = at(n) : oe(n) && n.indexOf(":") > 0 && (a.class = at`
428
- ${n}
429
- `)), Z((r = t.highConfig$) == null ? void 0 : r.registerPropsTrans, (u) => {
430
- const c = y(o, u.name);
431
- if (!(!c || pe(c))) {
432
- if (H(c)) {
433
- if (me(c, (l) => pe(l)))
467
+ }, r = a == null ? void 0 : a.class;
468
+ return r && (typeof r == "object" ? o.class = ot(r) : oe(r) && r.indexOf(":") > 0 && (o.class = ot`
469
+ ${r}
470
+ `)), Z((n = t.highConfig$) == null ? void 0 : n.registerPropsTrans, (u) => {
471
+ const c = m(a, u.name);
472
+ if (!(!c || Ce(c))) {
473
+ if (W(c)) {
474
+ if (fe(c, (d) => Ce(d)))
434
475
  return;
435
- ce(a, u.name, Ze(e, c));
476
+ le(o, u.name, Ze(e, c));
436
477
  return;
437
478
  }
438
- !c.elementType || (u.isFun ? ce(a, u.name, (...l) => {
479
+ !c.elementType || (u.isFun ? le(o, u.name, (...d) => {
439
480
  const i = u.needParams ? {
440
481
  ...c.elementProps,
441
- params$: l
482
+ params$: d
442
483
  } : c.elementProps;
443
484
  return Te(e, {
444
485
  ...c,
445
486
  elementProps: i
446
487
  });
447
- }) : ce(a, u.name, Te(e, c)));
488
+ }) : le(o, u.name, Te(e, c)));
448
489
  }
449
- }), a;
450
- }, Rt = (e, t) => {
451
- const o = Q(t.children) > 0 ? Ze(e, t.children) : void 0, a = t.childrenSlotName || "default", n = $(t.slots, o ? a : "");
452
- return Z(z(n), (r) => {
453
- const u = n[r];
454
- kn(u) ? n[r] = (...c) => {
455
- const l = u.needParams ? {
490
+ }), o;
491
+ }, kt = (e, t) => {
492
+ const a = _(t.children) > 0 ? Ze(e, t.children) : void 0, o = t.childrenSlotName || "default", r = A(t.slots, a ? o : "");
493
+ return Z(z(r), (n) => {
494
+ const u = r[n];
495
+ Gn(u) ? r[n] = (...c) => {
496
+ const d = u.needParams ? {
456
497
  ...u.elementProps,
457
498
  params$: c
458
499
  } : u.elementProps;
459
500
  return Te(e, {
460
501
  ...u,
461
- elementProps: l
502
+ elementProps: d
462
503
  });
463
- } : (oe(u) || bt(u)) && (n[r] = () => u);
504
+ } : (oe(u) || gt(u)) && (r[n] = () => u);
464
505
  }), {
465
- [a]: o ? () => o : void 0,
466
- ...n
506
+ [o]: a ? () => a : void 0,
507
+ ...r
467
508
  };
468
509
  }, Te = (e, t) => {
469
- const o = y(e, t.elementType) || t.elementType;
510
+ const a = m(e, t.elementType) || t.elementType;
470
511
  if (t.highConfig$)
471
- return Ce(Bn, {
512
+ return pe(_n, {
472
513
  key: t.elementId,
473
514
  elementMap: e,
474
515
  elementConfig: t
475
516
  });
476
- const a = Rt(e, t), n = Lt(e, t);
477
- return Ce(o, {
517
+ const o = kt(e, t), r = jt(e, t);
518
+ return pe(a, {
478
519
  key: t.elementId,
479
- ...n
480
- }, a);
481
- }, Un = (e) => H(e) ? nn(e) : oe(e) && e.indexOf(".") > 0 ? e.substring(0, e.indexOf(".")) : e, Bn = D({
520
+ ...r
521
+ }, o);
522
+ }, Xn = (e) => W(e) ? on(e) : oe(e) && e.indexOf(".") > 0 ? e.substring(0, e.indexOf(".")) : e, _n = w({
482
523
  props: {
483
524
  elementMap: {
484
525
  type: Object
@@ -488,49 +529,49 @@ const In = () => ({
488
529
  }
489
530
  },
490
531
  setup: (e) => {
491
- var m;
532
+ var v;
492
533
  const {
493
534
  state: t,
494
- sendEvent: o,
495
- execute: a
535
+ sendEvent: a,
536
+ execute: o
496
537
  } = be(), {
497
- elementMap: n,
498
- elementConfig: r
499
- } = e, u = r.highConfig$, c = Lt(n, r);
500
- Z((m = r.highConfig$) == null ? void 0 : m.registerEventList, (b) => {
501
- const d = (...P) => {
502
- const f = `${r.elementId}-${b.name}`;
503
- o({
538
+ elementMap: r,
539
+ elementConfig: n
540
+ } = e, u = n.highConfig$, c = jt(r, n);
541
+ Z((v = n.highConfig$) == null ? void 0 : v.registerEventList, (p) => {
542
+ const l = (...E) => {
543
+ const f = `${n.elementId}-${p.name}`;
544
+ a({
504
545
  type: f,
505
- payload: P
506
- }), a(b.executeList, P);
507
- }, g = Et(b.name, c);
508
- c && Mt(g) && Tt(g, c) && ce(c, g, d);
546
+ payload: E
547
+ }), o(p.executeList, E);
548
+ }, h = Mt(p.name, c);
549
+ c && Tt(h) && It(h, c) && le(c, h, l);
509
550
  });
510
- const l = I(() => {
511
- if (!u.registerStateList || Q(u.registerStateList) <= 0)
551
+ const d = N(() => {
552
+ if (!u.registerStateList || _(u.registerStateList) <= 0)
512
553
  return;
513
- const b = {
554
+ const p = {
514
555
  ...c
515
- }, d = _(u.registerStateList, (P) => !P.target || P.target === "prop"), g = L(d, (P) => {
516
- const f = P.mapName || P.name, p = y(t, P.name);
517
- return ce(b, f, p), Un(f);
556
+ }, l = Y(u.registerStateList, (E) => !E.target || E.target === "prop"), h = F(l, (E) => {
557
+ const f = E.mapName || E.name, C = m(t, E.name);
558
+ return le(p, f, C), Xn(f);
518
559
  });
519
- return V(b, g);
520
- }), i = y(n, r.elementType) || r.elementType, C = Rt(n, r), h = ne(_(u.registerStateList, (b) => b.target === "slot"), (b, d) => ({
521
- ...b,
522
- [d.mapName]: () => y(t, d.name)
523
- }), {}), v = {
524
- ...C,
525
- ...h
560
+ return V(p, h);
561
+ }), i = m(r, n.elementType) || n.elementType, P = kt(r, n), b = ne(Y(u.registerStateList, (p) => p.target === "slot"), (p, l) => ({
562
+ ...p,
563
+ [l.mapName]: () => m(t, l.name)
564
+ }), {}), y = {
565
+ ...P,
566
+ ...b
526
567
  };
527
- return () => y(l.value, "show$") === !1 ? null : Ce(i, {
528
- key: r.elementId,
568
+ return () => m(d.value, "show$") === !1 ? null : pe(i, {
569
+ key: n.elementId,
529
570
  ...c,
530
- ...$(l.value, "show$")
531
- }, v);
571
+ ...A(d.value, "show$")
572
+ }, y);
532
573
  }
533
- }), B = {
574
+ }), U = {
534
575
  TypographyKey: "Typography$",
535
576
  LoadingKey: "Loading$",
536
577
  RowKey: "Row$",
@@ -553,14 +594,14 @@ const In = () => ({
553
594
  ProTableKey: "ProTable$",
554
595
  ProCurdKey: "ProCurd$",
555
596
  ProListKey: "ProList$"
556
- }, Y = () => {
597
+ }, Q = () => {
557
598
  const { elementMap: e } = ee();
558
- return (t) => y(e, t);
599
+ return (t) => m(e, t);
559
600
  };
560
- function qn(e) {
561
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !pe(e);
601
+ function Yn(e) {
602
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Ce(e);
562
603
  }
563
- const Vn = () => ({
604
+ const Qn = () => ({
564
605
  row: {
565
606
  type: Object,
566
607
  default: void 0
@@ -571,69 +612,69 @@ const Vn = () => ({
571
612
  items: {
572
613
  type: Array
573
614
  }
574
- }), Se = D({
615
+ }), Se = w({
575
616
  props: {
576
- ...Vn()
617
+ ...Qn()
577
618
  },
578
619
  setup: (e) => {
579
- const t = Y(), o = t(B.RowKey), a = t(B.ColKey);
620
+ const t = Q(), a = t(U.RowKey), o = t(U.ColKey);
580
621
  return () => {
581
- let n;
582
- return !o || !a ? null : s(o, e.row, qn(n = L(e.items, (r) => s(a, O({
583
- key: r.rowKey
584
- }, e.col, r.col), {
585
- default: () => [r.vNode]
586
- }))) ? n : {
587
- default: () => [n]
622
+ let r;
623
+ return !a || !o ? null : s(a, e.row, Yn(r = F(e.items, (n) => s(o, O({
624
+ key: n.rowKey
625
+ }, e.col, n.col), {
626
+ default: () => [n.vNode]
627
+ }))) ? r : {
628
+ default: () => [r]
588
629
  });
589
630
  };
590
631
  }
591
- }), zn = (e, t, o) => {
632
+ }), Jn = (e, t, a) => {
592
633
  if (t) {
593
- const a = _(z(t), (n) => !t[n]);
594
- return $(e, a);
634
+ const o = Y(z(t), (r) => !t[r]);
635
+ return A(e, o);
595
636
  }
596
- if (o) {
597
- const a = _(z(o), (n) => !o[n](e));
598
- return $(e, a);
637
+ if (a) {
638
+ const o = Y(z(a), (r) => !a[r](e));
639
+ return A(e, o);
599
640
  }
600
641
  return e;
601
- }, jt = (e) => {
642
+ }, Ut = (e) => {
602
643
  if (!!e)
603
- return H(e) ? e : e && oe(e) && e.indexOf(".") > 0 ? rn(e, ".") : [e];
604
- }, Vr = (e, t, o) => !t || !o ? e : L(e, (a) => {
605
- const n = X(o) ? o(a) : y(a, o), r = y(t, n);
606
- return !r || gt(r) || X(r) || !Ee(r) ? a : an(a, r, (u, c) => {
607
- if (H(u) || H(c))
644
+ return W(e) ? e : e && oe(e) && e.indexOf(".") > 0 ? un(e, ".") : [e];
645
+ }, Qr = (e, t, a) => !t || !a ? e : F(e, (o) => {
646
+ const r = X(a) ? a(o) : m(o, a), n = m(t, r);
647
+ return !n || St(n) || X(n) || !Ee(n) ? o : cn(o, n, (u, c) => {
648
+ if (W(u) || W(c))
608
649
  return c;
609
650
  });
610
651
  }), ge = (e, t) => {
611
- const o = ne(
652
+ const a = ne(
612
653
  e,
613
- (a, n) => ({
614
- ...a,
615
- [n]: (...r) => {
654
+ (o, r) => ({
655
+ ...o,
656
+ [r]: (...n) => {
616
657
  var u, c;
617
- return (c = (u = t.value) == null ? void 0 : u[n]) == null ? void 0 : c.call(u, ...r);
658
+ return (c = (u = t.value) == null ? void 0 : u[r]) == null ? void 0 : c.call(u, ...n);
618
659
  }
619
660
  }),
620
661
  {}
621
662
  );
622
- return o.originRef = t, o;
623
- }, zr = (e, t, o) => {
624
- const a = { originRef: e, ...o };
625
- return t && Q(t) > 0 && Z(t, (n) => {
626
- a[n] = (...r) => {
663
+ return a.originRef = t, a;
664
+ }, Jr = (e, t, a) => {
665
+ const o = { originRef: e, ...a };
666
+ return t && _(t) > 0 && Z(t, (r) => {
667
+ o[r] = (...n) => {
627
668
  var u, c;
628
- return (c = (u = e.value) == null ? void 0 : u[n]) == null ? void 0 : c.call(u, ...r);
669
+ return (c = (u = e.value) == null ? void 0 : u[r]) == null ? void 0 : c.call(u, ...n);
629
670
  };
630
- }), a;
631
- }, Wn = (e, t) => y(e, ["extra", t]) || y(e, t), le = (e, t) => {
632
- const o = z(e), a = `${t}-`, n = _(o, (u) => on(u, a)), r = V(e, n);
633
- return un(r, (u, c) => c.replace(a, ""));
634
- }, kt = Symbol("pro-form-list"), Ut = () => ye(kt), Bt = (e) => {
635
- fe(kt, e);
636
- }, Hn = D({
671
+ }), o;
672
+ }, Zn = (e, t) => m(e, ["extra", t]) || m(e, t), se = (e, t) => {
673
+ const a = z(e), o = `${t}-`, r = Y(a, (u) => ln(u, o)), n = V(e, r);
674
+ return sn(n, (u, c) => c.replace(o, ""));
675
+ }, Bt = Symbol("pro-form-list"), qt = () => ye(Bt), Vt = (e) => {
676
+ me(Bt, e);
677
+ }, er = w({
637
678
  props: {
638
679
  pathList: {
639
680
  type: Array
@@ -641,13 +682,13 @@ const Vn = () => ({
641
682
  },
642
683
  setup: (e, {
643
684
  slots: t
644
- }) => (Bt({
685
+ }) => (Vt({
645
686
  pathList: e.pathList
646
687
  }), () => {
647
- var o;
648
- return (o = t.default) == null ? void 0 : o.call(t);
688
+ var a;
689
+ return (a = t.default) == null ? void 0 : a.call(t);
649
690
  })
650
- }), ut = () => ({
691
+ }), ct = () => ({
651
692
  rowKey: {
652
693
  type: String,
653
694
  default: "id"
@@ -672,79 +713,79 @@ const Vn = () => ({
672
713
  renderItemMinus: {
673
714
  type: Function
674
715
  }
675
- }), Wr = D({
716
+ }), Zr = w({
676
717
  props: {
677
- ...ut(),
678
- ...$(Se.props, "items")
718
+ ...ct(),
719
+ ...A(Se.props, "items")
679
720
  },
680
721
  setup: (e, {
681
722
  slots: t
682
723
  }) => {
683
- const a = Y()(B.FormItemKey), {
684
- formState: n,
685
- readonly: r,
724
+ const o = Q()(U.FormItemKey), {
725
+ formState: r,
726
+ readonly: n,
686
727
  formElementMap: u
687
- } = Vt(), c = Ut(), l = jt(e.name), i = c != null && c.pathList ? [...c.pathList, ...l] : l, C = () => {
688
- let d = y(n, i);
689
- H(d) || (d = []), d.push({
728
+ } = Ht(), c = qt(), d = Ut(e.name), i = c != null && c.pathList ? [...c.pathList, ...d] : d, P = () => {
729
+ let l = m(r, i);
730
+ W(l) || (l = []), l.push({
690
731
  [e.rowKey]: new Date().valueOf()
691
- }), ce(n, i, d);
692
- }, h = (d) => {
693
- const g = y(n, i);
694
- Q(g) <= 0 || g.splice(d, 1);
695
- }, v = (d) => {
696
- const g = ie(d);
697
- return g && t[g] ? t[g](d, n) : Je(u, d);
698
- }, m = I(() => e.row ? L(e.columns, (d) => ({
699
- rowKey: ie(d),
700
- vNode: v(d),
701
- col: y(d, ["extra", "col"])
702
- })) : L(e.columns, (d) => v(d))), b = z(ut());
703
- return () => a ? s(a, O({
732
+ }), le(r, i, l);
733
+ }, b = (l) => {
734
+ const h = m(r, i);
735
+ _(h) <= 0 || h.splice(l, 1);
736
+ }, y = (l) => {
737
+ const h = ie(l);
738
+ return h && t[h] ? t[h](l, r) : Qe(u, l);
739
+ }, v = N(() => e.row ? F(e.columns, (l) => ({
740
+ rowKey: ie(l),
741
+ vNode: y(l),
742
+ col: m(l, ["extra", "col"])
743
+ })) : F(e.columns, (l) => y(l))), p = z(ct());
744
+ return () => o ? s(o, O({
704
745
  class: `pro-form-list ${e.inline ? "pro-form-list-inline" : ""}`,
705
746
  name: e.name
706
- }, $(e, b)), {
747
+ }, A(e, p)), {
707
748
  default: () => {
708
- var d, g;
709
- return [L(y(n, i), (P, f) => s(Hn, {
710
- key: P[e.rowKey] || f,
749
+ var l, h;
750
+ return [F(m(r, i), (E, f) => s(er, {
751
+ key: E[e.rowKey] || f,
711
752
  pathList: [...i, f]
712
753
  }, {
713
754
  default: () => {
714
- var p, F, R, j, W, w;
755
+ var C, T, K, R, H, M;
715
756
  return [s("div", {
716
757
  class: "pro-form-list-item"
717
- }, [(p = t.start) == null ? void 0 : p.call(t, {
718
- state: n,
758
+ }, [(C = t.start) == null ? void 0 : C.call(t, {
759
+ state: r,
719
760
  path: i,
720
761
  index: f
721
- }), u && Q(e.columns) > 0 && s(ae, null, [e.row ? s(Se, {
762
+ }), u && _(e.columns) > 0 && s(ae, null, [e.row ? s(Se, {
722
763
  row: e.row,
723
764
  col: e.col,
724
- items: m.value
725
- }, null) : m.value]), (F = t.default) == null ? void 0 : F.call(t), !r.value && s(ae, null, [s("div", {
765
+ items: v.value
766
+ }, null) : v.value]), (T = t.default) == null ? void 0 : T.call(t), !n.value && s(ae, null, [s("div", {
726
767
  class: "pro-form-list-item-add",
727
- onClick: C
728
- }, [((R = t.itemAdd) == null ? void 0 : R.call(t)) || ((j = e.renderItemAdd) == null ? void 0 : j.call(e))]), s("div", {
768
+ onClick: P
769
+ }, [((K = t.itemAdd) == null ? void 0 : K.call(t)) || ((R = e.renderItemAdd) == null ? void 0 : R.call(e))]), s("div", {
729
770
  class: "pro-form-list-item-minus",
730
- onClick: () => h(f)
731
- }, [((W = t.itemMinus) == null ? void 0 : W.call(t)) || ((w = e.renderItemMinus) == null ? void 0 : w.call(e))])])])];
771
+ onClick: () => b(f)
772
+ }, [((H = t.itemMinus) == null ? void 0 : H.call(t)) || ((M = e.renderItemMinus) == null ? void 0 : M.call(e))])])])];
732
773
  }
733
- })), !r.value && s("div", {
774
+ })), !n.value && s("div", {
734
775
  class: "pro-form-list-add",
735
- onClick: C
736
- }, [((d = t.add) == null ? void 0 : d.call(t)) || ((g = e.renderAdd) == null ? void 0 : g.call(e))])];
776
+ onClick: P
777
+ }, [((l = t.add) == null ? void 0 : l.call(t)) || ((h = e.renderAdd) == null ? void 0 : h.call(e))])];
737
778
  }
738
779
  }) : null;
739
780
  }
740
- }), qt = Symbol("pro-form"), Vt = () => ye(qt), Gn = (e, t = 300, o) => St(e, t, o), Xn = (e) => {
741
- fe(qt, e);
781
+ }), zt = Symbol("pro-form"), Ht = () => ye(zt), tr = (e, t = 300, a) => Pt(e, t, a), nr = (e) => {
782
+ me(zt, e);
742
783
  };
743
784
  let te;
744
785
  (function(e) {
745
786
  e.RESET = "RESET", e.SUBMIT = "SUBMIT", e.CONTINUE = "CONTINUE";
746
787
  })(te || (te = {}));
747
- const ct = () => ({
788
+ const lt = () => ({
748
789
  clsName: {
749
790
  type: String,
750
791
  default: "pro-form"
@@ -794,45 +835,45 @@ const ct = () => ({
794
835
  type: Function,
795
836
  default: void 0
796
837
  }
797
- }), Hr = D({
838
+ }), ea = w({
798
839
  inheritAttrs: !1,
799
840
  props: {
800
841
  ...he,
801
- ...ct(),
802
- ...$(Se.props, "items")
842
+ ...lt(),
843
+ ...A(Se.props, "items")
803
844
  },
804
845
  setup: (e, {
805
846
  slots: t,
806
- emit: o,
807
- expose: a,
808
- attrs: n
847
+ emit: a,
848
+ expose: o,
849
+ attrs: r
809
850
  }) => {
810
851
  const {
811
- elementMap: r,
852
+ elementMap: n,
812
853
  formElementMap: u
813
- } = ee(), c = e.elementMap || r, l = e.formElementMap || u, i = e.model || Ne({}), C = Ue(i, e.showStateRules, e.showState), h = Ue(i, e.readonlyStateRules, e.readonlyState), v = Ue(i, e.disableStateRules, e.disableState), m = I(() => e.readonly), b = I(() => {
814
- const T = Le(e.columns, e.columnState, (q) => ie(q));
815
- return e.convertColumn ? It(T, e.convertColumn) : T;
816
- }), d = (...T) => {
854
+ } = ee(), c = e.elementMap || n, d = e.formElementMap || u, i = e.model || Ne({}), P = ke(i, e.showStateRules, e.showState), b = ke(i, e.readonlyStateRules, e.readonlyState), y = ke(i, e.disableStateRules, e.disableState), v = N(() => e.readonly), p = N(() => {
855
+ const $ = Fe(e.columns, e.columnState, e.columnState2);
856
+ return e.convertColumn ? Nt($, e.convertColumn) : $;
857
+ }), l = (...$) => {
817
858
  var J;
818
- ((J = e.onPreFinish) == null ? void 0 : J.call(e, ...T)) !== !0 && o("finish", ...T);
819
- }, g = e.debounceSubmit, P = (typeof g == "object" ? g.wait : g) || 300, f = Gn((...T) => d(...T), P, g == null ? void 0 : g.options), p = (T) => {
820
- const q = zn(T, C, e.showStateRules);
821
- g !== void 0 ? f(q, T) : d(q, T);
822
- }, F = G();
823
- a(ge(e.formMethods || [], F)), Xn({
859
+ ((J = e.onPreFinish) == null ? void 0 : J.call(e, ...$)) !== !0 && a("finish", ...$);
860
+ }, h = e.debounceSubmit, E = (typeof h == "object" ? h.wait : h) || 300, f = tr((...$) => l(...$), E, h == null ? void 0 : h.options), C = ($) => {
861
+ const B = Jn($, P, e.showStateRules);
862
+ h !== void 0 ? f(B, $) : l(B, $);
863
+ }, T = G();
864
+ o(ge(e.formMethods || [], T)), nr({
824
865
  formState: i,
825
- showState: C,
826
- readonlyState: h,
827
- disableState: v,
866
+ showState: P,
867
+ readonlyState: b,
868
+ disableState: y,
828
869
  elementMap: c,
829
- formElementMap: l,
830
- readonly: m,
831
- columns: b,
832
- formRef: F,
870
+ formElementMap: d,
871
+ readonly: v,
872
+ columns: p,
873
+ formRef: T,
833
874
  ...e.provideExtra
834
- }), Bt({});
835
- const R = [{
875
+ }), Vt({});
876
+ const K = [{
836
877
  value: te.RESET,
837
878
  label: "\u91CD\u7F6E"
838
879
  }, {
@@ -841,79 +882,79 @@ const ct = () => ({
841
882
  extraProps: {
842
883
  type: "primary"
843
884
  }
844
- }], j = () => {
845
- var T, q;
846
- if ((T = e.operate) != null && T.onReset) {
885
+ }], R = () => {
886
+ var $, B;
887
+ if (($ = e.operate) != null && $.onReset) {
847
888
  e.operate.onReset({
848
- form: F.value
889
+ form: T.value
849
890
  });
850
891
  return;
851
892
  }
852
- (q = F.value) == null || q.resetFields();
853
- }, W = () => {
854
- var T, q;
855
- if ((T = e.operate) != null && T.onSubmit) {
893
+ (B = T.value) == null || B.resetFields();
894
+ }, H = () => {
895
+ var $, B;
896
+ if (($ = e.operate) != null && $.onSubmit) {
856
897
  e.operate.onSubmit({
857
- form: F.value
898
+ form: T.value
858
899
  });
859
900
  return;
860
901
  }
861
- (q = F.value) == null || q.submit();
862
- }, w = () => {
863
- var T, q;
864
- (q = (T = e.operate) == null ? void 0 : T.onContinue) == null || q.call(T, {
865
- form: F.value
902
+ (B = T.value) == null || B.submit();
903
+ }, M = () => {
904
+ var $, B;
905
+ (B = ($ = e.operate) == null ? void 0 : $.onContinue) == null || B.call($, {
906
+ form: T.value
866
907
  });
867
- }, x = {
868
- [te.RESET]: j,
869
- [te.SUBMIT]: W,
870
- [te.CONTINUE]: w
871
- }, A = I(() => {
872
- const T = e.operate, q = (T == null ? void 0 : T.items) || R;
873
- return L(q, (J) => !J.onClick && !y(T == null ? void 0 : T.itemState, [J.value, "onClick"]) ? {
908
+ }, I = {
909
+ [te.RESET]: R,
910
+ [te.SUBMIT]: H,
911
+ [te.CONTINUE]: M
912
+ }, L = N(() => {
913
+ const $ = e.operate, B = ($ == null ? void 0 : $.items) || K;
914
+ return F(B, (J) => !J.onClick && !m($ == null ? void 0 : $.itemState, [J.value, "onClick"]) ? {
874
915
  ...J,
875
- onClick: y(x, J.value)
916
+ onClick: m(I, J.value)
876
917
  } : J);
877
- }), N = I(() => {
878
- var T;
918
+ }), k = N(() => {
919
+ var $;
879
920
  return {
880
921
  [te.SUBMIT]: {
881
922
  value: te.SUBMIT,
882
923
  loading: e.submitLoading
883
924
  },
884
- ...(T = e.operate) == null ? void 0 : T.itemState
925
+ ...($ = e.operate) == null ? void 0 : $.itemState
885
926
  };
886
- }), S = (T) => {
887
- const q = ie(T);
888
- return q && t[q] ? t[q](T, i) : Je(l, T);
889
- }, M = I(() => e.row ? L(b.value, (T) => ({
890
- rowKey: ie(T),
891
- vNode: S(T),
892
- col: y(T, ["extra", "col"])
893
- })) : L(b.value, (T) => S(T))), E = [...z(ct()), ...z(he)], U = z($(Se.props, "items")), se = y(r, B.FormKey);
894
- return () => se ? s(se, O({
895
- ref: F,
927
+ }), S = ($) => {
928
+ const B = ie($);
929
+ return B && t[B] ? t[B]($, i) : Qe(d, $);
930
+ }, g = N(() => e.row ? F(p.value, ($) => ({
931
+ rowKey: ie($),
932
+ vNode: S($),
933
+ col: m($, ["extra", "col"])
934
+ })) : F(p.value, ($) => S($))), D = [...z(lt()), ...z(he)], q = z(A(Se.props, "items")), ce = m(n, U.FormKey);
935
+ return () => ce ? s(ce, O({
936
+ ref: T,
896
937
  class: e.clsName
897
- }, $(n, "onFinish"), $(e, ...E, ...U, "onFinish", "operate"), {
938
+ }, A(r, "onFinish"), A(e, ...D, ...q, "onFinish", "operate"), {
898
939
  model: i,
899
- onFinish: p
940
+ onFinish: C
900
941
  }), {
901
942
  default: () => {
902
- var T, q, J;
903
- return [(T = t.start) == null ? void 0 : T.call(t), l && Q(b.value) > 0 && s(ae, null, [e.row ? s(Se, {
943
+ var $, B, J;
944
+ return [($ = t.start) == null ? void 0 : $.call(t), d && _(p.value) > 0 && s(ae, null, [e.row ? s(Se, {
904
945
  row: e.row,
905
946
  col: e.col,
906
- items: M.value
907
- }, null) : M.value]), (q = t.default) == null ? void 0 : q.call(t), e.operate && s(Gt, O({
947
+ items: g.value
948
+ }, null) : g.value]), (B = t.default) == null ? void 0 : B.call(t), e.operate && s(Yt, O({
908
949
  class: `${e.clsName}-operate`
909
- }, $(e.operate, "items", "itemState", "onReset", "onSubmit", "onContinue"), {
910
- items: A.value,
911
- itemState: N.value
950
+ }, A(e.operate, "items", "itemState", "onReset", "onSubmit", "onContinue"), {
951
+ items: L.value,
952
+ itemState: k.value
912
953
  }), null), (J = t.end) == null ? void 0 : J.call(t)];
913
954
  }
914
955
  }) : null;
915
956
  }
916
- }), Gr = {
957
+ }), ta = {
917
958
  text: "\u8BF7\u8F93\u5165",
918
959
  digit: "\u8BF7\u8F93\u5165",
919
960
  select: "\u8BF7\u9009\u62E9",
@@ -925,18 +966,18 @@ const ct = () => ({
925
966
  date: "\u8BF7\u9009\u62E9",
926
967
  time: "\u8BF7\u9009\u62E9"
927
968
  };
928
- let Fe;
969
+ let Le;
929
970
  (function(e) {
930
971
  e.AUTO = "AUTO", e.MANUAL = "MANUAL";
931
- })(Fe || (Fe = {}));
932
- const lt = () => ({
972
+ })(Le || (Le = {}));
973
+ const st = () => ({
933
974
  initEmit: {
934
975
  type: Boolean,
935
976
  default: !0
936
977
  },
937
978
  searchMode: {
938
979
  type: String,
939
- default: Fe.AUTO
980
+ default: Le.AUTO
940
981
  },
941
982
  debounceKeys: {
942
983
  type: Array
@@ -949,9 +990,9 @@ const lt = () => ({
949
990
  type: Number,
950
991
  default: 800
951
992
  }
952
- }), Xr = D({
993
+ }), na = w({
953
994
  props: {
954
- ...lt(),
995
+ ...st(),
955
996
  needRules: {
956
997
  type: Boolean,
957
998
  default: !1
@@ -959,46 +1000,46 @@ const lt = () => ({
959
1000
  },
960
1001
  setup: (e, {
961
1002
  slots: t,
962
- expose: o
1003
+ expose: a
963
1004
  }) => {
964
- const n = Y()(B.ProFormKey), r = e.model || Ne({}), u = new Set(e.debounceTypes), c = L(_(e.columns, (d) => {
965
- const g = Ft(d);
966
- return u.has(g);
967
- }), (d) => ie(d)), l = I(() => L(e.columns, (d) => ({
968
- ...d,
969
- formItemProps: $(d.formItemProps, "required")
970
- }))), i = G(), C = e.formMethods || [];
971
- o(ge(C, i));
972
- const h = () => {
973
- var d;
974
- (d = i.value) == null || d.submit();
975
- }, v = St(() => {
976
- h();
1005
+ const r = Q()(U.ProFormKey), n = e.model || Ne({}), u = new Set(e.debounceTypes), c = F(Y(e.columns, (l) => {
1006
+ const h = Rt(l);
1007
+ return u.has(h);
1008
+ }), (l) => ie(l)), d = N(() => F(e.columns, (l) => ({
1009
+ ...l,
1010
+ formItemProps: A(l.formItemProps, "required")
1011
+ }))), i = G(), P = e.formMethods || [];
1012
+ a(ge(P, i));
1013
+ const b = () => {
1014
+ var l;
1015
+ (l = i.value) == null || l.submit();
1016
+ }, y = Pt(() => {
1017
+ b();
977
1018
  }, e.debounceTime);
978
1019
  ue(() => {
979
- e.initEmit && h();
1020
+ e.initEmit && b();
980
1021
  }, []);
981
- const m = (d, g, P) => me(P, (f) => y(d, f) !== y(g, f));
982
- Nt((d, g) => {
983
- if (e.searchMode !== Fe.AUTO)
1022
+ const v = (l, h, E) => fe(E, (f) => m(l, f) !== m(h, f));
1023
+ $t((l, h) => {
1024
+ if (e.searchMode !== Le.AUTO)
984
1025
  return;
985
- const P = Q(e.debounceKeys) > 0 ? e.debounceKeys : c;
986
- if (Q(P) > 0 && m(d, g, P)) {
987
- v();
1026
+ const E = _(e.debounceKeys) > 0 ? e.debounceKeys : c;
1027
+ if (_(E) > 0 && v(l, h, E)) {
1028
+ y();
988
1029
  return;
989
1030
  }
990
- h();
991
- }, () => cn(r));
992
- const b = z(lt());
993
- return () => n ? s(n, O({
1031
+ b();
1032
+ }, () => dn(n));
1033
+ const p = z(st());
1034
+ return () => r ? s(r, O({
994
1035
  ref: i,
995
1036
  class: "pro-search-form"
996
- }, $(e, b, "columns"), {
997
- columns: l.value,
998
- model: r
1037
+ }, A(e, p, "columns"), {
1038
+ columns: d.value,
1039
+ model: n
999
1040
  }), t) : null;
1000
1041
  }
1001
- }), st = () => ({
1042
+ }), it = () => ({
1002
1043
  readonly: {
1003
1044
  type: Boolean,
1004
1045
  default: void 0
@@ -1012,113 +1053,116 @@ const lt = () => ({
1012
1053
  slots: {
1013
1054
  type: Object
1014
1055
  }
1015
- }), _r = (e, t) => ({
1016
- InputComp: o,
1017
- valueType: a,
1018
- name: n
1019
- }) => D({
1020
- name: n,
1056
+ }), ra = (e, t) => ({
1057
+ InputComp: a,
1058
+ valueType: o,
1059
+ name: r
1060
+ }) => w({
1061
+ name: r,
1021
1062
  props: {
1022
1063
  ...e.props,
1023
- ...st()
1064
+ ...it()
1024
1065
  },
1025
- setup: (r, {
1066
+ setup: (n, {
1026
1067
  slots: u
1027
1068
  }) => {
1028
1069
  const {
1029
1070
  formExtraMap: c
1030
1071
  } = ee(), {
1031
- formState: l,
1072
+ formState: d,
1032
1073
  showState: i,
1033
- readonlyState: C,
1034
- disableState: h,
1035
- readonly: v,
1036
- elementMap: m
1037
- } = Vt(), b = Ut(), d = I(() => ve(r.readonly) ? r.readonly : ve(C[r.name]) ? C[r.name] : v.value), g = () => `${y(c == null ? void 0 : c.rulePrefixMap, a) || "\u8BF7\u8F93\u5165"}${r.label || ""}`, P = I(() => c != null && c.rulePrefixMap ? r.required === !0 && !r.rules ? [{
1074
+ readonlyState: P,
1075
+ disableState: b,
1076
+ readonly: y,
1077
+ elementMap: v
1078
+ } = Ht(), p = qt(), l = N(() => ve(n.readonly) ? n.readonly : ve(P[n.name]) ? P[n.name] : y.value), h = () => `${m(c == null ? void 0 : c.rulePrefixMap, o) || "\u8BF7\u8F93\u5165"}${n.label || ""}`, E = N(() => c != null && c.rulePrefixMap ? n.required === !0 && !n.rules ? [{
1038
1079
  required: !0,
1039
- message: g()
1040
- }] : r.rules ? L(r.rules, (j) => (j.required && !j.message && (j.message = g()), j)) : r.rules : r.rules), f = jt(r.name), p = b != null && b.pathList ? [...b.pathList, ...f] : f, F = (j) => {
1041
- ce(l, p, j);
1042
- }, R = z(st());
1080
+ message: h()
1081
+ }] : n.rules ? F(n.rules, (R) => (R.required && !R.message && (R.message = h()), R)) : n.rules : n.rules), f = Ut(n.name), C = p != null && p.pathList ? [...p.pathList, ...f] : f, T = (R) => {
1082
+ le(d, C, R);
1083
+ }, K = z(it());
1043
1084
  return () => {
1044
- const j = y(i, p);
1045
- if (ve(j) && !j)
1085
+ const R = m(i, C);
1086
+ if (ve(R) && !R)
1046
1087
  return null;
1047
- const W = y(l, p), w = y(m, a);
1048
- return s(e, O($(r, ...R, "name", "rules", "slots"), {
1049
- name: p,
1050
- rules: P.value
1088
+ const H = m(d, C), M = m(v, o);
1089
+ return s(e, O(A(n, ...K, "name", "rules", "slots"), {
1090
+ name: C,
1091
+ rules: E.value
1051
1092
  }), {
1052
- default: () => [d.value ? s(ae, null, [w ? s(w, O({
1053
- value: W
1054
- }, r.fieldProps, {
1055
- showProps: r.showProps
1056
- }), u) : s("span", null, [W])]) : s(o, O(t(W, F, y(h, p)), r.fieldProps), u)],
1057
- ...r.slots
1093
+ default: () => [l.value ? s(ae, null, [M ? s(M, O({
1094
+ value: H
1095
+ }, n.fieldProps, {
1096
+ showProps: n.showProps
1097
+ }), u) : s("span", null, [H])]) : s(a, O(t(H, T, m(b, C)), n.fieldProps), u)],
1098
+ ...n.slots
1058
1099
  });
1059
1100
  };
1060
1101
  }
1061
- }), zt = Tn("access", void 0, !0), _n = () => {
1062
- const [e, t] = zt();
1102
+ }), Wt = Dn("access", void 0, !0), rr = () => {
1103
+ const [e, t] = Wt();
1063
1104
  return { access: e, setAccess: t, delAccess: () => {
1064
1105
  t(void 0);
1065
1106
  } };
1066
- }, Yr = () => {
1067
- const [e, t] = zt();
1107
+ }, aa = () => {
1108
+ const [e, t] = Wt();
1068
1109
  return [e, t, () => {
1069
1110
  t(void 0);
1070
1111
  }];
1071
- }, Wt = Symbol("logon-user"), Yn = () => ye(Wt), Jr = D((e, { slots: t }) => {
1072
- const [o, a] = nt(), [n, r] = nt();
1073
- return fe(Wt, { user: o, setUser: a, per: n, setPer: r, opts: {} }), () => {
1112
+ }, Gt = Symbol("logon-user"), ar = () => ye(Gt), oa = w((e, { slots: t }) => {
1113
+ const [a, o] = nt(), [r, n] = nt();
1114
+ return me(Gt, { user: a, setUser: o, per: r, setPer: n, opts: {} }), () => {
1074
1115
  var c;
1075
1116
  return (c = t.default) == null ? void 0 : c.call(t);
1076
1117
  };
1077
- }), Qr = D((e, { slots: t, emit: o }) => {
1078
- const { access: a } = _n(), n = I(() => a && a.token);
1118
+ }), ua = w((e, { slots: t, emit: a }) => {
1119
+ const { access: o } = rr(), r = N(() => o && o.token);
1079
1120
  return ue(() => {
1080
- n.value || o("toLogin");
1081
- }, n), () => {
1082
- var r;
1083
- return n.value ? (r = t.default) == null ? void 0 : r.call(t) : null;
1121
+ r.value || a("toLogin");
1122
+ }, r), () => {
1123
+ var n;
1124
+ return r.value ? (n = t.default) == null ? void 0 : n.call(t) : null;
1084
1125
  };
1085
- }), Zr = {
1126
+ }), ca = {
1086
1127
  Add: "add",
1087
1128
  Edit: "edit",
1088
1129
  Delete: "delete"
1089
- }, Jn = (e, t) => !e || !t ? !1 : H(t) ? me(t, (o) => e[o]) : e[t], Ht = () => {
1090
- const { per: e } = Yn() || { per: { menus: [], buttonMap: {} } }, t = Re();
1091
- return (o, a) => {
1092
- if (!o)
1130
+ }, or = (e, t) => !e || !t ? !1 : W(t) ? fe(t, (a) => e[a]) : e[t], Xt = () => {
1131
+ const { per: e } = ar() || { per: { menus: [], buttonMap: {} } }, t = Xe();
1132
+ return (a, o) => {
1133
+ if (!a)
1093
1134
  return !1;
1094
- let n = o;
1095
- if (a != null && a.suffix) {
1096
- const r = t.name ? t.name.toString() : "", u = (a == null ? void 0 : a.splitStr) || "_";
1097
- n = H(n) ? L(n, (c) => `${r}${u}${c}`) : `${r}${u}${n}`;
1135
+ let r = a;
1136
+ if (o != null && o.suffix) {
1137
+ const n = t.name ? t.name.toString() : "", u = (o == null ? void 0 : o.splitStr) || "_";
1138
+ r = W(r) ? F(r, (c) => `${n}${u}${c}`) : `${n}${u}${r}`;
1098
1139
  }
1099
- return Jn(e.buttonMap, n);
1140
+ return or(e.buttonMap, r);
1100
1141
  };
1101
- }, Qn = () => ({
1142
+ }, _t = () => {
1143
+ const e = Xt();
1144
+ return (t, a, o) => t ? e(t) : a ? e(a, { suffix: !0, splitStr: o }) : !0;
1145
+ }, ur = () => ({
1102
1146
  suffix: { type: [String, Array] },
1103
1147
  value: { type: [String, Array] },
1104
1148
  splitStr: { type: String }
1105
- }), ea = D({
1149
+ }), la = w({
1106
1150
  inheritAttrs: !1,
1107
1151
  props: {
1108
- ...Qn()
1152
+ ...ur()
1109
1153
  },
1110
1154
  setup: (e, { slots: t }) => {
1111
- const o = Ht(), a = I(() => e.value ? o(e.value) : e.suffix ? o(e.suffix, { suffix: !0, splitStr: e.splitStr }) : !1);
1155
+ const a = Xt(), o = N(() => e.value ? a(e.value) : e.suffix ? a(e.suffix, { suffix: !0, splitStr: e.splitStr }) : !1);
1112
1156
  return () => {
1113
- var n;
1114
- return a.value ? (n = t.default) == null ? void 0 : n.call(t) : null;
1157
+ var r;
1158
+ return o.value ? (r = t.default) == null ? void 0 : r.call(t) : null;
1115
1159
  };
1116
1160
  }
1117
1161
  });
1118
- function Zn(e) {
1119
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !pe(e);
1162
+ function cr(e) {
1163
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Ce(e);
1120
1164
  }
1121
- const er = () => ({
1165
+ const lr = () => ({
1122
1166
  clsName: {
1123
1167
  type: String,
1124
1168
  default: "pro-operate"
@@ -1131,54 +1175,48 @@ const er = () => ({
1131
1175
  },
1132
1176
  elementKey: {
1133
1177
  type: String,
1134
- default: B.ButtonKey
1178
+ default: U.ButtonKey
1135
1179
  },
1136
1180
  splitStr: {
1137
1181
  type: String
1138
1182
  }
1139
- }), Gt = D({
1183
+ }), Yt = w({
1140
1184
  props: {
1141
- ...er()
1185
+ ...lr()
1142
1186
  },
1143
1187
  setup: (e, {
1144
1188
  slots: t
1145
1189
  }) => {
1146
- const o = Ht(), a = (l) => {
1147
- let i = !0;
1148
- return l.per ? i = o(l.per) : l.perSuffix && (i = o(l.perSuffix, {
1149
- suffix: !0,
1150
- splitStr: e.splitStr
1151
- })), i;
1152
- }, n = I(() => {
1153
- const l = _(e.items, (i) => a(i) ? X(i.show) ? i.show() : ve(i.show) ? i.show : !0 : !1);
1154
- return L(l, (i) => He(e.itemState, i.value) ? {
1190
+ const a = _t(), o = N(() => {
1191
+ const c = Y(e.items, (i) => a(i.per, i.perSuffix, e.splitStr) ? X(i.show) ? i.show() : ve(i.show) ? i.show : !0 : !1), d = F(c, (i) => He(e.itemState, i.value) ? {
1155
1192
  ...i,
1156
- ...y(e.itemState, i.value)
1157
- } : i), Pt(l, (i) => i.sort);
1158
- }), r = (l) => {
1159
- var i;
1160
- (i = l.onClick) == null || i.call(l, l.value);
1161
- }, u = Y(), c = e.elementKey ? u(e.elementKey) : void 0;
1193
+ ...m(e.itemState, i.value)
1194
+ } : i);
1195
+ return pt(d, (i) => i.sort);
1196
+ }), r = (c) => {
1197
+ var d;
1198
+ (d = c.onClick) == null || d.call(c, c.value);
1199
+ }, n = Q(), u = e.elementKey ? n(e.elementKey) : void 0;
1162
1200
  return () => s("div", {
1163
1201
  class: e.clsName
1164
- }, [L(n.value, (l) => {
1165
- const i = X(l.disabled) ? l.disabled() : l.disabled, C = X(l.loading) ? l.loading() : l.loading, h = X(l.label) ? l.label() : l.label, v = X(l.extraProps) ? l.extraProps() : l.extraProps, m = {
1166
- ...$(l, "show", "disabled", "element"),
1167
- disabled: i
1202
+ }, [F(o.value, (c) => {
1203
+ const d = X(c.disabled) ? c.disabled() : c.disabled, i = X(c.loading) ? c.loading() : c.loading, P = X(c.label) ? c.label() : c.label, b = X(c.extraProps) ? c.extraProps() : c.extraProps, y = {
1204
+ ...A(c, "show", "disabled", "element"),
1205
+ disabled: d
1168
1206
  };
1169
- return l.element && X(l.element) ? l.element(m) : t[l.value] ? t[l.value](m) : c ? s(c, O({
1170
- disabled: i,
1171
- loading: C,
1172
- onClick: () => r(l)
1173
- }, v), Zn(h) ? h : {
1174
- default: () => [h]
1207
+ return c.element && X(c.element) ? c.element(y) : t[c.value] ? t[c.value](y) : u ? s(u, O({
1208
+ disabled: d,
1209
+ loading: i,
1210
+ onClick: () => r(c)
1211
+ }, b), cr(P) ? P : {
1212
+ default: () => [P]
1175
1213
  }) : s("div", {
1176
1214
  class: `${e.clsName}-item`,
1177
- onClick: () => r(l)
1178
- }, [h]);
1215
+ onClick: () => r(c)
1216
+ }, [P]);
1179
1217
  })]);
1180
1218
  }
1181
- }), tr = () => ({
1219
+ }), sr = () => ({
1182
1220
  clsName: {
1183
1221
  type: String,
1184
1222
  default: "pro-table-toolbar-column"
@@ -1199,105 +1237,105 @@ const er = () => ({
1199
1237
  type: Function,
1200
1238
  default: () => "\u5217\u8BBE\u7F6E"
1201
1239
  }
1202
- }), nr = D({
1240
+ }), ir = w({
1203
1241
  props: {
1204
- ...tr()
1242
+ ...sr()
1205
1243
  },
1206
1244
  setup: (e, {
1207
1245
  slots: t
1208
1246
  }) => {
1209
- const o = Y(), a = o(B.PopoverKey), n = o(B.CheckboxKey), {
1210
- originColumns: r,
1247
+ const a = Q(), o = a(U.PopoverKey), r = a(U.CheckboxKey), {
1248
+ originColumns: n,
1211
1249
  selectIdsRef: u
1212
- } = rr(), [c, l] = vn();
1250
+ } = dr(), [c, d] = pn();
1213
1251
  let i = {};
1214
- const C = (f) => {
1252
+ const P = (f) => {
1215
1253
  i[f] = !1;
1216
- }, h = () => {
1254
+ }, b = () => {
1217
1255
  Z(u.value, (f) => {
1218
1256
  i[f] = !0;
1219
1257
  });
1220
- }, v = I(() => ne(u.value, (f, p) => ({
1258
+ }, y = N(() => ne(u.value, (f, C) => ({
1221
1259
  ...f,
1222
- [p]: !0
1223
- }), {})), m = (f) => Wn(f, e.signName);
1260
+ [C]: !0
1261
+ }), {})), v = (f) => Zn(f, e.signName);
1224
1262
  ue(() => {
1225
- u.value = L(_(r.value, (f) => {
1226
- var p;
1227
- return e.useSelectedStatus && He(i, f.dataIndex) ? i[f.dataIndex] : ((p = m(f)) == null ? void 0 : p.initShow) !== !1;
1263
+ u.value = F(Y(n.value, (f) => {
1264
+ var C;
1265
+ return e.useSelectedStatus && He(i, f.dataIndex) ? i[f.dataIndex] : ((C = v(f)) == null ? void 0 : C.initShow) !== !1;
1228
1266
  }), (f) => f.dataIndex);
1229
- }, r), Nt(() => {
1267
+ }, n), $t(() => {
1230
1268
  var f;
1231
- l(), h(), (f = e.onColumnSelectChange) == null || f.call(e, u.value);
1269
+ d(), b(), (f = e.onColumnSelectChange) == null || f.call(e, u.value);
1232
1270
  }, u);
1233
- const b = I(() => {
1234
- const f = ln(r.value, (F) => {
1235
- var R;
1236
- return (R = m(F)) != null && R.disabled ? !0 : y(v.value, F.dataIndex);
1237
- }), p = me(r.value, (F) => {
1238
- var R;
1239
- return (R = m(F)) != null && R.disabled ? !0 : y(v.value, F.dataIndex);
1271
+ const p = N(() => {
1272
+ const f = fn(n.value, (T) => {
1273
+ var K;
1274
+ return (K = v(T)) != null && K.disabled ? !0 : m(y.value, T.dataIndex);
1275
+ }), C = fe(n.value, (T) => {
1276
+ var K;
1277
+ return (K = v(T)) != null && K.disabled ? !0 : m(y.value, T.dataIndex);
1240
1278
  });
1241
1279
  return {
1242
1280
  checked: f,
1243
- indeterminate: f ? !1 : p
1281
+ indeterminate: f ? !1 : C
1244
1282
  };
1245
- }), d = (f) => {
1246
- var F;
1247
- (Ee(f) ? (F = f.target) == null ? void 0 : F.checked : f) ? u.value = L(r.value, (R) => R.dataIndex) : u.value = L(_(r.value, (R) => {
1248
- var j;
1249
- return (j = m(R)) != null && j.disabled ? !0 : (C(R.dataIndex), !1);
1250
- }), (R) => R.dataIndex);
1251
- }, g = () => {
1252
- u.value = L(_(r.value, (f) => {
1253
- var p;
1254
- return ((p = m(f)) == null ? void 0 : p.initShow) === !1 ? (C(f.dataIndex), !1) : !0;
1283
+ }), l = (f) => {
1284
+ var T;
1285
+ (Ee(f) ? (T = f.target) == null ? void 0 : T.checked : f) ? u.value = F(n.value, (K) => K.dataIndex) : u.value = F(Y(n.value, (K) => {
1286
+ var R;
1287
+ return (R = v(K)) != null && R.disabled ? !0 : (P(K.dataIndex), !1);
1288
+ }), (K) => K.dataIndex);
1289
+ }, h = () => {
1290
+ u.value = F(Y(n.value, (f) => {
1291
+ var C;
1292
+ return ((C = v(f)) == null ? void 0 : C.initShow) === !1 ? (P(f.dataIndex), !1) : !0;
1255
1293
  }), (f) => f.dataIndex);
1256
- }, P = (f, p) => {
1257
- var R;
1258
- (Ee(p) ? (R = p.target) == null ? void 0 : R.checked : p) ? u.value = [...u.value, f.dataIndex] : u.value = _(u.value, (j) => f.dataIndex === j ? (C(f.dataIndex), !1) : !0);
1294
+ }, E = (f, C) => {
1295
+ var K;
1296
+ (Ee(C) ? (K = C.target) == null ? void 0 : K.checked : C) ? u.value = [...u.value, f.dataIndex] : u.value = Y(u.value, (R) => f.dataIndex === R ? (P(f.dataIndex), !1) : !0);
1259
1297
  };
1260
- return () => a ? s(a, O({
1298
+ return () => o ? s(o, O({
1261
1299
  trigger: "click"
1262
1300
  }, e.popoverProps), {
1263
1301
  default: () => {
1264
- var f, p;
1265
- return [((f = t.default) == null ? void 0 : f.call(t)) || ((p = e.renderDom) == null ? void 0 : p.call(e))];
1302
+ var f, C;
1303
+ return [((f = t.default) == null ? void 0 : f.call(t)) || ((C = e.renderDom) == null ? void 0 : C.call(e))];
1266
1304
  },
1267
1305
  content: () => s("div", {
1268
1306
  class: `${e.clsName}`
1269
1307
  }, [s("div", {
1270
1308
  class: `${e.clsName}-header`
1271
- }, [s(n, {
1309
+ }, [s(r, {
1272
1310
  key: c.value,
1273
- checked: b.value.checked,
1274
- indeterminate: b.value.indeterminate,
1275
- onChange: d
1311
+ checked: p.value.checked,
1312
+ indeterminate: p.value.indeterminate,
1313
+ onChange: l
1276
1314
  }, {
1277
1315
  default: () => [tt("\u5217\u5C55\u793A")]
1278
1316
  }), s("a", {
1279
- onClick: g
1317
+ onClick: h
1280
1318
  }, [tt("\u91CD\u7F6E")])]), s("div", {
1281
1319
  key: c.value,
1282
1320
  class: `${e.clsName}-list`
1283
- }, [L(r.value, (f) => {
1284
- const p = m(f), F = y(v.value, f.dataIndex, !1);
1285
- return s(n, {
1286
- checked: F,
1287
- disabled: p == null ? void 0 : p.disabled,
1288
- onChange: (R) => {
1289
- P(f, R);
1321
+ }, [F(n.value, (f) => {
1322
+ const C = v(f), T = m(y.value, f.dataIndex, !1);
1323
+ return s(r, {
1324
+ checked: T,
1325
+ disabled: C == null ? void 0 : C.disabled,
1326
+ onChange: (K) => {
1327
+ E(f, K);
1290
1328
  }
1291
1329
  }, {
1292
1330
  default: () => [f.title]
1293
1331
  });
1294
1332
  })])]),
1295
- ...$(t, "default")
1333
+ ...A(t, "default")
1296
1334
  }) : null;
1297
1335
  }
1298
- }), Xt = Symbol("pro-table"), rr = () => ye(Xt), ar = (e) => {
1299
- fe(Xt, e);
1300
- }, it = () => ({
1336
+ }), Qt = Symbol("pro-table"), dr = () => ye(Qt), fr = (e) => {
1337
+ me(Qt, e);
1338
+ }, dt = () => ({
1301
1339
  clsName: {
1302
1340
  type: String,
1303
1341
  default: "pro-table"
@@ -1332,147 +1370,147 @@ const er = () => ({
1332
1370
  tableMethods: {
1333
1371
  type: Array
1334
1372
  }
1335
- }), ta = D({
1373
+ }), sa = w({
1336
1374
  inheritAttrs: !1,
1337
1375
  props: {
1338
1376
  ...he,
1339
- ...it()
1377
+ ...dt()
1340
1378
  },
1341
1379
  setup: (e, {
1342
1380
  slots: t,
1343
- expose: o,
1344
- attrs: a
1381
+ expose: a,
1382
+ attrs: o
1345
1383
  }) => {
1346
1384
  const {
1347
- elementMap: n
1348
- } = ee(), r = e.elementMap || n, u = y(n, B.TableKey), c = () => ({
1385
+ elementMap: r
1386
+ } = ee(), n = e.elementMap || r, u = m(r, U.TableKey), c = () => ({
1349
1387
  title: "\u5E8F\u53F7",
1350
1388
  dataIndex: "serialNumber",
1351
1389
  width: 80,
1352
1390
  ...e.column,
1353
1391
  ...ve(e.serialNumber) ? void 0 : e.serialNumber,
1354
1392
  customRender: ({
1355
- index: x
1393
+ index: M
1356
1394
  }) => {
1357
- var A, N;
1358
- return ((A = e.paginationState) == null ? void 0 : A.page) && ((N = e.paginationState) == null ? void 0 : N.pageSize) ? e.paginationState.pageSize * (e.paginationState.page - 1) + x + 1 : x + 1;
1395
+ var I, L;
1396
+ return ((I = e.paginationState) == null ? void 0 : I.page) && ((L = e.paginationState) == null ? void 0 : L.pageSize) ? e.paginationState.pageSize * (e.paginationState.page - 1) + M + 1 : M + 1;
1359
1397
  }
1360
- }), l = (x, A) => {
1361
- var N;
1362
- if (e.operateItemClickMap && e.operateItemClickMap[A.value]) {
1363
- e.operateItemClickMap[A.value](x, A);
1398
+ }), d = (M, I) => {
1399
+ var L;
1400
+ if (e.operateItemClickMap && e.operateItemClickMap[I.value]) {
1401
+ e.operateItemClickMap[I.value](M, I);
1364
1402
  return;
1365
1403
  }
1366
- (N = A.onClick) == null || N.call(A, x);
1367
- }, i = le(t, "operate"), C = () => {
1368
- const x = e.operate, A = L(x.items, (N) => ({
1369
- ...y(e.operateItemState, N.value),
1370
- ...N,
1371
- ...y(x.itemState, N.value)
1404
+ (L = I.onClick) == null || L.call(I, M);
1405
+ }, i = se(t, "operate"), P = () => {
1406
+ const M = e.operate, I = F(M.items, (L) => ({
1407
+ ...m(e.operateItemState, L.value),
1408
+ ...L,
1409
+ ...m(M.itemState, L.value)
1372
1410
  }));
1373
1411
  return {
1374
1412
  ...e.column,
1375
1413
  title: "\u64CD\u4F5C",
1376
1414
  dataIndex: "operate",
1377
1415
  fixed: "right",
1378
- ...x.column,
1416
+ ...M.column,
1379
1417
  customRender: ({
1380
- record: N
1418
+ record: L
1381
1419
  }) => {
1382
- const S = L(A, (E) => ({
1383
- ...E,
1384
- show: X(E.show) ? E.show(N) : E.show,
1385
- disabled: X(E.disabled) ? E.disabled(N) : E.disabled,
1386
- loading: X(E.loading) ? E.loading(N) : E.loading,
1387
- extraProps: X(E.extraProps) ? E.extraProps(N) : E.extraProps,
1388
- element: X(E.element) ? () => E.element(N, E) : E.element,
1389
- onClick: () => l(N, E)
1390
- })), M = ne(z(i), (E, U) => ({
1391
- ...E,
1392
- [U]: (se) => {
1393
- var T;
1394
- return (T = i[U]) == null ? void 0 : T.call(i, N, se);
1420
+ const k = F(I, (g) => ({
1421
+ ...g,
1422
+ show: X(g.show) ? g.show(L) : g.show,
1423
+ disabled: X(g.disabled) ? g.disabled(L) : g.disabled,
1424
+ loading: X(g.loading) ? g.loading(L) : g.loading,
1425
+ extraProps: X(g.extraProps) ? g.extraProps(L) : g.extraProps,
1426
+ element: X(g.element) ? () => g.element(L, g) : g.element,
1427
+ onClick: () => d(L, g)
1428
+ })), S = ne(z(i), (g, D) => ({
1429
+ ...g,
1430
+ [D]: (q) => {
1431
+ var ce;
1432
+ return (ce = i[D]) == null ? void 0 : ce.call(i, L, q);
1395
1433
  }
1396
1434
  }), {});
1397
- return s(Gt, {
1435
+ return s(Yt, {
1398
1436
  class: `${e.clsName}-operate`,
1399
- items: S,
1400
- elementKey: x.elementKey || B.TableOperateKey
1401
- }, M);
1437
+ items: k,
1438
+ elementKey: M.elementKey || U.TableOperateKey
1439
+ }, S);
1402
1440
  }
1403
1441
  };
1404
- }, h = G([]), v = I(() => {
1405
- var x;
1406
- return !!((x = e.toolbar) != null && x.columnSetting);
1407
- }), m = Zt(e, "columns"), b = I(() => {
1408
- if (!v.value)
1442
+ }, b = G([]), y = N(() => {
1443
+ var M;
1444
+ return !!((M = e.toolbar) != null && M.columnSetting);
1445
+ }), v = nn(e, "columns");
1446
+ N(() => {
1447
+ if (!y.value)
1409
1448
  return e.columns;
1410
- const x = ne(h.value, (A, N) => ({
1411
- ...A,
1412
- [N]: !0
1449
+ const M = ne(b.value, (I, L) => ({
1450
+ ...I,
1451
+ [L]: !0
1413
1452
  }), {});
1414
- return _(e.columns, (A) => y(x, A.dataIndex));
1415
- }), d = (x) => L(x, (A) => {
1416
- const N = {
1453
+ return Y(e.columns, (I) => m(M, I.dataIndex));
1454
+ });
1455
+ const p = (M) => F(M, (I) => {
1456
+ const L = {
1417
1457
  ...e.column,
1418
- ...A
1419
- }, S = e.convertColumn ? e.convertColumn(N) : N;
1420
- return A.children && Q(A.children) > 0 ? (S.children = d(A.children), S) : (A.customRender || (S.customRender = ({
1421
- text: M
1458
+ ...I
1459
+ }, k = e.convertColumn ? e.convertColumn(L) : L;
1460
+ return I.children && _(I.children) > 0 ? (k.children = p(I.children), k) : (I.customRender || (k.customRender = ({
1461
+ text: S
1422
1462
  }) => {
1423
- var U;
1424
- return Qe(r, {
1425
- ...A,
1463
+ var D;
1464
+ return Je(n, {
1465
+ ...I,
1426
1466
  showProps: {
1427
- ...A.showProps,
1428
- content: ((U = A.showProps) == null ? void 0 : U.content) || e.columnEmptyText
1467
+ ...I.showProps,
1468
+ content: ((D = I.showProps) == null ? void 0 : D.content) || e.columnEmptyText
1429
1469
  }
1430
- }, M) || M || e.columnEmptyText;
1431
- }), S);
1432
- }), g = I(() => {
1433
- const x = Le(b.value, e.columnState, (N) => N.dataIndex, {
1434
- children: "children"
1435
- }), A = d(x);
1436
- return e.serialNumber && A.unshift(c()), e.operate && e.operate.items && me(e.operate.items, (N) => N.show) && A.push(C()), A;
1437
- }), P = G();
1438
- ar({
1439
- columns: g,
1440
- originColumns: m,
1441
- selectIdsRef: h,
1442
- tableRef: P,
1470
+ }, S) || S || e.columnEmptyText;
1471
+ }), k);
1472
+ }), l = N(() => {
1473
+ const M = Fe(e.columns, e.columnState, e.columnState2), I = p(M);
1474
+ return e.serialNumber && I.unshift(c()), e.operate && e.operate.items && fe(e.operate.items, (L) => L.show) && I.push(P()), I;
1475
+ }), h = G();
1476
+ fr({
1477
+ columns: l,
1478
+ originColumns: v,
1479
+ selectIdsRef: b,
1480
+ tableRef: h,
1443
1481
  toolbar: e.toolbar,
1444
1482
  ...e.provideExtra
1445
- }), o(ge(e.tableMethods || [], P));
1446
- const f = G(), p = G(!1), F = G(), R = G(!1);
1447
- ze(f, () => {
1448
- p.value = !!f.value.innerText;
1449
- }), ze(F, () => {
1450
- R.value = !!F.value.innerText;
1483
+ }), a(ge(e.tableMethods || [], h));
1484
+ const E = G(), f = G(!1), C = G(), T = G(!1);
1485
+ Ve(E, () => {
1486
+ f.value = !!E.value.innerText;
1487
+ }), Ve(C, () => {
1488
+ T.value = !!C.value.innerText;
1451
1489
  });
1452
- const j = I(() => R.value || p.value ? `${e.clsName}-toolbar-valid` : ""), W = z(it()), w = le(t, "columnSetting");
1490
+ const K = N(() => T.value || f.value ? `${e.clsName}-toolbar-valid` : ""), R = z(dt()), H = se(t, "columnSetting");
1453
1491
  return () => {
1454
- var A, N;
1492
+ var I, L;
1455
1493
  if (!u)
1456
1494
  return null;
1457
- const x = v.value ? s(nr, (A = e.toolbar) == null ? void 0 : A.columnSetting, w) : null;
1495
+ const M = y.value ? s(ir, (I = e.toolbar) == null ? void 0 : I.columnSetting, H) : null;
1458
1496
  return s("div", O({
1459
1497
  class: e.clsName
1460
- }, V(a, "class")), [s("div", {
1461
- class: `${e.clsName}-toolbar ${j.value}`
1498
+ }, V(o, "class")), [s("div", {
1499
+ class: `${e.clsName}-toolbar ${K.value}`
1462
1500
  }, [s("div", {
1463
- ref: f,
1501
+ ref: E,
1464
1502
  class: `${e.clsName}-toolbar-start`
1465
- }, [(N = t.toolbar) == null ? void 0 : N.call(t)]), s("div", {
1466
- ref: F,
1503
+ }, [(L = t.toolbar) == null ? void 0 : L.call(t)]), s("div", {
1504
+ ref: C,
1467
1505
  class: `${e.clsName}-toolbar-extra`
1468
- }, [t.toolbarExtra ? t.toolbarExtra([x]) : s(ae, null, [x])])]), s(u, O({
1469
- ref: P
1470
- }, $(a, "class"), $(e, W), {
1471
- columns: g.value
1506
+ }, [t.toolbarExtra ? t.toolbarExtra([M]) : s(ae, null, [M])])]), s(u, O({
1507
+ ref: h
1508
+ }, A(o, "class"), A(e, R), {
1509
+ columns: l.value
1472
1510
  }), t)]);
1473
1511
  };
1474
1512
  }
1475
- }), or = () => ({
1513
+ }), mr = () => ({
1476
1514
  title: {
1477
1515
  type: String
1478
1516
  },
@@ -1491,41 +1529,41 @@ const er = () => ({
1491
1529
  type: Function,
1492
1530
  default: () => "\u8FD4\u56DE"
1493
1531
  }
1494
- }), Be = D({
1532
+ }), Ue = w({
1495
1533
  props: {
1496
- ...or()
1534
+ ...mr()
1497
1535
  },
1498
1536
  setup: (e, {
1499
1537
  slots: t
1500
1538
  }) => {
1501
- const o = Xe(), a = () => {
1502
- var n;
1539
+ const a = Ge(), o = () => {
1540
+ var r;
1503
1541
  if (e.onBackClick) {
1504
- (n = e.onBackClick) == null || n.call(e);
1542
+ (r = e.onBackClick) == null || r.call(e);
1505
1543
  return;
1506
1544
  }
1507
- o.back();
1545
+ a.back();
1508
1546
  };
1509
1547
  return () => {
1510
- var r, u, c, l, i;
1511
- const n = e.hideWhileNoHistory && ((u = (r = window.history) == null ? void 0 : r.state) == null ? void 0 : u.back) || e.hideWhileNoHistory === !1;
1548
+ var n, u, c, d, i;
1549
+ const r = e.hideWhileNoHistory && ((u = (n = window.history) == null ? void 0 : n.state) == null ? void 0 : u.back) || e.hideWhileNoHistory === !1;
1512
1550
  return s("div", {
1513
1551
  class: "pro-page-header"
1514
- }, [e.showBack && n && s("div", {
1552
+ }, [e.showBack && r && s("div", {
1515
1553
  class: "pro-page-header-back",
1516
- onClick: a
1554
+ onClick: o
1517
1555
  }, [t.backIcon ? t.backIcon() : (c = e.renderBackIcon) == null ? void 0 : c.call(e)]), s("div", {
1518
1556
  class: "pro-page-header-title"
1519
1557
  }, [t.title ? t.title() : e.title]), s("div", {
1520
1558
  class: "pro-page-header-sub-title"
1521
1559
  }, [t.subTitle ? t.subTitle() : e.subTitle]), s("div", {
1522
1560
  class: "pro-page-header-space"
1523
- }, [(l = t.space) == null ? void 0 : l.call(t)]), s("div", {
1561
+ }, [(d = t.space) == null ? void 0 : d.call(t)]), s("div", {
1524
1562
  class: "pro-page-header-extra"
1525
1563
  }, [(i = t.extra) == null ? void 0 : i.call(t)])]);
1526
1564
  };
1527
1565
  }
1528
- }), ur = () => ({
1566
+ }), yr = () => ({
1529
1567
  loading: {
1530
1568
  type: Boolean,
1531
1569
  default: !1
@@ -1535,37 +1573,37 @@ const er = () => ({
1535
1573
  type: Boolean,
1536
1574
  default: !0
1537
1575
  }
1538
- }), na = D({
1576
+ }), ia = w({
1539
1577
  props: {
1540
- ...Be.props,
1541
- ...ur()
1578
+ ...Ue.props,
1579
+ ...yr()
1542
1580
  },
1543
1581
  setup: (e, {
1544
1582
  slots: t
1545
1583
  }) => {
1546
- const a = Y()(B.LoadingKey), n = z(Be.props);
1584
+ const o = Q()(U.LoadingKey), r = z(Ue.props);
1547
1585
  return () => {
1548
- var c, l, i;
1549
- const r = e.title || t.title || e.subTitle || t.subTitle || t.extra, u = !!t.footer;
1586
+ var c, d, i;
1587
+ const n = e.title || t.title || e.subTitle || t.subTitle || t.extra, u = !!t.footer;
1550
1588
  return s("div", {
1551
1589
  class: `pro-page ${e.fillMode ? "pro-page-fill" : ""}`
1552
- }, [(c = t.start) == null ? void 0 : c.call(t), r && s(Be, V(e, n), $(t, "start", "default", "footer")), s("div", {
1590
+ }, [(c = t.start) == null ? void 0 : c.call(t), n && s(Ue, V(e, r), A(t, "start", "default", "footer")), s("div", {
1553
1591
  class: "pro-page-content"
1554
- }, [e.loading ? a ? s(a, O({
1592
+ }, [e.loading ? o ? s(o, O({
1555
1593
  loading: !0
1556
1594
  }, e.loadingOpts), {
1557
1595
  default: () => [s("div", {
1558
1596
  class: "pro-loading-dom"
1559
1597
  }, null)]
1560
- }) : null : (l = t.default) == null ? void 0 : l.call(t)]), !e.loading && u && s("div", {
1598
+ }) : null : (d = t.default) == null ? void 0 : d.call(t)]), !e.loading && u && s("div", {
1561
1599
  class: "pro-page-footer"
1562
1600
  }, [(i = t.footer) == null ? void 0 : i.call(t)])]);
1563
1601
  };
1564
1602
  }
1565
- }), cr = Object.freeze({
1603
+ }), vr = Object.freeze({
1566
1604
  page: 1,
1567
1605
  pageSize: 10
1568
- }), lr = () => ({
1606
+ }), hr = () => ({
1569
1607
  clsName: {
1570
1608
  type: String,
1571
1609
  default: "pro-list"
@@ -1599,43 +1637,43 @@ const er = () => ({
1599
1637
  end: {
1600
1638
  type: Function
1601
1639
  }
1602
- }), sr = D({
1640
+ }), br = w({
1603
1641
  props: {
1604
- ...lr()
1642
+ ...hr()
1605
1643
  },
1606
1644
  setup: (e, {
1607
1645
  slots: t,
1608
- emit: o
1646
+ emit: a
1609
1647
  }) => {
1610
- const a = Y(), n = a(B.ProSearchFormKey), r = a(B.ProTableKey), u = a(B.PaginationKey), c = e.pageState || Ne({
1611
- ...cr
1648
+ const o = Q(), r = o(U.ProSearchFormKey), n = o(U.ProTableKey), u = o(U.PaginationKey), c = e.pageState || Ne({
1649
+ ...vr
1612
1650
  });
1613
- let l;
1651
+ let d;
1614
1652
  const i = () => {
1615
- o("search", {
1616
- ...l,
1653
+ a("search", {
1654
+ ...d,
1617
1655
  ...c
1618
1656
  });
1619
- }, C = (d, g) => {
1620
- l = d, c.page = g || 1, i();
1621
- }, h = (d, g) => {
1622
- c.page = d, c.pageSize = g, i();
1623
- }, v = le(t, "search"), m = le(t, "table"), b = le(t, "pagination");
1657
+ }, P = (l, h) => {
1658
+ d = l, c.page = h || 1, i();
1659
+ }, b = (l, h) => {
1660
+ c.page = l, c.pageSize = h, i();
1661
+ }, y = se(t, "search"), v = se(t, "table"), p = se(t, "pagination");
1624
1662
  return () => {
1625
- var g, P, f, p, F, R, j, W;
1626
- const d = t.search ? t.search({
1627
- executeSearchWithResetPage: C,
1663
+ var h, E, f, C, T, K, R, H;
1664
+ const l = t.search ? t.search({
1665
+ executeSearchWithResetPage: P,
1628
1666
  pageState: c
1629
- }) : s(ae, null, [n && s(n, O({
1667
+ }) : s(ae, null, [r && s(r, O({
1630
1668
  class: `${e.clsName}-search`
1631
- }, $(e.searchProps, "onFinish"), {
1632
- onFinish: (w) => C(w)
1633
- }), v)]);
1669
+ }, A(e.searchProps, "onFinish"), {
1670
+ onFinish: (M) => P(M)
1671
+ }), y)]);
1634
1672
  return s("div", {
1635
1673
  class: e.clsName
1636
- }, [((g = t.start) == null ? void 0 : g.call(t)) || ((P = e.start) == null ? void 0 : P.call(e)), !e.searchInTable && d, ((f = t.divide) == null ? void 0 : f.call(t)) || ((p = e.divide) == null ? void 0 : p.call(e)), t.table ? t.table({
1674
+ }, [((h = t.start) == null ? void 0 : h.call(t)) || ((E = e.start) == null ? void 0 : E.call(e)), !e.searchInTable && l, ((f = t.divide) == null ? void 0 : f.call(t)) || ((C = e.divide) == null ? void 0 : C.call(e)), t.table ? t.table({
1637
1675
  pageState: c
1638
- }) : s(ae, null, [r && s(r, O({
1676
+ }) : s(ae, null, [n && s(n, O({
1639
1677
  class: `${e.clsName}-table`,
1640
1678
  paginationState: {
1641
1679
  page: c.page,
@@ -1643,21 +1681,21 @@ const er = () => ({
1643
1681
  },
1644
1682
  pagination: !1
1645
1683
  }, e.tableProps), {
1646
- ...m,
1647
- toolbar: e.searchInTable ? () => m.toolbar ? m.toolbar(d) : d : m.toolbar
1648
- })]), ((F = t.divide2) == null ? void 0 : F.call(t)) || ((R = e.divide2) == null ? void 0 : R.call(e)), t.pagination ? t.pagination({
1649
- executePageChange: h,
1684
+ ...v,
1685
+ toolbar: e.searchInTable ? () => v.toolbar ? v.toolbar(l) : l : v.toolbar
1686
+ })]), ((T = t.divide2) == null ? void 0 : T.call(t)) || ((K = e.divide2) == null ? void 0 : K.call(e)), t.pagination ? t.pagination({
1687
+ executePageChange: b,
1650
1688
  pageState: c
1651
1689
  }) : s(ae, null, [e.paginationProps !== !1 && u && s("div", {
1652
1690
  class: `${e.clsName}-pagination`
1653
- }, [s(u, O($(ve(e.paginationProps) ? {} : e.paginationProps, "onChange"), {
1691
+ }, [s(u, O(A(ve(e.paginationProps) ? {} : e.paginationProps, "onChange"), {
1654
1692
  page: c.page,
1655
1693
  pageSize: c.pageSize,
1656
- onComposeChange: h
1657
- }), b)])]), ((j = t.end) == null ? void 0 : j.call(t)) || ((W = e.end) == null ? void 0 : W.call(e))]);
1694
+ onComposeChange: b
1695
+ }), p)])]), ((R = t.end) == null ? void 0 : R.call(t)) || ((H = e.end) == null ? void 0 : H.call(e))]);
1658
1696
  };
1659
1697
  }
1660
- }), dt = () => ({
1698
+ }), ft = () => ({
1661
1699
  clsName: {
1662
1700
  type: String,
1663
1701
  default: "pro-desc"
@@ -1665,50 +1703,50 @@ const er = () => ({
1665
1703
  model: {
1666
1704
  type: Object
1667
1705
  }
1668
- }), ir = D({
1706
+ }), gr = w({
1669
1707
  props: {
1670
1708
  ...he,
1671
- ...dt()
1709
+ ...ft()
1672
1710
  },
1673
1711
  setup: (e, {
1674
1712
  slots: t
1675
1713
  }) => {
1676
1714
  const {
1677
- elementMap: o
1678
- } = ee(), a = e.elementMap || o, n = Y(), r = n(B.DescriptionsKey), u = n(B.DescriptionsItemKey), c = I(() => Le(e.columns, e.columnState, "dataIndex")), l = (h, v) => {
1679
- let m;
1680
- if (!!h.descRender)
1681
- return oe(h.descRender) ? m = y(h, h.descRender) : m = h.descRender, m == null ? void 0 : m({
1682
- value: v,
1715
+ elementMap: a
1716
+ } = ee(), o = e.elementMap || a, r = Q(), n = r(U.DescriptionsKey), u = r(U.DescriptionsItemKey), c = N(() => Fe(e.columns, e.columnState, e.columnState2)), d = (b, y) => {
1717
+ let v;
1718
+ if (!!b.descRender)
1719
+ return oe(b.descRender) ? v = m(b, b.descRender) : v = b.descRender, v == null ? void 0 : v({
1720
+ value: y,
1683
1721
  record: e.model,
1684
- column: $(h, "descRender")
1722
+ column: A(b, "descRender")
1685
1723
  });
1686
- }, i = z(he), C = z(dt());
1687
- return () => !r || !u ? null : s(r, O({
1724
+ }, i = z(he), P = z(ft());
1725
+ return () => !n || !u ? null : s(n, O({
1688
1726
  class: e.clsName
1689
- }, $(e, ...i, ...C, "model")), {
1727
+ }, A(e, ...i, ...P, "model")), {
1690
1728
  default: () => {
1691
- var h, v;
1692
- return [(h = t.start) == null ? void 0 : h.call(t), L(c.value, (m) => {
1693
- const b = m.dataIndex, d = y(e.model, b);
1729
+ var b, y;
1730
+ return [(b = t.start) == null ? void 0 : b.call(t), F(c.value, (v) => {
1731
+ const p = v.dataIndex, l = m(e.model, p);
1694
1732
  return s(u, O({
1695
1733
  class: `${e.clsName}-item`
1696
- }, y(m.extra, "desc")), {
1734
+ }, m(v.extra, "desc")), {
1697
1735
  default: () => {
1698
- var g;
1699
- return [((g = t.value) == null ? void 0 : g.call(t, d, m)) || l(m, d) || Qe(a, m, d)];
1736
+ var h;
1737
+ return [((h = t.value) == null ? void 0 : h.call(t, l, v)) || d(v, l) || Je(o, v, l)];
1700
1738
  },
1701
1739
  label: () => {
1702
- var g;
1703
- return ((g = t.label) == null ? void 0 : g.call(t, m)) || m.title;
1740
+ var h;
1741
+ return ((h = t.label) == null ? void 0 : h.call(t, v)) || v.title;
1704
1742
  }
1705
1743
  });
1706
- }), (v = t.default) == null ? void 0 : v.call(t)];
1744
+ }), (y = t.default) == null ? void 0 : y.call(t)];
1707
1745
  },
1708
1746
  ...t
1709
1747
  });
1710
1748
  }
1711
- }), dr = () => ({
1749
+ }), Sr = () => ({
1712
1750
  content: {
1713
1751
  type: [String, Number]
1714
1752
  },
@@ -1716,25 +1754,25 @@ const er = () => ({
1716
1754
  type: [Object, Boolean]
1717
1755
  },
1718
1756
  popoverProps: Object
1719
- }), mr = D({
1757
+ }), Pr = w({
1720
1758
  inheritAttrs: !1,
1721
1759
  props: {
1722
- ...dr()
1760
+ ...Sr()
1723
1761
  },
1724
1762
  setup: (e, {
1725
1763
  attrs: t
1726
1764
  }) => {
1727
- const a = Y()(B.PopoverKey), n = () => {
1728
- var r, u;
1729
- 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";
1765
+ const o = Q()(U.PopoverKey), r = () => {
1766
+ var n, u;
1767
+ 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";
1730
1768
  };
1731
1769
  return () => {
1732
- const r = s("span", O({
1770
+ const n = s("span", O({
1733
1771
  class: `pro-typography ${e.ellipsis ? "pro-typography-ellipsis" : ""}`,
1734
- style: `-webkit-line-clamp:${n()}`
1772
+ style: `-webkit-line-clamp:${r()}`
1735
1773
  }, t), [e.content]);
1736
- return !e.popoverProps || !a ? r : s(a, e.popoverProps, {
1737
- default: () => [r],
1774
+ return !e.popoverProps || !o ? n : s(o, e.popoverProps, {
1775
+ default: () => [n],
1738
1776
  content: () => e.content
1739
1777
  });
1740
1778
  };
@@ -1749,7 +1787,7 @@ const er = () => ({
1749
1787
  convert: {
1750
1788
  type: Function
1751
1789
  }
1752
- }, je = D({
1790
+ }, Re = w({
1753
1791
  inheritAttrs: !1,
1754
1792
  props: {
1755
1793
  ...Ae
@@ -1757,16 +1795,16 @@ const er = () => ({
1757
1795
  setup: (e, {
1758
1796
  attrs: t
1759
1797
  }) => {
1760
- const o = I(() => {
1761
- var r;
1762
- const a = (r = e.showProps) == null ? void 0 : r.content, n = e.value || bt(e.value) ? e.value : a;
1763
- return e.convert ? e.convert(n, e) : n;
1798
+ const a = N(() => {
1799
+ var n;
1800
+ const o = (n = e.showProps) == null ? void 0 : n.content, r = e.value || gt(e.value) ? e.value : o;
1801
+ return e.convert ? e.convert(r, e) : r;
1764
1802
  });
1765
- return () => s(mr, O(V(t, "style", "class"), $(e.showProps, "content"), {
1766
- content: o.value
1803
+ return () => s(Pr, O(V(t, "style", "class"), A(e.showProps, "content"), {
1804
+ content: a.value
1767
1805
  }), null);
1768
1806
  }
1769
- }), ra = D({
1807
+ }), da = w({
1770
1808
  inheritAttrs: !1,
1771
1809
  props: {
1772
1810
  ...Ae,
@@ -1782,16 +1820,16 @@ const er = () => ({
1782
1820
  setup: (e, {
1783
1821
  attrs: t
1784
1822
  }) => {
1785
- const o = I(() => {
1786
- let a = e.value;
1787
- return a && e.decimalFixed && (a = hn(a, e.decimalFixed || 2)), a && e.thousandDivision && (a = bn(a)), e.convert ? e.convert(a, e) : a;
1823
+ const a = N(() => {
1824
+ let o = e.value;
1825
+ return o && e.decimalFixed && (o = Cn(o, e.decimalFixed || 2)), o && e.thousandDivision && (o = En(o)), e.convert ? e.convert(o, e) : o;
1788
1826
  });
1789
- return () => s(je, O(V(t, "style", "class"), {
1790
- value: o.value,
1827
+ return () => s(Re, O(V(t, "style", "class"), {
1828
+ value: a.value,
1791
1829
  showProps: e.showProps
1792
1830
  }), null);
1793
1831
  }
1794
- }), aa = D({
1832
+ }), fa = w({
1795
1833
  inheritAttrs: !1,
1796
1834
  props: {
1797
1835
  ...Ae,
@@ -1810,18 +1848,18 @@ const er = () => ({
1810
1848
  setup: (e, {
1811
1849
  attrs: t
1812
1850
  }) => {
1813
- const o = I(() => gn(e.options, (r) => r.label), void 0), a = I(() => {
1814
- const r = e.value;
1851
+ const a = N(() => Mn(e.options, (n) => n.label), void 0), o = N(() => {
1852
+ const n = e.value;
1815
1853
  let u = e.value;
1816
- return H(r) ? u = Ge(L(r, (c) => y(o.value, c, c)), e.splitStr) : u = y(o.value, r, e.value), e.convert ? e.convert(u, e) : u;
1817
- }), n = I(() => y(e.colorMap, e.value));
1818
- return () => s(je, O(V(t, "style", "class"), {
1819
- style: `color:${n.value || ""}`,
1820
- value: a.value,
1854
+ return W(n) ? u = We(F(n, (c) => m(a.value, c, c)), e.splitStr) : u = m(a.value, n, e.value), e.convert ? e.convert(u, e) : u;
1855
+ }), r = N(() => m(e.colorMap, e.value));
1856
+ return () => s(Re, O(V(t, "style", "class"), {
1857
+ style: `color:${r.value || ""}`,
1858
+ value: o.value,
1821
1859
  showProps: e.showProps
1822
1860
  }), null);
1823
1861
  }
1824
- }), oa = D({
1862
+ }), ma = w({
1825
1863
  inheritAttrs: !1,
1826
1864
  props: {
1827
1865
  ...Ae,
@@ -1841,23 +1879,23 @@ const er = () => ({
1841
1879
  setup: (e, {
1842
1880
  attrs: t
1843
1881
  }) => {
1844
- const o = I(() => {
1845
- const n = e.treeData || e.data || e.options, r = e.fieldNames || e.props;
1846
- return Sn(n, (u) => y(u, (r == null ? void 0 : r.label) || "label"), {
1882
+ const a = N(() => {
1883
+ const r = e.treeData || e.data || e.options, n = e.fieldNames || e.props;
1884
+ return Tn(r, (u) => m(u, (n == null ? void 0 : n.label) || "label"), {
1847
1885
  value: "value",
1848
1886
  children: "children",
1849
- ...r
1887
+ ...n
1850
1888
  });
1851
- }), a = I(() => {
1852
- let n = e.value;
1853
- return H(e.value) ? n = Ge(L(e.value, (r) => y(o.value, r, r)), e.splitStr) : n = y(o.value, e.value, e.value), e.convert ? e.convert(n, e) : n;
1889
+ }), o = N(() => {
1890
+ let r = e.value;
1891
+ return W(e.value) ? r = We(F(e.value, (n) => m(a.value, n, n)), e.splitStr) : r = m(a.value, e.value, e.value), e.convert ? e.convert(r, e) : r;
1854
1892
  });
1855
- return () => s(je, O(V(t, "style", "class"), {
1856
- value: a.value,
1893
+ return () => s(Re, O(V(t, "style", "class"), {
1894
+ value: o.value,
1857
1895
  showProps: e.showProps
1858
1896
  }), null);
1859
1897
  }
1860
- }), ua = D({
1898
+ }), ya = w({
1861
1899
  props: {
1862
1900
  ...Ae,
1863
1901
  value: {
@@ -1879,31 +1917,31 @@ const er = () => ({
1879
1917
  setup: (e, {
1880
1918
  attrs: t
1881
1919
  }) => {
1882
- const o = (n) => n && (e.isUnix ? ot.unix(n).format(e.format) : ot(n).format(e.format)), a = I(() => {
1883
- let n = e.value;
1884
- return H(e.value) ? n = Ge(L(e.value, (r) => o(r) || ""), e.splitStr) : n = o(e.value) || "", e.convert ? e.convert(n, e) : n;
1920
+ const a = (r) => r && (e.isUnix ? ut.unix(r).format(e.format) : ut(r).format(e.format)), o = N(() => {
1921
+ let r = e.value;
1922
+ return W(e.value) ? r = We(F(e.value, (n) => a(n) || ""), e.splitStr) : r = a(e.value) || "", e.convert ? e.convert(r, e) : r;
1885
1923
  });
1886
- return () => s(je, O(V(t, "style", "class"), {
1887
- value: a.value,
1924
+ return () => s(Re, O(V(t, "style", "class"), {
1925
+ value: o.value,
1888
1926
  showProps: e.showProps
1889
1927
  }), null);
1890
1928
  }
1891
- }), Oe = D((e, {
1929
+ }), Oe = w((e, {
1892
1930
  slots: t
1893
1931
  }) => {
1894
- const o = G(), a = G(0);
1895
- return ze(o, (n) => {
1932
+ const a = G(), o = G(0);
1933
+ return Ve(a, (r) => {
1896
1934
  var u;
1897
- const r = (u = n[0]) == null ? void 0 : u.contentRect;
1898
- a.value = r == null ? void 0 : r.width;
1935
+ const n = (u = r[0]) == null ? void 0 : u.contentRect;
1936
+ o.value = n == null ? void 0 : n.width;
1899
1937
  }), () => {
1900
- var n, r, u;
1901
- return s("header", null, [(n = t.start) == null ? void 0 : n.call(t), t.menus && s("div", {
1902
- ref: o,
1938
+ var r, n, u;
1939
+ return s("header", null, [(r = t.start) == null ? void 0 : r.call(t), t.menus && s("div", {
1940
+ ref: a,
1903
1941
  class: "pro-header-menus-wrapper"
1904
- }, [t.menus(a.value)]), (r = t.default) == null ? void 0 : r.call(t), (u = t.end) == null ? void 0 : u.call(t)]);
1942
+ }, [t.menus(o.value)]), (n = t.default) == null ? void 0 : n.call(t), (u = t.end) == null ? void 0 : u.call(t)]);
1905
1943
  };
1906
- }), fr = () => ({
1944
+ }), pr = () => ({
1907
1945
  clsName: {
1908
1946
  type: String,
1909
1947
  default: "pro-layout"
@@ -1941,111 +1979,116 @@ const er = () => ({
1941
1979
  menuProps: {
1942
1980
  type: Object
1943
1981
  }
1944
- }), ca = D({
1982
+ }), va = w({
1945
1983
  inheritAttrs: !1,
1946
1984
  props: {
1947
- ...fr()
1985
+ ...pr()
1948
1986
  },
1949
1987
  setup: (e, {
1950
1988
  slots: t,
1951
- attrs: o
1989
+ attrs: a
1952
1990
  }) => {
1953
- const n = Y()(B.MenusKey), r = Re(), u = I(() => {
1954
- var b;
1955
- return It(e.menus, (d) => {
1956
- var f, p;
1957
- const g = ((f = e.fieldNames) == null ? void 0 : f.value) || "value", P = ((p = e.fieldNames) == null ? void 0 : p.label) || "label";
1991
+ const r = Q()(U.MenusKey), {
1992
+ router: n,
1993
+ route: u
1994
+ } = Lt(), c = N(() => {
1995
+ var h;
1996
+ return Nt(e.menus, (E) => {
1997
+ var T, K;
1998
+ const f = ((T = e.fieldNames) == null ? void 0 : T.value) || "value", C = ((K = e.fieldNames) == null ? void 0 : K.label) || "label";
1958
1999
  return {
1959
- ...$(d, g, P),
1960
- value: y(d, g),
1961
- label: y(d, P)
2000
+ ...A(E, f, C),
2001
+ value: m(E, f),
2002
+ label: m(E, C)
1962
2003
  };
1963
2004
  }, {
1964
- children: ((b = e.fieldNames) == null ? void 0 : b.children) || "children",
2005
+ children: ((h = e.fieldNames) == null ? void 0 : h.children) || "children",
1965
2006
  childrenName: "children"
1966
2007
  });
1967
- }), c = I(() => Pn(u.value)), l = I(() => {
1968
- var d;
1969
- const b = sn(r.matched, (g) => !!y(c.value, g.name));
1970
- return b ? y(c.value, b.name) : (d = e.findCurrentTopName) == null ? void 0 : d.call(e, r, c.value);
1971
- }), i = I(() => l.value ? rt(u.value, (b) => b.value === l.value).target : null), C = I(() => {
1972
- var b;
1973
- return r.name && y(c.value, r.name) ? r.name : (b = e.findActiveKey) == null ? void 0 : b.call(e, r, c.value);
1974
- }), h = (b) => {
1975
- var g;
1976
- const d = rt(u.value, (P) => P.value === b.value).target;
1977
- (g = e.onMenuItemClick) == null || g.call(e, d);
1978
- }, v = le(t, "header"), m = le(t, "menu");
2008
+ }), d = N(() => In(c.value)), i = N(() => {
2009
+ var E;
2010
+ const h = mn(u.matched, (f) => !!m(d.value, f.name));
2011
+ return h ? m(d.value, h.name) : (E = e.findCurrentTopName) == null ? void 0 : E.call(e, u, d.value);
2012
+ }), P = N(() => i.value ? rt(c.value, (h) => h.value === i.value).target : null), b = N(() => {
2013
+ var h;
2014
+ return u.name && m(d.value, u.name) ? u.name : (h = e.findActiveKey) == null ? void 0 : h.call(e, u, d.value);
2015
+ }), y = (h) => {
2016
+ e.onMenuItemClick ? e.onMenuItemClick(h) : n.openMenu(h);
2017
+ }, v = (h) => {
2018
+ const E = rt(c.value, (f) => f.value === h.value).target;
2019
+ y(E);
2020
+ }, p = se(t, "header"), l = se(t, "menu");
1979
2021
  return () => {
1980
- var g, P, f, p, F, R, j, W, w, x;
1981
- if (!n)
2022
+ var f, C, T, K, R, H, M, I, L, k;
2023
+ if (!r)
1982
2024
  return null;
1983
- const b = V(o, "class"), d = {
2025
+ const h = V(a, "class"), E = {
1984
2026
  class: `${e.clsName}-menus`,
1985
- options: u.value,
1986
- activeKey: C.value,
1987
- ...V(e, "convertSubMenuProps", "convertMenuItemProps", "onMenuItemClick"),
2027
+ options: c.value,
2028
+ activeKey: b.value,
2029
+ ...V(e, "convertSubMenuProps", "convertMenuItemProps"),
2030
+ onMenuItemClick: y,
1988
2031
  ...e.menuProps
1989
2032
  };
1990
- return e.layout === "vertical" ? s("main", O(b, {
2033
+ return e.layout === "vertical" ? s("main", O(h, {
1991
2034
  class: `${e.clsName} ${e.clsName}-${e.layout}`
1992
2035
  }), [s(Oe, {
1993
2036
  class: `${e.clsName}-header`
1994
2037
  }, {
1995
- menus: (A) => A ? s(n, O({
1996
- style: `width:${A}px`,
2038
+ menus: (S) => S ? s(r, O({
2039
+ style: `width:${S}px`,
1997
2040
  mode: "horizontal"
1998
- }, d), m) : null,
1999
- ...v
2041
+ }, E), l) : null,
2042
+ ...p
2000
2043
  }), s("div", {
2001
2044
  class: `${e.clsName}-section`
2002
- }, [(g = t.default) == null ? void 0 : g.call(t)])]) : e.layout === "horizontal" ? s("main", O(b, {
2045
+ }, [(f = t.default) == null ? void 0 : f.call(t)])]) : e.layout === "horizontal" ? s("main", O(h, {
2003
2046
  class: `${e.clsName} ${e.clsName}-${e.layout}`
2004
2047
  }), [s("div", {
2005
2048
  class: `${e.clsName}-menus-wrapper`
2006
- }, [(P = m.start) == null ? void 0 : P.call(m), s(n, d, m), (f = m.end) == null ? void 0 : f.call(m)]), s("div", {
2049
+ }, [(C = l.start) == null ? void 0 : C.call(l), s(r, E, l), (T = l.end) == null ? void 0 : T.call(l)]), s("div", {
2007
2050
  class: `${e.clsName}-structure`
2008
2051
  }, [s(Oe, {
2009
2052
  class: `${e.clsName}-header`
2010
- }, v), s("div", {
2053
+ }, p), s("div", {
2011
2054
  class: `${e.clsName}-section`
2012
- }, [(p = t.default) == null ? void 0 : p.call(t)])])]) : e.layout === "horizontal-v" ? s("main", O(b, {
2055
+ }, [(K = t.default) == null ? void 0 : K.call(t)])])]) : e.layout === "horizontal-v" ? s("main", O(h, {
2013
2056
  class: `${e.clsName} ${e.clsName}-${e.layout}`
2014
2057
  }), [s(Oe, {
2015
2058
  class: `${e.clsName}-header`
2016
- }, v), s("div", {
2059
+ }, p), s("div", {
2017
2060
  class: `${e.clsName}-structure`
2018
2061
  }, [s("div", {
2019
2062
  class: `${e.clsName}-menus-wrapper`
2020
- }, [(F = m.start) == null ? void 0 : F.call(m), s(n, d, m), (R = m.end) == null ? void 0 : R.call(m)]), s("div", {
2063
+ }, [(R = l.start) == null ? void 0 : R.call(l), s(r, E, l), (H = l.end) == null ? void 0 : H.call(l)]), s("div", {
2021
2064
  class: `${e.clsName}-section`
2022
- }, [(j = t.default) == null ? void 0 : j.call(t)])])]) : s("main", O(b, {
2065
+ }, [(M = t.default) == null ? void 0 : M.call(t)])])]) : s("main", O(h, {
2023
2066
  class: `${e.clsName} ${e.clsName}-${e.layout}`
2024
2067
  }), [s(Oe, {
2025
2068
  class: `${e.clsName}-header`
2026
2069
  }, {
2027
- menus: (A) => A ? s(n, O({
2028
- style: `width:${A}px`,
2070
+ menus: (S) => S ? s(r, O({
2071
+ style: `width:${S}px`,
2029
2072
  class: `${e.clsName}-menus`,
2030
2073
  mode: "horizontal",
2031
- options: L(u.value, (N) => $(N, "children")),
2032
- activeKey: l.value
2074
+ options: F(c.value, (g) => A(g, "children")),
2075
+ activeKey: i.value
2033
2076
  }, V(e, "convertSubMenuProps", "convertMenuItemProps"), {
2034
- onMenuItemClick: h
2035
- }), m) : null,
2036
- ...v
2077
+ onMenuItemClick: v
2078
+ }), l) : null,
2079
+ ...p
2037
2080
  }), s("div", {
2038
2081
  class: `${e.clsName}-structure`
2039
- }, [i.value && Q(i.value.children) > 0 && s("div", {
2082
+ }, [P.value && _(P.value.children) > 0 && s("div", {
2040
2083
  class: `${e.clsName}-menus-wrapper`
2041
- }, [(W = m.start) == null ? void 0 : W.call(m), s(n, O({
2042
- options: i.value.children
2043
- }, $(d, "options")), m), (w = m.end) == null ? void 0 : w.call(m)]), s("div", {
2084
+ }, [(I = l.start) == null ? void 0 : I.call(l), s(r, O({
2085
+ options: P.value.children
2086
+ }, A(E, "options")), l), (L = l.end) == null ? void 0 : L.call(l)]), s("div", {
2044
2087
  class: `${e.clsName}-section`
2045
- }, [(x = t.default) == null ? void 0 : x.call(t)])])]);
2088
+ }, [(k = t.default) == null ? void 0 : k.call(t)])])]);
2046
2089
  };
2047
2090
  }
2048
- }), la = D({
2091
+ }), ha = w({
2049
2092
  props: {
2050
2093
  fieldNames: {
2051
2094
  type: Object,
@@ -2061,41 +2104,41 @@ const er = () => ({
2061
2104
  },
2062
2105
  setup: (e, {
2063
2106
  slots: t,
2064
- emit: o
2107
+ emit: a
2065
2108
  }) => {
2066
- const n = Y()(B.UploaderKey), r = (i) => {
2067
- const C = $t(i);
2068
- if (H(C)) {
2069
- const h = e.fieldNames;
2070
- return L(C, (v) => ({
2071
- ...$(v, h.id, h.name, h.size),
2072
- id: y(v, h.id),
2073
- name: y(v, h.name),
2074
- size: y(v, h.size)
2109
+ const r = Q()(U.UploaderKey), n = (i) => {
2110
+ const P = At(i);
2111
+ if (W(P)) {
2112
+ const b = e.fieldNames;
2113
+ return F(P, (y) => ({
2114
+ ...A(y, b.id, b.name, b.size),
2115
+ id: m(y, b.id),
2116
+ name: m(y, b.name),
2117
+ size: m(y, b.size)
2075
2118
  }));
2076
2119
  }
2077
2120
  return [];
2078
- }, u = I(() => r(e.value)), c = I(() => r(e.modelValue)), l = (i, C) => {
2079
- let h = "";
2080
- i && Q(i) > 0 && (h = Cn(L(i, (v) => {
2081
- var d;
2082
- const m = e.fieldNames, b = {
2083
- [m.id]: v.id,
2084
- [m.name]: v.name,
2085
- [m.size || "size"]: v.size
2121
+ }, u = N(() => n(e.value)), c = N(() => n(e.modelValue)), d = (i, P) => {
2122
+ let b = "";
2123
+ i && _(i) > 0 && (b = Nn(F(i, (y) => {
2124
+ var l;
2125
+ const v = e.fieldNames, p = {
2126
+ [v.id]: y.id,
2127
+ [v.name]: y.name,
2128
+ [v.size || "size"]: y.size
2086
2129
  };
2087
- return ((d = e.convertItem) == null ? void 0 : d.call(e, v)) || b;
2088
- }))), o(C, h);
2130
+ return ((l = e.convertItem) == null ? void 0 : l.call(e, y)) || p;
2131
+ }))), a(P, b);
2089
2132
  };
2090
- return () => n ? s(n, O({
2133
+ return () => r ? s(r, O({
2091
2134
  class: "pro-uploader-text",
2092
2135
  value: u.value,
2093
- "onUpdate:value": (i) => l(i, "update:value"),
2136
+ "onUpdate:value": (i) => d(i, "update:value"),
2094
2137
  modelValue: c.value,
2095
- "onUpdate:modelValue": (i) => l(i, "update:modelValue")
2096
- }, $(e, "value", "modelValue", "fieldNames")), t) : null;
2138
+ "onUpdate:modelValue": (i) => d(i, "update:modelValue")
2139
+ }, A(e, "value", "modelValue", "fieldNames")), t) : null;
2097
2140
  }
2098
- }), sa = D({
2141
+ }), ba = w({
2099
2142
  props: {
2100
2143
  value: [String, Array],
2101
2144
  fieldNames: {
@@ -2109,66 +2152,66 @@ const er = () => ({
2109
2152
  },
2110
2153
  setup: (e, {
2111
2154
  slots: t,
2112
- emit: o
2155
+ emit: a
2113
2156
  }) => {
2114
- const a = (u) => {
2157
+ const o = (u) => {
2115
2158
  var c;
2116
- return !!y(u, ((c = e.fieldNames) == null ? void 0 : c.id) || "id");
2117
- }, n = I(() => {
2159
+ return !!m(u, ((c = e.fieldNames) == null ? void 0 : c.id) || "id");
2160
+ }, r = N(() => {
2118
2161
  let u = e.value;
2119
- return u && oe(u) && (u = $t(u)), u && !H(u) && Ee(u) && a(u) && (u = [u]), H(u) ? L(_(u, (c) => a(c)), (c) => {
2120
- var h, v, m;
2121
- const l = y(c, ((h = e.fieldNames) == null ? void 0 : h.id) || "id"), i = y(c, ((v = e.fieldNames) == null ? void 0 : v.name) || "name"), C = y(c, ((m = e.fieldNames) == null ? void 0 : m.name) || "size");
2162
+ return u && oe(u) && (u = At(u)), u && !W(u) && Ee(u) && o(u) && (u = [u]), W(u) ? F(Y(u, (c) => o(c)), (c) => {
2163
+ var b, y, v;
2164
+ const d = m(c, ((b = e.fieldNames) == null ? void 0 : b.id) || "id"), i = m(c, ((y = e.fieldNames) == null ? void 0 : y.name) || "name"), P = m(c, ((v = e.fieldNames) == null ? void 0 : v.name) || "size");
2122
2165
  return {
2123
2166
  ...c,
2124
- id: l,
2125
- size: C,
2126
- name: i || l
2167
+ id: d,
2168
+ size: P,
2169
+ name: i || d
2127
2170
  };
2128
2171
  }) : [];
2129
- }), r = (u) => {
2130
- o("titleClick", u);
2172
+ }), n = (u) => {
2173
+ a("titleClick", u);
2131
2174
  };
2132
2175
  return () => {
2133
2176
  var u, c;
2134
2177
  return s("div", {
2135
2178
  class: "pro-upload-list"
2136
- }, [(u = t.start) == null ? void 0 : u.call(t), L(n.value, (l) => {
2179
+ }, [(u = t.start) == null ? void 0 : u.call(t), F(r.value, (d) => {
2137
2180
  var i;
2138
2181
  return s("div", {
2139
2182
  class: "pro-upload-list-item"
2140
2183
  }, [s("span", {
2141
2184
  class: "pro-upload-list-item-title",
2142
- onClick: () => r(l)
2143
- }, [l.name]), (i = t.extra) == null ? void 0 : i.call(t, l)]);
2185
+ onClick: () => n(d)
2186
+ }, [d.name]), (i = t.extra) == null ? void 0 : i.call(t, d)]);
2144
2187
  }), (c = t.default) == null ? void 0 : c.call(t)]);
2145
2188
  };
2146
2189
  }
2147
- }), yr = (e, t) => {
2148
- !e || !t || gt(t) || pe(e) || Z(t, (o, a) => {
2149
- const n = Et(a, e);
2150
- if (!Mt(n)) {
2151
- console.log("ConfigExtra\uFF1A\u8865\u5145\u5BF9\u8C61key\u8F6C\u6362\u5931\u8D25", e.elementId, a);
2190
+ }), Cr = (e, t) => {
2191
+ !e || !t || St(t) || Ce(e) || Z(t, (a, o) => {
2192
+ const r = Mt(o, e);
2193
+ if (!Tt(r)) {
2194
+ console.log("ConfigExtra\uFF1A\u8865\u5145\u5BF9\u8C61key\u8F6C\u6362\u5931\u8D25", e.elementId, o);
2152
2195
  return;
2153
2196
  }
2154
- if (!Tt(n, e)) {
2155
- console.log("ConfigExtra\uFF1A\u8865\u5145\u5BF9\u8C61key\u672A\u627E\u5230\u7236\u7EA7", e.elementId, a, "->", n);
2197
+ if (!It(r, e)) {
2198
+ console.log("ConfigExtra\uFF1A\u8865\u5145\u5BF9\u8C61key\u672A\u627E\u5230\u7236\u7EA7", e.elementId, o, "->", r);
2156
2199
  return;
2157
2200
  }
2158
- ce(e, n, o);
2201
+ le(e, r, a);
2159
2202
  });
2160
2203
  }, Pe = (e, t) => {
2161
- yr(e, y(t, e.elementId));
2162
- const o = y(e, ["highConfig$", "registerPropsTrans"]);
2163
- o && Q(o) > 0 && Z(o, (a) => {
2164
- const n = y(e.elementProps, a.name);
2165
- H(n) ? Z(n, (r) => {
2166
- Pe(r, t);
2167
- }) : Pe(n, t);
2168
- }), e.children && Q(e.children) > 0 && Z(e.children, (a) => {
2169
- Pe(a, t);
2204
+ Cr(e, m(t, e.elementId));
2205
+ const a = m(e, ["highConfig$", "registerPropsTrans"]);
2206
+ a && _(a) > 0 && Z(a, (o) => {
2207
+ const r = m(e.elementProps, o.name);
2208
+ W(r) ? Z(r, (n) => {
2209
+ Pe(n, t);
2210
+ }) : Pe(r, t);
2211
+ }), e.children && _(e.children) > 0 && Z(e.children, (o) => {
2212
+ Pe(o, t);
2170
2213
  });
2171
- }, vr = D({
2214
+ }, Er = w({
2172
2215
  props: {
2173
2216
  initExecuteList: {
2174
2217
  type: Array
@@ -2182,28 +2225,28 @@ const er = () => ({
2182
2225
  e.initExecuteList && t(e.initExecuteList, []);
2183
2226
  }, []), () => null;
2184
2227
  }
2185
- }), ia = ({
2228
+ }), ga = ({
2186
2229
  actors: e,
2187
2230
  configData: t,
2188
- configDataExtra: o,
2189
- Logic: a
2190
- }) => D(() => {
2191
- const n = G(), r = (l) => {
2192
- const i = Ct(l);
2193
- return o && (H(i) ? Z(i, (C) => Pe(C, o)) : Pe(i, o)), i;
2231
+ configDataExtra: a,
2232
+ Logic: o
2233
+ }) => w(() => {
2234
+ const r = G(), n = (d) => {
2235
+ const i = Ct(d);
2236
+ return a && (W(i) ? Z(i, (P) => Pe(P, a)) : Pe(i, a)), i;
2194
2237
  };
2195
2238
  ue(() => {
2196
- t && t.elementConfigs && (n.value = r(t.elementConfigs)), t != null && t.elementConfigs;
2239
+ t && t.elementConfigs && (r.value = n(t.elementConfigs)), t != null && t.elementConfigs;
2197
2240
  }, []);
2198
- const c = Y()(B.LoadingKey);
2199
- return () => n.value ? s(De, {
2241
+ const c = Q()(U.LoadingKey);
2242
+ return () => r.value ? s(we, {
2200
2243
  initState: t == null ? void 0 : t.initState,
2201
2244
  storeKeys: t == null ? void 0 : t.storeKeys,
2202
2245
  actors: e,
2203
2246
  requests: t == null ? void 0 : t.requests,
2204
- elementConfigs: n.value
2247
+ elementConfigs: r.value
2205
2248
  }, {
2206
- default: () => [s(vr, null, null), a && s(a, null, null)]
2249
+ default: () => [s(Er, null, null), o && s(o, null, null)]
2207
2250
  }) : c ? s(c, {
2208
2251
  loading: !0
2209
2252
  }, {
@@ -2211,9 +2254,9 @@ const er = () => ({
2211
2254
  class: "pro-module-loading-dom"
2212
2255
  }, null)]
2213
2256
  }) : null;
2214
- }), _t = Symbol("pro-curd"), re = () => ye(_t), hr = (e) => fe(_t, e);
2215
- var K = /* @__PURE__ */ ((e) => (e.LIST = "LIST", e.DETAIL = "DETAIL", e.ADD = "ADD", e.EDIT = "EDIT", e.DELETE = "DELETE", e))(K || {}), k = /* @__PURE__ */ ((e) => (e.EMIT = "EMIT", e.EXECUTE = "EXECUTE", e.PAGE = "PAGE", e.SUCCESS = "SUCCESS", e.FAIL = "FAIL", e))(k || {}), de = /* @__PURE__ */ ((e) => (e.ADD = "ADD", e.EDIT = "EDIT", e.DETAIL = "DETAIL", e))(de || {}), Ie = /* @__PURE__ */ ((e) => (e.NORMAL = "NORMAL", e.CONTINUE = "CONTINUE", e))(Ie || {});
2216
- const br = () => ({
2257
+ }), Jt = Symbol("pro-curd"), re = () => ye(Jt), Mr = (e) => me(Jt, e);
2258
+ var x = /* @__PURE__ */ ((e) => (e.LIST = "LIST", e.DETAIL = "DETAIL", e.ADD = "ADD", e.EDIT = "EDIT", e.DELETE = "DELETE", e))(x || {}), j = /* @__PURE__ */ ((e) => (e.EMIT = "EMIT", e.EXECUTE = "EXECUTE", e.PAGE = "PAGE", e.SUCCESS = "SUCCESS", e.FAIL = "FAIL", e))(j || {}), de = /* @__PURE__ */ ((e) => (e.ADD = "ADD", e.EDIT = "EDIT", e.DETAIL = "DETAIL", e))(de || {}), Ie = /* @__PURE__ */ ((e) => (e.NORMAL = "NORMAL", e.CONTINUE = "CONTINUE", e))(Ie || {});
2259
+ const Tr = () => ({
2217
2260
  rowKey: {
2218
2261
  type: String,
2219
2262
  default: "id"
@@ -2236,105 +2279,105 @@ const br = () => ({
2236
2279
  modalProps: {
2237
2280
  type: Object
2238
2281
  }
2239
- }), Yt = ["sendCurdEvent", "refreshList", "sendEvent", "sendRequest"], mt = D({
2282
+ }), Zt = ["sendCurdEvent", "refreshList", "sendEvent", "sendRequest"], mt = w({
2240
2283
  props: {
2241
2284
  ...he,
2242
- ...br()
2285
+ ...Tr()
2243
2286
  },
2244
2287
  setup: (e, {
2245
2288
  slots: t,
2246
- expose: o
2289
+ expose: a
2247
2290
  }) => {
2248
2291
  const {
2249
- elementMap: a,
2250
- state: n,
2251
- sendEvent: r,
2292
+ elementMap: o,
2293
+ state: r,
2294
+ sendEvent: n,
2252
2295
  sendRequest: u
2253
- } = be(), c = I(() => Le(e.columns, e.columnState, (w) => ie(w))), l = (w) => Je(e.formElementMap, w), i = (w, x) => Qe(a, w, x), C = (w, x) => {
2254
- const A = _(c.value, (N) => {
2255
- const S = y(N, ["extra", w]) || y(N, w);
2256
- return x ? S !== !1 : S;
2296
+ } = be(), c = N(() => Fe(e.columns, e.columnState, e.columnState2)), d = (M) => Qe(e.formElementMap, M), i = (M, I) => Je(o, M, I), P = (M, I) => {
2297
+ const L = Y(c.value, (k) => {
2298
+ const S = m(k, ["extra", M]) || m(k, M);
2299
+ return I ? S !== !1 : S;
2257
2300
  });
2258
- return Pt(A, (N) => y(N, ["extra", `${w}Sort`]) || y(N, `${w}Sort`));
2259
- }, h = I(() => C("form", !0)), v = I(() => C("detail", !0)), m = I(() => C("table", !0)), b = I(() => C("search"));
2260
- let d;
2261
- const g = (w) => {
2262
- u(K.LIST, {
2263
- ...d,
2264
- ...w
2301
+ return pt(L, (k) => m(k, ["extra", `${M}Sort`]) || m(k, `${M}Sort`));
2302
+ }, b = N(() => P("form", !0)), y = N(() => P("detail", !0)), v = N(() => P("table", !0)), p = N(() => P("search"));
2303
+ let l;
2304
+ const h = (M) => {
2305
+ u(x.LIST, {
2306
+ ...l,
2307
+ ...M
2265
2308
  });
2266
- }, P = (w) => {
2267
- r({
2268
- type: w.action,
2269
- payload: $(w, "action", "source"),
2270
- source: w.source
2309
+ }, E = (M) => {
2310
+ n({
2311
+ type: M.action,
2312
+ payload: A(M, "action", "source"),
2313
+ source: M.source
2271
2314
  });
2272
2315
  };
2273
2316
  Ye(({
2274
- type: w,
2275
- payload: x,
2276
- source: A
2317
+ type: M,
2318
+ payload: I,
2319
+ source: L
2277
2320
  }) => {
2278
- if (A)
2321
+ if (L)
2279
2322
  return;
2280
- let N = w, S = x == null ? void 0 : x.type;
2281
- N === Me.Success && (N = y(x, ["requestOpts", "action"]), S = k.SUCCESS);
2323
+ let k = M, S = I == null ? void 0 : I.type;
2324
+ k === Me.Success && (k = m(I, ["requestOpts", "action"]), S = j.SUCCESS);
2282
2325
  const {
2283
- values: M,
2284
- record: E
2285
- } = x;
2286
- switch (N) {
2287
- case K.LIST:
2288
- S === k.EMIT && (d = M, g());
2326
+ values: g,
2327
+ record: D
2328
+ } = I;
2329
+ switch (k) {
2330
+ case x.LIST:
2331
+ S === j.EMIT && (l = g, h());
2289
2332
  return;
2290
- case K.ADD:
2291
- S === k.EXECUTE && u(K.ADD, M, n.detailData);
2333
+ case x.ADD:
2334
+ S === j.EXECUTE && u(x.ADD, g, r.detailData);
2292
2335
  return;
2293
- case K.EDIT:
2294
- S === k.EXECUTE && u(K.EDIT, M, n.detailData);
2336
+ case x.EDIT:
2337
+ S === j.EXECUTE && u(x.EDIT, g, r.detailData);
2295
2338
  return;
2296
- case K.DELETE:
2297
- S === k.EMIT ? u(K.DELETE, E, e.rowKey) : S === k.SUCCESS && g();
2339
+ case x.DELETE:
2340
+ S === j.EMIT ? u(x.DELETE, D, e.rowKey) : S === j.SUCCESS && h();
2298
2341
  return;
2299
2342
  }
2300
- N && w === k.EXECUTE && u(N, M);
2343
+ k && M === j.EXECUTE && u(k, g);
2301
2344
  });
2302
- const f = ne(e.operates, (w, x) => ({
2303
- ...w,
2304
- [x.action]: x
2305
- }), {}), p = (w) => y(f, w), F = I(() => e.listProps), R = I(() => e.formProps), j = I(() => e.descProps), W = I(() => e.modalProps);
2306
- return hr({
2345
+ const f = ne(e.operates, (M, I) => ({
2346
+ ...M,
2347
+ [I.action]: I
2348
+ }), {}), C = (M) => m(f, M), T = N(() => e.listProps), K = N(() => e.formProps), R = N(() => e.descProps), H = N(() => e.modalProps);
2349
+ return Mr({
2307
2350
  columns: c,
2308
- getSignColumns: C,
2309
- getFormItemVNode: l,
2351
+ getSignColumns: P,
2352
+ getFormItemVNode: d,
2310
2353
  getItemVNode: i,
2311
- elementMap: a,
2354
+ elementMap: o,
2312
2355
  formElementMap: e.formElementMap,
2313
2356
  rowKey: e.rowKey,
2314
- curdState: n,
2315
- formColumns: h,
2316
- descColumns: v,
2317
- tableColumns: m,
2318
- searchColumns: b,
2319
- sendCurdEvent: P,
2357
+ curdState: r,
2358
+ formColumns: b,
2359
+ descColumns: y,
2360
+ tableColumns: v,
2361
+ searchColumns: p,
2362
+ sendCurdEvent: E,
2320
2363
  operates: e.operates,
2321
- getOperate: p,
2322
- refreshList: g,
2323
- listProps: F,
2324
- formProps: R,
2325
- descProps: j,
2326
- modalProps: W
2327
- }), o({
2328
- sendCurdEvent: P,
2329
- refreshList: g
2364
+ getOperate: C,
2365
+ refreshList: h,
2366
+ listProps: T,
2367
+ formProps: K,
2368
+ descProps: R,
2369
+ modalProps: H
2370
+ }), a({
2371
+ sendCurdEvent: E,
2372
+ refreshList: h
2330
2373
  }), () => {
2331
- var w;
2332
- return (w = t.default) == null ? void 0 : w.call(t);
2374
+ var M;
2375
+ return (M = t.default) == null ? void 0 : M.call(t);
2333
2376
  };
2334
2377
  }
2335
- }), We = D({
2378
+ }), ze = w({
2336
2379
  props: {
2337
- ...$(De.props, "state", "requests"),
2380
+ ...A(we.props, "state", "requests"),
2338
2381
  ...mt.props,
2339
2382
  curdState: {
2340
2383
  type: Object
@@ -2342,478 +2385,487 @@ const br = () => ({
2342
2385
  },
2343
2386
  setup: (e, {
2344
2387
  slots: t,
2345
- expose: o
2388
+ expose: a
2346
2389
  }) => {
2347
2390
  const {
2348
- elementMap: a,
2349
- formElementMap: n
2350
- } = ee(), r = G(), u = G(), c = e.curdState || Ne({
2391
+ elementMap: o,
2392
+ formElementMap: r
2393
+ } = ee(), n = G(), u = G(), c = e.curdState || Ne({
2351
2394
  detailData: {}
2352
- }), l = {
2353
- [K.LIST]: {
2354
- convertParams: (v) => v,
2355
- convertData: (v) => {
2356
- var m;
2357
- return (m = v.res) == null ? void 0 : m.data;
2395
+ }), d = {
2396
+ [x.LIST]: {
2397
+ convertParams: (y) => y,
2398
+ convertData: (y) => {
2399
+ var v;
2400
+ return (v = y.res) == null ? void 0 : v.data;
2358
2401
  },
2359
2402
  loadingName: "listLoading",
2360
2403
  stateName: "listData"
2361
2404
  },
2362
- [K.DETAIL]: {
2363
- convertParams: (v, m) => V(v, m),
2364
- convertData: (v) => {
2365
- var m;
2366
- return (m = v.res) == null ? void 0 : m.data;
2405
+ [x.DETAIL]: {
2406
+ convertParams: (y, v) => V(y, v),
2407
+ convertData: (y) => {
2408
+ var v;
2409
+ return (v = y.res) == null ? void 0 : v.data;
2367
2410
  },
2368
2411
  loadingName: "detailLoading",
2369
2412
  stateName: "detailData",
2370
2413
  label: "\u8BE6\u60C5"
2371
2414
  },
2372
- [K.ADD]: {
2373
- convertParams: (v, m) => ({
2415
+ [x.ADD]: {
2416
+ convertParams: (y, v) => ({
2374
2417
  body: {
2375
- ...m,
2376
- ...v
2418
+ ...v,
2419
+ ...y
2377
2420
  }
2378
2421
  }),
2379
2422
  loadingName: "operateLoading",
2380
2423
  label: "\u6DFB\u52A0"
2381
2424
  },
2382
- [K.EDIT]: {
2383
- convertParams: (v, m) => ({
2425
+ [x.EDIT]: {
2426
+ convertParams: (y, v) => ({
2384
2427
  body: {
2385
- ...m,
2386
- ...v
2428
+ ...v,
2429
+ ...y
2387
2430
  }
2388
2431
  }),
2389
2432
  loadingName: "operateLoading",
2390
2433
  label: "\u7F16\u8F91"
2391
2434
  },
2392
- [K.DELETE]: {
2393
- convertParams: (v, m) => V(v, m),
2435
+ [x.DELETE]: {
2436
+ convertParams: (y, v) => V(y, v),
2394
2437
  label: "\u5220\u9664"
2395
2438
  }
2396
- }, i = L(e.operates, (v) => {
2397
- var d;
2398
- const m = y(l, v.action), b = ((d = e.convertOperate) == null ? void 0 : d.call(e, v, m)) || v;
2439
+ }, i = F(e.operates, (y) => {
2440
+ var l;
2441
+ const v = m(d, y.action), p = ((l = e.convertOperate) == null ? void 0 : l.call(e, y, v)) || y;
2399
2442
  return {
2400
- ...m,
2401
- ...b
2443
+ ...v,
2444
+ ...p
2402
2445
  };
2403
- }), C = _(i, (v) => v.actor), h = z($(De.props, "state", "requests"));
2404
- return o({
2405
- sendCurdEvent: (v) => {
2406
- var m;
2407
- (m = u.value) == null || m.sendCurdEvent(v);
2446
+ }), P = Y(i, (y) => y.actor), b = z(A(we.props, "state", "requests"));
2447
+ return a({
2448
+ sendCurdEvent: (y) => {
2449
+ var v;
2450
+ (v = u.value) == null || v.sendCurdEvent(y);
2408
2451
  },
2409
- refreshList: (v) => {
2410
- var m;
2411
- (m = u.value) == null || m.refreshList(v);
2452
+ refreshList: (y) => {
2453
+ var v;
2454
+ (v = u.value) == null || v.refreshList(y);
2412
2455
  },
2413
- sendEvent: (v) => {
2414
- var m;
2415
- (m = r.value) == null || m.sendEvent(v);
2456
+ sendEvent: (y) => {
2457
+ var v;
2458
+ (v = n.value) == null || v.sendEvent(y);
2416
2459
  },
2417
- sendRequest: (v, ...m) => {
2418
- var b;
2419
- (b = r.value) == null || b.sendRequest(v, ...m);
2460
+ sendRequest: (y, ...v) => {
2461
+ var p;
2462
+ (p = n.value) == null || p.sendRequest(y, ...v);
2420
2463
  }
2421
- }), () => s(De, O({
2422
- ref: r
2423
- }, V(e, h), {
2424
- elementMap: e.elementMap || a,
2464
+ }), () => s(we, O({
2465
+ ref: n
2466
+ }, V(e, b), {
2467
+ elementMap: e.elementMap || o,
2425
2468
  state: c,
2426
- requests: C
2469
+ requests: P
2427
2470
  }), {
2428
2471
  default: () => [s(mt, O({
2429
2472
  ref: u
2430
- }, $(e, ...h, "curdState", "operates", "convertOperate"), {
2431
- formElementMap: e.formElementMap || n,
2473
+ }, A(e, ...b, "curdState", "operates", "convertOperate"), {
2474
+ formElementMap: e.formElementMap || r,
2432
2475
  operates: i
2433
2476
  }), t)]
2434
2477
  });
2435
2478
  }
2436
- }), gr = () => ({
2479
+ }), Ir = () => ({
2437
2480
  defaultAddRecord: {
2438
2481
  type: Object
2439
2482
  }
2440
- }), qe = D({
2483
+ }), Be = w({
2441
2484
  props: {
2442
- ...gr()
2485
+ ...Ir()
2443
2486
  },
2444
2487
  setup: (e) => {
2445
- var m;
2488
+ var v;
2446
2489
  const {
2447
2490
  dispatch: t,
2448
- sendRequest: o
2491
+ sendRequest: a
2449
2492
  } = be(), {
2450
- rowKey: a,
2451
- curdState: n,
2452
- listProps: r,
2493
+ rowKey: o,
2494
+ curdState: r,
2495
+ listProps: n,
2453
2496
  getOperate: u,
2454
2497
  refreshList: c
2455
- } = re(), l = (m = r == null ? void 0 : r.value) == null ? void 0 : m.pageState, i = (b) => {
2456
- const d = u(K.DETAIL);
2457
- d != null && d.actor ? o(K.DETAIL, b, a) : t({
2498
+ } = re(), d = (v = n == null ? void 0 : n.value) == null ? void 0 : v.pageState, i = (p) => {
2499
+ const l = u(x.DETAIL);
2500
+ l != null && l.actor ? a(x.DETAIL, p, o) : t({
2458
2501
  type: "detailData",
2459
- payload: Ct(b)
2502
+ payload: Ct(p)
2460
2503
  });
2461
- }, C = (b, {
2462
- record: d
2504
+ }, P = (p, {
2505
+ record: l
2463
2506
  }) => {
2464
- b === k.EMIT && (t({
2507
+ p === j.EMIT && (t({
2465
2508
  type: "mode",
2466
2509
  payload: de.DETAIL
2467
- }), i(d));
2468
- }, h = (b) => {
2469
- b === k.EMIT ? (t({
2510
+ }), i(l));
2511
+ }, b = (p) => {
2512
+ p === j.EMIT ? (t({
2470
2513
  type: "mode",
2471
2514
  payload: de.ADD
2472
2515
  }), t({
2473
2516
  type: "detailData",
2474
2517
  payload: e.defaultAddRecord || {}
2475
- })) : b === k.SUCCESS && (l && (l.page = 1), c(), n.addAction === Ie.CONTINUE ? t({
2518
+ })) : p === j.SUCCESS && (d && (d.page = 1), c(), r.addAction === Ie.CONTINUE ? t({
2476
2519
  type: "detailData",
2477
2520
  payload: e.defaultAddRecord || {}
2478
2521
  }) : t({
2479
2522
  type: "mode",
2480
2523
  payload: void 0
2481
2524
  }));
2482
- }, v = (b, {
2483
- record: d
2525
+ }, y = (p, {
2526
+ record: l
2484
2527
  }) => {
2485
- b === k.EMIT ? (t({
2528
+ p === j.EMIT ? (t({
2486
2529
  type: "mode",
2487
2530
  payload: de.EDIT
2488
- }), i(d)) : b === k.SUCCESS && (t({
2531
+ }), i(l)) : p === j.SUCCESS && (t({
2489
2532
  type: "mode",
2490
2533
  payload: void 0
2491
2534
  }), c());
2492
2535
  };
2493
2536
  return Ye(({
2494
- type: b,
2495
- payload: d,
2496
- source: g
2537
+ type: p,
2538
+ payload: l,
2539
+ source: h
2497
2540
  }) => {
2498
- if (g)
2541
+ if (h)
2499
2542
  return;
2500
- let P = b, f = d == null ? void 0 : d.type;
2501
- const p = d == null ? void 0 : d.record;
2502
- switch (P === Me.Success && (P = y(d, ["requestOpts", "action"]), f = k.SUCCESS), P) {
2503
- case K.DETAIL:
2504
- C(f, {
2505
- record: p
2543
+ let E = p, f = l == null ? void 0 : l.type;
2544
+ const C = l == null ? void 0 : l.record;
2545
+ switch (E === Me.Success && (E = m(l, ["requestOpts", "action"]), f = j.SUCCESS), E) {
2546
+ case x.DETAIL:
2547
+ P(f, {
2548
+ record: C
2506
2549
  });
2507
2550
  break;
2508
- case K.ADD:
2509
- h(f);
2551
+ case x.ADD:
2552
+ b(f);
2510
2553
  break;
2511
- case K.EDIT:
2512
- v(f, {
2513
- record: p
2554
+ case x.EDIT:
2555
+ y(f, {
2556
+ record: C
2514
2557
  });
2515
2558
  break;
2516
2559
  }
2517
2560
  }), () => null;
2518
2561
  }
2519
- }), da = D({
2562
+ }), Sa = w({
2520
2563
  props: {
2521
- ...We.props,
2522
- ...qe.props
2564
+ ...ze.props,
2565
+ ...Be.props
2523
2566
  },
2524
2567
  setup: (e, {
2525
2568
  slots: t,
2526
- expose: o
2569
+ expose: a
2527
2570
  }) => {
2528
- const a = G();
2529
- o(ge(Yt, a));
2530
- const n = z(qe.props), u = Y()(B.ProCurdKey);
2571
+ const o = G();
2572
+ a(ge(Zt, o));
2573
+ const r = z(Be.props), u = Q()(U.ProCurdKey);
2531
2574
  return () => u ? s(u, O({
2532
- ref: a
2533
- }, $(e, n)), {
2575
+ ref: o
2576
+ }, A(e, r)), {
2534
2577
  default: () => {
2535
2578
  var c;
2536
- return [s(qe, V(e, n), null), (c = t.default) == null ? void 0 : c.call(t)];
2579
+ return [s(Be, V(e, r), null), (c = t.default) == null ? void 0 : c.call(t)];
2537
2580
  }
2538
2581
  }) : null;
2539
2582
  }
2540
- }), Sr = () => ({
2583
+ }), Nr = () => ({
2541
2584
  defaultAddRecord: {
2542
2585
  type: Object
2543
2586
  },
2544
2587
  routeBack: {
2545
2588
  type: Function
2546
2589
  }
2547
- }), Ve = D({
2590
+ }), qe = w({
2548
2591
  props: {
2549
- ...Sr()
2592
+ ...Nr()
2550
2593
  },
2551
2594
  setup: (e) => {
2552
- const t = Xe(), o = Re(), {
2553
- dispatch: a,
2554
- sendRequest: n
2595
+ const t = Ge(), a = Xe(), {
2596
+ dispatch: o,
2597
+ sendRequest: r
2555
2598
  } = be(), {
2556
- rowKey: r,
2599
+ rowKey: n,
2557
2600
  curdState: u
2558
- } = re(), c = (h) => {
2559
- h === k.PAGE && (a({
2601
+ } = re(), c = (b) => {
2602
+ b === j.PAGE && (o({
2560
2603
  type: "mode",
2561
2604
  payload: void 0
2562
- }), a({
2605
+ }), o({
2563
2606
  type: "detailData",
2564
2607
  payload: {}
2565
- }), a({
2608
+ }), o({
2566
2609
  type: "detailLoading",
2567
2610
  payload: !1
2568
- }), a({
2611
+ }), o({
2569
2612
  type: "addAction",
2570
2613
  payload: void 0
2571
2614
  }));
2572
- }, l = (h, {
2573
- record: v
2615
+ }, d = (b, {
2616
+ record: y
2574
2617
  }) => {
2575
- h === k.EMIT ? t.push({
2576
- path: `${o.path}/detail`,
2577
- query: V(v, r)
2578
- }) : h === k.PAGE && (a({
2618
+ b === j.EMIT ? t.push({
2619
+ path: `${a.path}/detail`,
2620
+ query: V(y, n)
2621
+ }) : b === j.PAGE && (o({
2579
2622
  type: "mode",
2580
2623
  payload: de.DETAIL
2581
- }), n(K.DETAIL, o.query, r));
2582
- }, i = (h) => {
2583
- h === k.EMIT ? t.push({
2584
- path: `${o.path}/add`
2585
- }) : h === k.PAGE ? (a({
2624
+ }), r(x.DETAIL, a.query, n));
2625
+ }, i = (b) => {
2626
+ b === j.EMIT ? t.push({
2627
+ path: `${a.path}/add`
2628
+ }) : b === j.PAGE ? (o({
2586
2629
  type: "mode",
2587
2630
  payload: de.ADD
2588
- }), a({
2631
+ }), o({
2589
2632
  type: "detailData",
2590
2633
  payload: e.defaultAddRecord || {}
2591
- })) : h === k.SUCCESS && (u.addAction === Ie.CONTINUE ? a({
2634
+ })) : b === j.SUCCESS && (u.addAction === Ie.CONTINUE ? o({
2592
2635
  type: "detailData",
2593
2636
  payload: e.defaultAddRecord || {}
2594
- }) : e.routeBack ? e.routeBack(K.ADD) : t.go(-1));
2595
- }, C = (h, {
2596
- record: v
2637
+ }) : e.routeBack ? e.routeBack(x.ADD) : t.go(-1));
2638
+ }, P = (b, {
2639
+ record: y
2597
2640
  }) => {
2598
- h === k.EMIT ? t.push({
2599
- path: `${o.path}/edit`,
2600
- query: V(v, r)
2601
- }) : h === k.PAGE ? (a({
2641
+ b === j.EMIT ? t.push({
2642
+ path: `${a.path}/edit`,
2643
+ query: V(y, n)
2644
+ }) : b === j.PAGE ? (o({
2602
2645
  type: "mode",
2603
2646
  payload: de.EDIT
2604
- }), n(K.DETAIL, o.query, r)) : h === k.SUCCESS && (e.routeBack ? e.routeBack(K.EDIT) : t.go(-1));
2647
+ }), r(x.DETAIL, a.query, n)) : b === j.SUCCESS && (e.routeBack ? e.routeBack(x.EDIT) : t.go(-1));
2605
2648
  };
2606
2649
  return Ye(({
2607
- type: h,
2608
- payload: v,
2609
- source: m
2650
+ type: b,
2651
+ payload: y,
2652
+ source: v
2610
2653
  }) => {
2611
- if (m)
2654
+ if (v)
2612
2655
  return;
2613
- let b = h, d = v == null ? void 0 : v.type;
2614
- const g = v == null ? void 0 : v.record;
2615
- switch (b === Me.Success && (b = y(v, ["requestOpts", "action"]), d = k.SUCCESS), b) {
2616
- case K.LIST:
2617
- c(d);
2656
+ let p = b, l = y == null ? void 0 : y.type;
2657
+ const h = y == null ? void 0 : y.record;
2658
+ switch (p === Me.Success && (p = m(y, ["requestOpts", "action"]), l = j.SUCCESS), p) {
2659
+ case x.LIST:
2660
+ c(l);
2618
2661
  break;
2619
- case K.DETAIL:
2620
- l(d, {
2621
- record: g
2662
+ case x.DETAIL:
2663
+ d(l, {
2664
+ record: h
2622
2665
  });
2623
2666
  break;
2624
- case K.ADD:
2625
- i(d);
2667
+ case x.ADD:
2668
+ i(l);
2626
2669
  break;
2627
- case K.EDIT:
2628
- C(d, {
2629
- record: g
2670
+ case x.EDIT:
2671
+ P(l, {
2672
+ record: h
2630
2673
  });
2631
2674
  break;
2632
2675
  }
2633
2676
  }), () => null;
2634
2677
  }
2635
- }), ma = D({
2678
+ }), Pa = w({
2636
2679
  props: {
2637
- ...We.props,
2638
- ...Ve.props
2680
+ ...ze.props,
2681
+ ...qe.props
2639
2682
  },
2640
2683
  setup: (e, {
2641
2684
  slots: t,
2642
- expose: o
2685
+ expose: a
2643
2686
  }) => {
2644
- const a = G();
2645
- o(ge(Yt, a));
2646
- const n = z(Ve.props);
2647
- return () => s(We, O({
2648
- ref: a
2649
- }, $(e, n)), {
2687
+ const o = G();
2688
+ a(ge(Zt, o));
2689
+ const r = z(qe.props);
2690
+ return () => s(ze, O({
2691
+ ref: o
2692
+ }, A(e, r)), {
2650
2693
  default: () => {
2651
- var r;
2652
- return [s(Ve, V(e, n), null), (r = t.default) == null ? void 0 : r.call(t)];
2694
+ var n;
2695
+ return [s(qe, V(e, r), null), (n = t.default) == null ? void 0 : n.call(t)];
2653
2696
  }
2654
2697
  });
2655
2698
  }
2656
- }), ft = D({
2699
+ }), yt = w({
2657
2700
  props: {
2658
2701
  buttonProps: Object
2659
2702
  },
2660
2703
  setup: (e, {
2661
2704
  slots: t
2662
2705
  }) => {
2663
- const {
2706
+ const a = _t(), {
2664
2707
  getOperate: o,
2665
- sendCurdEvent: a
2666
- } = re(), n = o(K.ADD), r = () => {
2708
+ sendCurdEvent: r
2709
+ } = re(), n = o(x.ADD), u = () => {
2667
2710
  if (n != null && n.onClick) {
2668
2711
  n.onClick();
2669
2712
  return;
2670
2713
  }
2671
- a({
2672
- action: K.ADD,
2673
- type: k.EMIT
2714
+ r({
2715
+ action: x.ADD,
2716
+ type: j.EMIT
2674
2717
  });
2675
- }, c = Y()(B.ButtonKey);
2676
- return () => n != null && n.show ? t.default ? t.default(n, r) : c ? s(c, O({
2718
+ }, d = Q()(U.ButtonKey);
2719
+ return () => !n || !a(n.per, n.perSuffix) || !(X(n.show) ? n.show({}) : n.show) ? null : n.element ? n.element({}, n) : t.default ? t.default(n, u) : d ? s(d, O({
2677
2720
  class: "pro-curd-add-button",
2678
2721
  disabled: X(n.disabled) ? n.disabled() : n.disabled
2679
2722
  }, e.buttonProps, {
2680
- onClick: r
2723
+ onClick: u
2681
2724
  }), {
2682
2725
  default: () => [n.label]
2683
- }) : null : null;
2726
+ }) : null;
2684
2727
  }
2685
- }), yt = () => ({
2728
+ }), vt = () => ({
2686
2729
  addConfig: {
2687
2730
  type: Object,
2688
2731
  default: {
2689
2732
  inSearch: !0
2690
2733
  }
2734
+ },
2735
+ activatedRefresh: {
2736
+ type: Boolean,
2737
+ default: !0
2691
2738
  }
2692
- }), Pr = D({
2739
+ }), $r = w({
2693
2740
  props: {
2694
- ...sr.props,
2695
- ...yt()
2741
+ ...br.props,
2742
+ ...vt()
2696
2743
  },
2697
2744
  setup: (e, {
2698
2745
  slots: t
2699
2746
  }) => {
2700
2747
  const {
2701
- elementMap: o,
2702
- formElementMap: a,
2703
- curdState: n,
2704
- searchColumns: r,
2748
+ elementMap: a,
2749
+ formElementMap: o,
2750
+ curdState: r,
2751
+ searchColumns: n,
2705
2752
  tableColumns: u,
2706
2753
  sendCurdEvent: c,
2707
- operates: l
2708
- } = re(), i = L(
2709
- _(l, (P) => {
2710
- const f = P.action;
2711
- return f === K.DETAIL || f === K.EDIT || f === K.DELETE || P.tableOperate;
2754
+ operates: d,
2755
+ refreshList: i
2756
+ } = re(), P = F(
2757
+ Y(d, (f) => {
2758
+ const C = f.action;
2759
+ return C === x.DETAIL || C === x.EDIT || C === x.DELETE || f.tableOperate;
2712
2760
  }),
2713
- (P) => {
2714
- const f = {
2715
- ...V(P, "label", "show", "disabled", "loading", "extraProps", "onClick", "element"),
2716
- value: P.action
2761
+ (f) => {
2762
+ const C = {
2763
+ ...V(f, "label", "show", "disabled", "loading", "extraProps", "onClick", "element", "sort", "per", "perSuffix"),
2764
+ value: f.action
2717
2765
  };
2718
- return f.onClick || (f.onClick = (p) => {
2766
+ return C.onClick || (C.onClick = (T) => {
2719
2767
  c({
2720
- action: P.action,
2721
- type: k.EMIT,
2722
- record: p
2768
+ action: f.action,
2769
+ type: j.EMIT,
2770
+ record: T
2723
2771
  });
2724
- }), f;
2772
+ }), C;
2725
2773
  }
2726
- ), C = (P) => {
2774
+ ), b = (f) => {
2727
2775
  c({
2728
- action: K.LIST,
2729
- type: k.EMIT,
2730
- values: P
2776
+ action: x.LIST,
2777
+ type: j.EMIT,
2778
+ values: f
2731
2779
  });
2732
- }, h = I(() => ({
2733
- formElementMap: a,
2734
- columns: r.value,
2780
+ };
2781
+ $n(() => {
2782
+ e.activatedRefresh && i();
2783
+ });
2784
+ const y = N(() => ({
2785
+ formElementMap: o,
2786
+ columns: n.value,
2735
2787
  ...e.searchProps
2736
- })), v = I(() => {
2737
- var P, f;
2788
+ })), v = N(() => {
2789
+ var f, C;
2738
2790
  return {
2739
- elementMap: o,
2791
+ elementMap: a,
2740
2792
  columns: u.value,
2741
- loading: n.listLoading,
2742
- dataSource: (P = n.listData) == null ? void 0 : P.dataSource,
2743
- ...$(e.tableProps, "operate"),
2793
+ loading: r.listLoading,
2794
+ dataSource: (f = r.listData) == null ? void 0 : f.dataSource,
2795
+ ...A(e.tableProps, "operate"),
2744
2796
  operate: {
2745
- items: i,
2746
- ...(f = e.tableProps) == null ? void 0 : f.operate
2797
+ items: P,
2798
+ ...(C = e.tableProps) == null ? void 0 : C.operate
2747
2799
  }
2748
2800
  };
2749
- }), m = I(() => {
2750
- var P;
2801
+ }), p = N(() => {
2802
+ var f;
2751
2803
  return e.paginationProps === !1 ? !1 : {
2752
- total: (P = n.listData) == null ? void 0 : P.total,
2804
+ total: (f = r.listData) == null ? void 0 : f.total,
2753
2805
  ...e.paginationProps
2754
2806
  };
2755
- }), b = z(yt()), g = Y()(B.ProListKey);
2807
+ }), l = z(vt()), E = Q()(U.ProListKey);
2756
2808
  return () => {
2757
- var P, f;
2758
- return g ? s(g, O({
2809
+ var f, C;
2810
+ return E ? s(E, O({
2759
2811
  class: "pro-curd-list"
2760
- }, $(e, ...b, "searchProps", "tableProps", "paginationProps"), {
2761
- searchProps: h.value,
2812
+ }, A(e, ...l, "searchProps", "tableProps", "paginationProps"), {
2813
+ searchProps: y.value,
2762
2814
  tableProps: v.value,
2763
- paginationProps: m.value,
2764
- onSearch: C
2815
+ paginationProps: p.value,
2816
+ onSearch: b
2765
2817
  }), {
2766
- "search-end": (P = e.addConfig) != null && P.inSearch ? () => {
2767
- var p;
2818
+ "search-end": (f = e.addConfig) != null && f.inSearch ? () => {
2819
+ var T;
2768
2820
  return s("div", {
2769
2821
  class: "pro-curd-list-search-end"
2770
- }, [s(ft, (p = e.addConfig) == null ? void 0 : p.buttonProps, null)]);
2822
+ }, [s(yt, (T = e.addConfig) == null ? void 0 : T.buttonProps, null)]);
2771
2823
  } : void 0,
2772
- "table-toolbarExtra": (f = e.addConfig) != null && f.inTable ? (p) => {
2773
- var F;
2774
- return s(ae, null, [s(ft, (F = e.addConfig) == null ? void 0 : F.buttonProps, null), p]);
2824
+ "table-toolbarExtra": (C = e.addConfig) != null && C.inTable ? (T) => {
2825
+ var K;
2826
+ return s(ae, null, [s(yt, (K = e.addConfig) == null ? void 0 : K.buttonProps, null), T]);
2775
2827
  } : void 0,
2776
2828
  ...t,
2777
- search: t.search ? (p) => t.search(p, h.value) : void 0,
2778
- table: t.table ? (p) => t.table(p, v.value) : void 0,
2779
- pagination: t.pagination ? (p) => t.pagination(p, m.value) : void 0
2829
+ search: t.search ? (T) => t.search(T, y.value) : void 0,
2830
+ table: t.table ? (T) => t.table(T, v.value) : void 0,
2831
+ pagination: t.pagination ? (T) => t.pagination(T, p.value) : void 0
2780
2832
  }) : null;
2781
2833
  };
2782
2834
  }
2783
- }), fa = D(() => {
2835
+ }), pa = w(() => {
2784
2836
  const {
2785
2837
  listProps: e
2786
2838
  } = re();
2787
- return () => s(Pr, $(e == null ? void 0 : e.value, "slots"), y(e == null ? void 0 : e.value, "slots"));
2788
- }), Cr = () => ({
2839
+ return () => s($r, A(e == null ? void 0 : e.value, "slots"), m(e == null ? void 0 : e.value, "slots"));
2840
+ }), Ar = () => ({
2789
2841
  signName: {
2790
2842
  type: String
2791
2843
  }
2792
- }), et = D({
2844
+ }), et = w({
2793
2845
  props: {
2794
- ...Cr()
2846
+ ...Ar()
2795
2847
  },
2796
2848
  setup: (e, {
2797
2849
  slots: t,
2798
- expose: o,
2799
- attrs: a
2850
+ expose: a,
2851
+ attrs: o
2800
2852
  }) => {
2801
2853
  const {
2802
- elementMap: n,
2803
- formElementMap: r,
2854
+ elementMap: r,
2855
+ formElementMap: n,
2804
2856
  curdState: u,
2805
2857
  formColumns: c,
2806
- getSignColumns: l,
2858
+ getSignColumns: d,
2807
2859
  sendCurdEvent: i
2808
- } = re(), C = G();
2809
- o(ge(e.formMethods || [], C));
2810
- const h = I(() => e.signName ? l(e.signName) : c.value), v = () => {
2860
+ } = re(), P = G();
2861
+ a(ge(e.formMethods || [], P));
2862
+ const b = N(() => e.signName ? d(e.signName) : c.value), y = () => {
2811
2863
  var f;
2812
- u.addAction = Ie.NORMAL, (f = C.value) == null || f.submit();
2813
- }, m = () => {
2864
+ u.addAction = Ie.NORMAL, (f = P.value) == null || f.submit();
2865
+ }, v = () => {
2814
2866
  var f;
2815
- u.addAction = Ie.CONTINUE, (f = C.value) == null || f.submit();
2816
- }, b = [
2867
+ u.addAction = Ie.CONTINUE, (f = P.value) == null || f.submit();
2868
+ }, p = [
2817
2869
  {
2818
2870
  value: te.RESET,
2819
2871
  label: "\u91CD\u7F6E"
@@ -2833,73 +2885,73 @@ const br = () => ({
2833
2885
  },
2834
2886
  show: !1
2835
2887
  }
2836
- ], d = (f) => {
2837
- a.onFinish || (u.mode === K.EDIT ? i({
2838
- action: K.EDIT,
2839
- type: k.EXECUTE,
2888
+ ], l = (f) => {
2889
+ o.onFinish || (u.mode === x.EDIT ? i({
2890
+ action: x.EDIT,
2891
+ type: j.EXECUTE,
2840
2892
  values: f
2841
2893
  }) : i({
2842
- action: K.ADD,
2843
- type: k.EXECUTE,
2894
+ action: x.ADD,
2895
+ type: j.EXECUTE,
2844
2896
  values: f
2845
2897
  }));
2846
- }, P = Y()(B.ProFormKey);
2847
- return () => P ? s(P, O({
2848
- ref: C,
2898
+ }, E = Q()(U.ProFormKey);
2899
+ return () => E ? s(E, O({
2900
+ ref: P,
2849
2901
  class: "pro-curd-form"
2850
- }, $(e, "operate"), {
2851
- elementMap: e.elementMap || n,
2852
- formElementMap: e.formElementMap || r,
2853
- columns: e.columns || h.value,
2854
- readonly: u.mode === K.DETAIL,
2902
+ }, A(e, "operate"), {
2903
+ elementMap: e.elementMap || r,
2904
+ formElementMap: e.formElementMap || n,
2905
+ columns: e.columns || b.value,
2906
+ readonly: u.mode === x.DETAIL,
2855
2907
  model: e.model || u.detailData,
2856
- hideRequiredMark: u.mode === K.DETAIL,
2908
+ hideRequiredMark: u.mode === x.DETAIL,
2857
2909
  operate: e.operate ? {
2858
- items: b,
2859
- onSubmit: v,
2860
- onContinue: m,
2910
+ items: p,
2911
+ onSubmit: y,
2912
+ onContinue: v,
2861
2913
  ...e.operate
2862
2914
  } : void 0,
2863
- onFinish: d
2915
+ onFinish: l
2864
2916
  }), t) : null;
2865
2917
  }
2866
- }), ya = D(() => {
2918
+ }), Ca = w(() => {
2867
2919
  const {
2868
2920
  formProps: e
2869
2921
  } = re();
2870
- return () => s(et, $(e == null ? void 0 : e.value, "slots"), y(e == null ? void 0 : e.value, "slots"));
2871
- }), pr = () => ({
2922
+ return () => s(et, A(e == null ? void 0 : e.value, "slots"), m(e == null ? void 0 : e.value, "slots"));
2923
+ }), Or = () => ({
2872
2924
  signName: {
2873
2925
  type: String
2874
2926
  }
2875
- }), Er = D({
2927
+ }), wr = w({
2876
2928
  props: {
2877
- ...pr()
2929
+ ...Or()
2878
2930
  },
2879
2931
  setup: (e, {
2880
2932
  slots: t
2881
2933
  }) => {
2882
2934
  const {
2883
- curdState: o,
2884
- descColumns: a,
2885
- getSignColumns: n
2886
- } = re(), r = I(() => e.signName ? n(e.signName) : a.value);
2887
- return () => s(ir, O($(e, "signName", "model", "columns"), {
2888
- model: e.model || o.detailData,
2889
- columns: r.value
2935
+ curdState: a,
2936
+ descColumns: o,
2937
+ getSignColumns: r
2938
+ } = re(), n = N(() => e.signName ? r(e.signName) : o.value);
2939
+ return () => s(gr, O(A(e, "signName", "model", "columns"), {
2940
+ model: e.model || a.detailData,
2941
+ columns: n.value
2890
2942
  }), t);
2891
2943
  }
2892
- }), va = D(() => {
2944
+ }), Ea = w(() => {
2893
2945
  const {
2894
2946
  descProps: e
2895
2947
  } = re();
2896
- return () => s(Er, O({
2948
+ return () => s(wr, O({
2897
2949
  class: "pro-curd-desc"
2898
- }, $(e == null ? void 0 : e.value, "slots")), y(e == null ? void 0 : e.value, "slots"));
2899
- }), vt = () => ({
2950
+ }, A(e == null ? void 0 : e.value, "slots")), m(e == null ? void 0 : e.value, "slots"));
2951
+ }), ht = () => ({
2900
2952
  validMode: {
2901
2953
  type: Array,
2902
- default: [K.ADD, K.DETAIL, K.EDIT]
2954
+ default: [x.ADD, x.DETAIL, x.EDIT]
2903
2955
  },
2904
2956
  loadingOpts: {
2905
2957
  type: Object
@@ -2907,48 +2959,48 @@ const br = () => ({
2907
2959
  overrideProps: {
2908
2960
  type: Object
2909
2961
  }
2910
- }), Jt = D({
2962
+ }), en = w({
2911
2963
  props: {
2912
- ...vt()
2964
+ ...ht()
2913
2965
  },
2914
2966
  setup: (e, {
2915
2967
  slots: t
2916
2968
  }) => {
2917
- const o = Y(), a = o(B.ModalKey), n = o(B.LoadingKey), {
2918
- curdState: r,
2969
+ const a = Q(), o = a(U.ModalKey), r = a(U.LoadingKey), {
2970
+ curdState: n,
2919
2971
  getOperate: u
2920
2972
  } = re(), c = () => {
2921
- r.mode = void 0, pt(r.detailData, {}), r.detailLoading = !1, r.addAction = void 0;
2922
- }, l = z(vt());
2973
+ n.mode = void 0, Et(n.detailData, {}), n.detailLoading = !1, n.addAction = void 0;
2974
+ }, d = z(ht());
2923
2975
  return () => {
2924
- var C;
2925
- const i = r.mode;
2926
- return !me(e.validMode, (h) => h === i) || !a ? null : s(a, O({
2976
+ var P;
2977
+ const i = n.mode;
2978
+ return !fe(e.validMode, (b) => b === i) || !o ? null : s(o, O({
2927
2979
  class: "pro-curd-modal"
2928
- }, $(e, l), {
2929
- visible: me(e.validMode, (h) => h === i),
2930
- title: e.title || ((C = u(r.mode)) == null ? void 0 : C.label),
2931
- confirmLoading: r.operateLoading,
2932
- maskClosable: r.mode === K.DETAIL,
2933
- footer: r.mode === K.DETAIL ? !1 : void 0
2980
+ }, A(e, d), {
2981
+ visible: fe(e.validMode, (b) => b === i),
2982
+ title: e.title || ((P = u(n.mode)) == null ? void 0 : P.label),
2983
+ confirmLoading: n.operateLoading,
2984
+ maskClosable: n.mode === x.DETAIL,
2985
+ footer: n.mode === x.DETAIL ? !1 : void 0
2934
2986
  }, e.overrideProps, {
2935
2987
  onCancel: c
2936
2988
  }), {
2937
2989
  default: () => {
2938
- var h;
2939
- return [r.detailLoading && n ? s(n, O({
2990
+ var b;
2991
+ return [n.detailLoading && r ? s(r, O({
2940
2992
  loading: !0
2941
2993
  }, e.loadingOpts), {
2942
2994
  default: () => [s("div", {
2943
2995
  class: "pro-curd-modal-loading-dom"
2944
2996
  }, null)]
2945
- }) : (h = t.default) == null ? void 0 : h.call(t)];
2997
+ }) : (b = t.default) == null ? void 0 : b.call(t)];
2946
2998
  },
2947
- ...$(t, "default")
2999
+ ...A(t, "default")
2948
3000
  });
2949
3001
  };
2950
3002
  }
2951
- }), ha = D({
3003
+ }), Ma = w({
2952
3004
  props: {
2953
3005
  modalProps: Object,
2954
3006
  formProps: Object
@@ -2956,133 +3008,136 @@ const br = () => ({
2956
3008
  setup: (e, {
2957
3009
  slots: t
2958
3010
  }) => {
2959
- const o = G(), a = le(t, "modal"), n = le(t, "form");
2960
- return () => s(Jt, O(e.modalProps, {
3011
+ const a = G(), o = se(t, "modal"), r = se(t, "form");
3012
+ return () => s(en, O(e.modalProps, {
2961
3013
  onOk: () => {
2962
- var r;
2963
- (r = o.value) == null || r.submit();
3014
+ var n;
3015
+ (n = a.value) == null || n.submit();
2964
3016
  }
2965
3017
  }), {
2966
3018
  default: () => [s(et, O({
2967
- ref: o
2968
- }, e.formProps), n)],
2969
- ...a
3019
+ ref: a
3020
+ }, e.formProps), r)],
3021
+ ...o
2970
3022
  });
2971
3023
  }
2972
- }), ba = D(() => {
3024
+ }), Ta = w(() => {
2973
3025
  const {
2974
3026
  modalProps: e,
2975
3027
  formProps: t
2976
- } = re(), o = G();
2977
- return () => s(Jt, O($(e == null ? void 0 : e.value, "slots"), {
3028
+ } = re(), a = G();
3029
+ return () => s(en, O(A(e == null ? void 0 : e.value, "slots"), {
2978
3030
  onOk: () => {
2979
- var a;
2980
- (a = o.value) == null || a.submit();
3031
+ var o;
3032
+ (o = a.value) == null || o.submit();
2981
3033
  }
2982
3034
  }), {
2983
3035
  default: () => [s(et, O({
2984
- ref: o
2985
- }, $(t == null ? void 0 : t.value, "slots")), y(t == null ? void 0 : t.value, "slots"))],
2986
- ...y(e == null ? void 0 : e.value, "slots")
3036
+ ref: a
3037
+ }, A(t == null ? void 0 : t.value, "slots")), m(t == null ? void 0 : t.value, "slots"))],
3038
+ ...m(e == null ? void 0 : e.value, "slots")
2987
3039
  });
2988
3040
  });
2989
3041
  export {
2990
- ft as AddButton,
2991
- nr as ColumnSetting,
2992
- K as CurdAction,
3042
+ yt as AddButton,
3043
+ ir as ColumnSetting,
3044
+ x as CurdAction,
2993
3045
  Ie as CurdAddAction,
2994
3046
  de as CurdCurrentMode,
2995
- Yt as CurdMethods,
2996
- k as CurdSubAction,
2997
- B as ElementKeys,
3047
+ Zt as CurdMethods,
3048
+ j as CurdSubAction,
3049
+ U as ElementKeys,
2998
3050
  te as FormAction,
2999
- Gr as FormRulePrefixMap,
3000
- Jr as LogonUser,
3001
- Wt as LogonUserKey,
3002
- Qr as MustLogon,
3003
- Zr as PerSuffix,
3004
- ea as Permission,
3005
- Rr as ProConfig,
3006
- We as ProCurd,
3007
- Er as ProCurdDesc,
3008
- va as ProCurdDescConnect,
3051
+ ta as FormRulePrefixMap,
3052
+ oa as LogonUser,
3053
+ Gt as LogonUserKey,
3054
+ ua as MustLogon,
3055
+ ca as PerSuffix,
3056
+ la as Permission,
3057
+ Hr as ProConfig,
3058
+ ze as ProCurd,
3059
+ wr as ProCurdDesc,
3060
+ Ea as ProCurdDescConnect,
3009
3061
  et as ProCurdForm,
3010
- ya as ProCurdFormConnect,
3011
- Pr as ProCurdList,
3012
- fa as ProCurdListConnect,
3013
- Jt as ProCurdModal,
3014
- ha as ProCurdModalForm,
3015
- ba as ProCurdModalFormConnect,
3016
- ir as ProDesc,
3017
- Hr as ProForm,
3018
- Wr as ProFormList,
3062
+ Ca as ProCurdFormConnect,
3063
+ $r as ProCurdList,
3064
+ pa as ProCurdListConnect,
3065
+ en as ProCurdModal,
3066
+ Ma as ProCurdModalForm,
3067
+ Ta as ProCurdModalFormConnect,
3068
+ gr as ProDesc,
3069
+ ea as ProForm,
3070
+ Zr as ProFormList,
3019
3071
  Se as ProGrid,
3020
- ca as ProLayout,
3021
- sr as ProList,
3022
- da as ProModalCurd,
3023
- De as ProModule,
3024
- Gt as ProOperate,
3025
- na as ProPage,
3026
- ma as ProPageCurd,
3027
- Xr as ProSearchForm,
3028
- ua as ProShowDate,
3029
- ra as ProShowDigit,
3030
- aa as ProShowOptions,
3031
- je as ProShowText,
3032
- oa as ProShowTree,
3033
- ta as ProTable,
3034
- mr as ProTypography,
3035
- sa as ProUploadList,
3036
- la as ProUploaderText,
3072
+ va as ProLayout,
3073
+ br as ProList,
3074
+ Sa as ProModalCurd,
3075
+ we as ProModule,
3076
+ Yt as ProOperate,
3077
+ ia as ProPage,
3078
+ Pa as ProPageCurd,
3079
+ na as ProSearchForm,
3080
+ ya as ProShowDate,
3081
+ da as ProShowDigit,
3082
+ fa as ProShowOptions,
3083
+ Re as ProShowText,
3084
+ ma as ProShowTree,
3085
+ sa as ProTable,
3086
+ Pr as ProTypography,
3087
+ ba as ProUploadList,
3088
+ ha as ProUploaderText,
3037
3089
  Me as RequestAction,
3038
- Fe as SearchMode,
3039
- Bn as Wrapper,
3040
- jt as convertPathToList,
3041
- An as convertResData,
3090
+ kn as RouterMethods,
3091
+ Le as SearchMode,
3092
+ _n as Wrapper,
3093
+ Ut as convertPathToList,
3094
+ Rn as convertResData,
3042
3095
  ge as createExpose,
3043
- zr as createExposeObj,
3044
- _r as createFormItemCompFn,
3045
- ia as createModule,
3046
- jr as createProConfig,
3047
- cr as defaultPage,
3048
- le as filterSlotsByPrefix,
3096
+ Jr as createExposeObj,
3097
+ ra as createFormItemCompFn,
3098
+ ga as createModule,
3099
+ Wr as createProConfig,
3100
+ vr as defaultPage,
3101
+ se as filterSlotsByPrefix,
3049
3102
  ie as getColumnFormItemName,
3050
- Ft as getColumnValueType,
3051
- Un as getFirstPropName,
3052
- Je as getFormItemEl,
3053
- Qe as getItemEl,
3054
- Wn as getSignValue,
3055
- zn as getValidValues,
3056
- kn as isValidConfig,
3057
- Vr as mergeStateToList,
3103
+ Rt as getColumnValueType,
3104
+ Xn as getFirstPropName,
3105
+ Qe as getFormItemEl,
3106
+ Je as getItemEl,
3107
+ Zn as getSignValue,
3108
+ Jn as getValidValues,
3109
+ Gn as isValidConfig,
3110
+ Fe as mergeState,
3111
+ Qr as mergeStateToList,
3058
3112
  he as proBaseProps,
3059
- hr as provideProCurd,
3060
- Bt as provideProFormList,
3061
- Rn as provideProModule,
3113
+ Mr as provideProCurd,
3114
+ Vt as provideProFormList,
3115
+ Hn as provideProModule,
3062
3116
  Te as renderElement,
3063
3117
  Ze as renderElements,
3064
- _n as useAccess,
3065
- Yr as useAccessMgr,
3066
- $n as useComposeRequestActor,
3067
- Br as useDispatchMeta,
3068
- Ln as useDispatchStore,
3069
- kr as useDoneRequestActor,
3070
- Ur as useFailedRequestActor,
3071
- Gn as useFormSubmit,
3072
- Y as useGetCompByKey,
3073
- Ht as useHasPer,
3074
- Yn as useLogonUser,
3075
- On as useMetaRegister,
3118
+ rr as useAccess,
3119
+ aa as useAccessMgr,
3120
+ Fn as useComposeRequestActor,
3121
+ _r as useDispatchMeta,
3122
+ zn as useDispatchStore,
3123
+ Gr as useDoneRequestActor,
3124
+ Xr as useFailedRequestActor,
3125
+ tr as useFormSubmit,
3126
+ Q as useGetCompByKey,
3127
+ Xt as useHasPer,
3128
+ _t as useHasPer2,
3129
+ ar as useLogonUser,
3130
+ jn as useMetaRegister,
3076
3131
  Ye as useModuleEvent,
3077
3132
  ee as useProConfig,
3078
3133
  re as useProCurd,
3079
- Vt as useProForm,
3080
- Ut as useProFormList,
3081
- Fr as useProModal,
3134
+ Ht as useProForm,
3135
+ qt as useProFormList,
3136
+ Vr as useProModal,
3082
3137
  be as useProModule,
3083
- Kr as useProMsg,
3084
- Lr as useProNotify,
3085
- Dn as useProRouter,
3086
- rr as useProTable,
3087
- qr as useReadStore
3138
+ qr as useProMsg,
3139
+ zr as useProNotify,
3140
+ Lt as useProRouter,
3141
+ dr as useProTable,
3142
+ Yr as useReadStore
3088
3143
  };