mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 18:54:24 +00:00
[improvement] Checkbox: improve accessibility
This commit is contained in:
@@ -4,7 +4,11 @@ import { CheckboxMixin } from '../mixins/checkbox';
|
||||
const [sfc, bem] = use('radio');
|
||||
|
||||
export default sfc({
|
||||
mixins: [CheckboxMixin('vanRadio', bem)],
|
||||
mixins: [CheckboxMixin({
|
||||
bem,
|
||||
role: 'radio',
|
||||
parent: 'vanRadio'
|
||||
})],
|
||||
|
||||
computed: {
|
||||
currentValue: {
|
||||
|
Reference in New Issue
Block a user