feat(Loading): add text-color prop (#7806)

This commit is contained in:
晓晓晓晓晓丶vv
2020-12-29 19:52:18 +08:00
committed by GitHub
parent 81f15e868a
commit 680c93d103
6 changed files with 130 additions and 7 deletions

View File

@@ -25,6 +25,15 @@
{{ t('loading') }}
</van-loading>
</demo-block>
<demo-block :title="t('textColor')">
<van-loading size="24px" vertical color="#0094ff">
{{ t('loading') }}
</van-loading>
<van-loading size="24px" vertical text-color="#0094ff">
{{ t('loading') }}
</van-loading>
</demo-block>
</template>
<script lang="ts">
@@ -37,6 +46,7 @@ const i18n = {
size: '自定义大小',
color: '自定义颜色',
vertical: '垂直排列',
textColor: '自定义文本颜色',
},
'en-US': {
type: 'Type',
@@ -44,6 +54,7 @@ const i18n = {
size: 'Size',
color: 'Color',
vertical: 'Vertical',
textColor: 'Text Color',
},
};