Vue3.0 & Vue2.0
ChuangWANG
Posted on May 5, 2021
Vue 3:
in vue2 the syntic si right:
@keyup.enter.native="dataFormSubmit()
vue 回车触发聚焦 @keyup.enter.native
12:84 error '.native' modifier on 'v-on' directive is deprecated vue/no-deprecated-v-on-native-modifier
ref link: https://eslint.vuejs.org/rules/no-deprecated-v-on-native-modifier.html
<template>
<!-- ✓ GOOD -->
<CoolInput v-on:keydown.enter="onKeydownEnter" />
<CoolInput @keydown.enter="onKeydownEnter" />
<!-- ✗ BAD -->
<CoolInput v-on:keydown.native="onKeydown" />
<CoolInput @keydown.enter.native="onKeydownEnter" />
</template>
💖 💪 🙅 🚩
ChuangWANG
Posted on May 5, 2021
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
githubcopilot AI Innovations at Microsoft Ignite 2024 What You Need to Know (Part 2)
November 29, 2024