lesson 7
This commit is contained in:
1 parent
0091c4cf16
commit
9e8aeb04a1
9 files changed
+836
-46
No files matched your search
@@ -1,17 +1,25 @@
|
||||
// https://vitepress.dev/guide/custom-theme
|
||||
import { h } from 'vue'
|
||||
import type { Theme } from 'vitepress'
|
||||
import DefaultTheme from 'vitepress/theme'
|
||||
import './style.css'
|
||||
import "./style.css";
|
||||
|
||||
import DefaultTheme from "vitepress/theme";
|
||||
// https://vitepress.dev/guide/custom-theme
|
||||
import { h } from "vue";
|
||||
|
||||
import AudioButton from "./components/AudioButton.vue";
|
||||
|
||||
import type { Theme } from "vitepress";
|
||||
import Details from "./components/Details.vue";
|
||||
import TTS from "./components/TTS.vue";
|
||||
export default {
|
||||
extends: DefaultTheme,
|
||||
Layout: () => {
|
||||
return h(DefaultTheme.Layout, null, {
|
||||
// https://vitepress.dev/guide/extending-default-theme#layout-slots
|
||||
})
|
||||
});
|
||||
},
|
||||
enhanceApp({ app, router, siteData }) {
|
||||
// ...
|
||||
}
|
||||
} satisfies Theme
|
||||
app.component("AudioButton", AudioButton);
|
||||
app.component("Details", Details);
|
||||
app.component("TTS", TTS);
|
||||
},
|
||||
} satisfies Theme;
|
||||
Reference in new issue
Block a user