Skip to content

Commit

Permalink
fix: 修复初始化时弹幕容器宽度可能出错的 BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
hellodigua committed Dec 5, 2021
1 parent b984e89 commit ea97057
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 12 deletions.
15 changes: 6 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,19 113,16 @@ export default {
</script>
```

## TODO
## 讨论交流和 BUG 反馈

TODO 按优先级排列,如有其他需求请在 issues 中提出

- [ ] 弹幕移入和移出事件 -> 动工中
- [ ] 弹幕点击事件 -> pending
- [ ] loop 为 false 时,播放完毕应调整定时器频率 -> pending
- [ ] 顶部/底部弹幕 -> pending
- [ ] 从左向右播放 -> pending
- [ ] 时间控制器 - > pending
QQ 群:747809274

## Changelog

### v1.2.1

- fix: 修复初始化时弹幕容器宽度可能出错的 BUG

### v1.2.0

- speed 参数改为 speeds 参数,含义同样发生变化(主要是为了保证不同屏幕下弹幕移动速度相同)
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 1,7 @@
{
"name": "vue-danmaku",
"description": "基于Vue.js的弹幕交互组件",
"version": "1.2.0",
"version": "1.2.1",
"author": "hellodigua",
"private": false,
"main": "dist/vue-danmaku.umd.min.js",
Expand Down
4 changes: 3 additions & 1 deletion src/lib/main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 113,9 @@ export default {
},
created() {},
mounted() {
this.init()
this.$nextTick(() => {
this.init()
})
},
beforeDestroy() {
this.clear()
Expand Down

0 comments on commit ea97057

Please sign in to comment.