Appearance
vue/no-ref-object-destructure
禁止使用可能导致失去反应性的 ref 对象
- ⛔ 此规则已在 eslint-plugin-vue v10.0.0 中删除,并由 vue/no-ref-object-reactivity-loss 规则替换。
📖 规则详情
此规则报告 ref 对象的解构导致值失去反应性。
¥This rule reports the destructuring of ref objects causing the value to lose reactivity.
此规则还支持 Reactivity Transform,但 Reactivity Transform 是一项实验性功能,可能会因未来 Vue 的变化而出现误报。请参阅 RFC 以了解有关 Reactivity Transform 的更多信息。
¥This rule also supports Reactivity Transform, but Reactivity Transform is an experimental feature and may have false positives due to future Vue changes.\ See the RFC for more information on Reactivity Transform.
🔧选项
¥🔧 Options
无。
¥Nothing.
🚀版本
¥🚀 Version
此规则是在 eslint-plugin-vue v9.5.0 中引入的
¥This rule was introduced in eslint-plugin-vue v9.5.0
🔍代码实现
¥🔍 Implementation