fixed some bug

This commit is contained in:
jiaming 2018-12-26 15:01:52 +08:00
parent 068a3a7de4
commit 081cf3a3ca
3 changed files with 9 additions and 9 deletions

Binary file not shown.

View File

@ -42,6 +42,11 @@ export default {
}
},
watch: {
data (d) {
const { draw } = this
d && draw()
}
},
methods: {
async init () {

View File

@ -44,7 +44,7 @@
<script>
export default {
name: 'scroll-board',
props: ['data', 'index', 'rowNum', 'titBG', 'oddBG', 'evenBG', 'columnWidth', 'textAlign', 'carousel'],
props: ['data', 'index', 'rowNum', 'titleBG', 'oddBG', 'evenBG', 'columnWidth', 'textAlign', 'carousel'],
data () {
return {
ref: `scroll-board-${(new Date()).getTime()}`,
@ -76,15 +76,10 @@ export default {
}
},
watch: {
data () {
// const { init, autoScrollHandler } = this
data (d) {
const { init } = this
// this.fade = false
// this.currentTopIndex = 0
// autoScrollHandler && clearTimeout(autoScrollHandler)
// init()
d && init()
}
},
methods: {