Bilibili-Evolved/registry/lib/components/video/download/index.ts
2021-12-10 22:55:38 +08:00

27 lines
780 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,
}