mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-05 05:28:20 +08:00
4026221d45
* deps: upgrade TimePicker * deps: upgrade DatePicker * deps: upgrade Calendar * fix: moment should work with LocaleProvider * feat: update API of TimePicker * feat: update Calendar's APIs * feat: update DatePicker's APIs * doc: update demo * revert: add dateString and timeString and so on * feat: add Calendar[defaultValue] * feat: add defaultPickerValue * docs: update docs about date picker * feat: set moment locale to zh-cn automatically
309 B
309 B
order | title | ||||
---|---|---|---|---|---|
0 |
|
zh-CN
最简单的用法。
en-US
The most basic usage.
import { DatePicker } from 'antd';
function onChange(date, dateString) {
console.log(date, dateString);
}
ReactDOM.render(<DatePicker onChange={onChange} />, mountNode);