Skip to content

Commit

Permalink
fix: remove useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
solarjoker committed Oct 17, 2019
1 parent 25f5776 commit 15fae60
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions components/date-picker/BasePicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ class BasePicker extends Component {
}
timeConfirm (date, onlyTime) {
const { onChange } = this.props
// onlyTime && (format = FORMATS['time'])

this.setState({
date: date,
texts: [this.callFormatterDate(date.startDate || date), this.callFormatterDate(date.endDate)],
Expand All @@ -197,10 +197,8 @@ class BasePicker extends Component {
}
}
timeCancel () {
// const { date } = this.state
this.setState({
showPanel: false,
// texts: [this.callFormatterDate(date.startDate || date), this.callFormatterDate(date.endDate)],
isFocus: false
})
}
Expand Down Expand Up @@ -233,7 +231,6 @@ class BasePicker extends Component {
texts: ['', ''],
showPanel: false
})
// this.callback()
return false
}
if (tar !== this.input && tar !== this.rInput) {
Expand Down

0 comments on commit 15fae60

Please sign in to comment.