细节优化

This commit is contained in:
kron
2025-11-03 10:49:13 +08:00
parent f95759f3e9
commit 1d086c83d4

View File

@@ -135,13 +135,16 @@ const endDrag = (e) => {
const getNewPos = () => { const getNewPos = () => {
if (props.id === 7 || props.id === 9) { if (props.id === 7 || props.id === 9) {
if (arrow.value.y > 1.4) if (arrow.value.y > 1.4)
return { left: "-10px", bottom: "calc(50% - 10px)" }; return { left: "-12px", bottom: "calc(50% - 12px)" };
} else { } else {
if (arrow.value.y > 0.88) { if (arrow.value.y > 0.88) {
return { left: "-10px", bottom: "calc(50% - 10px)" }; if (arrow.value.x < 0.05) {
return { left: "calc(100% - 12px)", bottom: "calc(100% - 12px)" };
}
return { left: "-12px", bottom: "calc(50% - 12px)" };
} }
} }
return { left: "calc(50% - 10px)", bottom: "-10px" }; return { left: "calc(50% - 12px)", bottom: "-12px" };
}; };
onMounted(async () => { onMounted(async () => {