引入 Element 时,可以传入一个全局配置对象。该对象目前支持 size 与 zIndex 字段

Vue.use(ElementUI, { size: 'small', zIndex: 3000 })

import Vue from 'vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css';
import App from './App.vue'
import './assets/css/main.css'
import router from './router/index'
import store from './store/store'
import axios from 'axios'

Vue.config.productionTip = false
Vue.use(ElementUI, { size: 'small', zIndex: 3000 })

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-23
  • 2022-12-23
  • 2021-06-04
  • 2022-12-23
  • 2021-11-17
  • 2022-12-23
猜你喜欢
  • 2021-10-08
  • 2022-12-23
  • 2022-12-23
  • 2021-10-12
  • 2022-01-10
  • 2022-12-23
相关资源
相似解决方案