feat: Replace Vue.extend with defineComponent in editor-ui (no-changelog) (#6033)
* refactor: replace Vue.extend with defineComponent in editor-ui * fix: change $externalHooks extractions from mixins * fix: refactor externalHooks mixin
This commit is contained in:
@@ -30,9 +30,9 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import Vue from 'vue';
|
||||
import { nextTick, defineComponent } from 'vue';
|
||||
|
||||
export default Vue.extend({
|
||||
export default defineComponent({
|
||||
name: 'TextEdit',
|
||||
props: ['dialogVisible', 'parameter', 'path', 'value', 'isReadOnly'],
|
||||
data() {
|
||||
@@ -65,7 +65,7 @@ export default Vue.extend({
|
||||
watch: {
|
||||
dialogVisible() {
|
||||
if (this.dialogVisible === true) {
|
||||
Vue.nextTick(() => {
|
||||
nextTick(() => {
|
||||
(this.$refs.inputField as HTMLInputElement).focus();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user