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=""
|
2016-12-08 11:08:13 +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"
|
2016-12-08 11:08:13 +08:00
|
|
|
value="">
|
2016-12-04 16:57:38 +08:00
|
|
|
<input
|
|
|
|
className="ant-input"
|
|
|
|
disabled={false}
|
|
|
|
onChange={[Function]}
|
|
|
|
onKeyDown={[Function]}
|
|
|
|
placeholder=""
|
|
|
|
type="text"
|
2016-12-08 11:08:13 +08:00
|
|
|
value="" />
|
2016-11-25 12:03:39 +08:00
|
|
|
</Input>
|
|
|
|
<span
|
|
|
|
className="undefined-action">
|
|
|
|
<Component
|
|
|
|
type="search">
|
|
|
|
<i
|
2016-11-30 10:20:23 +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=""
|
|
|
|
value="a">
|
|
|
|
<div>
|
|
|
|
<Input
|
|
|
|
autosize={false}
|
|
|
|
disabled={false}
|
|
|
|
onChange={[Function]}
|
|
|
|
placeholder=""
|
|
|
|
prefixCls="ant-input"
|
|
|
|
type="text"
|
|
|
|
value="a">
|
2016-12-04 16:57:38 +08:00
|
|
|
<input
|
|
|
|
className="ant-input"
|
|
|
|
disabled={false}
|
|
|
|
onChange={[Function]}
|
|
|
|
onKeyDown={[Function]}
|
|
|
|
placeholder=""
|
|
|
|
type="text"
|
|
|
|
value="a" />
|
2016-11-25 12:03:39 +08:00
|
|
|
</Input>
|
|
|
|
<a
|
|
|
|
className="undefined-action"
|
|
|
|
href="#"
|
|
|
|
onClick={[Function]}>
|
|
|
|
<Component
|
|
|
|
type="cross-circle">
|
|
|
|
<i
|
2016-11-30 10:20:23 +08:00
|
|
|
className="anticon anticon-cross-circle" />
|
2016-11-25 12:03:39 +08:00
|
|
|
</Component>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</Search>
|
|
|
|
`;
|