refactor: Fix type issues for parameter input components (#9449)

This commit is contained in:
Elias Meire
2024-05-21 15:04:20 +02:00
committed by GitHub
parent cd751e7cc8
commit 711c46f205
36 changed files with 315 additions and 243 deletions

View File

@@ -25,14 +25,18 @@ export default defineComponent({
name: 'ExpandableInputEdit',
components: { ExpandableInputBase },
props: {
modelValue: {},
placeholder: {},
maxlength: {},
autofocus: {},
modelValue: {
type: String,
required: true,
},
placeholder: { type: String, required: true },
maxlength: { type: Number },
autofocus: { type: Boolean },
eventBus: {
type: Object as PropType<EventBus>,
},
},
emits: ['update:modelValue', 'enter', 'blur', 'esc'],
mounted() {
// autofocus on input element is not reliable
if (this.autofocus && this.$refs.input) {