修复弹幕显示区域默认值未知的问题

This commit is contained in:
mtvpls
2026-04-14 22:24:04 +08:00
parent 0e41ba2661
commit 5fd8b4d595
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -267,7 +267,7 @@ export const DEFAULT_DANMAKU_SETTINGS: DanmakuSettings = {
fontSize: 25, fontSize: 25,
speed: 5, speed: 5,
marginTop: 10, marginTop: 10,
marginBottom: 50, marginBottom: '50%',
maxlength: 100, maxlength: 100,
filterRules: [], filterRules: [],
unlimited: false, unlimited: false,
+1 -1
View File
@@ -52,7 +52,7 @@ export interface DanmakuSettings {
fontSize: number; // 字体大小 fontSize: number; // 字体大小
speed: number; // 弹幕速度 (5-20) speed: number; // 弹幕速度 (5-20)
marginTop: number; // 顶部边距 marginTop: number; // 顶部边距
marginBottom: number; // 底部边距 marginBottom: number | string; // 底部边距(数字或百分比字符串如"50%"
maxlength: number; // 最大弹幕数 maxlength: number; // 最大弹幕数
filterRules: string[]; // 过滤规则(正则表达式) filterRules: string[]; // 过滤规则(正则表达式)
unlimited: boolean; // 无限弹幕 unlimited: boolean; // 无限弹幕