update datepicker size style

This commit is contained in:
afc163 2015-08-03 16:57:03 +08:00
parent c87c37329c
commit ee91436840
2 changed files with 7 additions and 4 deletions

View File

@ -2,7 +2,7 @@
- order: 1
三种大小的输入框,`size`为`lg`和`sm`分别表示高为`32px`和`22px`,默认`28px`
三种大小的输入框,大的用在表单中,中的为默认
---
@ -12,9 +12,9 @@ var Datepicker = antd.Datepicker;
React.render(
<div>
<Datepicker size="sm" value="" />
<Datepicker value="" />
<Datepicker size="lg" value="" />
<Datepicker size="lg" />
<Datepicker />
<Datepicker size="sm" />
</div>
, document.getElementById('components-datepicker-demo-size'));
````

View File

@ -32,4 +32,7 @@
.code-box-demo .ant-calendar-picker-input {
width: 200px;
}
.code-box-demo .ant-calendar-picker {
margin: 0 12px 12px 0;
}
</style>