integrate api
This commit is contained in:
1 parent
ddd3910e7d
commit
7880b1d5d0
10 files changed
+293
-34
No files matched your search
@@ -1,6 +1,12 @@
|
||||
<template>
|
||||
<div class="input-box">
|
||||
<el-input v-model="value" :rows="2" type="textarea" placeholder="Please input" />
|
||||
<el-input
|
||||
v-model="value"
|
||||
:rows="2"
|
||||
type="textarea"
|
||||
placeholder="Please input"
|
||||
@keydown.enter.exact.prevent="onSubmit"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -23,7 +29,7 @@ export default defineComponent({
|
||||
required: true
|
||||
}
|
||||
},
|
||||
emits: ['update:modelValue'],
|
||||
emits: ['update:modelValue', 'submit'],
|
||||
data() {
|
||||
return {
|
||||
value: this.modelValue
|
||||
@@ -38,6 +44,11 @@ export default defineComponent({
|
||||
this.value = val;
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
onSubmit() {
|
||||
this.$emit('submit', this.value);
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in new issue
Block a user