[improvement] Checkbox: improve accessibility

This commit is contained in:
陈嘉涵
2019-05-24 17:07:52 +08:00
parent b6e89016b3
commit 25002828f9
15 changed files with 80 additions and 48 deletions

View File

@@ -4,7 +4,11 @@ import { CheckboxMixin } from '../mixins/checkbox';
const [sfc, bem] = use('checkbox');
export default sfc({
mixins: [CheckboxMixin('vanCheckbox', bem)],
mixins: [CheckboxMixin({
bem,
role: 'checkbox',
parent: 'vanCheckbox'
})],
computed: {
checked: {