Skip to content
This repository has been archived by the owner on Oct 27, 2021. It is now read-only.

Commit

Permalink
fix(taro-ui-vue): tabs missing scroll props
Browse files Browse the repository at this point in the history
  • Loading branch information
psaren committed Jul 26, 2020
1 parent f809c0e commit 24d4219
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/taro-ui-vue/src/components/tabs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ interface Style {
}

export default {
name: 'AtTabs',
mixins: [mixins],
props: {
customStyle: {
Expand Down Expand Up @@ -96,7 +95,7 @@ export default {
return { height }
},
rootCls() {
const { tabDirection, className } = this
const { tabDirection, className, scroll } = this
return classNames(
{
'at-tabs': true,
Expand Down Expand Up @@ -183,6 +182,7 @@ export default {
* @param {event} event
*/
handleClick(index, event) {
console.log(index, event)
this.onClick(index, event)
},
/**
Expand Down
7 changes: 5 additions & 2 deletions packages/taro-ui-vue/src/components/tabs/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@
</view>
</template>

<script lang='ts'>
<script>
import AtTabs from './index'
export default AtTabs
export default {
name: 'AtTabs',
mixins: [AtTabs]
}
</script>

0 comments on commit 24d4219

Please sign in to comment.