✨ 迁移 Markdown 渲染并添加 Mermaid 预览和文章目录
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
const KEY: InjectionKey<Ref<number>> = Symbol('navbarHeight');
|
||||
|
||||
export function provideNavbarHeight(h: Ref<number>) {
|
||||
provide(KEY, h);
|
||||
}
|
||||
|
||||
export function injectNavbarHeight(): Ref<number> {
|
||||
return inject(KEY, ref(48));
|
||||
}
|
||||
Reference in New Issue
Block a user