refactor(editor): Replace this.$props (no-changelog) (#5928)

* refactor(editor): Replace this. (no-changelog)

* Lintfix
This commit is contained in:
OlegIvaniv
2023-04-07 12:21:17 +02:00
committed by GitHub
parent 5651a52364
commit 07c360c30d
15 changed files with 60 additions and 61 deletions

View File

@@ -1,7 +1,7 @@
<template>
<el-drawer
:direction="direction"
:visible="uiStore.isModalOpen(this.$props.name)"
:visible="uiStore.isModalOpen(this.name)"
:size="width"
:before-close="close"
:modal="modal"
@@ -54,8 +54,8 @@ export default Vue.extend({
mounted() {
window.addEventListener('keydown', this.onWindowKeydown);
if (this.$props.eventBus) {
this.$props.eventBus.on('close', () => {
if (this.eventBus) {
this.eventBus.on('close', () => {
this.close();
});
}
@@ -73,7 +73,7 @@ export default Vue.extend({
},
methods: {
onWindowKeydown(event: KeyboardEvent) {
if (!this.uiStore.isModalActive(this.$props.name)) {
if (!this.uiStore.isModalActive(this.name)) {
return;
}
@@ -82,7 +82,7 @@ export default Vue.extend({
}
},
handleEnter() {
if (this.uiStore.isModalActive(this.$props.name)) {
if (this.uiStore.isModalActive(this.name)) {
this.$emit('enter');
}
},
@@ -94,7 +94,7 @@ export default Vue.extend({
return;
}
}
this.uiStore.closeModal(this.$props.name);
this.uiStore.closeModal(this.name);
},
},
});