@vue-start/pro 0.5.28 → 0.5.30

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