@vue-start/pro 0.5.6 → 0.5.7

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