ant-design/components/datepicker/demo/basic.md

17 lines
260 B
Markdown
Raw Normal View History

2015-05-21 20:36:13 +08:00
# 基本
2015-05-27 20:41:16 +08:00
- order: 0
2015-06-02 17:20:02 +08:00
最简单的用法。
2015-05-21 20:36:13 +08:00
---
````jsx
2015-07-06 20:04:26 +08:00
// or require('antd/lib/datepicker');
2015-06-09 14:50:55 +08:00
var Datepicker = antd.Datepicker;
2015-05-21 20:36:13 +08:00
2015-10-20 16:47:55 +08:00
ReactDOM.render(
<Datepicker defaultValue="2012-12-12" />
2015-05-21 20:36:13 +08:00
, document.getElementById('components-datepicker-demo-basic'));
````