el-tab-pane @click
时间: 2023-09-02 12:10:35 浏览: 110
在el-tab-pane中添加@click事件可以在点击每个tab时执行相应的操作。在引用\[1\]和\[2\]中的代码示例中,@click="tabClick(item.categoryId)"表示在点击tab时调用tabClick方法,并将item.categoryId作为参数传递给该方法。你可以根据自己的需求在tabClick方法中编写相应的逻辑。
#### 引用[.reference_title]
- *1* *2* [Vue对Element中的el-tab-pane添加@click事件无效](https://blog.csdn.net/qq_58648235/article/details/130181918)[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^control,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [elementUI如何给el-tabs/el-tab-pane添加图标](https://blog.csdn.net/qq_44644561/article/details/130055102)[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^control,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文