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: { watch: {
data (d) {
const { draw } = this
d && draw()
}
}, },
methods: { methods: {
async init () { async init () {

View File

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