[Doc] optimzie demo display (#626)

This commit is contained in:
neverland
2018-02-08 15:58:27 +08:00
committed by GitHub
parent 6ed43f8c75
commit 267390212b
10 changed files with 139 additions and 55 deletions

View File

@@ -1,11 +1,11 @@
<template>
<van-pull-refresh v-model="isLoading" @refresh="onRefresh">
<demo-section name="pull-refresh" background="#fff">
<demo-section name="pull-refresh">
<van-pull-refresh v-model="isLoading" @refresh="onRefresh">
<demo-block :title="$t('basicUsage')">
<p>{{ $t('text') }}: {{ count }}</p>
</demo-block>
</demo-section>
</van-pull-refresh>
</van-pull-refresh>
</demo-section>
</template>
<script>
@@ -42,6 +42,13 @@ export default {
<style lang="postcss">
.demo-pull-refresh {
.van-pull-refresh {
&,
&__track {
height: 100%;
}
}
p {
margin: 10px 0 0 15px;
}