mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
36 lines
885 B
TypeScript
36 lines
885 B
TypeScript
import { wrapSwitchOptions } from '@/components/switch-options'
|
|
|
|
export const component = wrapSwitchOptions({
|
|
name: 'hideHomeCarouselOptions',
|
|
switches: {
|
|
full: {
|
|
displayName: '隐藏轮播区域占位',
|
|
defaultValue: true,
|
|
},
|
|
transparent: {
|
|
displayName: '透明化轮播区域',
|
|
defaultValue: false,
|
|
},
|
|
picture: {
|
|
displayName: '隐藏轮播图片',
|
|
defaultValue: false,
|
|
},
|
|
footerText: {
|
|
displayName: '隐藏图片标题',
|
|
defaultValue: false,
|
|
},
|
|
},
|
|
})({
|
|
name: 'hideHomeCarousel',
|
|
displayName: '隐藏首页轮播图',
|
|
entry: null,
|
|
tags: [componentsTags.style],
|
|
urlInclude: [/^https:\/\/www\.bilibili\.com\/$/, /^https:\/\/www\.bilibili\.com\/index\.html$/],
|
|
instantStyles: [
|
|
{
|
|
name: 'hide-home-carousel',
|
|
style: () => import('./hide-home-carousel.scss'),
|
|
},
|
|
],
|
|
})
|