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 node-sass -S node-sass (css编辑器)
npm install sass-loader-S sass-loader
6.npm install babel-polyfill -S babel-polyfill (兼容低版本浏览器)
使用:
import 'babel-polyfill'
7.npm install swiper -S (前端轮播图插件)
使用:
import Swiper from ‘swiper’;
import ‘swiper/dist/css/swiper.min.css’;
8.npm install vuex -S vuex (仓库管理器)
使用:
9.npm install axios -S axios (相当于ajax)
使用:
import axios from 'axios'
Vue.prototype.$ajax=axios
10.npm install qs -S qs (调用后端接口时要用post)
使用:
import qs from 'qs'; (调用后端接口时要用post)
11.npm install layui-layer -S layui-layer (弹出框)
使用:
import layer from 'layui-layer'