mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-15 17:31:25 +08:00
125 lines
3.0 KiB
Plaintext
125 lines
3.0 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`Input should support maxLength 1`] = `
|
|
<Input
|
|
disabled={false}
|
|
maxLength="3"
|
|
prefixCls="ant-input"
|
|
type="text"
|
|
>
|
|
<input
|
|
className="ant-input"
|
|
disabled={false}
|
|
maxLength="3"
|
|
onKeyDown={[Function]}
|
|
type="text"
|
|
/>
|
|
</Input>
|
|
`;
|
|
|
|
exports[`Input.Search should support suffix 1`] = `
|
|
<Search
|
|
enterButton={false}
|
|
inputPrefixCls="ant-input"
|
|
prefixCls="ant-input-search"
|
|
suffix="suffix"
|
|
>
|
|
<Input
|
|
className="ant-input-search"
|
|
disabled={false}
|
|
onPressEnter={[Function]}
|
|
prefixCls="ant-input"
|
|
suffix={
|
|
Array [
|
|
"suffix",
|
|
<Icon
|
|
className="ant-input-search-icon"
|
|
onClick={[Function]}
|
|
type="search"
|
|
/>,
|
|
]
|
|
}
|
|
type="text"
|
|
>
|
|
<span
|
|
className="ant-input-search ant-input-affix-wrapper"
|
|
>
|
|
<input
|
|
className="ant-input"
|
|
disabled={false}
|
|
onKeyDown={[Function]}
|
|
style={null}
|
|
type="text"
|
|
/>
|
|
<span
|
|
className="ant-input-suffix"
|
|
>
|
|
suffix
|
|
<Icon
|
|
className="ant-input-search-icon"
|
|
key="searchIcon"
|
|
onClick={[Function]}
|
|
type="search"
|
|
>
|
|
<i
|
|
className="anticon anticon-search ant-input-search-icon"
|
|
onClick={[Function]}
|
|
>
|
|
<IconReact
|
|
className=""
|
|
type="search-o"
|
|
>
|
|
<svg
|
|
aria-hidden="true"
|
|
className=""
|
|
data-icon="search"
|
|
fill="currentColor"
|
|
height="1em"
|
|
key="svg-search"
|
|
viewBox="64 64 896 896"
|
|
width="1em"
|
|
>
|
|
<path
|
|
d="M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0 0 11.6 0l43.6-43.5a8.2 8.2 0 0 0 0-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"
|
|
key="svg-search-svg-0"
|
|
/>
|
|
</svg>
|
|
</IconReact>
|
|
</i>
|
|
</Icon>
|
|
</span>
|
|
</span>
|
|
</Input>
|
|
</Search>
|
|
`;
|
|
|
|
exports[`TextArea should support disabled 1`] = `
|
|
<TextArea
|
|
disabled={true}
|
|
prefixCls="ant-input"
|
|
>
|
|
<textarea
|
|
className="ant-input ant-input-disabled"
|
|
disabled={true}
|
|
onChange={[Function]}
|
|
onKeyDown={[Function]}
|
|
style={Object {}}
|
|
/>
|
|
</TextArea>
|
|
`;
|
|
|
|
exports[`TextArea should support maxLength 1`] = `
|
|
<TextArea
|
|
maxLength="10"
|
|
prefixCls="ant-input"
|
|
>
|
|
<textarea
|
|
className="ant-input"
|
|
maxLength="10"
|
|
onChange={[Function]}
|
|
onKeyDown={[Function]}
|
|
style={Object {}}
|
|
/>
|
|
</TextArea>
|
|
`;
|