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"
|
|
|
|
>
|
|
|
|
<i
|
|
|
|
className="anticon anticon-search ant-input-search-icon"
|
2018-05-26 23:18:18 +08:00
|
|
|
onClick={[Function]}
|
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>
|
|
|
|
`;
|