mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-03 00:09:39 +08:00
15 lines
296 B
TypeScript
15 lines
296 B
TypeScript
|
import React from 'react';
|
||
|
import { DatePicker } from 'antd';
|
||
|
|
||
|
const App: React.FC = () => (
|
||
|
<DatePicker.RangePicker
|
||
|
placeholder={['', 'Till Now']}
|
||
|
allowEmpty={[false, true]}
|
||
|
onChange={(date, dateString) => {
|
||
|
console.log(date, dateString);
|
||
|
}}
|
||
|
/>
|
||
|
);
|
||
|
|
||
|
export default App;
|