mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-05 09:49:57 +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;
|