mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 22:36:31 +08:00
docs: Fix DatePicker throw demo
This commit is contained in:
parent
c9b27cdac7
commit
5e910e74c1
@ -20,8 +20,12 @@ import moment from 'moment';
|
||||
const { RangePicker } = DatePicker;
|
||||
|
||||
function onChange(dates, dateStrings) {
|
||||
console.log('From: ', dates[0], ', to: ', dates[1]);
|
||||
console.log('From: ', dateStrings[0], ', to: ', dateStrings[1]);
|
||||
if (dates) {
|
||||
console.log('From: ', dates[0], ', to: ', dates[1]);
|
||||
console.log('From: ', dateStrings[0], ', to: ', dateStrings[1]);
|
||||
} else {
|
||||
console.log('Clear');
|
||||
}
|
||||
}
|
||||
|
||||
export default () => (
|
||||
|
Loading…
Reference in New Issue
Block a user