@vue-start/pro 0.4.12 → 0.4.13

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,5 +1,5 @@
1
1
  import { defineComponent as L, createVNode as b, mergeProps as R, isVNode as ie, computed as w, h as Z, inject as J, reactive as B, Fragment as oe, provide as Q, ref as $ } from "vue";
2
- import { map as M, isString as fe, forEach as W, reduce as ee, size as X, get as v, set as _, pick as K, omit as C, isArray as U, some as ve, keys as k, isFunction as H, head as tt, isObject as Fe, filter as z, split as nt, isEmpty as rt, mergeWith as xe, sortBy as ke, cloneDeep as at, isUndefined as ot, concat as ct, debounce as ut, clone as st, isBoolean as pe } from "lodash";
2
+ import { map as M, isString as fe, forEach as z, reduce as ee, size as V, get as v, set as _, pick as K, omit as C, isArray as U, some as ve, keys as k, isFunction as H, head as tt, isObject as Fe, filter as G, split as nt, isEmpty as rt, mergeWith as xe, sortBy as ke, cloneDeep as at, isUndefined as ot, concat as ct, debounce as ut, clone as st, isBoolean as pe } from "lodash";
3
3
  import { merge as dt, filter as he, tap as be, Subject as it } from "rxjs";
4
4
  import { useEffect as ce, setReactiveValue as lt, useWatch as mt } from "@vue-start/hooks";
5
5
  import { useRequestProvide as ge, isDoneRequestActor as qe, isFailedRequestActor as Ke } from "@vue-start/request";
@@ -37,8 +37,8 @@ const Et = () => ({
37
37
  ce(() => {
38
38
  const r = t.pipe(
39
39
  he(e),
40
- be((d) => {
41
- u.has(d.name) && o(d);
40
+ be((s) => {
41
+ u.has(s.name) && o(s);
42
42
  })
43
43
  ).subscribe();
44
44
  return () => {
@@ -46,26 +46,26 @@ const Et = () => ({
46
46
  };
47
47
  }, []);
48
48
  }, Vt = Ue(qe), Xt = Ue(Ke), St = (e, n, o) => {
49
- const { requestSubject$: t, dispatchRequest: u } = ge(), r = new Set(M(e, (f) => fe(f) ? f : f.name)), d = {};
49
+ const { requestSubject$: t, dispatchRequest: u } = ge(), r = new Set(M(e, (m) => fe(m) ? m : m.name)), s = {};
50
50
  ce(() => {
51
- const f = dt(
51
+ const m = dt(
52
52
  t.pipe(
53
53
  he(qe),
54
54
  be((y) => {
55
55
  var E, l;
56
- r.has(y.name) && ((E = n.onSuccess) == null || E.call(n, y), (l = n.onFinish) == null || l.call(n, y), d[y.name] = void 0);
56
+ r.has(y.name) && ((E = n.onSuccess) == null || E.call(n, y), (l = n.onFinish) == null || l.call(n, y), s[y.name] = void 0);
57
57
  })
58
58
  ),
59
59
  t.pipe(
60
60
  he(Ke),
61
61
  be((y) => {
62
62
  var E, l;
63
- r.has(y.name) && ((E = n.onFailed) == null || E.call(n, y), (l = n.onFinish) == null || l.call(n, y), d[y.name] = void 0);
63
+ r.has(y.name) && ((E = n.onFailed) == null || E.call(n, y), (l = n.onFinish) == null || l.call(n, y), s[y.name] = void 0);
64
64
  })
65
65
  )
66
66
  ).subscribe();
67
67
  return () => {
68
- f.unsubscribe(), o && W(d, (y) => {
68
+ m.unsubscribe(), o && z(s, (y) => {
69
69
  y && u({ ...y, stage: "CANCEL" });
70
70
  });
71
71
  };
@@ -74,19 +74,19 @@ const Et = () => ({
74
74
  var n;
75
75
  return ((n = e.formItemProps) == null ? void 0 : n.name) || e.dataIndex;
76
76
  }, Pe = (e, n, o = !0) => {
77
- var f;
77
+ var m;
78
78
  const t = Be(n), u = v(e, t);
79
79
  if (!u)
80
80
  return null;
81
- const r = te(n), d = o ? n.formItemProps : C(n.formItemProps, "rules");
81
+ const r = te(n), s = o ? n.formItemProps : C(n.formItemProps, "rules");
82
82
  return Z(u, {
83
83
  key: r,
84
84
  name: r,
85
85
  label: n.title,
86
- ...d,
86
+ ...s,
87
87
  fieldProps: C(n.formFieldProps, "slots"),
88
88
  showProps: n.showProps
89
- }, (f = n.formFieldProps) == null ? void 0 : f.slots);
89
+ }, (m = n.formFieldProps) == null ? void 0 : m.slots);
90
90
  }, $e = (e, n, o) => {
91
91
  var r;
92
92
  const t = n.valueType || "text", u = v(e, t);
@@ -100,38 +100,38 @@ const Et = () => ({
100
100
  const o = n.elementProps, t = {
101
101
  ...n.elementProps
102
102
  };
103
- return W((u = n.highConfig$) == null ? void 0 : u.registerPropsTrans, (r) => {
104
- const d = v(o, r.name);
105
- if (!(!d || ie(d))) {
106
- if (U(d)) {
107
- if (ve(d, (f) => ie(f)))
103
+ return z((u = n.highConfig$) == null ? void 0 : u.registerPropsTrans, (r) => {
104
+ const s = v(o, r.name);
105
+ if (!(!s || ie(s))) {
106
+ if (U(s)) {
107
+ if (ve(s, (m) => ie(m)))
108
108
  return;
109
- _(t, r.name, Te(e, d));
109
+ _(t, r.name, Te(e, s));
110
110
  return;
111
111
  }
112
- !d.elementType || (r.isFun ? _(t, r.name, (...f) => {
112
+ !s.elementType || (r.isFun ? _(t, r.name, (...m) => {
113
113
  const y = r.needParams ? {
114
- ...d.elementProps,
115
- params$: f
116
- } : d.elementProps;
114
+ ...s.elementProps,
115
+ params$: m
116
+ } : s.elementProps;
117
117
  return ne(e, {
118
- ...d,
118
+ ...s,
119
119
  elementProps: y
120
120
  });
121
- }) : _(t, r.name, ne(e, d)));
121
+ }) : _(t, r.name, ne(e, s)));
122
122
  }
123
123
  }), t;
124
124
  }, Xe = (e, n) => {
125
- const o = X(n.children) > 0 ? Te(e, n.children) : void 0, t = n.childrenSlotName || "default", u = C(n.slots, o ? t : "");
126
- return W(k(u), (r) => {
127
- const d = u[r];
128
- d && !H(d) && d.elementType && (u[r] = (...f) => {
129
- const y = d.needParams ? {
130
- ...d.elementProps,
131
- params$: f
132
- } : d.elementProps;
125
+ const o = V(n.children) > 0 ? Te(e, n.children) : void 0, t = n.childrenSlotName || "default", u = C(n.slots, o ? t : "");
126
+ return z(k(u), (r) => {
127
+ const s = u[r];
128
+ s && !H(s) && s.elementType && (u[r] = (...m) => {
129
+ const y = s.needParams ? {
130
+ ...s.elementProps,
131
+ params$: m
132
+ } : s.elementProps;
133
133
  return ne(e, {
134
- ...d,
134
+ ...s,
135
135
  elementProps: y
136
136
  });
137
137
  });
@@ -168,8 +168,8 @@ const Et = () => ({
168
168
  } = ue(), {
169
169
  elementMap: t,
170
170
  elementConfig: u
171
- } = e, r = u.highConfig$, d = Ve(t, u), f = ee(r.registerEventList, (m, a) => ({
172
- ...m,
171
+ } = e, r = u.highConfig$, s = Ve(t, u), m = ee(r.registerEventList, (f, a) => ({
172
+ ...f,
173
173
  [a.name]: (...c) => {
174
174
  o({
175
175
  type: a.sendEventName || u.elementId,
@@ -177,21 +177,21 @@ const Et = () => ({
177
177
  });
178
178
  }
179
179
  }), {}), y = w(() => {
180
- if (!r.registerStateList || X(r.registerStateList) <= 0)
180
+ if (!r.registerStateList || V(r.registerStateList) <= 0)
181
181
  return;
182
- const m = {
183
- ...d
182
+ const f = {
183
+ ...s
184
184
  }, a = M(r.registerStateList, (c) => {
185
- const s = c.mapName || c.name, i = v(n, c.name);
186
- return _(m, s, i), ht(s);
185
+ const d = c.mapName || c.name, i = v(n, c.name);
186
+ return _(f, d, i), ht(d);
187
187
  });
188
- return K(m, a);
188
+ return K(f, a);
189
189
  }), E = v(t, u.elementType) || u.elementType, l = Xe(t, u);
190
190
  return () => v(y.value, "show$") === !1 ? null : Z(E, {
191
191
  key: u.elementId,
192
- ...d,
192
+ ...s,
193
193
  ...C(y.value, "show$"),
194
- ...f
194
+ ...m
195
195
  }, l);
196
196
  }
197
197
  }), ze = Symbol("pro-module"), ue = () => J(ze), Pt = (e) => {
@@ -222,41 +222,41 @@ const Et = () => ({
222
222
  }) => {
223
223
  const t = (a) => U(a) ? Te(e.elementMap, a) : ne(e.elementMap, a), u = new it(), r = (a) => {
224
224
  u.next(a);
225
- }, d = e.state || B({}), f = (a) => {
226
- const c = d[a.type], s = H(a.payload) ? a.payload(c) : a.payload;
225
+ }, s = e.state || B({}), m = (a) => {
226
+ const c = s[a.type], d = H(a.payload) ? a.payload(c) : a.payload;
227
227
  if (Fe(c)) {
228
- lt(d[a.type], s);
228
+ lt(s[a.type], d);
229
229
  return;
230
230
  }
231
- d[a.type] = s;
231
+ s[a.type] = d;
232
232
  }, {
233
233
  dispatchRequest: y
234
234
  } = ge(), E = ee(e.requests, (a, c) => {
235
- var s;
235
+ var d;
236
236
  return {
237
237
  ...a,
238
- [(s = c.actor) == null ? void 0 : s.name]: c
238
+ [(d = c.actor) == null ? void 0 : d.name]: c
239
239
  };
240
240
  }, {}), l = ee(e.requests, (a, c) => ({
241
241
  ...a,
242
242
  [c.action]: c
243
- }), {}), m = (a, ...c) => {
244
- const s = v(E, a) || v(l, a);
245
- if (!s)
243
+ }), {}), f = (a, ...c) => {
244
+ const d = v(E, a) || v(l, a);
245
+ if (!d)
246
246
  return;
247
247
  let i;
248
- s.convertParams ? i = s.convertParams(...c) : i = v(c, 0), s.loadingName && f({
249
- type: s.loadingName,
248
+ d.convertParams ? i = d.convertParams(...c) : i = v(c, 0), d.loadingName && m({
249
+ type: d.loadingName,
250
250
  payload: !0
251
- }), y(s.actor, i);
251
+ }), y(d.actor, i);
252
252
  };
253
253
  return St(k(E), {
254
254
  onSuccess: (a) => {
255
- var s, i;
255
+ var d, i;
256
256
  const c = v(E, a.name);
257
257
  if (c != null && c.stateName) {
258
- const h = c.convertData ? c.convertData(a) : (s = a.res) == null ? void 0 : s.data;
259
- f({
258
+ const h = c.convertData ? c.convertData(a) : (d = a.res) == null ? void 0 : d.data;
259
+ m({
260
260
  type: c.stateName,
261
261
  payload: h
262
262
  });
@@ -270,7 +270,7 @@ const Et = () => ({
270
270
  }), (i = c.onSuccess) == null || i.call(c, a);
271
271
  },
272
272
  onFailed: (a) => {
273
- var s;
273
+ var d;
274
274
  const c = v(E, a.name);
275
275
  r({
276
276
  type: re.Fail,
@@ -278,11 +278,11 @@ const Et = () => ({
278
278
  actor: a,
279
279
  requestOpts: c
280
280
  }
281
- }), (s = c.onFailed) == null || s.call(c, a);
281
+ }), (d = c.onFailed) == null || d.call(c, a);
282
282
  },
283
283
  onFinish: (a) => {
284
284
  const c = v(E, [a.name, "loadingName"]);
285
- c && f({
285
+ c && m({
286
286
  type: c,
287
287
  payload: !1
288
288
  });
@@ -291,16 +291,16 @@ const Et = () => ({
291
291
  elementMap: e.elementMap,
292
292
  subject$: u,
293
293
  sendEvent: r,
294
- state: d,
295
- dispatch: f,
294
+ state: s,
295
+ dispatch: m,
296
296
  requests: e.requests,
297
- sendRequest: m
297
+ sendRequest: f
298
298
  }), o({
299
299
  sendEvent: r,
300
- sendRequest: m
300
+ sendRequest: f
301
301
  }), () => {
302
302
  var a;
303
- return b(oe, null, [X(e.elementConfigs) > 0 && t(e.elementConfigs), (a = n.default) == null ? void 0 : a.call(n)]);
303
+ return b(oe, null, [V(e.elementConfigs) > 0 && t(e.elementConfigs), (a = n.default) == null ? void 0 : a.call(n)]);
304
304
  };
305
305
  }
306
306
  }), De = (e) => {
@@ -334,11 +334,11 @@ const Et = () => ({
334
334
  var T = /* @__PURE__ */ ((e) => (e.LIST = "LIST", e.DETAIL = "DETAIL", e.ADD = "ADD", e.EDIT = "EDIT", e.DELETE = "DELETE", e))(T || {}), D = /* @__PURE__ */ ((e) => (e.EMIT = "EMIT", e.EXECUTE = "EXECUTE", e.PAGE = "PAGE", e.SUCCESS = "SUCCESS", e.FAIL = "FAIL", e))(D || {}), q = /* @__PURE__ */ ((e) => (e.ADD = "ADD", e.EDIT = "EDIT", e.DETAIL = "DETAIL", e))(q || {}), ae = /* @__PURE__ */ ((e) => (e.NORMAL = "NORMAL", e.CONTINUE = "CONTINUE", e))(ae || {});
335
335
  const Ct = (e, n, o) => {
336
336
  if (n) {
337
- const t = z(k(n), (u) => !n[u]);
337
+ const t = G(k(n), (u) => !n[u]);
338
338
  return C(e, t);
339
339
  }
340
340
  if (o) {
341
- const t = z(k(o), (u) => !o[u](e));
341
+ const t = G(k(o), (u) => !o[u](e));
342
342
  return C(e, t);
343
343
  }
344
344
  return e;
@@ -347,21 +347,32 @@ const Ct = (e, n, o) => {
347
347
  return U(e) ? e : e && fe(e) && e.indexOf(".") > 0 ? nt(e, ".") : [e];
348
348
  }, Ae = (e, n, o) => !n || !o ? e : M(e, (t) => {
349
349
  const u = H(o) ? o(t) : o, r = v(n, u);
350
- return !r || rt(r) || H(r) || !Fe(r) ? t : xe(t, r, (d, f) => {
351
- if (U(d) || U(f))
352
- return f;
350
+ return !r || rt(r) || H(r) || !Fe(r) ? t : xe(t, r, (s, m) => {
351
+ if (U(s) || U(m))
352
+ return m;
353
353
  });
354
- }), Y = (e, n) => ee(
355
- e,
356
- (o, t) => ({
357
- ...o,
358
- [t]: (...u) => {
359
- var r, d;
360
- return (d = (r = n.value) == null ? void 0 : r[t]) == null ? void 0 : d.call(r, ...u);
361
- }
362
- }),
363
- {}
364
- ), It = {
354
+ }), Y = (e, n) => {
355
+ const o = ee(
356
+ e,
357
+ (t, u) => ({
358
+ ...t,
359
+ [u]: (...r) => {
360
+ var s, m;
361
+ return (m = (s = n.value) == null ? void 0 : s[u]) == null ? void 0 : m.call(s, ...r);
362
+ }
363
+ }),
364
+ {}
365
+ );
366
+ return o.originRef = n, o;
367
+ }, Wt = (e, n, o) => {
368
+ const t = { originRef: e, ...o };
369
+ return n && V(n) > 0 && z(n, (u) => {
370
+ t[u] = (...r) => {
371
+ var s, m;
372
+ return (m = (s = e.value) == null ? void 0 : s[u]) == null ? void 0 : m.call(s, ...r);
373
+ };
374
+ }), t;
375
+ }, It = {
365
376
  page: 1,
366
377
  pageSize: 10
367
378
  }, Lt = () => ({
@@ -397,17 +408,17 @@ const Ct = (e, n, o) => {
397
408
  elementMap: t,
398
409
  state: u,
399
410
  sendEvent: r,
400
- sendRequest: d
401
- } = ue(), f = w(() => Ae(e.columns, e.columnState, (g) => te(g))), y = (g, O = !0) => Pe(e.formElementMap, g, O), E = (g, O) => $e(t, g, O), l = (g, O) => {
402
- const G = z(f.value, (j) => {
411
+ sendRequest: s
412
+ } = ue(), m = w(() => Ae(e.columns, e.columnState, (g) => te(g))), y = (g, O = !0) => Pe(e.formElementMap, g, O), E = (g, O) => $e(t, g, O), l = (g, O) => {
413
+ const W = G(m.value, (j) => {
403
414
  const x = v(j, ["extra", g]) || v(j, g);
404
415
  return O ? x !== !1 : x;
405
416
  });
406
- return ke(G, (j) => v(j, ["extra", `${g}Sort`]) || v(j, `${g}Sort`));
407
- }, m = w(() => l("form", !0)), a = w(() => l("detail", !0)), c = w(() => l("table", !0)), s = w(() => l("search"));
417
+ return ke(W, (j) => v(j, ["extra", `${g}Sort`]) || v(j, `${g}Sort`));
418
+ }, f = w(() => l("form", !0)), a = w(() => l("detail", !0)), c = w(() => l("table", !0)), d = w(() => l("search"));
408
419
  let i;
409
420
  const h = (g) => {
410
- d(T.LIST, {
421
+ s(T.LIST, {
411
422
  ...i,
412
423
  ...g
413
424
  });
@@ -421,38 +432,38 @@ const Ct = (e, n, o) => {
421
432
  De(({
422
433
  type: g,
423
434
  payload: O,
424
- source: G
435
+ source: W
425
436
  }) => {
426
- if (G)
437
+ if (W)
427
438
  return;
428
439
  let j = g, x = O == null ? void 0 : O.type;
429
440
  j === re.Success && (j = v(O, ["requestOpts", "action"]), x = D.SUCCESS);
430
441
  const {
431
- values: V,
442
+ values: X,
432
443
  record: de
433
444
  } = O;
434
445
  switch (j) {
435
446
  case T.LIST:
436
- x === D.EMIT && (i = V, h());
447
+ x === D.EMIT && (i = X, h());
437
448
  return;
438
449
  case T.ADD:
439
- x === D.EXECUTE && d(T.ADD, V, u.detailData);
450
+ x === D.EXECUTE && s(T.ADD, X, u.detailData);
440
451
  return;
441
452
  case T.EDIT:
442
- x === D.EXECUTE && d(T.EDIT, V, u.detailData);
453
+ x === D.EXECUTE && s(T.EDIT, X, u.detailData);
443
454
  return;
444
455
  case T.DELETE:
445
- x === D.EMIT ? d(T.DELETE, de, e.rowKey) : x === D.SUCCESS && h();
456
+ x === D.EMIT ? s(T.DELETE, de, e.rowKey) : x === D.SUCCESS && h();
446
457
  return;
447
458
  }
448
- j && g === D.EXECUTE && d(j, V);
459
+ j && g === D.EXECUTE && s(j, X);
449
460
  });
450
461
  const S = ee(e.operates, (g, O) => ({
451
462
  ...g,
452
463
  [O.action]: O
453
464
  }), {}), P = (g) => v(S, g), N = w(() => e.listProps), F = w(() => e.formProps), I = w(() => e.descProps), A = w(() => e.modalProps);
454
465
  return Dt({
455
- columns: f,
466
+ columns: m,
456
467
  getSignColumns: l,
457
468
  getFormItemVNode: y,
458
469
  getItemVNode: E,
@@ -460,10 +471,10 @@ const Ct = (e, n, o) => {
460
471
  formElementMap: e.formElementMap,
461
472
  rowKey: e.rowKey,
462
473
  curdState: u,
463
- formColumns: m,
474
+ formColumns: f,
464
475
  descColumns: a,
465
476
  tableColumns: c,
466
- searchColumns: s,
477
+ searchColumns: d,
467
478
  sendCurdEvent: p,
468
479
  operates: e.operates,
469
480
  getOperate: P,
@@ -495,7 +506,7 @@ const Ct = (e, n, o) => {
495
506
  const {
496
507
  elementMap: t,
497
508
  formElementMap: u
498
- } = Le(), r = $(), d = $(), f = e.curdState || B({
509
+ } = Le(), r = $(), s = $(), m = e.curdState || B({
499
510
  detailData: {}
500
511
  }), y = {
501
512
  [T.LIST]: {
@@ -544,34 +555,34 @@ const Ct = (e, n, o) => {
544
555
  }, E = M(e.operates, (a) => ({
545
556
  ...v(y, a.action),
546
557
  ...a
547
- })), l = z(E, (a) => a.actor), m = k(C(ye.props, "state", "requests"));
558
+ })), l = G(E, (a) => a.actor), f = k(C(ye.props, "state", "requests"));
548
559
  return o({
549
560
  sendCurdEvent: (a) => {
550
561
  var c;
551
- (c = d.value) == null || c.sendCurdEvent(a);
562
+ (c = s.value) == null || c.sendCurdEvent(a);
552
563
  },
553
564
  refreshList: (a) => {
554
565
  var c;
555
- (c = d.value) == null || c.refreshList(a);
566
+ (c = s.value) == null || c.refreshList(a);
556
567
  },
557
568
  sendEvent: (a) => {
558
569
  var c;
559
570
  (c = r.value) == null || c.sendEvent(a);
560
571
  },
561
572
  sendRequest: (a, ...c) => {
562
- var s;
563
- (s = r.value) == null || s.sendRequest(a, ...c);
573
+ var d;
574
+ (d = r.value) == null || d.sendRequest(a, ...c);
564
575
  }
565
576
  }), () => b(ye, R({
566
577
  ref: r
567
- }, K(e, m), {
578
+ }, K(e, f), {
568
579
  elementMap: e.elementMap || t,
569
- state: f,
580
+ state: m,
570
581
  requests: l
571
582
  }), {
572
583
  default: () => [b(Me, R({
573
- ref: d
574
- }, C(e, ...m, "curdState", "operates"), {
584
+ ref: s
585
+ }, C(e, ...f, "curdState", "operates"), {
575
586
  formElementMap: e.formElementMap || u,
576
587
  operates: E
577
588
  }), n)]
@@ -594,54 +605,54 @@ const Ct = (e, n, o) => {
594
605
  rowKey: t,
595
606
  curdState: u,
596
607
  listProps: r,
597
- getOperate: d,
598
- refreshList: f
599
- } = se(), y = (c = r == null ? void 0 : r.value) == null ? void 0 : c.pageState, E = (s) => {
600
- const i = d(T.DETAIL);
601
- i != null && i.actor ? o(T.DETAIL, s, t) : n({
608
+ getOperate: s,
609
+ refreshList: m
610
+ } = se(), y = (c = r == null ? void 0 : r.value) == null ? void 0 : c.pageState, E = (d) => {
611
+ const i = s(T.DETAIL);
612
+ i != null && i.actor ? o(T.DETAIL, d, t) : n({
602
613
  type: "detailData",
603
- payload: at(s)
614
+ payload: at(d)
604
615
  });
605
- }, l = (s, {
616
+ }, l = (d, {
606
617
  record: i
607
618
  }) => {
608
- s === D.EMIT && (n({
619
+ d === D.EMIT && (n({
609
620
  type: "mode",
610
621
  payload: q.DETAIL
611
622
  }), E(i));
612
- }, m = (s) => {
613
- s === D.EMIT ? (n({
623
+ }, f = (d) => {
624
+ d === D.EMIT ? (n({
614
625
  type: "mode",
615
626
  payload: q.ADD
616
627
  }), n({
617
628
  type: "detailData",
618
629
  payload: e.defaultAddRecord || {}
619
- })) : s === D.SUCCESS && (y && (y.page = 1), f(), u.addAction === ae.CONTINUE ? n({
630
+ })) : d === D.SUCCESS && (y && (y.page = 1), m(), u.addAction === ae.CONTINUE ? n({
620
631
  type: "detailData",
621
632
  payload: e.defaultAddRecord || {}
622
633
  }) : n({
623
634
  type: "mode",
624
635
  payload: void 0
625
636
  }));
626
- }, a = (s, {
637
+ }, a = (d, {
627
638
  record: i
628
639
  }) => {
629
- s === D.EMIT ? (n({
640
+ d === D.EMIT ? (n({
630
641
  type: "mode",
631
642
  payload: q.EDIT
632
- }), E(i)) : s === D.SUCCESS && (n({
643
+ }), E(i)) : d === D.SUCCESS && (n({
633
644
  type: "mode",
634
645
  payload: void 0
635
- }), f());
646
+ }), m());
636
647
  };
637
648
  return De(({
638
- type: s,
649
+ type: d,
639
650
  payload: i,
640
651
  source: h
641
652
  }) => {
642
653
  if (h)
643
654
  return;
644
- let p = s, S = i == null ? void 0 : i.type;
655
+ let p = d, S = i == null ? void 0 : i.type;
645
656
  const P = i == null ? void 0 : i.record;
646
657
  switch (p === re.Success && (p = v(i, ["requestOpts", "action"]), S = D.SUCCESS), p) {
647
658
  case T.DETAIL:
@@ -650,7 +661,7 @@ const Ct = (e, n, o) => {
650
661
  });
651
662
  break;
652
663
  case T.ADD:
653
- m(S);
664
+ f(S);
654
665
  break;
655
666
  case T.EDIT:
656
667
  a(S, {
@@ -660,7 +671,7 @@ const Ct = (e, n, o) => {
660
671
  }
661
672
  }), () => null;
662
673
  }
663
- }), Wt = L({
674
+ }), _t = L({
664
675
  props: {
665
676
  ...le.props,
666
677
  ...Ee.props
@@ -698,9 +709,9 @@ const Ct = (e, n, o) => {
698
709
  sendRequest: u
699
710
  } = ue(), {
700
711
  rowKey: r,
701
- curdState: d
702
- } = se(), f = (m) => {
703
- m === D.PAGE && (t({
712
+ curdState: s
713
+ } = se(), m = (f) => {
714
+ f === D.PAGE && (t({
704
715
  type: "mode",
705
716
  payload: void 0
706
717
  }), t({
@@ -713,52 +724,52 @@ const Ct = (e, n, o) => {
713
724
  type: "addAction",
714
725
  payload: void 0
715
726
  }));
716
- }, y = (m, {
727
+ }, y = (f, {
717
728
  record: a
718
729
  }) => {
719
- m === D.EMIT ? n.push({
730
+ f === D.EMIT ? n.push({
720
731
  path: `${o.path}/detail`,
721
732
  query: K(a, r)
722
- }) : m === D.PAGE && (t({
733
+ }) : f === D.PAGE && (t({
723
734
  type: "mode",
724
735
  payload: q.DETAIL
725
736
  }), u(T.DETAIL, o.query, r));
726
- }, E = (m) => {
727
- m === D.EMIT ? n.push({
737
+ }, E = (f) => {
738
+ f === D.EMIT ? n.push({
728
739
  path: `${o.path}/add`
729
- }) : m === D.PAGE ? (t({
740
+ }) : f === D.PAGE ? (t({
730
741
  type: "mode",
731
742
  payload: q.ADD
732
743
  }), t({
733
744
  type: "detailData",
734
745
  payload: e.defaultAddRecord || {}
735
- })) : m === D.SUCCESS && (d.addAction === ae.CONTINUE ? t({
746
+ })) : f === D.SUCCESS && (s.addAction === ae.CONTINUE ? t({
736
747
  type: "detailData",
737
748
  payload: e.defaultAddRecord || {}
738
749
  }) : e.routeBack ? e.routeBack(T.ADD) : n.go(-1));
739
- }, l = (m, {
750
+ }, l = (f, {
740
751
  record: a
741
752
  }) => {
742
- m === D.EMIT ? n.push({
753
+ f === D.EMIT ? n.push({
743
754
  path: `${o.path}/edit`,
744
755
  query: K(a, r)
745
- }) : m === D.PAGE ? (t({
756
+ }) : f === D.PAGE ? (t({
746
757
  type: "mode",
747
758
  payload: q.EDIT
748
- }), u(T.DETAIL, o.query, r)) : m === D.SUCCESS && (e.routeBack ? e.routeBack(T.EDIT) : n.go(-1));
759
+ }), u(T.DETAIL, o.query, r)) : f === D.SUCCESS && (e.routeBack ? e.routeBack(T.EDIT) : n.go(-1));
749
760
  };
750
761
  return De(({
751
- type: m,
762
+ type: f,
752
763
  payload: a,
753
764
  source: c
754
765
  }) => {
755
766
  if (c)
756
767
  return;
757
- let s = m, i = a == null ? void 0 : a.type;
768
+ let d = f, i = a == null ? void 0 : a.type;
758
769
  const h = a == null ? void 0 : a.record;
759
- switch (s === re.Success && (s = v(a, ["requestOpts", "action"]), i = D.SUCCESS), s) {
770
+ switch (d === re.Success && (d = v(a, ["requestOpts", "action"]), i = D.SUCCESS), d) {
760
771
  case T.LIST:
761
- f(i);
772
+ m(i);
762
773
  break;
763
774
  case T.DETAIL:
764
775
  y(i, {
@@ -776,7 +787,7 @@ const Ct = (e, n, o) => {
776
787
  }
777
788
  }), () => null;
778
789
  }
779
- }), _t = L({
790
+ }), Ht = L({
780
791
  props: {
781
792
  ...le.props,
782
793
  ...Se.props
@@ -801,7 +812,7 @@ const Ct = (e, n, o) => {
801
812
  function Mt(e) {
802
813
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ie(e);
803
814
  }
804
- const Ht = (e, n) => L({
815
+ const Jt = (e, n) => L({
805
816
  props: {
806
817
  ...e.props,
807
818
  renderItem: {
@@ -817,22 +828,22 @@ const Ht = (e, n) => L({
817
828
  const {
818
829
  getItemVNode: u,
819
830
  curdState: r,
820
- descColumns: d,
821
- getSignColumns: f
831
+ descColumns: s,
832
+ getSignColumns: m
822
833
  } = se(), y = w(() => {
823
- const E = o.signName ? f(o.signName) : d.value;
834
+ const E = o.signName ? m(o.signName) : s.value;
824
835
  return M(E, (l) => {
825
- var s;
826
- let m;
827
- const a = (s = o.renderItem) == null ? void 0 : s.call(o, l);
836
+ var d;
837
+ let f;
838
+ const a = (d = o.renderItem) == null ? void 0 : d.call(o, l);
828
839
  if (a)
829
840
  return a;
830
841
  const c = v(r.detailData, l.dataIndex);
831
842
  return b(n, R({
832
843
  key: l.dataIndex,
833
844
  label: l.title
834
- }, v(l.extra, "desc")), Mt(m = u(l, c)) ? m : {
835
- default: () => [m]
845
+ }, v(l.extra, "desc")), Mt(f = u(l, c)) ? f : {
846
+ default: () => [f]
836
847
  });
837
848
  });
838
849
  });
@@ -874,7 +885,7 @@ const Ht = (e, n) => L({
874
885
  continueButtonProps: {
875
886
  type: Object
876
887
  }
877
- }), Jt = (e, n, o, t) => L({
888
+ }), Qt = (e, n, o, t) => L({
878
889
  inheritAttrs: !1,
879
890
  props: {
880
891
  ...e.props,
@@ -882,19 +893,19 @@ const Ht = (e, n) => L({
882
893
  },
883
894
  setup: (u, {
884
895
  slots: r,
885
- attrs: d,
886
- expose: f
896
+ attrs: s,
897
+ expose: m
887
898
  }) => {
888
899
  const {
889
900
  elementMap: y,
890
901
  formElementMap: E,
891
902
  curdState: l,
892
- formColumns: m,
903
+ formColumns: f,
893
904
  getSignColumns: a,
894
905
  sendCurdEvent: c
895
- } = se(), s = $(), i = w(() => u.signName ? a(u.signName) : m.value), h = (P, N) => {
896
- if (d.onFinish) {
897
- d.onFinish(P, N);
906
+ } = se(), d = $(), i = w(() => u.signName ? a(u.signName) : f.value), h = (P, N) => {
907
+ if (s.onFinish) {
908
+ s.onFinish(P, N);
898
909
  return;
899
910
  }
900
911
  l.mode === q.EDIT ? c({
@@ -908,14 +919,14 @@ const Ht = (e, n) => L({
908
919
  });
909
920
  }, p = () => {
910
921
  var P;
911
- l.addAction = ae.NORMAL, (P = s.value) == null || P.submit();
922
+ l.addAction = ae.NORMAL, (P = d.value) == null || P.submit();
912
923
  }, S = () => {
913
924
  var P;
914
- l.addAction = ae.CONTINUE, (P = s.value) == null || P.submit();
925
+ l.addAction = ae.CONTINUE, (P = d.value) == null || P.submit();
915
926
  };
916
- return f(Y(t, s)), () => b(e, R({
917
- ref: s
918
- }, C(d, "onFinish"), u, {
927
+ return m(Y(t, d)), () => b(e, R({
928
+ ref: d
929
+ }, C(s, "onFinish"), u, {
919
930
  elementMap: u.elementMap || y,
920
931
  formElementMap: u.formElementMap || E,
921
932
  columns: u.columns || i.value,
@@ -965,7 +976,7 @@ const Ht = (e, n) => L({
965
976
  pageState: {
966
977
  type: Object
967
978
  }
968
- }), Qt = (e, n) => L({
979
+ }), Yt = (e, n) => L({
969
980
  props: {
970
981
  ...Rt()
971
982
  },
@@ -975,12 +986,12 @@ const Ht = (e, n) => L({
975
986
  const {
976
987
  elementMap: u,
977
988
  formElementMap: r,
978
- curdState: d,
979
- searchColumns: f,
989
+ curdState: s,
990
+ searchColumns: m,
980
991
  tableColumns: y,
981
992
  sendCurdEvent: E,
982
993
  operates: l
983
- } = se(), m = o.pageState || B({
994
+ } = se(), f = o.pageState || B({
984
995
  ...It
985
996
  });
986
997
  let a;
@@ -990,12 +1001,12 @@ const Ht = (e, n) => L({
990
1001
  type: D.EMIT,
991
1002
  values: {
992
1003
  ...a,
993
- ...m
1004
+ ...f
994
1005
  }
995
1006
  });
996
- }, s = (p) => {
997
- a = p, m.page = 1, c();
998
- }, i = M(z(l, (p) => {
1007
+ }, d = (p) => {
1008
+ a = p, f.page = 1, c();
1009
+ }, i = M(G(l, (p) => {
999
1010
  const S = p.action;
1000
1011
  return S === T.DETAIL || S === T.EDIT || S === T.DELETE || p.tableOperate;
1001
1012
  }), (p) => {
@@ -1022,7 +1033,7 @@ const Ht = (e, n) => L({
1022
1033
  }
1023
1034
  });
1024
1035
  return () => {
1025
- var N, F, I, A, g, O, G, j, x, V;
1036
+ var N, F, I, A, g, O, W, j, x, X;
1026
1037
  const p = o.tableProps, S = {
1027
1038
  elementMap: u,
1028
1039
  columns: y.value,
@@ -1034,27 +1045,27 @@ const Ht = (e, n) => L({
1034
1045
  return ct(de, h(Oe));
1035
1046
  }),
1036
1047
  paginationState: {
1037
- page: m.page,
1038
- pageSize: m.pageSize
1048
+ page: f.page,
1049
+ pageSize: f.pageSize
1039
1050
  },
1040
- loading: d.listLoading,
1041
- dataSource: (N = d.listData) == null ? void 0 : N.dataSource
1051
+ loading: s.listLoading,
1052
+ dataSource: (N = s.listData) == null ? void 0 : N.dataSource
1042
1053
  }, P = t.extra ? b("div", {
1043
1054
  class: "pro-curd-list-extra"
1044
1055
  }, [t.extra()]) : null;
1045
1056
  return b(oe, null, [(F = t.start) == null ? void 0 : F.call(t), t.search ? t.search({
1046
- executeSearchWithResetPage: s
1057
+ executeSearchWithResetPage: d
1047
1058
  }) : b(e, R({
1048
1059
  formElementMap: r,
1049
- columns: f.value
1060
+ columns: m.value
1050
1061
  }, C(o.searchProps, "slots"), {
1051
- onFinish: s
1062
+ onFinish: d
1052
1063
  }), {
1053
1064
  default: () => [o.extraInSearch && P],
1054
1065
  ...(I = o.searchProps) == null ? void 0 : I.slots
1055
1066
  }), (A = t.divide) == null ? void 0 : A.call(t), !o.extraInSearch && P, t.table ? t.table(S) : b(n, S, p == null ? void 0 : p.slots), (g = t.divide2) == null ? void 0 : g.call(t), o.showPagination && b("div", {
1056
1067
  class: "pro-curd-list-footer"
1057
- }, [(O = t.footerStart) == null ? void 0 : O.call(t), (j = t.pagination) == null ? void 0 : j.call(t, m, (G = d.listData) == null ? void 0 : G.total, c), (x = t.footerEnd) == null ? void 0 : x.call(t)]), (V = t.end) == null ? void 0 : V.call(t)]);
1068
+ }, [(O = t.footerStart) == null ? void 0 : O.call(t), (j = t.pagination) == null ? void 0 : j.call(t, f, (W = s.listData) == null ? void 0 : W.total, c), (x = t.footerEnd) == null ? void 0 : x.call(t)]), (X = t.end) == null ? void 0 : X.call(t)]);
1058
1069
  };
1059
1070
  }
1060
1071
  }), He = Symbol("pro-form-list"), Je = () => J(He), Qe = (e) => {
@@ -1073,7 +1084,7 @@ const Ht = (e, n) => L({
1073
1084
  var o;
1074
1085
  return (o = n.default) == null ? void 0 : o.call(n);
1075
1086
  })
1076
- }), Yt = (e) => L({
1087
+ }), Zt = (e) => L({
1077
1088
  props: {
1078
1089
  ...e.props,
1079
1090
  rowKey: {
@@ -1087,30 +1098,30 @@ const Ht = (e, n) => L({
1087
1098
  const {
1088
1099
  formState: t,
1089
1100
  readonly: u
1090
- } = Ze(), r = Je(), d = We(n.name), f = r != null && r.pathList ? [...r.pathList, ...d] : d, y = () => {
1091
- let l = v(t, f);
1101
+ } = Ze(), r = Je(), s = We(n.name), m = r != null && r.pathList ? [...r.pathList, ...s] : s, y = () => {
1102
+ let l = v(t, m);
1092
1103
  U(l) || (l = []), l.push({
1093
1104
  [n.rowKey]: new Date().valueOf()
1094
- }), _(t, f, l);
1105
+ }), _(t, m, l);
1095
1106
  }, E = (l) => {
1096
- const m = v(t, f);
1097
- X(m) <= 0 || m.splice(l, 1);
1107
+ const f = v(t, m);
1108
+ V(f) <= 0 || f.splice(l, 1);
1098
1109
  };
1099
1110
  return () => b(e, C(n, "rowKey"), {
1100
1111
  default: () => {
1101
1112
  var l;
1102
- return [M(v(t, f), (m, a) => b(Nt, {
1103
- key: m[n.rowKey] || a,
1104
- pathList: [...f, a]
1113
+ return [M(v(t, m), (f, a) => b(Nt, {
1114
+ key: f[n.rowKey] || a,
1115
+ pathList: [...m, a]
1105
1116
  }, {
1106
1117
  default: () => {
1107
- var c, s, i;
1118
+ var c, d, i;
1108
1119
  return [b("div", {
1109
1120
  class: "pro-form-list-item"
1110
1121
  }, [(c = o.default) == null ? void 0 : c.call(o), !u.value && b(oe, null, [b("div", {
1111
1122
  class: "pro-form-list-item-add",
1112
1123
  onClick: y
1113
- }, [(s = o.itemAdd) == null ? void 0 : s.call(o)]), b("div", {
1124
+ }, [(d = o.itemAdd) == null ? void 0 : d.call(o)]), b("div", {
1114
1125
  class: "pro-form-list-item-minus",
1115
1126
  onClick: () => E(a)
1116
1127
  }, [(i = o.itemMinus) == null ? void 0 : i.call(o)])])])];
@@ -1157,7 +1168,7 @@ const Ht = (e, n) => L({
1157
1168
  provideExtra: {
1158
1169
  type: Object
1159
1170
  }
1160
- }), Zt = (e, n, o) => L({
1171
+ }), en = (e, n, o) => L({
1161
1172
  inheritAttrs: !1,
1162
1173
  props: {
1163
1174
  ...e.props,
@@ -1168,19 +1179,19 @@ const Ht = (e, n) => L({
1168
1179
  setup: (t, {
1169
1180
  slots: u,
1170
1181
  emit: r,
1171
- expose: d,
1172
- attrs: f
1182
+ expose: s,
1183
+ attrs: m
1173
1184
  }) => {
1174
1185
  const {
1175
1186
  elementMap: y,
1176
1187
  formElementMap: E
1177
- } = Le(), l = t.elementMap || y, m = t.formElementMap || E, a = t.model || B({}), c = t.showState || B({}), s = t.readonlyState || B({}), i = t.disableState || B({});
1188
+ } = Le(), l = t.elementMap || y, f = t.formElementMap || E, a = t.model || B({}), c = t.showState || B({}), d = t.readonlyState || B({}), i = t.disableState || B({});
1178
1189
  ce(() => {
1179
- t.showStateRules && W(t.showStateRules, (I, A) => {
1190
+ t.showStateRules && z(t.showStateRules, (I, A) => {
1180
1191
  c[A] = I(a);
1181
- }), t.readonlyStateRules && W(t.readonlyStateRules, (I, A) => {
1182
- s[A] = I(a);
1183
- }), t.disableStateRules && W(t.disableStateRules, (I, A) => {
1192
+ }), t.readonlyStateRules && z(t.readonlyStateRules, (I, A) => {
1193
+ d[A] = I(a);
1194
+ }), t.disableStateRules && z(t.disableStateRules, (I, A) => {
1184
1195
  i[A] = I(a);
1185
1196
  });
1186
1197
  }, a);
@@ -1188,13 +1199,13 @@ const Ht = (e, n) => L({
1188
1199
  const A = Ct(I, c, t.showStateRules);
1189
1200
  r("finish", A, I);
1190
1201
  }, P = $();
1191
- d(Y(o, P)), jt({
1202
+ s(Y(o, P)), jt({
1192
1203
  formState: a,
1193
1204
  showState: c,
1194
- readonlyState: s,
1205
+ readonlyState: d,
1195
1206
  disableState: i,
1196
1207
  elementMap: l,
1197
- formElementMap: m,
1208
+ formElementMap: f,
1198
1209
  readonly: h,
1199
1210
  columns: p,
1200
1211
  formRef: P,
@@ -1203,21 +1214,21 @@ const Ht = (e, n) => L({
1203
1214
  const N = k(we()), F = k(C(n.props, "items"));
1204
1215
  return () => b(e, R({
1205
1216
  ref: P
1206
- }, C(f, "onFinish"), C(t, ...N, ...F, "onFinish"), {
1217
+ }, C(m, "onFinish"), C(t, ...N, ...F, "onFinish"), {
1207
1218
  model: a,
1208
1219
  onFinish: S
1209
1220
  }), {
1210
1221
  default: () => {
1211
1222
  var I, A;
1212
- return [(I = u.start) == null ? void 0 : I.call(u), m && X(p.value) > 0 && b(oe, null, [t.row ? b(n, {
1223
+ return [(I = u.start) == null ? void 0 : I.call(u), f && V(p.value) > 0 && b(oe, null, [t.row ? b(n, {
1213
1224
  row: t.row,
1214
1225
  col: t.col,
1215
1226
  items: M(p.value, (g) => ({
1216
1227
  rowKey: te(g),
1217
- vNode: Pe(m, g, t.needRules),
1228
+ vNode: Pe(f, g, t.needRules),
1218
1229
  col: v(g, ["extra", "col"])
1219
1230
  }))
1220
- }, null) : M(p.value, (g) => Pe(m, g, t.needRules))]), (A = u.default) == null ? void 0 : A.call(u)];
1231
+ }, null) : M(p.value, (g) => Pe(f, g, t.needRules))]), (A = u.default) == null ? void 0 : A.call(u)];
1221
1232
  },
1222
1233
  ...C(u, "default")
1223
1234
  });
@@ -1247,7 +1258,7 @@ const Re = () => ({
1247
1258
  type: Number,
1248
1259
  default: 800
1249
1260
  }
1250
- }), en = (e, n, o) => L({
1261
+ }), tn = (e, n, o) => L({
1251
1262
  props: {
1252
1263
  ...e.props,
1253
1264
  ...n,
@@ -1257,36 +1268,36 @@ const Re = () => ({
1257
1268
  slots: u,
1258
1269
  expose: r
1259
1270
  }) => {
1260
- const d = t.model || B({}), f = new Set(t.debounceTypes), y = M(z(t.columns, (s) => {
1261
- const i = Be(s);
1262
- return f.has(i);
1263
- }), (s) => te(s)), E = $();
1271
+ const s = t.model || B({}), m = new Set(t.debounceTypes), y = M(G(t.columns, (d) => {
1272
+ const i = Be(d);
1273
+ return m.has(i);
1274
+ }), (d) => te(d)), E = $();
1264
1275
  r(Y(o, E));
1265
1276
  const l = () => {
1266
- var s;
1267
- (s = E.value) == null || s.submit();
1268
- }, m = ut(() => {
1277
+ var d;
1278
+ (d = E.value) == null || d.submit();
1279
+ }, f = ut(() => {
1269
1280
  l();
1270
1281
  }, t.debounceTime);
1271
1282
  ce(() => {
1272
1283
  t.initEmit && l();
1273
1284
  }, []);
1274
- const a = (s, i, h) => ve(h, (p) => v(s, p) !== v(i, p));
1275
- mt((s, i) => {
1285
+ const a = (d, i, h) => ve(h, (p) => v(d, p) !== v(i, p));
1286
+ mt((d, i) => {
1276
1287
  if (t.searchMode !== me.AUTO)
1277
1288
  return;
1278
- const h = X(t.debounceKeys) > 0 ? t.debounceKeys : y;
1279
- if (X(h) > 0 && a(s, i, h)) {
1280
- m();
1289
+ const h = V(t.debounceKeys) > 0 ? t.debounceKeys : y;
1290
+ if (V(h) > 0 && a(d, i, h)) {
1291
+ f();
1281
1292
  return;
1282
1293
  }
1283
1294
  l();
1284
- }, () => st(d));
1295
+ }, () => st(s));
1285
1296
  const c = k(C(Re(), "columns"));
1286
1297
  return () => b(e, R({
1287
1298
  ref: E
1288
1299
  }, C(t, c), {
1289
- model: d
1300
+ model: s
1290
1301
  }), u);
1291
1302
  }
1292
1303
  }), Ne = () => ({
@@ -1303,7 +1314,7 @@ const Re = () => ({
1303
1314
  slots: {
1304
1315
  type: Object
1305
1316
  }
1306
- }), tn = (e, n) => ({
1317
+ }), nn = (e, n) => ({
1307
1318
  InputComp: o,
1308
1319
  valueType: t,
1309
1320
  name: u
@@ -1314,36 +1325,36 @@ const Re = () => ({
1314
1325
  ...Ne()
1315
1326
  },
1316
1327
  setup: (r, {
1317
- slots: d
1328
+ slots: s
1318
1329
  }) => {
1319
1330
  const {
1320
- formState: f,
1331
+ formState: m,
1321
1332
  showState: y,
1322
1333
  readonlyState: E,
1323
1334
  disableState: l,
1324
- readonly: m,
1335
+ readonly: f,
1325
1336
  elementMap: a
1326
- } = Ze(), c = Je(), s = w(() => pe(r.readonly) ? r.readonly : pe(E[r.name]) ? E[r.name] : m.value), i = We(r.name), h = c != null && c.pathList ? [...c.pathList, ...i] : i, p = (P) => {
1327
- _(f, h, P);
1337
+ } = Ze(), c = Je(), d = w(() => pe(r.readonly) ? r.readonly : pe(E[r.name]) ? E[r.name] : f.value), i = We(r.name), h = c != null && c.pathList ? [...c.pathList, ...i] : i, p = (P) => {
1338
+ _(m, h, P);
1328
1339
  }, S = k(Ne());
1329
1340
  return () => {
1330
1341
  const P = v(y, h);
1331
1342
  if (pe(P) && !P)
1332
1343
  return null;
1333
- const N = v(f, h), F = v(a, t);
1344
+ const N = v(m, h), F = v(a, t);
1334
1345
  return b(e, R(C(r, ...S, "name", "slots"), {
1335
1346
  name: h
1336
1347
  }), {
1337
- default: () => [s.value ? b(oe, null, [F ? b(F, R({
1348
+ default: () => [d.value ? b(oe, null, [F ? b(F, R({
1338
1349
  value: N
1339
1350
  }, r.fieldProps, {
1340
1351
  showProps: r.showProps
1341
- }), d) : b("span", null, [N])]) : b(o, R(n(N, p, v(l, h)), r.fieldProps), d)],
1352
+ }), s) : b("span", null, [N])]) : b(o, R(n(N, p, v(l, h)), r.fieldProps), s)],
1342
1353
  ...r.slots
1343
1354
  });
1344
1355
  };
1345
1356
  }
1346
- }), et = Symbol("pro-table"), nn = () => J(et), Ft = (e) => {
1357
+ }), et = Symbol("pro-table"), rn = () => J(et), Ft = (e) => {
1347
1358
  Q(et, e);
1348
1359
  }, je = () => ({
1349
1360
  operate: {
@@ -1364,7 +1375,7 @@ const Re = () => ({
1364
1375
  provideExtra: {
1365
1376
  type: Object
1366
1377
  }
1367
- }), rn = (e, n, o) => L({
1378
+ }), an = (e, n, o) => L({
1368
1379
  props: {
1369
1380
  ...e.props,
1370
1381
  ...Ce,
@@ -1376,8 +1387,8 @@ const Re = () => ({
1376
1387
  expose: r
1377
1388
  }) => {
1378
1389
  const {
1379
- elementMap: d
1380
- } = Le(), f = t.elementMap || d, y = () => ({
1390
+ elementMap: s
1391
+ } = Le(), m = t.elementMap || s, y = () => ({
1381
1392
  title: "\u5E8F\u53F7",
1382
1393
  dataIndex: "serialNumber",
1383
1394
  width: 80,
@@ -1385,14 +1396,14 @@ const Re = () => ({
1385
1396
  customRender: ({
1386
1397
  index: c
1387
1398
  }) => {
1388
- var s, i;
1389
- return ((s = t.paginationState) == null ? void 0 : s.page) && ((i = t.paginationState) == null ? void 0 : i.pageSize) ? t.paginationState.pageSize * (t.paginationState.page - 1) + c + 1 : c + 1;
1399
+ var d, i;
1400
+ return ((d = t.paginationState) == null ? void 0 : d.page) && ((i = t.paginationState) == null ? void 0 : i.pageSize) ? t.paginationState.pageSize * (t.paginationState.page - 1) + c + 1 : c + 1;
1390
1401
  }
1391
1402
  }), E = () => {
1392
- const c = t.operate, s = M(c.items, (h) => ({
1403
+ const c = t.operate, d = M(c.items, (h) => ({
1393
1404
  ...h,
1394
1405
  ...v(c.itemState, h.value)
1395
- })), i = ke(s, (h) => h.sort);
1406
+ })), i = ke(d, (h) => h.sort);
1396
1407
  return {
1397
1408
  ...t.column,
1398
1409
  title: "\u64CD\u4F5C",
@@ -1402,7 +1413,7 @@ const Re = () => ({
1402
1413
  customRender: ({
1403
1414
  record: h
1404
1415
  }) => {
1405
- const p = z(i, (S) => S.show && H(S.show) ? S.show(h) : S.show !== !1);
1416
+ const p = G(i, (S) => S.show && H(S.show) ? S.show(h) : S.show !== !1);
1406
1417
  return b("div", {
1407
1418
  class: "pro-table-operate"
1408
1419
  }, [M(p, (S) => H(S.element) ? S.element(h, S) : b("div", {
@@ -1416,14 +1427,14 @@ const Re = () => ({
1416
1427
  }
1417
1428
  };
1418
1429
  }, l = w(() => {
1419
- const c = Ae(t.columns, t.columnState, (i) => i.dataIndex), s = M(c, (i) => {
1430
+ const c = Ae(t.columns, t.columnState, (i) => i.dataIndex), d = M(c, (i) => {
1420
1431
  const h = {
1421
1432
  ...t.column,
1422
1433
  ...i
1423
1434
  };
1424
1435
  return i.customRender || (h.customRender = ({
1425
1436
  text: p
1426
- }) => $e(f, {
1437
+ }) => $e(m, {
1427
1438
  ...i,
1428
1439
  showProps: {
1429
1440
  ...i.showProps,
@@ -1431,16 +1442,16 @@ const Re = () => ({
1431
1442
  }
1432
1443
  }, p) || p || t.columnEmptyText), h;
1433
1444
  });
1434
- return t.serialNumber && s.unshift(y()), t.operate && t.operate.items && ve(t.operate.items, (i) => i.show) && s.push(E()), s;
1435
- }), m = $();
1445
+ return t.serialNumber && d.unshift(y()), t.operate && t.operate.items && ve(t.operate.items, (i) => i.show) && d.push(E()), d;
1446
+ }), f = $();
1436
1447
  Ft({
1437
1448
  columns: l,
1438
- tableRef: m,
1449
+ tableRef: f,
1439
1450
  ...t.provideExtra
1440
- }), r(Y(o || [], m));
1451
+ }), r(Y(o || [], f));
1441
1452
  const a = k(je());
1442
1453
  return () => b(e, R({
1443
- ref: m
1454
+ ref: f
1444
1455
  }, C(t, a), {
1445
1456
  columns: l.value
1446
1457
  }), u);
@@ -1454,24 +1465,25 @@ export {
1454
1465
  D as CurdSubAction,
1455
1466
  zt as ProConfig,
1456
1467
  le as ProCurd,
1457
- Wt as ProModalCurd,
1468
+ _t as ProModalCurd,
1458
1469
  ye as ProModule,
1459
- _t as ProPageCurd,
1470
+ Ht as ProPageCurd,
1460
1471
  re as RequestAction,
1461
1472
  me as SearchMode,
1462
1473
  bt as Wrapper,
1463
1474
  We as convertPathToList,
1464
- Ht as createCurdDesc,
1465
- Jt as createCurdForm,
1466
- Qt as createCurdList,
1475
+ Jt as createCurdDesc,
1476
+ Qt as createCurdForm,
1477
+ Yt as createCurdList,
1467
1478
  Y as createExpose,
1468
- Zt as createForm,
1469
- tn as createFormItemCompFn,
1470
- Yt as createFormList,
1479
+ Wt as createExposeObj,
1480
+ en as createForm,
1481
+ nn as createFormItemCompFn,
1482
+ Zt as createFormList,
1471
1483
  $t as createGrid,
1472
1484
  Gt as createProConfig,
1473
- en as createSearchForm,
1474
- rn as createTable,
1485
+ tn as createSearchForm,
1486
+ an as createTable,
1475
1487
  It as defaultPage,
1476
1488
  te as getColumnFormItemName,
1477
1489
  Be as getColumnValueType,
@@ -1495,5 +1507,5 @@ export {
1495
1507
  Ze as useProForm,
1496
1508
  Je as useProFormList,
1497
1509
  ue as useProModule,
1498
- nn as useProTable
1510
+ rn as useProTable
1499
1511
  };