mirror of
https://github.com/lana-k/sqliteviz.git
synced 2025-12-06 18:18:53 +08:00
avoid unnecessary $set
This commit is contained in:
@@ -161,7 +161,7 @@ export default {
|
|||||||
onMouseMove (event) {
|
onMouseMove (event) {
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
this.dragging = true
|
this.dragging = true
|
||||||
this.$set(this.movableSplitter, 'visibility', 'visible')
|
this.movableSplitter.visibility = 'visible'
|
||||||
this.moveSplitter(event)
|
this.moveSplitter(event)
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -195,7 +195,7 @@ export default {
|
|||||||
}
|
}
|
||||||
const offset = splitter.calculateOffset(event, splitterInfo)
|
const offset = splitter.calculateOffset(event, splitterInfo)
|
||||||
const dir = this.horizontal ? 'top' : 'left'
|
const dir = this.horizontal ? 'top' : 'left'
|
||||||
this.$set(this.movableSplitter, dir, offset)
|
this.movableSplitter[dir] = offset
|
||||||
},
|
},
|
||||||
|
|
||||||
togglePane (pane) {
|
togglePane (pane) {
|
||||||
|
|||||||
@@ -8,12 +8,12 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
showTooltip (e) {
|
showTooltip (e) {
|
||||||
this.$set(this.tooltipStyle, 'top', e.clientY - 12 + 'px')
|
this.tooltipStyle.top = e.clientY - 12 + 'px'
|
||||||
this.$set(this.tooltipStyle, 'left', e.clientX + 12 + 'px')
|
this.tooltipStyle.left = e.clientX + 12 + 'px'
|
||||||
this.$set(this.tooltipStyle, 'visibility', 'visible')
|
this.tooltipStyle.visibility = 'visible'
|
||||||
},
|
},
|
||||||
hideTooltip () {
|
hideTooltip () {
|
||||||
this.$set(this.tooltipStyle, 'visibility', 'hidden')
|
this.tooltipStyle.visibility = 'hidden'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user