feat: 添加隐藏图片、标题选项

This commit is contained in:
wsgh0202 2025-07-12 02:11:18 +08:00
parent 2c1560a306
commit 31d4fbb15e
No known key found for this signature in database
GPG Key ID: F9658C3FEDCF6979
3 changed files with 29 additions and 4 deletions

View File

@ -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;
}
}

View File

@ -2,5 +2,10 @@
选项说明:
- `隐藏占位`:完全隐藏整个轮播区域
- `透明化`:轮播内容不可见,不可点击
- `隐藏轮播区域占位`:完全隐藏整个轮播区域
- `透明化轮播区域`:完全透明化整个轮播区域,同时禁止点击打开链接
- `隐藏轮播图片`:隐藏轮播图片,同时禁止点击图片打开链接
- `隐藏图片标题`:隐藏图片标题,同时禁止点击标题打开链接
> 注:选项可以同时启用,但是最终显示效果以作用范围大的为准
> 例如启用 `隐藏轮播区域占位`,由于整个区域都被隐藏,不管 `隐藏轮播图片`、`隐藏图片标题` 等选项是否启用都已经看不见了

View File

@ -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,
},
},