mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-02 12:07:54 +08:00
fix: calendar change event call twice #82
This commit is contained in:
parent
4a51544bd6
commit
34f162b513
@ -117,15 +117,14 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
setValue (value, way) {
|
setValue (value, way) {
|
||||||
if (!hasProp(this, 'value')) {
|
|
||||||
this.setState({ sValue: value })
|
|
||||||
}
|
|
||||||
if (way === 'select') {
|
if (way === 'select') {
|
||||||
this.$emit('select', value)
|
this.$emit('select', value)
|
||||||
this.$emit('change', value)
|
|
||||||
} else if (way === 'changePanel') {
|
} else if (way === 'changePanel') {
|
||||||
this.onPanelChange(value, this.sMode)
|
this.onPanelChange(value, this.sMode)
|
||||||
}
|
}
|
||||||
|
if (!hasProp(this, 'value')) {
|
||||||
|
this.setState({ sValue: value })
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
setType (type) {
|
setType (type) {
|
||||||
|
Loading…
Reference in New Issue
Block a user