Commit ef8430a0 authored by 赵炳峰's avatar 赵炳峰

master

parent 59931b45
......@@ -3,15 +3,16 @@
<v-header :title="title">
<span slot="action" class="header-slot pull-right">xxx</span>
</v-header>
<div class="content" ref="scrollWrapper">
<div>Template</div>
<div class="content" ref="contentWrapper">
<div>
<div>content</div>
</div>
</div>
</div>
</template>
<script>
import BScroll from 'better-scroll'
import { } from 'vux'
export default {
name: 'Template',
components: {
......@@ -23,24 +24,15 @@ export default {
}
},
methods: {
init () {
},
initBScroll () {
this.$nextTick(() => {
this.scroll = new BScroll(this.$refs.scrollWrapper, {
scrollX: true,
click: true,
startX: 0
})
})
}
},
created () {
},
mounted () {
this.init()
this.initBScroll()
this.$nextTick(() => {
this.scroll = new BScroll(this.$refs.contentWrapper, {
click: true
})
})
}
}
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment