docs: delete needConfirm false option in demo (#48967)

* docs: delete needConfirm false option in demo

* test: update test snapshot

* test: update test snapshot
This commit is contained in:
KumJungMin 2024-05-19 16:57:38 +09:00 committed by GitHub
parent 253b45eceb
commit e2998063e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 569 additions and 2718 deletions

View File

@ -4728,13 +4728,6 @@ exports[`renders components/date-picker/demo/multiple-debug.tsx correctly 1`] =
`;
exports[`renders components/date-picker/demo/needConfirm.tsx correctly 1`] = `
<div
class="ant-space ant-space-vertical"
style="column-gap:12px;row-gap:12px"
>
<div
class="ant-space-item"
>
<div
class="ant-picker ant-picker-outlined"
>
@ -4773,50 +4766,6 @@ exports[`renders components/date-picker/demo/needConfirm.tsx correctly 1`] = `
</span>
</div>
</div>
</div>
<div
class="ant-space-item"
>
<div
class="ant-picker ant-picker-outlined"
>
<div
class="ant-picker-input"
>
<input
aria-invalid="false"
autocomplete="off"
placeholder="Select date"
size="21"
value=""
/>
<span
class="ant-picker-suffix"
>
<span
aria-label="calendar"
class="anticon anticon-calendar"
role="img"
>
<svg
aria-hidden="true"
data-icon="calendar"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"
/>
</svg>
</span>
</span>
</div>
</div>
</div>
</div>
`;
exports[`renders components/date-picker/demo/placement.tsx correctly 1`] = `

View File

@ -1,17 +1,12 @@
import React from 'react';
import type { DatePickerProps } from 'antd';
import { DatePicker, Space } 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 = () => (
<Space direction="vertical" size={12}>
<DatePicker onChange={onChange} needConfirm />
<DatePicker onChange={onChange} showTime needConfirm={false} />
</Space>
);
const App: React.FC = () => <DatePicker onChange={onChange} needConfirm />;
export default App;