1.npm install echarts -S echarts (前端图表)
使用:
import Echarts from 'echarts'
Vue.prototype.echarts = Echarts
Vue.use(Echarts)
2.npm install highcharts -S highcharts (前端图表)
使用:
import HighCharts from 'highcharts'
Vue.prototype.Highcharts = HighCharts
Vue.use(HighCharts)
3.npm install element-ui -S element-ui (前端框架)
使用:import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(ElementUI)
npm install iview -S iview (Vuejs的前端框架)
使用:
import Iview from 'iview'
import 'iview/dist/styles/iview.css'
Vue.use(Iview)
4.npm install moment -S moment (时间转化工具)
使用:
import moment from "moment"
Vue.prototype.$moment = moment;
5.npm install