跳至内容

vue/no-v-model-argument

禁止在自定义组件中使用带有参数的 v-model

  • ⚙️ 此规则包含在所有 "plugin:vue/essential"*.configs["flat/vue2-essential"]"plugin:vue/strongly-recommended"*.configs["flat/vue2-strongly-recommended"]"plugin:vue/recommended"*.configs["flat/vue2-recommended"] 中。

此规则检查自定义组件上使用的 v-model 是否没有参数。

📖 规则详情

此规则在以下情况下报告 v-model 指令

  • 在组件上使用的指令带有参数。例如 <MyComponent v-model:aaa="foo" />
正在加载...

🔧 选项

无。

🚀 版本

此规则在 eslint-plugin-vue v7.0.0 中引入

🔍 实现