diff --git a/components/date-picker/PickerMixin.jsx b/components/date-picker/PickerMixin.jsx index ca6c750480..837fba5e01 100644 --- a/components/date-picker/PickerMixin.jsx +++ b/components/date-picker/PickerMixin.jsx @@ -14,10 +14,6 @@ export default { getFormatter() { const formats = this.formats = this.formats || {}; let format = this.props.format; - // Remove time format text when has time-picker in calendar - if (this.props.showTime) { - format = format.replace('HH:mm:ss', ''); - } if (formats[format]) { return formats[format]; } @@ -41,6 +37,7 @@ export default { // remove input readonly warning handleInputChange() { }, + toggleOpen(e) { this.setState({ open: e.open