mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-16 09:39:10 +08:00
5a08aab0e8
* docs: DatePicker change type demo * chore: snapshot * chore * docs: DatePicker use Space * chore: snapshot
32 lines
741 B
Markdown
32 lines
741 B
Markdown
---
|
|
order: 10
|
|
title:
|
|
zh-CN: 额外的页脚
|
|
en-US: Extra Footer
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
在浮层中加入额外的页脚,以满足某些定制信息的需求。
|
|
|
|
## en-US
|
|
|
|
Render extra footer in panel for customized requirements.
|
|
|
|
```jsx
|
|
import { DatePicker, Space } from 'antd';
|
|
|
|
const { RangePicker } = DatePicker;
|
|
|
|
ReactDOM.render(
|
|
<Space direction="vertical" size={12}>
|
|
<DatePicker renderExtraFooter={() => 'extra footer'} />
|
|
<DatePicker renderExtraFooter={() => 'extra footer'} showTime />
|
|
<RangePicker renderExtraFooter={() => 'extra footer'} />
|
|
<RangePicker renderExtraFooter={() => 'extra footer'} showTime />
|
|
<DatePicker renderExtraFooter={() => 'extra footer'} picker="month" />
|
|
</Space>,
|
|
mountNode,
|
|
);
|
|
```
|