We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa074df commit ac92592Copy full SHA for ac92592
components/calendar/index.jsx
@@ -117,15 +117,14 @@ export default {
117
},
118
119
setValue (value, way) {
120
- if (!hasProp(this, 'value')) {
121
- this.setState({ sValue: value })
122
- }
123
if (way === 'select') {
124
this.$emit('select', value)
125
- this.$emit('change', value)
126
} else if (way === 'changePanel') {
127
this.onPanelChange(value, this.sMode)
128
}
+ if (!hasProp(this, 'value')) {
+ this.setState({ sValue: value })
+ }
129
130
131
setType (type) {
0 commit comments