Commit 9be5a40b authored by pengchongfu's avatar pengchongfu Committed by cinwell.li

DatePicker: set default value when clear, fix #4135 (#4186)

parent 3c7addd8
......@@ -324,6 +324,7 @@ export default {
this.picker.value = parsedValue;
}
} else {
this.$emit('input', value);
this.picker.value = value;
}
this.$forceUpdate();
......@@ -448,7 +449,7 @@ export default {
this.picker.resetView && this.picker.resetView();
this.picker.$on('dodestroy', this.doDestroy);
this.picker.$on('pick', (date, visible = false) => {
this.picker.$on('pick', (date = '', visible = false) => {
this.$emit('input', date);
this.pickerVisible = this.picker.visible = visible;
this.picker.resetView && this.picker.resetView();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment