Skip to content

vue/no-multiple-slot-args

禁止将多个参数传递给作用域插槽

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

📖 规则详情

此规则禁止将多个参数传递给作用域插槽。详细地说,如果 this.$scopedSlots 成员的调用有 2 个或更多参数,它会报告调用表达式。

¥This rule disallows to pass multiple arguments to scoped slots.\ In details, it reports call expressions if a call of this.$scopedSlots members has 2 or more arguments.

Now loading...

🔧选项

¥🔧 Options

无。

¥Nothing.

📚扩展阅读

¥📚 Further Reading

🚀版本

¥🚀 Version

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

¥This rule was introduced in eslint-plugin-vue v7.0.0

🔍代码实现

¥🔍 Implementation

eslint-plugin-vue v10.0 中文网 - 粤ICP备13048890号