element全局设置按钮组件size

sixthelement 2020-07-05

引入 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 })

相关推荐

ELEMENTS爱乐冬雨 / 0评论 2020-05-29