File tree 1 file changed +1
-13
lines changed
1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -4,18 +4,6 @@ import Radio from './Radio'
4
4
import { getOptionProps , filterEmpty , hasProp } from '../_util/props-util'
5
5
function noop ( ) { }
6
6
7
- function getCheckedValue ( children ) {
8
- let value = null
9
- let matched = false
10
- children . forEach ( ( radio ) => {
11
- if ( radio && radio . componentOptions && radio . componentOptions . propsData . checked ) {
12
- value = radio . componentOptions . propsData . value
13
- matched = true
14
- }
15
- } )
16
- return matched ? { value } : undefined
17
- }
18
-
19
7
export default {
20
8
name : 'ARadioGroup' ,
21
9
props : {
@@ -42,7 +30,7 @@ export default {
42
30
data ( ) {
43
31
const { value, defaultValue } = this
44
32
return {
45
- stateValue : value || defaultValue ,
33
+ stateValue : value === undefined ? defaultValue : value ,
46
34
}
47
35
} ,
48
36
model : {
You can’t perform that action at this time.
0 commit comments