forked from github/dataease
fix: UI 调整
This commit is contained in:
parent
7d16420f35
commit
71bafb628c
@ -82,6 +82,14 @@ export default {
|
|||||||
'canvasStyleData'
|
'canvasStyleData'
|
||||||
])
|
])
|
||||||
},
|
},
|
||||||
|
watch: {
|
||||||
|
componentData: {
|
||||||
|
handler(newVal, oldVla) {
|
||||||
|
this.restore()
|
||||||
|
},
|
||||||
|
deep: true
|
||||||
|
}
|
||||||
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
const _this = this
|
const _this = this
|
||||||
const erd = elementResizeDetectorMaker()
|
const erd = elementResizeDetectorMaker()
|
||||||
@ -119,6 +127,7 @@ export default {
|
|||||||
},
|
},
|
||||||
handleScaleChange() {
|
handleScaleChange() {
|
||||||
if (this.componentData) {
|
if (this.componentData) {
|
||||||
|
debugger
|
||||||
const componentData = deepCopy(this.componentData)
|
const componentData = deepCopy(this.componentData)
|
||||||
componentData.forEach(component => {
|
componentData.forEach(component => {
|
||||||
Object.keys(component.style).forEach(key => {
|
Object.keys(component.style).forEach(key => {
|
||||||
|
@ -77,7 +77,9 @@ export default {
|
|||||||
// 监听外部的样式变化
|
// 监听外部的样式变化
|
||||||
outStyle: {
|
outStyle: {
|
||||||
handler(newVal, oldVla) {
|
handler(newVal, oldVla) {
|
||||||
|
if (this.$refs[this.element.propValue.id]) {
|
||||||
this.$refs[this.element.propValue.id].chartResize()
|
this.$refs[this.element.propValue.id].chartResize()
|
||||||
|
}
|
||||||
},
|
},
|
||||||
deep: true
|
deep: true
|
||||||
}
|
}
|
||||||
|
@ -263,7 +263,13 @@ export default {
|
|||||||
},
|
},
|
||||||
showPanel(type) {
|
showPanel(type) {
|
||||||
if (this.showIndex === -1 || this.showIndex === type) {
|
if (this.showIndex === -1 || this.showIndex === type) {
|
||||||
this.$nextTick(() => (this.show = !this.show))
|
this.$nextTick(() => {
|
||||||
|
if (this.show) {
|
||||||
|
this.showIndex === -1
|
||||||
|
}
|
||||||
|
this.show = !this.show
|
||||||
|
}
|
||||||
|
)
|
||||||
}
|
}
|
||||||
this.showIndex = type
|
this.showIndex = type
|
||||||
},
|
},
|
||||||
|
@ -46,6 +46,14 @@ export default {
|
|||||||
return this.$store.state.panel.mainActiveName
|
return this.$store.state.panel.mainActiveName
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
watch: {
|
||||||
|
// 切换展示页面后 重新点击一下当前节点
|
||||||
|
'$store.state.panel.mainActiveName': function(newVal, oldVal) {
|
||||||
|
if (newVal === 'PanelMain' && this.lastActiveNode && this.lastActiveNodeData) {
|
||||||
|
this.activeNodeAndClickOnly(this.lastActiveNodeData)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.$store.dispatch('panel/setMainActiveName', 'PanelMain')
|
this.$store.dispatch('panel/setMainActiveName', 'PanelMain')
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user