重构:扩展默认主题的页脚配置

This commit is contained in:
2022-07-21 22:01:17 +08:00
parent a87b93dc0e
commit 92cc6fb8af
4 changed files with 74 additions and 4 deletions

View File

@@ -1,4 +1,5 @@
import DefaultTheme from 'vitepress/theme'
import MyLayout from "./components/MyLayout.vue"
import ElementPlus from 'element-plus'
import "element-plus/dist/index.css"
import * as ElIcons from '@element-plus/icons-vue'
@@ -11,6 +12,7 @@ import './custom.css'
export default {
...DefaultTheme,
Layout: MyLayout,
enhanceApp({ app }) {
// 全局注册ElementPlus的所有图标
for (const [key, elIcon] of Object.entries(ElIcons)) {