新增:《关于笔者》
This commit is contained in:
@@ -1,9 +1,29 @@
|
||||
import DefaultTheme from 'vitepress/theme'
|
||||
import ElementPlus from 'element-plus'
|
||||
import "element-plus/dist/index.css"
|
||||
import * as ElIcons from '@element-plus/icons-vue'
|
||||
import Antd from 'ant-design-vue'
|
||||
import 'ant-design-vue/dist/antd.css'
|
||||
import * as AntdIcons from '@ant-design/icons-vue'
|
||||
|
||||
|
||||
import './custom.css'
|
||||
|
||||
export default {
|
||||
...DefaultTheme,
|
||||
enhanceApp({ app }) {
|
||||
// register global components
|
||||
// 全局注册ElementPlus的所有图标
|
||||
for (const [key, elIcon] of Object.entries(ElIcons)) {
|
||||
app.component(key, elIcon)
|
||||
}
|
||||
// 全局注册ElementPlus
|
||||
app.use(ElementPlus)
|
||||
|
||||
// 全局注册Ant Design of Vue的所有图标
|
||||
for (const [key, antdIcon] of Object.entries(AntdIcons)) {
|
||||
app.component(key, antdIcon)
|
||||
}
|
||||
// 全局注册Ant Design of Vue
|
||||
app.use(Antd)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user