mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-16 05:58:26 +02:00

* docs: date-picker components demo error Signed-off-by: 一步 <tiandaochouqinyn@163.com> * Apply suggestion from @thinkasany Co-authored-by: thinkasany <480968828@qq.com> Signed-off-by: afc163 <afc163@gmail.com> * Apply suggestion from @thinkasany Co-authored-by: thinkasany <480968828@qq.com> Signed-off-by: afc163 <afc163@gmail.com> * test: update snap --------- Signed-off-by: 一步 <tiandaochouqinyn@163.com> Signed-off-by: afc163 <afc163@gmail.com> Co-authored-by: afc163 <afc163@gmail.com> Co-authored-by: thinkasany <480968828@qq.com>
14 lines
306 B
TypeScript
14 lines
306 B
TypeScript
import React from 'react';
|
|
import { DatePicker } from 'antd';
|
|
|
|
const App: React.FC = () => (
|
|
<DatePicker.RangePicker
|
|
placeholder={['Start Date', 'Till Now']}
|
|
allowEmpty={[false, true]}
|
|
onChange={(date, dateString) => {
|
|
console.log(date, dateString);
|
|
}}
|
|
/>
|
|
);
|
|
|
|
export default App;
|