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