@dockou/elementplus 1.0.13 → 1.0.14

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
@@ -10073,7 +10073,7 @@ const yfe = /* @__PURE__ */ _n(mfe, [["__scopeId", "data-v-698d2b4e"]]), bfe = [
10073
10073
  const w = async (T) => {
10074
10074
  var Z;
10075
10075
  const U = T.hasOwnProperty("attrs") ? T.attrs : {}, N = U.hasOwnProperty("style") ? U.style : {};
10076
- return T.hasOwnProperty("clearable") && (U.clearable = T.clearable), T.hasOwnProperty("disabled") && (U.disabled = T.disabled), ["color", "switch", "input-number", "number", "date", "time", "rate", "checkbox", "checkbox-group", "radio", "radio-group"].includes(T.type) || (N.width = r.tipWidth ? `calc(100% - ${r.tipWidth + 40}px)` : "calc(100% - 10px)"), T.hasOwnProperty("width") && T.width && (N.width = `${T.width}px`), T.hasOwnProperty("color") && T.color && (N.color = T.color), ["input", "input-number", "number", "date", "time", "select", "cascader"].includes(T.type) && (U.placeholder = (T == null ? void 0 : T.placeholder) || T.label), Object.keys(N).length && (U.style = N), T.type == "upload" && ((!U.hasOwnProperty("prefix") || !(U != null && U.prefix)) && (U.prefix = r == null ? void 0 : r.prefix), (!U.hasOwnProperty("action") || !(U != null && U.action)) && (U.action = (r == null ? void 0 : r.api) + "upload"), (!U.hasOwnProperty("size") || !(U != null && U.size)) && (U.size = ((Z = T.attrs) == null ? void 0 : Z.size) || "default")), T.type == "editor", U;
10076
+ return T.hasOwnProperty("clearable") && (U.clearable = T.clearable), T.hasOwnProperty("disabled") && (U.disabled = T.disabled), ["color", "switch", "input-number", "number", "date", "time", "rate", "checkbox", "checkbox-group", "radio", "radio-group"].includes(T.type) || (N.width = r.tipWidth ? `calc(100% - ${r.tipWidth + 40}px)` : "calc(100% - 10px)"), T.hasOwnProperty("width") && T.width && (N.width = `${T.width}px`), T.hasOwnProperty("color") && T.color && (N.color = T.color), ["input", "input-number", "number", "date", "time", "select", "cascader"].includes(T.type) && (U.placeholder = (T == null ? void 0 : T.placeholder) || T.label), (T.type === "description" || T.type === "descriptions" || T.type == "spec" || T.type == "goods_spec" || T.type == "form_spec") && (N.width = "100%"), Object.keys(N).length && (U.style = N), T.type == "upload" && ((!U.hasOwnProperty("prefix") || !(U != null && U.prefix)) && (U.prefix = r == null ? void 0 : r.prefix), (!U.hasOwnProperty("action") || !(U != null && U.action)) && (U.action = (r == null ? void 0 : r.api) + "upload"), (!U.hasOwnProperty("size") || !(U != null && U.size)) && (U.size = ((Z = T.attrs) == null ? void 0 : Z.size) || "default")), T.type == "editor", U;
10077
10077
  }, y = async (T) => {
10078
10078
  const U = ["type", "label", "prop", "value", "rules", "children", "attrs", "slot", "options", "placeholder"];
10079
10079
  T.type != "city" && U.push("width");
@@ -10544,15 +10544,18 @@ const yfe = /* @__PURE__ */ _n(mfe, [["__scopeId", "data-v-698d2b4e"]]), bfe = [
10544
10544
  }, {
10545
10545
  default: z(() => [
10546
10546
  T.$slots[B.prop] ? Je(T.$slots, B.prop, { key: 0 }) : (x(), O(be, { key: 1 }, [
10547
- G(gt, Te({
10548
- value: p.value[B.prop],
10549
- "onUpdate:value": (De) => p.value[B.prop] = De
10550
- }, B.attrs, {
10551
- options: B.options,
10552
- children: B.children,
10553
- style: { width: `calc(100% - ${e.tipWidth + 50}px)` },
10554
- onChange: (De) => A(De, B.prop)
10555
- }), null, 16, ["value", "onUpdate:value", "options", "children", "style", "onChange"]),
10547
+ k("div", {
10548
+ style: Pe({ width: `calc(100% - ${e.tipWidth + 50}px)` })
10549
+ }, [
10550
+ G(gt, Te({
10551
+ value: p.value[B.prop],
10552
+ "onUpdate:value": (De) => p.value[B.prop] = De
10553
+ }, B.attrs, {
10554
+ options: B.options,
10555
+ children: B.children,
10556
+ onChange: (De) => A(De, B.prop)
10557
+ }), null, 16, ["value", "onUpdate:value", "options", "children", "onChange"])
10558
+ ], 4),
10556
10559
  k("span", {
10557
10560
  style: Pe(B == null ? void 0 : B.dstyle),
10558
10561
  innerHTML: B.desc
@@ -10667,14 +10670,18 @@ const yfe = /* @__PURE__ */ _n(mfe, [["__scopeId", "data-v-698d2b4e"]]), bfe = [
10667
10670
  var De, dt;
10668
10671
  return [
10669
10672
  T.$slots[B.prop] ? Je(T.$slots, B.prop, { key: 0 }) : (x(), O(be, { key: 1 }, [
10670
- G(yfe, {
10671
- data: p.value[B.prop],
10672
- width: `calc(100% - ${e.labelWidth})`,
10673
- options: B == null ? void 0 : B.options,
10674
- specOptions: (De = B.attrs) == null ? void 0 : De.specOptions,
10675
- formOptions: (dt = B.attrs) == null ? void 0 : dt.formOptions,
10676
- onChange: (ee) => A(ee, B.prop)
10677
- }, null, 8, ["data", "width", "options", "specOptions", "formOptions", "onChange"]),
10673
+ k("div", {
10674
+ style: Pe({ width: `calc(100% - ${e.tipWidth + 50}px)` })
10675
+ }, [
10676
+ G(yfe, {
10677
+ data: p.value[B.prop],
10678
+ width: "100%",
10679
+ options: B == null ? void 0 : B.options,
10680
+ specOptions: (De = B.attrs) == null ? void 0 : De.specOptions,
10681
+ formOptions: (dt = B.attrs) == null ? void 0 : dt.formOptions,
10682
+ onChange: (ee) => A(ee, B.prop)
10683
+ }, null, 8, ["data", "options", "specOptions", "formOptions", "onChange"])
10684
+ ], 4),
10678
10685
  k("span", {
10679
10686
  style: Pe(B == null ? void 0 : B.dstyle),
10680
10687
  innerHTML: B.desc