@vue-start/pro 0.5.31 → 0.5.33

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