2017-06-05 17:11:58 +08:00
|
|
|
---
|
|
|
|
order: 10
|
|
|
|
title:
|
|
|
|
zh-CN: 额外的页脚
|
|
|
|
en-US: Extra Footer
|
|
|
|
---
|
|
|
|
|
|
|
|
## zh-CN
|
|
|
|
|
|
|
|
在浮层中加入额外的页脚,以满足某些定制信息的需求。
|
|
|
|
|
|
|
|
## en-US
|
|
|
|
|
|
|
|
Render extra footer in panel for customized requirements.
|
|
|
|
|
|
|
|
````jsx
|
|
|
|
import { DatePicker } from 'antd';
|
2018-06-27 15:55:04 +08:00
|
|
|
|
2017-11-29 11:23:15 +08:00
|
|
|
const { RangePicker, MonthPicker } = DatePicker;
|
2017-06-05 17:11:58 +08:00
|
|
|
|
|
|
|
ReactDOM.render(
|
|
|
|
<div>
|
|
|
|
<DatePicker renderExtraFooter={() => 'extra footer'} />
|
|
|
|
<DatePicker renderExtraFooter={() => 'extra footer'} showTime />
|
|
|
|
<RangePicker renderExtraFooter={() => 'extra footer'} />
|
|
|
|
<RangePicker renderExtraFooter={() => 'extra footer'} showTime />
|
2017-11-29 11:23:15 +08:00
|
|
|
<MonthPicker renderExtraFooter={() => 'extra footer'} placeholder="Select month" />
|
2018-06-27 15:55:04 +08:00
|
|
|
</div>,
|
2018-11-28 15:00:03 +08:00
|
|
|
mountNode
|
|
|
|
);
|
2017-06-05 17:11:58 +08:00
|
|
|
````
|