1
0
mirror of https://github.com/lana-k/sqliteviz.git synced 2025-12-08 02:58:54 +08:00

Add tooltips #9

This commit is contained in:
lana-k
2020-11-06 12:20:44 +01:00
parent 57c8fe5bc8
commit 7da1cb36fa
9 changed files with 158 additions and 50 deletions

17
src/mixins/tooltips.js Normal file
View File

@@ -0,0 +1,17 @@
export default {
data () {
return {
tooltipStyle: {}
}
},
methods: {
showTooltip (e) {
this.tooltipStyle = {
visibility: 'visible',
position: 'fixed',
top: e.clientY - 12 + 'px',
left: e.clientX + 12 + 'px'
}
}
}
}