forked from github/dataease
refactor: 优化标题修改,防止修改标题时切换视图出现修改标题与视图不对应情况
This commit is contained in:
parent
cfd30ffa87
commit
19128021f9
@ -815,11 +815,13 @@ export default {
|
|||||||
e.stopPropagation()
|
e.stopPropagation()
|
||||||
// 此处阻止冒泡 但是外层需要获取pageX pageY
|
// 此处阻止冒泡 但是外层需要获取pageX pageY
|
||||||
this.element.auxiliaryMatrix && this.$emit('elementMouseDown', e)
|
this.element.auxiliaryMatrix && this.$emit('elementMouseDown', e)
|
||||||
this.$store.commit('setCurComponent', { component: this.element, index: this.index })
|
|
||||||
// 移动端组件点击自动置顶
|
// 移动端组件点击自动置顶
|
||||||
this.mobileLayoutStatus && this.$store.commit('topComponent')
|
this.mobileLayoutStatus && this.$store.commit('topComponent')
|
||||||
eventsFor = events.mouse
|
eventsFor = events.mouse
|
||||||
this.elementDown(e)
|
this.elementDown(e)
|
||||||
|
this.$nextTick(()=>{
|
||||||
|
this.$store.commit('setCurComponent', { component: this.element, index: this.index })
|
||||||
|
})
|
||||||
},
|
},
|
||||||
// 元素按下
|
// 元素按下
|
||||||
elementDown(e) {
|
elementDown(e) {
|
||||||
|
@ -1817,9 +1817,9 @@ export default {
|
|||||||
viewEditSave(this.panelInfo.id, viewSave)
|
viewEditSave(this.panelInfo.id, viewSave)
|
||||||
|
|
||||||
if (modifyName === 'color') {
|
if (modifyName === 'color') {
|
||||||
bus.$emit('view-in-cache', { type: 'styleChange', viewId: this.param.id, viewInfo: view, refreshProp: 'customAttr' })
|
bus.$emit('view-in-cache', { type: 'styleChange', viewId: this.view.id, viewInfo: view, refreshProp: 'customAttr' })
|
||||||
} else {
|
} else {
|
||||||
bus.$emit('view-in-cache', { type: 'styleChange', viewId: this.param.id, viewInfo: view })
|
bus.$emit('view-in-cache', { type: 'styleChange', viewId: this.view.id, viewInfo: view })
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user