提交 9bb24a13 authored 作者: wangjiahao's avatar wangjiahao

fix: 修复主题变更 图形属性不联动问题

上级 9cf6919b
...@@ -60,8 +60,7 @@ export default { ...@@ -60,8 +60,7 @@ export default {
activeNames: ['panel'], activeNames: ['panel'],
chart: null, chart: null,
tableChart: null, tableChart: null,
collapseShow: true, collapseShow: true
tableChartShow: true
} }
}, },
computed: mapState([ computed: mapState([
...@@ -74,7 +73,10 @@ export default { ...@@ -74,7 +73,10 @@ export default {
mounted() { mounted() {
bus.$on('onSubjectChange', () => { bus.$on('onSubjectChange', () => {
this.collapseShow = false this.collapseShow = false
this.$nextTick(() => (this.collapseShow = true)) this.$nextTick(() => {
this.init()
this.collapseShow = true
})
}) })
}, },
created() { created() {
...@@ -100,8 +102,6 @@ export default { ...@@ -100,8 +102,6 @@ export default {
// 因为 table 的color 设置和view的共用 所以单独设置一个对象 // 因为 table 的color 设置和view的共用 所以单独设置一个对象
this.tableChart = deepCopy(this.chart) this.tableChart = deepCopy(this.chart)
this.tableChart.customAttr.color = this.tableChart.customAttr.tableColor this.tableChart.customAttr.color = this.tableChart.customAttr.tableColor
this.tableChartShow = false
this.$nextTick(() => (this.tableChartShow = true))
}, },
handleChange(val) { handleChange(val) {
// console.log(val) // console.log(val)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论