element-ui 引入自定義主題

1、首先使用主題工具修改主題,並下載解壓,得到一個index.css

 

2、引入自定義主題,在main.js中引用這個css既可

和引入默認主題一樣,在代碼裏直接引用「在線主題編輯器」或「命令行工具」生成的主題的 theme/index.css 文件即可。

import '../theme/index.css'
import ElementUI from 'element-ui'
import Vue from 'vue'

Vue.use(ElementUI)
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章