@dockou/elementplus 1.0.20 → 1.0.21

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
@@ -13052,8 +13052,8 @@ const f2e = /* @__PURE__ */ pn(d2e, [["__scopeId", "data-v-b4bf0a07"]]), p2e = {
13052
13052
  setup(e, { emit: t }) {
13053
13053
  const n = e;
13054
13054
  qi((I) => ({
13055
- "6454f1dc": r.value,
13056
- "33fbec04": o.value
13055
+ e191a6de: r.value,
13056
+ "2f3a4d79": o.value
13057
13057
  }));
13058
13058
  const r = ie("#F8F8F8"), o = ie(""), a = ie("default"), i = R(() => !(n.options.hasOwnProperty("is_plus") && !n.options.is_plus)), l = R(() => {
13059
13059
  var I;
@@ -13140,11 +13140,15 @@ const f2e = /* @__PURE__ */ pn(d2e, [["__scopeId", "data-v-b4bf0a07"]]), p2e = {
13140
13140
  return [];
13141
13141
  }, G = (I, K, T) => {
13142
13142
  if (T === "goods_id") {
13143
- const X = c.value.findIndex((Q) => Q.value === I);
13144
- X != -1 && (h.value[K].spec_id = 0, h.value[K].quantity = 1, h.value[K].price = "", h.value[K].amount = "", d.value[K] = X);
13143
+ if (c.value && c.value.length) {
13144
+ const X = c.value.findIndex((Q) => Q.value === I);
13145
+ X != -1 && (h.value[K].spec_id = 0, h.value[K].quantity = 1, h.value[K].price = "", h.value[K].amount = "", d.value[K] = X);
13146
+ }
13145
13147
  } else if (T === "spec_id") {
13146
- const X = f.value[d.value[K]].findIndex((Q) => Q.value === I);
13147
- X != -1 && (h.value[K].quantity = 1, h.value[K].price = f.value[d.value[K]][X].price, h.value[K].amount = f.value[d.value[K]][X].price);
13148
+ if (f.value && f.value.length && d.value && d.value.length && f.value[d.value[K]] && f.value[d.value[K]].length) {
13149
+ const X = f.value[d.value[K]].findIndex((Q) => Q.value === I);
13150
+ X != -1 && (h.value[K].quantity = 1, h.value[K].price = f.value[d.value[K]][X].price, h.value[K].amount = f.value[d.value[K]][X].price);
13151
+ }
13148
13152
  } else
13149
13153
  T === "quantity" && h.value[K].goods_id && h.value[K].spec_id && (h.value[K].amount = h.value[K].price * I);
13150
13154
  t("change", { data: h.value, val: I, index: K, prop: T });
@@ -13286,7 +13290,7 @@ const f2e = /* @__PURE__ */ pn(d2e, [["__scopeId", "data-v-b4bf0a07"]]), p2e = {
13286
13290
  };
13287
13291
  }
13288
13292
  });
13289
- const y2e = /* @__PURE__ */ pn(m2e, [["__scopeId", "data-v-718578c4"]]), b2e = {
13293
+ const y2e = /* @__PURE__ */ pn(m2e, [["__scopeId", "data-v-8bf14c6f"]]), b2e = {
13290
13294
  install(e) {
13291
13295
  e.component("element-form-order", y2e);
13292
13296
  }