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

.html:

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

.ts:

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

  

原文地址:https://www.cnblogs.com/siyunianhua/p/15168192.html