2020-02-06 10:02:02 +08:00
|
|
|
---
|
|
|
|
order: 23
|
|
|
|
title:
|
|
|
|
zh-CN: 无边框
|
|
|
|
en-US: Bordered-less
|
|
|
|
---
|
|
|
|
|
|
|
|
## zh-CN
|
|
|
|
|
|
|
|
无边框样式。
|
|
|
|
|
|
|
|
## en-US
|
|
|
|
|
|
|
|
Bordered-less style component.
|
|
|
|
|
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';
|
2020-02-06 10:02:02 +08:00
|
|
|
|
|
|
|
const { RangePicker } = DatePicker;
|
|
|
|
|
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}>
|
2020-02-06 10:02:02 +08:00
|
|
|
<DatePicker bordered={false} />
|
|
|
|
<DatePicker picker="week" bordered={false} />
|
|
|
|
<DatePicker picker="month" bordered={false} />
|
|
|
|
<DatePicker picker="year" bordered={false} />
|
|
|
|
<RangePicker bordered={false} />
|
|
|
|
<RangePicker picker="week" bordered={false} />
|
|
|
|
<RangePicker picker="month" bordered={false} />
|
|
|
|
<RangePicker picker="year" bordered={false} />
|
2022-04-03 23:27:45 +08:00
|
|
|
</Space>
|
2020-02-06 10:02:02 +08:00
|
|
|
);
|
2022-05-19 09:46:26 +08:00
|
|
|
|
|
|
|
export default App;
|
2020-02-06 10:02:02 +08:00
|
|
|
```
|