fix: rate `autoFocus` not work and `blur` error
parent
c1b353bee1
commit
15f36f344a
|
@ -13,6 +13,7 @@ export const RateProps = {
|
|||
allowClear: PropTypes.bool,
|
||||
disabled: PropTypes.bool,
|
||||
character: PropTypes.any,
|
||||
autoFocus: PropTypes.bool,
|
||||
}
|
||||
|
||||
export default {
|
||||
|
|
|
@ -149,11 +149,11 @@ export default {
|
|||
this.$refs.rateRef.focus()
|
||||
}
|
||||
},
|
||||
// blur () {
|
||||
// if (!this.disabled) {
|
||||
// this.$refs.rateRef.blur()
|
||||
// }
|
||||
// },
|
||||
blur () {
|
||||
if (!this.disabled) {
|
||||
this.$refs.rateRef.blur()
|
||||
}
|
||||
},
|
||||
changeValue (value) {
|
||||
if (!hasProp(this, 'value')) {
|
||||
this.setState({
|
||||
|
|
Loading…
Reference in New Issue