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)
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)
項目中需要按照不同的媒體類型,展示不同的表頭且數據字段也不同。可以增加不同key值解決v-if不生效問題。 <el-table-column prop="author" align="center"
修改ejs文件 將<% if (!process.browser) {%> 改成: <% if (!require(‘process’).browser) { %>