vue透传attributes
时间: 2023-08-28 20:20:56 浏览: 164
vue基本内容总结学习
在Vue中,透传attributes是指将除了props和emits之外的其他attribute传递给子组件。通过使用$attrs对象来访问这些透传的属性。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [【Vue第十七章】透传 Attributes](https://blog.csdn.net/qq_39335404/article/details/128837950)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [Vue——透传 Attributes](https://blog.csdn.net/weixin_45721753/article/details/130173018)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文