el-plus-crud 0.1.3 → 0.1.4

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/CHANGELOG.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.1.4](https://github.com/KDJack/el-plus-crud/compare/v0.1.3...v0.1.4) (2024-01-26)
6
+
5
7
  ### [0.1.3](https://github.com/KDJack/el-plus-crud/compare/v0.1.2...v0.1.3) (2024-01-26)
6
8
 
7
9
  ### [0.1.2](https://github.com/KDJack/el-plus-crud/compare/v0.0.119...v0.1.2) (2024-01-25)
@@ -156,17 +156,17 @@ var Bl = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
156
156
  Cr.exports;
157
157
  (function(M, c) {
158
158
  (function() {
159
- var l, d = "4.17.21", p = 200, f = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", s = "Expected a function", m = "Invalid `variable` option passed into `_.template`", N = "__lodash_hash_undefined__", g = 500, a = "__lodash_placeholder__", D = 1, Y = 2, b = 4, K = 1, A = 2, V = 1, E = 2, P = 4, k = 8, B = 16, W = 32, me = 64, ee = 128, ue = 256, Je = 512, L = 30, $ = "...", q = 800, Me = 16, Ne = 1, Le = 2, we = 3, z = 1 / 0, w = 9007199254740991, J = 17976931348623157e292, te = 0 / 0, ce = 4294967295, _e = ce - 1, H = ce >>> 1, se = [
159
+ var l, d = "4.17.21", p = 200, f = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", s = "Expected a function", m = "Invalid `variable` option passed into `_.template`", N = "__lodash_hash_undefined__", g = 500, a = "__lodash_placeholder__", D = 1, Y = 2, b = 4, K = 1, A = 2, V = 1, x = 2, P = 4, k = 8, B = 16, W = 32, me = 64, ee = 128, ue = 256, Je = 512, L = 30, $ = "...", q = 800, Me = 16, Ne = 1, Le = 2, we = 3, z = 1 / 0, w = 9007199254740991, J = 17976931348623157e292, te = 0 / 0, ce = 4294967295, _e = ce - 1, H = ce >>> 1, se = [
160
160
  ["ary", ee],
161
161
  ["bind", V],
162
- ["bindKey", E],
162
+ ["bindKey", x],
163
163
  ["curry", k],
164
164
  ["curryRight", B],
165
165
  ["flip", Je],
166
166
  ["partial", W],
167
167
  ["partialRight", me],
168
168
  ["rearg", ue]
169
- ], Z = "[object Arguments]", Se = "[object Array]", be = "[object AsyncFunction]", at = "[object Boolean]", ct = "[object Date]", yn = "[object DOMException]", mn = "[object Error]", $t = "[object Function]", dn = "[object GeneratorFunction]", Lt = "[object Map]", sn = "[object Number]", ol = "[object Null]", ke = "[object Object]", gn = "[object Promise]", On = "[object Proxy]", Sn = "[object RegExp]", kt = "[object Set]", kn = "[object String]", qn = "[object Symbol]", x = "[object Undefined]", ne = "[object WeakMap]", oe = "[object WeakSet]", De = "[object ArrayBuffer]", Be = "[object DataView]", tt = "[object Float32Array]", Ae = "[object Float64Array]", rt = "[object Int8Array]", pt = "[object Int16Array]", st = "[object Int32Array]", Nt = "[object Uint8Array]", ut = "[object Uint8ClampedArray]", dt = "[object Uint16Array]", Yt = "[object Uint32Array]", Ft = /\b__p \+= '';/g, Jt = /\b(__p \+=) '' \+/g, yt = /(__e\(.*?\)|\b__t\)) \+\n'';/g, Bt = /&(?:amp|lt|gt|quot|#39);/g, wt = /[&<>"']/g, Dn = RegExp(Bt.source), Or = RegExp(wt.source), Rl = /<%-([\s\S]+?)%>/g, Sr = /<%([\s\S]+?)%>/g, no = /<%=([\s\S]+?)%>/g, Oa = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Sa = /^\w*$/, ka = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, kr = /[\\^$.*+?()[\]{}|]/g, Ba = RegExp(kr.source), Br = /^\s+/, Pa = /\s/, Ua = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, Va = /\{\n\/\* \[wrapped with (.+)\] \*/, Qa = /,? & /, Fa = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, Ra = /[()=,{}\[\]\/\s]/, Wa = /\\(\\)?/g, Ga = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, lo = /\w*$/, Za = /^[-+]0x[0-9a-f]+$/i, Ka = /^0b[01]+$/i, Ha = /^\[object .+?Constructor\]$/, qa = /^0o[0-7]+$/i, $a = /^(?:0|[1-9]\d*)$/, Ja = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Wl = /($^)/, Xa = /['\n\r\u2028\u2029\\]/g, Gl = "\\ud800-\\udfff", ec = "\\u0300-\\u036f", tc = "\\ufe20-\\ufe2f", nc = "\\u20d0-\\u20ff", ro = ec + tc + nc, uo = "\\u2700-\\u27bf", oo = "a-z\\xdf-\\xf6\\xf8-\\xff", lc = "\\xac\\xb1\\xd7\\xf7", rc = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", uc = "\\u2000-\\u206f", oc = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", so = "A-Z\\xc0-\\xd6\\xd8-\\xde", io = "\\ufe0e\\ufe0f", ao = lc + rc + uc + oc, Pr = "['’]", sc = "[" + Gl + "]", co = "[" + ao + "]", Zl = "[" + ro + "]", fo = "\\d+", ic = "[" + uo + "]", Mo = "[" + oo + "]", go = "[^" + Gl + ao + fo + uo + oo + so + "]", Ur = "\\ud83c[\\udffb-\\udfff]", ac = "(?:" + Zl + "|" + Ur + ")", po = "[^" + Gl + "]", Vr = "(?:\\ud83c[\\udde6-\\uddff]){2}", Qr = "[\\ud800-\\udbff][\\udc00-\\udfff]", sl = "[" + so + "]", No = "\\u200d", jo = "(?:" + Mo + "|" + go + ")", cc = "(?:" + sl + "|" + go + ")", zo = "(?:" + Pr + "(?:d|ll|m|re|s|t|ve))?", yo = "(?:" + Pr + "(?:D|LL|M|RE|S|T|VE))?", mo = ac + "?", Do = "[" + io + "]?", fc = "(?:" + No + "(?:" + [po, Vr, Qr].join("|") + ")" + Do + mo + ")*", Mc = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", dc = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", _o = Do + mo + fc, gc = "(?:" + [ic, Vr, Qr].join("|") + ")" + _o, pc = "(?:" + [po + Zl + "?", Zl, Vr, Qr, sc].join("|") + ")", Nc = RegExp(Pr, "g"), jc = RegExp(Zl, "g"), Fr = RegExp(Ur + "(?=" + Ur + ")|" + pc + _o, "g"), zc = RegExp([
169
+ ], Z = "[object Arguments]", Se = "[object Array]", be = "[object AsyncFunction]", at = "[object Boolean]", ct = "[object Date]", yn = "[object DOMException]", mn = "[object Error]", $t = "[object Function]", dn = "[object GeneratorFunction]", Lt = "[object Map]", sn = "[object Number]", ol = "[object Null]", ke = "[object Object]", gn = "[object Promise]", On = "[object Proxy]", Sn = "[object RegExp]", kt = "[object Set]", kn = "[object String]", qn = "[object Symbol]", E = "[object Undefined]", ne = "[object WeakMap]", oe = "[object WeakSet]", De = "[object ArrayBuffer]", Be = "[object DataView]", tt = "[object Float32Array]", Ae = "[object Float64Array]", rt = "[object Int8Array]", pt = "[object Int16Array]", st = "[object Int32Array]", Nt = "[object Uint8Array]", ut = "[object Uint8ClampedArray]", dt = "[object Uint16Array]", Yt = "[object Uint32Array]", Ft = /\b__p \+= '';/g, Jt = /\b(__p \+=) '' \+/g, yt = /(__e\(.*?\)|\b__t\)) \+\n'';/g, Bt = /&(?:amp|lt|gt|quot|#39);/g, wt = /[&<>"']/g, Dn = RegExp(Bt.source), Or = RegExp(wt.source), Rl = /<%-([\s\S]+?)%>/g, Sr = /<%([\s\S]+?)%>/g, no = /<%=([\s\S]+?)%>/g, Oa = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Sa = /^\w*$/, ka = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, kr = /[\\^$.*+?()[\]{}|]/g, Ba = RegExp(kr.source), Br = /^\s+/, Pa = /\s/, Ua = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, Va = /\{\n\/\* \[wrapped with (.+)\] \*/, Qa = /,? & /, Fa = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, Ra = /[()=,{}\[\]\/\s]/, Wa = /\\(\\)?/g, Ga = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, lo = /\w*$/, Za = /^[-+]0x[0-9a-f]+$/i, Ka = /^0b[01]+$/i, Ha = /^\[object .+?Constructor\]$/, qa = /^0o[0-7]+$/i, $a = /^(?:0|[1-9]\d*)$/, Ja = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Wl = /($^)/, Xa = /['\n\r\u2028\u2029\\]/g, Gl = "\\ud800-\\udfff", ec = "\\u0300-\\u036f", tc = "\\ufe20-\\ufe2f", nc = "\\u20d0-\\u20ff", ro = ec + tc + nc, uo = "\\u2700-\\u27bf", oo = "a-z\\xdf-\\xf6\\xf8-\\xff", lc = "\\xac\\xb1\\xd7\\xf7", rc = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", uc = "\\u2000-\\u206f", oc = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", so = "A-Z\\xc0-\\xd6\\xd8-\\xde", io = "\\ufe0e\\ufe0f", ao = lc + rc + uc + oc, Pr = "['’]", sc = "[" + Gl + "]", co = "[" + ao + "]", Zl = "[" + ro + "]", fo = "\\d+", ic = "[" + uo + "]", Mo = "[" + oo + "]", go = "[^" + Gl + ao + fo + uo + oo + so + "]", Ur = "\\ud83c[\\udffb-\\udfff]", ac = "(?:" + Zl + "|" + Ur + ")", po = "[^" + Gl + "]", Vr = "(?:\\ud83c[\\udde6-\\uddff]){2}", Qr = "[\\ud800-\\udbff][\\udc00-\\udfff]", sl = "[" + so + "]", No = "\\u200d", jo = "(?:" + Mo + "|" + go + ")", cc = "(?:" + sl + "|" + go + ")", zo = "(?:" + Pr + "(?:d|ll|m|re|s|t|ve))?", yo = "(?:" + Pr + "(?:D|LL|M|RE|S|T|VE))?", mo = ac + "?", Do = "[" + io + "]?", fc = "(?:" + No + "(?:" + [po, Vr, Qr].join("|") + ")" + Do + mo + ")*", Mc = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", dc = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", _o = Do + mo + fc, gc = "(?:" + [ic, Vr, Qr].join("|") + ")" + _o, pc = "(?:" + [po + Zl + "?", Zl, Vr, Qr, sc].join("|") + ")", Nc = RegExp(Pr, "g"), jc = RegExp(Zl, "g"), Fr = RegExp(Ur + "(?=" + Ur + ")|" + pc + _o, "g"), zc = RegExp([
170
170
  sl + "?" + Mo + "+" + zo + "(?=" + [co, sl, "$"].join("|") + ")",
171
171
  cc + "+" + yo + "(?=" + [co, sl + jo, "$"].join("|") + ")",
172
172
  sl + "?" + jo + "+" + zo,
@@ -1148,7 +1148,7 @@ Cr.exports;
1148
1148
  return ye(e) ? r : Pn(r, n(e));
1149
1149
  }
1150
1150
  function xt(e) {
1151
- return e == null ? e === l ? x : ol : Jn && Jn in nt(e) ? CM(e) : ZM(e);
1151
+ return e == null ? e === l ? E : ol : Jn && Jn in nt(e) ? CM(e) : ZM(e);
1152
1152
  }
1153
1153
  function au(e, t) {
1154
1154
  return e > t;
@@ -1811,7 +1811,7 @@ Cr.exports;
1811
1811
  });
1812
1812
  }
1813
1813
  function zr(e, t, n, r, u, i, j, y, I, O) {
1814
- var S = t & ee, U = t & V, X = t & E, ie = t & (k | B), ge = t & Je, Ye = X ? l : Cl(e);
1814
+ var S = t & ee, U = t & V, X = t & x, ie = t & (k | B), ge = t & Je, Ye = X ? l : Cl(e);
1815
1815
  function pe() {
1816
1816
  for (var xe = arguments.length, Pe = T(xe), Kt = xe; Kt--; )
1817
1817
  Pe[Kt] = arguments[Kt];
@@ -1896,7 +1896,7 @@ Cr.exports;
1896
1896
  }
1897
1897
  function Es(e, t, n, r, u, i, j, y, I, O) {
1898
1898
  var S = t & k, U = S ? j : l, X = S ? l : j, ie = S ? i : l, ge = S ? l : i;
1899
- t |= S ? W : me, t &= ~(S ? me : W), t & P || (t &= ~(V | E));
1899
+ t |= S ? W : me, t &= ~(S ? me : W), t & P || (t &= ~(V | x));
1900
1900
  var Ye = [
1901
1901
  e,
1902
1902
  t,
@@ -1931,7 +1931,7 @@ Cr.exports;
1931
1931
  };
1932
1932
  }
1933
1933
  function In(e, t, n, r, u, i, j, y) {
1934
- var I = t & E;
1934
+ var I = t & x;
1935
1935
  if (!I && typeof e != "function")
1936
1936
  throw new tn(s);
1937
1937
  var O = r ? r.length : 0;
@@ -2283,7 +2283,7 @@ Cr.exports;
2283
2283
  return t;
2284
2284
  }
2285
2285
  function WM(e, t) {
2286
- var n = e[1], r = t[1], u = n | r, i = u < (V | E | ee), j = r == ee && n == k || r == ee && n == ue && e[7].length <= t[8] || r == (ee | ue) && t[7].length <= t[8] && n == k;
2286
+ var n = e[1], r = t[1], u = n | r, i = u < (V | x | ee), j = r == ee && n == k || r == ee && n == ue && e[7].length <= t[8] || r == (ee | ue) && t[7].length <= t[8] && n == k;
2287
2287
  if (!(i || j))
2288
2288
  return e;
2289
2289
  r & V && (e[2] = t[2], u |= n & V ? 0 : P);
@@ -2851,7 +2851,7 @@ Cr.exports;
2851
2851
  }
2852
2852
  return In(e, r, t, n, u);
2853
2853
  }), si = Te(function(e, t, n) {
2854
- var r = V | E;
2854
+ var r = V | x;
2855
2855
  if (n.length) {
2856
2856
  var u = Un(n, zl(si));
2857
2857
  r |= W;
@@ -3811,7 +3811,7 @@ function print() { __p += __j.call(arguments, '') }
3811
3811
  var r = n.name + "";
3812
3812
  qe.call(gl, r) || (gl[r] = []), gl[r].push({ name: t, func: n });
3813
3813
  }
3814
- }), gl[zr(l, E).name] = [{
3814
+ }), gl[zr(l, x).name] = [{
3815
3815
  name: "wrapper",
3816
3816
  func: l
3817
3817
  }], Ee.prototype.clone = Df, Ee.prototype.reverse = _f, Ee.prototype.value = hf, o.prototype.at = Jd, o.prototype.chain = Xd, o.prototype.commit = eg, o.prototype.next = tg, o.prototype.plant = lg, o.prototype.reverse = rg, o.prototype.toJSON = o.prototype.valueOf = o.prototype.value = ug, o.prototype.first = o.prototype.head, vl && (o.prototype[vl] = ng), o;
@@ -3885,11 +3885,11 @@ const mj = {
3885
3885
  title: (b = l.desc) == null ? void 0 : b.confirm
3886
3886
  }, {
3887
3887
  reference: G(() => {
3888
- var E;
3888
+ var x;
3889
3889
  return [
3890
3890
  je(a, ae({
3891
3891
  loading: d.value,
3892
- size: ((E = l.desc) == null ? void 0 : E.size) || "default"
3892
+ size: ((x = l.desc) == null ? void 0 : x.size) || "default"
3893
3893
  }, f.value), {
3894
3894
  default: G(() => [
3895
3895
  $e(N.$slots, "default", {}, () => {
@@ -3916,9 +3916,9 @@ const mj = {
3916
3916
  }), {
3917
3917
  default: G(() => [
3918
3918
  $e(N.$slots, "default", {}, () => {
3919
- var E;
3919
+ var x;
3920
3920
  return [
3921
- (E = l.desc) != null && E.label ? (v(), Q(ve, { key: 0 }, [
3921
+ (x = l.desc) != null && x.label ? (v(), Q(ve, { key: 0 }, [
3922
3922
  Xe(Ke(m.value), 1)
3923
3923
  ], 64)) : re("", !0)
3924
3924
  ];
@@ -4185,8 +4185,8 @@ const Fl = /* @__PURE__ */ et(Sj, [["__scopeId", "data-v-8471727c"]]), kj = /* @
4185
4185
  class: "el-plus-form-btn-group",
4186
4186
  style: ht({ "justify-content": f.value })
4187
4187
  }, [
4188
- (v(!0), Q(ve, null, Ue(d.value, (V, E) => (v(), Q(ve, {
4189
- key: E + (V.label || V.title || "")
4188
+ (v(!0), Q(ve, null, Ue(d.value, (V, x) => (v(), Q(ve, {
4189
+ key: x + (V.label || V.title || "")
4190
4190
  }, [
4191
4191
  V.elType === "upload" ? (v(), R(Fl, {
4192
4192
  key: 0,
@@ -4219,8 +4219,8 @@ const Fl = /* @__PURE__ */ et(Sj, [["__scopeId", "data-v-8471727c"]]), kj = /* @
4219
4219
  dropdown: G(() => [
4220
4220
  je(K, null, {
4221
4221
  default: G(() => [
4222
- (v(!0), Q(ve, null, Ue(p.value, (V, E) => (v(), R(b, ae({
4223
- key: E + (V.label || V.title)
4222
+ (v(!0), Q(ve, null, Ue(p.value, (V, x) => (v(), R(b, ae({
4223
+ key: x + (V.label || V.title)
4224
4224
  }, Ve(s.value(V))), {
4225
4225
  default: G(() => [
4226
4226
  Xe(Ke(V.label || V.title), 1)
@@ -4970,7 +4970,7 @@ const Uz = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4970
4970
  function V(ee) {
4971
4971
  ee && (s.value.blur(), a.value = !0);
4972
4972
  }
4973
- function E() {
4973
+ function x() {
4974
4974
  A.splice(0, A.length), me();
4975
4975
  }
4976
4976
  function P(ee) {
@@ -5019,7 +5019,7 @@ const Uz = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5019
5019
  loading: ee.loading,
5020
5020
  modelValue: m,
5021
5021
  onVisibleChange: V,
5022
- onClear: E
5022
+ onClear: x
5023
5023
  }, Ve(d.value)), {
5024
5024
  default: G(() => [
5025
5025
  (v(!0), Q(ve, null, Ue(N, (we) => (v(), R(Je, ae({
@@ -5133,11 +5133,11 @@ const ta = /* @__PURE__ */ et($z, [["__scopeId", "data-v-0f3279d4"]]), Jz = /* @
5133
5133
  async function V(H) {
5134
5134
  K.splice(0, K.length, ...await L(H));
5135
5135
  }
5136
- const E = _([]), P = _([]), k = _([]), B = _(), W = Ie(() => {
5136
+ const x = _([]), P = _([]), k = _([]), B = _(), W = Ie(() => {
5137
5137
  var Z, Se;
5138
5138
  const H = [];
5139
5139
  let se = St.cloneDeep(l[((Se = (Z = d.form) == null ? void 0 : Z.linkUser) == null ? void 0 : Se.deptListKey) || ""]);
5140
- return E.value && E.value.length > 0 && E.value.map((be) => {
5140
+ return x.value && x.value.length > 0 && x.value.map((be) => {
5141
5141
  se = se[be].children || [];
5142
5142
  }), se.map((be) => H.push({ type: 2, label: be.name, value: be.id })), k.value.map((be) => H.push({ type: 1, label: be.nickname, value: be.userId })), Ot(() => {
5143
5143
  setTimeout(() => {
@@ -5181,11 +5181,11 @@ const ta = /* @__PURE__ */ et($z, [["__scopeId", "data-v-0f3279d4"]]), Jz = /* @
5181
5181
  }
5182
5182
  async function $(H, se) {
5183
5183
  var Z, Se;
5184
- k.value = (await ((Se = (Z = d.form) == null ? void 0 : Z.linkUser) == null ? void 0 : Se.getUserList({ deptId: H.value, size: 999 }))).records, E.value.push(se), P.value.push(H);
5184
+ k.value = (await ((Se = (Z = d.form) == null ? void 0 : Z.linkUser) == null ? void 0 : Se.getUserList({ deptId: H.value, size: 999 }))).records, x.value.push(se), P.value.push(H);
5185
5185
  }
5186
5186
  async function q(H) {
5187
5187
  var se, Z;
5188
- k.value = H >= 0 ? (await ((Z = (se = d.form) == null ? void 0 : se.linkUser) == null ? void 0 : Z.getUserList({ deptId: P.value[H].value, size: 999 }))).records : [], E.value.splice(H + 1), P.value.splice(H + 1);
5188
+ k.value = H >= 0 ? (await ((Z = (se = d.form) == null ? void 0 : se.linkUser) == null ? void 0 : Z.getUserList({ deptId: P.value[H].value, size: 999 }))).records : [], x.value.splice(H + 1), P.value.splice(H + 1);
5189
5189
  }
5190
5190
  function Me(H) {
5191
5191
  return p.desc.onlyUser ? H.type === 1 : !0;
@@ -5530,10 +5530,10 @@ const My = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5530
5530
  }
5531
5531
  const Y = Ie(() => {
5532
5532
  var ue, Je, L, $;
5533
- let { min: A = 0, max: V = 999999999, precision: E = 0, controlsPosition: P = "right" } = ((Je = (ue = l.form) == null ? void 0 : ue.leng) == null ? void 0 : Je.nbinput) || {}, k = ((L = d.desc) == null ? void 0 : L.attrs) || d.desc;
5533
+ let { min: A = 0, max: V = 999999999, precision: x = 0, controlsPosition: P = "right" } = ((Je = (ue = l.form) == null ? void 0 : ue.leng) == null ? void 0 : Je.nbinput) || {}, k = ((L = d.desc) == null ? void 0 : L.attrs) || d.desc;
5534
5534
  ($ = d.desc) != null && $.attrs && typeof d.desc.attrs == "function" && (k = d.desc.attrs(d.formData || {}));
5535
5535
  const { min: B, max: W, precision: me, controlsPosition: ee } = k || {};
5536
- return B != null && B !== "" && (A = B), W != null && W !== "" && (V = W), me != null && me !== "" && (E = me), ee != null && ee !== "" && (P = ee), A > V ? A = V : V < A && (V = A), { min: A, max: V, precision: E, controlsPosition: P };
5536
+ return B != null && B !== "" && (A = B), W != null && W !== "" && (V = W), me != null && me !== "" && (x = me), ee != null && ee !== "" && (P = ee), A > V ? A = V : V < A && (V = A), { min: A, max: V, precision: x, controlsPosition: P };
5537
5537
  });
5538
5538
  f.value !== void 0 && f.value !== null && (f.value < Y.value.min ? f.value = Y.value.min : f.value > Y.value.max && (f.value = Y.value.max));
5539
5539
  const b = N.value.change;
@@ -5541,16 +5541,16 @@ const My = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5541
5541
  K(A, V);
5542
5542
  } : N.value.change = K;
5543
5543
  function K(A, V) {
5544
- var E, P;
5545
- g.value = !0, A !== V && (A < Y.value.min ? (zn.warning(`${((E = d.desc) == null ? void 0 : E.label) || ""}最少不能低于${Y.value.min}`), Ot(() => {
5544
+ var x, P;
5545
+ g.value = !0, A !== V && (A < Y.value.min ? (zn.warning(`${((x = d.desc) == null ? void 0 : x.label) || ""}最少不能低于${Y.value.min}`), Ot(() => {
5546
5546
  f.value = Y.value.min, b && b();
5547
5547
  })) : A > Y.value.max ? (zn.warning(`${((P = d.desc) == null ? void 0 : P.label) || ""}最多不能大于${Y.value.max}`), Ot(() => {
5548
5548
  f.value = Y.value.max, b && b();
5549
5549
  })) : b && b());
5550
5550
  }
5551
5551
  return (A, V) => {
5552
- const E = F("el-input-number");
5553
- return m.value ? (v(), R(E, ae({
5552
+ const x = F("el-input-number");
5553
+ return m.value ? (v(), R(x, ae({
5554
5554
  key: 0,
5555
5555
  class: "ElPlusFormNumber-panel"
5556
5556
  }, s.value, { disabled: A.disabled }, Ve(N.value), {
@@ -5658,8 +5658,8 @@ const ra = /* @__PURE__ */ et(gy, [["__scopeId", "data-v-b3c8209f"]]), py = /* @
5658
5658
  "onUpdate:modelValue": b[0] || (b[0] = (V) => a.value = V)
5659
5659
  }, Ve(N.value)), null, 16, ["class", "style", "disabled", "modelValue"])) : re("", !0),
5660
5660
  Ce("div", zy, [
5661
- (v(!0), Q(ve, null, Ue(g, (V, E) => (v(), R(A, {
5662
- key: E,
5661
+ (v(!0), Q(ve, null, Ue(g, (V, x) => (v(), R(A, {
5662
+ key: x,
5663
5663
  type: "info",
5664
5664
  onClick: (P) => D(V.label)
5665
5665
  }, {
@@ -5792,9 +5792,9 @@ const ia = /* @__PURE__ */ et(Iy, [["__scopeId", "data-v-10abb7a1"]]), Yy = /* @
5792
5792
  const Y = Ie(() => {
5793
5793
  var V;
5794
5794
  const A = {};
5795
- return (V = p.desc) != null && V.on && Object.keys(p.desc.on).map((E) => {
5796
- A[E] = () => {
5797
- p.desc.on[E](
5795
+ return (V = p.desc) != null && V.on && Object.keys(p.desc.on).map((x) => {
5796
+ A[x] = () => {
5797
+ p.desc.on[x](
5798
5798
  p.formData || {},
5799
5799
  N.find((P) => P.value === s.value),
5800
5800
  p.rowIndex
@@ -5806,7 +5806,7 @@ const ia = /* @__PURE__ */ et(Iy, [["__scopeId", "data-v-10abb7a1"]]), Yy = /* @
5806
5806
  const b = Ie(() => (A) => p.desc.optionTip(A));
5807
5807
  async function K(A) {
5808
5808
  if (g.value !== A && (g.value = A, N.splice(0, N.length, ...await p.desc.remote(A)), A === "" && p.desc.defaultItem)) {
5809
- const V = N.findIndex((E) => E.value === p.desc.defaultItem.value);
5809
+ const V = N.findIndex((x) => x.value === p.desc.defaultItem.value);
5810
5810
  V >= 0 && N.splice(V, 1), N.unshift(p.desc.defaultItem);
5811
5811
  }
5812
5812
  }
@@ -5827,17 +5827,17 @@ const ia = /* @__PURE__ */ et(Iy, [["__scopeId", "data-v-10abb7a1"]]), Yy = /* @
5827
5827
  ), Qe(
5828
5828
  () => s.value,
5829
5829
  (A) => {
5830
- var V, E;
5830
+ var V, x;
5831
5831
  m.value.allowCreate && A && Array.isArray(A) && A.some((P) => {
5832
5832
  var k, B;
5833
5833
  return typeof P == "string" && P.length > (((B = (k = l.form) == null ? void 0 : k.leng) == null ? void 0 : B.input) || 20);
5834
- }) && (zn.warning("最大长度为: " + (((E = (V = l.form) == null ? void 0 : V.leng) == null ? void 0 : E.input) || 20)), s.value = A.filter((P) => {
5834
+ }) && (zn.warning("最大长度为: " + (((x = (V = l.form) == null ? void 0 : V.leng) == null ? void 0 : x.input) || 20)), s.value = A.filter((P) => {
5835
5835
  var k, B;
5836
5836
  return typeof P != "string" || P.length <= (((B = (k = l.form) == null ? void 0 : k.leng) == null ? void 0 : B.input) || 20);
5837
5837
  }));
5838
5838
  }
5839
5839
  ), (A, V) => {
5840
- const E = F("el-option"), P = F("el-select");
5840
+ const x = F("el-option"), P = F("el-select");
5841
5841
  return D.value ? (v(), R(P, ae({
5842
5842
  key: 0,
5843
5843
  class: ["el-plus-form-select", A.desc.class],
@@ -5850,7 +5850,7 @@ const ia = /* @__PURE__ */ et(Iy, [["__scopeId", "data-v-10abb7a1"]]), Yy = /* @
5850
5850
  }, Ve(Y.value)), {
5851
5851
  default: G(() => [
5852
5852
  (v(!0), Q(ve, null, Ue(N, (k, B) => (v(), Q(ve, { key: B }, [
5853
- k ? (v(), R(E, Ql(ae({ key: 0 }, k)), {
5853
+ k ? (v(), R(x, Ql(ae({ key: 0 }, k)), {
5854
5854
  default: G(() => [
5855
5855
  Ce("div", wy, [
5856
5856
  Ce("span", null, Ke(k.label || k.l), 1),
@@ -6408,7 +6408,7 @@ const ya = /* @__PURE__ */ et(u2, [["__scopeId", "data-v-0181f621"]]), o2 = /* @
6408
6408
  maxSize: p.desc.maxSize || (p.desc.upType === "file" ? (q = l.upload) == null ? void 0 : q.maxFSize : (Me = l.upload) == null ? void 0 : Me.maxISize),
6409
6409
  beforeUpload: K,
6410
6410
  onRemove: k,
6411
- onSuccess: E,
6411
+ onSuccess: x,
6412
6412
  onExceed: me,
6413
6413
  onPreview: W,
6414
6414
  ...Oe()
@@ -6449,7 +6449,7 @@ const ya = /* @__PURE__ */ et(u2, [["__scopeId", "data-v-0181f621"]]), o2 = /* @
6449
6449
  }
6450
6450
  return q;
6451
6451
  }
6452
- async function E(L, $) {
6452
+ async function x(L, $) {
6453
6453
  var q, Me, Ne, Le, we, z;
6454
6454
  if (L && Object.keys(L).length > 0) {
6455
6455
  const w = Zn(((Me = (q = l.upload) == null ? void 0 : q.actionMap) == null ? void 0 : Me.objectUrlKey) || [], L);
@@ -6773,7 +6773,7 @@ const um = ["innerHTML"], om = {
6773
6773
  q();
6774
6774
  }, 50);
6775
6775
  }), z;
6776
- }), E = Ie(() => {
6776
+ }), x = Ie(() => {
6777
6777
  const z = [];
6778
6778
  if (f.formDesc) {
6779
6779
  P();
@@ -7029,7 +7029,7 @@ const um = ["innerHTML"], om = {
7029
7029
  onSubmit: ij(L, ["prevent"])
7030
7030
  }, A.value), {
7031
7031
  default: G(() => [
7032
- (v(!0), Q(ve, null, Ue(E.value, (H, se) => (v(), R(ce, {
7032
+ (v(!0), Q(ve, null, Ue(x.value, (H, se) => (v(), R(ce, {
7033
7033
  gutter: 10,
7034
7034
  key: se,
7035
7035
  style: ht({ marginRight: z.isTable ? "20px" : 0 })
@@ -7155,7 +7155,7 @@ const im = {
7155
7155
  l("update:show", k);
7156
7156
  }
7157
7157
  }), s = _(null), { width: m, top: N, modal: g, appendToBody: a, showClose: D, draggable: Y, closeOnClickModal: b, destroyOnClose: K, ...A } = Object.assign({ width: "700px", draggable: !0, top: "15vh", closeOnClickModal: !1, showCancel: !0, destroyOnClose: !0 }, Oe()), V = { width: m, top: N, modal: g, appendToBody: a, showClose: D, draggable: Y, closeOnClickModal: b };
7158
- function E(k) {
7158
+ function x(k) {
7159
7159
  d.success ? d.success(k) : d.tableRef && (zn.success(typeof d.successTip == "function" ? d.successTip() : d.successTip), d.tableRef.reload(), f.value = !1, setTimeout(() => {
7160
7160
  k.callBack();
7161
7161
  }, 200));
@@ -7187,7 +7187,7 @@ const im = {
7187
7187
  modelValue: p.value,
7188
7188
  "onUpdate:modelValue": B[0] || (B[0] = (me) => p.value = me)
7189
7189
  }, A, {
7190
- success: E,
7190
+ success: x,
7191
7191
  onCancel: B[1] || (B[1] = (me) => f.value = !1)
7192
7192
  }), {
7193
7193
  top: G(() => [
@@ -7232,7 +7232,7 @@ const im = {
7232
7232
  p.formGroup.group.map((B, W) => {
7233
7233
  B.fid = B.fid || `${V + W}`, B._vif = g.value(B.vif);
7234
7234
  });
7235
- const E = p.formGroup.group.filter((B, W) => (B._vif && s.value.push(W), B._vif)), P = St.cloneDeep(p.formGroup), k = p.formGroup.column || 1;
7235
+ const x = p.formGroup.group.filter((B, W) => (B._vif && s.value.push(W), B._vif)), P = St.cloneDeep(p.formGroup), k = p.formGroup.column || 1;
7236
7236
  return delete P.group, delete P.column, P.beforeValidate = async (B) => {
7237
7237
  if (p.formGroup.beforeValidate) {
7238
7238
  const W = p.formGroup.beforeValidate(B);
@@ -7240,12 +7240,12 @@ const im = {
7240
7240
  return !1;
7241
7241
  }
7242
7242
  return await Promise.all(f.value.map((W) => W.validate()));
7243
- }, P.groupFormDesc = {}, E.map((B) => {
7243
+ }, P.groupFormDesc = {}, x.map((B) => {
7244
7244
  Object.assign(P.groupFormDesc, B.formDesc);
7245
- }), P.disabledTab = p.disabledTab, E.map((B, W) => {
7245
+ }), P.disabledTab = p.disabledTab, x.map((B, W) => {
7246
7246
  A.push({
7247
7247
  title: B.title,
7248
- formProps: Object.assign({ column: B.column || k }, W === E.length - 1 ? P : { showBtns: !1 }, B || {})
7248
+ formProps: Object.assign({ column: B.column || k }, W === x.length - 1 ? P : { showBtns: !1 }, B || {})
7249
7249
  });
7250
7250
  }), A;
7251
7251
  }), g = Ie(() => (A) => typeof A == "function" ? A(p.modelValue) : typeof A == "boolean" ? A : !0);
@@ -7272,25 +7272,25 @@ const im = {
7272
7272
  }), A;
7273
7273
  }
7274
7274
  return c({ validate: Y, getData: K, clearValid: b }), (A, V) => (v(), Q("div", cm, [
7275
- (v(!0), Q(ve, null, Ue(N.value, (E, P) => {
7275
+ (v(!0), Q(ve, null, Ue(N.value, (x, P) => {
7276
7276
  var k;
7277
7277
  return v(), Q(ve, {
7278
- key: P + ((k = E.formProps) == null ? void 0 : k.fid)
7278
+ key: P + ((k = x.formProps) == null ? void 0 : k.fid)
7279
7279
  }, [
7280
7280
  qt()["top" + s.value[P]] ? $e(A.$slots, "top" + s.value[P], { key: 0 }) : re("", !0),
7281
7281
  $e(A.$slots, "title" + s.value[P], {}, () => [
7282
- E.title ? (v(), Q("div", fm, Ke(E.title), 1)) : re("", !0)
7282
+ x.title ? (v(), Q("div", fm, Ke(x.title), 1)) : re("", !0)
7283
7283
  ]),
7284
7284
  je(to, ae({
7285
7285
  modelValue: m.value,
7286
7286
  "onUpdate:modelValue": V[0] || (V[0] = (B) => m.value = B)
7287
- }, E.formProps, {
7287
+ }, x.formProps, {
7288
7288
  isGroupForm: "",
7289
7289
  ref_for: !0,
7290
7290
  ref: a,
7291
7291
  onReset: (B) => {
7292
7292
  var W;
7293
- return D(((W = E.formProps) == null ? void 0 : W.fid) || "");
7293
+ return D(((W = x.formProps) == null ? void 0 : W.fid) || "");
7294
7294
  }
7295
7295
  }), {
7296
7296
  default: G(() => [
@@ -7347,7 +7347,7 @@ const gm = { class: "el-plus-table-edit-column" }, pm = { class: "dialog-footer"
7347
7347
  const P = localStorage.getItem(l.storagePrefix + "hideColumnsList_" + d.tbName);
7348
7348
  P != null && P.length > 0 && (g.value = P.split("__")), s.value = D(d.column), K(d.column), N.value = m.value.filter((k) => g.value.indexOf(k) < 0);
7349
7349
  }
7350
- function E() {
7350
+ function x() {
7351
7351
  f.value.setCheckedKeys(N.value), p.value = !1;
7352
7352
  }
7353
7353
  return xn(() => {
@@ -7400,7 +7400,7 @@ const gm = { class: "el-plus-table-edit-column" }, pm = { class: "dialog-footer"
7400
7400
  Ce("div", pm, [
7401
7401
  je(B, {
7402
7402
  size: P.size,
7403
- onClick: E
7403
+ onClick: x
7404
7404
  }, {
7405
7405
  default: G(() => [
7406
7406
  Xe(" 取 消 ")
@@ -7450,14 +7450,14 @@ const ki = /* @__PURE__ */ et(Nm, [["__scopeId", "data-v-ed199511"]]), jm = { cl
7450
7450
  emits: ["query"],
7451
7451
  setup(M, { expose: c, emit: l }) {
7452
7452
  const d = He("defaultConf"), p = l, f = M, s = _(), m = _(), N = Ie(() => {
7453
- const E = [];
7453
+ const x = [];
7454
7454
  return f.toolbar && f.toolbar.btns && f.toolbar.btns.map((P) => {
7455
- E.push({ ...Wj(P), size: P.size || f.size });
7456
- }), E;
7455
+ x.push({ ...Wj(P), size: P.size || f.size });
7456
+ }), x;
7457
7457
  }), g = Ie(() => {
7458
7458
  var P;
7459
- const E = (P = f.toolbar) == null ? void 0 : P.formConfig;
7460
- return E != null && E.formDesc && Object.values(E == null ? void 0 : E.formDesc).map((k) => {
7459
+ const x = (P = f.toolbar) == null ? void 0 : P.formConfig;
7460
+ return x != null && x.formDesc && Object.values(x == null ? void 0 : x.formDesc).map((k) => {
7461
7461
  if (k.width)
7462
7462
  return;
7463
7463
  let B = 300;
@@ -7469,7 +7469,7 @@ const ki = /* @__PURE__ */ et(Nm, [["__scopeId", "data-v-ed199511"]]), jm = { cl
7469
7469
  break;
7470
7470
  }
7471
7471
  k.width = B + "px";
7472
- }), E;
7472
+ }), x;
7473
7473
  }), a = Ie(() => {
7474
7474
  var P;
7475
7475
  return ((P = f.toolbar) == null ? void 0 : P.export) || null;
@@ -7477,7 +7477,7 @@ const ki = /* @__PURE__ */ et(Nm, [["__scopeId", "data-v-ed199511"]]), jm = { cl
7477
7477
  function D() {
7478
7478
  p("query");
7479
7479
  }
7480
- async function Y({ callBack: E }) {
7480
+ async function Y({ callBack: x }) {
7481
7481
  var P, k, B, W, me;
7482
7482
  if (a.value) {
7483
7483
  const ee = new XMLHttpRequest();
@@ -7496,7 +7496,7 @@ const ki = /* @__PURE__ */ et(Nm, [["__scopeId", "data-v-ed199511"]]), jm = { cl
7496
7496
  }
7497
7497
  ue = $;
7498
7498
  } finally {
7499
- E && E();
7499
+ x && x();
7500
7500
  }
7501
7501
  else
7502
7502
  !a.value.noQuery && Je === "get" && (ue += (ue.indexOf("?") >= 0 ? "&" : "?") + Zj(L));
@@ -7509,41 +7509,41 @@ const ki = /* @__PURE__ */ et(Nm, [["__scopeId", "data-v-ed199511"]]), jm = { cl
7509
7509
  if (this.status == 200) {
7510
7510
  const Le = document.createElement("a");
7511
7511
  Le.href = window.URL.createObjectURL(this.response), Le.download = (((q = ($ = f.toolbar) == null ? void 0 : $.export) == null ? void 0 : q.name) || (/* @__PURE__ */ new Date()).getTime()) + (((Ne = (Me = f.toolbar) == null ? void 0 : Me.export) == null ? void 0 : Ne.suffix) || ".xlsx"), Le.click(), window.URL.revokeObjectURL(ue), setTimeout(() => {
7512
- E && E();
7512
+ x && x();
7513
7513
  }, 1e3);
7514
7514
  }
7515
7515
  }, ee.onerror = function($) {
7516
7516
  var Me, Ne, Le, we;
7517
7517
  const q = document.createElement("a");
7518
7518
  q.href = ue, q.download = (((Ne = (Me = f.toolbar) == null ? void 0 : Me.export) == null ? void 0 : Ne.name) || (/* @__PURE__ */ new Date()).getTime()) + (((we = (Le = f.toolbar) == null ? void 0 : Le.export) == null ? void 0 : we.suffix) || ".xlsx"), q.click(), setTimeout(() => {
7519
- E && E();
7519
+ x && x();
7520
7520
  }, 1e3);
7521
7521
  }, Je === "post" ? (ee.setRequestHeader("content-type", "application/json; charset=UTF-8"), ee.send(JSON.stringify(L))) : ee.send();
7522
7522
  }
7523
7523
  }
7524
7524
  function b() {
7525
- var E;
7526
- (E = s.value) == null || E.submit();
7525
+ var x;
7526
+ (x = s.value) == null || x.submit();
7527
7527
  }
7528
7528
  function K() {
7529
7529
  s.value.clear(), Ot(() => {
7530
- var E;
7531
- (E = s.value) == null || E.submit();
7530
+ var x;
7531
+ (x = s.value) == null || x.submit();
7532
7532
  });
7533
7533
  }
7534
- function A(E) {
7535
- if (E.vif)
7536
- return typeof E.vif == "function" ? E.vif(E) : !!E.vif;
7537
- if (E != null && E.auth)
7534
+ function A(x) {
7535
+ if (x != null && x.vif)
7536
+ return typeof x.vif == "function" ? x.vif(x) : !!x.vif;
7537
+ if (x != null && x.auth)
7538
7538
  if (!d.auth)
7539
7539
  console.warn("使用auth属性,请在crud注册时传入auth校验方法~");
7540
7540
  else
7541
- return d.auth(E.auth);
7541
+ return d.auth(x.auth);
7542
7542
  return !0;
7543
7543
  }
7544
7544
  function V() {
7545
- var E, P;
7546
- f.tbName ? (E = m.value) == null || E.initCol() : (P = f.column) == null || P.map((k) => {
7545
+ var x, P;
7546
+ f.tbName ? (x = m.value) == null || x.initCol() : (P = f.column) == null || P.map((k) => {
7547
7547
  k.vif !== void 0 && k.vif !== null ? typeof k.vif == "function" ? k._vif = k.vif(k) : k._vif = !!k.vif : k._vif = !0, k.auth && (d.auth ? k._vif = d.auth(k.auth) : console.warn("使用auth属性,请在crud注册时传入auth校验方法~"));
7548
7548
  });
7549
7549
  }
@@ -7554,9 +7554,9 @@ const ki = /* @__PURE__ */ et(Nm, [["__scopeId", "data-v-ed199511"]]), jm = { cl
7554
7554
  }, 200);
7555
7555
  });
7556
7556
  }), c({ getData: () => {
7557
- var E;
7558
- return (E = s.value) == null ? void 0 : E.getData();
7559
- }, initCol: V }), (E, P) => {
7557
+ var x;
7558
+ return (x = s.value) == null ? void 0 : x.getData();
7559
+ }, initCol: V }), (x, P) => {
7560
7560
  const k = F("ElPlusForm"), B = F("el-form");
7561
7561
  return v(), Q("div", jm, [
7562
7562
  f.toolbar && Object.keys(f.toolbar || {}).length ? (v(), R(B, {
@@ -7585,25 +7585,25 @@ const ki = /* @__PURE__ */ et(Nm, [["__scopeId", "data-v-ed199511"]]), jm = { cl
7585
7585
  key: 0,
7586
7586
  type: "primary",
7587
7587
  icon: "ele-Search",
7588
- loading: E.loading,
7589
- desc: { label: "查询", on: { click: b }, size: E.size }
7588
+ loading: x.loading,
7589
+ desc: { label: "查询", on: { click: b }, size: x.size }
7590
7590
  }, null, 8, ["loading", "desc"])) : re("", !0),
7591
7591
  Object.keys(((me = g.value) == null ? void 0 : me.formDesc) || {}).length ? (v(), R(Ln, {
7592
7592
  key: 1,
7593
- desc: { label: "重置", on: { click: K }, size: E.size }
7593
+ desc: { label: "重置", on: { click: K }, size: x.size }
7594
7594
  }, null, 8, ["desc"])) : re("", !0),
7595
- E.tbName ? (v(), R(ki, {
7595
+ x.tbName ? (v(), R(ki, {
7596
7596
  key: 2,
7597
7597
  ref_key: "settingColumnRef",
7598
7598
  ref: m,
7599
- tbName: E.tbName,
7600
- column: E.column || [],
7601
- size: E.size
7599
+ tbName: x.tbName,
7600
+ column: x.column || [],
7601
+ size: x.size
7602
7602
  }, null, 8, ["tbName", "column", "size"])) : re("", !0),
7603
7603
  A(a.value) && a.value ? (v(), R(Ln, {
7604
7604
  key: 3,
7605
7605
  type: "primary",
7606
- desc: { label: "导出Excel", size: E.size, disabled: (ee = a.value) == null ? void 0 : ee.disabled, mask: !0, on: { click: Y } }
7606
+ desc: { label: "导出Excel", size: x.size, disabled: (ee = a.value) == null ? void 0 : ee.disabled, mask: !0, on: { click: Y } }
7607
7607
  }, null, 8, ["desc"])) : re("", !0),
7608
7608
  (v(!0), Q(ve, null, Ue(N.value, (ue, Je) => (v(), Q(ve, { key: Je }, [
7609
7609
  A(ue) ? (v(), Q(ve, { key: 0 }, [
@@ -7611,11 +7611,11 @@ const ki = /* @__PURE__ */ et(Nm, [["__scopeId", "data-v-ed199511"]]), jm = { cl
7611
7611
  ue.elType === "upload" ? (v(), R(Fl, {
7612
7612
  key: 0,
7613
7613
  desc: ue,
7614
- loading: E.loading
7614
+ loading: x.loading
7615
7615
  }, null, 8, ["desc", "loading"])) : (v(), R(Ln, {
7616
7616
  key: 1,
7617
7617
  desc: ue,
7618
- loading: E.loading
7618
+ loading: x.loading
7619
7619
  }, null, 8, ["desc", "loading"]))
7620
7620
  ], 64))
7621
7621
  ], 64)) : re("", !0)
@@ -7636,11 +7636,11 @@ const ki = /* @__PURE__ */ et(Nm, [["__scopeId", "data-v-ed199511"]]), jm = { cl
7636
7636
  W.elType === "upload" ? (v(), R(Fl, {
7637
7637
  key: 0,
7638
7638
  desc: W,
7639
- loading: E.loading
7639
+ loading: x.loading
7640
7640
  }, null, 8, ["desc", "loading"])) : (v(), R(Ln, {
7641
7641
  key: 1,
7642
7642
  desc: W,
7643
- loading: E.loading
7643
+ loading: x.loading
7644
7644
  }, null, 8, ["desc", "loading"]))
7645
7645
  ], 64))
7646
7646
  ], 64))), 128))
@@ -7648,15 +7648,15 @@ const ki = /* @__PURE__ */ et(Nm, [["__scopeId", "data-v-ed199511"]]), jm = { cl
7648
7648
  ], 4))
7649
7649
  ]),
7650
7650
  _: 1
7651
- }, 8, ["style"])) : E.tbName ? (v(), Q("div", Dm, [
7651
+ }, 8, ["style"])) : x.tbName ? (v(), Q("div", Dm, [
7652
7652
  Ce("div", _m, [
7653
- E.tbName ? (v(), R(ki, {
7653
+ x.tbName ? (v(), R(ki, {
7654
7654
  key: 0,
7655
7655
  ref_key: "settingColumnRef",
7656
7656
  ref: m,
7657
- tbName: E.tbName,
7658
- column: E.column || [],
7659
- size: E.size,
7657
+ tbName: x.tbName,
7658
+ column: x.column || [],
7659
+ size: x.size,
7660
7660
  showText: !0
7661
7661
  }, null, 8, ["tbName", "column", "size"])) : re("", !0)
7662
7662
  ])
@@ -7665,7 +7665,7 @@ const ki = /* @__PURE__ */ et(Nm, [["__scopeId", "data-v-ed199511"]]), jm = { cl
7665
7665
  };
7666
7666
  }
7667
7667
  });
7668
- const vm = /* @__PURE__ */ et(hm, [["__scopeId", "data-v-36bf187a"]]), Im = /* @__PURE__ */ fe({
7668
+ const vm = /* @__PURE__ */ et(hm, [["__scopeId", "data-v-b1ccbea0"]]), Im = /* @__PURE__ */ fe({
7669
7669
  __name: "columnItem",
7670
7670
  props: {
7671
7671
  modelValue: {},
@@ -7836,10 +7836,10 @@ const Ym = /* @__PURE__ */ et(Im, [["__scopeId", "data-v-2c8bae46"]]), wm = {
7836
7836
  emits: ["getUrlConsumerIds", "selection", "select", "selectAll", "update:modelValue", "tabChange", "queryChange", "expandChange", "inited"],
7837
7837
  setup(M, { expose: c, emit: l }) {
7838
7838
  var ol, ke, gn, On, Sn, kt, kn, qn;
7839
- const d = He("defaultConf"), p = He("format"), f = l, s = M, m = _([]), N = _(null), g = _(), a = _({}), D = _(((On = (ol = s.tableConfig) == null ? void 0 : ol.tabConf) == null ? void 0 : On.tabs[((gn = (ke = s.tableConfig) == null ? void 0 : ke.tabConf) == null ? void 0 : gn.default) || 0].value) ?? ""), Y = Ie(() => (x) => x.key ? a.value[x.key] || 0 : ""), b = Ie(() => (x, ne) => {
7839
+ const d = He("defaultConf"), p = He("format"), f = l, s = M, m = _([]), N = _(null), g = _(), a = _({}), D = _(((On = (ol = s.tableConfig) == null ? void 0 : ol.tabConf) == null ? void 0 : On.tabs[((gn = (ke = s.tableConfig) == null ? void 0 : ke.tabConf) == null ? void 0 : gn.default) || 0].value) ?? ""), Y = Ie(() => (E) => E.key ? a.value[E.key] || 0 : ""), b = Ie(() => (E, ne) => {
7840
7840
  var oe, De, Be, tt;
7841
- return typeof ((De = (oe = s.tableConfig) == null ? void 0 : oe.tableAttr) == null ? void 0 : De.selectable) == "function" ? (tt = (Be = s.tableConfig) == null ? void 0 : Be.tableAttr) == null ? void 0 : tt.selectable(x, ne) : !0;
7842
- }), K = _(), A = _(!1), V = _(!!((kt = (Sn = s.tableConfig) == null ? void 0 : Sn.tabConf) != null && kt.fetch)), E = _(!1), P = d.size || "default", k = Ie(() => s.loading || A.value);
7841
+ return typeof ((De = (oe = s.tableConfig) == null ? void 0 : oe.tableAttr) == null ? void 0 : De.selectable) == "function" ? (tt = (Be = s.tableConfig) == null ? void 0 : Be.tableAttr) == null ? void 0 : tt.selectable(E, ne) : !0;
7842
+ }), K = _(), A = _(!1), V = _(!!((kt = (Sn = s.tableConfig) == null ? void 0 : Sn.tabConf) != null && kt.fetch)), x = _(!1), P = d.size || "default", k = Ie(() => s.loading || A.value);
7843
7843
  let B = Mt({});
7844
7844
  const W = _(s.modelValue || []), me = Mt([]), ee = _(0), ue = Mt(St.cloneDeep(s.selectList) || []), Je = Mt([]), L = Mt({
7845
7845
  current: !s.isDialog && B.current ? parseInt(B.current) : 1,
@@ -7847,7 +7847,7 @@ const Ym = /* @__PURE__ */ et(Im, [["__scopeId", "data-v-2c8bae46"]]), wm = {
7847
7847
  size: !s.isDialog && B.size ? parseInt(B.size) : s.pageSize
7848
7848
  }), $ = ((qn = (kn = s.tableConfig) == null ? void 0 : kn.explan) == null ? void 0 : qn.treeProps) || { children: "children", hasChildren: "hasChildren" }, q = Ie(() => {
7849
7849
  var De, Be, tt;
7850
- const x = Vi((De = s.tableConfig) == null ? void 0 : De.column, d, ((Be = s.tableConfig) == null ? void 0 : Be.tbName) || "", s.headerAlign, s.isDialog ? "auto" : s.colMinWidth), ne = Le(x);
7850
+ const E = Vi((De = s.tableConfig) == null ? void 0 : De.column, d, ((Be = s.tableConfig) == null ? void 0 : Be.tbName) || "", s.headerAlign, s.isDialog ? "auto" : s.colMinWidth), ne = Le(E);
7851
7851
  m.value = [];
7852
7852
  const oe = ne.map((Ae, rt) => {
7853
7853
  var pt;
@@ -7871,72 +7871,72 @@ const Ym = /* @__PURE__ */ et(Im, [["__scopeId", "data-v-2c8bae46"]]), wm = {
7871
7871
  let st = pt;
7872
7872
  if (s.type === "selection" && (st -= 1), s.isIndex && (st -= 1), qt().firstColumn && (st -= 1), m.value.includes(st))
7873
7873
  return { rowspan: Ae["rowSpan_" + st] ?? 1, colspan: Ae["colSpan_" + st] ?? 1 };
7874
- }), x;
7874
+ }), E;
7875
7875
  });
7876
- function Me(x, ne) {
7877
- return x && (ne != null && ne.length) ? ne.reduce((oe, De) => oe += x[De] || "", "") : "";
7876
+ function Me(E, ne) {
7877
+ return E && (ne != null && ne.length) ? ne.reduce((oe, De) => oe += E[De] || "", "") : "";
7878
7878
  }
7879
7879
  const Ne = Ie(() => {
7880
7880
  var ne, oe, De, Be, tt, Ae, rt;
7881
- const x = [];
7881
+ const E = [];
7882
7882
  if ((ne = s.tableConfig.summaryConf) != null && ne.vif) {
7883
7883
  if (typeof ((oe = s.tableConfig.summaryConf) == null ? void 0 : oe.vif) == "boolean") {
7884
7884
  if (!((De = s.tableConfig.summaryConf) != null && De.vif))
7885
- return x;
7885
+ return E;
7886
7886
  } else if (!((Be = s.tableConfig.summaryConf) != null && Be.vif()))
7887
- return x;
7887
+ return E;
7888
7888
  }
7889
7889
  if ((tt = s.tableConfig.summaryConf) != null && tt.prop) {
7890
7890
  const pt = s.tableConfig.summaryConf.prop.split(","), st = ((rt = (Ae = s.tableConfig.summaryConf) == null ? void 0 : Ae.label) == null ? void 0 : rt.split(",")) || [];
7891
7891
  pt.map((Nt, ut) => {
7892
7892
  var Yt, Ft;
7893
7893
  let dt = "";
7894
- (Yt = s.tableConfig.summaryConf) != null && Yt.sumFn ? dt = (Ft = s.tableConfig.summaryConf) == null ? void 0 : Ft.sumFn(W.value, ue) : dt = p.yuan(W.value.reduce((Jt, yt) => Jt += yt[Nt], 0)), x.push({ label: st[ut], value: dt });
7894
+ (Yt = s.tableConfig.summaryConf) != null && Yt.sumFn ? dt = (Ft = s.tableConfig.summaryConf) == null ? void 0 : Ft.sumFn(W.value, ue) : dt = p.yuan(W.value.reduce((Jt, yt) => Jt += yt[Nt], 0)), E.push({ label: st[ut], value: dt });
7895
7895
  });
7896
7896
  }
7897
- return x;
7897
+ return E;
7898
7898
  });
7899
- function Le(x) {
7899
+ function Le(E) {
7900
7900
  const ne = [];
7901
- return x == null || x.map((oe) => {
7901
+ return E == null || E.map((oe) => {
7902
7902
  var De;
7903
7903
  (De = oe.children) != null && De.length ? ne.push(...Le(oe.children)) : oe.__vif && ne.push(oe);
7904
7904
  }), ne;
7905
7905
  }
7906
- async function we(x) {
7907
- dn(!0), await f("tabChange", x, sn), Ot(() => {
7906
+ async function we(E) {
7907
+ dn(!0), await f("tabChange", E, sn), Ot(() => {
7908
7908
  sn();
7909
7909
  });
7910
7910
  }
7911
- async function z(x, ne, oe) {
7911
+ async function z(E, ne, oe) {
7912
7912
  var Be, tt;
7913
7913
  const De = await Z();
7914
- De[((tt = (Be = s.tableConfig) == null ? void 0 : Be.explan) == null ? void 0 : tt.idName) || "parentId"] = x.id, s.tableConfig.fetch && s.tableConfig.fetch(De).then((Ae) => {
7914
+ De[((tt = (Be = s.tableConfig) == null ? void 0 : Be.explan) == null ? void 0 : tt.idName) || "parentId"] = E.id, s.tableConfig.fetch && s.tableConfig.fetch(De).then((Ae) => {
7915
7915
  var rt, pt;
7916
7916
  oe(Ae == null ? void 0 : Ae[((pt = (rt = s.tableConfig) == null ? void 0 : rt.fetchMap) == null ? void 0 : pt.list) || "records"]);
7917
7917
  });
7918
7918
  }
7919
- function w(x) {
7920
- return me.length > x.rowIndex ? me[x.rowIndex * 1] : "";
7919
+ function w(E) {
7920
+ return me.length > E.rowIndex ? me[E.rowIndex * 1] : "";
7921
7921
  }
7922
- function J(x, ne) {
7923
- _e(ne, !x.some((oe) => oe[s.rowKey] === ne[s.rowKey])), f("select", x, ne), f("selection", St.cloneDeep(ue));
7922
+ function J(E, ne) {
7923
+ _e(ne, !E.some((oe) => oe[s.rowKey] === ne[s.rowKey])), f("select", E, ne), f("selection", St.cloneDeep(ue));
7924
7924
  }
7925
- function te(x) {
7926
- const ne = !(x && x.length > 0);
7927
- (ne ? W.value : x).map((oe) => {
7925
+ function te(E) {
7926
+ const ne = !(E && E.length > 0);
7927
+ (ne ? W.value : E).map((oe) => {
7928
7928
  _e(oe, ne);
7929
- }), f("selectAll", x, ne), f("selection", St.cloneDeep(ue));
7929
+ }), f("selectAll", E, ne), f("selection", St.cloneDeep(ue));
7930
7930
  }
7931
- function ce(x, ne) {
7932
- f("expandChange", x, ne);
7931
+ function ce(E, ne) {
7932
+ f("expandChange", E, ne);
7933
7933
  }
7934
- function _e(x, ne = !1) {
7935
- const oe = ue.findIndex((De) => De[s.rowKey] === x[s.rowKey]);
7936
- ne ? oe >= 0 && ue.splice(oe, 1) : oe < 0 && ue.push(x);
7934
+ function _e(E, ne = !1) {
7935
+ const oe = ue.findIndex((De) => De[s.rowKey] === E[s.rowKey]);
7936
+ ne ? oe >= 0 && ue.splice(oe, 1) : oe < 0 && ue.push(E);
7937
7937
  }
7938
- function H(x, ne = !1) {
7939
- x && x.length && x.map((oe) => {
7938
+ function H(E, ne = !1) {
7939
+ E && E.length && E.map((oe) => {
7940
7940
  _e(
7941
7941
  ue.find((De) => De[s.rowKey] === oe[s.rowKey]),
7942
7942
  !ne
@@ -7948,7 +7948,7 @@ const Ym = /* @__PURE__ */ et(Im, [["__scopeId", "data-v-2c8bae46"]]), wm = {
7948
7948
  }
7949
7949
  async function Z() {
7950
7950
  var ne, oe, De, Be, tt, Ae, rt;
7951
- let x = {
7951
+ let E = {
7952
7952
  // 封装查询条件
7953
7953
  // ...route.query,
7954
7954
  // ...topQueryData.value,
@@ -7956,35 +7956,35 @@ const Ym = /* @__PURE__ */ et(Im, [["__scopeId", "data-v-2c8bae46"]]), wm = {
7956
7956
  ...typeof s.tableConfig.queryMap == "function" ? await s.tableConfig.queryMap() : s.tableConfig.queryMap,
7957
7957
  t_: (/* @__PURE__ */ new Date()).getTime()
7958
7958
  };
7959
- return s.isPager && (x.current = L.current, x.size = L.size), (ne = s.tableConfig) != null && ne.tabConf && ((De = (oe = s.tableConfig) == null ? void 0 : oe.tabConf) != null && De.prop) && (x[(Be = s.tableConfig) == null ? void 0 : Be.tabConf.prop] = D.value), x = Se(x), s.isDialog, (rt = (Ae = (tt = s.tableConfig) == null ? void 0 : tt.toolbar) == null ? void 0 : Ae.export) != null && rt.isAuth, x;
7959
+ return s.isPager && (E.current = L.current, E.size = L.size), (ne = s.tableConfig) != null && ne.tabConf && ((De = (oe = s.tableConfig) == null ? void 0 : oe.tabConf) != null && De.prop) && (E[(Be = s.tableConfig) == null ? void 0 : Be.tabConf.prop] = D.value), E = Se(E), s.isDialog, (rt = (Ae = (tt = s.tableConfig) == null ? void 0 : tt.toolbar) == null ? void 0 : Ae.export) != null && rt.isAuth, E;
7960
7960
  }
7961
- function Se(x) {
7962
- if (!x)
7961
+ function Se(E) {
7962
+ if (!E)
7963
7963
  return {};
7964
7964
  const ne = {};
7965
- return Object.keys(x).map((oe) => {
7966
- x[oe] !== void 0 && x[oe] !== null && x[oe] !== "" && (ne[oe] = x[oe]);
7965
+ return Object.keys(E).map((oe) => {
7966
+ E[oe] !== void 0 && E[oe] !== null && E[oe] !== "" && (ne[oe] = E[oe]);
7967
7967
  }), ne;
7968
7968
  }
7969
- function be(x) {
7970
- L.current = 1, L.size = x, yn(!0);
7969
+ function be(E) {
7970
+ L.current = 1, L.size = E, yn(!0);
7971
7971
  }
7972
- function at(x) {
7973
- L.current !== x && (L.current = x, yn(!1));
7972
+ function at(E) {
7973
+ L.current !== E && (L.current = E, yn(!1));
7974
7974
  }
7975
- function ct(x, ne) {
7975
+ function ct(E, ne) {
7976
7976
  let oe = [];
7977
- x && x.length > 0 && x.map((De, Be) => {
7977
+ E && E.length > 0 && E.map((De, Be) => {
7978
7978
  Je.push([...ne, Be]), oe = De[$.children], oe && oe.length > 0 && ct(oe, [Be]);
7979
7979
  });
7980
7980
  }
7981
- async function yn(x) {
7981
+ async function yn(E) {
7982
7982
  var oe, De, Be, tt, Ae, rt, pt, st, Nt, ut, dt, Yt, Ft, Jt, yt, Bt;
7983
7983
  if (!s.tableConfig.fetch)
7984
7984
  return ee.value = 2, !1;
7985
7985
  if (ee.value === 1 || A.value)
7986
7986
  return !1;
7987
- ee.value = 1, A.value = !0, x && (L.current = 1);
7987
+ ee.value = 1, A.value = !0, E && (L.current = 1);
7988
7988
  let ne = await Z();
7989
7989
  (Be = (De = (oe = s.tableConfig) == null ? void 0 : oe.toolbar) == null ? void 0 : De.formConfig) != null && Be.beforeRequest && (ne = ((rt = (Ae = (tt = s.tableConfig) == null ? void 0 : tt.toolbar) == null ? void 0 : Ae.formConfig) == null ? void 0 : rt.beforeRequest(JSON.parse(JSON.stringify(ne)))) || ne);
7990
7990
  try {
@@ -7998,7 +7998,7 @@ const Ym = /* @__PURE__ */ et(Im, [["__scopeId", "data-v-2c8bae46"]]), wm = {
7998
7998
  Rl.tempId = Rl[s.rowKey] || `${Or + Sr}`;
7999
7999
  });
8000
8000
  }
8001
- W.value = Dn, s.type === "expand" && (Je.splice(0, Je.length), ct(W.value, [])), E.value = !1, mn(), Ot(() => {
8001
+ W.value = Dn, s.type === "expand" && (Je.splice(0, Je.length), ct(W.value, [])), x.value = !1, mn(), Ot(() => {
8002
8002
  $t();
8003
8003
  });
8004
8004
  } catch (Dn) {
@@ -8017,63 +8017,63 @@ const Ym = /* @__PURE__ */ et(Im, [["__scopeId", "data-v-2c8bae46"]]), wm = {
8017
8017
  { leading: !0, trailing: !1 }
8018
8018
  );
8019
8019
  function $t() {
8020
- W.value && W.value.length > 0 && s.type === "selection" && W.value.map((x) => {
8020
+ W.value && W.value.length > 0 && s.type === "selection" && W.value.map((E) => {
8021
8021
  g.value.toggleRowSelection(
8022
- x,
8023
- ue.some((ne) => ne[s.rowKey] === x[s.rowKey])
8022
+ E,
8023
+ ue.some((ne) => ne[s.rowKey] === E[s.rowKey])
8024
8024
  );
8025
8025
  });
8026
8026
  }
8027
- async function dn(x = !1) {
8027
+ async function dn(E = !1) {
8028
8028
  var ne, oe, De, Be;
8029
- return await yn(!0), !x && ((ne = s.tableConfig) != null && ne.tabConf) && ((oe = s.tableConfig) != null && oe.tabConf.fetch) && (a.value = await ((Be = s.tableConfig) == null ? void 0 : Be.tabConf.fetch(Object.assign({}, await Z(), (De = s.tableConfig) == null ? void 0 : De.tabConf.queryMap))), V.value = !1), W.value;
8029
+ return await yn(!0), !E && ((ne = s.tableConfig) != null && ne.tabConf) && ((oe = s.tableConfig) != null && oe.tabConf.fetch) && (a.value = await ((Be = s.tableConfig) == null ? void 0 : Be.tabConf.fetch(Object.assign({}, await Z(), (De = s.tableConfig) == null ? void 0 : De.tabConf.queryMap))), V.value = !1), W.value;
8030
8030
  }
8031
8031
  async function Lt() {
8032
8032
  var ne, oe, De, Be, tt, Ae;
8033
- let x = await Z();
8034
- (De = (oe = (ne = s.tableConfig) == null ? void 0 : ne.toolbar) == null ? void 0 : oe.formConfig) != null && De.beforeRequest && (x = ((Ae = (tt = (Be = s.tableConfig) == null ? void 0 : Be.toolbar) == null ? void 0 : tt.formConfig) == null ? void 0 : Ae.beforeRequest(JSON.parse(JSON.stringify(x)))) || x), x && f("queryChange", x), dn();
8033
+ let E = await Z();
8034
+ (De = (oe = (ne = s.tableConfig) == null ? void 0 : ne.toolbar) == null ? void 0 : oe.formConfig) != null && De.beforeRequest && (E = ((Ae = (tt = (Be = s.tableConfig) == null ? void 0 : Be.toolbar) == null ? void 0 : tt.formConfig) == null ? void 0 : Ae.beforeRequest(JSON.parse(JSON.stringify(E)))) || E), E && f("queryChange", E), dn();
8035
8035
  }
8036
8036
  function sn() {
8037
- var x;
8038
- (x = K.value) == null || x.initCol();
8037
+ var E;
8038
+ (E = K.value) == null || E.initCol();
8039
8039
  }
8040
8040
  return Qe(
8041
8041
  () => s.modelValue,
8042
- (x) => {
8042
+ (E) => {
8043
8043
  var ne, oe;
8044
- s.tableConfig.fetch || (x == null ? void 0 : x.length) !== ((ne = W.value) == null ? void 0 : ne.length) && (ee.value = 2, (oe = W.value) == null || oe.splice(0, W.value.length, ...x || []));
8044
+ s.tableConfig.fetch || (E == null ? void 0 : E.length) !== ((ne = W.value) == null ? void 0 : ne.length) && (ee.value = 2, (oe = W.value) == null || oe.splice(0, W.value.length, ...E || []));
8045
8045
  }
8046
8046
  // { deep: true }
8047
8047
  ), Qe(
8048
8048
  () => s.selectList,
8049
- (x) => {
8050
- ue.splice(0, ue.length, ...x), $t();
8049
+ (E) => {
8050
+ ue.splice(0, ue.length, ...E), $t();
8051
8051
  },
8052
8052
  { deep: !0 }
8053
8053
  ), s.isDIYMain && aj("reloadTable", dn), xn(() => {
8054
- var x, ne, oe;
8055
- Object.keys(((ne = (x = s.tableConfig) == null ? void 0 : x.toolbar) == null ? void 0 : ne.formConfig) || {}).length || (oe = s.tableConfig) != null && oe.tbName || dn();
8056
- }), c({ reload: dn, tableData: W, changeSelect: H, resetSelect: se, initCol: sn }), (x, ne) => {
8054
+ var E, ne, oe;
8055
+ Object.keys(((ne = (E = s.tableConfig) == null ? void 0 : E.toolbar) == null ? void 0 : ne.formConfig) || {}).length || (oe = s.tableConfig) != null && oe.tbName || dn();
8056
+ }), c({ reload: dn, tableData: W, changeSelect: H, resetSelect: se, initCol: sn }), (E, ne) => {
8057
8057
  var Nt, ut, dt, Yt, Ft, Jt;
8058
8058
  const oe = F("el-icon"), De = F("el-radio-button"), Be = F("el-radio-group"), tt = F("el-table-column"), Ae = F("el-empty"), rt = F("el-table"), pt = F("el-pagination"), st = cj("loading");
8059
8059
  return v(), Q("div", Tm, [
8060
- Object.keys(((Nt = x.tableConfig) == null ? void 0 : Nt.toolbar) || {}).length || x.tableConfig.tbName ? (v(), R(vm, {
8060
+ Object.keys(((Nt = E.tableConfig) == null ? void 0 : Nt.toolbar) || {}).length || E.tableConfig.tbName ? (v(), R(vm, {
8061
8061
  key: 0,
8062
8062
  ref_key: "tableHeaderRef",
8063
8063
  ref: K,
8064
8064
  modelValue: bt(B),
8065
8065
  "onUpdate:modelValue": ne[0] || (ne[0] = (yt) => fj(B) ? B.value = yt : B = yt),
8066
- tbName: x.tableConfig.tbName,
8067
- column: ((ut = x.tableConfig) == null ? void 0 : ut.column) || [],
8066
+ tbName: E.tableConfig.tbName,
8067
+ column: ((ut = E.tableConfig) == null ? void 0 : ut.column) || [],
8068
8068
  size: bt(P),
8069
- isShowRefresh: x.isShowRefresh,
8069
+ isShowRefresh: E.isShowRefresh,
8070
8070
  loading: k.value,
8071
- toolbar: x.tableConfig.toolbar,
8072
- isDialog: x.isDialog,
8071
+ toolbar: E.tableConfig.toolbar,
8072
+ isDialog: E.isDialog,
8073
8073
  onQuery: Lt,
8074
8074
  queryDataFn: Z
8075
8075
  }, null, 8, ["modelValue", "tbName", "column", "size", "isShowRefresh", "loading", "toolbar", "isDialog"])) : re("", !0),
8076
- x.tableConfig.tabConf ? (v(), Q("div", bm, [
8076
+ E.tableConfig.tabConf ? (v(), Q("div", bm, [
8077
8077
  je(Be, {
8078
8078
  modelValue: D.value,
8079
8079
  "onUpdate:modelValue": ne[1] || (ne[1] = (yt) => D.value = yt),
@@ -8083,7 +8083,7 @@ const Ym = /* @__PURE__ */ et(Im, [["__scopeId", "data-v-2c8bae46"]]), wm = {
8083
8083
  default: G(() => {
8084
8084
  var yt;
8085
8085
  return [
8086
- (v(!0), Q(ve, null, Ue((yt = x.tableConfig.tabConf) == null ? void 0 : yt.tabs, (Bt, wt) => (v(), R(De, {
8086
+ (v(!0), Q(ve, null, Ue((yt = E.tableConfig.tabConf) == null ? void 0 : yt.tabs, (Bt, wt) => (v(), R(De, {
8087
8087
  key: wt,
8088
8088
  label: Bt.value,
8089
8089
  loading: !0
@@ -8109,9 +8109,9 @@ const Ym = /* @__PURE__ */ et(Im, [["__scopeId", "data-v-2c8bae46"]]), wm = {
8109
8109
  _: 1
8110
8110
  }, 8, ["modelValue"])
8111
8111
  ])) : re("", !0),
8112
- qt().default ? $e(x.$slots, "default", { key: 2 }) : re("", !0),
8112
+ qt().default ? $e(E.$slots, "default", { key: 2 }) : re("", !0),
8113
8113
  Mj((v(), Q("div", Lm, [
8114
- x.isDIYMain ? $e(x.$slots, "main", {
8114
+ E.isDIYMain ? $e(E.$slots, "main", {
8115
8115
  key: 0,
8116
8116
  tableData: W.value
8117
8117
  }) : (v(), R(rt, ae({
@@ -8120,11 +8120,11 @@ const Ym = /* @__PURE__ */ et(Im, [["__scopeId", "data-v-2c8bae46"]]), wm = {
8120
8120
  ref: g,
8121
8121
  style: { width: "100%" },
8122
8122
  height: "100%",
8123
- maxHeight: x.tableConfig.maxHeight || "auto"
8124
- }, x.tableConfig.tableAttr, {
8125
- class: { "big-h-bar": (Yt = (dt = x.tableConfig) == null ? void 0 : dt.tableAttr) == null ? void 0 : Yt.bigHBar, "big-v-bar": (Ft = x.tableConfig.tableAttr) == null ? void 0 : Ft.bigVBar },
8123
+ maxHeight: E.tableConfig.maxHeight || "auto"
8124
+ }, E.tableConfig.tableAttr, {
8125
+ class: { "big-h-bar": (Yt = (dt = E.tableConfig) == null ? void 0 : dt.tableAttr) == null ? void 0 : Yt.bigHBar, "big-v-bar": (Ft = E.tableConfig.tableAttr) == null ? void 0 : Ft.bigVBar },
8126
8126
  data: W.value,
8127
- "row-key": x.type !== "expand" && x.isTempId ? "tempId" : x.rowKey,
8127
+ "row-key": E.type !== "expand" && E.isTempId ? "tempId" : E.rowKey,
8128
8128
  lazy: "",
8129
8129
  load: z,
8130
8130
  size: bt(P),
@@ -8136,7 +8136,7 @@ const Ym = /* @__PURE__ */ et(Im, [["__scopeId", "data-v-2c8bae46"]]), wm = {
8136
8136
  "span-method": N.value
8137
8137
  }), En({
8138
8138
  default: G(() => [
8139
- x.type === "selection" ? (v(), R(tt, {
8139
+ E.type === "selection" ? (v(), R(tt, {
8140
8140
  key: 0,
8141
8141
  type: "selection",
8142
8142
  width: "55px",
@@ -8144,14 +8144,14 @@ const Ym = /* @__PURE__ */ et(Im, [["__scopeId", "data-v-2c8bae46"]]), wm = {
8144
8144
  "header-align": "center",
8145
8145
  align: "center"
8146
8146
  }, null, 8, ["selectable"])) : re("", !0),
8147
- x.isIndex ? (v(), R(tt, {
8147
+ E.isIndex ? (v(), R(tt, {
8148
8148
  key: 1,
8149
8149
  type: "index",
8150
8150
  width: "60",
8151
8151
  label: "序号",
8152
- headerAlign: x.headerAlign
8152
+ headerAlign: E.headerAlign
8153
8153
  }, null, 8, ["headerAlign"])) : re("", !0),
8154
- qt().firstColumn ? $e(x.$slots, "firstColumn", { key: 2 }) : re("", !0),
8154
+ qt().firstColumn ? $e(E.$slots, "firstColumn", { key: 2 }) : re("", !0),
8155
8155
  (v(!0), Q(ve, null, Ue(q.value, (yt, Bt) => (v(), R(Am, {
8156
8156
  key: Bt,
8157
8157
  item: yt,
@@ -8163,21 +8163,21 @@ const Ym = /* @__PURE__ */ et(Im, [["__scopeId", "data-v-2c8bae46"]]), wm = {
8163
8163
  !k.value && ee.value === 2 ? {
8164
8164
  name: "empty",
8165
8165
  fn: G(() => [
8166
- x.isEmptyImg ? (v(), R(Ae, {
8166
+ E.isEmptyImg ? (v(), R(Ae, {
8167
8167
  key: 0,
8168
- description: x.nullText
8169
- }, null, 8, ["description"])) : (v(), Q("span", xm, Ke(x.nullText), 1))
8168
+ description: E.nullText
8169
+ }, null, 8, ["description"])) : (v(), Q("span", xm, Ke(E.nullText), 1))
8170
8170
  ]),
8171
8171
  key: "0"
8172
8172
  } : void 0,
8173
- (Jt = x.tableConfig.summaryConf) != null && Jt.prop ? {
8173
+ (Jt = E.tableConfig.summaryConf) != null && Jt.prop ? {
8174
8174
  name: "append",
8175
8175
  fn: G(() => {
8176
8176
  var yt;
8177
8177
  return [
8178
8178
  Ne.value && Ne.value.length > 0 ? (v(), Q("div", {
8179
8179
  key: 0,
8180
- style: ht((yt = x.tableConfig.summaryConf) == null ? void 0 : yt.hstyle),
8180
+ style: ht((yt = E.tableConfig.summaryConf) == null ? void 0 : yt.hstyle),
8181
8181
  class: "summary-row"
8182
8182
  }, [
8183
8183
  (v(!0), Q(ve, null, Ue(Ne.value, (Bt, wt) => (v(), Q("div", {
@@ -8196,7 +8196,7 @@ const Ym = /* @__PURE__ */ et(Im, [["__scopeId", "data-v-2c8bae46"]]), wm = {
8196
8196
  ])), [
8197
8197
  [st, k.value]
8198
8198
  ]),
8199
- x.isPager || x.tableConfig.statistic ? (v(), Q("div", Em, [
8199
+ E.isPager || E.tableConfig.statistic ? (v(), Q("div", Em, [
8200
8200
  je(pt, {
8201
8201
  class: "page-info",
8202
8202
  small: "",
@@ -8209,7 +8209,7 @@ const Ym = /* @__PURE__ */ et(Im, [["__scopeId", "data-v-2c8bae46"]]), wm = {
8209
8209
  total: L.total
8210
8210
  }, null, 8, ["current-page", "page-size", "total"])
8211
8211
  ])) : re("", !0),
8212
- $e(x.$slots, "bottom")
8212
+ $e(E.$slots, "bottom")
8213
8213
  ]);
8214
8214
  };
8215
8215
  }
@@ -229,7 +229,7 @@ function handelReset() {
229
229
  * @param item
230
230
  */
231
231
  function getVIf(item: any) {
232
- if (item.vif) {
232
+ if (item?.vif) {
233
233
  if (typeof item.vif === 'function') {
234
234
  return item.vif(item)
235
235
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "el-plus-crud",
3
3
  "description": "采用Vue3 + TS,封装的element-plus数据驱动表单、列表组件",
4
4
  "author": "K.D.Jack",
5
- "version": "0.1.3",
5
+ "version": "0.1.4",
6
6
  "license": "MIT",
7
7
  "private": false,
8
8
  "main": "dist/el-plus-crud.mjs",