Existing Component
是
Component Name
tabs标签页
Description
建议增加:tabs标签增加来源信息(上一个tab-pane的信息)或者提供一个可配置的字段 用于切换tab-pane时 销毁上一个tab-pane状态;
业务情景:计划利用vue 、element、 echarts开发一套可配置的图表工具。其中echarts的图表属性,如title、legend、toolTip等,其属性都在一个单独的tab-pane页面内进行可视化配置;配置好后所有的tab-pane页面把配置信息汇总在inde.vue中再传给图标页使用。
问题:由于tabs上提供的tab-click方法只能获取当前点击的tab-pane组状态,无法获取上一个tab-pane状态,且不能设置切换tabs销毁上一个tab-pane,此时要获取上一个tab-pane的状态就很麻烦;
2条答案
按热度按时间t9eec4r01#
Translation of this issue:
Existing Component
yes
Component Name
Tabs tab
Description
It is suggested to add: the tabs tag adds source information (information of the previous tab pane) or provides a configurable field to destroy the status of the previous tab pane when switching tab panes;
Business scenario: plan to use Vue, element and ecarts to develop a set of configurable chart tools. The chart attributes of ecarts, such as title, legend, and tool tip, are visually configured in a single tab pane page; after configuration, all tab pane pages summarize the configuration information in the inde.vue And then to the icon page.
Problem: because the tab click method provided on tabs can only get the status of the currently clicked tab pane group, it can't get the status of the previous tab pane, and it can't set the switch tab to destroy the previous tab pane, so it's very troublesome to get the status of the previous tab pane;
xhv8bpkk2#
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.