33 lines
775 B
JavaScript
33 lines
775 B
JavaScript
import Vue from 'vue'
|
||
import App from '../src/App.vue'
|
||
|
||
|
||
//基于element组件封装,引入element组件库
|
||
import { Input, Select, Option, OptionGroup, DatePicker, Tabs, TabPane, Pagination, Dialog, Button, Form, FormItem, Popover } from 'element-ui';
|
||
import 'element-ui/lib/theme-chalk/index.css';
|
||
import '../src/styles/element-variables.scss'//element 组件样式文件
|
||
|
||
Vue.use(Input);
|
||
Vue.use(Select);
|
||
Vue.use(OptionGroup);
|
||
Vue.use(Option);
|
||
Vue.use(DatePicker);
|
||
Vue.use(Tabs);
|
||
Vue.use(TabPane);
|
||
Vue.use(Pagination)
|
||
Vue.use(Dialog)
|
||
Vue.use(Button)
|
||
Vue.use(Form)
|
||
Vue.use(FormItem)
|
||
Vue.use(Popover)
|
||
|
||
// 导入组件库
|
||
import erp_element_ui from '../packages'
|
||
Vue.config.productionTip = false
|
||
Vue.use(erp_element_ui)
|
||
|
||
|
||
new Vue({
|
||
render: h => h(App),
|
||
}).$mount('#app')
|