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