element全局设置按钮组件size
引入 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 })
相关推荐
wikiwater 2020-10-27
IdeaElements 2020-08-19
Sophiego 2020-08-16
Kakoola 2020-08-01
Kakoola 2020-07-29
ELEMENTS爱乐冬雨 2020-07-18
ELEMENTS爱乐小超 2020-07-04
ELEMENTS爱乐小超 2020-07-04
Kakoola 2020-06-28
Feastaw 2020-06-18
Wmeng0 2020-06-14
ELEMENTS爱乐冬雨 2020-06-14
云之高水之远 2020-06-14
哈喽elements 2020-06-14
Feastaw 2020-06-11
阿斌Elements 2020-06-11