wave-ui 2.32.0 → 2.32.1

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.
@@ -2691,10 +2691,9 @@ const _sfc_main$w = {
2691
2691
  }),
2692
2692
  computed: {
2693
2693
  ligature() {
2694
- var _a, _b;
2695
2694
  if (!config.iconsLigature)
2696
2695
  return false;
2697
- const [fontName, icon] = (_b = (_a = this.$slots.default()[0]) == null ? void 0 : _a.children) == null ? void 0 : _b.split(" ");
2696
+ const [fontName, icon] = this.icon.split(" ");
2698
2697
  return fontName === config.iconsLigature && { fontName, icon };
2699
2698
  },
2700
2699
  forcedSize() {
@@ -2705,7 +2704,7 @@ const _sfc_main$w = {
2705
2704
  },
2706
2705
  classes() {
2707
2706
  return {
2708
- [this.$slots.default()[0].children]: true,
2707
+ [this.icon]: true,
2709
2708
  [this.color]: this.color,
2710
2709
  [`${this.bgColor}--bg`]: this.bgColor,
2711
2710
  [`size--${this.presetSize}`]: this.presetSize && !this.forcedSize,
@@ -2726,6 +2725,12 @@ const _sfc_main$w = {
2726
2725
  styles() {
2727
2726
  return this.forcedSize && `font-size: ${this.forcedSize}`;
2728
2727
  }
2728
+ },
2729
+ created() {
2730
+ this.icon = this.$slots.default && this.$slots.default()[0].children;
2731
+ },
2732
+ updated() {
2733
+ this.icon = this.$slots.default && this.$slots.default()[0].children;
2729
2734
  }
2730
2735
  };
2731
2736
  var wIcon = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["render", render$w]]);