提交 1f9c39c5 authored 作者: fit2cloud-chenyw's avatar fit2cloud-chenyw

fix: tabs选项卡切换后条件无效

上级 8592c904
<template>
<div class="de-tabs-div">
<el-tabs v-model="activeTabName" type="card" class="de-tabs">
<el-tabs v-model="activeTabName" type="card" class="de-tabs" @tab-click="handleClick">
<el-tab-pane
v-for="(item, index) in element.options.tabList"
:key="item.name+index"
......@@ -295,6 +295,15 @@ export default {
},
chartResize() {
// this.$refs[this.activeTabName]
},
handleClick(tab) {
const name = tab.name
this.element.options.tabList.forEach(item => {
if (item && item.name === name && item.content && item.content.propValue && item.content.propValue.viewId) {
this.filterMap[item.content.propValue.viewId] = item.content.filters
}
})
// console.log(tab)
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论