@vue-start/pro 0.5.0 → 0.5.1

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,37 +1,37 @@
1
1
  var It = Object.defineProperty;
2
- var Mt = (e, t, n) => t in e ? It(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var X = (e, t, n) => (Mt(e, typeof t != "symbol" ? t + "" : t, n), n);
4
- import { defineComponent as M, provide as re, inject as Q, ref as j, computed as R, h as ie, isVNode as be, reactive as z, createVNode as h, Fragment as B, mergeProps as O, createTextVNode as je, toRef as Dt } from "vue";
5
- import { reduce as V, get as b, isFunction as w, map as A, isString as Te, forEach as ee, size as J, set as ae, pick as K, omit as C, isArray as ne, some as se, keys as $, head as Nt, isObject as Se, filter as x, split as Ot, isEmpty as Lt, mergeWith as At, startsWith as Rt, mapKeys as wt, has as Xe, debounce as $t, clone as kt, isBoolean as ue, every as Ft, sortBy as Je, cloneDeep as Kt } from "lodash";
6
- import { Observable as xt, filter as ve, tap as Pe, merge as jt, Subject as qt } from "rxjs";
7
- import { useEffect as W, useState as we, setReactiveValue as Qe, useWatch as Ye, useUpdateKey as Ut, useResizeObserver as Bt } from "@vue-start/hooks";
8
- import { useRequestProvide as ye, isDoneRequestActor as Ze, isFailedRequestActor as et } from "@vue-start/request";
9
- import { map as Vt, distinctUntilChanged as Gt } from "rxjs/operators";
10
- import { useRouter as _t, useRoute as zt } from "vue-router";
2
+ var Dt = (e, t, n) => t in e ? It(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var Y = (e, t, n) => (Dt(e, typeof t != "symbol" ? t + "" : t, n), n);
4
+ import { defineComponent as N, provide as se, inject as Z, ref as B, computed as w, h as de, isVNode as Se, reactive as W, createVNode as y, Fragment as H, mergeProps as O, createTextVNode as qe, toRef as Mt } from "vue";
5
+ import { reduce as _, get as S, isFunction as k, map as K, isString as Ie, forEach as te, size as X, set as ce, pick as q, omit as C, isArray as oe, some as le, keys as F, head as Nt, isObject as ve, filter as U, split as Ot, isEmpty as Lt, mergeWith as At, startsWith as Rt, mapKeys as Kt, has as Je, debounce as wt, clone as kt, isBoolean as ne, every as Ft, sortBy as Qe, cloneDeep as $t } from "lodash";
6
+ import { Observable as xt, filter as Pe, tap as Ee, merge as jt, Subject as qt } from "rxjs";
7
+ import { useEffect as J, useState as we, setReactiveValue as Ye, useWatch as Ze, useUpdateKey as Ut, useResizeObserver as Bt } from "@vue-start/hooks";
8
+ import { useRequestProvide as he, isDoneRequestActor as et, isFailedRequestActor as tt } from "@vue-start/request";
9
+ import { map as Vt, distinctUntilChanged as _t } from "rxjs/operators";
10
+ import { useRouter as Gt, useRoute as zt } from "vue-router";
11
11
  const Wt = () => ({
12
12
  elementMap: { type: Object },
13
13
  formElementMap: { type: Object },
14
14
  columns: { type: Array },
15
15
  columnState: { type: Object }
16
- }), de = Wt(), Ht = () => ({
16
+ }), me = Wt(), Ht = () => ({
17
17
  elementMap: { type: Object },
18
18
  formElementMap: { type: Object },
19
19
  registerStores: { type: Array },
20
20
  registerActors: { type: Array },
21
21
  registerMetas: { type: Array }
22
- }), $e = Symbol("pro-config"), Y = () => Q($e) || {}, dr = M({
22
+ }), ke = Symbol("pro-config"), ee = () => Z(ke) || {}, Jn = N({
23
23
  props: {
24
24
  ...Ht()
25
25
  },
26
26
  setup: (e, { slots: t }) => {
27
- const n = V(e.registerStores, (c, f) => ({ ...c, [f.key]: f }), {}), s = V(e.registerActors, (c, f) => ({ ...c, [f.actor.name]: f }), {}), o = V(e.registerMetas, (c, f) => ({ ...c, [f.actorName]: f }), {});
27
+ const n = _(e.registerStores, (c, m) => ({ ...c, [m.key]: m }), {}), s = _(e.registerActors, (c, m) => ({ ...c, [m.actor.name]: m }), {}), o = _(e.registerMetas, (c, m) => ({ ...c, [m.actorName]: m }), {});
28
28
  ln(o, s);
29
- const { dispatchRequest: a } = ye(), r = (c, f, p) => {
30
- const g = b(s, c);
31
- if (!!g)
32
- return a(g.actor, f, p);
29
+ const { dispatchRequest: a } = he(), r = (c, m, f) => {
30
+ const b = S(s, c);
31
+ if (!!b)
32
+ return a(b.actor, m, f);
33
33
  };
34
- return re($e, {
34
+ return se(ke, {
35
35
  elementMap: e.elementMap,
36
36
  formElementMap: e.formElementMap,
37
37
  registerStoreMap: n,
@@ -43,10 +43,10 @@ const Wt = () => ({
43
43
  return (c = t.default) == null ? void 0 : c.call(t);
44
44
  };
45
45
  }
46
- }), mr = (e = {}) => (t) => {
47
- t.provide($e, e);
48
- }, Xt = Object.prototype.hasOwnProperty, qe = (e, t) => e === t ? e !== 0 || t !== 0 || 1 / e === 1 / t : e !== e && t !== t, Jt = (e, t) => {
49
- if (qe(e, t))
46
+ }), Qn = (e = {}) => (t) => {
47
+ t.provide(ke, e);
48
+ }, Xt = Object.prototype.hasOwnProperty, Ue = (e, t) => e === t ? e !== 0 || t !== 0 || 1 / e === 1 / t : e !== e && t !== t, Jt = (e, t) => {
49
+ if (Ue(e, t))
50
50
  return !0;
51
51
  if (typeof e != "object" || e === null || typeof t != "object" || t === null)
52
52
  return !1;
@@ -54,10 +54,10 @@ const Wt = () => ({
54
54
  if (n.length !== s.length)
55
55
  return !1;
56
56
  for (let o = 0; o < n.length; o++)
57
- if (!Xt.call(t, n[o]) || !qe(e[n[o]], t[n[o]]))
57
+ if (!Xt.call(t, n[o]) || !Ue(e[n[o]], t[n[o]]))
58
58
  return !1;
59
59
  return !0;
60
- }, Qt = "$store", Ie = () => Q(Qt), Yt = (e, t) => (n = {}, s) => {
60
+ }, Qt = "$store", De = () => Z(Qt), Yt = (e, t) => (n = {}, s) => {
61
61
  const o = typeof e == "function" ? e(s) : e;
62
62
  if (o === "")
63
63
  return n;
@@ -68,12 +68,12 @@ const Wt = () => ({
68
68
  };
69
69
  class Zt {
70
70
  constructor(t) {
71
- X(this, "group");
72
- X(this, "name");
73
- X(this, "stage");
74
- X(this, "effect");
75
- X(this, "arg");
76
- X(this, "opts");
71
+ Y(this, "group");
72
+ Y(this, "name");
73
+ Y(this, "stage");
74
+ Y(this, "effect");
75
+ Y(this, "arg");
76
+ Y(this, "opts");
77
77
  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 || {};
78
78
  }
79
79
  static of(t) {
@@ -138,9 +138,9 @@ class Me extends xt {
138
138
  const c = this.mapper(r);
139
139
  return o(c, this._value) || (this._value = c), this._value;
140
140
  }),
141
- Gt()
141
+ _t()
142
142
  ).subscribe(a));
143
- X(this, "_value");
143
+ Y(this, "_value");
144
144
  this.state$ = n, this.mapper = s;
145
145
  }
146
146
  static from(n, s) {
@@ -152,7 +152,7 @@ class Me extends xt {
152
152
  }
153
153
  const en = (e, t) => {
154
154
  const [n, s] = we(t || e.value);
155
- return W(() => {
155
+ return J(() => {
156
156
  const o = e.subscribe((a) => {
157
157
  s(a);
158
158
  });
@@ -161,8 +161,8 @@ const en = (e, t) => {
161
161
  };
162
162
  }, void 0), n;
163
163
  }, tn = (e, t) => {
164
- const n = j(t || e.value);
165
- return W(() => {
164
+ const n = B(t || e.value);
165
+ return J(() => {
166
166
  const s = e.subscribe((o) => {
167
167
  n.value = o;
168
168
  });
@@ -170,33 +170,33 @@ const en = (e, t) => {
170
170
  s && s.unsubscribe();
171
171
  };
172
172
  }, []), n;
173
- }, nn = (e, t) => Me.from(e, t), rn = (e) => nn(Ie(), e || ((t) => t)), an = Zt.of("state"), tt = an.named("update").effectOn(
173
+ }, nn = (e, t) => Me.from(e, t), rn = (e) => nn(De(), e || ((t) => t)), an = Zt.of("state"), nt = an.named("update").effectOn(
174
174
  (e) => e.opts.key,
175
175
  (e, t) => t.arg(e)
176
- ), nt = () => {
177
- const e = Ie();
176
+ ), rt = () => {
177
+ const e = De();
178
178
  return (t, n, s, o) => {
179
- const a = `${s ? "$" : ""}${t}`, r = w(o) ? o() : o;
180
- tt.with(
181
- (c = r) => w(n) ? n(c) : n,
179
+ const a = `${s ? "$" : ""}${t}`, r = k(o) ? o() : o;
180
+ nt.with(
181
+ (c = r) => k(n) ? n(c) : n,
182
182
  { key: a }
183
183
  ).invoke(e);
184
184
  };
185
185
  }, on = (e, t, n) => {
186
- const s = `${n ? "$" : ""}${e}`, o = w(t) ? t() : t, a = Ie(), r = (p) => tt.with(
187
- (g = o) => w(p) ? p(g) : p,
186
+ const s = `${n ? "$" : ""}${e}`, o = k(t) ? t() : t, a = De(), r = (f) => nt.with(
187
+ (b = o) => k(f) ? f(b) : f,
188
188
  { key: s }
189
- ).invoke(a), c = Me.from(a, (p) => b(p, [s], o));
189
+ ).invoke(a), c = Me.from(a, (f) => S(f, [s], o));
190
190
  return [en(c), r];
191
191
  }, sn = (e, t, n = !1) => () => {
192
192
  const [s, o] = on(e, t, n);
193
193
  return [s, o];
194
- }, rt = (e) => (t, n) => {
195
- const { requestSubject$: s } = ye(), o = new Set(A(t, (a) => Te(a) ? a : a.name));
196
- W(() => {
194
+ }, at = (e) => (t, n) => {
195
+ const { requestSubject$: s } = he(), o = new Set(K(t, (a) => Ie(a) ? a : a.name));
196
+ J(() => {
197
197
  const a = s.pipe(
198
- ve(e),
199
- Pe((r) => {
198
+ Pe(e),
199
+ Ee((r) => {
200
200
  o.has(r.name) && n(r);
201
201
  })
202
202
  ).subscribe();
@@ -204,74 +204,74 @@ const en = (e, t) => {
204
204
  a.unsubscribe();
205
205
  };
206
206
  }, []);
207
- }, fr = rt(Ze), pr = rt(et), cn = (e, t, n) => {
208
- const { requestSubject$: s, dispatchRequest: o } = ye(), a = new Set(A(e, (c) => Te(c) ? c : c.name)), r = {};
209
- W(() => {
207
+ }, Yn = at(et), Zn = at(tt), cn = (e, t, n) => {
208
+ const { requestSubject$: s, dispatchRequest: o } = he(), a = new Set(K(e, (c) => Ie(c) ? c : c.name)), r = {};
209
+ J(() => {
210
210
  const c = jt(
211
211
  s.pipe(
212
- ve(Ze),
213
- Pe((f) => {
214
- var p, g;
215
- a.has(f.name) && ((p = t.onSuccess) == null || p.call(t, f), (g = t.onFinish) == null || g.call(t, f), r[f.name] = void 0);
212
+ Pe(et),
213
+ Ee((m) => {
214
+ var f, b;
215
+ a.has(m.name) && ((f = t.onSuccess) == null || f.call(t, m), (b = t.onFinish) == null || b.call(t, m), r[m.name] = void 0);
216
216
  })
217
217
  ),
218
218
  s.pipe(
219
- ve(et),
220
- Pe((f) => {
221
- var p, g;
222
- a.has(f.name) && ((p = t.onFailed) == null || p.call(t, f), (g = t.onFinish) == null || g.call(t, f), r[f.name] = void 0);
219
+ Pe(tt),
220
+ Ee((m) => {
221
+ var f, b;
222
+ a.has(m.name) && ((f = t.onFailed) == null || f.call(t, m), (b = t.onFinish) == null || b.call(t, m), r[m.name] = void 0);
223
223
  })
224
224
  )
225
225
  ).subscribe();
226
226
  return () => {
227
- c.unsubscribe(), n && ee(r, (f) => {
228
- f && o({ ...f, stage: "CANCEL" });
227
+ c.unsubscribe(), n && te(r, (m) => {
228
+ m && o({ ...m, stage: "CANCEL" });
229
229
  });
230
230
  };
231
231
  }, []);
232
232
  }, un = (e, t, n) => {
233
233
  var o;
234
234
  const s = (o = e.res) == null ? void 0 : o.data;
235
- return t ? t(s, e) : n ? b(s, n) : s;
236
- }, yr = () => {
237
- const e = Ie(), { registerMetaMap: t, dispatchRequest: n } = Y();
235
+ return t ? t(s, e) : n ? S(s, n) : s;
236
+ }, er = () => {
237
+ const e = De(), { registerMetaMap: t, dispatchRequest: n } = ee();
238
238
  return (s) => {
239
- const o = b(t, s);
239
+ const o = S(t, s);
240
240
  if (!o)
241
241
  return;
242
242
  const a = o.storeName || s;
243
- b(e.value, a) || n(s, o.initParams || {});
243
+ S(e.value, a) || n(s, o.initParams || {});
244
244
  };
245
245
  }, ln = (e, t) => {
246
- const { requestSubject$: n } = ye(), s = nt(), o = (a) => {
247
- const r = b(e, a.name), c = b(t, a.name);
246
+ const { requestSubject$: n } = he(), s = rt(), o = (a) => {
247
+ const r = S(e, a.name), c = S(t, a.name);
248
248
  return !!(r && c && c.actor);
249
249
  };
250
- W(() => {
250
+ J(() => {
251
251
  const a = n.pipe(
252
- ve(o),
253
- Pe((r) => {
254
- const c = b(e, r.name);
252
+ Pe(o),
253
+ Ee((r) => {
254
+ const c = S(e, r.name);
255
255
  if (!c)
256
256
  return;
257
- const f = c.storeName || r.name, p = un(r, c.convertData, c.convertPath);
258
- s(f, p, !1, void 0);
257
+ const m = c.storeName || r.name, f = un(r, c.convertData, c.convertPath);
258
+ s(m, f, !1, void 0);
259
259
  })
260
260
  ).subscribe();
261
261
  return () => {
262
262
  a.unsubscribe();
263
263
  };
264
264
  }, []);
265
- }, at = (e) => e.formValueType || e.valueType || "text", oe = (e) => {
265
+ }, ot = (e) => e.formValueType || e.valueType || "text", ue = (e) => {
266
266
  var t;
267
267
  return ((t = e.formItemProps) == null ? void 0 : t.name) || e.dataIndex;
268
- }, ot = (e, t, n = !0) => {
268
+ }, st = (e, t, n = !0) => {
269
269
  var c;
270
- const s = at(t), o = b(e, s);
270
+ const s = ot(t), o = S(e, s);
271
271
  if (!o)
272
272
  return null;
273
- const a = oe(t), r = n ? t.formItemProps : C(t.formItemProps, "rules");
274
- return ie(o, {
273
+ const a = ue(t), r = n ? t.formItemProps : C(t.formItemProps, "rules");
274
+ return de(o, {
275
275
  key: a,
276
276
  name: a,
277
277
  label: t.title,
@@ -279,72 +279,72 @@ const en = (e, t) => {
279
279
  fieldProps: C(t.formFieldProps, "slots"),
280
280
  showProps: t.showProps
281
281
  }, (c = t.formFieldProps) == null ? void 0 : c.slots);
282
- }, ke = (e, t, n) => {
282
+ }, Fe = (e, t, n) => {
283
283
  var a;
284
- const s = t.valueType || "text", o = b(e, s);
285
- return o ? ie(o, {
284
+ const s = t.valueType || "text", o = S(e, s);
285
+ return o ? de(o, {
286
286
  ...C(t.formFieldProps, "slots"),
287
287
  showProps: t.showProps,
288
288
  value: n
289
289
  }, (a = t.formFieldProps) == null ? void 0 : a.slots) : null;
290
- }, Fe = (e, t) => A(t, (n) => me(e, n)), st = (e, t) => {
290
+ }, $e = (e, t) => K(t, (n) => fe(e, n)), ct = (e, t) => {
291
291
  var o;
292
292
  const n = t.elementProps, s = {
293
293
  ...t.elementProps
294
294
  };
295
- return ee((o = t.highConfig$) == null ? void 0 : o.registerPropsTrans, (a) => {
296
- const r = b(n, a.name);
297
- if (!(!r || be(r))) {
298
- if (ne(r)) {
299
- if (se(r, (c) => be(c)))
295
+ return te((o = t.highConfig$) == null ? void 0 : o.registerPropsTrans, (a) => {
296
+ const r = S(n, a.name);
297
+ if (!(!r || Se(r))) {
298
+ if (oe(r)) {
299
+ if (le(r, (c) => Se(c)))
300
300
  return;
301
- ae(s, a.name, Fe(e, r));
301
+ ce(s, a.name, $e(e, r));
302
302
  return;
303
303
  }
304
- !r.elementType || (a.isFun ? ae(s, a.name, (...c) => {
305
- const f = a.needParams ? {
304
+ !r.elementType || (a.isFun ? ce(s, a.name, (...c) => {
305
+ const m = a.needParams ? {
306
306
  ...r.elementProps,
307
307
  params$: c
308
308
  } : r.elementProps;
309
- return me(e, {
309
+ return fe(e, {
310
310
  ...r,
311
- elementProps: f
311
+ elementProps: m
312
312
  });
313
- }) : ae(s, a.name, me(e, r)));
313
+ }) : ce(s, a.name, fe(e, r)));
314
314
  }
315
315
  }), s;
316
- }, ct = (e, t) => {
317
- const n = J(t.children) > 0 ? Fe(e, t.children) : void 0, s = t.childrenSlotName || "default", o = C(t.slots, n ? s : "");
318
- return ee($(o), (a) => {
316
+ }, ut = (e, t) => {
317
+ const n = X(t.children) > 0 ? $e(e, t.children) : void 0, s = t.childrenSlotName || "default", o = C(t.slots, n ? s : "");
318
+ return te(F(o), (a) => {
319
319
  const r = o[a];
320
- r && !w(r) && r.elementType && (o[a] = (...c) => {
321
- const f = r.needParams ? {
320
+ r && !k(r) && r.elementType && (o[a] = (...c) => {
321
+ const m = r.needParams ? {
322
322
  ...r.elementProps,
323
323
  params$: c
324
324
  } : r.elementProps;
325
- return me(e, {
325
+ return fe(e, {
326
326
  ...r,
327
- elementProps: f
327
+ elementProps: m
328
328
  });
329
329
  });
330
330
  }), {
331
331
  [s]: n ? () => n : void 0,
332
332
  ...o
333
333
  };
334
- }, me = (e, t) => {
335
- const n = b(e, t.elementType) || t.elementType;
334
+ }, fe = (e, t) => {
335
+ const n = S(e, t.elementType) || t.elementType;
336
336
  if (t.highConfig$)
337
- return ie(mn, {
337
+ return de(mn, {
338
338
  key: t.elementId,
339
339
  elementMap: e,
340
340
  elementConfig: t
341
341
  });
342
- const s = ct(e, t), o = st(e, t);
343
- return ie(n, {
342
+ const s = ut(e, t), o = ct(e, t);
343
+ return de(n, {
344
344
  key: t.elementId,
345
345
  ...o
346
346
  }, s);
347
- }, dn = (e) => ne(e) ? Nt(e) : Te(e) && e.indexOf(".") > 0 ? e.substring(0, e.indexOf(".")) : e, mn = M({
347
+ }, dn = (e) => oe(e) ? Nt(e) : Ie(e) && e.indexOf(".") > 0 ? e.substring(0, e.indexOf(".")) : e, mn = N({
348
348
  props: {
349
349
  elementMap: {
350
350
  type: Object
@@ -357,42 +357,42 @@ const en = (e, t) => {
357
357
  const {
358
358
  state: t,
359
359
  sendEvent: n
360
- } = he(), {
360
+ } = ge(), {
361
361
  elementMap: s,
362
362
  elementConfig: o
363
- } = e, a = o.highConfig$, r = st(s, o), c = V(a.registerEventList, (m, u) => ({
364
- ...m,
363
+ } = e, a = o.highConfig$, r = ct(s, o), c = _(a.registerEventList, (d, u) => ({
364
+ ...d,
365
365
  [u.name]: (...l) => {
366
366
  n({
367
367
  type: u.sendEventName || o.elementId,
368
368
  payload: l
369
369
  });
370
370
  }
371
- }), {}), f = R(() => {
372
- if (!a.registerStateList || J(a.registerStateList) <= 0)
371
+ }), {}), m = w(() => {
372
+ if (!a.registerStateList || X(a.registerStateList) <= 0)
373
373
  return;
374
- const m = {
374
+ const d = {
375
375
  ...r
376
- }, u = A(a.registerStateList, (l) => {
377
- const y = l.mapName || l.name, i = b(t, l.name);
378
- return ae(m, y, i), dn(y);
376
+ }, u = K(a.registerStateList, (l) => {
377
+ const p = l.mapName || l.name, i = S(t, l.name);
378
+ return ce(d, p, i), dn(p);
379
379
  });
380
- return K(m, u);
381
- }), p = b(s, o.elementType) || o.elementType, g = ct(s, o);
382
- return () => b(f.value, "show$") === !1 ? null : ie(p, {
380
+ return q(d, u);
381
+ }), f = S(s, o.elementType) || o.elementType, b = ut(s, o);
382
+ return () => S(m.value, "show$") === !1 ? null : de(f, {
383
383
  key: o.elementId,
384
384
  ...r,
385
- ...C(f.value, "show$"),
385
+ ...C(m.value, "show$"),
386
386
  ...c
387
- }, g);
387
+ }, b);
388
388
  }
389
- }), ut = Symbol("pro-module"), he = () => Q(ut), fn = (e) => {
390
- re(ut, e);
391
- }, Ke = (e) => {
389
+ }), lt = Symbol("pro-module"), ge = () => Z(lt), fn = (e) => {
390
+ se(lt, e);
391
+ }, xe = (e) => {
392
392
  const {
393
393
  subject$: t
394
- } = he();
395
- W(() => {
394
+ } = ge();
395
+ J(() => {
396
396
  const n = t.subscribe({
397
397
  next: (s) => {
398
398
  e(s);
@@ -400,7 +400,7 @@ const en = (e, t) => {
400
400
  });
401
401
  return () => n.unsubscribe();
402
402
  }, []);
403
- }, fe = {
403
+ }, pe = {
404
404
  Success: "request-success$",
405
405
  Fail: "request-fail$"
406
406
  }, pn = () => ({
@@ -416,7 +416,7 @@ const en = (e, t) => {
416
416
  requests: {
417
417
  type: Array
418
418
  }
419
- }), Ne = M({
419
+ }), Oe = N({
420
420
  props: {
421
421
  ...pn()
422
422
  },
@@ -424,49 +424,49 @@ const en = (e, t) => {
424
424
  slots: t,
425
425
  expose: n
426
426
  }) => {
427
- const s = (u) => ne(u) ? Fe(e.elementMap, u) : me(e.elementMap, u), o = new qt(), a = (u) => {
427
+ const s = (u) => oe(u) ? $e(e.elementMap, u) : fe(e.elementMap, u), o = new qt(), a = (u) => {
428
428
  o.next(u);
429
- }, r = e.state || z({}), c = (u) => {
430
- const l = r[u.type], y = w(u.payload) ? u.payload(l) : u.payload;
431
- if (Se(l)) {
432
- Qe(r[u.type], y);
429
+ }, r = e.state || W({}), c = (u) => {
430
+ const l = r[u.type], p = k(u.payload) ? u.payload(l) : u.payload;
431
+ if (ve(l)) {
432
+ Ye(r[u.type], p);
433
433
  return;
434
434
  }
435
- r[u.type] = y;
435
+ r[u.type] = p;
436
436
  }, {
437
- dispatchRequest: f
438
- } = ye(), p = V(e.requests, (u, l) => {
439
- var y;
437
+ dispatchRequest: m
438
+ } = he(), f = _(e.requests, (u, l) => {
439
+ var p;
440
440
  return {
441
441
  ...u,
442
- [(y = l.actor) == null ? void 0 : y.name]: l
442
+ [(p = l.actor) == null ? void 0 : p.name]: l
443
443
  };
444
- }, {}), g = V(e.requests, (u, l) => ({
444
+ }, {}), b = _(e.requests, (u, l) => ({
445
445
  ...u,
446
446
  [l.action]: l
447
- }), {}), m = (u, ...l) => {
448
- const y = b(p, u) || b(g, u);
449
- if (!y)
447
+ }), {}), d = (u, ...l) => {
448
+ const p = S(f, u) || S(b, u);
449
+ if (!p)
450
450
  return;
451
451
  let i;
452
- y.convertParams ? i = y.convertParams(...l) : i = b(l, 0), y.loadingName && c({
453
- type: y.loadingName,
452
+ p.convertParams ? i = p.convertParams(...l) : i = S(l, 0), p.loadingName && c({
453
+ type: p.loadingName,
454
454
  payload: !0
455
- }), f(y.actor, i);
455
+ }), m(p.actor, i);
456
456
  };
457
- return cn($(p), {
457
+ return cn(F(f), {
458
458
  onSuccess: (u) => {
459
- var y, i;
460
- const l = b(p, u.name);
459
+ var p, i;
460
+ const l = S(f, u.name);
461
461
  if (l != null && l.stateName) {
462
- const d = l.convertData ? l.convertData(u) : (y = u.res) == null ? void 0 : y.data;
462
+ const g = l.convertData ? l.convertData(u) : (p = u.res) == null ? void 0 : p.data;
463
463
  c({
464
464
  type: l.stateName,
465
- payload: d
465
+ payload: g
466
466
  });
467
467
  }
468
468
  a({
469
- type: fe.Success,
469
+ type: pe.Success,
470
470
  payload: {
471
471
  actor: u,
472
472
  requestOpts: l
@@ -474,18 +474,18 @@ const en = (e, t) => {
474
474
  }), (i = l.onSuccess) == null || i.call(l, u);
475
475
  },
476
476
  onFailed: (u) => {
477
- var y;
478
- const l = b(p, u.name);
477
+ var p;
478
+ const l = S(f, u.name);
479
479
  a({
480
- type: fe.Fail,
480
+ type: pe.Fail,
481
481
  payload: {
482
482
  actor: u,
483
483
  requestOpts: l
484
484
  }
485
- }), (y = l.onFailed) == null || y.call(l, u);
485
+ }), (p = l.onFailed) == null || p.call(l, u);
486
486
  },
487
487
  onFinish: (u) => {
488
- const l = b(p, [u.name, "loadingName"]);
488
+ const l = S(f, [u.name, "loadingName"]);
489
489
  l && c({
490
490
  type: l,
491
491
  payload: !1
@@ -498,57 +498,74 @@ const en = (e, t) => {
498
498
  state: r,
499
499
  dispatch: c,
500
500
  requests: e.requests,
501
- sendRequest: m
501
+ sendRequest: d
502
502
  }), n({
503
503
  sendEvent: a,
504
- sendRequest: m
504
+ sendRequest: d
505
505
  }), () => {
506
506
  var u;
507
- return h(B, null, [J(e.elementConfigs) > 0 && s(e.elementConfigs), (u = t.default) == null ? void 0 : u.call(t)]);
507
+ return y(H, null, [X(e.elementConfigs) > 0 && s(e.elementConfigs), (u = t.default) == null ? void 0 : u.call(t)]);
508
508
  };
509
509
  }
510
- }), hr = () => {
511
- const e = nt(), { registerStoreMap: t } = Y();
510
+ }), tr = () => {
511
+ const e = rt(), { registerStoreMap: t } = ee();
512
512
  return (n, s) => {
513
- const o = b(t, n);
513
+ const o = S(t, n);
514
514
  !o || e(n, s, !!o.persist, o.initialState);
515
515
  };
516
- }, gr = (e) => {
517
- const { registerStoreMap: t } = Y(), n = b(t, e), s = `${n != null && n.persist ? "$" : ""}${n == null ? void 0 : n.key}`;
516
+ }, nr = (e) => {
517
+ const { registerStoreMap: t } = ee(), n = S(t, e), s = `${n != null && n.persist ? "$" : ""}${n == null ? void 0 : n.key}`;
518
518
  return tn(rn((a) => {
519
- const r = b(a, s);
520
- return r || (w(n == null ? void 0 : n.initialState) ? n == null ? void 0 : n.initialState() : n == null ? void 0 : n.initialState);
519
+ const r = S(a, s);
520
+ return r || (k(n == null ? void 0 : n.initialState) ? n == null ? void 0 : n.initialState() : n == null ? void 0 : n.initialState);
521
521
  }));
522
- }, lt = sn("access", void 0, !0), yn = () => {
523
- const [e] = lt();
522
+ }, it = sn("access", void 0, !0), yn = () => {
523
+ const [e] = it();
524
524
  return e;
525
- }, br = () => {
526
- const [e, t] = lt();
525
+ }, rr = () => {
526
+ const [e, t] = it();
527
527
  return [e, t, () => {
528
528
  t(void 0);
529
529
  }];
530
- }, Sr = M((e, { slots: t, emit: n }) => {
531
- const s = yn(), o = R(() => s && s.token);
532
- return W(() => {
530
+ }, ar = N((e, { slots: t, emit: n }) => {
531
+ const s = yn(), o = w(() => s && s.token);
532
+ return J(() => {
533
533
  o.value || n("toLogin");
534
534
  }, o), () => {
535
535
  var a;
536
536
  return o.value ? (a = t.default) == null ? void 0 : a.call(t) : null;
537
537
  };
538
- }), it = Symbol("logon-user"), vr = () => Q(it), Pr = M((e, { slots: t }) => {
538
+ }), dt = Symbol("logon-user"), or = () => Z(dt), sr = N((e, { slots: t }) => {
539
539
  const [n, s] = we(), [o, a] = we();
540
- return re(it, { user: n, setUser: s, per: o, setPer: a, opts: {} }), () => {
540
+ return se(dt, { user: n, setUser: s, per: o, setPer: a, opts: {} }), () => {
541
541
  var c;
542
542
  return (c = t.default) == null ? void 0 : c.call(t);
543
543
  };
544
- }), dt = "Loading$", hn = "Row$", gn = "Col$", bn = "Button$", Sn = "ProDescriptions$", vn = "ProDescriptionsItem$", Pn = "Pagination$", En = "Popover$", Cn = "Checkbox$", Tn = "Modal$", In = "Form$", Mn = "FormItem$", Dn = "Table$", Nn = "ProForm$", On = "ProSearchForm$", Ln = "ProTable$", H = () => {
545
- const { elementMap: e } = Y();
546
- return (t) => b(e, t);
544
+ }), x = {
545
+ LoadingKey: "Loading$",
546
+ RowKey: "Row$",
547
+ ColKey: "Col$",
548
+ ButtonKey: "Button$",
549
+ DescriptionsKey: "ProDescriptions$",
550
+ DescriptionsItemKey: "ProDescriptionsItem$",
551
+ PaginationKey: "Pagination$",
552
+ PopoverKey: "Popover$",
553
+ CheckboxKey: "Checkbox$",
554
+ ModalKey: "Modal$",
555
+ FormKey: "Form$",
556
+ FormItemKey: "FormItem$",
557
+ TableKey: "Table$",
558
+ ProFormKey: "ProForm$",
559
+ ProSearchFormKey: "ProSearchForm$",
560
+ ProTableKey: "ProTable$"
561
+ }, Q = () => {
562
+ const { elementMap: e } = ee();
563
+ return (t) => S(e, t);
547
564
  };
548
- function An(e) {
549
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !be(e);
565
+ function hn(e) {
566
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Se(e);
550
567
  }
551
- const Rn = () => ({
568
+ const gn = () => ({
552
569
  row: {
553
570
  type: Object,
554
571
  default: void 0
@@ -559,15 +576,15 @@ const Rn = () => ({
559
576
  items: {
560
577
  type: Array
561
578
  }
562
- }), Oe = M({
579
+ }), Le = N({
563
580
  props: {
564
- ...Rn()
581
+ ...gn()
565
582
  },
566
583
  setup: (e) => {
567
- const t = H(), n = t(hn), s = t(gn);
584
+ const t = Q(), n = t(x.RowKey), s = t(x.ColKey);
568
585
  return () => {
569
586
  let o;
570
- return !n || !s ? null : h(n, e.row, An(o = A(e.items, (a) => h(s, O({
587
+ return !n || !s ? null : y(n, e.row, hn(o = K(e.items, (a) => y(s, O({
571
588
  key: a.rowKey
572
589
  }, e.col, a.col), {
573
590
  default: () => [a.vNode]
@@ -576,27 +593,27 @@ const Rn = () => ({
576
593
  });
577
594
  };
578
595
  }
579
- }), wn = (e, t, n) => {
596
+ }), bn = (e, t, n) => {
580
597
  if (t) {
581
- const s = x($(t), (o) => !t[o]);
598
+ const s = U(F(t), (o) => !t[o]);
582
599
  return C(e, s);
583
600
  }
584
601
  if (n) {
585
- const s = x($(n), (o) => !n[o](e));
602
+ const s = U(F(n), (o) => !n[o](e));
586
603
  return C(e, s);
587
604
  }
588
605
  return e;
589
606
  }, mt = (e) => {
590
607
  if (!!e)
591
- return ne(e) ? e : e && Te(e) && e.indexOf(".") > 0 ? Ot(e, ".") : [e];
592
- }, De = (e, t, n) => !t || !n ? e : A(e, (s) => {
593
- const o = w(n) ? n(s) : b(s, n), a = b(t, o);
594
- return !a || Lt(a) || w(a) || !Se(a) ? s : At(s, a, (r, c) => {
595
- if (ne(r) || ne(c))
608
+ return oe(e) ? e : e && Ie(e) && e.indexOf(".") > 0 ? Ot(e, ".") : [e];
609
+ }, Ne = (e, t, n) => !t || !n ? e : K(e, (s) => {
610
+ const o = k(n) ? n(s) : S(s, n), a = S(t, o);
611
+ return !a || Lt(a) || k(a) || !ve(a) ? s : At(s, a, (r, c) => {
612
+ if (oe(r) || oe(c))
596
613
  return c;
597
614
  });
598
- }), ce = (e, t) => {
599
- const n = V(
615
+ }), ie = (e, t) => {
616
+ const n = _(
600
617
  e,
601
618
  (s, o) => ({
602
619
  ...s,
@@ -608,20 +625,20 @@ const Rn = () => ({
608
625
  {}
609
626
  );
610
627
  return n.originRef = t, n;
611
- }, Er = (e, t, n) => {
628
+ }, cr = (e, t, n) => {
612
629
  const s = { originRef: e, ...n };
613
- return t && J(t) > 0 && ee(t, (o) => {
630
+ return t && X(t) > 0 && te(t, (o) => {
614
631
  s[o] = (...a) => {
615
632
  var r, c;
616
633
  return (c = (r = e.value) == null ? void 0 : r[o]) == null ? void 0 : c.call(r, ...a);
617
634
  };
618
635
  }), s;
619
- }, ft = (e, t) => b(e, ["extra", t]) || b(e, t), le = (e, t) => {
620
- const n = $(e), s = `${t}-`, o = x(n, (r) => Rt(r, s)), a = K(e, o);
621
- return wt(a, (r) => r.replace(s, ""));
622
- }, pt = Symbol("pro-form-list"), yt = () => Q(pt), ht = (e) => {
623
- re(pt, e);
624
- }, $n = M({
636
+ }, ft = (e, t) => S(e, ["extra", t]) || S(e, t), re = (e, t) => {
637
+ const n = F(e), s = `${t}-`, o = U(n, (r) => Rt(r, s)), a = q(e, o);
638
+ return Kt(a, (r, c) => c.replace(s, ""));
639
+ }, pt = Symbol("pro-form-list"), yt = () => Z(pt), ht = (e) => {
640
+ se(pt, e);
641
+ }, Sn = N({
625
642
  props: {
626
643
  pathList: {
627
644
  type: Array
@@ -635,7 +652,7 @@ const Rn = () => ({
635
652
  var n;
636
653
  return (n = t.default) == null ? void 0 : n.call(t);
637
654
  })
638
- }), kn = () => ({
655
+ }), vn = () => ({
639
656
  rowKey: {
640
657
  type: String,
641
658
  default: "id"
@@ -644,59 +661,59 @@ const Rn = () => ({
644
661
  type: [String, Number, Array],
645
662
  required: !0
646
663
  }
647
- }), Cr = M({
664
+ }), ur = N({
648
665
  props: {
649
- ...kn()
666
+ ...vn()
650
667
  },
651
668
  setup: (e, {
652
669
  slots: t
653
670
  }) => {
654
- const s = H()(Mn), {
671
+ const s = Q()(x.FormItemKey), {
655
672
  formState: o,
656
673
  readonly: a
657
- } = bt(), r = yt(), c = mt(e.name), f = r != null && r.pathList ? [...r.pathList, ...c] : c, p = () => {
658
- let m = b(o, f);
659
- ne(m) || (m = []), m.push({
674
+ } = bt(), r = yt(), c = mt(e.name), m = r != null && r.pathList ? [...r.pathList, ...c] : c, f = () => {
675
+ let d = S(o, m);
676
+ oe(d) || (d = []), d.push({
660
677
  [e.rowKey]: new Date().valueOf()
661
- }), ae(o, f, m);
662
- }, g = (m) => {
663
- const u = b(o, f);
664
- J(u) <= 0 || u.splice(m, 1);
678
+ }), ce(o, m, d);
679
+ }, b = (d) => {
680
+ const u = S(o, m);
681
+ X(u) <= 0 || u.splice(d, 1);
665
682
  };
666
- return () => s ? h(s, C(e, "rowKey"), {
683
+ return () => s ? y(s, C(e, "rowKey"), {
667
684
  default: () => {
668
- var m;
669
- return [A(b(o, f), (u, l) => h($n, {
685
+ var d;
686
+ return [K(S(o, m), (u, l) => y(Sn, {
670
687
  key: u[e.rowKey] || l,
671
- pathList: [...f, l]
688
+ pathList: [...m, l]
672
689
  }, {
673
690
  default: () => {
674
- var y, i, d;
675
- return [h("div", {
691
+ var p, i, g;
692
+ return [y("div", {
676
693
  class: "pro-form-list-item"
677
- }, [(y = t.default) == null ? void 0 : y.call(t), !a.value && h(B, null, [h("div", {
694
+ }, [(p = t.default) == null ? void 0 : p.call(t), !a.value && y(H, null, [y("div", {
678
695
  class: "pro-form-list-item-add",
679
- onClick: p
680
- }, [(i = t.itemAdd) == null ? void 0 : i.call(t)]), h("div", {
696
+ onClick: f
697
+ }, [(i = t.itemAdd) == null ? void 0 : i.call(t)]), y("div", {
681
698
  class: "pro-form-list-item-minus",
682
- onClick: () => g(l)
683
- }, [(d = t.itemMinus) == null ? void 0 : d.call(t)])])])];
699
+ onClick: () => b(l)
700
+ }, [(g = t.itemMinus) == null ? void 0 : g.call(t)])])])];
684
701
  }
685
- })), !a.value && h("div", {
702
+ })), !a.value && y("div", {
686
703
  class: "pro-form-list-add",
687
- onClick: p
688
- }, [(m = t.add) == null ? void 0 : m.call(t)])];
704
+ onClick: f
705
+ }, [(d = t.add) == null ? void 0 : d.call(t)])];
689
706
  }
690
707
  }) : null;
691
708
  }
692
- }), gt = Symbol("pro-form"), bt = () => Q(gt), Fn = (e) => {
693
- re(gt, e);
709
+ }), gt = Symbol("pro-form"), bt = () => Z(gt), Pn = (e) => {
710
+ se(gt, e);
694
711
  };
695
- let U;
712
+ let V;
696
713
  (function(e) {
697
714
  e.RESET = "RESET", e.SUBMIT = "SUBMIT", e.CONTINUE = "CONTINUE";
698
- })(U || (U = {}));
699
- const Ue = () => ({
715
+ })(V || (V = {}));
716
+ const Be = () => ({
700
717
  clsName: {
701
718
  type: String,
702
719
  default: "pro-form"
@@ -742,12 +759,12 @@ const Ue = () => ({
742
759
  formMethods: {
743
760
  type: Array
744
761
  }
745
- }), Kn = M({
762
+ }), En = N({
746
763
  inheritAttrs: !1,
747
764
  props: {
748
- ...de,
749
- ...Ue(),
750
- ...C(Oe.props, "items")
765
+ ...me,
766
+ ...Be(),
767
+ ...C(Le.props, "items")
751
768
  },
752
769
  setup: (e, {
753
770
  slots: t,
@@ -758,103 +775,103 @@ const Ue = () => ({
758
775
  const {
759
776
  elementMap: a,
760
777
  formElementMap: r
761
- } = Y(), c = e.elementMap || a, f = e.formElementMap || r, p = e.model || z({}), g = e.showState || z({}), m = e.readonlyState || z({}), u = e.disableState || z({});
762
- W(() => {
763
- e.showStateRules && ee(e.showStateRules, (I, E) => {
764
- g[E] = I(p);
765
- }), e.readonlyStateRules && ee(e.readonlyStateRules, (I, E) => {
766
- m[E] = I(p);
767
- }), e.disableStateRules && ee(e.disableStateRules, (I, E) => {
768
- u[E] = I(p);
778
+ } = ee(), c = e.elementMap || a, m = e.formElementMap || r, f = e.model || W({}), b = e.showState || W({}), d = e.readonlyState || W({}), u = e.disableState || W({});
779
+ J(() => {
780
+ e.showStateRules && te(e.showStateRules, (v, h) => {
781
+ b[h] = v(f);
782
+ }), e.readonlyStateRules && te(e.readonlyStateRules, (v, h) => {
783
+ d[h] = v(f);
784
+ }), e.disableStateRules && te(e.disableStateRules, (v, h) => {
785
+ u[h] = v(f);
769
786
  });
770
- }, p);
771
- const l = R(() => e.readonly), y = R(() => De(e.columns, e.columnState, (I) => oe(I))), i = (I) => {
772
- const E = wn(I, g, e.showStateRules);
773
- n("finish", E, I);
774
- }, d = j();
775
- s(ce(e.formMethods || [], d)), Fn({
776
- formState: p,
777
- showState: g,
778
- readonlyState: m,
787
+ }, f);
788
+ const l = w(() => e.readonly), p = w(() => Ne(e.columns, e.columnState, (v) => ue(v))), i = (v) => {
789
+ const h = bn(v, b, e.showStateRules);
790
+ n("finish", h, v);
791
+ }, g = B();
792
+ s(ie(e.formMethods || [], g)), Pn({
793
+ formState: f,
794
+ showState: b,
795
+ readonlyState: d,
779
796
  disableState: u,
780
797
  elementMap: c,
781
- formElementMap: f,
798
+ formElementMap: m,
782
799
  readonly: l,
783
- columns: y,
784
- formRef: d,
800
+ columns: p,
801
+ formRef: g,
785
802
  ...e.provideExtra
786
803
  });
787
- const v = [{
788
- value: U.RESET,
804
+ const M = [{
805
+ value: V.RESET,
789
806
  label: "\u91CD\u7F6E"
790
807
  }, {
791
- value: U.SUBMIT,
808
+ value: V.SUBMIT,
792
809
  label: "\u63D0\u4EA4",
793
810
  extraProps: {
794
811
  type: "primary"
795
812
  }
796
- }], S = R(() => {
797
- const I = e.operate, E = (I == null ? void 0 : I.items) || v;
798
- return A(E, (N) => (!N.onClick && !b(I == null ? void 0 : I.itemState, [N.value, "onClick"]) && (N.value === U.RESET ? N.onClick = () => {
799
- var F;
800
- if (I != null && I.onReset) {
801
- I.onReset();
813
+ }], I = w(() => {
814
+ const v = e.operate, h = (v == null ? void 0 : v.items) || M;
815
+ return K(h, (T) => (!T.onClick && !S(v == null ? void 0 : v.itemState, [T.value, "onClick"]) && (T.value === V.RESET ? T.onClick = () => {
816
+ var $;
817
+ if (v != null && v.onReset) {
818
+ v.onReset();
802
819
  return;
803
820
  }
804
- (F = d.value) == null || F.resetFields();
805
- } : N.value === U.SUBMIT ? N.onClick = () => {
806
- var F;
807
- if (I != null && I.onSubmit) {
808
- I.onSubmit();
821
+ ($ = g.value) == null || $.resetFields();
822
+ } : T.value === V.SUBMIT ? T.onClick = () => {
823
+ var $;
824
+ if (v != null && v.onSubmit) {
825
+ v.onSubmit();
809
826
  return;
810
827
  }
811
- (F = d.value) == null || F.submit();
812
- } : N.value === U.CONTINUE && (I == null ? void 0 : I.onContinue) && (N.onClick = () => {
813
- I.onContinue();
814
- })), N.value === U.SUBMIT && !Xe(N, "loading") && (N.loading = e.submitLoading), N));
815
- }), P = (I) => {
816
- const E = oe(I);
817
- return E && t[E] ? t[E](I, p) : ot(f, I, e.needRules);
828
+ ($ = g.value) == null || $.submit();
829
+ } : T.value === V.CONTINUE && (v == null ? void 0 : v.onContinue) && (T.onClick = () => {
830
+ v.onContinue();
831
+ })), T.value === V.SUBMIT && !Je(T, "loading") && (T.loading = e.submitLoading), T));
832
+ }), P = (v) => {
833
+ const h = ue(v);
834
+ return h && t[h] ? t[h](v, f) : st(m, v, e.needRules);
818
835
  };
819
836
  ht({});
820
- const k = $(Ue()), D = $(C(Oe.props, "items")), Z = b(a, In);
821
- return () => Z ? h(Z, O({
822
- ref: d,
837
+ const D = F(Be()), L = F(C(Le.props, "items")), R = S(a, x.FormKey);
838
+ return () => R ? y(R, O({
839
+ ref: g,
823
840
  class: e.clsName
824
- }, C(o, "onFinish"), C(e, ...k, ...D, "onFinish", "operate"), {
825
- model: p,
841
+ }, C(o, "onFinish"), C(e, ...D, ...L, "onFinish", "operate"), {
842
+ model: f,
826
843
  onFinish: i
827
844
  }), {
828
845
  default: () => {
829
- var I, E, N;
830
- return [(I = t.start) == null ? void 0 : I.call(t), f && J(y.value) > 0 && h(B, null, [e.row ? h(Oe, {
846
+ var v, h, T;
847
+ return [(v = t.start) == null ? void 0 : v.call(t), m && X(p.value) > 0 && y(H, null, [e.row ? y(Le, {
831
848
  row: e.row,
832
849
  col: e.col,
833
- items: A(y.value, (F) => ({
834
- rowKey: oe(F),
835
- vNode: P(F),
836
- col: b(F, ["extra", "col"])
850
+ items: K(p.value, ($) => ({
851
+ rowKey: ue($),
852
+ vNode: P($),
853
+ col: S($, ["extra", "col"])
837
854
  }))
838
- }, null) : A(y.value, (F) => P(F))]), (E = t.default) == null ? void 0 : E.call(t), e.operate && h(St, O({
855
+ }, null) : K(p.value, ($) => P($))]), (h = t.default) == null ? void 0 : h.call(t), e.operate && y(St, O({
839
856
  clsName: "pro-form-operate",
840
- items: S.value
841
- }, C(e.operate, "items", "onReset", "onSubmit", "onContinue")), null), (N = t.end) == null ? void 0 : N.call(t)];
857
+ items: I.value
858
+ }, C(e.operate, "items", "onReset", "onSubmit", "onContinue")), null), (T = t.end) == null ? void 0 : T.call(t)];
842
859
  }
843
860
  }) : null;
844
861
  }
845
862
  });
846
- let Ee;
863
+ let Ce;
847
864
  (function(e) {
848
865
  e.AUTO = "AUTO", e.MANUAL = "MANUAL";
849
- })(Ee || (Ee = {}));
850
- const Be = () => ({
866
+ })(Ce || (Ce = {}));
867
+ const Ve = () => ({
851
868
  initEmit: {
852
869
  type: Boolean,
853
870
  default: !0
854
871
  },
855
872
  searchMode: {
856
873
  type: String,
857
- default: Ee.AUTO
874
+ default: Ce.AUTO
858
875
  },
859
876
  debounceKeys: {
860
877
  type: Array
@@ -867,9 +884,9 @@ const Be = () => ({
867
884
  type: Number,
868
885
  default: 800
869
886
  }
870
- }), Tr = M({
887
+ }), lr = N({
871
888
  props: {
872
- ...Be(),
889
+ ...Ve(),
873
890
  needRules: {
874
891
  type: Boolean,
875
892
  default: !1
@@ -879,39 +896,39 @@ const Be = () => ({
879
896
  slots: t,
880
897
  expose: n
881
898
  }) => {
882
- const o = H()(Nn), a = e.model || z({}), r = new Set(e.debounceTypes), c = A(x(e.columns, (y) => {
883
- const i = at(y);
899
+ const o = Q()(x.ProFormKey), a = e.model || W({}), r = new Set(e.debounceTypes), c = K(U(e.columns, (p) => {
900
+ const i = ot(p);
884
901
  return r.has(i);
885
- }), (y) => oe(y)), f = j(), p = e.formMethods || [];
886
- n(ce(p, f));
887
- const g = () => {
888
- var y;
889
- (y = f.value) == null || y.submit();
890
- }, m = $t(() => {
891
- g();
902
+ }), (p) => ue(p)), m = B(), f = e.formMethods || [];
903
+ n(ie(f, m));
904
+ const b = () => {
905
+ var p;
906
+ (p = m.value) == null || p.submit();
907
+ }, d = wt(() => {
908
+ b();
892
909
  }, e.debounceTime);
893
- W(() => {
894
- e.initEmit && g();
910
+ J(() => {
911
+ e.initEmit && b();
895
912
  }, []);
896
- const u = (y, i, d) => se(d, (v) => b(y, v) !== b(i, v));
897
- Ye((y, i) => {
898
- if (e.searchMode !== Ee.AUTO)
913
+ const u = (p, i, g) => le(g, (M) => S(p, M) !== S(i, M));
914
+ Ze((p, i) => {
915
+ if (e.searchMode !== Ce.AUTO)
899
916
  return;
900
- const d = J(e.debounceKeys) > 0 ? e.debounceKeys : c;
901
- if (J(d) > 0 && u(y, i, d)) {
902
- m();
917
+ const g = X(e.debounceKeys) > 0 ? e.debounceKeys : c;
918
+ if (X(g) > 0 && u(p, i, g)) {
919
+ d();
903
920
  return;
904
921
  }
905
- g();
922
+ b();
906
923
  }, () => kt(a));
907
- const l = $(C(Be(), "columns"));
908
- return () => o ? h(o, O({
909
- ref: f
924
+ const l = F(C(Ve(), "columns"));
925
+ return () => o ? y(o, O({
926
+ ref: m
910
927
  }, C(e, l), {
911
928
  model: a
912
929
  }), t) : null;
913
930
  }
914
- }), Ve = () => ({
931
+ }), _e = () => ({
915
932
  readonly: {
916
933
  type: Boolean,
917
934
  default: void 0
@@ -925,51 +942,51 @@ const Be = () => ({
925
942
  slots: {
926
943
  type: Object
927
944
  }
928
- }), Ir = (e, t) => ({
945
+ }), ir = (e, t) => ({
929
946
  InputComp: n,
930
947
  valueType: s,
931
948
  name: o
932
- }) => M({
949
+ }) => N({
933
950
  name: o,
934
951
  props: {
935
952
  ...e.props,
936
- ...Ve()
953
+ ..._e()
937
954
  },
938
955
  setup: (a, {
939
956
  slots: r
940
957
  }) => {
941
958
  const {
942
959
  formState: c,
943
- showState: f,
944
- readonlyState: p,
945
- disableState: g,
946
- readonly: m,
960
+ showState: m,
961
+ readonlyState: f,
962
+ disableState: b,
963
+ readonly: d,
947
964
  elementMap: u
948
- } = bt(), l = yt(), y = R(() => ue(a.readonly) ? a.readonly : ue(p[a.name]) ? p[a.name] : m.value), i = mt(a.name), d = l != null && l.pathList ? [...l.pathList, ...i] : i, v = (P) => {
949
- ae(c, d, P);
950
- }, S = $(Ve());
965
+ } = bt(), l = yt(), p = w(() => ne(a.readonly) ? a.readonly : ne(f[a.name]) ? f[a.name] : d.value), i = mt(a.name), g = l != null && l.pathList ? [...l.pathList, ...i] : i, M = (P) => {
966
+ ce(c, g, P);
967
+ }, I = F(_e());
951
968
  return () => {
952
- const P = b(f, d);
953
- if (ue(P) && !P)
969
+ const P = S(m, g);
970
+ if (ne(P) && !P)
954
971
  return null;
955
- const k = b(c, d), D = b(u, s);
956
- return h(e, O(C(a, ...S, "name", "slots"), {
957
- name: d
972
+ const D = S(c, g), L = S(u, s);
973
+ return y(e, O(C(a, ...I, "name", "slots"), {
974
+ name: g
958
975
  }), {
959
- default: () => [y.value ? h(B, null, [D ? h(D, O({
960
- value: k
976
+ default: () => [p.value ? y(H, null, [L ? y(L, O({
977
+ value: D
961
978
  }, a.fieldProps, {
962
979
  showProps: a.showProps
963
- }), r) : h("span", null, [k])]) : h(n, O(t(k, v, b(g, d)), a.fieldProps), r)],
980
+ }), r) : y("span", null, [D])]) : y(n, O(t(D, M, S(b, g)), a.fieldProps), r)],
964
981
  ...a.slots
965
982
  });
966
983
  };
967
984
  }
968
985
  });
969
- function xn(e) {
970
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !be(e);
986
+ function Cn(e) {
987
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Se(e);
971
988
  }
972
- const jn = () => ({
989
+ const Tn = () => ({
973
990
  clsName: {
974
991
  type: String,
975
992
  default: "pro-operate"
@@ -982,45 +999,45 @@ const jn = () => ({
982
999
  },
983
1000
  elementKey: {
984
1001
  type: String,
985
- default: bn
1002
+ default: x.ButtonKey
986
1003
  }
987
- }), St = M({
1004
+ }), St = N({
988
1005
  props: {
989
- ...jn()
1006
+ ...Tn()
990
1007
  },
991
1008
  setup: (e, {
992
1009
  slots: t
993
1010
  }) => {
994
- const n = H(), s = e.elementKey ? n(e.elementKey) : void 0, o = R(() => {
995
- const r = x(e.items, (c) => w(c.show) ? c.show() : ue(c.show) ? c.show : !0);
996
- return A(r, (c) => Xe(e.itemState, c.value) ? {
1011
+ const n = Q(), s = e.elementKey ? n(e.elementKey) : void 0, o = w(() => {
1012
+ const r = U(e.items, (c) => k(c.show) ? c.show() : ne(c.show) ? c.show : !0);
1013
+ return K(r, (c) => Je(e.itemState, c.value) ? {
997
1014
  ...c,
998
- ...b(e.itemState, c.value)
1015
+ ...S(e.itemState, c.value)
999
1016
  } : c);
1000
1017
  }), a = (r) => {
1001
1018
  var c;
1002
1019
  (c = r.onClick) == null || c.call(r, r.value);
1003
1020
  };
1004
- return () => h("div", {
1021
+ return () => y("div", {
1005
1022
  class: e.clsName
1006
- }, [A(o.value, (r) => {
1007
- const c = w(r.disabled) ? r.disabled() : r.disabled, f = w(r.loading) ? r.loading() : r.loading, p = w(r.label) ? r.label() : r.label, g = w(r.extraProps) ? r.extraProps() : r.extraProps, m = {
1023
+ }, [K(o.value, (r) => {
1024
+ const c = k(r.disabled) ? r.disabled() : r.disabled, m = k(r.loading) ? r.loading() : r.loading, f = k(r.label) ? r.label() : r.label, b = k(r.extraProps) ? r.extraProps() : r.extraProps, d = {
1008
1025
  ...C(r, "show", "disabled", "element"),
1009
1026
  disabled: c
1010
1027
  };
1011
- return r.element && w(r.element) ? r.element(m) : t[r.value] ? t[r.value](m) : s ? h(s, O({
1028
+ return r.element && k(r.element) ? r.element(d) : t[r.value] ? t[r.value](d) : s ? y(s, O({
1012
1029
  disabled: c,
1013
- loading: f,
1030
+ loading: m,
1014
1031
  onClick: () => a(r)
1015
- }, g), xn(p) ? p : {
1016
- default: () => [p]
1017
- }) : h("div", {
1032
+ }, b), Cn(f) ? f : {
1033
+ default: () => [f]
1034
+ }) : y("div", {
1018
1035
  class: `${e.clsName}-item`,
1019
1036
  onClick: () => a(r)
1020
- }, [p]);
1037
+ }, [f]);
1021
1038
  })]);
1022
1039
  }
1023
- }), qn = () => ({
1040
+ }), In = () => ({
1024
1041
  clsName: {
1025
1042
  type: String,
1026
1043
  default: "pro-table-toolbar-column"
@@ -1030,79 +1047,79 @@ const jn = () => ({
1030
1047
  default: "columnSetting"
1031
1048
  },
1032
1049
  popoverProps: Object
1033
- }), Un = M({
1050
+ }), Dn = N({
1034
1051
  props: {
1035
- ...qn()
1052
+ ...In()
1036
1053
  },
1037
1054
  setup: (e, {
1038
1055
  slots: t
1039
1056
  }) => {
1040
- const n = H(), s = n(En), o = n(Cn), {
1057
+ const n = Q(), s = n(x.PopoverKey), o = n(x.CheckboxKey), {
1041
1058
  originColumns: a,
1042
1059
  state: r
1043
- } = Bn(), [c, f] = Ut();
1044
- Ye(() => {
1045
- f();
1060
+ } = Mn(), [c, m] = Ut();
1061
+ Ze(() => {
1062
+ m();
1046
1063
  }, () => r.selectIds);
1047
- const p = R(() => V(r.selectIds, (i, d) => ({
1064
+ const f = w(() => _(r.selectIds, (i, g) => ({
1048
1065
  ...i,
1049
- [d]: !0
1050
- }), {})), g = (i) => ft(i, e.signName), m = R(() => {
1051
- const i = Ft(a.value, (v) => {
1052
- const S = g(v);
1053
- return S != null && S.disabled ? !0 : b(p.value, v.dataIndex);
1054
- }), d = se(a.value, (v) => {
1055
- const S = g(v);
1056
- return S != null && S.disabled ? !0 : b(p.value, v.dataIndex);
1066
+ [g]: !0
1067
+ }), {})), b = (i) => ft(i, e.signName), d = w(() => {
1068
+ const i = Ft(a.value, (M) => {
1069
+ const I = b(M);
1070
+ return I != null && I.disabled ? !0 : S(f.value, M.dataIndex);
1071
+ }), g = le(a.value, (M) => {
1072
+ const I = b(M);
1073
+ return I != null && I.disabled ? !0 : S(f.value, M.dataIndex);
1057
1074
  });
1058
1075
  return {
1059
1076
  checked: i,
1060
- indeterminate: i ? !1 : d
1077
+ indeterminate: i ? !1 : g
1061
1078
  };
1062
1079
  }), u = (i) => {
1063
- var v;
1064
- (Se(i) ? (v = i.target) == null ? void 0 : v.checked : i) ? r.selectIds = A(a.value, (S) => S.dataIndex) : r.selectIds = A(x(a.value, (S) => {
1080
+ var M;
1081
+ (ve(i) ? (M = i.target) == null ? void 0 : M.checked : i) ? r.selectIds = K(a.value, (I) => I.dataIndex) : r.selectIds = K(U(a.value, (I) => {
1065
1082
  var P;
1066
- return !!((P = g(S)) != null && P.disabled);
1067
- }), (S) => S.dataIndex);
1083
+ return !!((P = b(I)) != null && P.disabled);
1084
+ }), (I) => I.dataIndex);
1068
1085
  }, l = () => {
1069
- r.selectIds = A(x(a.value, (i) => {
1070
- var d;
1071
- return ((d = g(i)) == null ? void 0 : d.initShow) !== !1;
1086
+ r.selectIds = K(U(a.value, (i) => {
1087
+ var g;
1088
+ return ((g = b(i)) == null ? void 0 : g.initShow) !== !1;
1072
1089
  }), (i) => i.dataIndex);
1073
- }, y = (i, d) => {
1074
- var S;
1075
- (Se(d) ? (S = d.target) == null ? void 0 : S.checked : d) ? r.selectIds = [...r.selectIds, i.dataIndex] : r.selectIds = x(r.selectIds, (P) => i.dataIndex !== P);
1090
+ }, p = (i, g) => {
1091
+ var I;
1092
+ (ve(g) ? (I = g.target) == null ? void 0 : I.checked : g) ? r.selectIds = [...r.selectIds, i.dataIndex] : r.selectIds = U(r.selectIds, (P) => i.dataIndex !== P);
1076
1093
  };
1077
- return () => s ? h(s, O({
1094
+ return () => s ? y(s, O({
1078
1095
  trigger: "click"
1079
1096
  }, e.popoverProps), {
1080
1097
  default: () => {
1081
1098
  var i;
1082
1099
  return [((i = t.default) == null ? void 0 : i.call(t)) || "\u5217\u8BBE\u7F6E"];
1083
1100
  },
1084
- content: () => h("div", {
1101
+ content: () => y("div", {
1085
1102
  class: `${e.clsName}`
1086
- }, [h("div", {
1103
+ }, [y("div", {
1087
1104
  class: `${e.clsName}-header`
1088
- }, [h(o, {
1089
- checked: m.value.checked,
1090
- indeterminate: m.value.indeterminate,
1105
+ }, [y(o, {
1106
+ checked: d.value.checked,
1107
+ indeterminate: d.value.indeterminate,
1091
1108
  onChange: u
1092
1109
  }, {
1093
- default: () => [je("\u5217\u5C55\u793A")]
1094
- }), h("a", {
1110
+ default: () => [qe("\u5217\u5C55\u793A")]
1111
+ }), y("a", {
1095
1112
  onClick: l
1096
- }, [je("\u91CD\u7F6E")])]), h("div", {
1113
+ }, [qe("\u91CD\u7F6E")])]), y("div", {
1097
1114
  key: c.value,
1098
1115
  class: `${e.clsName}-list`
1099
- }, [A(a.value, (i) => {
1100
- const d = g(i);
1101
- return h(o, {
1102
- checked: b(p.value, i.dataIndex, !1),
1103
- disabled: d == null ? void 0 : d.disabled,
1104
- onChange: (v) => {
1105
- y(i, v);
1116
+ }, [K(a.value, (i) => {
1117
+ const g = b(i);
1118
+ return y(o, {
1119
+ checked: S(f.value, i.dataIndex, !1),
1120
+ disabled: g == null ? void 0 : g.disabled,
1121
+ onChange: (M) => {
1122
+ p(i, M);
1106
1123
  }
1107
1124
  }, {
1108
1125
  default: () => [i.title]
@@ -1111,8 +1128,8 @@ const jn = () => ({
1111
1128
  ...C(t, "default")
1112
1129
  }) : null;
1113
1130
  }
1114
- }), vt = Symbol("pro-table"), Bn = () => Q(vt), Vn = (e) => {
1115
- re(vt, e);
1131
+ }), vt = Symbol("pro-table"), Mn = () => Z(vt), Nn = (e) => {
1132
+ se(vt, e);
1116
1133
  }, Ge = () => ({
1117
1134
  clsName: {
1118
1135
  type: String,
@@ -1142,10 +1159,10 @@ const jn = () => ({
1142
1159
  tableMethods: {
1143
1160
  type: Array
1144
1161
  }
1145
- }), Mr = M({
1162
+ }), dr = N({
1146
1163
  inheritAttrs: !1,
1147
1164
  props: {
1148
- ...de,
1165
+ ...me,
1149
1166
  ...Ge()
1150
1167
  },
1151
1168
  setup: (e, {
@@ -1155,111 +1172,120 @@ const jn = () => ({
1155
1172
  }) => {
1156
1173
  const {
1157
1174
  elementMap: o
1158
- } = Y(), a = e.elementMap || o, r = b(o, Dn), c = () => ({
1175
+ } = ee(), a = e.elementMap || o, r = S(o, x.TableKey), c = () => ({
1159
1176
  title: "\u5E8F\u53F7",
1160
1177
  dataIndex: "serialNumber",
1161
1178
  width: 80,
1162
1179
  ...e.column,
1163
- ...ue(e.serialNumber) ? void 0 : e.serialNumber,
1180
+ ...ne(e.serialNumber) ? void 0 : e.serialNumber,
1164
1181
  customRender: ({
1165
- index: d
1182
+ index: P
1166
1183
  }) => {
1167
- var v, S;
1168
- return ((v = e.paginationState) == null ? void 0 : v.page) && ((S = e.paginationState) == null ? void 0 : S.pageSize) ? e.paginationState.pageSize * (e.paginationState.page - 1) + d + 1 : d + 1;
1184
+ var D, L;
1185
+ return ((D = e.paginationState) == null ? void 0 : D.page) && ((L = e.paginationState) == null ? void 0 : L.pageSize) ? e.paginationState.pageSize * (e.paginationState.page - 1) + P + 1 : P + 1;
1169
1186
  }
1170
- }), f = () => {
1171
- const d = e.operate, v = A(d.items, (P) => ({
1172
- ...P,
1173
- ...b(d.itemState, P.value)
1174
- })), S = Je(v, (P) => P.sort);
1187
+ }), m = re(t, "operate"), f = () => {
1188
+ const P = e.operate, D = K(P.items, (R) => ({
1189
+ ...R,
1190
+ ...S(P.itemState, R.value)
1191
+ })), L = Qe(D, (R) => R.sort);
1175
1192
  return {
1176
1193
  ...e.column,
1177
1194
  title: "\u64CD\u4F5C",
1178
1195
  dataIndex: "operate",
1179
1196
  fixed: "right",
1180
- ...d.column,
1197
+ ...P.column,
1181
1198
  customRender: ({
1182
- record: P
1199
+ record: R
1183
1200
  }) => {
1184
- const k = A(S, (D) => ({
1185
- value: D.value,
1186
- label: D.label,
1187
- show: w(D.show) ? D.show(P) : D.show,
1188
- disabled: w(D.disabled) ? D.disabled(P) : D.disabled,
1189
- loading: w(D.loading) ? D.loading(P) : D.loading,
1190
- extraProps: w(D.extraProps) ? D.extraProps(P) : D.extraProps,
1201
+ const v = K(L, (h) => ({
1202
+ value: h.value,
1203
+ label: h.label,
1204
+ show: k(h.show) ? h.show(R) : h.show,
1205
+ disabled: k(h.disabled) ? h.disabled(R) : h.disabled,
1206
+ loading: k(h.loading) ? h.loading(R) : h.loading,
1207
+ extraProps: k(h.extraProps) ? h.extraProps(R) : h.extraProps,
1191
1208
  onClick: () => {
1192
- var Z;
1193
- (Z = D.onClick) == null || Z.call(D, P);
1209
+ var T;
1210
+ (T = h.onClick) == null || T.call(h, R);
1194
1211
  },
1195
- element: w(D.element) ? () => D.element(P, D) : D.element
1212
+ element: k(h.element) ? () => h.element(R, h) : h.element
1196
1213
  }));
1197
- return h(St, {
1198
- clsName: d.clsName || `${e.clsName}-operate`,
1199
- items: k,
1200
- elementKey: d.elementKey
1201
- }, null);
1214
+ return y(St, {
1215
+ clsName: P.clsName || `${e.clsName}-operate`,
1216
+ items: v,
1217
+ elementKey: P.elementKey
1218
+ }, _(F(m), (h, T) => ({
1219
+ ...h,
1220
+ [T]: ($) => {
1221
+ var j;
1222
+ return (j = m[T]) == null ? void 0 : j.call(m, R, $);
1223
+ }
1224
+ }), {}));
1202
1225
  }
1203
1226
  };
1204
- }, g = z({
1227
+ }, d = W({
1205
1228
  selectIds: (() => {
1206
- var S, P;
1207
- const d = ((P = (S = e.toolbar) == null ? void 0 : S.columnSetting) == null ? void 0 : P.signName) || "columnSetting", v = x(e.columns, (k) => {
1208
- var D;
1209
- return ((D = ft(k, d)) == null ? void 0 : D.initShow) !== !1;
1229
+ var L, R;
1230
+ const P = ((R = (L = e.toolbar) == null ? void 0 : L.columnSetting) == null ? void 0 : R.signName) || "columnSetting", D = U(e.columns, (v) => {
1231
+ var h;
1232
+ return ((h = ft(v, P)) == null ? void 0 : h.initShow) !== !1;
1210
1233
  });
1211
- return e.serialNumber && v.unshift(c()), A(v, (k) => k.dataIndex);
1234
+ return e.serialNumber && D.unshift(c()), K(D, (v) => v.dataIndex);
1212
1235
  })()
1213
- }), m = Dt(e, "columns"), u = R(() => {
1214
- const d = V(g.selectIds, (v, S) => ({
1215
- ...v,
1216
- [S]: !0
1236
+ }), u = Mt(e, "columns"), l = w(() => {
1237
+ const P = _(d.selectIds, (D, L) => ({
1238
+ ...D,
1239
+ [L]: !0
1217
1240
  }), {});
1218
- return x(e.columns, (v) => b(d, v.dataIndex));
1219
- }), l = R(() => {
1220
- const d = De(u.value, e.columnState, (S) => S.dataIndex), v = A(d, (S) => {
1221
- const P = {
1222
- ...e.column,
1223
- ...S
1224
- };
1225
- return S.customRender || (P.customRender = ({
1226
- text: k
1227
- }) => ke(a, {
1228
- ...S,
1241
+ return U(e.columns, (D) => S(P, D.dataIndex));
1242
+ }), p = (P) => K(P, (D) => {
1243
+ const L = {
1244
+ ...e.column,
1245
+ ...D
1246
+ };
1247
+ return D.children && X(D.children) > 0 ? (L.children = p(D.children), L) : (D.customRender || (L.customRender = ({
1248
+ text: R
1249
+ }) => {
1250
+ var h;
1251
+ return Fe(a, {
1252
+ ...D,
1229
1253
  showProps: {
1230
- ...S.showProps,
1231
- content: e.columnEmptyText
1254
+ ...D.showProps,
1255
+ content: ((h = D.showProps) == null ? void 0 : h.content) || e.columnEmptyText
1232
1256
  }
1233
- }, k) || k || e.columnEmptyText), P;
1234
- });
1235
- return e.serialNumber && v.unshift(c()), e.operate && e.operate.items && se(e.operate.items, (S) => S.show) && v.push(f()), v;
1236
- }), y = j();
1237
- Vn({
1238
- columns: l,
1239
- originColumns: m,
1240
- state: g,
1241
- tableRef: y,
1257
+ }, R) || R || e.columnEmptyText;
1258
+ }), L);
1259
+ }), i = w(() => {
1260
+ const P = Ne(l.value, e.columnState, (L) => L.dataIndex), D = p(P);
1261
+ return e.serialNumber && D.unshift(c()), e.operate && e.operate.items && le(e.operate.items, (L) => L.show) && D.push(f()), D;
1262
+ }), g = B();
1263
+ Nn({
1264
+ columns: i,
1265
+ originColumns: u,
1266
+ state: d,
1267
+ tableRef: g,
1242
1268
  toolbar: e.toolbar,
1243
1269
  ...e.provideExtra
1244
- }), n(ce(e.tableMethods || [], y));
1245
- const i = $(Ge());
1270
+ }), n(ie(e.tableMethods || [], g));
1271
+ const M = F(Ge()), I = re(t, "columnSetting");
1246
1272
  return () => {
1247
- var v, S, P;
1273
+ var D, L, R;
1248
1274
  if (!r)
1249
1275
  return null;
1250
- const d = t.toolbar ? t.toolbar() : void 0;
1251
- return h("div", O({
1276
+ const P = t.toolbar ? t.toolbar() : void 0;
1277
+ return y("div", O({
1252
1278
  class: e.clsName
1253
- }, K(s, "class")), [(d || ((v = e.toolbar) == null ? void 0 : v.columnSetting)) && h("div", {
1279
+ }, q(s, "class")), [(P || ((D = e.toolbar) == null ? void 0 : D.columnSetting)) && y("div", {
1254
1280
  class: `${e.clsName}-toolbar`
1255
- }, [d, ((S = e.toolbar) == null ? void 0 : S.columnSetting) && h(Un, (P = e.toolbar) == null ? void 0 : P.columnSetting, null)]), h(r, O({
1256
- ref: y
1257
- }, C(s, "class"), C(e, i), {
1258
- columns: l.value
1281
+ }, [P, ((L = e.toolbar) == null ? void 0 : L.columnSetting) && y(Dn, (R = e.toolbar) == null ? void 0 : R.columnSetting, I)]), y(r, O({
1282
+ ref: g
1283
+ }, C(s, "class"), C(e, M), {
1284
+ columns: i.value
1259
1285
  }), t)]);
1260
1286
  };
1261
1287
  }
1262
- }), Gn = () => ({
1288
+ }), On = () => ({
1263
1289
  title: {
1264
1290
  type: String
1265
1291
  },
@@ -1271,9 +1297,9 @@ const jn = () => ({
1271
1297
  type: Boolean,
1272
1298
  default: !0
1273
1299
  }
1274
- }), Le = M({
1300
+ }), Ae = N({
1275
1301
  props: {
1276
- ...Gn()
1302
+ ...On()
1277
1303
  },
1278
1304
  setup: (e, {
1279
1305
  slots: t,
@@ -1281,24 +1307,24 @@ const jn = () => ({
1281
1307
  }) => () => {
1282
1308
  var o, a, r, c;
1283
1309
  const s = e.hideWhileNoHistory && ((a = (o = window.history) == null ? void 0 : o.state) == null ? void 0 : a.back) || e.hideWhileNoHistory === !1;
1284
- return h("div", {
1310
+ return y("div", {
1285
1311
  class: "pro-page-header"
1286
- }, [e.showBack && s && h("div", {
1312
+ }, [e.showBack && s && y("div", {
1287
1313
  class: "pro-page-header-back",
1288
1314
  onClick: () => {
1289
1315
  n("back");
1290
1316
  }
1291
- }, [t.backIcon ? t.backIcon() : "\u8FD4\u56DE"]), h("div", {
1317
+ }, [t.backIcon ? t.backIcon() : "\u8FD4\u56DE"]), y("div", {
1292
1318
  class: "pro-page-header-title"
1293
- }, [t.title ? t.title() : e.title]), h("div", {
1319
+ }, [t.title ? t.title() : e.title]), y("div", {
1294
1320
  class: "pro-page-header-sub-title"
1295
- }, [t.subTitle ? t.subTitle() : e.subTitle]), h("div", {
1321
+ }, [t.subTitle ? t.subTitle() : e.subTitle]), y("div", {
1296
1322
  class: "pro-page-header-space"
1297
- }, [(r = t.space) == null ? void 0 : r.call(t)]), h("div", {
1323
+ }, [(r = t.space) == null ? void 0 : r.call(t)]), y("div", {
1298
1324
  class: "pro-page-header-extra"
1299
1325
  }, [(c = t.extra) == null ? void 0 : c.call(t)])]);
1300
1326
  }
1301
- }), _n = () => ({
1327
+ }), Ln = () => ({
1302
1328
  loading: {
1303
1329
  type: Boolean,
1304
1330
  default: !1
@@ -1308,50 +1334,50 @@ const jn = () => ({
1308
1334
  type: Boolean,
1309
1335
  default: !0
1310
1336
  }
1311
- }), Dr = M({
1337
+ }), mr = N({
1312
1338
  props: {
1313
- ...Le.props,
1314
- ..._n()
1339
+ ...Ae.props,
1340
+ ...Ln()
1315
1341
  },
1316
1342
  setup: (e, {
1317
1343
  slots: t,
1318
1344
  emit: n
1319
1345
  }) => {
1320
- const o = H()(dt), a = j(), r = j(0);
1321
- Bt(a, (f) => {
1322
- var g;
1323
- const p = (g = f[0]) == null ? void 0 : g.contentRect;
1324
- r.value = p == null ? void 0 : p.height;
1346
+ const o = Q()(x.LoadingKey), a = B(), r = B(0);
1347
+ Bt(a, (m) => {
1348
+ var b;
1349
+ const f = (b = m[0]) == null ? void 0 : b.contentRect;
1350
+ r.value = f == null ? void 0 : f.height;
1325
1351
  });
1326
- const c = $(Le.props);
1352
+ const c = F(Ae.props);
1327
1353
  return () => {
1328
- var g, m, u;
1329
- const f = e.title || t.title || e.subTitle || t.subTitle || t.extra, p = !!t.footer;
1330
- return h("div", {
1354
+ var b, d, u;
1355
+ const m = e.title || t.title || e.subTitle || t.subTitle || t.extra, f = !!t.footer;
1356
+ return y("div", {
1331
1357
  class: "pro-page"
1332
- }, [f && h(Le, O(K(e, c), {
1358
+ }, [m && y(Ae, O(q(e, c), {
1333
1359
  onBack: () => {
1334
1360
  n("back");
1335
1361
  }
1336
- }), K(t, "backIcon", "title", "subTitle", "space", "extra")), e.loading && o ? h(o, O({
1362
+ }), q(t, "backIcon", "title", "subTitle", "space", "extra")), e.loading && o ? y(o, O({
1337
1363
  loading: !0
1338
1364
  }, e.loadingOpts), {
1339
- default: () => [h("div", {
1365
+ default: () => [y("div", {
1340
1366
  class: "pro-loading-dom"
1341
1367
  }, null)]
1342
- }) : h("div", {
1368
+ }) : y("div", {
1343
1369
  ref: a,
1344
1370
  style: r.value > 0 ? `height:${r.value > 0}` : "",
1345
1371
  class: "pro-page-content"
1346
- }, [e.fillMode ? h(B, null, [r.value > 0 && ((g = t.default) == null ? void 0 : g.call(t))]) : (m = t.default) == null ? void 0 : m.call(t)]), !e.loading && p && h("div", {
1372
+ }, [e.fillMode ? y(H, null, [r.value > 0 && ((b = t.default) == null ? void 0 : b.call(t))]) : (d = t.default) == null ? void 0 : d.call(t)]), !e.loading && f && y("div", {
1347
1373
  class: "pro-page-footer"
1348
1374
  }, [(u = t.footer) == null ? void 0 : u.call(t)])]);
1349
1375
  };
1350
1376
  }
1351
- }), zn = Object.freeze({
1377
+ }), An = Object.freeze({
1352
1378
  page: 1,
1353
1379
  pageSize: 10
1354
- }), Wn = () => ({
1380
+ }), Rn = () => ({
1355
1381
  clsName: {
1356
1382
  type: String,
1357
1383
  default: "pro-list"
@@ -1363,61 +1389,63 @@ const jn = () => ({
1363
1389
  type: Object
1364
1390
  },
1365
1391
  paginationProps: {
1366
- type: Object
1392
+ type: [Object, Boolean]
1367
1393
  },
1368
1394
  pageState: {
1369
1395
  type: Object
1370
1396
  }
1371
- }), _e = M({
1397
+ }), ze = N({
1372
1398
  props: {
1373
- ...Wn()
1399
+ ...Rn()
1374
1400
  },
1375
1401
  setup: (e, {
1376
1402
  slots: t,
1377
1403
  emit: n
1378
1404
  }) => {
1379
- const s = H(), o = s(On), a = s(Ln), r = s(Pn), c = e.pageState || z({
1380
- ...zn
1405
+ const s = Q(), o = s(x.ProSearchFormKey), a = s(x.ProTableKey), r = s(x.PaginationKey), c = e.pageState || W({
1406
+ ...An
1381
1407
  });
1382
- let f;
1383
- const p = () => {
1408
+ let m;
1409
+ const f = () => {
1384
1410
  n("search", {
1385
- ...f,
1411
+ ...m,
1386
1412
  ...c
1387
1413
  });
1388
- }, g = (i, d) => {
1389
- f = i, c.page = d || 1, p();
1390
- }, m = (i, d) => {
1391
- c.page = i, c.pageSize = d, p();
1392
- }, u = le(t, "search"), l = le(t, "table"), y = le(t, "pagination");
1414
+ }, b = (i, g) => {
1415
+ m = i, c.page = g || 1, f();
1416
+ }, d = (i, g) => {
1417
+ c.page = i, c.pageSize = g, f();
1418
+ }, u = re(t, "search"), l = re(t, "table"), p = re(t, "pagination");
1393
1419
  return () => {
1394
- var i, d, v, S;
1395
- return h(B, null, [(i = t.start) == null ? void 0 : i.call(t), t.search ? t.search({
1396
- executeSearchWithResetPage: g,
1420
+ var i, g, M, I;
1421
+ return y(H, null, [(i = t.start) == null ? void 0 : i.call(t), t.search ? t.search({
1422
+ executeSearchWithResetPage: b,
1397
1423
  pageState: c
1398
- }) : h(B, null, [o ? h(o, O({
1424
+ }) : y(H, null, [o ? y(o, O({
1399
1425
  clsName: `${e.clsName}-search`
1400
1426
  }, C(e.searchProps, "onFinish"), {
1401
- onFinish: (P) => g(P)
1402
- }), u) : null]), (d = t.divide) == null ? void 0 : d.call(t), t.table ? t.table() : h(B, null, [h(B, null, [a ? h(a, O({
1427
+ onFinish: (P) => b(P)
1428
+ }), u) : null]), (g = t.divide) == null ? void 0 : g.call(t), t.table ? t.table({
1429
+ pageState: c
1430
+ }) : y(H, null, [a ? y(a, O({
1403
1431
  clsName: `${e.clsName}-table`,
1404
1432
  paginationState: {
1405
1433
  page: c.page,
1406
1434
  pageSize: c.pageSize
1407
1435
  }
1408
- }, e.tableProps), l) : null])]), (v = t.divide2) == null ? void 0 : v.call(t), t.pagination ? t.pagination({
1409
- executePageChange: m,
1436
+ }, e.tableProps), l) : null]), (M = t.divide2) == null ? void 0 : M.call(t), t.pagination ? t.pagination({
1437
+ executePageChange: d,
1410
1438
  pageState: c
1411
- }) : h(B, null, [r ? h(r, O({
1439
+ }) : y(H, null, [e.paginationProps !== !1 && r ? y(r, O({
1412
1440
  clsName: `${e.clsName}-pagination`
1413
- }, C(e.paginationProps, "onChange"), {
1441
+ }, C(ne(e.paginationProps) ? {} : e.paginationProps, "onChange"), {
1414
1442
  page: c.page,
1415
1443
  pageSize: c.pageSize,
1416
- onComposeChange: m
1417
- }), y) : null]), (S = t.end) == null ? void 0 : S.call(t)]);
1444
+ onComposeChange: d
1445
+ }), p) : null]), (I = t.end) == null ? void 0 : I.call(t)]);
1418
1446
  };
1419
1447
  }
1420
- }), ze = () => ({
1448
+ }), We = () => ({
1421
1449
  clsName: {
1422
1450
  type: String,
1423
1451
  default: "pro-desc"
@@ -1425,36 +1453,44 @@ const jn = () => ({
1425
1453
  model: {
1426
1454
  type: Object
1427
1455
  }
1428
- }), Hn = M({
1456
+ }), Kn = N({
1429
1457
  props: {
1430
- ...de,
1431
- ...ze()
1458
+ ...me,
1459
+ ...We()
1432
1460
  },
1433
1461
  setup: (e, {
1434
1462
  slots: t
1435
1463
  }) => {
1436
1464
  const {
1437
1465
  elementMap: n
1438
- } = Y(), s = e.elementMap || n, o = H(), a = o(Sn), r = o(vn), c = R(() => De(e.columns, e.columnState, "dataIndex")), f = A(e.columns, (u) => u.dataIndex), p = C(t, ...f, ...A(f, (u) => u + "Label")), g = $(de), m = $(ze());
1439
- return () => !a || !r ? null : h(a, O({
1466
+ } = ee(), s = e.elementMap || n, o = Q(), a = o(x.DescriptionsKey), r = o(x.DescriptionsItemKey), c = w(() => Ne(e.columns, e.columnState, "dataIndex")), m = F(me), f = F(We());
1467
+ return () => !a || !r ? null : y(a, O({
1440
1468
  class: e.clsName
1441
- }, C(e, ...g, ...m, "model")), {
1442
- default: () => [A(c.value, (u) => {
1443
- const l = u.dataIndex, y = b(e.model, l);
1444
- return h(r, O({
1445
- class: `${e.clsName}-item`
1446
- }, b(u.extra, "desc"), {
1447
- label: t[`${l}Label`] ? t[`${l}Label`]() : u.title
1448
- }), {
1449
- default: () => [t[l] ? t[l]() : ke(s, u, y)]
1450
- });
1451
- })],
1452
- ...p
1469
+ }, C(e, ...m, ...f, "model")), {
1470
+ default: () => {
1471
+ var b, d;
1472
+ return [(b = t.start) == null ? void 0 : b.call(t), K(c.value, (u) => {
1473
+ const l = u.dataIndex, p = S(e.model, l);
1474
+ return y(r, O({
1475
+ class: `${e.clsName}-item`
1476
+ }, S(u.extra, "desc")), {
1477
+ default: () => {
1478
+ var i;
1479
+ return [((i = t.value) == null ? void 0 : i.call(t, p, u)) || Fe(s, u, p)];
1480
+ },
1481
+ label: () => {
1482
+ var i;
1483
+ return ((i = t.label) == null ? void 0 : i.call(t, u)) || u.title;
1484
+ }
1485
+ });
1486
+ }), (d = t.default) == null ? void 0 : d.call(t)];
1487
+ },
1488
+ ...t
1453
1489
  });
1454
1490
  }
1455
- }), Pt = Symbol("pro-curd"), G = () => Q(Pt), Xn = (e) => re(Pt, e);
1456
- var T = /* @__PURE__ */ ((e) => (e.LIST = "LIST", e.DETAIL = "DETAIL", e.ADD = "ADD", e.EDIT = "EDIT", e.DELETE = "DELETE", e))(T || {}), L = /* @__PURE__ */ ((e) => (e.EMIT = "EMIT", e.EXECUTE = "EXECUTE", e.PAGE = "PAGE", e.SUCCESS = "SUCCESS", e.FAIL = "FAIL", e))(L || {}), te = /* @__PURE__ */ ((e) => (e.ADD = "ADD", e.EDIT = "EDIT", e.DETAIL = "DETAIL", e))(te || {}), pe = /* @__PURE__ */ ((e) => (e.NORMAL = "NORMAL", e.CONTINUE = "CONTINUE", e))(pe || {});
1457
- const Jn = () => ({
1491
+ }), Pt = Symbol("pro-curd"), G = () => Z(Pt), wn = (e) => se(Pt, e);
1492
+ var E = /* @__PURE__ */ ((e) => (e.LIST = "LIST", e.DETAIL = "DETAIL", e.ADD = "ADD", e.EDIT = "EDIT", e.DELETE = "DELETE", e))(E || {}), A = /* @__PURE__ */ ((e) => (e.EMIT = "EMIT", e.EXECUTE = "EXECUTE", e.PAGE = "PAGE", e.SUCCESS = "SUCCESS", e.FAIL = "FAIL", e))(A || {}), ae = /* @__PURE__ */ ((e) => (e.ADD = "ADD", e.EDIT = "EDIT", e.DETAIL = "DETAIL", e))(ae || {}), ye = /* @__PURE__ */ ((e) => (e.NORMAL = "NORMAL", e.CONTINUE = "CONTINUE", e))(ye || {});
1493
+ const kn = () => ({
1458
1494
  rowKey: {
1459
1495
  type: String,
1460
1496
  default: "id"
@@ -1474,10 +1510,10 @@ const Jn = () => ({
1474
1510
  modalProps: {
1475
1511
  type: Object
1476
1512
  }
1477
- }), Et = ["sendCurdEvent", "refreshList", "sendEvent", "sendRequest"], We = M({
1513
+ }), Et = ["sendCurdEvent", "refreshList", "sendEvent", "sendRequest"], He = N({
1478
1514
  props: {
1479
- ...de,
1480
- ...Jn()
1515
+ ...me,
1516
+ ...kn()
1481
1517
  },
1482
1518
  setup: (e, {
1483
1519
  slots: t,
@@ -1488,92 +1524,92 @@ const Jn = () => ({
1488
1524
  state: o,
1489
1525
  sendEvent: a,
1490
1526
  sendRequest: r
1491
- } = he(), c = R(() => De(e.columns, e.columnState, (E) => oe(E))), f = (E, N = !0) => ot(e.formElementMap, E, N), p = (E, N) => ke(s, E, N), g = (E, N) => {
1492
- const F = x(c.value, (q) => {
1493
- const _ = b(q, ["extra", E]) || b(q, E);
1494
- return N ? _ !== !1 : _;
1527
+ } = ge(), c = w(() => Ne(e.columns, e.columnState, (h) => ue(h))), m = (h, T = !0) => st(e.formElementMap, h, T), f = (h, T) => Fe(s, h, T), b = (h, T) => {
1528
+ const $ = U(c.value, (j) => {
1529
+ const z = S(j, ["extra", h]) || S(j, h);
1530
+ return T ? z !== !1 : z;
1495
1531
  });
1496
- return Je(F, (q) => b(q, ["extra", `${E}Sort`]) || b(q, `${E}Sort`));
1497
- }, m = R(() => g("form", !0)), u = R(() => g("detail", !0)), l = R(() => g("table", !0)), y = R(() => g("search"));
1532
+ return Qe($, (j) => S(j, ["extra", `${h}Sort`]) || S(j, `${h}Sort`));
1533
+ }, d = w(() => b("form", !0)), u = w(() => b("detail", !0)), l = w(() => b("table", !0)), p = w(() => b("search"));
1498
1534
  let i;
1499
- const d = (E) => {
1500
- r(T.LIST, {
1535
+ const g = (h) => {
1536
+ r(E.LIST, {
1501
1537
  ...i,
1502
- ...E
1538
+ ...h
1503
1539
  });
1504
- }, v = (E) => {
1540
+ }, M = (h) => {
1505
1541
  a({
1506
- type: E.action,
1507
- payload: C(E, "action", "source"),
1508
- source: E.source
1542
+ type: h.action,
1543
+ payload: C(h, "action", "source"),
1544
+ source: h.source
1509
1545
  });
1510
1546
  };
1511
- Ke(({
1512
- type: E,
1513
- payload: N,
1514
- source: F
1547
+ xe(({
1548
+ type: h,
1549
+ payload: T,
1550
+ source: $
1515
1551
  }) => {
1516
- if (F)
1552
+ if ($)
1517
1553
  return;
1518
- let q = E, _ = N == null ? void 0 : N.type;
1519
- q === fe.Success && (q = b(N, ["requestOpts", "action"]), _ = L.SUCCESS);
1554
+ let j = h, z = T == null ? void 0 : T.type;
1555
+ j === pe.Success && (j = S(T, ["requestOpts", "action"]), z = A.SUCCESS);
1520
1556
  const {
1521
- values: ge,
1557
+ values: be,
1522
1558
  record: Tt
1523
- } = N;
1524
- switch (q) {
1525
- case T.LIST:
1526
- _ === L.EMIT && (i = ge, d());
1559
+ } = T;
1560
+ switch (j) {
1561
+ case E.LIST:
1562
+ z === A.EMIT && (i = be, g());
1527
1563
  return;
1528
- case T.ADD:
1529
- _ === L.EXECUTE && r(T.ADD, ge, o.detailData);
1564
+ case E.ADD:
1565
+ z === A.EXECUTE && r(E.ADD, be, o.detailData);
1530
1566
  return;
1531
- case T.EDIT:
1532
- _ === L.EXECUTE && r(T.EDIT, ge, o.detailData);
1567
+ case E.EDIT:
1568
+ z === A.EXECUTE && r(E.EDIT, be, o.detailData);
1533
1569
  return;
1534
- case T.DELETE:
1535
- _ === L.EMIT ? r(T.DELETE, Tt, e.rowKey) : _ === L.SUCCESS && d();
1570
+ case E.DELETE:
1571
+ z === A.EMIT ? r(E.DELETE, Tt, e.rowKey) : z === A.SUCCESS && g();
1536
1572
  return;
1537
1573
  }
1538
- q && E === L.EXECUTE && r(q, ge);
1574
+ j && h === A.EXECUTE && r(j, be);
1539
1575
  });
1540
- const S = V(e.operates, (E, N) => ({
1541
- ...E,
1542
- [N.action]: N
1543
- }), {}), P = (E) => b(S, E), k = R(() => e.listProps), D = R(() => e.formProps), Z = R(() => e.descProps), I = R(() => e.modalProps);
1544
- return Xn({
1576
+ const I = _(e.operates, (h, T) => ({
1577
+ ...h,
1578
+ [T.action]: T
1579
+ }), {}), P = (h) => S(I, h), D = w(() => e.listProps), L = w(() => e.formProps), R = w(() => e.descProps), v = w(() => e.modalProps);
1580
+ return wn({
1545
1581
  columns: c,
1546
- getSignColumns: g,
1547
- getFormItemVNode: f,
1548
- getItemVNode: p,
1582
+ getSignColumns: b,
1583
+ getFormItemVNode: m,
1584
+ getItemVNode: f,
1549
1585
  elementMap: s,
1550
1586
  formElementMap: e.formElementMap,
1551
1587
  rowKey: e.rowKey,
1552
1588
  curdState: o,
1553
- formColumns: m,
1589
+ formColumns: d,
1554
1590
  descColumns: u,
1555
1591
  tableColumns: l,
1556
- searchColumns: y,
1557
- sendCurdEvent: v,
1592
+ searchColumns: p,
1593
+ sendCurdEvent: M,
1558
1594
  operates: e.operates,
1559
1595
  getOperate: P,
1560
- refreshList: d,
1561
- listProps: k,
1562
- formProps: D,
1563
- descProps: Z,
1564
- modalProps: I
1596
+ refreshList: g,
1597
+ listProps: D,
1598
+ formProps: L,
1599
+ descProps: R,
1600
+ modalProps: v
1565
1601
  }), n({
1566
- sendCurdEvent: v,
1567
- refreshList: d
1602
+ sendCurdEvent: M,
1603
+ refreshList: g
1568
1604
  }), () => {
1569
- var E;
1570
- return (E = t.default) == null ? void 0 : E.call(t);
1605
+ var h;
1606
+ return (h = t.default) == null ? void 0 : h.call(t);
1571
1607
  };
1572
1608
  }
1573
- }), Ce = M({
1609
+ }), Te = N({
1574
1610
  props: {
1575
- ...C(Ne.props, "state", "requests"),
1576
- ...We.props,
1611
+ ...C(Oe.props, "state", "requests"),
1612
+ ...He.props,
1577
1613
  curdState: {
1578
1614
  type: Object
1579
1615
  }
@@ -1585,10 +1621,10 @@ const Jn = () => ({
1585
1621
  const {
1586
1622
  elementMap: s,
1587
1623
  formElementMap: o
1588
- } = Y(), a = j(), r = j(), c = e.curdState || z({
1624
+ } = ee(), a = B(), r = B(), c = e.curdState || W({
1589
1625
  detailData: {}
1590
- }), f = {
1591
- [T.LIST]: {
1626
+ }), m = {
1627
+ [E.LIST]: {
1592
1628
  convertParams: (u) => u,
1593
1629
  convertData: (u) => {
1594
1630
  var l;
@@ -1597,8 +1633,8 @@ const Jn = () => ({
1597
1633
  loadingName: "listLoading",
1598
1634
  stateName: "listData"
1599
1635
  },
1600
- [T.DETAIL]: {
1601
- convertParams: (u, l) => K(u, l),
1636
+ [E.DETAIL]: {
1637
+ convertParams: (u, l) => q(u, l),
1602
1638
  convertData: (u) => {
1603
1639
  var l;
1604
1640
  return (l = u.res) == null ? void 0 : l.data;
@@ -1607,7 +1643,7 @@ const Jn = () => ({
1607
1643
  stateName: "detailData",
1608
1644
  label: "\u8BE6\u60C5"
1609
1645
  },
1610
- [T.ADD]: {
1646
+ [E.ADD]: {
1611
1647
  convertParams: (u, l) => ({
1612
1648
  body: {
1613
1649
  ...l,
@@ -1617,7 +1653,7 @@ const Jn = () => ({
1617
1653
  loadingName: "operateLoading",
1618
1654
  label: "\u6DFB\u52A0"
1619
1655
  },
1620
- [T.EDIT]: {
1656
+ [E.EDIT]: {
1621
1657
  convertParams: (u, l) => ({
1622
1658
  body: {
1623
1659
  ...l,
@@ -1627,14 +1663,14 @@ const Jn = () => ({
1627
1663
  loadingName: "operateLoading",
1628
1664
  label: "\u7F16\u8F91"
1629
1665
  },
1630
- [T.DELETE]: {
1631
- convertParams: (u, l) => K(u, l),
1666
+ [E.DELETE]: {
1667
+ convertParams: (u, l) => q(u, l),
1632
1668
  label: "\u5220\u9664"
1633
1669
  }
1634
- }, p = A(e.operates, (u) => ({
1635
- ...b(f, u.action),
1670
+ }, f = K(e.operates, (u) => ({
1671
+ ...S(m, u.action),
1636
1672
  ...u
1637
- })), g = x(p, (u) => u.actor), m = $(C(Ne.props, "state", "requests"));
1673
+ })), b = U(f, (u) => u.actor), d = F(C(Oe.props, "state", "requests"));
1638
1674
  return n({
1639
1675
  sendCurdEvent: (u) => {
1640
1676
  var l;
@@ -1649,148 +1685,148 @@ const Jn = () => ({
1649
1685
  (l = a.value) == null || l.sendEvent(u);
1650
1686
  },
1651
1687
  sendRequest: (u, ...l) => {
1652
- var y;
1653
- (y = a.value) == null || y.sendRequest(u, ...l);
1688
+ var p;
1689
+ (p = a.value) == null || p.sendRequest(u, ...l);
1654
1690
  }
1655
- }), () => h(Ne, O({
1691
+ }), () => y(Oe, O({
1656
1692
  ref: a
1657
- }, K(e, m), {
1693
+ }, q(e, d), {
1658
1694
  elementMap: e.elementMap || s,
1659
1695
  state: c,
1660
- requests: g
1696
+ requests: b
1661
1697
  }), {
1662
- default: () => [h(We, O({
1698
+ default: () => [y(He, O({
1663
1699
  ref: r
1664
- }, C(e, ...m, "curdState", "operates"), {
1700
+ }, C(e, ...d, "curdState", "operates"), {
1665
1701
  formElementMap: e.formElementMap || o,
1666
- operates: p
1702
+ operates: f
1667
1703
  }), t)]
1668
1704
  });
1669
1705
  }
1670
- }), Qn = () => ({
1706
+ }), Fn = () => ({
1671
1707
  defaultAddRecord: {
1672
1708
  type: Object
1673
1709
  }
1674
- }), Ae = M({
1710
+ }), Re = N({
1675
1711
  props: {
1676
- ...Qn()
1712
+ ...Fn()
1677
1713
  },
1678
1714
  setup: (e) => {
1679
1715
  var l;
1680
1716
  const {
1681
1717
  dispatch: t,
1682
1718
  sendRequest: n
1683
- } = he(), {
1719
+ } = ge(), {
1684
1720
  rowKey: s,
1685
1721
  curdState: o,
1686
1722
  listProps: a,
1687
1723
  getOperate: r,
1688
1724
  refreshList: c
1689
- } = G(), f = (l = a == null ? void 0 : a.value) == null ? void 0 : l.pageState, p = (y) => {
1690
- const i = r(T.DETAIL);
1691
- i != null && i.actor ? n(T.DETAIL, y, s) : t({
1725
+ } = G(), m = (l = a == null ? void 0 : a.value) == null ? void 0 : l.pageState, f = (p) => {
1726
+ const i = r(E.DETAIL);
1727
+ i != null && i.actor ? n(E.DETAIL, p, s) : t({
1692
1728
  type: "detailData",
1693
- payload: Kt(y)
1729
+ payload: $t(p)
1694
1730
  });
1695
- }, g = (y, {
1731
+ }, b = (p, {
1696
1732
  record: i
1697
1733
  }) => {
1698
- y === L.EMIT && (t({
1734
+ p === A.EMIT && (t({
1699
1735
  type: "mode",
1700
- payload: te.DETAIL
1701
- }), p(i));
1702
- }, m = (y) => {
1703
- y === L.EMIT ? (t({
1736
+ payload: ae.DETAIL
1737
+ }), f(i));
1738
+ }, d = (p) => {
1739
+ p === A.EMIT ? (t({
1704
1740
  type: "mode",
1705
- payload: te.ADD
1741
+ payload: ae.ADD
1706
1742
  }), t({
1707
1743
  type: "detailData",
1708
1744
  payload: e.defaultAddRecord || {}
1709
- })) : y === L.SUCCESS && (f && (f.page = 1), c(), o.addAction === pe.CONTINUE ? t({
1745
+ })) : p === A.SUCCESS && (m && (m.page = 1), c(), o.addAction === ye.CONTINUE ? t({
1710
1746
  type: "detailData",
1711
1747
  payload: e.defaultAddRecord || {}
1712
1748
  }) : t({
1713
1749
  type: "mode",
1714
1750
  payload: void 0
1715
1751
  }));
1716
- }, u = (y, {
1752
+ }, u = (p, {
1717
1753
  record: i
1718
1754
  }) => {
1719
- y === L.EMIT ? (t({
1755
+ p === A.EMIT ? (t({
1720
1756
  type: "mode",
1721
- payload: te.EDIT
1722
- }), p(i)) : y === L.SUCCESS && (t({
1757
+ payload: ae.EDIT
1758
+ }), f(i)) : p === A.SUCCESS && (t({
1723
1759
  type: "mode",
1724
1760
  payload: void 0
1725
1761
  }), c());
1726
1762
  };
1727
- return Ke(({
1728
- type: y,
1763
+ return xe(({
1764
+ type: p,
1729
1765
  payload: i,
1730
- source: d
1766
+ source: g
1731
1767
  }) => {
1732
- if (d)
1768
+ if (g)
1733
1769
  return;
1734
- let v = y, S = i == null ? void 0 : i.type;
1770
+ let M = p, I = i == null ? void 0 : i.type;
1735
1771
  const P = i == null ? void 0 : i.record;
1736
- switch (v === fe.Success && (v = b(i, ["requestOpts", "action"]), S = L.SUCCESS), v) {
1737
- case T.DETAIL:
1738
- g(S, {
1772
+ switch (M === pe.Success && (M = S(i, ["requestOpts", "action"]), I = A.SUCCESS), M) {
1773
+ case E.DETAIL:
1774
+ b(I, {
1739
1775
  record: P
1740
1776
  });
1741
1777
  break;
1742
- case T.ADD:
1743
- m(S);
1778
+ case E.ADD:
1779
+ d(I);
1744
1780
  break;
1745
- case T.EDIT:
1746
- u(S, {
1781
+ case E.EDIT:
1782
+ u(I, {
1747
1783
  record: P
1748
1784
  });
1749
1785
  break;
1750
1786
  }
1751
1787
  }), () => null;
1752
1788
  }
1753
- }), Nr = M({
1789
+ }), fr = N({
1754
1790
  props: {
1755
- ...Ce.props,
1756
- ...Ae.props
1791
+ ...Te.props,
1792
+ ...Re.props
1757
1793
  },
1758
1794
  setup: (e, {
1759
1795
  slots: t,
1760
1796
  expose: n
1761
1797
  }) => {
1762
- const s = j();
1763
- n(ce(Et, s));
1764
- const o = $(Ae.props);
1765
- return () => h(Ce, O({
1798
+ const s = B();
1799
+ n(ie(Et, s));
1800
+ const o = F(Re.props);
1801
+ return () => y(Te, O({
1766
1802
  ref: s
1767
1803
  }, C(e, o)), {
1768
1804
  default: () => {
1769
1805
  var a;
1770
- return [h(Ae, K(e, o), null), (a = t.default) == null ? void 0 : a.call(t)];
1806
+ return [y(Re, q(e, o), null), (a = t.default) == null ? void 0 : a.call(t)];
1771
1807
  }
1772
1808
  });
1773
1809
  }
1774
- }), Yn = () => ({
1810
+ }), $n = () => ({
1775
1811
  defaultAddRecord: {
1776
1812
  type: Object
1777
1813
  },
1778
1814
  routeBack: {
1779
1815
  type: Function
1780
1816
  }
1781
- }), Re = M({
1817
+ }), Ke = N({
1782
1818
  props: {
1783
- ...Yn()
1819
+ ...$n()
1784
1820
  },
1785
1821
  setup: (e) => {
1786
- const t = _t(), n = zt(), {
1822
+ const t = Gt(), n = zt(), {
1787
1823
  dispatch: s,
1788
1824
  sendRequest: o
1789
- } = he(), {
1825
+ } = ge(), {
1790
1826
  rowKey: a,
1791
1827
  curdState: r
1792
- } = G(), c = (m) => {
1793
- m === L.PAGE && (s({
1828
+ } = G(), c = (d) => {
1829
+ d === A.PAGE && (s({
1794
1830
  type: "mode",
1795
1831
  payload: void 0
1796
1832
  }), s({
@@ -1803,93 +1839,93 @@ const Jn = () => ({
1803
1839
  type: "addAction",
1804
1840
  payload: void 0
1805
1841
  }));
1806
- }, f = (m, {
1842
+ }, m = (d, {
1807
1843
  record: u
1808
1844
  }) => {
1809
- m === L.EMIT ? t.push({
1845
+ d === A.EMIT ? t.push({
1810
1846
  path: `${n.path}/detail`,
1811
- query: K(u, a)
1812
- }) : m === L.PAGE && (s({
1847
+ query: q(u, a)
1848
+ }) : d === A.PAGE && (s({
1813
1849
  type: "mode",
1814
- payload: te.DETAIL
1815
- }), o(T.DETAIL, n.query, a));
1816
- }, p = (m) => {
1817
- m === L.EMIT ? t.push({
1850
+ payload: ae.DETAIL
1851
+ }), o(E.DETAIL, n.query, a));
1852
+ }, f = (d) => {
1853
+ d === A.EMIT ? t.push({
1818
1854
  path: `${n.path}/add`
1819
- }) : m === L.PAGE ? (s({
1855
+ }) : d === A.PAGE ? (s({
1820
1856
  type: "mode",
1821
- payload: te.ADD
1857
+ payload: ae.ADD
1822
1858
  }), s({
1823
1859
  type: "detailData",
1824
1860
  payload: e.defaultAddRecord || {}
1825
- })) : m === L.SUCCESS && (r.addAction === pe.CONTINUE ? s({
1861
+ })) : d === A.SUCCESS && (r.addAction === ye.CONTINUE ? s({
1826
1862
  type: "detailData",
1827
1863
  payload: e.defaultAddRecord || {}
1828
- }) : e.routeBack ? e.routeBack(T.ADD) : t.go(-1));
1829
- }, g = (m, {
1864
+ }) : e.routeBack ? e.routeBack(E.ADD) : t.go(-1));
1865
+ }, b = (d, {
1830
1866
  record: u
1831
1867
  }) => {
1832
- m === L.EMIT ? t.push({
1868
+ d === A.EMIT ? t.push({
1833
1869
  path: `${n.path}/edit`,
1834
- query: K(u, a)
1835
- }) : m === L.PAGE ? (s({
1870
+ query: q(u, a)
1871
+ }) : d === A.PAGE ? (s({
1836
1872
  type: "mode",
1837
- payload: te.EDIT
1838
- }), o(T.DETAIL, n.query, a)) : m === L.SUCCESS && (e.routeBack ? e.routeBack(T.EDIT) : t.go(-1));
1873
+ payload: ae.EDIT
1874
+ }), o(E.DETAIL, n.query, a)) : d === A.SUCCESS && (e.routeBack ? e.routeBack(E.EDIT) : t.go(-1));
1839
1875
  };
1840
- return Ke(({
1841
- type: m,
1876
+ return xe(({
1877
+ type: d,
1842
1878
  payload: u,
1843
1879
  source: l
1844
1880
  }) => {
1845
1881
  if (l)
1846
1882
  return;
1847
- let y = m, i = u == null ? void 0 : u.type;
1848
- const d = u == null ? void 0 : u.record;
1849
- switch (y === fe.Success && (y = b(u, ["requestOpts", "action"]), i = L.SUCCESS), y) {
1850
- case T.LIST:
1883
+ let p = d, i = u == null ? void 0 : u.type;
1884
+ const g = u == null ? void 0 : u.record;
1885
+ switch (p === pe.Success && (p = S(u, ["requestOpts", "action"]), i = A.SUCCESS), p) {
1886
+ case E.LIST:
1851
1887
  c(i);
1852
1888
  break;
1853
- case T.DETAIL:
1854
- f(i, {
1855
- record: d
1889
+ case E.DETAIL:
1890
+ m(i, {
1891
+ record: g
1856
1892
  });
1857
1893
  break;
1858
- case T.ADD:
1859
- p(i);
1894
+ case E.ADD:
1895
+ f(i);
1860
1896
  break;
1861
- case T.EDIT:
1862
- g(i, {
1863
- record: d
1897
+ case E.EDIT:
1898
+ b(i, {
1899
+ record: g
1864
1900
  });
1865
1901
  break;
1866
1902
  }
1867
1903
  }), () => null;
1868
1904
  }
1869
- }), Or = M({
1905
+ }), pr = N({
1870
1906
  props: {
1871
- ...Ce.props,
1872
- ...Re.props
1907
+ ...Te.props,
1908
+ ...Ke.props
1873
1909
  },
1874
1910
  setup: (e, {
1875
1911
  slots: t,
1876
1912
  expose: n
1877
1913
  }) => {
1878
- const s = j();
1879
- n(ce(Et, s));
1880
- const o = $(Re.props);
1881
- return () => h(Ce, O({
1914
+ const s = B();
1915
+ n(ie(Et, s));
1916
+ const o = F(Ke.props);
1917
+ return () => y(Te, O({
1882
1918
  ref: s
1883
1919
  }, C(e, o)), {
1884
1920
  default: () => {
1885
1921
  var a;
1886
- return [h(Re, K(e, o), null), (a = t.default) == null ? void 0 : a.call(t)];
1922
+ return [y(Ke, q(e, o), null), (a = t.default) == null ? void 0 : a.call(t)];
1887
1923
  }
1888
1924
  });
1889
1925
  }
1890
- }), Zn = M({
1926
+ }), xn = N({
1891
1927
  props: {
1892
- ..._e.props,
1928
+ ...ze.props,
1893
1929
  clsName: {
1894
1930
  type: String,
1895
1931
  default: "pro-curd-list"
@@ -1905,70 +1941,70 @@ const Jn = () => ({
1905
1941
  searchColumns: a,
1906
1942
  tableColumns: r,
1907
1943
  sendCurdEvent: c,
1908
- operates: f
1909
- } = G(), p = A(
1910
- x(f, (m) => {
1911
- const u = m.action;
1912
- return u === T.DETAIL || u === T.EDIT || u === T.DELETE || m.tableOperate;
1944
+ operates: m
1945
+ } = G(), f = K(
1946
+ U(m, (d) => {
1947
+ const u = d.action;
1948
+ return u === E.DETAIL || u === E.EDIT || u === E.DELETE || d.tableOperate;
1913
1949
  }),
1914
- (m) => {
1950
+ (d) => {
1915
1951
  const u = {
1916
- ...K(m, "label", "show", "disabled", "loading", "extraProps", "onClick", "element"),
1917
- value: m.action
1952
+ ...q(d, "label", "show", "disabled", "loading", "extraProps", "onClick", "element"),
1953
+ value: d.action
1918
1954
  };
1919
1955
  return u.onClick || (u.onClick = (l) => {
1920
1956
  c({
1921
- action: m.action,
1922
- type: L.EMIT,
1957
+ action: d.action,
1958
+ type: A.EMIT,
1923
1959
  record: l
1924
1960
  });
1925
1961
  }), u;
1926
1962
  }
1927
- ), g = (m) => {
1963
+ ), b = (d) => {
1928
1964
  c({
1929
- action: T.LIST,
1930
- type: L.EMIT,
1931
- values: m
1965
+ action: E.LIST,
1966
+ type: A.EMIT,
1967
+ values: d
1932
1968
  });
1933
1969
  };
1934
1970
  return () => {
1935
- var v, S;
1936
- const m = e.searchProps, u = {
1971
+ var M, I;
1972
+ const d = e.searchProps, u = {
1937
1973
  formElementMap: s,
1938
1974
  columns: a.value,
1939
- ...m
1940
- }, l = e.tableProps, y = {
1975
+ ...d
1976
+ }, l = e.tableProps, p = {
1941
1977
  elementMap: n,
1942
1978
  columns: r.value,
1943
1979
  loading: o.listLoading,
1944
- dataSource: (v = o.listData) == null ? void 0 : v.dataSource,
1980
+ dataSource: (M = o.listData) == null ? void 0 : M.dataSource,
1945
1981
  ...C(l, "operate"),
1946
1982
  operate: {
1947
- items: p,
1983
+ items: f,
1948
1984
  ...l == null ? void 0 : l.operate
1949
1985
  }
1950
- }, i = e.paginationProps, d = {
1951
- total: (S = o.listData) == null ? void 0 : S.total,
1952
- ...i
1986
+ }, i = e.paginationProps, g = {
1987
+ total: (I = o.listData) == null ? void 0 : I.total,
1988
+ ...ne(i) ? {} : i
1953
1989
  };
1954
- return h(_e, O(C(e, "searchProps", "tableProps", "paginationProps"), {
1990
+ return y(ze, O(C(e, "searchProps", "tableProps", "paginationProps"), {
1955
1991
  searchProps: u,
1956
- tableProps: y,
1957
- paginationProps: d,
1958
- onSearch: g
1992
+ tableProps: p,
1993
+ paginationProps: g,
1994
+ onSearch: b
1959
1995
  }), {
1960
1996
  ...t,
1961
1997
  search: t.search ? (P) => t.search(P, u) : void 0,
1962
- pagination: t.pagination ? (P) => t.pagination(P, d) : void 0
1998
+ pagination: t.pagination ? (P) => t.pagination(P, g) : void 0
1963
1999
  });
1964
2000
  };
1965
2001
  }
1966
- }), Lr = M(() => {
2002
+ }), yr = N(() => {
1967
2003
  const {
1968
2004
  listProps: e
1969
2005
  } = G();
1970
- return () => h(Zn, C(e == null ? void 0 : e.value, "slots"), b(e == null ? void 0 : e.value, "slots"));
1971
- }), er = () => ({
2006
+ return () => y(xn, C(e == null ? void 0 : e.value, "slots"), S(e == null ? void 0 : e.value, "slots"));
2007
+ }), jn = () => ({
1972
2008
  clsName: {
1973
2009
  type: String,
1974
2010
  default: "pro-curd-form"
@@ -1976,9 +2012,9 @@ const Jn = () => ({
1976
2012
  signName: {
1977
2013
  type: String
1978
2014
  }
1979
- }), xe = M({
2015
+ }), je = N({
1980
2016
  props: {
1981
- ...er()
2017
+ ...jn()
1982
2018
  },
1983
2019
  setup: (e, {
1984
2020
  slots: t,
@@ -1990,58 +2026,58 @@ const Jn = () => ({
1990
2026
  formElementMap: a,
1991
2027
  curdState: r,
1992
2028
  formColumns: c,
1993
- getSignColumns: f,
1994
- sendCurdEvent: p
1995
- } = G(), g = j();
1996
- n(ce(e.formMethods || [], g));
1997
- const m = R(() => e.signName ? f(e.signName) : c.value), u = () => {
1998
- var d;
1999
- r.addAction = pe.NORMAL, (d = g.value) == null || d.submit();
2029
+ getSignColumns: m,
2030
+ sendCurdEvent: f
2031
+ } = G(), b = B();
2032
+ n(ie(e.formMethods || [], b));
2033
+ const d = w(() => e.signName ? m(e.signName) : c.value), u = () => {
2034
+ var g;
2035
+ r.addAction = ye.NORMAL, (g = b.value) == null || g.submit();
2000
2036
  }, l = () => {
2001
- var d;
2002
- r.addAction = pe.CONTINUE, (d = g.value) == null || d.submit();
2003
- }, y = [
2037
+ var g;
2038
+ r.addAction = ye.CONTINUE, (g = b.value) == null || g.submit();
2039
+ }, p = [
2004
2040
  {
2005
- value: U.RESET,
2041
+ value: V.RESET,
2006
2042
  label: "\u91CD\u7F6E"
2007
2043
  },
2008
2044
  {
2009
- value: U.SUBMIT,
2045
+ value: V.SUBMIT,
2010
2046
  label: "\u63D0\u4EA4",
2011
2047
  extraProps: {
2012
2048
  type: "primary"
2013
2049
  }
2014
2050
  },
2015
2051
  {
2016
- value: U.CONTINUE,
2052
+ value: V.CONTINUE,
2017
2053
  label: "\u786E\u5B9A\u5E76\u7EE7\u7EED",
2018
2054
  extraProps: {
2019
2055
  type: "primary"
2020
2056
  },
2021
2057
  show: !1
2022
2058
  }
2023
- ], i = (d) => {
2024
- s.onFinish || (r.mode === T.EDIT ? p({
2025
- action: T.EDIT,
2026
- type: L.EXECUTE,
2027
- values: d
2028
- }) : p({
2029
- action: T.ADD,
2030
- type: L.EXECUTE,
2031
- values: d
2059
+ ], i = (g) => {
2060
+ s.onFinish || (r.mode === E.EDIT ? f({
2061
+ action: E.EDIT,
2062
+ type: A.EXECUTE,
2063
+ values: g
2064
+ }) : f({
2065
+ action: E.ADD,
2066
+ type: A.EXECUTE,
2067
+ values: g
2032
2068
  }));
2033
2069
  };
2034
- return () => h(Kn, O({
2035
- ref: g
2070
+ return () => y(En, O({
2071
+ ref: b
2036
2072
  }, C(e, "operate"), {
2037
2073
  elementMap: e.elementMap || o,
2038
2074
  formElementMap: e.formElementMap || a,
2039
- columns: e.columns || m.value,
2040
- readonly: r.mode === T.DETAIL,
2075
+ columns: e.columns || d.value,
2076
+ readonly: r.mode === E.DETAIL,
2041
2077
  model: e.model || r.detailData,
2042
- hideRequiredMark: r.mode === T.DETAIL,
2078
+ hideRequiredMark: r.mode === E.DETAIL,
2043
2079
  operate: e.operate ? {
2044
- items: y,
2080
+ items: p,
2045
2081
  onSubmit: u,
2046
2082
  onContinue: l,
2047
2083
  ...e.operate
@@ -2049,12 +2085,12 @@ const Jn = () => ({
2049
2085
  onFinish: i
2050
2086
  }), t);
2051
2087
  }
2052
- }), Ar = M(() => {
2088
+ }), hr = N(() => {
2053
2089
  const {
2054
2090
  formProps: e
2055
2091
  } = G();
2056
- return () => h(xe, C(e == null ? void 0 : e.value, "slots"), b(e == null ? void 0 : e.value, "slots"));
2057
- }), tr = () => ({
2092
+ return () => y(je, C(e == null ? void 0 : e.value, "slots"), S(e == null ? void 0 : e.value, "slots"));
2093
+ }), qn = () => ({
2058
2094
  clsName: {
2059
2095
  type: String,
2060
2096
  default: "pro-curd-desc"
@@ -2062,9 +2098,9 @@ const Jn = () => ({
2062
2098
  signName: {
2063
2099
  type: String
2064
2100
  }
2065
- }), nr = M({
2101
+ }), Un = N({
2066
2102
  props: {
2067
- ...tr()
2103
+ ...qn()
2068
2104
  },
2069
2105
  setup: (e, {
2070
2106
  slots: t
@@ -2073,64 +2109,64 @@ const Jn = () => ({
2073
2109
  curdState: n,
2074
2110
  descColumns: s,
2075
2111
  getSignColumns: o
2076
- } = G(), a = R(() => e.signName ? o(e.signName) : s.value);
2077
- return () => h(Hn, O(C(e, "signName", "model", "columns"), {
2112
+ } = G(), a = w(() => e.signName ? o(e.signName) : s.value);
2113
+ return () => y(Kn, O(C(e, "signName", "model", "columns"), {
2078
2114
  model: e.model || n.detailData,
2079
2115
  columns: a.value
2080
2116
  }), t);
2081
2117
  }
2082
- }), Rr = M(() => {
2118
+ }), gr = N(() => {
2083
2119
  const {
2084
2120
  descProps: e
2085
2121
  } = G();
2086
- return () => h(nr, C(e == null ? void 0 : e.value, "slots"), b(e == null ? void 0 : e.value, "slots"));
2087
- }), He = () => ({
2122
+ return () => y(Un, C(e == null ? void 0 : e.value, "slots"), S(e == null ? void 0 : e.value, "slots"));
2123
+ }), Xe = () => ({
2088
2124
  clsName: {
2089
2125
  type: String,
2090
2126
  default: "pro-curd-modal"
2091
2127
  },
2092
2128
  validMode: {
2093
2129
  type: Array,
2094
- default: [T.ADD, T.DETAIL, T.EDIT]
2130
+ default: [E.ADD, E.DETAIL, E.EDIT]
2095
2131
  }
2096
- }), Ct = M({
2132
+ }), Ct = N({
2097
2133
  props: {
2098
- ...He()
2134
+ ...Xe()
2099
2135
  },
2100
2136
  setup: (e, {
2101
2137
  slots: t
2102
2138
  }) => {
2103
- const n = H(), s = n(Tn), o = n(dt), {
2139
+ const n = Q(), s = n(x.ModalKey), o = n(x.LoadingKey), {
2104
2140
  curdState: a,
2105
2141
  getOperate: r
2106
2142
  } = G(), c = () => {
2107
- a.mode = void 0, Qe(a.detailData, {}), a.detailLoading = !1, a.addAction = void 0;
2108
- }, f = $(He());
2143
+ a.mode = void 0, Ye(a.detailData, {}), a.detailLoading = !1, a.addAction = void 0;
2144
+ }, m = F(Xe());
2109
2145
  return () => {
2110
- var g;
2111
- const p = a.mode;
2112
- return !se(e.validMode, (m) => m === p) || !s ? null : h(s, O(C(e, f), {
2113
- visible: se(e.validMode, (m) => m === p),
2114
- title: e.title || ((g = r(a.mode)) == null ? void 0 : g.label),
2146
+ var b;
2147
+ const f = a.mode;
2148
+ return !le(e.validMode, (d) => d === f) || !s ? null : y(s, O(C(e, m), {
2149
+ visible: le(e.validMode, (d) => d === f),
2150
+ title: e.title || ((b = r(a.mode)) == null ? void 0 : b.label),
2115
2151
  confirmLoading: a.operateLoading,
2116
- maskClosable: a.mode === T.DETAIL,
2152
+ maskClosable: a.mode === E.DETAIL,
2117
2153
  onCancel: c
2118
2154
  }), {
2119
2155
  default: () => {
2120
- var m;
2121
- return [a.detailLoading && o ? h(o, {
2156
+ var d;
2157
+ return [a.detailLoading && o ? y(o, {
2122
2158
  loading: !0
2123
2159
  }, {
2124
- default: () => [h("div", {
2160
+ default: () => [y("div", {
2125
2161
  class: `${e.clsName}-loading-dom`
2126
2162
  }, null)]
2127
- }) : (m = t.default) == null ? void 0 : m.call(t)];
2163
+ }) : (d = t.default) == null ? void 0 : d.call(t)];
2128
2164
  },
2129
2165
  ...C(t, "default")
2130
2166
  });
2131
2167
  };
2132
2168
  }
2133
- }), wr = M({
2169
+ }), br = N({
2134
2170
  props: {
2135
2171
  modalProps: Object,
2136
2172
  formProps: Object
@@ -2138,127 +2174,112 @@ const Jn = () => ({
2138
2174
  setup: (e, {
2139
2175
  slots: t
2140
2176
  }) => {
2141
- const n = j(), s = le(t, "modal"), o = le(t, "form");
2142
- return () => h(Ct, O(e.modalProps, {
2177
+ const n = B(), s = re(t, "modal"), o = re(t, "form");
2178
+ return () => y(Ct, O(e.modalProps, {
2143
2179
  onOk: () => {
2144
2180
  var a;
2145
2181
  (a = n.value) == null || a.submit();
2146
2182
  }
2147
2183
  }), {
2148
- default: () => [h(xe, O({
2184
+ default: () => [y(je, O({
2149
2185
  ref: n
2150
2186
  }, e.formProps), o)],
2151
2187
  ...s
2152
2188
  });
2153
2189
  }
2154
- }), $r = M(() => {
2190
+ }), Sr = N(() => {
2155
2191
  const {
2156
2192
  modalProps: e,
2157
2193
  formProps: t
2158
- } = G(), n = j();
2159
- return () => h(Ct, O(C(e, "slots"), {
2194
+ } = G(), n = B();
2195
+ return () => y(Ct, O(C(e, "slots"), {
2160
2196
  onOk: () => {
2161
2197
  var s;
2162
2198
  (s = n.value) == null || s.submit();
2163
2199
  }
2164
2200
  }), {
2165
- default: () => [h(xe, O({
2201
+ default: () => [y(je, O({
2166
2202
  ref: n
2167
- }, C(t, "slots")), b(t, "slots"))],
2168
- ...b(e, "slots")
2203
+ }, C(t, "slots")), S(t, "slots"))],
2204
+ ...S(e, "slots")
2169
2205
  });
2170
2206
  });
2171
2207
  export {
2172
- bn as ButtonKey,
2173
- Cn as CheckboxKey,
2174
- gn as ColKey,
2175
- T as CurdAction,
2176
- pe as CurdAddAction,
2177
- te as CurdCurrentMode,
2208
+ E as CurdAction,
2209
+ ye as CurdAddAction,
2210
+ ae as CurdCurrentMode,
2178
2211
  Et as CurdMethods,
2179
- L as CurdSubAction,
2180
- vn as DescriptionsItemKey,
2181
- Sn as DescriptionsKey,
2182
- U as FormAction,
2183
- Mn as FormItemKey,
2184
- In as FormKey,
2185
- dt as LoadingKey,
2186
- Pr as LogonUser,
2187
- it as LogonUserKey,
2188
- Tn as ModalKey,
2189
- Sr as MustLogon,
2190
- Le as PageHeader,
2191
- Pn as PaginationKey,
2192
- En as PopoverKey,
2193
- dr as ProConfig,
2194
- Ce as ProCurd,
2195
- nr as ProCurdDesc,
2196
- Rr as ProCurdDescConnect,
2197
- xe as ProCurdForm,
2198
- Ar as ProCurdFormConnect,
2199
- Zn as ProCurdList,
2200
- Lr as ProCurdListConnect,
2212
+ A as CurdSubAction,
2213
+ x as ElementKeys,
2214
+ V as FormAction,
2215
+ sr as LogonUser,
2216
+ dt as LogonUserKey,
2217
+ ar as MustLogon,
2218
+ Ae as PageHeader,
2219
+ Jn as ProConfig,
2220
+ Te as ProCurd,
2221
+ Un as ProCurdDesc,
2222
+ gr as ProCurdDescConnect,
2223
+ je as ProCurdForm,
2224
+ hr as ProCurdFormConnect,
2225
+ xn as ProCurdList,
2226
+ yr as ProCurdListConnect,
2201
2227
  Ct as ProCurdModal,
2202
- wr as ProCurdModalForm,
2203
- $r as ProCurdModalFormConnect,
2204
- Hn as ProDesc,
2205
- Kn as ProForm,
2206
- Nn as ProFormKey,
2207
- Cr as ProFormList,
2208
- Oe as ProGrid,
2209
- _e as ProList,
2210
- Nr as ProModalCurd,
2211
- Ne as ProModule,
2228
+ br as ProCurdModalForm,
2229
+ Sr as ProCurdModalFormConnect,
2230
+ Kn as ProDesc,
2231
+ En as ProForm,
2232
+ ur as ProFormList,
2233
+ Le as ProGrid,
2234
+ ze as ProList,
2235
+ fr as ProModalCurd,
2236
+ Oe as ProModule,
2212
2237
  St as ProOperate,
2213
- Dr as ProPage,
2214
- Or as ProPageCurd,
2215
- Tr as ProSearchForm,
2216
- On as ProSearchFormKey,
2217
- Mr as ProTable,
2218
- Ln as ProTableKey,
2219
- fe as RequestAction,
2220
- hn as RowKey,
2221
- Ee as SearchMode,
2222
- Dn as TableKey,
2238
+ mr as ProPage,
2239
+ pr as ProPageCurd,
2240
+ lr as ProSearchForm,
2241
+ dr as ProTable,
2242
+ pe as RequestAction,
2243
+ Ce as SearchMode,
2223
2244
  mn as Wrapper,
2224
2245
  mt as convertPathToList,
2225
2246
  un as convertResData,
2226
- ce as createExpose,
2227
- Er as createExposeObj,
2228
- Ir as createFormItemCompFn,
2229
- mr as createProConfig,
2230
- zn as defaultPage,
2231
- le as filterSlotsByPrefix,
2232
- oe as getColumnFormItemName,
2233
- at as getColumnValueType,
2247
+ ie as createExpose,
2248
+ cr as createExposeObj,
2249
+ ir as createFormItemCompFn,
2250
+ Qn as createProConfig,
2251
+ An as defaultPage,
2252
+ re as filterSlotsByPrefix,
2253
+ ue as getColumnFormItemName,
2254
+ ot as getColumnValueType,
2234
2255
  dn as getFirstPropName,
2235
- ot as getFormItemEl,
2236
- ke as getItemEl,
2256
+ st as getFormItemEl,
2257
+ Fe as getItemEl,
2237
2258
  ft as getSignValue,
2238
- wn as getValidValues,
2239
- De as mergeStateToList,
2240
- de as proBaseProps,
2241
- Xn as provideProCurd,
2259
+ bn as getValidValues,
2260
+ Ne as mergeStateToList,
2261
+ me as proBaseProps,
2262
+ wn as provideProCurd,
2242
2263
  ht as provideProFormList,
2243
2264
  fn as provideProModule,
2244
- me as renderElement,
2245
- Fe as renderElements,
2265
+ fe as renderElement,
2266
+ $e as renderElements,
2246
2267
  yn as useAccess,
2247
- br as useAccessMgr,
2268
+ rr as useAccessMgr,
2248
2269
  cn as useComposeRequestActor,
2249
- yr as useDispatchMeta,
2250
- hr as useDispatchStore,
2251
- fr as useDoneRequestActor,
2252
- pr as useFailedRequestActor,
2253
- H as useGetCompByKey,
2254
- vr as useLogonUser,
2270
+ er as useDispatchMeta,
2271
+ tr as useDispatchStore,
2272
+ Yn as useDoneRequestActor,
2273
+ Zn as useFailedRequestActor,
2274
+ Q as useGetCompByKey,
2275
+ or as useLogonUser,
2255
2276
  ln as useMetaRegister,
2256
- Ke as useModuleEvent,
2257
- Y as useProConfig,
2277
+ xe as useModuleEvent,
2278
+ ee as useProConfig,
2258
2279
  G as useProCurd,
2259
2280
  bt as useProForm,
2260
2281
  yt as useProFormList,
2261
- he as useProModule,
2262
- Bn as useProTable,
2263
- gr as useReadStore
2282
+ ge as useProModule,
2283
+ Mn as useProTable,
2284
+ nr as useReadStore
2264
2285
  };