mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
feat: 添加隐藏图片、标题选项
This commit is contained in:
parent
2c1560a306
commit
31d4fbb15e
@ -10,3 +10,15 @@ body.hide-home-carousel-transparent {
|
||||
pointer-events: none;
|
||||
}
|
||||
}
|
||||
|
||||
body.hide-home-carousel-picture {
|
||||
.vui_carousel__slide {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
body.hide-home-carousel-footerText {
|
||||
.carousel-footer-text {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
@ -2,5 +2,10 @@
|
||||
|
||||
选项说明:
|
||||
|
||||
- `隐藏占位`:完全隐藏整个轮播区域
|
||||
- `透明化`:轮播内容不可见,不可点击
|
||||
- `隐藏轮播区域占位`:完全隐藏整个轮播区域
|
||||
- `透明化轮播区域`:完全透明化整个轮播区域,同时禁止点击打开链接
|
||||
- `隐藏轮播图片`:隐藏轮播图片,同时禁止点击图片打开链接
|
||||
- `隐藏图片标题`:隐藏图片标题,同时禁止点击标题打开链接
|
||||
|
||||
> 注:选项可以同时启用,但是最终显示效果以作用范围大的为准
|
||||
> 例如启用 `隐藏轮播区域占位`,由于整个区域都被隐藏,不管 `隐藏轮播图片`、`隐藏图片标题` 等选项是否启用都已经看不见了
|
||||
|
||||
@ -28,11 +28,19 @@ export const component = defineComponentMetadata({
|
||||
],
|
||||
options: {
|
||||
full: {
|
||||
displayName: '隐藏占位',
|
||||
displayName: '隐藏轮播区域占位',
|
||||
defaultValue: true,
|
||||
},
|
||||
transparent: {
|
||||
displayName: '透明化',
|
||||
displayName: '透明化轮播区域',
|
||||
defaultValue: false,
|
||||
},
|
||||
picture: {
|
||||
displayName: '隐藏轮播图片',
|
||||
defaultValue: false,
|
||||
},
|
||||
footerText: {
|
||||
displayName: '隐藏图片标题',
|
||||
defaultValue: false,
|
||||
},
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user