2017-03-17 18:56:30 +08:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
2016-12-08 11:08:13 +08:00
|
|
|
exports[`Search should show cross icon when input value exists 1`] = `
|
2016-11-25 12:03:39 +08:00
|
|
|
<Search
|
|
|
|
placeholder=""
|
2017-03-17 18:56:30 +08:00
|
|
|
value=""
|
|
|
|
>
|
2016-11-25 12:03:39 +08:00
|
|
|
<div>
|
|
|
|
<Input
|
|
|
|
disabled={false}
|
|
|
|
onChange={[Function]}
|
|
|
|
placeholder=""
|
|
|
|
prefixCls="ant-input"
|
|
|
|
type="text"
|
2017-03-17 18:56:30 +08:00
|
|
|
value=""
|
|
|
|
>
|
2016-12-04 16:57:38 +08:00
|
|
|
<input
|
|
|
|
className="ant-input"
|
|
|
|
disabled={false}
|
|
|
|
onChange={[Function]}
|
|
|
|
onKeyDown={[Function]}
|
|
|
|
placeholder=""
|
|
|
|
type="text"
|
2017-03-17 18:56:30 +08:00
|
|
|
value=""
|
|
|
|
/>
|
2016-11-25 12:03:39 +08:00
|
|
|
</Input>
|
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
className="undefined-action"
|
|
|
|
>
|
2017-04-13 11:18:31 +08:00
|
|
|
<Icon
|
2017-03-17 18:56:30 +08:00
|
|
|
type="search"
|
|
|
|
>
|
2018-07-19 20:37:47 +08:00
|
|
|
<i
|
2018-08-13 20:51:01 +08:00
|
|
|
className="anticon anticon-search"
|
2018-07-18 10:33:54 +08:00
|
|
|
>
|
2018-08-13 14:46:55 +08:00
|
|
|
<IconReact
|
2018-08-14 15:32:29 +08:00
|
|
|
className=""
|
2018-09-02 19:53:29 +08:00
|
|
|
type="search-o"
|
|
|
|
>
|
|
|
|
<svg
|
|
|
|
aria-hidden="true"
|
|
|
|
className=""
|
|
|
|
data-icon="search"
|
|
|
|
fill="currentColor"
|
|
|
|
height="1em"
|
|
|
|
key="svg-search"
|
2018-09-06 20:55:23 +08:00
|
|
|
viewBox="64 64 896 896"
|
2018-09-02 19:53:29 +08:00
|
|
|
width="1em"
|
|
|
|
>
|
|
|
|
<path
|
2018-09-06 20:55:23 +08:00
|
|
|
d="M608 112c-167.9 0-304 136.1-304 304 0 70.3 23.9 135 63.9 186.5L114.3 856.1a8.03 8.03 0 0 0 0 11.3l42.3 42.3c3.1 3.1 8.2 3.1 11.3 0l253.6-253.6C473 696.1 537.7 720 608 720c167.9 0 304-136.1 304-304S775.9 112 608 112zm161.2 465.2C726.2 620.3 668.9 644 608 644s-118.2-23.7-161.2-66.8C403.7 534.2 380 476.9 380 416s23.7-118.2 66.8-161.2c43-43.1 100.3-66.8 161.2-66.8s118.2 23.7 161.2 66.8c43.1 43 66.8 100.3 66.8 161.2s-23.7 118.2-66.8 161.2z"
|
2018-09-02 19:53:29 +08:00
|
|
|
key="svg-search-svg-0"
|
|
|
|
/>
|
|
|
|
</svg>
|
|
|
|
</IconReact>
|
2018-07-19 20:37:47 +08:00
|
|
|
</i>
|
2017-04-13 11:18:31 +08:00
|
|
|
</Icon>
|
2016-11-25 12:03:39 +08:00
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</Search>
|
|
|
|
`;
|
|
|
|
|
2016-12-08 11:08:13 +08:00
|
|
|
exports[`Search should show cross icon when input value exists 2`] = `
|
2016-11-25 12:03:39 +08:00
|
|
|
<Search
|
|
|
|
placeholder=""
|
2017-03-17 18:56:30 +08:00
|
|
|
value="a"
|
|
|
|
>
|
2016-11-25 12:03:39 +08:00
|
|
|
<div>
|
|
|
|
<Input
|
|
|
|
disabled={false}
|
|
|
|
onChange={[Function]}
|
|
|
|
placeholder=""
|
|
|
|
prefixCls="ant-input"
|
|
|
|
type="text"
|
2017-03-17 18:56:30 +08:00
|
|
|
value="a"
|
|
|
|
>
|
2016-12-04 16:57:38 +08:00
|
|
|
<input
|
|
|
|
className="ant-input"
|
|
|
|
disabled={false}
|
|
|
|
onChange={[Function]}
|
|
|
|
onKeyDown={[Function]}
|
|
|
|
placeholder=""
|
|
|
|
type="text"
|
2017-03-17 18:56:30 +08:00
|
|
|
value="a"
|
|
|
|
/>
|
2016-11-25 12:03:39 +08:00
|
|
|
</Input>
|
|
|
|
<a
|
|
|
|
className="undefined-action"
|
|
|
|
href="#"
|
2017-03-17 18:56:30 +08:00
|
|
|
onClick={[Function]}
|
|
|
|
>
|
2017-04-13 11:18:31 +08:00
|
|
|
<Icon
|
2018-08-24 18:36:08 +08:00
|
|
|
type="close-circle"
|
2017-03-17 18:56:30 +08:00
|
|
|
>
|
2018-07-19 20:37:47 +08:00
|
|
|
<i
|
2018-08-24 18:36:08 +08:00
|
|
|
className="anticon anticon-close-circle"
|
2018-07-19 20:37:47 +08:00
|
|
|
>
|
2018-08-13 14:46:55 +08:00
|
|
|
<IconReact
|
2018-08-14 15:32:29 +08:00
|
|
|
className=""
|
2018-09-02 19:53:29 +08:00
|
|
|
type="close-circle-o"
|
|
|
|
>
|
|
|
|
<svg
|
|
|
|
aria-hidden="true"
|
|
|
|
className=""
|
|
|
|
data-icon="close-circle"
|
|
|
|
fill="currentColor"
|
|
|
|
height="1em"
|
|
|
|
key="svg-close-circle"
|
2018-09-06 20:55:23 +08:00
|
|
|
viewBox="64 64 896 896"
|
2018-09-02 19:53:29 +08:00
|
|
|
width="1em"
|
|
|
|
>
|
|
|
|
<path
|
2018-09-06 20:55:23 +08:00
|
|
|
d="M685.4 354.8c0-4.4-3.6-8-8-8l-66 .3L512 465.6l-99.3-118.4-66.1-.3c-4.4 0-8 3.5-8 8 0 1.9.7 3.7 1.9 5.2l130.1 155L340.5 670a8.32 8.32 0 0 0-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3L512 564.4l99.3 118.4 66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.5 515l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z"
|
2018-09-02 19:53:29 +08:00
|
|
|
key="svg-close-circle-svg-0"
|
|
|
|
/>
|
|
|
|
<path
|
|
|
|
d="M512 65C264.6 65 64 265.6 64 513s200.6 448 448 448 448-200.6 448-448S759.4 65 512 65zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"
|
|
|
|
key="svg-close-circle-svg-1"
|
|
|
|
/>
|
|
|
|
</svg>
|
|
|
|
</IconReact>
|
2018-07-19 20:37:47 +08:00
|
|
|
</i>
|
2017-04-13 11:18:31 +08:00
|
|
|
</Icon>
|
2016-11-25 12:03:39 +08:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</Search>
|
|
|
|
`;
|