Introduce code into the main.js file
- Ele.me global introduction method
Vue.use(Element, {
size: Cookies.get('size') || 'medium' // set element-ui default size
})
Vue.use(ElementUI, {
size: 'small' })
- Ele.me introduced on demand
Vue.prototype.$ELEMENT = {
size: 'small' }