diff --git a/packages/taro-components/src/components/radio/radio-group.js b/packages/taro-components/src/components/radio/radio-group.js index b6cc0a16412f..d23d79e82088 100644 --- a/packages/taro-components/src/components/radio/radio-group.js +++ b/packages/taro-components/src/components/radio/radio-group.js @@ -1,5 +1,5 @@ import Nerv from 'nervjs' - +import _ from '../../../utils/parse-type' class RadioGroup extends Nerv.Component { constructor () { super(...arguments) @@ -14,7 +14,9 @@ class RadioGroup extends Nerv.Component { toggleChange (e, i) { let checkValue let _value = this.radioValue.map((item, idx) => { - if (e.target.value === item.value) { + let curValue = item.value + if (_.isNumber(item.value)) curValue = item.value.toString() + if (e.target.value === curValue) { checkValue = item.value return { name: item.name,