首页调整转速

This commit is contained in:
fengrong 2024-11-27 11:09:45 +08:00
parent 6aff68e237
commit 31ce1cb3a4

View File

@ -89,7 +89,13 @@ const props = defineProps({
const getAnimationStyle = (item) => {
const irotorspeed = item.attributeMap?.irotorspeed ?? 0
const animationDuration = 1 / irotorspeed * 20
let animationDuration;
if(irotorspeed>15){
animationDuration= 60 / irotorspeed
}else{
animationDuration = 60 / irotorspeed / 5
}
return {
'animation-duration': `${animationDuration}s`,
'animation-timing-function': 'linear',