26 lines
738 B
JavaScript
26 lines
738 B
JavaScript
import Vue from 'vue'
|
||
import App from './App.vue'
|
||
import router from './router'
|
||
|
||
import ElementUI from 'element-ui'
|
||
import 'element-ui/lib/theme-chalk/index.css'
|
||
Vue.use(ElementUI)
|
||
// import Plugin from 'v-fit-cdcolumns';
|
||
// Vue.use(Plugin);
|
||
import * as echarts from 'echarts'
|
||
Vue.prototype.$echarts = echarts
|
||
|
||
import moment from 'moment'
|
||
//定义一个全局过滤器实现日期格式化
|
||
Vue.filter('datefmt',function (input,fmtstring) {//当input为时间戳时,需转为Number类型
|
||
// 使用momentjs这个日期格式化类库实现日期的格式化功能
|
||
return moment(input).format(fmtstring);
|
||
});
|
||
Vue.prototype.$moment = moment
|
||
|
||
Vue.config.productionTip = false
|
||
new Vue({
|
||
router,
|
||
render: h => h(App),
|
||
}).$mount('#app')
|