feat(过渡动画): 增加标签下划线移动动画

This commit is contained in:
hzj 2025-09-08 10:41:39 +08:00
parent bdd5d72bf7
commit cd5d6b2d56
2 changed files with 2 additions and 2 deletions

View File

@ -203,7 +203,7 @@ const underlineStyle = computed(() => {
position: "absolute",
left: `${activeTab.offsetLeft + activeTab.offsetWidth / 2 - 15 / 2}px`,
bottom: "0",
transition: "transform 0.3s ease, width 0.3s ease", //
transition: "left 0.3s ease", //
};
});

View File

@ -201,7 +201,7 @@ const underlineStyle = computed(() => {
position: "absolute",
left: `${activeTab.offsetLeft + activeTab.offsetWidth / 2 - 15 / 2}px`,
bottom: "0",
transition: "transform 0.3s ease, width 0.3s ease", //
transition: "left 0.3s ease", //
};
});