重构:扩展默认主题的页脚配置
This commit is contained in:
@@ -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)) {
|
||||
|
Reference in New Issue
Block a user