[improvement] DropdownMenu: improve accessibility

This commit is contained in:
陈嘉涵
2019-05-25 17:01:35 +08:00
parent 1821889f01
commit 68537de73f
7 changed files with 35 additions and 25 deletions

View File

@@ -49,14 +49,16 @@ export default {
custom: '自定义样式',
button1: '弹出默认键盘',
button2: '弹出自定义键盘',
close: '完成'
close: '完成',
input: '输入'
},
'en-US': {
default: 'Default style',
custom: 'Custom style',
button1: 'Show Default Keyboard',
button2: 'Show Custom Keyboard',
close: 'Close'
close: 'Close',
input: 'Input'
}
},
@@ -68,10 +70,11 @@ export default {
methods: {
onInput(value) {
this.$toast('Input: ' + value);
this.$toast(`${this.$t('input')}: ${value}`);
},
onDelete() {
this.$toast('Delete');
this.$toast(this.$t('delete'));
}
}
};

View File

@@ -40,7 +40,7 @@ export default {
Toast(value);
},
onDelete() {
Toast('delete');
Toast('删除');
}
}
}