修复弹幕显示区域默认值未知的问题
This commit is contained in:
@@ -267,7 +267,7 @@ export const DEFAULT_DANMAKU_SETTINGS: DanmakuSettings = {
|
||||
fontSize: 25,
|
||||
speed: 5,
|
||||
marginTop: 10,
|
||||
marginBottom: 50,
|
||||
marginBottom: '50%',
|
||||
maxlength: 100,
|
||||
filterRules: [],
|
||||
unlimited: false,
|
||||
|
||||
@@ -52,7 +52,7 @@ export interface DanmakuSettings {
|
||||
fontSize: number; // 字体大小
|
||||
speed: number; // 弹幕速度 (5-20)
|
||||
marginTop: number; // 顶部边距
|
||||
marginBottom: number; // 底部边距
|
||||
marginBottom: number | string; // 底部边距(数字或百分比字符串如"50%")
|
||||
maxlength: number; // 最大弹幕数
|
||||
filterRules: string[]; // 过滤规则(正则表达式)
|
||||
unlimited: boolean; // 无限弹幕
|
||||
|
||||
Reference in New Issue
Block a user