2017-07-21 20:23:38 +08:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
2017-09-27 09:56:30 +08:00
|
|
|
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>
|
|
|
|
`;
|
|
|
|
|
2017-11-01 12:12:16 +08:00
|
|
|
exports[`Input.Search should support suffix 1`] = `
|
|
|
|
<Search
|
2017-11-06 19:00:36 +08:00
|
|
|
enterButton={false}
|
2017-11-01 12:12:16 +08:00
|
|
|
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"
|
2018-05-26 23:18:18 +08:00
|
|
|
onClick={[Function]}
|
2017-11-01 12:12:16 +08:00
|
|
|
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"
|
2017-11-07 11:02:03 +08:00
|
|
|
key="searchIcon"
|
2018-05-26 23:18:18 +08:00
|
|
|
onClick={[Function]}
|
2017-11-01 12:12:16 +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 ant-input-search-icon"
|
2018-08-13 14:46:55 +08:00
|
|
|
onClick={[Function]}
|
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"
|
|
|
|
viewBox="0 0 1024 1024"
|
|
|
|
width="1em"
|
|
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
|
|
>
|
|
|
|
<path
|
|
|
|
d="M608 112c-167.9 0-304 136.1-304 304 0 70.3 23.9 135 63.9 186.5L114.3 856.1c-3.1 3.1-3.1 8.2 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"
|
|
|
|
key="svg-search-svg-0"
|
|
|
|
/>
|
|
|
|
</svg>
|
|
|
|
</IconReact>
|
2018-07-19 20:37:47 +08:00
|
|
|
</i>
|
2017-11-01 12:12:16 +08:00
|
|
|
</Icon>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</Input>
|
|
|
|
</Search>
|
|
|
|
`;
|
|
|
|
|
2017-07-21 20:23:38 +08:00
|
|
|
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>
|
|
|
|
`;
|
2017-09-27 09:56:30 +08:00
|
|
|
|
|
|
|
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>
|
|
|
|
`;
|