wave-ui 3.0.4 → 3.0.5

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.
@@ -729,7 +729,7 @@ const j = class {
729
729
  if (!he) {
730
730
  he = !0;
731
731
  const i = Be("$waveui"), { config: o } = i, r = document.querySelector(o.on) || document.body;
732
- r.classList.add("w-app"), o.colors[o.theme], o.theme === "auto" ? Ae(i) : i.switchTheme(o.theme, !0), Me(i), Te(r, a, i), t._context.mixins.find((d) => d.mounted && delete d.mounted);
732
+ r.classList.add("w-app"), o.theme === "auto" ? Ae(i) : i.switchTheme(o.theme, !0), Me(i), Te(r, a, i), t._context.mixins.find((d) => d.mounted && delete d.mounted);
733
733
  }
734
734
  }
735
735
  }), new j(t, l), te(j, q, !0);
@@ -3417,7 +3417,10 @@ const El = {
3417
3417
  }));
3418
3418
  },
3419
3419
  applySelectionOnItems(e) {
3420
- this.isMultipleSelect || this.listItems.forEach((t) => t._selected = !1), this.checkSelection(e).forEach((t) => this.listItems.find((l) => l._value === t)._selected = !0);
3420
+ this.isMultipleSelect || this.listItems.forEach((t) => t._selected = !1), this.checkSelection(e).forEach((t) => {
3421
+ const l = this.listItems.find((a) => a._value === t);
3422
+ l && (l._selected = !0);
3423
+ });
3421
3424
  }
3422
3425
  },
3423
3426
  created() {
@@ -6885,6 +6888,7 @@ const Ga = {
6885
6888
  counts: { type: Boolean },
6886
6889
  itemIconKey: { type: String, default: "icon" },
6887
6890
  iconColor: { type: String },
6891
+ itemLabelKey: { type: String, default: "label" },
6888
6892
  itemIconColorKey: { type: String, default: "iconColor" },
6889
6893
  itemRouteKey: { type: String, default: "route" },
6890
6894
  itemDisabledKey: { type: String, default: "disabled" },
@@ -6914,7 +6918,7 @@ const Ga = {
6914
6918
  this.currentDepthItems.push({
6915
6919
  originalItem: l,
6916
6920
  _uid: this.depth.toString() + (a + 1),
6917
- label: l.label,
6921
+ label: l[this.itemLabelKey],
6918
6922
  children: !!l.children,
6919
6923
  branch: l.branch,
6920
6924
  route: l[this.itemRouteKey],