[improvement] Tag: add size prop (#1949)

This commit is contained in:
neverland
2018-10-17 15:16:32 +08:00
committed by GitHub
parent 935108c15c
commit d252a66b77
6 changed files with 43 additions and 5 deletions
+10 -2
View File
@@ -34,6 +34,12 @@
<van-tag color="#7232dd">{{ $t('tag') }}</van-tag>
<van-tag color="#7232dd" plain>{{ $t('tag') }}</van-tag>
</demo-block>
<demo-block :title="$t('customSize')">
<van-tag type="danger">{{ $t('tag') }}</van-tag>
<van-tag type="danger" size="medium">{{ $t('tag') }}</van-tag>
<van-tag type="danger" size="large">{{ $t('tag') }}</van-tag>
</demo-block>
</demo-section>
</template>
@@ -44,13 +50,15 @@ export default {
plain: '空心样式',
round: '圆角样式',
mark: '标记样式',
customColor: '自定义颜色'
customColor: '自定义颜色',
customSize: '标签大小'
},
'en-US': {
plain: 'Plain style',
round: 'Round style',
mark: 'Mark style',
customColor: 'Custom Color'
customColor: 'Custom Color',
customSize: 'Custom Size'
}
}
};