diff --git a/src/views/Ranking/Couple/components/Barrage.vue b/src/views/Ranking/Couple/components/Barrage.vue index d19e367..c1ba1cd 100644 --- a/src/views/Ranking/Couple/components/Barrage.vue +++ b/src/views/Ranking/Couple/components/Barrage.vue @@ -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.2秒,持续时间不低于8秒) + duration: Math.min(5 + textLength * 0.1, 8), // 弹幕项持续时间(每字符增加0.2秒,持续时间不低于8秒) startPos: 0, // 弹幕项起始位置 } }