mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-13 23:59:12 +08:00
16 lines
486 B
TypeScript
16 lines
486 B
TypeScript
|
import React from 'react';
|
||
|
import { DatePicker, Flex } from 'antd';
|
||
|
import dayjs from 'dayjs';
|
||
|
|
||
|
const defaultValue = new Array(10).fill(0).map((_, index) => dayjs('2000-01-01').add(index, 'day'));
|
||
|
|
||
|
const App: React.FC = () => (
|
||
|
<Flex vertical gap="small">
|
||
|
<DatePicker multiple defaultValue={defaultValue} size="small" />
|
||
|
<DatePicker multiple defaultValue={defaultValue} />
|
||
|
<DatePicker multiple defaultValue={defaultValue} size="large" />
|
||
|
</Flex>
|
||
|
);
|
||
|
|
||
|
export default App;
|