[Improvement] Button: optimize loading (#1756)

This commit is contained in:
neverland
2018-09-05 17:47:15 +08:00
committed by GitHub
parent a2ff47f398
commit ca91a1b498
23 changed files with 72 additions and 136 deletions

View File

@@ -9,7 +9,7 @@
</demo-block>
<demo-block :title="$t('title2')">
<van-tabs sticky @scroll="subscribeSticky">
<van-tabs @scroll="onScroll">
<van-tab v-for="index in 8" :title="$t('tab') + index" :key="index">
{{ $t('content') }} {{ index }}
</van-tab>
@@ -113,7 +113,7 @@ export default {
this.$toast(title);
},
subscribeSticky(e) {
onScroll(e) {
console.log(e);
}
}