mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 10:44:59 +00:00
[improvement] DropdownMenu: improve accessibility
This commit is contained in:
@@ -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'));
|
||||
}
|
||||
}
|
||||
};
|
||||
|
@@ -40,7 +40,7 @@ export default {
|
||||
Toast(value);
|
||||
},
|
||||
onDelete() {
|
||||
Toast('delete');
|
||||
Toast('删除');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user