Appearance
vue/require-component-is
要求
<component>
元素中的v-bind:is
- ⚙️ 此规则包含在
"plugin:vue/essential"
、*.configs["flat/essential"]
、"plugin:vue/vue2-essential"
、*.configs["flat/vue2-essential"]
、"plugin:vue/strongly-recommended"
、*.configs["flat/strongly-recommended"]
、"plugin:vue/vue2-strongly-recommended"
、*.configs["flat/vue2-strongly-recommended"]
、"plugin:vue/recommended"
、*.configs["flat/recommended"]
、"plugin:vue/vue2-recommended"
和*.configs["flat/vue2-recommended"]
中。
📖 规则详情
此规则报告没有 v-bind:is
属性的 <component>
元素。
¥This rule reports the <component>
elements which do not have v-bind:is
attributes.
注意
你可以使用相同的挂载点,并使用保留的 <component>
元素在多个组件之间动态切换,并动态绑定到其 is
属性。
¥You can use the same mount point and dynamically switch between multiple components using the reserved <component>
element and dynamically bind to its is
attribute.
🔧选项
¥🔧 Options
无。
¥Nothing.
📚扩展阅读
¥📚 Further Reading
🚀版本
¥🚀 Version
此规则在 eslint-plugin-vue v3.0.0 中引入
¥This rule was introduced in eslint-plugin-vue v3.0.0
🔍代码实现
¥🔍 Implementation