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