mounted() {
const el = this.$el.parentNode.removeChild(this.$el);
document.body.appendChild(el);
},
destroyed() {
document.body.removeChild(this.$el);
},
mounted() {
document.addEventListener('click', () => this.closePanel());
document.body.appendChild(this.$el);
document.body.style.overflow = "hidden";
setTimeout(() => this.isOpened = true, 100)
},
beforeDestroy() {
this.isOpened = false;
document.body.style.overflow = "auto";
},