2024-03-11 16:57:09 +08:00
|
|
|
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">
|
2024-04-16 14:54:19 +08:00
|
|
|
<DatePicker multiple placeholder="Bamboo" />
|
2024-03-11 16:57:09 +08:00
|
|
|
<DatePicker multiple defaultValue={defaultValue} size="small" />
|
|
|
|
<DatePicker multiple defaultValue={defaultValue} />
|
|
|
|
<DatePicker multiple defaultValue={defaultValue} size="large" />
|
|
|
|
</Flex>
|
|
|
|
);
|
|
|
|
|
|
|
|
export default App;
|