Vue 插件记录(yarn安装方式)

1. 打印插件:vue-print

安装: yarn add vue-print-nb
引入: import Print from 'vue-print-nb'
main.js: Vue.use(Print)

2. 滚动插件:vue-seamless-scroll

安装: yarn add vue-seamless-scroll
引入: import vueSeamlessScrol from 'vue-seamless-scroll'
main.js: Vue.use(vueSeamlessScrol)

链接: https://chenxuan1993.gitee.io/component-document/index_prod#/component/seamless-default

3. Echarts图表:vue-echarts

安装: yarn add vue-echarts
引入: import echarts from 'echarts'
main.js: Vue.prototype.$echarts = echarts

4. 二维码插件:QRCode

安装: yarn add qrcodejs2
引入: import QRCode from 'qrcodejs2'
main.js: Vue.use(QRCode)

5. 省市区选择插件:v-distpicker

安装: yarn add v-distpicker --save
引入: import Distpicker from 'v-distpicker'
main.js: Vue.use(Distpicker)

你可能感兴趣的:(月°)