@vue-start/pro 0.5.18 → 0.5.20

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