import { Select, Option, OptionGroup, Input, Tree, Dialog, Row, Col ,Button } from 'element-ui'
const element = {
install: function (Vue) {
Vue.use(Select)
Vue.use(Option)
Vue.use(OptionGroup)
Vue.use(Input)
Vue.use(Tree)
Vue.use(Dialog)
Vue.use(Row)
Vue.use(Col)
Vue.use(Button)
}
}
export default element
二、在main.js 引入 css还是要全局引入的
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import 'element-ui/lib/theme-chalk/index.css'
import element from "./elementui/element"
Vue.config.productionTip = false
Vue.use(element)
new Vue({
router,
store,
render: h => h(App)
}).$mount('#app')