@vue-start/pro 0.5.37 → 0.5.38

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