@vue-start/pro 0.5.37 → 0.5.39

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