mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Use type Component as vue component in reimu/index.ts
This commit is contained in:
parent
8cc0e79ed8
commit
c5eeb6335c
@ -1,4 +1,6 @@
|
|||||||
import type { Executable, ImportedVueComponent } from '@/core/common-types'
|
import type { Component } from 'vue'
|
||||||
|
import { defineAsyncComponent } from 'vue'
|
||||||
|
|
||||||
import type { PluginMetadata } from '@/plugins/plugin'
|
import type { PluginMetadata } from '@/plugins/plugin'
|
||||||
|
|
||||||
export const plugin: PluginMetadata = {
|
export const plugin: PluginMetadata = {
|
||||||
@ -7,8 +9,8 @@ export const plugin: PluginMetadata = {
|
|||||||
description:
|
description:
|
||||||
'用灵梦油库里代替脚本的所有 "加载中" 提示, 油库里素材来自[东方我乐多从志](https://cn.touhougarakuta.com/).',
|
'用灵梦油库里代替脚本的所有 "加载中" 提示, 油库里素材来自[东方我乐多从志](https://cn.touhougarakuta.com/).',
|
||||||
setup: ({ addData }) => {
|
setup: ({ addData }) => {
|
||||||
addData('vLoading', (config: { content: Executable<ImportedVueComponent> | string }) => {
|
addData('vLoading', (config: { content: Component | string }) => {
|
||||||
config.content = () => import('./ReimuLoading.vue').then(m => m.default)
|
config.content = defineAsyncComponent(() => import('./ReimuLoading.vue'))
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user