ant-design/components/date-picker/demo/allow-empty.tsx
一步 7083e3db7c
docs: date-picker components demo error (#54404)
* 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>
2025-07-18 07:47:04 +08:00

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;