rollback time format problem, ref #953

This commit is contained in:
afc163 2016-02-18 17:50:29 +08:00
parent 5c22e32db8
commit 72d077be1f

View File

@ -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