refactor(editor): Improve linting for component and prop names (no-changelog) (#8169)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2023-12-28 09:49:58 +01:00
committed by GitHub
parent 639afcd7a5
commit 68cff4c59e
304 changed files with 3428 additions and 3516 deletions

View File

@@ -1,12 +1,12 @@
<template>
<span @keydown.stop class="inline-edit">
<span class="inline-edit" @keydown.stop>
<span v-if="isEditEnabled && !isDisabled">
<ExpandableInputEdit
:placeholder="placeholder"
:modelValue="newValue"
:model-value="newValue"
:maxlength="maxLength"
:autofocus="true"
:eventBus="inputBus"
:event-bus="inputBus"
@update:modelValue="onInput"
@esc="onEscape"
@blur="onBlur"
@@ -14,8 +14,8 @@
/>
</span>
<span @click="onClick" class="preview" v-else>
<ExpandableInputPreview :modelValue="previewValue || modelValue" />
<span v-else class="preview" @click="onClick">
<ExpandableInputPreview :model-value="previewValue || modelValue" />
</span>
</span>
</template>
@@ -63,6 +63,11 @@ export default defineComponent({
inputBus: createEventBus(),
};
},
watch: {
disabled(value) {
this.isDisabled = value;
},
},
methods: {
onInput(newValue: string) {
if (this.disabled) {
@@ -114,11 +119,6 @@ export default defineComponent({
this.$emit('toggle');
},
},
watch: {
disabled(value) {
this.isDisabled = value;
},
},
});
</script>