mirror of
https://github.com/fankes/komari-theme-purcarte.git
synced 2025-10-18 19:39:22 +08:00
refactor(background): 简化背景功能为静态图片
动态背景切换功能因效果不佳暂时移除。本次重构将背景实现简化为仅支持单张静态图片
This commit is contained in:
@@ -18,24 +18,8 @@
|
||||
"name": "背景图片链接",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"default": "https://i.yon.li/w/682f73d97eade.png",
|
||||
"help": "多张图片请以英文逗号分隔(eg:https://img.com/1.png,https://test.com/2.jpg)"
|
||||
},
|
||||
{
|
||||
"key": "switchTime",
|
||||
"name": "切换时间(秒)",
|
||||
"type": "number",
|
||||
"required": false,
|
||||
"default": 10,
|
||||
"help": "背景图片切换的时间间隔,单位为秒(仅设置多张图片时生效)"
|
||||
},
|
||||
{
|
||||
"key": "transition",
|
||||
"name": "背景切换过渡效果",
|
||||
"type": "string",
|
||||
"required": false,
|
||||
"default": "background-image 0.8s ease-in-out",
|
||||
"help": "CSS 过渡效果,用于背景图片切换时的动画效果(仅设置多张图片时生效)"
|
||||
"default": "/assets/Moonlit-Scenery.webp",
|
||||
"help": "目前仅支持单张背景图片(eg: https://test.com/1.png)"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
Reference in New Issue
Block a user