element-assits 0.0.95 → 0.0.97

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.
Files changed (2) hide show
  1. package/lib/index.js +2 -3
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -1461,7 +1461,7 @@ var mx = function() {
1461
1461
  } } }, [t._v("\u5168\u9009")]), i("el-button", { attrs: { type: "text" }, on: { click: function(a) {
1462
1462
  return t.handleSelectAll(0);
1463
1463
  } } }, [t._v("\u53D6\u6D88\u5168\u9009")])], 1) : t._e(), t._t("before-option"), i("VirtualScroll", { ref: "vs", attrs: { options: t.options, "item-size": 34 }, scopedSlots: t._u([{ key: "item", fn: function({ item: a }) {
1464
- return [i("el-option", { key: a[t.endProps.value], attrs: { label: a[t.endProps.label], value: a[t.endProps.value] } }, [t.endProps.desc ? [i("span", { staticClass: "select-item-value", style: { maxWidth: t.endItemMaxWidth[0] + "px" }, attrs: { title: a[t.endProps.label] } }, [t._v(" " + t._s(a[t.endProps.label]) + " ")]), i("span", { staticClass: "select-item-desc", style: { maxWidth: t.endItemMaxWidth[1] + "px" }, attrs: { title: a[t.endProps.desc] } }, [t._v(" " + t._s(a[t.endProps.desc]) + " ")])] : t._e()], 2)];
1464
+ return [i("el-option", { key: a[t.endProps.value], attrs: { label: a[t.endProps.label], value: a[t.endProps.value], disabled: t.endProps.disabled && a[t.endProps.disabled] || !1 } }, [t.endProps.desc ? [i("span", { staticClass: "select-item-value", style: { maxWidth: t.endItemMaxWidth[0] + "px" }, attrs: { title: a[t.endProps.label] } }, [t._v(" " + t._s(a[t.endProps.label]) + " ")]), i("span", { staticClass: "select-item-desc", style: { maxWidth: t.endItemMaxWidth[1] + "px" }, attrs: { title: a[t.endProps.desc] } }, [t._v(" " + t._s(a[t.endProps.desc]) + " ")])] : t._e()], 2)];
1465
1465
  } }]) }), t._t("after-option")], 2), t.loading ? i("i", { staticClass: "el-icon-loading async-loading" }) : t._e()], 1);
1466
1466
  }, yx = [], bx = /* @__PURE__ */ j(
1467
1467
  vx,
@@ -1639,9 +1639,8 @@ const fe = (r = 16) => {
1639
1639
  return i;
1640
1640
  }, yt = (r, t, i = "children", a = []) => {
1641
1641
  for (let o = 0; o < r.length; o++)
1642
- if (t && t(r[o], a) === !1 || r[o][i] && r[o][i].length && (a.push(r[o]), yt(r[o][i], t, i, a) === !1))
1642
+ if (t && t(r[o], a) === !1 || r[o][i] && r[o][i].length && yt(r[o][i], t, i, [...a, r[o]]) === !1)
1643
1643
  return !1;
1644
- a.pop();
1645
1644
  }, Px = (r, t, i = "children") => {
1646
1645
  const a = [{ [i]: r, __root: !0 }];
1647
1646
  return yt(a, (o, d) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "element-assits",
3
- "version": "0.0.95",
3
+ "version": "0.0.97",
4
4
  "description": "element-ui 的扩展组件库",
5
5
  "main": "lib/index.js",
6
6
  "type": "module",