activated () modification of the hook either keep-alive
Keyboard Events
Note that the keyboard events only take effect in the input! ! ! If the packaging component, then such Element, this time using the keys need to add modifier .native
such as:
<el-input v-model="account" placeholder="请输入账号" @keyup.enter.native="search()"></el-input>
复制代码
Reproduced in: https: //juejin.im/post/5cf123a56fb9a07ef90c8098