@bscomp/ep-ui 0.1.1 → 0.1.3-beta

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/lib/ep-ui.js CHANGED
@@ -1,4 +1,4 @@
1
- import vd, { shallowRef as Kr, watchEffect as fa, readonly as uu, getCurrentScope as hd, onScopeDispose as gd, unref as b, getCurrentInstance as Pt, onMounted as dt, nextTick as je, watch as Ee, ref as z, defineComponent as _, openBlock as x, createElementBlock as Y, createElementVNode as ie, warn as md, computed as O, inject as Le, isRef as br, onBeforeUnmount as un, onBeforeMount as bd, provide as _t, mergeProps as Be, renderSlot as te, toRef as bn, onUnmounted as cu, useAttrs as yd, useSlots as rr, normalizeClass as K, normalizeStyle as yt, createCommentVNode as Q, Fragment as Xe, createBlock as q, withCtx as U, resolveDynamicComponent as et, withModifiers as ze, createVNode as Me, toDisplayString as Pe, Transition as Hl, withDirectives as xt, vShow as qr, reactive as Xt, onActivated as du, onUpdated as Kl, cloneVNode as Sd, Text as fu, Comment as Ed, Teleport as wd, onDeactivated as Od, toRaw as pa, vModelCheckbox as va, createTextVNode as at, toRefs as yr, vModelRadio as pu, resolveComponent as He, resolveDirective as Ul, toHandlerKey as Td, renderList as zt, withKeys as On, vModelText as vu, h as fr, createSlots as Bn, normalizeProps as Sr, guardReactiveProps as Mo, mergeModels as en, useModel as yn } from "vue";
1
+ import vd, { shallowRef as Kr, watchEffect as fa, readonly as uu, getCurrentScope as hd, onScopeDispose as gd, unref as b, getCurrentInstance as Pt, onMounted as dt, nextTick as je, watch as Se, ref as z, defineComponent as _, openBlock as x, createElementBlock as Y, createElementVNode as ie, warn as md, computed as O, inject as Le, isRef as br, onBeforeUnmount as un, onBeforeMount as bd, provide as _t, mergeProps as Be, renderSlot as te, toRef as bn, onUnmounted as cu, useAttrs as yd, useSlots as rr, normalizeClass as K, normalizeStyle as yt, createCommentVNode as Q, Fragment as Xe, createBlock as q, withCtx as U, resolveDynamicComponent as et, withModifiers as ze, createVNode as Me, toDisplayString as Pe, Transition as Hl, withDirectives as xt, vShow as qr, reactive as Xt, onActivated as du, onUpdated as Kl, cloneVNode as Sd, Text as fu, Comment as Ed, Teleport as wd, onDeactivated as Od, toRaw as pa, vModelCheckbox as va, createTextVNode as at, toRefs as yr, vModelRadio as pu, resolveComponent as He, resolveDirective as Ul, toHandlerKey as Td, renderList as zt, withKeys as On, vModelText as vu, h as fr, createSlots as Bn, normalizeProps as Sr, guardReactiveProps as Mo, mergeModels as en, useModel as yn } from "vue";
2
2
  const Ci = (e) => {
3
3
  if (e.tabIndex > 0 || e.tabIndex === 0 && e.getAttribute("tabIndex") !== null)
4
4
  return !0;
@@ -66,7 +66,7 @@ function rn(...e) {
66
66
  Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
67
67
  const l = [], r = () => {
68
68
  l.forEach((d) => d()), l.length = 0;
69
- }, i = (d, c, v, h) => (d.addEventListener(c, v, h), () => d.removeEventListener(c, v, h)), s = Ee(() => [Nn(t), gu(a)], ([d, c]) => {
69
+ }, i = (d, c, v, h) => (d.addEventListener(c, v, h), () => d.removeEventListener(c, v, h)), s = Se(() => [Nn(t), gu(a)], ([d, c]) => {
70
70
  r(), d && l.push(...n.flatMap((v) => o.map((h) => i(d, v, h, c))));
71
71
  }, { immediate: !0, flush: "post" }), u = () => {
72
72
  s(), r();
@@ -130,7 +130,7 @@ function Ft(e, t, n = {}) {
130
130
  let r;
131
131
  const i = mu(() => a && "ResizeObserver" in a), s = () => {
132
132
  r && (r.disconnect(), r = void 0);
133
- }, u = Ee(() => Nn(e), (c) => {
133
+ }, u = Se(() => Nn(e), (c) => {
134
134
  s(), i.value && a && c && (r = new ResizeObserver(t), r.observe(c, l));
135
135
  }, { immediate: !0, flush: "post" }), d = () => {
136
136
  s(), u();
@@ -154,7 +154,7 @@ function Kd(e, t, n = {}) {
154
154
  let r;
155
155
  const i = mu(() => a && "MutationObserver" in a), s = () => {
156
156
  r && (r.disconnect(), r = void 0);
157
- }, u = Ee(() => Nn(e), (c) => {
157
+ }, u = Se(() => Nn(e), (c) => {
158
158
  s(), i.value && a && c && (r = new MutationObserver(t), r.observe(c, l));
159
159
  }, { immediate: !0 }), d = () => {
160
160
  s(), u();
@@ -1333,7 +1333,7 @@ const Ku = "__epPropKey", be = (e) => e, tg = (e) => It(e) && !!e[Ku], En = (e,
1333
1333
  return ma(Object.entries((l = a.proxy) == null ? void 0 : l.$attrs).filter(([r]) => !o.value.includes(r) && !(t && og.test(r))));
1334
1334
  }) : (Ot("use-attrs", "getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"), O(() => ({})));
1335
1335
  }, ho = ({ from: e, replacement: t, scope: n, version: o, ref: a, type: l = "API" }, r) => {
1336
- Ee(() => b(r), (i) => {
1336
+ Se(() => b(r), (i) => {
1337
1337
  i && Ot(n, `[${l}] ${e} is about to be deprecated in version ${o}, please use ${t} instead.
1338
1338
  For more detail, please visit: ${a}
1339
1339
  `);
@@ -1607,7 +1607,7 @@ const ig = (e) => (t, n) => sg(t, n, b(e)), sg = (e, t, n) => bt(n, e, e).replac
1607
1607
  }, E = () => {
1608
1608
  r.value ? S() : T();
1609
1609
  };
1610
- return Ee(() => p[e], w), s && v.appContext.config.globalProperties.$route !== void 0 && Ee(() => ({
1610
+ return Se(() => p[e], w), s && v.appContext.config.globalProperties.$route !== void 0 && Se(() => ({
1611
1611
  ...v.proxy.$route
1612
1612
  }), () => {
1613
1613
  s.value && r.value && S();
@@ -2203,12 +2203,12 @@ const bm = (e, t, n = {}) => {
2203
2203
  }), i = () => {
2204
2204
  l.value && (l.value.destroy(), l.value = void 0);
2205
2205
  };
2206
- return Ee(a, (s) => {
2206
+ return Se(a, (s) => {
2207
2207
  const u = b(l);
2208
2208
  u && u.setOptions(s);
2209
2209
  }, {
2210
2210
  deep: !0
2211
- }), Ee([e, t], ([s, u]) => {
2211
+ }), Se([e, t], ([s, u]) => {
2212
2212
  i(), !(!s || !u) && (l.value = mm(s, u, b(a)));
2213
2213
  }), un(() => {
2214
2214
  i();
@@ -2416,7 +2416,7 @@ function si(e, {
2416
2416
  var v, h;
2417
2417
  (v = i.value) != null && v.contains(document.activeElement) && i.value !== document.activeElement || (h = e.value) == null || h.focus();
2418
2418
  };
2419
- return Ee(i, (v) => {
2419
+ return Se(i, (v) => {
2420
2420
  v && v.setAttribute("tabindex", "-1");
2421
2421
  }), rn(i, "focus", u, !0), rn(i, "blur", d, !0), rn(i, "click", c, !0), process.env.NODE_ENV === "test" && dt(() => {
2422
2422
  const v = hr(e.value) ? e.value : document.querySelector("input,textarea");
@@ -2542,7 +2542,7 @@ const mn = cn(Um), ci = Symbol("formContextKey"), ya = Symbol("formItemContextKe
2542
2542
  return !!(!(e.label || e.ariaLabel) && t && t.inputIds && ((i = t.inputIds) == null ? void 0 : i.length) <= 1);
2543
2543
  });
2544
2544
  return dt(() => {
2545
- l = Ee([bn(e, "id"), n], ([i, s]) => {
2545
+ l = Se([bn(e, "id"), n], ([i, s]) => {
2546
2546
  const u = i ?? (s ? void 0 : jo().value);
2547
2547
  u !== a.value && (t != null && t.removeInputId && (a.value && t.removeInputId(a.value), !(o != null && o.value) && !s && u && t.addInputId(u)), a.value = u);
2548
2548
  }, { immediate: !0 });
@@ -2811,10 +2811,10 @@ const Xm = Ge({
2811
2811
  }, Mt = () => {
2812
2812
  n(Tt, ""), n("change", ""), n("clear"), n("input", "");
2813
2813
  };
2814
- return Ee(() => o.modelValue, () => {
2814
+ return Se(() => o.modelValue, () => {
2815
2815
  var X;
2816
2816
  je(() => Z()), o.validateEvent && ((X = d == null ? void 0 : d.validate) == null || X.call(d, "change").catch((De) => Ot(De)));
2817
- }), Ee($, () => Ce()), Ee(() => o.type, async () => {
2817
+ }), Se($, () => Ce()), Se(() => o.type, async () => {
2818
2818
  await je(), Ce(), Z();
2819
2819
  }), dt(() => {
2820
2820
  !o.formatter && o.parser && Ot("ElInput", "If you set the parser, you also need to set the formatter."), Ce(), je(Z);
@@ -3264,9 +3264,9 @@ const ib = Ge({
3264
3264
  var w;
3265
3265
  (w = v.value) == null || w.update();
3266
3266
  };
3267
- return Ee(() => o.noresize, (w) => {
3267
+ return Se(() => o.noresize, (w) => {
3268
3268
  w ? (l == null || l(), r == null || r()) : ({ stop: l } = Ft(c, S), r = rn("resize", S));
3269
- }, { immediate: !0 }), Ee(() => [o.maxHeight, o.height], () => {
3269
+ }, { immediate: !0 }), Se(() => [o.maxHeight, o.height], () => {
3270
3270
  o.native || je(() => {
3271
3271
  var w;
3272
3272
  S(), d.value && ((w = v.value) == null || w.handleScroll(d.value));
@@ -3373,7 +3373,7 @@ const pc = Ge({
3373
3373
  props: pc,
3374
3374
  setup(e, { expose: t }) {
3375
3375
  const n = e, o = ke("popper"), { arrowOffset: a, arrowRef: l, arrowStyle: r } = Le(dc, void 0);
3376
- return Ee(() => n.arrowOffset, (i) => {
3376
+ return Se(() => n.arrowOffset, (i) => {
3377
3377
  a.value = i;
3378
3378
  }), un(() => {
3379
3379
  l.value = void 0;
@@ -3491,16 +3491,16 @@ const hc = Ge({
3491
3491
  "onContextmenu"
3492
3492
  ];
3493
3493
  return dt(() => {
3494
- Ee(() => n.virtualRef, (c) => {
3494
+ Se(() => n.virtualRef, (c) => {
3495
3495
  c && (a.value = Nn(c));
3496
3496
  }, {
3497
3497
  immediate: !0
3498
- }), Ee(a, (c, v) => {
3498
+ }), Se(a, (c, v) => {
3499
3499
  u == null || u(), u = void 0, hr(c) && (d.forEach((h) => {
3500
3500
  var p;
3501
3501
  const f = n[h];
3502
3502
  f && (c.addEventListener(h.slice(2).toLowerCase(), f), (p = v == null ? void 0 : v.removeEventListener) == null || p.call(v, h.slice(2).toLowerCase(), f));
3503
- }), Ci(c) && (u = Ee([l, r, i, s], (h) => {
3503
+ }), Ci(c) && (u = Se([l, r, i, s], (h) => {
3504
3504
  [
3505
3505
  "aria-controls",
3506
3506
  "aria-describedby",
@@ -3686,9 +3686,9 @@ const Rb = () => {
3686
3686
  _t(Ib, {
3687
3687
  focusTrapRef: n,
3688
3688
  onKeydown: i
3689
- }), Ee(() => e.focusTrapEl, (p) => {
3689
+ }), Se(() => e.focusTrapEl, (p) => {
3690
3690
  p && (n.value = p);
3691
- }, { immediate: !0 }), Ee([n], ([p], [f]) => {
3691
+ }, { immediate: !0 }), Se([n], ([p], [f]) => {
3692
3692
  p && (p.addEventListener("keydown", i), p.addEventListener("focusin", d), p.addEventListener("focusout", c)), f && (f.removeEventListener("keydown", i), f.removeEventListener("focusin", d), f.removeEventListener("focusout", c));
3693
3693
  });
3694
3694
  const s = (p) => {
@@ -3746,7 +3746,7 @@ const Rb = () => {
3746
3746
  }
3747
3747
  }
3748
3748
  return dt(() => {
3749
- e.trapped && v(), Ee(() => e.trapped, (p) => {
3749
+ e.trapped && v(), Se(() => e.trapped, (p) => {
3750
3750
  p ? v() : h();
3751
3751
  });
3752
3752
  }), un(() => {
@@ -3917,8 +3917,8 @@ const Ub = 0, Gb = (e) => {
3917
3917
  b(i)
3918
3918
  ])
3919
3919
  })), d = O(() => zb(e.referenceEl) || b(o)), { attributes: c, state: v, styles: h, update: p, forceUpdate: f, instanceRef: m } = bm(d, n, u);
3920
- return Ee(m, (g) => t.value = g), dt(() => {
3921
- Ee(() => {
3920
+ return Se(m, (g) => t.value = g), dt(() => {
3921
+ Se(() => {
3922
3922
  var g;
3923
3923
  return (g = b(d)) == null ? void 0 : g.getBoundingClientRect();
3924
3924
  }, () => {
@@ -4026,17 +4026,17 @@ const Ub = 0, Gb = (e) => {
4026
4026
  N(!1), o.visible && o.focusOnShow ? l.value = !0 : o.visible === !1 && (l.value = !1);
4027
4027
  };
4028
4028
  return dt(() => {
4029
- Ee(() => o.triggerTargetEl, (F, H) => {
4029
+ Se(() => o.triggerTargetEl, (F, H) => {
4030
4030
  L == null || L(), L = void 0;
4031
4031
  const J = b(F || h.value), C = b(H || h.value);
4032
- hr(J) && (L = Ee([m, () => o.ariaLabel, y, () => o.id], ($) => {
4032
+ hr(J) && (L = Se([m, () => o.ariaLabel, y, () => o.id], ($) => {
4033
4033
  ["role", "aria-label", "aria-modal", "id"].forEach((ae, de) => {
4034
4034
  No($[de]) ? J.removeAttribute(ae) : J.setAttribute(ae, $[de]);
4035
4035
  });
4036
4036
  }, { immediate: !0 })), C !== J && hr(C) && ["role", "aria-label", "aria-modal", "id"].forEach(($) => {
4037
4037
  C.removeAttribute($);
4038
4038
  });
4039
- }, { immediate: !0 }), Ee(() => o.visible, D, { immediate: !0 });
4039
+ }, { immediate: !0 }), Se(() => o.visible, D, { immediate: !0 });
4040
4040
  }), un(() => {
4041
4041
  L == null || L(), L = void 0;
4042
4042
  }), t({
@@ -4245,11 +4245,11 @@ const cy = cn(uy), dy = _({
4245
4245
  }, J = () => {
4246
4246
  n.virtualTriggering || c();
4247
4247
  };
4248
- return Ee(() => b(u), (C) => {
4248
+ return Se(() => b(u), (C) => {
4249
4249
  C ? P.value = !1 : r == null || r();
4250
4250
  }, {
4251
4251
  flush: "post"
4252
- }), Ee(() => n.content, () => {
4252
+ }), Se(() => n.content, () => {
4253
4253
  var C, $;
4254
4254
  ($ = (C = l.value) == null ? void 0 : C.updatePopper) == null || $.call(C);
4255
4255
  }), t({
@@ -4362,7 +4362,7 @@ const vy = _({
4362
4362
  n("before-hide", u.value);
4363
4363
  },
4364
4364
  updatePopper: i
4365
- }), Ee(() => o.disabled, (g) => {
4365
+ }), Se(() => o.disabled, (g) => {
4366
4366
  g && s.value && (s.value = !1);
4367
4367
  });
4368
4368
  const m = (g) => {
@@ -5331,7 +5331,7 @@ const wc = {
5331
5331
  n.value || !o.value && !a.value && l.value && (p.composedPath().some((g) => g.tagName === "LABEL") || (t.value = u([!1, e.falseValue, e.falseLabel].includes(t.value)), await je(), d(t.value, p)));
5332
5332
  }
5333
5333
  const h = O(() => (r == null ? void 0 : r.validateEvent) || e.validateEvent);
5334
- return Ee(() => e.modelValue, () => {
5334
+ return Se(() => e.modelValue, () => {
5335
5335
  h.value && (i == null || i.validate("change").catch((p) => Ot(p)));
5336
5336
  }), {
5337
5337
  handleChange: c,
@@ -5670,7 +5670,7 @@ const _y = Ge({
5670
5670
  ]),
5671
5671
  modelValue: s,
5672
5672
  changeEvent: i
5673
- }), Ee(() => n.modelValue, () => {
5673
+ }), Se(() => n.modelValue, () => {
5674
5674
  n.validateEvent && (a == null || a.validate("change").catch((u) => Ot(u)));
5675
5675
  }), (u, d) => {
5676
5676
  var c;
@@ -5915,7 +5915,7 @@ const f0 = Ge({
5915
5915
  ...yr(n),
5916
5916
  changeEvent: u,
5917
5917
  name: d
5918
- })), Ee(() => n.modelValue, () => {
5918
+ })), Se(() => n.modelValue, () => {
5919
5919
  n.validateEvent && (r == null || r.validate("change").catch((c) => Ot(c)));
5920
5920
  }), (c, v) => (x(), Y("div", {
5921
5921
  id: b(i),
@@ -6058,16 +6058,16 @@ function w0(e, t) {
6058
6058
  const p = new RegExp(ju(h), "i");
6059
6059
  t.visible = p.test(r.value) || e.created;
6060
6060
  };
6061
- return Ee(() => r.value, () => {
6061
+ return Se(() => r.value, () => {
6062
6062
  !e.created && !n.props.remote && n.setSelected();
6063
- }), Ee(() => e.value, (h, p) => {
6063
+ }), Se(() => e.value, (h, p) => {
6064
6064
  const { remote: f, valueKey: m } = n.props;
6065
6065
  if (h !== p && (n.onOptionDestroy(p, u.proxy), n.onOptionCreate(u.proxy)), !e.created && !f) {
6066
6066
  if (m && It(h) && It(p) && h[m] === p[m])
6067
6067
  return;
6068
6068
  n.setSelected();
6069
6069
  }
6070
- }), Ee(() => o.disabled, () => {
6070
+ }), Se(() => o.disabled, () => {
6071
6071
  t.groupDisabled = o.disabled;
6072
6072
  }, { immediate: !0 }), {
6073
6073
  select: n,
@@ -6266,14 +6266,14 @@ const P0 = 11, A0 = (e, t) => {
6266
6266
  const ee = (V = e.placeholder) != null ? V : n("el.select.placeholder");
6267
6267
  return e.multiple || !ae.value ? ee : r.selectedLabel;
6268
6268
  }), wt = O(() => gl ? null : "mouseenter");
6269
- Ee(() => e.modelValue, (V, ee) => {
6269
+ Se(() => e.modelValue, (V, ee) => {
6270
6270
  e.multiple && e.filterable && !e.reserveKeyword && (r.inputValue = "", nt("")), Bt(), !vr(V, ee) && e.validateEvent && (F == null || F.validate("change").catch(($e) => Ot($e)));
6271
6271
  }, {
6272
6272
  flush: "post",
6273
6273
  deep: !0
6274
- }), Ee(() => L.value, (V) => {
6274
+ }), Se(() => L.value, (V) => {
6275
6275
  V ? nt(r.inputValue) : (r.inputValue = "", r.previousQuery = null, r.isBeforeHide = !0), t("visible-change", V);
6276
- }), Ee(() => r.options.entries(), () => {
6276
+ }), Se(() => r.options.entries(), () => {
6277
6277
  var V;
6278
6278
  if (!St)
6279
6279
  return;
@@ -6281,7 +6281,7 @@ const P0 = 11, A0 = (e, t) => {
6281
6281
  (!e.filterable && !e.defaultFirstOption && !Ln(e.modelValue) || !Array.from(ee).includes(document.activeElement)) && Bt(), e.defaultFirstOption && (e.filterable || e.remote) && Z.value && Zt();
6282
6282
  }, {
6283
6283
  flush: "post"
6284
- }), Ee(() => r.hoveringIndex, (V) => {
6284
+ }), Se(() => r.hoveringIndex, (V) => {
6285
6285
  ct(V) && V > -1 ? N.value = W.value[V] || {} : N.value = {}, W.value.forEach((ee) => {
6286
6286
  ee.hover = N.value === ee;
6287
6287
  });
@@ -6375,7 +6375,7 @@ const P0 = 11, A0 = (e, t) => {
6375
6375
  for (const $e of r.selected)
6376
6376
  $e.isDisabled && ee.push($e.value);
6377
6377
  t(Tt, ee), R(ee), r.hoveringIndex = -1, L.value = !1, t("clear"), Ae();
6378
- }, Se = (V) => {
6378
+ }, Ee = (V) => {
6379
6379
  var ee;
6380
6380
  if (e.multiple) {
6381
6381
  const $e = Qn((ee = e.modelValue) != null ? ee : []).slice(), pt = Fe($e, V);
@@ -6432,7 +6432,7 @@ const P0 = 11, A0 = (e, t) => {
6432
6432
  }, Ko = () => {
6433
6433
  $.value || (gl && (r.inputHovering = !0), r.menuVisibleOnFocus ? r.menuVisibleOnFocus = !1 : L.value = !L.value);
6434
6434
  }, no = () => {
6435
- L.value ? W.value[r.hoveringIndex] && Se(W.value[r.hoveringIndex]) : Ko();
6435
+ L.value ? W.value[r.hoveringIndex] && Ee(W.value[r.hoveringIndex]) : Ko();
6436
6436
  }, ir = (V) => It(V.value) ? bt(V.value, e.valueKey) : V.value, Uo = O(() => W.value.filter((V) => V.visible).every((V) => V.disabled)), Ha = O(() => e.multiple ? e.collapseTags ? r.selected.slice(0, e.maxCollapseTags) : r.selected : []), Ar = O(() => e.multiple ? e.collapseTags ? r.selected.slice(e.maxCollapseTags) : [] : []), Go = (V) => {
6437
6437
  if (!L.value) {
6438
6438
  L.value = !0;
@@ -6476,7 +6476,7 @@ const P0 = 11, A0 = (e, t) => {
6476
6476
  deletePrevTag: G,
6477
6477
  deleteTag: ue,
6478
6478
  deleteSelected: he,
6479
- handleOptionSelect: Se,
6479
+ handleOptionSelect: Ee,
6480
6480
  scrollToOption: Ye,
6481
6481
  hasModelValue: ae,
6482
6482
  shouldShowPlaceholder: Qe,
@@ -7342,7 +7342,7 @@ const _0 = _({
7342
7342
  const P = Math.abs(E.target.getBoundingClientRect()[d.value.direction] - E[d.value.client]), B = r.value[d.value.offset] / 2, A = P - B;
7343
7343
  u.traveled = Math.max(0, Math.min(A, f.value)), t("scroll", A, f.value);
7344
7344
  };
7345
- return Ee(() => e.scrollFrom, (E) => {
7345
+ return Se(() => e.scrollFrom, (E) => {
7346
7346
  u.isDragging || (u.traveled = Math.ceil(E * f.value));
7347
7347
  }), un(() => {
7348
7348
  g();
@@ -7992,7 +7992,7 @@ var mS = _({
7992
7992
  getValue: r,
7993
7993
  getDisabled: i
7994
7994
  } = ka(o.props), s = z([]), u = z(), d = O(() => e.data.length);
7995
- Ee(() => d.value, () => {
7995
+ Se(() => d.value, () => {
7996
7996
  var N, D;
7997
7997
  (D = (N = o.tooltipRef.value).updatePopper) == null || D.call(N);
7998
7998
  });
@@ -8302,7 +8302,7 @@ const yS = 11, SS = (e, t) => {
8302
8302
  removeNewOption: G,
8303
8303
  selectNewOption: ue,
8304
8304
  clearAllNewOption: he
8305
- } = bS(e, f), Se = () => {
8305
+ } = bS(e, f), Ee = () => {
8306
8306
  we.value || (f.menuVisibleOnFocus ? f.menuVisibleOnFocus = !1 : le.value = !le.value);
8307
8307
  }, Fe = () => {
8308
8308
  f.inputValue.length > 0 && !le.value && (le.value = !0), k(f.inputValue), me(f.inputValue);
@@ -8387,7 +8387,7 @@ const yS = 11, SS = (e, t) => {
8387
8387
  if (!["forward", "backward"].includes(j) || we.value || ve.length <= 0 || wt.value || D.value)
8388
8388
  return;
8389
8389
  if (!le.value)
8390
- return Se();
8390
+ return Ee();
8391
8391
  oe === void 0 && (oe = f.hoveringIndex);
8392
8392
  let Te = -1;
8393
8393
  j === "forward" ? (Te = oe + 1, Te >= ve.length && (Te = 0)) : j === "backward" && (Te = oe - 1, (Te < 0 || Te >= ve.length) && (Te = ve.length - 1));
@@ -8398,7 +8398,7 @@ const yS = 11, SS = (e, t) => {
8398
8398
  }, ee = () => {
8399
8399
  if (le.value)
8400
8400
  ~f.hoveringIndex && fe.value[f.hoveringIndex] && Uo(fe.value[f.hoveringIndex]);
8401
- else return Se();
8401
+ else return Ee();
8402
8402
  }, $e = (j) => {
8403
8403
  f.hoveringIndex = j ?? -1;
8404
8404
  }, pt = () => {
@@ -8451,20 +8451,20 @@ const yS = 11, SS = (e, t) => {
8451
8451
  f.selectedLabel = "", f.previousValue = void 0;
8452
8452
  he(), Bt();
8453
8453
  };
8454
- return Ee(le, (j) => {
8454
+ return Se(le, (j) => {
8455
8455
  j ? me("") : (f.inputValue = "", f.previousQuery = null, f.isBeforeHide = !0, k("")), t("visible-change", j);
8456
- }), Ee(() => e.modelValue, (j, oe) => {
8456
+ }), Se(() => e.modelValue, (j, oe) => {
8457
8457
  var ve;
8458
8458
  (!j || e.multiple && j.toString() !== f.previousValue || !e.multiple && Ue(j) !== Ue(f.previousValue)) && Mr(!0), !vr(j, oe) && e.validateEvent && ((ve = r == null ? void 0 : r.validate) == null || ve.call(r, "change").catch((Te) => Ot(Te)));
8459
8459
  }, {
8460
8460
  deep: !0
8461
- }), Ee(() => e.options, () => {
8461
+ }), Se(() => e.options, () => {
8462
8462
  const j = w.value;
8463
8463
  (!j || j && document.activeElement !== j) && Mr();
8464
8464
  }, {
8465
8465
  deep: !0,
8466
8466
  flush: "post"
8467
- }), Ee(() => fe.value, () => A.value && je(A.value.resetScrollTop)), fa(() => {
8467
+ }), Se(() => fe.value, () => A.value && je(A.value.resetScrollTop)), fa(() => {
8468
8468
  f.isBeforeHide || Ke();
8469
8469
  }), fa(() => {
8470
8470
  const { valueKey: j, options: oe } = e, ve = /* @__PURE__ */ new Map();
@@ -8541,7 +8541,7 @@ const yS = 11, SS = (e, t) => {
8541
8541
  updateTooltip: no,
8542
8542
  updateTagTooltip: ir,
8543
8543
  updateOptions: Ke,
8544
- toggleMenu: Se,
8544
+ toggleMenu: Ee,
8545
8545
  scrollTo: dn,
8546
8546
  onInput: At,
8547
8547
  onKeyboardNavigate: V,
@@ -12129,7 +12129,7 @@ const b1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12129
12129
  var Ue = wt(xe, Ae);
12130
12130
  return Ue && f(qe, Ae) && !(f(xe, W) && xe[W][Ae]) && (Ue.enumerable = !0), Ue;
12131
12131
  }
12132
- }, Se = function(ce) {
12132
+ }, Ee = function(ce) {
12133
12133
  var ge = Zt(S(ce)), xe = [];
12134
12134
  return Z(ge, function(Ae) {
12135
12135
  !f(qe, Ae) && !f(de, Ae) && xe.push(Ae);
@@ -12150,7 +12150,7 @@ const b1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12150
12150
  return ft(this).tag;
12151
12151
  }), C(Qe, "withoutSetter", function(me) {
12152
12152
  return Nt(fe(me), me);
12153
- }), H.f = ue, F.f = R, D.f = he, A.f = L.f = Se, N.f = Fe, we.f = function(me) {
12153
+ }), H.f = ue, F.f = R, D.f = he, A.f = L.f = Ee, N.f = Fe, we.f = function(me) {
12154
12154
  return Nt(le(me), me);
12155
12155
  }, c && (nt(Qe[Ce], "description", {
12156
12156
  configurable: !0,
@@ -12198,7 +12198,7 @@ const b1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12198
12198
  }), i({ target: "Object", stat: !0, forced: !v }, {
12199
12199
  // `Object.getOwnPropertyNames` method
12200
12200
  // https://tc39.github.io/ecma262/#sec-object.getownpropertynames
12201
- getOwnPropertyNames: Se,
12201
+ getOwnPropertyNames: Ee,
12202
12202
  // `Object.getOwnPropertySymbols` method
12203
12203
  // https://tc39.github.io/ecma262/#sec-object.getownpropertysymbols
12204
12204
  getOwnPropertySymbols: Fe
@@ -13036,13 +13036,13 @@ const b1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13036
13036
  if (!(typeof Symbol > "u" || !(Symbol.iterator in Object(M)))) {
13037
13037
  var k = [], G = !0, ue = !1, he = void 0;
13038
13038
  try {
13039
- for (var Se = M[Symbol.iterator](), Fe; !(G = (Fe = Se.next()).done) && (k.push(Fe.value), !(R && k.length === R)); G = !0)
13039
+ for (var Ee = M[Symbol.iterator](), Fe; !(G = (Fe = Ee.next()).done) && (k.push(Fe.value), !(R && k.length === R)); G = !0)
13040
13040
  ;
13041
13041
  } catch (Ye) {
13042
13042
  ue = !0, he = Ye;
13043
13043
  } finally {
13044
13044
  try {
13045
- !G && Se.return != null && Se.return();
13045
+ !G && Ee.return != null && Ee.return();
13046
13046
  } finally {
13047
13047
  if (ue) throw he;
13048
13048
  }
@@ -13139,15 +13139,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
13139
13139
  }
13140
13140
  function Z(M) {
13141
13141
  var R = M.$attrs, k = M.componentData, G = k === void 0 ? {} : k, ue = se(Object.entries(R).filter(function(he) {
13142
- var Se = y(he, 2), Fe = Se[0];
13143
- return Se[1], I(Fe);
13142
+ var Ee = y(he, 2), Fe = Ee[0];
13143
+ return Ee[1], I(Fe);
13144
13144
  }));
13145
13145
  return v(v({}, ue), G);
13146
13146
  }
13147
13147
  function W(M) {
13148
13148
  var R = M.$attrs, k = M.callBackBuilder, G = se(Oe(R));
13149
13149
  Object.entries(k).forEach(function(he) {
13150
- var Se = y(he, 2), Fe = Se[0], Ye = Se[1];
13150
+ var Ee = y(he, 2), Fe = Ee[0], Ye = Ee[1];
13151
13151
  de[Fe].forEach(function(me) {
13152
13152
  G["on".concat(me)] = Ye(me);
13153
13153
  });
@@ -13192,13 +13192,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
13192
13192
  return R.__draggable_context;
13193
13193
  }, Et = /* @__PURE__ */ function() {
13194
13194
  function M(R) {
13195
- var k = R.nodes, G = k.header, ue = k.default, he = k.footer, Se = R.root, Fe = R.realList;
13196
- Ce(this, M), this.defaultNodes = ue, this.children = [].concat(E(G), E(ue), E(he)), this.externalComponent = Se.externalComponent, this.rootTransition = Se.transition, this.tag = Se.tag, this.realList = Fe;
13195
+ var k = R.nodes, G = k.header, ue = k.default, he = k.footer, Ee = R.root, Fe = R.realList;
13196
+ Ce(this, M), this.defaultNodes = ue, this.children = [].concat(E(G), E(ue), E(he)), this.externalComponent = Ee.externalComponent, this.rootTransition = Ee.transition, this.tag = Ee.tag, this.realList = Fe;
13197
13197
  }
13198
13198
  return Je(M, [{
13199
13199
  key: "render",
13200
13200
  value: function(k, G) {
13201
- var ue = this.tag, he = this.children, Se = this._isRootComponent, Fe = Se ? {
13201
+ var ue = this.tag, he = this.children, Ee = this._isRootComponent, Fe = Ee ? {
13202
13202
  default: function() {
13203
13203
  return he;
13204
13204
  }
@@ -13224,7 +13224,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
13224
13224
  }, {
13225
13225
  key: "getVmIndexFromDomIndex",
13226
13226
  value: function(k, G) {
13227
- var ue = this.defaultNodes, he = ue.length, Se = G.children, Fe = Se.item(k);
13227
+ var ue = this.defaultNodes, he = ue.length, Ee = G.children, Fe = Ee.item(k);
13228
13228
  if (Fe === null)
13229
13229
  return he;
13230
13230
  var Ye = Qe(Fe);
@@ -13232,7 +13232,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
13232
13232
  return Ye.index;
13233
13233
  if (he === 0)
13234
13234
  return 0;
13235
- var me = ft(ue[0]), ce = E(Se).findIndex(function(ge) {
13235
+ var me = ft(ue[0]), ce = E(Ee).findIndex(function(ge) {
13236
13236
  return ge === me;
13237
13237
  });
13238
13238
  return k < ce ? 0 : he;
@@ -13251,7 +13251,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
13251
13251
  function Zt(M) {
13252
13252
  var R = M.$slots, k = M.realList, G = M.getKey, ue = k || [], he = ["header", "footer"].map(function(ge) {
13253
13253
  return nt(R, ge);
13254
- }), Se = y(he, 2), Fe = Se[0], Ye = Se[1], me = R.item;
13254
+ }), Ee = y(he, 2), Fe = Ee[0], Ye = Ee[1], me = R.item;
13255
13255
  if (!me)
13256
13256
  throw new Error("draggable element must have an item slot");
13257
13257
  var ce = ue.flatMap(function(ge, xe) {
@@ -13285,10 +13285,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
13285
13285
  $slots: R,
13286
13286
  realList: G,
13287
13287
  getKey: ue
13288
- }), Se = Bt(k);
13288
+ }), Ee = Bt(k);
13289
13289
  return new Et({
13290
13290
  nodes: he,
13291
- root: Se,
13291
+ root: Ee,
13292
13292
  realList: G
13293
13293
  });
13294
13294
  }
@@ -13360,11 +13360,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
13360
13360
  render: function() {
13361
13361
  try {
13362
13362
  this.error = !1;
13363
- var R = this.$slots, k = this.$attrs, G = this.tag, ue = this.componentData, he = this.realList, Se = this.getKey, Fe = qe({
13363
+ var R = this.$slots, k = this.$attrs, G = this.tag, ue = this.componentData, he = this.realList, Ee = this.getKey, Fe = qe({
13364
13364
  $slots: R,
13365
13365
  tag: G,
13366
13366
  realList: he,
13367
- getKey: Se
13367
+ getKey: Ee
13368
13368
  });
13369
13369
  this.componentStructure = Fe;
13370
13370
  var Ye = Z({
@@ -13401,8 +13401,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
13401
13401
  return jt.call(R, Ye);
13402
13402
  }
13403
13403
  }
13404
- }), Se = G.nodeType === 1 ? G : G.parentElement;
13405
- this._sortable = new B.a(Se, he), this.targetDomElement = Se, Se.__draggable_component__ = this;
13404
+ }), Ee = G.nodeType === 1 ? G : G.parentElement;
13405
+ this._sortable = new B.a(Ee, he), this.targetDomElement = Ee, Ee.__draggable_component__ = this;
13406
13406
  }
13407
13407
  },
13408
13408
  updated: function() {
@@ -13428,8 +13428,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
13428
13428
  handler: function(R) {
13429
13429
  var k = this._sortable;
13430
13430
  k && Oe(R).forEach(function(G) {
13431
- var ue = y(G, 2), he = ue[0], Se = ue[1];
13432
- k.option(he, Se);
13431
+ var ue = y(G, 2), he = ue[0], Ee = ue[1];
13432
+ k.option(he, Ee);
13433
13433
  });
13434
13434
  },
13435
13435
  deep: !0
@@ -13474,15 +13474,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
13474
13474
  return {
13475
13475
  component: ue
13476
13476
  };
13477
- var he = ue.realList, Se = {
13477
+ var he = ue.realList, Ee = {
13478
13478
  list: he,
13479
13479
  component: ue
13480
13480
  };
13481
13481
  if (k !== G && he) {
13482
13482
  var Fe = ue.getUnderlyingVm(G) || {};
13483
- return v(v({}, Fe), Se);
13483
+ return v(v({}, Fe), Ee);
13484
13484
  }
13485
- return Se;
13485
+ return Ee;
13486
13486
  },
13487
13487
  getVmIndexFromDomIndex: function(R) {
13488
13488
  return this.componentStructure.getVmIndexFromDomIndex(R, this.targetDomElement);
@@ -13538,15 +13538,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
13538
13538
  return 0;
13539
13539
  var G = E(k.to.children).filter(function(Fe) {
13540
13540
  return Fe.style.display !== "none";
13541
- }), ue = G.indexOf(k.related), he = R.component.getVmIndexFromDomIndex(ue), Se = G.indexOf(X) !== -1;
13542
- return Se || !k.willInsertAfter ? he : he + 1;
13541
+ }), ue = G.indexOf(k.related), he = R.component.getVmIndexFromDomIndex(ue), Ee = G.indexOf(X) !== -1;
13542
+ return Ee || !k.willInsertAfter ? he : he + 1;
13543
13543
  },
13544
13544
  onDragMove: function(R, k) {
13545
13545
  var G = this.move, ue = this.realList;
13546
13546
  if (!G || !ue)
13547
13547
  return !0;
13548
- var he = this.getRelatedContextFromMoveEvent(R), Se = this.computeFutureIndex(he, R), Fe = v(v({}, this.context), {}, {
13549
- futureIndex: Se
13548
+ var he = this.getRelatedContextFromMoveEvent(R), Ee = this.computeFutureIndex(he, R), Fe = v(v({}, this.context), {}, {
13549
+ futureIndex: Ee
13550
13550
  }), Ye = v(v({}, R), {}, {
13551
13551
  relatedContext: he,
13552
13552
  draggedContext: Fe
@@ -13689,7 +13689,7 @@ const E1 = /* @__PURE__ */ Hy(S1), w1 = _({
13689
13689
  });
13690
13690
  dt(() => {
13691
13691
  s.columnSet = l(), i("columnSetting", s.columnSet);
13692
- }), Ee(
13692
+ }), Se(
13693
13693
  () => s.columnSet,
13694
13694
  (c) => {
13695
13695
  i("columnSetting", c), localStorage.setItem(`ep-ui:EPTable.columnSet-${o.name}`, JSON.stringify(c));
@@ -14068,7 +14068,7 @@ const N1 = {
14068
14068
  query: $
14069
14069
  });
14070
14070
  }, B = (C, $) => i.isShowPagination && $.type == "index" ? $.indexMethod ? $.indexMethod(C, $) : C + 1 + (o.value[h.value.currentPage] - 1) * o.value[h.value.pageSize] : C, A = rr();
14071
- Ee(
14071
+ Se(
14072
14072
  () => i.data,
14073
14073
  (C) => {
14074
14074
  S.tableData = C;
@@ -14389,14 +14389,22 @@ const W1 = { class: "footer" }, Y1 = _({
14389
14389
  },
14390
14390
  modelModifiers: {}
14391
14391
  }),
14392
- emits: /* @__PURE__ */ en(["getRef"], ["update:expand", "update:modelValue"]),
14392
+ emits: /* @__PURE__ */ en(["getRef", "formChange"], ["update:expand", "update:modelValue"]),
14393
14393
  setup(e, { expose: t, emit: n }) {
14394
14394
  const o = e, a = o.inline && {
14395
14395
  display: "flex",
14396
14396
  flexWrap: "wrap",
14397
14397
  gap: o.inlineGap || "18px 8px"
14398
14398
  } || {}, l = O(() => o.labelWidth ? o.labelWidth : o.inline && !o.labelWidth ? void 0 : "150px"), r = yn(e, "expand"), { transformFormItems: i, getRules: s, getText: u, mouseover: d, disabled: c } = G1(o), v = z(null), h = yn(e, "modelValue"), p = O(() => s()), f = O(() => i()), m = n;
14399
- return t({ resetFields: () => v.value.resetFields(), validate: (S) => v.value.validate(S), clearValidate: () => v.value.clearValidate() }), dt(() => {
14399
+ return t({ resetFields: () => v.value.resetFields(), validate: (S) => v.value.validate(S), clearValidate: () => v.value.clearValidate() }), Se(
14400
+ h,
14401
+ () => {
14402
+ m("formChange");
14403
+ },
14404
+ {
14405
+ deep: !0
14406
+ }
14407
+ ), dt(() => {
14400
14408
  m("getRef", v.value, v);
14401
14409
  }), (S, w) => {
14402
14410
  const E = He("el-text"), P = He("el-tooltip"), B = He("el-form-item"), A = He("el-form"), L = He("EPButton"), N = He("el-icon");
@@ -14571,12 +14579,12 @@ const W1 = { class: "footer" }, Y1 = _({
14571
14579
  }),
14572
14580
  emits: /* @__PURE__ */ en(["close", "handleCancel", "handleSubmit"], ["update:modelValue", "update:params"]),
14573
14581
  setup(e, { emit: t }) {
14574
- const n = rr(), o = z(), a = ["footer", "bootom", "top", "content", "header"], r = {
14582
+ const n = rr(), o = z(), a = ["footer", "bootom", "top", "content", "header"], l = e, r = O(() => ({
14575
14583
  inline: !1,
14576
14584
  formItems: [],
14577
14585
  labelSuffix: ":",
14578
- ...e.formProps
14579
- }, i = t, s = yn(e, "modelValue"), u = yn(e, "params"), d = () => {
14586
+ ...l.formProps
14587
+ })), i = t, s = yn(e, "modelValue"), u = yn(e, "params"), d = () => {
14580
14588
  s.value = !1, i("handleCancel");
14581
14589
  }, c = async () => {
14582
14590
  await o.value.validate(), i("handleSubmit");
@@ -14625,7 +14633,7 @@ const W1 = { class: "footer" }, Y1 = _({
14625
14633
  Me(p, Be({
14626
14634
  ref_key: "formRef",
14627
14635
  ref: o
14628
- }, r, {
14636
+ }, r.value, {
14629
14637
  modelValue: u.value,
14630
14638
  "onUpdate:modelValue": h[0] || (h[0] = (y) => u.value = y)
14631
14639
  }), Bn({ _: 2 }, [
package/lib/ep-ui.js.gz CHANGED
Binary file
package/lib/ep-ui.umd.cjs CHANGED
@@ -37,4 +37,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
37
37
  * vue-router v4.4.5
38
38
  * (c) 2024 Eduardo San Martin Morote
39
39
  * @license MIT
40
- */var cd;(function(e){e.pop="pop",e.push="push"})(cd||(cd={}));var dd;(function(e){e.back="back",e.forward="forward",e.unknown=""})(dd||(dd={})),Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var fd;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(fd||(fd={})),Symbol(process.env.NODE_ENV!=="production"?"router view location matched":""),Symbol(process.env.NODE_ENV!=="production"?"router view depth":"");const pE=Symbol(process.env.NODE_ENV!=="production"?"router":""),vE=Symbol(process.env.NODE_ENV!=="production"?"route location":"");Symbol(process.env.NODE_ENV!=="production"?"router view location":"");function mE(){return t.inject(pE)}function hE(e){return t.inject(vE)}const gE={key:0,class:"extra"},bE={key:1,class:"header"},yE={class:"btn-wrapper"},SE={class:"input-content"},EE={key:1,style:{display:"inline"}},CE={key:3},wE={key:2},OE=t.defineComponent({name:"EPTable"}),TE=t.defineComponent({...OE,props:t.mergeModels({loading:{type:Boolean,default:!1},name:{},rowKey:{default:"id"},filterCheckList:{},isShowMenu:{type:Boolean,default:!0},refreshTitle:{default:"刷新"},data:{},rowClick:{},columns:{},align:{},isShowPagination:{type:Boolean,default:!0},sortable:{type:Boolean},pageProps:{default:()=>({})},menuConfig:{},extra:{default:0},isShowRefresh:{type:Boolean,default:!1}},{page:{default:{page:1,total:0,size:0}},pageModifiers:{},check:{default:[]},checkModifiers:{},sortParam:{default:{}},sortParamModifiers:{}}),emits:t.mergeModels(["sort","getData","rowSort","editSave","editCancel"],["update:page","update:check","update:sortParam"]),setup(e,{expose:n,emit:o}){const l=t.useModel(e,"page"),s=t.useModel(e,"check"),r=t.useModel(e,"sortParam"),a=t.ref(),i=e,c=o,{editRowKey:d,handleRowClick:u,handleRowEditSave:f,handleRowEditCancel:m,newPageProps:h,bindPageProps:v}=ES(i,c),p=hE(),b=mE(),g=t.ref(),y=t.ref(),{height:w}=SS(g,i.extra,y);let S=t.reactive({tableData:i.data,columnSet:[],copyTableData:[]});const C=t.ref(null),E=t.ref(null);t.ref({});const x=(O,D={name:22},J)=>{(p.path||J)&&b.push({path:`/${p.path}/${O[i.rowKey]}`||J,query:D})},V=(O,D)=>i.isShowPagination&&D.type=="index"?D.indexMethod?D.indexMethod(O,D):O+1+(l.value[h.value.currentPage]-1)*l.value[h.value.pageSize]:O,I=t.useSlots();t.watch(()=>i.data,O=>{S.tableData=O},{deep:!0});const R=O=>{const{filterCheckList:D}=i;return D?D(O):O.map(J=>J[i.rowKey])},k=O=>{s.value=R(O)},B=O=>{const{column:D,prop:J,order:ee}=O;J&&ee?r.value={[ee=="ascending"?"asc":"desc"]:J}:r.value={},c("sort",O),D.sortable=="custom"&&c("getData",r.value)},M=()=>{c("getData")},z=()=>{l.value[h.value.currentPage||"page"]=1,c("getData")};t.onUpdated(()=>{var O;(O=a.value)==null||O.doLayout()});const G=t.computed(()=>{if(S.columnSet.length===0)return i.columns;const O=i.columns.reduce((D,J)=>(D[J.prop]=J,D),{});return S.columnSet.filter(D=>!D.hidden).map(D=>O[D.prop])});return t.computed(()=>G.value.some(O=>O.children)),n({tableInstance:a}),(O,D)=>{const J=t.resolveComponent("el-button"),ee=t.resolveComponent("el-Button"),ne=t.resolveComponent("el-table-column"),Q=t.resolveComponent("el-table"),de=t.resolveComponent("el-pagination"),X=t.resolveDirective("loading");return t.openBlock(),t.createElementBlock("div",{class:"e-p-table",ref_key:"EPTableBox",ref:C},[t.createElementVNode("div",{class:"table-content",ref_key:"tableContent",ref:g},[t.createElementVNode("div",{ref_key:"extraRef",ref:y,class:"header-wapper"},[t.unref(I).extra?(t.openBlock(),t.createElementBlock("div",gE,[t.renderSlot(O.$slots,"extra",{},void 0,!0)])):t.createCommentVNode("",!0),t.unref(I).button||t.unref(I).input||O.isShowMenu?(t.openBlock(),t.createElementBlock("div",bE,[t.createElementVNode("div",yE,[t.renderSlot(O.$slots,"button",{},()=>[D[5]||(D[5]=t.createElementVNode("i",null,null,-1))],!0)]),t.createElementVNode("div",SE,[t.renderSlot(O.$slots,"input",{},void 0,!0),O.isShowRefresh?(t.openBlock(),t.createBlock(t.unref(Da),{key:0,icon:"Refresh",tip:"刷新",onClick:D[0]||(D[0]=T=>c("getData"))})):t.createCommentVNode("",!0),O.isShowMenu?(t.openBlock(),t.createBlock(rE,{key:1,name:O.name,menuConfig:O.menuConfig,columns:G.value,ref_key:"columnSetRef",ref:E,onColumnSetting:D[1]||(D[1]=T=>t.unref(S).columnSet=T)},null,8,["name","menuConfig","columns"])):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0)],512),t.withDirectives((t.openBlock(),t.createBlock(Q,t.mergeProps({"max-height":t.unref(w),ref_key:"tableInstance",ref:a,data:t.unref(S).tableData,"show-overflow-tooltip":"",onSelectionChange:k,onRowClick:O.rowClick,"row-key":O.rowKey,onSortChange:B},O.$attrs),{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(G.value,(T,_)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[T!=null&&T.hidden?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(ne,t.mergeProps({"show-overflow-tooltip":"",key:_+"i",sortable:(T==null?void 0:T.sortable)||O.sortable,index:K=>V(K,T),ref_for:!0},{align:O.align,...T,renderHeader:void 0}),t.createSlots({_:2},[T!=null&&T.renderHeader||T!=null&&T.headerSlot||T!=null&&T.headerRequired?{name:"header",fn:t.withCtx(()=>[T!=null&&T.renderHeader?(t.openBlock(),t.createBlock($o,{key:0,column:T,render:T==null?void 0:T.renderHeader,row:void 0,index:_},null,8,["column","render","index"])):t.createCommentVNode("",!0),T.headerRequired?(t.openBlock(),t.createElementBlock("div",EE,[D[6]||(D[6]=t.createElementVNode("span",{style:{color:"#f56c6c","font-size":"16px","margin-right":"3px"}},"*",-1)),t.createElementVNode("span",null,t.toDisplayString(T.label),1)])):t.createCommentVNode("",!0),T!=null&&T.headerSlot?t.renderSlot(O.$slots,T.headerSlot,{key:2,scope:T},void 0,!0):t.createCommentVNode("",!0)]),key:"0"}:void 0,!(T!=null&&T.type)&&(T==null?void 0:T.prop)!=="operation"&&!(T!=null&&T.formatter)?{name:"default",fn:t.withCtx(K=>[T!=null&&T.inputType&&t.unref(d)==K.row[O.rowKey]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[T!=null&&T.renderEdit?(t.openBlock(),t.createBlock($o,t.mergeProps({key:0,ref_for:!0},{...T},{render:T==null?void 0:T.renderEdit,modelValue:K.row[`${T.editKey||(T==null?void 0:T.prop)}EditValue`],"onUpdate:modelValue":H=>K.row[`${T.editKey||(T==null?void 0:T.prop)}EditValue`]=H}),null,16,["render","modelValue","onUpdate:modelValue"])):t.createCommentVNode("",!0),T.editSlotName?t.renderSlot(O.$slots,T.editSlotName,{key:1},void 0,!0):(t.openBlock(),t.createBlock(uE,t.mergeProps({key:2,ref_for:!0},T,{type:T.inputType,modelValue:K.row[`${T.editKey||(T==null?void 0:T.prop)}EditValue`],"onUpdate:modelValue":H=>K.row[`${T.editKey||(T==null?void 0:T.prop)}EditValue`]=H}),null,16,["type","modelValue","onUpdate:modelValue"]))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[T!=null&&T.render?(t.openBlock(),t.createBlock($o,{key:0,row:K.row,render:T==null?void 0:T.render,index:K.$index},null,8,["row","render","index"])):T!=null&&T.slotName?t.renderSlot(O.$slots,T==null?void 0:T.slotName,{key:1,scope:K},void 0,!0):T!=null&&T.isLink?(t.openBlock(),t.createBlock(J,{key:2,type:"primary",link:"",onClick:H=>x(K.row,T.query,T.path)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(K.row[T==null?void 0:T.prop]),1)]),_:2},1032,["onClick"])):(t.openBlock(),t.createElementBlock("div",CE,[t.createElementVNode("span",null,t.toDisplayString(K.row[T==null?void 0:T.prop]),1)]))],64))]),key:"1"}:void 0,(T==null?void 0:T.type)==="expand"?{name:"default",fn:t.withCtx(K=>[t.renderSlot(O.$slots,"expand",{scope:K},void 0,!0),T!=null&&T.render?(t.openBlock(),t.createBlock($o,{key:0,row:K.row,render:T==null?void 0:T.render,index:K.$index},null,8,["row","render","index"])):t.createCommentVNode("",!0)]),key:"2"}:void 0,(T==null?void 0:T.prop)=="operation"?{name:"default",fn:t.withCtx(K=>[t.unref(d)!==void 0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[K.row[O.rowKey]==t.unref(d)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createVNode(ee,{link:"",type:"primary",onClick:H=>t.unref(f)(K.row)},{default:t.withCtx(()=>D[7]||(D[7]=[t.createTextVNode("保存")])),_:2},1032,["onClick"]),t.createVNode(ee,{link:"",onClick:D[2]||(D[2]=H=>t.unref(m)())},{default:t.withCtx(()=>D[8]||(D[8]=[t.createTextVNode("取消")])),_:1})],64)):t.createCommentVNode("",!0)],64)):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(T.operation,(H,fe)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:fe},[H.isVisible&&H.isVisible(K.row,K.$index)?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(t.unref(Da),t.mergeProps({key:0,onClick:pe=>t.unref(u)(K.row,H,K),ref_for:!0},{type:"primary",link:!0,...H},{disabled:H.disabled||(H==null?void 0:H.isDisabled)&&H.isDisabled(K.row,K.$index)}),{default:t.withCtx(()=>[H.render?(t.openBlock(),t.createBlock($o,{key:0,column:H,row:K.row,render:H.render,index:K.$index},null,8,["column","row","render","index"])):t.createCommentVNode("",!0),H.slotName?t.renderSlot(O.$slots,H.slotName,{key:1,scope:K},void 0,!0):t.createCommentVNode("",!0),!H.render&&!H.slotName?(t.openBlock(),t.createElementBlock("span",wE,t.toDisplayString(H.label),1)):t.createCommentVNode("",!0)]),_:2},1040,["onClick","disabled"]))],64))),128))]),key:"3"}:void 0]),1040,["sortable","index"]))],64))),256)),t.renderSlot(O.$slots,"default",{},void 0,!0)]),_:3},16,["max-height","data","onRowClick","row-key"])),[[X,O.loading]])],512),O.isShowPagination?(t.openBlock(),t.createBlock(de,t.mergeProps({key:0,class:"el-pagination-com","current-page":l.value[t.unref(h).currentPage],"onUpdate:currentPage":D[3]||(D[3]=T=>l.value[t.unref(h).currentPage]=T),"page-size":l.value[t.unref(h).pageSize],"onUpdate:pageSize":D[4]||(D[4]=T=>l.value[t.unref(h).pageSize]=T),total:l.value.total,"page-sizes":t.unref(h).pageSizes,layout:t.unref(h).layout,background:t.unref(h).background,onCurrentChange:M,onSizeChange:z},{size:O.$attrs.size,...t.unref(v)}),{default:t.withCtx(()=>[t.renderSlot(O.$slots,"pagination",{},void 0,!0)]),_:3},16,["current-page","page-size","total","page-sizes","layout","background"])):t.createCommentVNode("",!0)],512)}}}),ud=ln(ss(TE,[["__scopeId","data-v-f64f8656"]])),pd=t.defineComponent({props:{render:Function,item:Object},render(e){return e.render(e==null?void 0:e.item)}});function xE(e){const n=t.ref(!0),o=i=>{i.target.offsetWidth<i.target.scrollWidth?n.value=!1:n.value=!0},l=(i,c)=>i.textValue||i.formatterText&&i.formatterText(c,i)||c[i.prop],s=i=>{const c=i.comp&&["el-input","ElInput","EPInput","e-p-input"].includes(i.comp)&&"请输入"||"请选择";return i.placeholder||`${c}${i.label||""}`};return{transformFormItems:()=>e.isShowDefaultPlaceholder?e.formItems.map(i=>{const c=s(i);return{...i,placeholder:c}}):e.formItems,getRules:()=>{if(e.rules)return e.rules;let i={};return e.formItems.filter(d=>!d.hidden).map(d=>{if(i[d.prop]=[],d.rules&&(i=Array.isArray(d.rules)?d.rules:[d.rules]),d.required){const u=s(d);i[d.prop].push({required:!0,trigger:d.trigger,message:u})}}),i},getText:l,mouseover:o,disabled:n}}const IE={class:"footer"},PE=t.defineComponent({name:"EPForm"}),BE=t.defineComponent({...PE,props:t.mergeModels({btnSlotName:{},formItems:{default:()=>[]},labelPosition:{default:"right"},labelWidth:{},isShowDefaultPlaceholder:{type:Boolean,default:!0},operatorList:{default:()=>[]},valueWidth:{default:"200px"},inline:{type:Boolean,default:!1},colNum:{default:1},inlineGap:{default:"18px 8px"}},{expand:{},expandModifiers:{},modelValue:{default:{}},modelModifiers:{}}),emits:t.mergeModels(["getRef"],["update:expand","update:modelValue"]),setup(e,{expose:n,emit:o}){const l=e,s=l.inline&&{display:"flex",flexWrap:"wrap",gap:l.inlineGap||"18px 8px"}||{},r=t.computed(()=>l.labelWidth?l.labelWidth:l.inline&&!l.labelWidth?void 0:"150px"),a=t.useModel(e,"expand"),{transformFormItems:i,getRules:c,getText:d,mouseover:u,disabled:f}=xE(l),m=t.ref(null),h=t.useModel(e,"modelValue"),v=t.computed(()=>c()),p=t.computed(()=>i()),b=o;return n({resetFields:()=>m.value.resetFields(),validate:S=>m.value.validate(S),clearValidate:()=>m.value.clearValidate()}),t.onMounted(()=>{b("getRef",m.value,m)}),(S,C)=>{const E=t.resolveComponent("el-text"),x=t.resolveComponent("el-tooltip"),V=t.resolveComponent("el-form-item"),I=t.resolveComponent("el-form"),R=t.resolveComponent("EPButton"),k=t.resolveComponent("el-icon");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["e-p-form-wrapper",{"inline-flex-form":S.inline}])},[t.createVNode(I,t.mergeProps({ref_key:"formRef",ref:m,model:h.value,rules:v.value,"label-position":S.labelPosition},S.$attrs,{inline:S.inline,"label-width":r.value,class:"e-p-form"}),{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(S.inline?"div":"el-row"),{class:t.normalizeClass({"inline-flex":S.inline}),style:t.normalizeStyle(t.unref(s))},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(p.value,(B,M)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(S.inline?"div":"el-col"),{span:24/(B.colNum||S.colNum)},{default:t.withCtx(()=>[B.hidden?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(V,t.mergeProps({key:M,ref_for:!0},B),t.createSlots({default:t.withCtx(()=>[B.custom?t.renderSlot(S.$slots,B.prop,{key:0,scope:h.value}):t.createCommentVNode("",!0),B.textShow?(t.openBlock(),t.createBlock(x,t.mergeProps({key:1,disabled:t.unref(f),content:t.unref(d)(B,h.value),placement:"top",ref_for:!0},B),{default:t.withCtx(()=>[t.createVNode(E,t.mergeProps({style:{width:B.width||S.valueWidth},onMouseover:t.unref(u),ref_for:!0},B),{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(d)(B,h.value)),1)]),_:2},1040,["style","onMouseover"])]),_:2},1040,["disabled","content"])):t.createCommentVNode("",!0),!B.custom&&!B.textShow?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(B.comp),t.mergeProps({key:2,modelValue:h.value[B.prop],"onUpdate:modelValue":z=>h.value[B.prop]=z,type:B.type,ref_for:!0},{clearable:!0,filterable:!0,...B},{style:{width:B.width||S.valueWidth}}),t.createSlots({_:2},[B.prepend?{name:"prepend",fn:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(B.prepend),1)]),key:"0"}:void 0,B.append?{name:"append",fn:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(B.append),1)]),key:"1"}:void 0]),1040,["modelValue","onUpdate:modelValue","type","style"])):t.createCommentVNode("",!0)]),_:2},[B.labelSlotName||B.labelRender?{name:"label",fn:t.withCtx(()=>[B.labelRender?(t.openBlock(),t.createBlock(pd,{key:0,render:B.labelRender,item:B},null,8,["render","item"])):t.createCommentVNode("",!0),B.labelSlotName?t.renderSlot(S.$slots,B.labelSlotName,{key:1,scope:B}):t.createCommentVNode("",!0)]),key:"0"}:void 0]),1040))]),_:2},1032,["span"]))),256))]),_:3},8,["class","style"]))]),_:3},16,["model","rules","label-position","inline","label-width"]),t.createElementVNode("div",IE,[S.btnSlotName?t.renderSlot(S.$slots,S.btnSlotName,{key:0}):t.createCommentVNode("",!0),S.operatorList&&S.operatorList.length>0?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(S.operatorList,(B,M)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:M},[B.render?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[B.isHideBtn?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(pd,{key:0,item:B,render:B.render},null,8,["item","render"]))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[B.isHideBtn?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(R,t.mergeProps({key:0,onClick:z=>B.fun(B),ref_for:!0},{type:"primary",...B.bind}),{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(B.label),1)]),_:2},1040,["onClick"]))],64))],64))),128)):t.createCommentVNode("",!0),a.value!==void 0?(t.openBlock(),t.createBlock(R,{key:2,type:"primary",link:"",onClick:C[0]||(C[0]=B=>a.value=!a.value)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(a.value?"收起":"展开")+" ",1),t.createVNode(k,null,{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(a.value?"ArrowUp":"ArrowDown")))]),_:1})]),_:1})):t.createCommentVNode("",!0)])],2)}}}),vd=ln(BE),NE={class:"dialog-footer"},DE=t.defineComponent({name:"EPDialog"}),kE=t.defineComponent({...DE,props:t.mergeModels({title:{default:"标题"},cancelText:{default:"取 消"},submitText:{default:"确 定"},hiddenCancelBtn:{type:Boolean,default:!1},hiddensubmitBtn:{type:Boolean,default:!1},formProps:{default:{}}},{modelValue:{default:!1},modelModifiers:{},params:{},paramsModifiers:{}}),emits:t.mergeModels(["close","handleCancel","handleSubmit"],["update:modelValue","update:params"]),setup(e,{emit:n}){const o=t.useSlots(),l=t.ref(),s=["footer","bootom","top","content","header"],a={inline:!1,formItems:[],labelSuffix:":",...e.formProps},i=n,c=t.useModel(e,"modelValue"),d=t.useModel(e,"params"),u=()=>{c.value=!1,i("handleCancel")},f=async()=>{await l.value.validate(),i("handleSubmit")};return(m,h)=>{const v=t.resolveComponent("EPForm"),p=t.resolveComponent("el-Scollbar"),b=t.resolveComponent("el-button"),g=t.resolveComponent("el-dialog");return t.openBlock(),t.createBlock(g,t.mergeProps({modelValue:c.value,"onUpdate:modelValue":h[2]||(h[2]=y=>c.value=y),title:m.title,width:"600","before-close":u},m.$attrs),{header:t.withCtx(y=>[t.renderSlot(m.$slots,"header",{scope:y})]),footer:t.withCtx(()=>[t.renderSlot(m.$slots,"footer",{},()=>[t.createElementVNode("div",NE,[m.hiddenCancelBtn?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(b,{key:0,onClick:h[1]||(h[1]=y=>i("handleCancel"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(m.cancelText),1)]),_:1})),m.hiddensubmitBtn?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(b,{key:1,onClick:f,type:"primary"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(m.submitText),1)]),_:1}))])])]),default:t.withCtx(()=>[t.createVNode(p,{style:{display:"flex","flex-direction":"column"}},{default:t.withCtx(()=>[t.renderSlot(m.$slots,"top"),t.createVNode(v,t.mergeProps({ref_key:"formRef",ref:l},a,{modelValue:d.value,"onUpdate:modelValue":h[0]||(h[0]=y=>d.value=y)}),t.createSlots({_:2},[t.renderList(Object.keys(t.unref(o)),y=>({name:y,fn:t.withCtx(()=>[s.includes(y)?t.createCommentVNode("",!0):t.renderSlot(m.$slots,y,{key:0})])}))]),1040,["modelValue"]),t.renderSlot(m.$slots,"content"),t.renderSlot(m.$slots,"bootom")]),_:3})]),_:3},16,["modelValue","title"])}}}),md=ln(kE),RE=Object.freeze(Object.defineProperty({__proto__:null,getParams:e=>e.reduce((n,o)=>(o!=null&&o.hidden||(n[o.prop]=o.defaultValue||""),n),{})},Symbol.toStringTag,{value:"Module"})),hd={EPSelect:rs,EPInput:is,EPCheckbox:zc,EPTable:ud,EPForm:vd,EPButton:Da,EPDatePicker:Ps,EPRadio:Bs,EPDialog:md},ME=e=>{for(const n in hd)e.component(n,hd[n])},gd=(e,n)=>{ME(e)};typeof window<"u"&&window.Vue&&gd(window.Vue);const AE={install:gd};Me.EPButton=Da,Me.EPCheckbox=zc,Me.EPDatePicker=Ps,Me.EPDialog=md,Me.EPForm=vd,Me.EPInput=is,Me.EPRadio=Bs,Me.EPSelect=rs,Me.EPTable=ud,Me.default=AE,Me.tools=RE,Object.defineProperties(Me,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
40
+ */var cd;(function(e){e.pop="pop",e.push="push"})(cd||(cd={}));var dd;(function(e){e.back="back",e.forward="forward",e.unknown=""})(dd||(dd={})),Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var fd;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(fd||(fd={})),Symbol(process.env.NODE_ENV!=="production"?"router view location matched":""),Symbol(process.env.NODE_ENV!=="production"?"router view depth":"");const pE=Symbol(process.env.NODE_ENV!=="production"?"router":""),vE=Symbol(process.env.NODE_ENV!=="production"?"route location":"");Symbol(process.env.NODE_ENV!=="production"?"router view location":"");function mE(){return t.inject(pE)}function hE(e){return t.inject(vE)}const gE={key:0,class:"extra"},bE={key:1,class:"header"},yE={class:"btn-wrapper"},SE={class:"input-content"},EE={key:1,style:{display:"inline"}},CE={key:3},wE={key:2},OE=t.defineComponent({name:"EPTable"}),TE=t.defineComponent({...OE,props:t.mergeModels({loading:{type:Boolean,default:!1},name:{},rowKey:{default:"id"},filterCheckList:{},isShowMenu:{type:Boolean,default:!0},refreshTitle:{default:"刷新"},data:{},rowClick:{},columns:{},align:{},isShowPagination:{type:Boolean,default:!0},sortable:{type:Boolean},pageProps:{default:()=>({})},menuConfig:{},extra:{default:0},isShowRefresh:{type:Boolean,default:!1}},{page:{default:{page:1,total:0,size:0}},pageModifiers:{},check:{default:[]},checkModifiers:{},sortParam:{default:{}},sortParamModifiers:{}}),emits:t.mergeModels(["sort","getData","rowSort","editSave","editCancel"],["update:page","update:check","update:sortParam"]),setup(e,{expose:n,emit:o}){const l=t.useModel(e,"page"),s=t.useModel(e,"check"),r=t.useModel(e,"sortParam"),a=t.ref(),i=e,c=o,{editRowKey:d,handleRowClick:u,handleRowEditSave:f,handleRowEditCancel:m,newPageProps:h,bindPageProps:v}=ES(i,c),p=hE(),b=mE(),g=t.ref(),y=t.ref(),{height:w}=SS(g,i.extra,y);let S=t.reactive({tableData:i.data,columnSet:[],copyTableData:[]});const C=t.ref(null),E=t.ref(null);t.ref({});const x=(O,D={name:22},J)=>{(p.path||J)&&b.push({path:`/${p.path}/${O[i.rowKey]}`||J,query:D})},V=(O,D)=>i.isShowPagination&&D.type=="index"?D.indexMethod?D.indexMethod(O,D):O+1+(l.value[h.value.currentPage]-1)*l.value[h.value.pageSize]:O,I=t.useSlots();t.watch(()=>i.data,O=>{S.tableData=O},{deep:!0});const R=O=>{const{filterCheckList:D}=i;return D?D(O):O.map(J=>J[i.rowKey])},k=O=>{s.value=R(O)},B=O=>{const{column:D,prop:J,order:ee}=O;J&&ee?r.value={[ee=="ascending"?"asc":"desc"]:J}:r.value={},c("sort",O),D.sortable=="custom"&&c("getData",r.value)},M=()=>{c("getData")},z=()=>{l.value[h.value.currentPage||"page"]=1,c("getData")};t.onUpdated(()=>{var O;(O=a.value)==null||O.doLayout()});const G=t.computed(()=>{if(S.columnSet.length===0)return i.columns;const O=i.columns.reduce((D,J)=>(D[J.prop]=J,D),{});return S.columnSet.filter(D=>!D.hidden).map(D=>O[D.prop])});return t.computed(()=>G.value.some(O=>O.children)),n({tableInstance:a}),(O,D)=>{const J=t.resolveComponent("el-button"),ee=t.resolveComponent("el-Button"),ne=t.resolveComponent("el-table-column"),Q=t.resolveComponent("el-table"),de=t.resolveComponent("el-pagination"),X=t.resolveDirective("loading");return t.openBlock(),t.createElementBlock("div",{class:"e-p-table",ref_key:"EPTableBox",ref:C},[t.createElementVNode("div",{class:"table-content",ref_key:"tableContent",ref:g},[t.createElementVNode("div",{ref_key:"extraRef",ref:y,class:"header-wapper"},[t.unref(I).extra?(t.openBlock(),t.createElementBlock("div",gE,[t.renderSlot(O.$slots,"extra",{},void 0,!0)])):t.createCommentVNode("",!0),t.unref(I).button||t.unref(I).input||O.isShowMenu?(t.openBlock(),t.createElementBlock("div",bE,[t.createElementVNode("div",yE,[t.renderSlot(O.$slots,"button",{},()=>[D[5]||(D[5]=t.createElementVNode("i",null,null,-1))],!0)]),t.createElementVNode("div",SE,[t.renderSlot(O.$slots,"input",{},void 0,!0),O.isShowRefresh?(t.openBlock(),t.createBlock(t.unref(Da),{key:0,icon:"Refresh",tip:"刷新",onClick:D[0]||(D[0]=T=>c("getData"))})):t.createCommentVNode("",!0),O.isShowMenu?(t.openBlock(),t.createBlock(rE,{key:1,name:O.name,menuConfig:O.menuConfig,columns:G.value,ref_key:"columnSetRef",ref:E,onColumnSetting:D[1]||(D[1]=T=>t.unref(S).columnSet=T)},null,8,["name","menuConfig","columns"])):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0)],512),t.withDirectives((t.openBlock(),t.createBlock(Q,t.mergeProps({"max-height":t.unref(w),ref_key:"tableInstance",ref:a,data:t.unref(S).tableData,"show-overflow-tooltip":"",onSelectionChange:k,onRowClick:O.rowClick,"row-key":O.rowKey,onSortChange:B},O.$attrs),{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(G.value,(T,_)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[T!=null&&T.hidden?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(ne,t.mergeProps({"show-overflow-tooltip":"",key:_+"i",sortable:(T==null?void 0:T.sortable)||O.sortable,index:K=>V(K,T),ref_for:!0},{align:O.align,...T,renderHeader:void 0}),t.createSlots({_:2},[T!=null&&T.renderHeader||T!=null&&T.headerSlot||T!=null&&T.headerRequired?{name:"header",fn:t.withCtx(()=>[T!=null&&T.renderHeader?(t.openBlock(),t.createBlock($o,{key:0,column:T,render:T==null?void 0:T.renderHeader,row:void 0,index:_},null,8,["column","render","index"])):t.createCommentVNode("",!0),T.headerRequired?(t.openBlock(),t.createElementBlock("div",EE,[D[6]||(D[6]=t.createElementVNode("span",{style:{color:"#f56c6c","font-size":"16px","margin-right":"3px"}},"*",-1)),t.createElementVNode("span",null,t.toDisplayString(T.label),1)])):t.createCommentVNode("",!0),T!=null&&T.headerSlot?t.renderSlot(O.$slots,T.headerSlot,{key:2,scope:T},void 0,!0):t.createCommentVNode("",!0)]),key:"0"}:void 0,!(T!=null&&T.type)&&(T==null?void 0:T.prop)!=="operation"&&!(T!=null&&T.formatter)?{name:"default",fn:t.withCtx(K=>[T!=null&&T.inputType&&t.unref(d)==K.row[O.rowKey]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[T!=null&&T.renderEdit?(t.openBlock(),t.createBlock($o,t.mergeProps({key:0,ref_for:!0},{...T},{render:T==null?void 0:T.renderEdit,modelValue:K.row[`${T.editKey||(T==null?void 0:T.prop)}EditValue`],"onUpdate:modelValue":H=>K.row[`${T.editKey||(T==null?void 0:T.prop)}EditValue`]=H}),null,16,["render","modelValue","onUpdate:modelValue"])):t.createCommentVNode("",!0),T.editSlotName?t.renderSlot(O.$slots,T.editSlotName,{key:1},void 0,!0):(t.openBlock(),t.createBlock(uE,t.mergeProps({key:2,ref_for:!0},T,{type:T.inputType,modelValue:K.row[`${T.editKey||(T==null?void 0:T.prop)}EditValue`],"onUpdate:modelValue":H=>K.row[`${T.editKey||(T==null?void 0:T.prop)}EditValue`]=H}),null,16,["type","modelValue","onUpdate:modelValue"]))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[T!=null&&T.render?(t.openBlock(),t.createBlock($o,{key:0,row:K.row,render:T==null?void 0:T.render,index:K.$index},null,8,["row","render","index"])):T!=null&&T.slotName?t.renderSlot(O.$slots,T==null?void 0:T.slotName,{key:1,scope:K},void 0,!0):T!=null&&T.isLink?(t.openBlock(),t.createBlock(J,{key:2,type:"primary",link:"",onClick:H=>x(K.row,T.query,T.path)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(K.row[T==null?void 0:T.prop]),1)]),_:2},1032,["onClick"])):(t.openBlock(),t.createElementBlock("div",CE,[t.createElementVNode("span",null,t.toDisplayString(K.row[T==null?void 0:T.prop]),1)]))],64))]),key:"1"}:void 0,(T==null?void 0:T.type)==="expand"?{name:"default",fn:t.withCtx(K=>[t.renderSlot(O.$slots,"expand",{scope:K},void 0,!0),T!=null&&T.render?(t.openBlock(),t.createBlock($o,{key:0,row:K.row,render:T==null?void 0:T.render,index:K.$index},null,8,["row","render","index"])):t.createCommentVNode("",!0)]),key:"2"}:void 0,(T==null?void 0:T.prop)=="operation"?{name:"default",fn:t.withCtx(K=>[t.unref(d)!==void 0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[K.row[O.rowKey]==t.unref(d)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createVNode(ee,{link:"",type:"primary",onClick:H=>t.unref(f)(K.row)},{default:t.withCtx(()=>D[7]||(D[7]=[t.createTextVNode("保存")])),_:2},1032,["onClick"]),t.createVNode(ee,{link:"",onClick:D[2]||(D[2]=H=>t.unref(m)())},{default:t.withCtx(()=>D[8]||(D[8]=[t.createTextVNode("取消")])),_:1})],64)):t.createCommentVNode("",!0)],64)):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(T.operation,(H,fe)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:fe},[H.isVisible&&H.isVisible(K.row,K.$index)?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(t.unref(Da),t.mergeProps({key:0,onClick:pe=>t.unref(u)(K.row,H,K),ref_for:!0},{type:"primary",link:!0,...H},{disabled:H.disabled||(H==null?void 0:H.isDisabled)&&H.isDisabled(K.row,K.$index)}),{default:t.withCtx(()=>[H.render?(t.openBlock(),t.createBlock($o,{key:0,column:H,row:K.row,render:H.render,index:K.$index},null,8,["column","row","render","index"])):t.createCommentVNode("",!0),H.slotName?t.renderSlot(O.$slots,H.slotName,{key:1,scope:K},void 0,!0):t.createCommentVNode("",!0),!H.render&&!H.slotName?(t.openBlock(),t.createElementBlock("span",wE,t.toDisplayString(H.label),1)):t.createCommentVNode("",!0)]),_:2},1040,["onClick","disabled"]))],64))),128))]),key:"3"}:void 0]),1040,["sortable","index"]))],64))),256)),t.renderSlot(O.$slots,"default",{},void 0,!0)]),_:3},16,["max-height","data","onRowClick","row-key"])),[[X,O.loading]])],512),O.isShowPagination?(t.openBlock(),t.createBlock(de,t.mergeProps({key:0,class:"el-pagination-com","current-page":l.value[t.unref(h).currentPage],"onUpdate:currentPage":D[3]||(D[3]=T=>l.value[t.unref(h).currentPage]=T),"page-size":l.value[t.unref(h).pageSize],"onUpdate:pageSize":D[4]||(D[4]=T=>l.value[t.unref(h).pageSize]=T),total:l.value.total,"page-sizes":t.unref(h).pageSizes,layout:t.unref(h).layout,background:t.unref(h).background,onCurrentChange:M,onSizeChange:z},{size:O.$attrs.size,...t.unref(v)}),{default:t.withCtx(()=>[t.renderSlot(O.$slots,"pagination",{},void 0,!0)]),_:3},16,["current-page","page-size","total","page-sizes","layout","background"])):t.createCommentVNode("",!0)],512)}}}),ud=ln(ss(TE,[["__scopeId","data-v-f64f8656"]])),pd=t.defineComponent({props:{render:Function,item:Object},render(e){return e.render(e==null?void 0:e.item)}});function xE(e){const n=t.ref(!0),o=i=>{i.target.offsetWidth<i.target.scrollWidth?n.value=!1:n.value=!0},l=(i,c)=>i.textValue||i.formatterText&&i.formatterText(c,i)||c[i.prop],s=i=>{const c=i.comp&&["el-input","ElInput","EPInput","e-p-input"].includes(i.comp)&&"请输入"||"请选择";return i.placeholder||`${c}${i.label||""}`};return{transformFormItems:()=>e.isShowDefaultPlaceholder?e.formItems.map(i=>{const c=s(i);return{...i,placeholder:c}}):e.formItems,getRules:()=>{if(e.rules)return e.rules;let i={};return e.formItems.filter(d=>!d.hidden).map(d=>{if(i[d.prop]=[],d.rules&&(i=Array.isArray(d.rules)?d.rules:[d.rules]),d.required){const u=s(d);i[d.prop].push({required:!0,trigger:d.trigger,message:u})}}),i},getText:l,mouseover:o,disabled:n}}const IE={class:"footer"},PE=t.defineComponent({name:"EPForm"}),BE=t.defineComponent({...PE,props:t.mergeModels({btnSlotName:{},formItems:{default:()=>[]},labelPosition:{default:"right"},labelWidth:{},isShowDefaultPlaceholder:{type:Boolean,default:!0},operatorList:{default:()=>[]},valueWidth:{default:"200px"},inline:{type:Boolean,default:!1},colNum:{default:1},inlineGap:{default:"18px 8px"}},{expand:{},expandModifiers:{},modelValue:{default:{}},modelModifiers:{}}),emits:t.mergeModels(["getRef","formChange"],["update:expand","update:modelValue"]),setup(e,{expose:n,emit:o}){const l=e,s=l.inline&&{display:"flex",flexWrap:"wrap",gap:l.inlineGap||"18px 8px"}||{},r=t.computed(()=>l.labelWidth?l.labelWidth:l.inline&&!l.labelWidth?void 0:"150px"),a=t.useModel(e,"expand"),{transformFormItems:i,getRules:c,getText:d,mouseover:u,disabled:f}=xE(l),m=t.ref(null),h=t.useModel(e,"modelValue"),v=t.computed(()=>c()),p=t.computed(()=>i()),b=o;return n({resetFields:()=>m.value.resetFields(),validate:S=>m.value.validate(S),clearValidate:()=>m.value.clearValidate()}),t.watch(h,()=>{b("formChange")},{deep:!0}),t.onMounted(()=>{b("getRef",m.value,m)}),(S,C)=>{const E=t.resolveComponent("el-text"),x=t.resolveComponent("el-tooltip"),V=t.resolveComponent("el-form-item"),I=t.resolveComponent("el-form"),R=t.resolveComponent("EPButton"),k=t.resolveComponent("el-icon");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["e-p-form-wrapper",{"inline-flex-form":S.inline}])},[t.createVNode(I,t.mergeProps({ref_key:"formRef",ref:m,model:h.value,rules:v.value,"label-position":S.labelPosition},S.$attrs,{inline:S.inline,"label-width":r.value,class:"e-p-form"}),{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(S.inline?"div":"el-row"),{class:t.normalizeClass({"inline-flex":S.inline}),style:t.normalizeStyle(t.unref(s))},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(p.value,(B,M)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(S.inline?"div":"el-col"),{span:24/(B.colNum||S.colNum)},{default:t.withCtx(()=>[B.hidden?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(V,t.mergeProps({key:M,ref_for:!0},B),t.createSlots({default:t.withCtx(()=>[B.custom?t.renderSlot(S.$slots,B.prop,{key:0,scope:h.value}):t.createCommentVNode("",!0),B.textShow?(t.openBlock(),t.createBlock(x,t.mergeProps({key:1,disabled:t.unref(f),content:t.unref(d)(B,h.value),placement:"top",ref_for:!0},B),{default:t.withCtx(()=>[t.createVNode(E,t.mergeProps({style:{width:B.width||S.valueWidth},onMouseover:t.unref(u),ref_for:!0},B),{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(d)(B,h.value)),1)]),_:2},1040,["style","onMouseover"])]),_:2},1040,["disabled","content"])):t.createCommentVNode("",!0),!B.custom&&!B.textShow?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(B.comp),t.mergeProps({key:2,modelValue:h.value[B.prop],"onUpdate:modelValue":z=>h.value[B.prop]=z,type:B.type,ref_for:!0},{clearable:!0,filterable:!0,...B},{style:{width:B.width||S.valueWidth}}),t.createSlots({_:2},[B.prepend?{name:"prepend",fn:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(B.prepend),1)]),key:"0"}:void 0,B.append?{name:"append",fn:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(B.append),1)]),key:"1"}:void 0]),1040,["modelValue","onUpdate:modelValue","type","style"])):t.createCommentVNode("",!0)]),_:2},[B.labelSlotName||B.labelRender?{name:"label",fn:t.withCtx(()=>[B.labelRender?(t.openBlock(),t.createBlock(pd,{key:0,render:B.labelRender,item:B},null,8,["render","item"])):t.createCommentVNode("",!0),B.labelSlotName?t.renderSlot(S.$slots,B.labelSlotName,{key:1,scope:B}):t.createCommentVNode("",!0)]),key:"0"}:void 0]),1040))]),_:2},1032,["span"]))),256))]),_:3},8,["class","style"]))]),_:3},16,["model","rules","label-position","inline","label-width"]),t.createElementVNode("div",IE,[S.btnSlotName?t.renderSlot(S.$slots,S.btnSlotName,{key:0}):t.createCommentVNode("",!0),S.operatorList&&S.operatorList.length>0?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(S.operatorList,(B,M)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:M},[B.render?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[B.isHideBtn?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(pd,{key:0,item:B,render:B.render},null,8,["item","render"]))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[B.isHideBtn?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(R,t.mergeProps({key:0,onClick:z=>B.fun(B),ref_for:!0},{type:"primary",...B.bind}),{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(B.label),1)]),_:2},1040,["onClick"]))],64))],64))),128)):t.createCommentVNode("",!0),a.value!==void 0?(t.openBlock(),t.createBlock(R,{key:2,type:"primary",link:"",onClick:C[0]||(C[0]=B=>a.value=!a.value)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(a.value?"收起":"展开")+" ",1),t.createVNode(k,null,{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(a.value?"ArrowUp":"ArrowDown")))]),_:1})]),_:1})):t.createCommentVNode("",!0)])],2)}}}),vd=ln(BE),NE={class:"dialog-footer"},DE=t.defineComponent({name:"EPDialog"}),kE=t.defineComponent({...DE,props:t.mergeModels({title:{default:"标题"},cancelText:{default:"取 消"},submitText:{default:"确 定"},hiddenCancelBtn:{type:Boolean,default:!1},hiddensubmitBtn:{type:Boolean,default:!1},formProps:{default:{}}},{modelValue:{default:!1},modelModifiers:{},params:{},paramsModifiers:{}}),emits:t.mergeModels(["close","handleCancel","handleSubmit"],["update:modelValue","update:params"]),setup(e,{emit:n}){const o=t.useSlots(),l=t.ref(),s=["footer","bootom","top","content","header"],r=e,a=t.computed(()=>({inline:!1,formItems:[],labelSuffix:":",...r.formProps})),i=n,c=t.useModel(e,"modelValue"),d=t.useModel(e,"params"),u=()=>{c.value=!1,i("handleCancel")},f=async()=>{await l.value.validate(),i("handleSubmit")};return(m,h)=>{const v=t.resolveComponent("EPForm"),p=t.resolveComponent("el-Scollbar"),b=t.resolveComponent("el-button"),g=t.resolveComponent("el-dialog");return t.openBlock(),t.createBlock(g,t.mergeProps({modelValue:c.value,"onUpdate:modelValue":h[2]||(h[2]=y=>c.value=y),title:m.title,width:"600","before-close":u},m.$attrs),{header:t.withCtx(y=>[t.renderSlot(m.$slots,"header",{scope:y})]),footer:t.withCtx(()=>[t.renderSlot(m.$slots,"footer",{},()=>[t.createElementVNode("div",NE,[m.hiddenCancelBtn?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(b,{key:0,onClick:h[1]||(h[1]=y=>i("handleCancel"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(m.cancelText),1)]),_:1})),m.hiddensubmitBtn?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(b,{key:1,onClick:f,type:"primary"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(m.submitText),1)]),_:1}))])])]),default:t.withCtx(()=>[t.createVNode(p,{style:{display:"flex","flex-direction":"column"}},{default:t.withCtx(()=>[t.renderSlot(m.$slots,"top"),t.createVNode(v,t.mergeProps({ref_key:"formRef",ref:l},a.value,{modelValue:d.value,"onUpdate:modelValue":h[0]||(h[0]=y=>d.value=y)}),t.createSlots({_:2},[t.renderList(Object.keys(t.unref(o)),y=>({name:y,fn:t.withCtx(()=>[s.includes(y)?t.createCommentVNode("",!0):t.renderSlot(m.$slots,y,{key:0})])}))]),1040,["modelValue"]),t.renderSlot(m.$slots,"content"),t.renderSlot(m.$slots,"bootom")]),_:3})]),_:3},16,["modelValue","title"])}}}),md=ln(kE),RE=Object.freeze(Object.defineProperty({__proto__:null,getParams:e=>e.reduce((n,o)=>(o!=null&&o.hidden||(n[o.prop]=o.defaultValue||""),n),{})},Symbol.toStringTag,{value:"Module"})),hd={EPSelect:rs,EPInput:is,EPCheckbox:zc,EPTable:ud,EPForm:vd,EPButton:Da,EPDatePicker:Ps,EPRadio:Bs,EPDialog:md},ME=e=>{for(const n in hd)e.component(n,hd[n])},gd=(e,n)=>{ME(e)};typeof window<"u"&&window.Vue&&gd(window.Vue);const AE={install:gd};Me.EPButton=Da,Me.EPCheckbox=zc,Me.EPDatePicker=Ps,Me.EPDialog=md,Me.EPForm=vd,Me.EPInput=is,Me.EPRadio=Bs,Me.EPSelect=rs,Me.EPTable=ud,Me.default=AE,Me.tools=RE,Object.defineProperties(Me,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -43,12 +43,14 @@ declare const EPForm: ({
43
43
  };
44
44
  }>> & Readonly<{
45
45
  onGetRef?: ((...args: any[]) => any) | undefined;
46
+ onFormChange?: ((...args: any[]) => any) | undefined;
46
47
  }>, {
47
48
  resetFields: () => any;
48
49
  validate: (fun: any) => any;
49
50
  clearValidate: () => any;
50
51
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
51
52
  getRef: (...args: any[]) => void;
53
+ formChange: (...args: any[]) => void;
52
54
  }, import('vue').PublicProps, {
53
55
  formItems: [] | Record<string, any>[];
54
56
  labelPosition: "top" | "right" | "left";
@@ -109,6 +111,7 @@ declare const EPForm: ({
109
111
  };
110
112
  }>> & Readonly<{
111
113
  onGetRef?: ((...args: any[]) => any) | undefined;
114
+ onFormChange?: ((...args: any[]) => any) | undefined;
112
115
  }>, {
113
116
  resetFields: () => any;
114
117
  validate: (fun: any) => any;
@@ -170,12 +173,14 @@ declare const EPForm: ({
170
173
  };
171
174
  }>> & Readonly<{
172
175
  onGetRef?: ((...args: any[]) => any) | undefined;
176
+ onFormChange?: ((...args: any[]) => any) | undefined;
173
177
  }>, {
174
178
  resetFields: () => any;
175
179
  validate: (fun: any) => any;
176
180
  clearValidate: () => any;
177
181
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
178
182
  getRef: (...args: any[]) => void;
183
+ formChange: (...args: any[]) => void;
179
184
  }, string, {
180
185
  formItems: [] | Record<string, any>[];
181
186
  labelPosition: "top" | "right" | "left";
@@ -46,6 +46,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<im
46
46
  clearValidate: () => any;
47
47
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
48
48
  getRef: (...args: any[]) => void;
49
+ formChange: (...args: any[]) => void;
49
50
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
50
51
  expand: import('vue').PropType<any>;
51
52
  modelValue: import('vue').PropType<any>;
@@ -90,6 +91,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<im
90
91
  };
91
92
  }>> & Readonly<{
92
93
  onGetRef?: ((...args: any[]) => any) | undefined;
94
+ onFormChange?: ((...args: any[]) => any) | undefined;
93
95
  }>, {
94
96
  formItems: [] | Record<string, any>[];
95
97
  labelPosition: "top" | "right" | "left";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bscomp/ep-ui",
3
- "version": "0.1.1",
3
+ "version": "0.1.3-beta",
4
4
  "description": "Vue3 中基于Element-plus二次封装基础组件文档",
5
5
  "author": "bishang",
6
6
  "license": "MIT",