feat(ContactCard): refactor style & add new prop show-set-default (#5083)

This commit is contained in:
rex
2019-11-22 17:14:11 +08:00
committed by neverland
parent 1e836bf461
commit 23c419973a
7 changed files with 107 additions and 34 deletions
+6 -2
View File
@@ -28,6 +28,8 @@
:lazy-render="false"
>
<van-contact-edit
show-set-default
:set-default-label="$t('defaultLabel')"
:contact-info="editingContact"
:is-edit="isEdit"
@save="onSave"
@@ -51,10 +53,12 @@
export default {
i18n: {
'zh-CN': {
name: '张三'
name: '张三',
defaultLabel: '设为默认联系人'
},
'en-US': {
name: 'John Snow'
name: 'John Snow',
defaultLabel: 'Set as the default contact'
}
},