@dockou/elementplus 1.0.10 → 1.0.11

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/index.es.js CHANGED
@@ -12730,8 +12730,8 @@ const r2e = /* @__PURE__ */ bn(n2e, [["__scopeId", "data-v-35d21d1e"]]), o2e = {
12730
12730
  setup(e, { emit: t }) {
12731
12731
  const n = e;
12732
12732
  dl((S) => ({
12733
- "4389c26c": i.value,
12734
- "193ed894": s.value
12733
+ 51157394: i.value,
12734
+ "1aba4088": s.value
12735
12735
  })), $r();
12736
12736
  const r = se(null), o = se(10), a = se([]), i = se("#F8F8F8"), s = se(""), l = se(!1), c = se("default"), d = se([]), p = se([]);
12737
12737
  se([{ type: "varchar", label: "key", props: "key" }]);
@@ -12760,7 +12760,7 @@ const r2e = /* @__PURE__ */ bn(n2e, [["__scopeId", "data-v-35d21d1e"]]), o2e = {
12760
12760
  setTimeout(async () => {
12761
12761
  var S, $, P, U, T;
12762
12762
  d.value = v.value, (S = n.options) != null && S.limit && n.options.limit > 0 && (o.value = n.options.limit), ($ = n.options) != null && $.bgColor && n.options.bgColor != "" && (i.value = n.options.bgColor), (P = n.options) != null && P.textColor && n.options.textColor != "" && (s.value = n.options.textColor), (U = n.options) != null && U.size && n.options.size && (c.value = n.options.size), l.value = (T = n.options) == null ? void 0 : T.is_plus, h(), g(), await m();
12763
- }, 1500);
12763
+ }, 500);
12764
12764
  });
12765
12765
  const h = () => {
12766
12766
  var S, $;
@@ -12922,7 +12922,7 @@ const r2e = /* @__PURE__ */ bn(n2e, [["__scopeId", "data-v-35d21d1e"]]), o2e = {
12922
12922
  };
12923
12923
  }
12924
12924
  });
12925
- const u2e = /* @__PURE__ */ bn(l2e, [["__scopeId", "data-v-77a71b0b"]]), c2e = {
12925
+ const u2e = /* @__PURE__ */ bn(l2e, [["__scopeId", "data-v-2636ba9d"]]), c2e = {
12926
12926
  install(e) {
12927
12927
  e.component("element-form-table", u2e);
12928
12928
  }
@@ -12962,69 +12962,74 @@ const u2e = /* @__PURE__ */ bn(l2e, [["__scopeId", "data-v-77a71b0b"]]), c2e = {
12962
12962
  setup(e, { emit: t }) {
12963
12963
  const n = e, r = se(n.visible);
12964
12964
  o_();
12965
- const o = se([]), a = se();
12965
+ const o = se([]), a = se(), i = se((n == null ? void 0 : n.options) || []);
12966
12966
  xn(async () => {
12967
- setTimeout(async () => {
12968
- o.value = await n.options.filter((c) => c.type == "slot");
12967
+ i.value = n.options, setTimeout(async () => {
12968
+ o.value = await n.options.filter((d) => d.type == "slot");
12969
12969
  }, 3e3);
12970
- }), vr(() => n.visible, (c) => {
12971
- r.value = c;
12972
- }), vr(() => r.value, (c) => {
12973
- t("update:visible", c);
12970
+ }), vr(() => n.visible, (d) => {
12971
+ r.value = d;
12972
+ }), vr(() => r.value, (d) => {
12973
+ t("update:visible", d);
12974
12974
  });
12975
- const i = () => {
12976
- r.value = !1;
12977
- }, s = (c, d) => {
12978
- t("on-text", c, d);
12979
- }, l = (c, d) => {
12980
- t("change", c, d);
12975
+ const s = () => {
12976
+ i.value = [], setTimeout(() => {
12977
+ r.value = !1;
12978
+ }, 500);
12979
+ }, l = (d, p) => {
12980
+ t("on-text", d, p);
12981
+ }, c = (d, p) => {
12982
+ t("change", d, p);
12981
12983
  };
12982
- return (c, d) => {
12983
- const p = q("element-form"), v = q("el-scrollbar"), h = q("el-dialog");
12984
- return x(), K(h, Te({
12984
+ return (d, p) => {
12985
+ const v = q("element-form"), h = q("el-scrollbar"), g = q("el-dialog");
12986
+ return x(), K(g, Te({
12985
12987
  modelValue: r.value,
12986
- "onUpdate:modelValue": d[0] || (d[0] = (g) => r.value = g)
12987
- }, c.$attrs, { "before-close": i }), {
12988
+ "onUpdate:modelValue": p[0] || (p[0] = (m) => r.value = m)
12989
+ }, d.$attrs, {
12990
+ "destroy-on-close": !0,
12991
+ "before-close": s
12992
+ }), {
12988
12993
  footer: z(() => [
12989
- Je(c.$slots, "action", { form: a.value })
12994
+ Je(d.$slots, "action", { form: a.value })
12990
12995
  ]),
12991
12996
  default: z(() => [
12992
- W(v, { "max-height": e.scorllHeight }, {
12997
+ W(h, { "max-height": e.scorllHeight }, {
12993
12998
  default: z(() => [
12994
- o.value && o.value.length ? (x(), K(p, {
12999
+ o.value && o.value.length ? (x(), K(v, {
12995
13000
  key: 0,
12996
13001
  size: e.size,
12997
13002
  "label-width": e.labelWidth,
12998
13003
  ref_key: "dialog_form",
12999
13004
  ref: a,
13000
- options: e.options,
13005
+ options: i.value,
13001
13006
  prefix: e.prefix,
13002
13007
  api: e.api,
13003
- onOnText: s,
13004
- onChange: l
13008
+ onOnText: l,
13009
+ onChange: c
13005
13010
  }, Iu({
13006
13011
  action: z(() => []),
13007
13012
  _: 2
13008
13013
  }, [
13009
- wt(o.value, (g, m) => ({
13010
- name: g.prop,
13014
+ wt(o.value, (m, w) => ({
13015
+ name: m.prop,
13011
13016
  fn: z(() => [
13012
- Je(c.$slots, g == null ? void 0 : g.prop, {
13013
- data: g.value
13017
+ Je(d.$slots, m == null ? void 0 : m.prop, {
13018
+ data: m.value
13014
13019
  })
13015
13020
  ])
13016
13021
  }))
13017
- ]), 1032, ["size", "label-width", "options", "prefix", "api"])) : (x(), K(p, {
13022
+ ]), 1032, ["size", "label-width", "options", "prefix", "api"])) : (x(), K(v, {
13018
13023
  key: 1,
13019
13024
  size: e.size,
13020
13025
  "label-width": e.labelWidth,
13021
13026
  ref_key: "dialog_form",
13022
13027
  ref: a,
13023
- options: e.options,
13028
+ options: i.value,
13024
13029
  prefix: e.prefix,
13025
13030
  api: e.api,
13026
- onOnText: s,
13027
- onChange: l
13031
+ onOnText: l,
13032
+ onChange: c
13028
13033
  }, {
13029
13034
  action: z(() => []),
13030
13035
  _: 1