Skip to content

Commit

Permalink
fix(components): 组件错误
Browse files Browse the repository at this point in the history
  • Loading branch information
luckyadam committed May 20, 2018
1 parent a4bb352 commit 9e6e2ca
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions packages/taro-components/src/components/radio/radio-group.js
Expand Up @@ -49,14 +49,14 @@ class RadioGroup extends Nerv.Component {
if (ch.name === 'Radio') {
if (ch.props.checked) {
this.state.value[i] = {
name: ch.props.value,
value: ch.props.children.props.children,
name: ch.props.name,
value: ch.props.value,
checked: true
}
} else {
this.state.value[i] = {
name: ch.props.value,
value: ch.props.children.props.children,
name: ch.props.name,
value: ch.props.value,
checked: false
}
}
Expand Down
8 changes: 4 additions & 4 deletions packages/taro-components/src/components/swiper/index.js
Expand Up @@ -132,7 +132,7 @@ class Swiper extends Nerv.Component {
enumerable: true,
value: type
})
this.props.bindchange(e)
this.props.onChange && this.props.onChange(e)
}, duration)
})
} else if (realIdx <= -1 && circular) {
Expand All @@ -152,7 +152,7 @@ class Swiper extends Nerv.Component {
enumerable: true,
value: type
})
this.props.bindchange(e)
this.props.onChange && this.props.onChange(e)
}, duration)
})
} else if (realIdx > -1 && realIdx < SwiperCount) {
Expand All @@ -170,7 +170,7 @@ class Swiper extends Nerv.Component {
enumerable: true,
value: type
})
this.props.bindchange(e)
this.props.onChange && this.props.onChange(e)
}, duration)
})
} else if (realIdx >= SwiperCount || realIdx < 0) {
Expand All @@ -191,7 +191,7 @@ class Swiper extends Nerv.Component {
enumerable: true,
value: type
})
this.props.bindchange(e)
this.props.onChange && this.props.onChange(e)
}, duration)
})
}
Expand Down

0 comments on commit 9e6e2ca

Please sign in to comment.