mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
72 lines
1.6 KiB
TypeScript
72 lines
1.6 KiB
TypeScript
export interface ExtraOptionsPanelInitData {
|
|
header: {
|
|
title: {
|
|
/** 标题文字 */
|
|
text: string
|
|
/** 标题图标 */
|
|
icon: string
|
|
}
|
|
actions: {
|
|
/** 动作序号,从 0 开始增长,重复将会导致渲染异常 */
|
|
id: number
|
|
/** 动作标题 */
|
|
title: string
|
|
/** 动作图标 */
|
|
icon: string
|
|
/** 动作类名的后缀,前缀是 action- */
|
|
actionClassNameSuffix: string
|
|
}[]
|
|
}
|
|
content: {
|
|
options: {
|
|
/** 选项序号,从 0 开始增长,重复将会导致渲染异常 */
|
|
id: number
|
|
/** 选项标题 */
|
|
title: string
|
|
/** 选项介绍 */
|
|
description: string
|
|
/** 选项输入入口类名的后缀,前缀是 input- */
|
|
inputClassNameSuffix: string
|
|
}[]
|
|
}
|
|
}
|
|
|
|
export const defaultInitData: ExtraOptionsPanelInitData = {
|
|
header: {
|
|
title: {
|
|
text: '默认标题',
|
|
icon: 'mdi-format-font',
|
|
},
|
|
actions: [
|
|
{
|
|
id: 0,
|
|
title: '默认动作 0',
|
|
icon: 'mdi-cog-sync-outline',
|
|
actionClassNameSuffix: 'default-action-0',
|
|
},
|
|
{
|
|
id: 1,
|
|
title: '默认动作 1',
|
|
icon: 'mdi-eye-outline',
|
|
actionClassNameSuffix: 'default-action-1',
|
|
},
|
|
],
|
|
},
|
|
content: {
|
|
options: [
|
|
{
|
|
id: 0,
|
|
title: '默认选项 0',
|
|
description: '默认选项 0 的说明',
|
|
inputClassNameSuffix: 'default-option-0',
|
|
},
|
|
{
|
|
id: 1,
|
|
title: '默认选项 1',
|
|
description: '默认选项 1 的说明',
|
|
inputClassNameSuffix: 'default-option-1',
|
|
},
|
|
],
|
|
},
|
|
}
|