细节优化
This commit is contained in:
@@ -135,13 +135,16 @@ const endDrag = (e) => {
|
||||
const getNewPos = () => {
|
||||
if (props.id === 7 || props.id === 9) {
|
||||
if (arrow.value.y > 1.4)
|
||||
return { left: "-10px", bottom: "calc(50% - 10px)" };
|
||||
return { left: "-12px", bottom: "calc(50% - 12px)" };
|
||||
} else {
|
||||
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 () => {
|
||||
|
||||
Reference in New Issue
Block a user