Skip to content

Commit

Permalink
fix(components-qa): 修复快应用 ScrollView 组件报错,close #3757
Browse files Browse the repository at this point in the history
  • Loading branch information
luckyadam committed Jul 10, 2019
1 parent 49c060a commit 297841e
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions packages/taro-components-qa/src/components/scroll-view/index.ux
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<list
@scroll="onScroll"
<list
@scroll="onScroll"
@scrollbottom="onScrollToLower"
@scrolltop="onScrollToUpper"
class="{{classname}}"
Expand Down Expand Up @@ -37,34 +37,33 @@
default: false
}
},

onInit () {
if (scrolly) {
this.flexDirection = 'column'
} else {
this.flexDirection = 'row'
}
},

onScroll () {
this.$emit('scroll', e)
},

onScrollToLower() {
this.$emit('scrollToLower', e)
}
},

onScrollToUpper () {
this.$emit('scrollToLower', e)
}
},

handleClick (e) {
this.$emit('click', e)
}
}
</script>

<style>

</style>

0 comments on commit 297841e

Please sign in to comment.