[Doc] translate AddressList & Contact (#437)

This commit is contained in:
neverland
2017-12-14 17:36:55 +08:00
committed by GitHub
parent 03bb3cc6ef
commit 5fe28b539c
9 changed files with 185 additions and 160 deletions
+11 -7
View File
@@ -43,10 +43,10 @@
export default {
i18n: {
'zh-CN': {
name: '张三'
},
'en-US': {
name: 'John Snow'
}
},
@@ -57,14 +57,18 @@ export default {
showList: false,
showEdit: false,
isEdit: false,
list: [{
name: '张三',
tel: '13000000000',
id: 0
}]
list: []
};
},
created() {
this.list.push({
name: this.$t('name'),
tel: '13000000000',
id: 0
});
},
computed: {
cardType() {
return this.chosenContactId !== null ? 'edit' : 'add';