chore: update data-picker detail, ref: #4415

This commit is contained in:
Benjy Cui 2017-01-04 10:48:40 +08:00
parent 0230385e95
commit 9d92066d1f
3 changed files with 7 additions and 3 deletions

View File

@ -14,7 +14,7 @@ title:
Basic use case. Users can select or input a date in panel.
````jsx
import { DatePicker } from 'antd';
import { DatePicker, Badge } from 'antd';
const { MonthPicker, RangePicker } = DatePicker;
function onChange(date, dateString) {
@ -25,7 +25,10 @@ ReactDOM.render(
<div>
<DatePicker onChange={onChange} />
<br />
<MonthPicker onChange={onChange} monthCellContentRender={() => <span>111</span>} />
<MonthPicker
onChange={onChange}
monthCellContentRender={date => <Badge dot={date.month() === 5}>{date.month() + 1}</Badge>}
/>
<br />
<RangePicker onChange={onChange} />
</div>

View File

@ -27,6 +27,7 @@
.@{calendar-prefix-cls}-decade-panel-cell {
text-align: center;
white-space: nowrap;
}
.@{calendar-prefix-cls}-decade-panel-decade {

View File

@ -270,7 +270,7 @@ We have completed a simple application, but you may still have lots of questions
You can:
- Visit [dva official website](https://github.com/dvajs/dva).
- Familiar with the [8 Conpects](https://github.com/dvajs/dva/blob/master/docs/Concepts.md), and know how they are connected together
- Be familiar with the [8 Conpects](https://github.com/dvajs/dva/blob/master/docs/Concepts.md), and understand how they are connected together
- Know all [dva APIs](https://github.com/dvajs/dva/blob/master/docs/API.md)
- Checkout [dva knowledgemap](https://github.com/dvajs/dva-knowledgemap), including all the basic knowledge with ES6, React, dva
- Checkout [more FAQ](https://github.com/dvajs/dva/issues?q=is%3Aissue+is%3Aclosed+label%3Afaq)