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.
|
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
```tsx
|
2020-07-30 19:17:34 +08:00
|
|
|
import { DatePicker, Space } from 'antd';
|
2022-05-21 22:14:15 +08:00
|
|
|
import React from 'react';
|
2018-06-27 15:55:04 +08:00
|
|
|
|
2019-12-11 23:32:19 +08:00
|
|
|
const { RangePicker } = DatePicker;
|
2017-06-05 17:11:58 +08:00
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
const App: React.FC = () => (
|
2020-07-30 19:17:34 +08:00
|
|
|
<Space direction="vertical" size={12}>
|
2017-06-05 17:11:58 +08:00
|
|
|
<DatePicker renderExtraFooter={() => 'extra footer'} />
|
|
|
|
<DatePicker renderExtraFooter={() => 'extra footer'} showTime />
|
|
|
|
<RangePicker renderExtraFooter={() => 'extra footer'} />
|
|
|
|
<RangePicker renderExtraFooter={() => 'extra footer'} showTime />
|
2019-12-11 23:32:19 +08:00
|
|
|
<DatePicker renderExtraFooter={() => 'extra footer'} picker="month" />
|
2022-04-03 23:27:45 +08:00
|
|
|
</Space>
|
2018-11-28 15:00:03 +08:00
|
|
|
);
|
2022-05-19 09:46:26 +08:00
|
|
|
|
|
|
|
export default App;
|
2019-05-07 14:57:32 +08:00
|
|
|
```
|