chore(弹幕组件): 调整速度计算

This commit is contained in:
hzj 2026-01-20 17:12:57 +08:00
parent dd0b0028b8
commit 4a519eb4fa

View File

@ -124,11 +124,6 @@ const props = defineProps({
default: () => [],
},
speed: {
type: Number,
default: 80, //
},
maxItems: {
type: Number,
default: 4, //
@ -178,7 +173,7 @@ const getBarrageStyle = (item) => {
const generateBarrageProps = (item) => {
const textLength = item.content.length
return {
duration: Math.min(5 + textLength * 0.1, 8) * (100 / props.speed), // 0.28
duration: Math.min(5 + textLength * 0.1, 8), // 0.28
startPos: 0, //
}
}