wave-ui 1.65.1 → 1.65.2

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.
@@ -878,7 +878,7 @@ var render$Q = function() {
878
878
  var _c = _vm._self._c || _h;
879
879
  return _c("transition-group", { staticClass: "w-notification-manager", class: { "w-notification-manager--left": _vm.conf.align === "left" }, attrs: { "tag": "div", "name": _vm.transition, "appear": "" } }, [_vm._l(_vm.notifications, function(notif) {
880
880
  return [notif._value ? _c("w-alert", _vm._b({ key: notif._uid, staticClass: "white--bg", on: { "close": function($event) {
881
- return _vm.notifManager.dismiss(notif._uid);
881
+ return _vm.$waveui._notificationManager.dismiss(notif._uid);
882
882
  } }, model: { value: notif._value, callback: function($$v) {
883
883
  _vm.$set(notif, "_value", $$v);
884
884
  }, expression: "notif._value" } }, "w-alert", _vm.notifProps(notif), false), [_c("div", { domProps: { "innerHTML": _vm._s(notif.message) } })]) : _vm._e()];
@@ -888,16 +888,12 @@ var staticRenderFns$Q = [];
888
888
  var wNotificationManager_vue_vue_type_style_index_0_lang = "";
889
889
  const __vue2_script$Q = {
890
890
  name: "w-notification-manager",
891
- data: () => ({
892
- notifManager: null
893
- }),
894
891
  computed: {
895
892
  conf() {
896
893
  return this.$waveui.config.notificationManager;
897
894
  },
898
895
  notifications() {
899
- var _a;
900
- return ((_a = this.notifManager) == null ? void 0 : _a.notifications) || [];
896
+ return this.$waveui._notificationManager.notifications || [];
901
897
  },
902
898
  transition() {
903
899
  return this.conf.transition ? this.conf.transition.replace("default", `slide-${this.conf.align === "left" ? "right" : "left"}`) : "";
@@ -908,13 +904,6 @@ const __vue2_script$Q = {
908
904
  const { _value, _uid: _uid2, message, timeout, ...props } = notif;
909
905
  return props;
910
906
  }
911
- },
912
- created() {
913
- this.notifManager = new NotificationManager$1();
914
- },
915
- beforeUnmount() {
916
- this.notifManager.notifications = [];
917
- delete this.notifManager;
918
907
  }
919
908
  };
920
909
  const __cssModules$Q = {};