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

20 lines
333 B
Markdown
Raw Normal View History

2015-08-03 16:16:07 +08:00
# 三种大小
- order: 1
2015-08-03 16:57:03 +08:00
三种大小的输入框,大的用在表单中,中的为默认。
2015-08-03 16:16:07 +08:00
---
````jsx
var Datepicker = antd.Datepicker;
React.render(
<div>
2015-08-10 13:22:50 +08:00
<Datepicker size={"large"} />
2015-08-03 16:57:03 +08:00
<Datepicker />
2015-08-10 13:22:50 +08:00
<Datepicker size={"small"} />
2015-08-03 16:16:07 +08:00
</div>
, document.getElementById('components-datepicker-demo-size'));
````