首页调整转速
This commit is contained in:
parent
6aff68e237
commit
31ce1cb3a4
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user