插件选项
大约 2 分钟
components
- 类型: - AvailableComponent[]- type AvailableComponent = | "ArtPlayer" | "AudioPlayer" | "Badge" | "BiliBili" | "CodePen" | "PDF" | "Share" | "StackBlitz" | "SiteInfo" | "VPBanner" | "VPCard" | "VidStack" | "VideoPlayer" | "YouTube";
- 默认值: - []
需要被注册的组件。
可接受的组件名称为:
- "ArtPlayer"
- "AudioPlayer"
- "Badge"
- "BiliBili"
- "CodePen"
- "PDF"
- "Share"
- "StackBlitz"
- "SiteInfo"
- "VPBanner"
- "VPCard"
- "VidStack"
- "VideoPlayer"
- "YouTube"
componentsOptions
组件的全局配置
componentsOptions.artPlayer
- 类型: ComponentsArtPlayerOptions
- 默认值: {}
- 详情:
componentsOptions.pdf.pdfjs
- 类型: string
- 必填: 否
- 详情:
PDFJS 查看器的路径
componentsOptions.share.services
- 类型: (string | ShareService)[]
- 详情:
分享服务
componentsOptions.share.twitterUserName
- 类型: string
- 必填: 否
Twitter 用户名。
locales
组件多语言配置
locales.pdf
- 类型: - PDFLocaleConfig- interface PDFLocaleData { /** * PDF 提示文字 * * @description 只有在浏览器不支持嵌入 PDF 且没有提供 PDFJS URL 时才会使用 * [url] 会被实际 PDF 链接替换 */ hint: string; } interface PDFLocaleConfig { [localePath: string]: PDFLocaleData; }
- 必填: 否 
PDF 组件国际化配置。
locales.siteInfo
- 类型: - SiteInfoLocaleConfig- interface SiteInfoLocaleData { /** * Source text * * 源代码文字 */ source: string; } interface SiteInfoLocaleConfig { [localePath: string]: SiteInfoLocaleData; }
- 必填: 否 
站点信息组件国际化配置。
locales.vidstack
- 类型: - VidstackLocaleConfig- interface VidstackLocaleData { "Caption Styles": string; "Captions look like this": string; "Closed-Captions Off": string; "Closed-Captions On": string; "Display Background": string; "Enter Fullscreen": string; "Enter PiP": string; "Exit Fullscreen": string; "Exit PiP": string; "Google Cast": string; "Keyboard Animations": string; "Seek Backward": string; "Seek Forward": string; "Skip To Live": string; "Text Background": string; Accessibility: string; AirPlay: string; Announcements: string; Audio: string; Auto: string; Boost: string; Captions: string; Chapters: string; Color: string; Connected: string; Connecting: string; Continue: string; Default: string; Disabled: string; Disconnected: string; Download: string; Family: string; Font: string; Fullscreen: string; LIVE: string; Loop: string; Mute: string; Normal: string; Off: string; Opacity: string; Pause: string; PiP: string; Play: string; Playback: string; Quality: string; Replay: string; Reset: string; Seek: string; Settings: string; Shadow: string; Size: string; Speed: string; Text: string; Track: string; Unmute: string; Volume: string; } interface VidstackLocaleConfig { [localePath: string]: VidstackLocaleData; }
- 必填: 否 
VidStack 组件国际化配置。
内置支持语言
- 简体中文 (zh-CN)
- 繁体中文 (zh-TW)
- 英文(美国) (en-US)
- 德语 (de-DE)
- 德语(澳大利亚) (de-AT)
- 俄语 (ru-RU)
- 乌克兰语 (uk-UA)
- 越南语 (vi-VN)
- 葡萄牙语(巴西) (pt-BR)
- 波兰语 (pl-PL)
- 法语 (fr-FR)
- 西班牙语 (es-ES)
- 斯洛伐克 (sk-SK)
- 日语 (ja-JP)
- 土耳其语 (tr-TR)
- 韩语 (ko-KR)
- 芬兰语 (fi-FI)
- 印尼语 (id-ID)
- 荷兰语 (nl-NL)
更新日志
2025/4/30 04:00
查看所有更新日志
- b331c-于
- 5a8ce-于
- dd4a8-于
- ea175-于
- 71048-于
- 9bd48-于
- a50a4-于
- 8f594-于
- 0739c-于
- 0f844-于
- dfc52-于
- d3b16-于
- 3d75e-于
- c887b-于
- 6136a-于
- 79d68-于
- 42090-于
- a7a28-于
- 12ecd-于
- e08cc-于
- 34f79-于
- 9b72f-于
- 760c6-于
- 8902d-于
- edf2d-于
- 869de-于
- 4104e-于
- 3cdac-于
- 1c52f-于
- 15ee5-于
- 7cd56-于
- 20622-于
- aafb1-于
- ae2d2-于
- 69cce-于
- 563e2-于
- 2a9e9-于
- d28b6-于
- 6639c-于
- 3c2c4-于
- 9fcf5-于
- 84771-于
- 2788c-于
- 5d62e-于
- 01612-于
- 80eb7-于
- 22c53-于
- 902fd-于
- f732e-于
- c10f5-于
- b51bf-于
- 5cc7a-于
- b34cb-于
- 48bca-于
- 07909-于
- 1e4eb-于
- 73de5-于
- 3e855-于
- 92c11-于
- 8dc9f-于
- 2d779-于
- e7f0c-于
- ba517-于
- 0cb0b-于