wave-ui 1.51.0 → 1.51.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.
@@ -3383,7 +3383,7 @@ var DetachableMixin = {
3383
3383
  if (this.value && this.activator)
3384
3384
  this.toggle({ type: "click", target: this.activatorEl });
3385
3385
  },
3386
- destroy() {
3386
+ beforeDestroy() {
3387
3387
  var _a;
3388
3388
  this.close();
3389
3389
  this.removeFromDOM();
@@ -3753,9 +3753,7 @@ var render$q = function() {
3753
3753
  var _vm = this;
3754
3754
  var _h = _vm.$createElement;
3755
3755
  var _c = _vm._self._c || _h;
3756
- return _c("transition", { attrs: { "name": "fade", "appear": "" }, on: { "after-leave": function($event) {
3757
- return _vm.$emit("closed");
3758
- } } }, [_vm.value ? _c("div", { directives: [{ name: "focus", rawName: "v-focus" }], staticClass: "w-overlay", class: _vm.classes, style: _vm.value && _vm.styles || null, attrs: { "tabindex": "0" }, on: { "keydown": function($event) {
3756
+ return _c("transition", { attrs: { "name": "fade", "appear": "" }, on: { "after-leave": _vm.onClosed } }, [_vm.showOverlay ? _c("div", { directives: [{ name: "show", rawName: "v-show", value: _vm.value, expression: "value" }, { name: "focus", rawName: "v-focus" }], staticClass: "w-overlay", class: _vm.classes, style: _vm.value && _vm.styles || null, attrs: { "tabindex": "0" }, on: { "keydown": function($event) {
3759
3757
  if (!$event.type.indexOf("key") && _vm._k($event.keyCode, "escape", void 0, $event.key, void 0)) {
3760
3758
  return null;
3761
3759
  }
@@ -3777,7 +3775,8 @@ const __vue2_script$q = {
3777
3775
  },
3778
3776
  emits: ["input", "update:modelValue", "click", "close", "closed"],
3779
3777
  data: () => ({
3780
- persistentAnimate: false
3778
+ persistentAnimate: false,
3779
+ showOverlay: false
3781
3780
  }),
3782
3781
  computed: {
3783
3782
  backgroundColor() {
@@ -3808,6 +3807,19 @@ const __vue2_script$q = {
3808
3807
  this.$emit("close");
3809
3808
  }
3810
3809
  this.$emit("click", e);
3810
+ },
3811
+ onClosed() {
3812
+ this.showOverlay = false;
3813
+ this.$emit("closed");
3814
+ }
3815
+ },
3816
+ created() {
3817
+ this.showOverlay = this.value;
3818
+ },
3819
+ watch: {
3820
+ value(bool) {
3821
+ if (bool)
3822
+ this.showOverlay = true;
3811
3823
  }
3812
3824
  }
3813
3825
  };