[new feature] Button: add color prop (#4124)

This commit is contained in:
neverland
2019-08-15 20:18:13 +08:00
committed by GitHub
parent 3f39166cbc
commit f130580501
5 changed files with 63 additions and 6 deletions
+16 -2
View File
@@ -138,6 +138,18 @@
to="index"
/>
</demo-block>
<demo-block :title="$t('customColor')">
<van-button
color="#7232dd"
:text="$t('customColor')"
/>
<van-button
plain
color="#7232dd"
:text="$t('customColor')"
/>
</demo-block>
</demo-section>
</template>
@@ -167,7 +179,8 @@ export default {
loadingText: '加载中...',
router: '页面导航',
urlRoute: 'URL 跳转',
vueRoute: '路由跳转'
vueRoute: '路由跳转',
customColor: '自定义颜色'
},
'en-US': {
type: 'Type',
@@ -192,7 +205,8 @@ export default {
loadingText: 'Loading...',
router: 'Router',
urlRoute: 'URL',
vueRoute: 'Vue Router'
vueRoute: 'Vue Router',
customColor: 'Custom Color'
}
}
};