docs(Loading): add size prop demo

This commit is contained in:
陈嘉涵
2020-01-24 10:12:19 +08:00
parent fde1ed11d4
commit e8f528877f
6 changed files with 39 additions and 4 deletions

View File

@@ -10,6 +10,11 @@
<van-loading type="spinner" color="#1989fa" />
</demo-block>
<demo-block :title="$t('size')">
<van-loading size="24" />
<van-loading type="spinner" size="24" />
</demo-block>
<demo-block :title="$t('text')">
<van-loading size="24px">
{{ $t('loading') }}
@@ -29,14 +34,16 @@ export default {
i18n: {
'zh-CN': {
type: '加载类型',
color: '自定义颜色',
text: '加载文案',
size: '自定义大小',
color: '自定义颜色',
vertical: '垂直排列',
},
'en-US': {
type: 'Type',
color: 'Color',
text: 'Text',
size: 'Size',
color: 'Color',
vertical: 'Vertical',
},
},