This repository has been archived on 2023-08-30. You can view files and clone it, but cannot push or open issues/pull-requests.
bytedo
/
wcui
Archived
1
0
Fork 0

修复单选/复选的状态

old
宇天 2021-04-15 18:49:36 +08:00
parent 8e50f43946
commit ec26d32d8e
1 changed files with 0 additions and 2 deletions

View File

@ -108,11 +108,9 @@ export default class RadioGroup {
if (k === 'readonly') {
k = 'readOnly'
}
console.log('变了', k, val, typeof val)
Array.from(this.children).forEach(it => {
if (it.tagName === 'WC-RADIO' && it.root) {
it[k] = val !== null
console.log('-----', k, it[k], val !== null, '-----')
}
})
break