2017-03-17 18:56:30 +08:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
2019-05-07 17:10:42 +08:00
|
|
|
exports[`Transfer.Search should show cross icon when input value exists 1`] = `
|
2016-11-25 12:03:39 +08:00
|
|
|
<Search
|
|
|
|
placeholder=""
|
2017-03-17 18:56:30 +08:00
|
|
|
value=""
|
|
|
|
>
|
2016-11-25 12:03:39 +08:00
|
|
|
<div>
|
|
|
|
<Input
|
|
|
|
onChange={[Function]}
|
|
|
|
placeholder=""
|
|
|
|
type="text"
|
2017-03-17 18:56:30 +08:00
|
|
|
value=""
|
|
|
|
>
|
2019-11-01 18:19:29 +08:00
|
|
|
<ClearableLabeledInput
|
2020-07-16 00:25:47 +08:00
|
|
|
bordered={true}
|
2019-11-01 18:19:29 +08:00
|
|
|
element={
|
|
|
|
<input
|
|
|
|
className="ant-input"
|
2020-01-14 11:59:38 +08:00
|
|
|
onBlur={[Function]}
|
2019-11-01 18:19:29 +08:00
|
|
|
onChange={[Function]}
|
2020-01-14 11:59:38 +08:00
|
|
|
onFocus={[Function]}
|
2019-11-01 18:19:29 +08:00
|
|
|
onKeyDown={[Function]}
|
|
|
|
placeholder=""
|
|
|
|
type="text"
|
|
|
|
value=""
|
|
|
|
/>
|
|
|
|
}
|
2020-01-14 11:59:38 +08:00
|
|
|
focused={false}
|
2019-11-01 18:19:29 +08:00
|
|
|
handleReset={[Function]}
|
|
|
|
inputType="input"
|
2019-04-16 14:22:22 +08:00
|
|
|
onChange={[Function]}
|
|
|
|
placeholder=""
|
2019-11-01 18:19:29 +08:00
|
|
|
prefixCls="ant-input"
|
2020-02-17 19:12:42 +08:00
|
|
|
triggerFocus={[Function]}
|
2019-04-16 14:22:22 +08:00
|
|
|
type="text"
|
|
|
|
value=""
|
2019-11-01 18:19:29 +08:00
|
|
|
>
|
|
|
|
<input
|
|
|
|
className="ant-input"
|
2020-01-14 11:59:38 +08:00
|
|
|
onBlur={[Function]}
|
2019-11-01 18:19:29 +08:00
|
|
|
onChange={[Function]}
|
2020-01-14 11:59:38 +08:00
|
|
|
onFocus={[Function]}
|
2019-11-01 18:19:29 +08:00
|
|
|
onKeyDown={[Function]}
|
|
|
|
placeholder=""
|
|
|
|
type="text"
|
|
|
|
value=""
|
|
|
|
/>
|
|
|
|
</ClearableLabeledInput>
|
2016-11-25 12:03:39 +08:00
|
|
|
</Input>
|
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
className="undefined-action"
|
|
|
|
>
|
2020-01-02 14:11:12 +08:00
|
|
|
<ForwardRef(SearchOutlined)>
|
2020-03-18 17:06:01 +08:00
|
|
|
<AntdIcon
|
2019-08-13 14:07:17 +08:00
|
|
|
icon={
|
|
|
|
Object {
|
|
|
|
"icon": Object {
|
|
|
|
"attrs": Object {
|
|
|
|
"focusable": "false",
|
|
|
|
"viewBox": "64 64 896 896",
|
|
|
|
},
|
|
|
|
"children": Array [
|
|
|
|
Object {
|
|
|
|
"attrs": Object {
|
|
|
|
"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 0011.6 0l43.6-43.5a8.2 8.2 0 000-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",
|
|
|
|
},
|
|
|
|
"tag": "path",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
"tag": "svg",
|
|
|
|
},
|
|
|
|
"name": "search",
|
2019-12-25 11:17:14 +08:00
|
|
|
"theme": "outlined",
|
2019-08-13 14:07:17 +08:00
|
|
|
}
|
|
|
|
}
|
2018-07-18 10:33:54 +08:00
|
|
|
>
|
2019-08-13 14:07:17 +08:00
|
|
|
<span
|
|
|
|
aria-label="search"
|
2019-01-10 18:46:57 +08:00
|
|
|
className="anticon anticon-search"
|
2019-08-13 14:07:17 +08:00
|
|
|
role="img"
|
2018-09-02 19:53:29 +08:00
|
|
|
>
|
2019-01-10 18:46:57 +08:00
|
|
|
<IconReact
|
2018-09-02 19:53:29 +08:00
|
|
|
className=""
|
2019-08-13 14:07:17 +08:00
|
|
|
icon={
|
|
|
|
Object {
|
|
|
|
"icon": Object {
|
|
|
|
"attrs": Object {
|
|
|
|
"focusable": "false",
|
|
|
|
"viewBox": "64 64 896 896",
|
|
|
|
},
|
|
|
|
"children": Array [
|
|
|
|
Object {
|
|
|
|
"attrs": Object {
|
|
|
|
"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 0011.6 0l43.6-43.5a8.2 8.2 0 000-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",
|
|
|
|
},
|
|
|
|
"tag": "path",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
"tag": "svg",
|
|
|
|
},
|
|
|
|
"name": "search",
|
2019-12-25 11:17:14 +08:00
|
|
|
"theme": "outlined",
|
2019-08-13 14:07:17 +08:00
|
|
|
}
|
|
|
|
}
|
2018-09-02 19:53:29 +08:00
|
|
|
>
|
2019-01-10 18:46:57 +08:00
|
|
|
<svg
|
|
|
|
aria-hidden="true"
|
|
|
|
className=""
|
|
|
|
data-icon="search"
|
|
|
|
fill="currentColor"
|
2019-04-11 12:48:36 +08:00
|
|
|
focusable="false"
|
2019-01-10 18:46:57 +08:00
|
|
|
height="1em"
|
|
|
|
key="svg-search"
|
|
|
|
viewBox="64 64 896 896"
|
|
|
|
width="1em"
|
|
|
|
>
|
|
|
|
<path
|
2019-08-13 14:07:17 +08:00
|
|
|
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 0011.6 0l43.6-43.5a8.2 8.2 0 000-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"
|
2019-01-10 18:46:57 +08:00
|
|
|
key="svg-search-svg-0"
|
|
|
|
/>
|
|
|
|
</svg>
|
|
|
|
</IconReact>
|
2019-08-13 14:07:17 +08:00
|
|
|
</span>
|
2020-03-18 17:06:01 +08:00
|
|
|
</AntdIcon>
|
2020-01-02 14:11:12 +08:00
|
|
|
</ForwardRef(SearchOutlined)>
|
2016-11-25 12:03:39 +08:00
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</Search>
|
|
|
|
`;
|
|
|
|
|
2019-05-07 17:10:42 +08:00
|
|
|
exports[`Transfer.Search should show cross icon when input value exists 2`] = `
|
2016-11-25 12:03:39 +08:00
|
|
|
<Search
|
|
|
|
placeholder=""
|
2017-03-17 18:56:30 +08:00
|
|
|
value="a"
|
|
|
|
>
|
2016-11-25 12:03:39 +08:00
|
|
|
<div>
|
|
|
|
<Input
|
|
|
|
onChange={[Function]}
|
|
|
|
placeholder=""
|
|
|
|
type="text"
|
2017-03-17 18:56:30 +08:00
|
|
|
value="a"
|
|
|
|
>
|
2019-11-01 18:19:29 +08:00
|
|
|
<ClearableLabeledInput
|
2020-07-16 00:25:47 +08:00
|
|
|
bordered={true}
|
2019-11-01 18:19:29 +08:00
|
|
|
element={
|
|
|
|
<input
|
|
|
|
className="ant-input"
|
2020-01-14 11:59:38 +08:00
|
|
|
onBlur={[Function]}
|
2019-11-01 18:19:29 +08:00
|
|
|
onChange={[Function]}
|
2020-01-14 11:59:38 +08:00
|
|
|
onFocus={[Function]}
|
2019-11-01 18:19:29 +08:00
|
|
|
onKeyDown={[Function]}
|
|
|
|
placeholder=""
|
|
|
|
type="text"
|
|
|
|
value="a"
|
|
|
|
/>
|
|
|
|
}
|
2020-01-14 11:59:38 +08:00
|
|
|
focused={false}
|
2019-11-01 18:19:29 +08:00
|
|
|
handleReset={[Function]}
|
|
|
|
inputType="input"
|
2019-04-16 14:22:22 +08:00
|
|
|
onChange={[Function]}
|
|
|
|
placeholder=""
|
2019-11-01 18:19:29 +08:00
|
|
|
prefixCls="ant-input"
|
2020-02-17 19:12:42 +08:00
|
|
|
triggerFocus={[Function]}
|
2019-04-16 14:22:22 +08:00
|
|
|
type="text"
|
|
|
|
value="a"
|
2019-11-01 18:19:29 +08:00
|
|
|
>
|
|
|
|
<input
|
|
|
|
className="ant-input"
|
2020-01-14 11:59:38 +08:00
|
|
|
onBlur={[Function]}
|
2019-11-01 18:19:29 +08:00
|
|
|
onChange={[Function]}
|
2020-01-14 11:59:38 +08:00
|
|
|
onFocus={[Function]}
|
2019-11-01 18:19:29 +08:00
|
|
|
onKeyDown={[Function]}
|
|
|
|
placeholder=""
|
|
|
|
type="text"
|
|
|
|
value="a"
|
|
|
|
/>
|
|
|
|
</ClearableLabeledInput>
|
2016-11-25 12:03:39 +08:00
|
|
|
</Input>
|
|
|
|
<a
|
|
|
|
className="undefined-action"
|
|
|
|
href="#"
|
2017-03-17 18:56:30 +08:00
|
|
|
onClick={[Function]}
|
|
|
|
>
|
2020-01-02 14:11:12 +08:00
|
|
|
<ForwardRef(CloseCircleFilled)>
|
2020-03-18 17:06:01 +08:00
|
|
|
<AntdIcon
|
2019-08-13 14:07:17 +08:00
|
|
|
icon={
|
|
|
|
Object {
|
|
|
|
"icon": Object {
|
|
|
|
"attrs": Object {
|
|
|
|
"focusable": "false",
|
|
|
|
"viewBox": "64 64 896 896",
|
|
|
|
},
|
|
|
|
"children": Array [
|
|
|
|
Object {
|
|
|
|
"attrs": Object {
|
|
|
|
"d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z",
|
|
|
|
},
|
|
|
|
"tag": "path",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
"tag": "svg",
|
|
|
|
},
|
|
|
|
"name": "close-circle",
|
2019-12-25 11:17:14 +08:00
|
|
|
"theme": "filled",
|
2019-08-13 14:07:17 +08:00
|
|
|
}
|
|
|
|
}
|
2018-07-19 20:37:47 +08:00
|
|
|
>
|
2019-08-13 14:07:17 +08:00
|
|
|
<span
|
|
|
|
aria-label="close-circle"
|
2019-01-10 18:46:57 +08:00
|
|
|
className="anticon anticon-close-circle"
|
2019-08-13 14:07:17 +08:00
|
|
|
role="img"
|
2018-09-02 19:53:29 +08:00
|
|
|
>
|
2019-01-10 18:46:57 +08:00
|
|
|
<IconReact
|
2018-09-02 19:53:29 +08:00
|
|
|
className=""
|
2019-08-13 14:07:17 +08:00
|
|
|
icon={
|
|
|
|
Object {
|
|
|
|
"icon": Object {
|
|
|
|
"attrs": Object {
|
|
|
|
"focusable": "false",
|
|
|
|
"viewBox": "64 64 896 896",
|
|
|
|
},
|
|
|
|
"children": Array [
|
|
|
|
Object {
|
|
|
|
"attrs": Object {
|
|
|
|
"d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z",
|
|
|
|
},
|
|
|
|
"tag": "path",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
"tag": "svg",
|
|
|
|
},
|
|
|
|
"name": "close-circle",
|
2019-12-25 11:17:14 +08:00
|
|
|
"theme": "filled",
|
2019-08-13 14:07:17 +08:00
|
|
|
}
|
|
|
|
}
|
2018-09-02 19:53:29 +08:00
|
|
|
>
|
2019-01-10 18:46:57 +08:00
|
|
|
<svg
|
|
|
|
aria-hidden="true"
|
|
|
|
className=""
|
|
|
|
data-icon="close-circle"
|
|
|
|
fill="currentColor"
|
2019-04-11 12:48:36 +08:00
|
|
|
focusable="false"
|
2019-01-10 18:46:57 +08:00
|
|
|
height="1em"
|
|
|
|
key="svg-close-circle"
|
|
|
|
viewBox="64 64 896 896"
|
|
|
|
width="1em"
|
|
|
|
>
|
|
|
|
<path
|
2019-08-13 14:07:17 +08:00
|
|
|
d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"
|
2019-01-10 18:46:57 +08:00
|
|
|
key="svg-close-circle-svg-0"
|
|
|
|
/>
|
|
|
|
</svg>
|
|
|
|
</IconReact>
|
2019-08-13 14:07:17 +08:00
|
|
|
</span>
|
2020-03-18 17:06:01 +08:00
|
|
|
</AntdIcon>
|
2020-01-02 14:11:12 +08:00
|
|
|
</ForwardRef(CloseCircleFilled)>
|
2016-11-25 12:03:39 +08:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</Search>
|
|
|
|
`;
|