scope.row是干嘛的
时间: 2023-08-29 10:10:29 浏览: 193
scope.row是用于获取当前行的数据对象的。在Vue的插槽中,通过使用slot-scope指令,可以将父组件中的数据传递给子组件。在表格中,scope.row表示当前行的数据对象,可以通过scope.row来获取当前行的各个属性值。例如,可以使用scope.row.username来获取当前行的姓名属性值。\[1\]\[2\]\[3\]
#### 引用[.reference_title]
- *1* *3* [深入理解vue中的slot与slot-scope与scope.row](https://blog.csdn.net/houyibing930920/article/details/89513246)[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^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [vue中的slot-scope及scope.row](https://blog.csdn.net/sslcsq/article/details/106797003)[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^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文