feat:dc , bottom-asset 以及 bootom-cabinet 替换 alert列
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user