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
|
|
|
|
autosize={false}
|
|
|
|
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"
|
|
|
|
>
|
2016-11-25 12:03:39 +08:00
|
|
|
<Component
|
2017-03-17 18:56:30 +08:00
|
|
|
type="search"
|
|
|
|
>
|
2016-11-25 12:03:39 +08:00
|
|
|
<i
|
2017-03-17 18:56:30 +08:00
|
|
|
className="anticon anticon-search"
|
|
|
|
/>
|
2016-11-25 12:03:39 +08:00
|
|
|
</Component>
|
|
|
|
</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
|
|
|
|
autosize={false}
|
|
|
|
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]}
|
|
|
|
>
|
2016-11-25 12:03:39 +08:00
|
|
|
<Component
|
2017-03-17 18:56:30 +08:00
|
|
|
type="cross-circle"
|
|
|
|
>
|
2016-11-25 12:03:39 +08:00
|
|
|
<i
|
2017-03-17 18:56:30 +08:00
|
|
|
className="anticon anticon-cross-circle"
|
|
|
|
/>
|
2016-11-25 12:03:39 +08:00
|
|
|
</Component>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</Search>
|
|
|
|
`;
|