mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 13:09:40 +08:00
update time-picker demo
This commit is contained in:
parent
f25ac2feac
commit
79e319908a
@ -11,6 +11,9 @@ import { TimePicker } from 'antd';
|
||||
|
||||
function onChange(time) {
|
||||
console.log(time);
|
||||
if (time) {
|
||||
console.log(time.toLocaleTimeString('zh-CN', { hour12: false })); // Get time string
|
||||
}
|
||||
}
|
||||
|
||||
ReactDOM.render(
|
||||
|
Loading…
Reference in New Issue
Block a user