mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-04 04:58:55 +08:00
1b8a280614
* support suffix * optimize prefix and suffix * 1. Optimize prefix and suffix implementation 2. Improve the api document 3. Optimize `Input.Search` implementation * update snapshots
74 lines
1.5 KiB
Plaintext
74 lines
1.5 KiB
Plaintext
exports[`Search should show cross icon when input value exists 1`] = `
|
|
<Search
|
|
placeholder=""
|
|
value="">
|
|
<div>
|
|
<Input
|
|
autosize={false}
|
|
disabled={false}
|
|
onChange={[Function]}
|
|
placeholder=""
|
|
prefixCls="ant-input"
|
|
type="text"
|
|
value="">
|
|
<input
|
|
className="ant-input"
|
|
disabled={false}
|
|
onBlur={[Function]}
|
|
onChange={[Function]}
|
|
onFocus={[Function]}
|
|
onKeyDown={[Function]}
|
|
placeholder=""
|
|
type="text"
|
|
value="" />
|
|
</Input>
|
|
<span
|
|
className="undefined-action">
|
|
<Component
|
|
type="search">
|
|
<i
|
|
className="anticon anticon-search" />
|
|
</Component>
|
|
</span>
|
|
</div>
|
|
</Search>
|
|
`;
|
|
|
|
exports[`Search should show cross icon when input value exists 2`] = `
|
|
<Search
|
|
placeholder=""
|
|
value="a">
|
|
<div>
|
|
<Input
|
|
autosize={false}
|
|
disabled={false}
|
|
onChange={[Function]}
|
|
placeholder=""
|
|
prefixCls="ant-input"
|
|
type="text"
|
|
value="a">
|
|
<input
|
|
className="ant-input"
|
|
disabled={false}
|
|
onBlur={[Function]}
|
|
onChange={[Function]}
|
|
onFocus={[Function]}
|
|
onKeyDown={[Function]}
|
|
placeholder=""
|
|
type="text"
|
|
value="a" />
|
|
</Input>
|
|
<a
|
|
className="undefined-action"
|
|
href="#"
|
|
onClick={[Function]}>
|
|
<Component
|
|
type="cross-circle">
|
|
<i
|
|
className="anticon anticon-cross-circle" />
|
|
</Component>
|
|
</a>
|
|
</div>
|
|
</Search>
|
|
`;
|