mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
17 lines
605 B
TypeScript
17 lines
605 B
TypeScript
import type { Component } from 'vue'
|
|
import { defineAsyncComponent } from 'vue'
|
|
|
|
import type { PluginMetadata } from '@/plugins/plugin'
|
|
|
|
export const plugin: PluginMetadata = {
|
|
name: 'vLoading.reimu',
|
|
displayName: '加载提示 - 灵梦油库里',
|
|
description:
|
|
'用灵梦油库里代替脚本的所有 "加载中" 提示, 油库里素材来自[东方我乐多从志](https://cn.touhougarakuta.com/).',
|
|
setup: ({ addData }) => {
|
|
addData('vLoading', (config: { content: Component | string }) => {
|
|
config.content = defineAsyncComponent(() => import('./ReimuLoading.vue'))
|
|
})
|
|
},
|
|
}
|