mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-26 18:08:34 +08:00
441 B
441 B
时间选择
- order: 4
和 时间选择组件 配合使用。
import { Datepicker, Timepicker } from 'antd';
function onDateChange(date) {
console.log(date);
}
function onTimeChange(time) {
console.log(time);
}
ReactDOM.render(<div>
<Datepicker onChange={onDateChange} />
<Timepicker onChange={onTimeChange} />
</div>, document.getElementById('components-datepicker-demo-time'));