vue连线 插件_vue常用插件及安装

本文介绍了如何在Vue项目中安装和使用一系列常用的前端插件,包括Echarts、HighCharts、ElementUI、Iview等图表和框架,并提到了时间转化工具moment、CSS编辑器node-sass、轮播图插件swiper、状态管理库vuex、HTTP库axios、弹出框layui-layer以及图片查看器v-viewer的安装和基本使用方法。
摘要由CSDN通过智能技术生成

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值