docs: remove demo-section

This commit is contained in:
chenjiahan
2020-10-22 16:44:19 +08:00
parent 862c3ec1a4
commit e8244c44e1
69 changed files with 2732 additions and 2980 deletions
+30 -32
View File
@@ -1,39 +1,37 @@
<template>
<demo-section>
<demo-block :title="t('basicUsage')">
<van-empty :description="t('description')" />
</demo-block>
<demo-block :title="t('basicUsage')">
<van-empty :description="t('description')" />
</demo-block>
<demo-block :title="t('imageType')">
<van-tabs v-model="active">
<van-tab name="error" :title="t('error')">
<van-empty image="error" :description="t('description')" />
</van-tab>
<van-tab name="network" :title="t('network')">
<van-empty image="network" :description="t('description')" />
</van-tab>
<van-tab name="search" :title="t('search')">
<van-empty image="search" :description="t('description')" />
</van-tab>
</van-tabs>
</demo-block>
<demo-block :title="t('imageType')">
<van-tabs v-model="active">
<van-tab name="error" :title="t('error')">
<van-empty image="error" :description="t('description')" />
</van-tab>
<van-tab name="network" :title="t('network')">
<van-empty image="network" :description="t('description')" />
</van-tab>
<van-tab name="search" :title="t('search')">
<van-empty image="search" :description="t('description')" />
</van-tab>
</van-tabs>
</demo-block>
<demo-block :title="t('customImage')">
<van-empty
class="custom-image"
image="https://img.yzcdn.cn/vant/custom-empty-image.png"
:description="t('description')"
/>
</demo-block>
<demo-block :title="t('customImage')">
<van-empty
class="custom-image"
image="https://img.yzcdn.cn/vant/custom-empty-image.png"
:description="t('description')"
/>
</demo-block>
<demo-block :title="t('bottomContent')">
<van-empty :description="t('description')">
<van-button round type="danger" class="bottom-button">
{{ t('button') }}
</van-button>
</van-empty>
</demo-block>
</demo-section>
<demo-block :title="t('bottomContent')">
<van-empty :description="t('description')">
<van-button round type="danger" class="bottom-button">
{{ t('button') }}
</van-button>
</van-empty>
</demo-block>
</template>
<script>