Skip to content

Commit fef0033

Browse files
committed
fix: lint fix
1 parent bb2e9bd commit fef0033

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/webpack-plugin/lib/runtime/components/react/mpx-progress.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,22 +156,22 @@ const Progress = forwardRef<
156156
// forwards 模式:使用上次记录的百分比作为起始位置
157157
startPercent = lastPercent
158158
}
159-
159+
160160
// 计算动画持续时间
161161
const percentDiff = Math.abs(targetPercent - startPercent)
162162
const animationDuration = percentDiff * duration
163-
163+
164164
// 创建动画完成回调
165165
const onAnimationFinished = () => {
166166
triggerActiveEnd(targetPercent)
167167
}
168-
168+
169169
// 执行动画
170170
startProgressAnimation(targetPercent, startPercent, animationDuration, onAnimationFinished)
171171
} else {
172172
progressWidth.value = targetPercent
173173
}
174-
174+
175175
setLastPercent(targetPercent)
176176
}, [percent, active, activeMode, duration, bindactiveend])
177177

0 commit comments

Comments
 (0)