|
@@ -25,29 +25,29 @@ const close = () => {
|
|
|
const hoverDiv = ref(null)
|
|
const hoverDiv = ref(null)
|
|
|
const hoverIndex = ref(-1)
|
|
const hoverIndex = ref(-1)
|
|
|
|
|
|
|
|
-const hoverDomLeftX = ref(0)
|
|
|
|
|
-const hoverDomRightX = ref(0)
|
|
|
|
|
-const hoverDomTopY = ref(0)
|
|
|
|
|
-const hoverDomBottomY = ref(0)
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-const handleMouseMove = (event: any) => {
|
|
|
|
|
- // const hoverv = hoverDiv; // 获取目标 div 元素
|
|
|
|
|
- // console.log(hoverv, hoverDiv, event)
|
|
|
|
|
- // 元素左边界
|
|
|
|
|
- hoverDomLeftX.value = event.target.x
|
|
|
|
|
- // 元素右边界
|
|
|
|
|
- hoverDomRightX.value = event.target.x + event.target.width
|
|
|
|
|
- // 元素上ba边界
|
|
|
|
|
- hoverDomTopY.value = event.target.y
|
|
|
|
|
- // 元素下边界
|
|
|
|
|
- hoverDomBottomY.value = event.target.y + event.target.height
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-const handleMouseOut = () => {
|
|
|
|
|
- isShowInfoBox.value = false
|
|
|
|
|
- hoverIndex.value = -1
|
|
|
|
|
-}
|
|
|
|
|
|
|
+// const hoverDomLeftX = ref(0)
|
|
|
|
|
+// const hoverDomRightX = ref(0)
|
|
|
|
|
+// const hoverDomTopY = ref(0)
|
|
|
|
|
+// const hoverDomBottomY = ref(0)
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+// const handleMouseMove = (event: any) => {
|
|
|
|
|
+// // const hoverv = hoverDiv; // 获取目标 div 元素
|
|
|
|
|
+// // console.log(hoverv, hoverDiv, event)
|
|
|
|
|
+// // 元素左边界
|
|
|
|
|
+// hoverDomLeftX.value = event.target.x
|
|
|
|
|
+// // 元素右边界
|
|
|
|
|
+// hoverDomRightX.value = event.target.x + event.target.width
|
|
|
|
|
+// // 元素上ba边界
|
|
|
|
|
+// hoverDomTopY.value = event.target.y
|
|
|
|
|
+// // 元素下边界
|
|
|
|
|
+// hoverDomBottomY.value = event.target.y + event.target.height
|
|
|
|
|
+// }
|
|
|
|
|
+
|
|
|
|
|
+// const handleMouseOut = () => {
|
|
|
|
|
+// isShowInfoBox.value = false
|
|
|
|
|
+// hoverIndex.value = -1
|
|
|
|
|
+// }
|
|
|
|
|
|
|
|
// var timer = null as any
|
|
// var timer = null as any
|
|
|
|
|
|