mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
27 lines
607 B
TypeScript
27 lines
607 B
TypeScript
import { ComponentMetadata } from '@/components/types'
|
|
import { hasVideo } from '@/core/spin-query'
|
|
|
|
export const component: ComponentMetadata = {
|
|
name: 'downloadVideo',
|
|
displayName: '下载视频',
|
|
description: '在功能面板中添加下载视频支持.',
|
|
entry: none,
|
|
reload: none,
|
|
unload: none,
|
|
widget: {
|
|
component: () => import('./Widget.vue').then(m => m.default),
|
|
condition: () => hasVideo(),
|
|
},
|
|
tags: [
|
|
componentsTags.video,
|
|
],
|
|
options: {
|
|
basicConfig: {
|
|
defaultValue: {},
|
|
displayName: '基础配置',
|
|
hidden: true,
|
|
},
|
|
},
|
|
// plugin,
|
|
}
|