lvbarragecom
v1.0.4
Published
vuebarrage
Downloads
2
Readme
lvbarragecom
vuebarrage
Build Setup
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# 一个基于vue 的弹幕插件。随机生成一些假数据,恭喜xxx抽中xx元
1.npm i --save lvbarragecom
2.main.js导入注册
import lvbarragecom from 'lvbarragecom'
Vue.use(lvbarragecom)
3.页面中使用
<lvbarragecom ref="barrage_com" />
// 开启
this.$refs.barrage_com.startBarrageList();
// 移除
this.$refs.barrage_com.removeTime();
4.自定义修改内容等,直接修改源码 createBarrageList()函数
For detailed explanation on how things work, consult the docs for vue-loader.