需求: 在使用vue+elementUI开发后台管理项目时,需要修改默认颜色,步骤如下。
步骤:
cd 你的项目文件夹名称
cnpm i element-theme -g
npm i element-theme-chalk -D
et -i
element-variables.scss
et
theme
import '../theme/index.css'
"element-ui/lib/theme-chalk/index.css"