feat:dc , bottom-asset 以及 bootom-cabinet 替换 alert列

This commit is contained in:
zhangyu
2022-02-25 14:07:17 +08:00
parent c0c436c53a
commit 2bd1fe4df4
8 changed files with 117 additions and 22 deletions

View File

@@ -103,6 +103,20 @@ export default {
arr.unshift(obj)
}
return arr
},
tooltipHover (item, flag, e) {
if (e) {
const dom = e.currentTarget
const position = dom.getBoundingClientRect()
item.left = position.left
this.$set(item, 'left', position.left)
if (position.top > window.innerHeight / 2) {
this.$set(item, 'top', position.top - 55)
} else {
this.$set(item, 'top', position.top + 30)
}
this.$set(item, 'alertNumtooltipShow', flag)
}
}
},
watch: {