mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-24 15:46:10 +08:00
e2998063e5
* docs: delete needConfirm false option in demo * test: update test snapshot * test: update test snapshot
13 lines
357 B
TypeScript
13 lines
357 B
TypeScript
import React from 'react';
|
|
import type { DatePickerProps } from 'antd';
|
|
import { DatePicker } from 'antd';
|
|
import type { Dayjs } from 'dayjs';
|
|
|
|
const onChange: DatePickerProps<Dayjs[]>['onChange'] = (date, dateString) => {
|
|
console.log(date, dateString);
|
|
};
|
|
|
|
const App: React.FC = () => <DatePicker onChange={onChange} needConfirm />;
|
|
|
|
export default App;
|