1. 需求
在消息框中輸入消息,回車發(fā)送消息文章來源地址http://www.zghlxwxcb.cn/news/detail-579995.html
2. 解決
一、在el-input 上綁定keyup.enter事件
<el-input
style="width: 100%"
v-model="message"
type="textarea"
placeholder="請輸入消息"
@keyup.enter="sendMessage"
:rows
文章來源:http://www.zghlxwxcb.cn/news/detail-579995.html
到了這里,關于Vue3 的 回車(enter)事件的文章就介紹完了。如果您還想了解更多內容,請在右上角搜索TOY模板網以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網!