TypeScript 回车触发聚焦 @keyup.enter.native

.html:

<bl-input @keyup.enter.native="submitForm()" v-model="SN" size="small">
                </bl-input>

.ts:

async submitForm() {
        this.ScanCode();
    }

  

 

posted @ 2021-08-20 21:13  韩梦芫  阅读(112)  评论(0编辑  收藏  举报