update snapshots

This commit is contained in:
afc163 2020-03-18 17:06:01 +08:00 committed by 偏右
parent b33c1d5d88
commit 02dbd8078d
4 changed files with 136 additions and 12 deletions

View File

@ -1000,6 +1000,67 @@ exports[`renders ./components/date-picker/demo/disabled-date.md correctly 1`] =
</div>
</div>
<br />
<div
class="ant-picker ant-picker-range"
>
<div
class="ant-picker-input ant-picker-input-active"
>
<input
placeholder="Start date"
readonly=""
size="12"
value=""
/>
</div>
<div
class="ant-picker-range-separator"
>
<span
class="ant-picker-separator"
>
</span>
</div>
<div
class="ant-picker-input"
>
<input
placeholder="End date"
readonly=""
size="12"
value=""
/>
</div>
<div
class="ant-picker-active-bar"
style="left:0;width:0;position:absolute"
/>
<span
class="ant-picker-suffix"
>
<span
aria-label="calendar"
class="anticon anticon-calendar"
role="img"
>
<svg
aria-hidden="true"
class=""
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
class="ant-picker ant-picker-range"
>
@ -2142,6 +2203,70 @@ exports[`renders ./components/date-picker/demo/range-picker.md correctly 1`] = `
</div>
`;
exports[`renders ./components/date-picker/demo/select-in-range.md correctly 1`] = `
<div
class="ant-picker ant-picker-range"
>
<div
class="ant-picker-input ant-picker-input-active"
>
<input
placeholder="Start date"
readonly=""
size="12"
value=""
/>
</div>
<div
class="ant-picker-range-separator"
>
<span
class="ant-picker-separator"
>
</span>
</div>
<div
class="ant-picker-input"
>
<input
placeholder="End date"
readonly=""
size="12"
value=""
/>
</div>
<div
class="ant-picker-active-bar"
style="left:0;width:0;position:absolute"
/>
<span
class="ant-picker-suffix"
>
<span
aria-label="calendar"
class="anticon anticon-calendar"
role="img"
>
<svg
aria-hidden="true"
class=""
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>
`;
exports[`renders ./components/date-picker/demo/size.md correctly 1`] = `
<div>
<div

View File

@ -14,14 +14,13 @@ title:
A example shows how to select a dynamic range by using `onCalendarChange` and `disabledDate`.
```jsx
import React, { useState, useCallback } from 'react';
import React, { useState } from 'react';
import { DatePicker } from 'antd';
const { RangePicker } = DatePicker;
const App = () => {
const [dates, setDates] = useState([]);
const disabledDate = current => {
if (!dates || dates.length === 0) {
return false;
@ -34,8 +33,8 @@ const App = () => {
return (
<RangePicker
disabledDate={disabledDate}
onCalendarChange={dates => {
setDates(dates);
onCalendarChange={value => {
setDates(value);
}}
onOpenChange={open => {
if (!open) {

View File

@ -951,7 +951,7 @@ exports[`Transfer should support render value and label in item 1`] = `
type="button"
>
<ForwardRef(RightOutlined)>
<ForwardRef(AntdIcon)
<AntdIcon
icon={
Object {
"icon": Object {
@ -1021,7 +1021,7 @@ exports[`Transfer should support render value and label in item 1`] = `
</svg>
</IconReact>
</span>
</ForwardRef(AntdIcon)>
</AntdIcon>
</ForwardRef(RightOutlined)>
</button>
</Wave>
@ -1045,7 +1045,7 @@ exports[`Transfer should support render value and label in item 1`] = `
type="button"
>
<ForwardRef(LeftOutlined)>
<ForwardRef(AntdIcon)
<AntdIcon
icon={
Object {
"icon": Object {
@ -1115,7 +1115,7 @@ exports[`Transfer should support render value and label in item 1`] = `
</svg>
</IconReact>
</span>
</ForwardRef(AntdIcon)>
</AntdIcon>
</ForwardRef(LeftOutlined)>
</button>
</Wave>

View File

@ -51,7 +51,7 @@ exports[`Transfer.Search should show cross icon when input value exists 1`] = `
className="undefined-action"
>
<ForwardRef(SearchOutlined)>
<ForwardRef(AntdIcon)
<AntdIcon
icon={
Object {
"icon": Object {
@ -121,7 +121,7 @@ exports[`Transfer.Search should show cross icon when input value exists 1`] = `
</svg>
</IconReact>
</span>
</ForwardRef(AntdIcon)>
</AntdIcon>
</ForwardRef(SearchOutlined)>
</span>
</div>
@ -181,7 +181,7 @@ exports[`Transfer.Search should show cross icon when input value exists 2`] = `
onClick={[Function]}
>
<ForwardRef(CloseCircleFilled)>
<ForwardRef(AntdIcon)
<AntdIcon
icon={
Object {
"icon": Object {
@ -251,7 +251,7 @@ exports[`Transfer.Search should show cross icon when input value exists 2`] = `
</svg>
</IconReact>
</span>
</ForwardRef(AntdIcon)>
</AntdIcon>
</ForwardRef(CloseCircleFilled)>
</a>
</div>