ant-design/components/transfer/__tests__/__snapshots__/demo.test.js.snap

991 lines
23 KiB
Plaintext
Raw Normal View History

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/transfer/demo/advanced.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div
class="ant-transfer"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-transfer-list ant-transfer-list-with-footer"
2017-09-20 16:26:18 +08:00
style="width:250px;height:300px"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-checkbox"
>
<input
class="ant-checkbox-input"
type="checkbox"
/>
2017-02-28 16:14:41 +08:00
<span
class="ant-checkbox-inner"
/>
</span>
</label>
2016-11-22 14:28:05 +08:00
<span
class="ant-transfer-list-header-selected"
>
2016-11-22 14:28:05 +08:00
<span>
0 item
2016-11-22 14:28:05 +08:00
</span>
<span
class="ant-transfer-list-header-title"
/>
2016-11-22 14:28:05 +08:00
</span>
</div>
<div
class="ant-transfer-list-body ant-transfer-list-body-with-search"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-transfer-list-body-search-wrapper"
>
2016-11-22 14:28:05 +08:00
<div>
2016-12-04 16:57:38 +08:00
<input
class="ant-input ant-transfer-list-search"
placeholder="Search here"
2016-12-04 16:57:38 +08:00
type="text"
value=""
/>
2016-11-22 14:28:05 +08:00
<span
class="ant-transfer-list-search-action"
>
2016-11-22 14:28:05 +08:00
<i
2018-08-13 20:51:01 +08:00
class="anticon anticon-search"
2018-09-02 19:53:29 +08:00
>
<svg
aria-hidden="true"
class=""
data-icon="search"
fill="currentColor"
height="1em"
2018-09-06 20:55:23 +08:00
viewBox="64 64 896 896"
2018-09-02 19:53:29 +08:00
width="1em"
>
<path
2018-09-06 20:55:23 +08:00
d="M608 112c-167.9 0-304 136.1-304 304 0 70.3 23.9 135 63.9 186.5L114.3 856.1a8.03 8.03 0 0 0 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"
2018-09-02 19:53:29 +08:00
/>
</svg>
</i>
2016-11-22 14:28:05 +08:00
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
2016-11-24 17:47:56 +08:00
<div
class="ant-transfer-list-body-not-found"
>
2016-11-24 17:47:56 +08:00
Not Found
</div>
2016-11-22 14:28:05 +08:00
</div>
<div
class="ant-transfer-list-footer"
>
2016-11-22 14:28:05 +08:00
<button
2017-02-04 22:35:33 +08:00
class="ant-btn ant-btn-sm"
2017-09-20 16:26:18 +08:00
style="float:right;margin:5px"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
reload
</span>
</button>
</div>
</div>
<div
class="ant-transfer-operation"
>
2016-11-22 14:28:05 +08:00
<button
class="ant-btn ant-btn-primary ant-btn-sm"
disabled=""
type="button"
>
<i
2018-08-13 20:51:01 +08:00
class="anticon anticon-right"
2018-09-02 19:53:29 +08:00
>
<svg
aria-hidden="true"
class=""
data-icon="right"
fill="currentColor"
height="1em"
2018-09-06 20:55:23 +08:00
viewBox="64 64 896 896"
2018-09-02 19:53:29 +08:00
width="1em"
>
<path
2018-09-06 20:55:23 +08:00
d="M765.7 486.8L314.9 134.7A7.97 7.97 0 0 0 302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 0 0 0-50.4z"
2018-09-02 19:53:29 +08:00
/>
</svg>
</i>
2016-11-22 14:28:05 +08:00
<span>
to right
2016-11-22 14:28:05 +08:00
</span>
</button>
<button
class="ant-btn ant-btn-primary ant-btn-sm"
disabled=""
type="button"
>
<i
2018-08-13 20:51:01 +08:00
class="anticon anticon-left"
2018-09-02 19:53:29 +08:00
>
<svg
aria-hidden="true"
class=""
data-icon="left"
fill="currentColor"
height="1em"
2018-09-06 20:55:23 +08:00
viewBox="64 64 896 896"
2018-09-02 19:53:29 +08:00
width="1em"
>
<path
2018-09-06 20:55:23 +08:00
d="M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 0 0 0 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"
2018-09-02 19:53:29 +08:00
/>
</svg>
</i>
2016-11-22 14:28:05 +08:00
<span>
to left
2016-11-22 14:28:05 +08:00
</span>
</button>
</div>
<div
class="ant-transfer-list ant-transfer-list-with-footer"
2017-09-20 16:26:18 +08:00
style="width:250px;height:300px"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-checkbox"
>
<input
class="ant-checkbox-input"
type="checkbox"
/>
2017-02-28 16:14:41 +08:00
<span
class="ant-checkbox-inner"
/>
</span>
</label>
2016-11-22 14:28:05 +08:00
<span
class="ant-transfer-list-header-selected"
>
2016-11-22 14:28:05 +08:00
<span>
0 item
2016-11-22 14:28:05 +08:00
</span>
<span
class="ant-transfer-list-header-title"
/>
2016-11-22 14:28:05 +08:00
</span>
</div>
<div
class="ant-transfer-list-body ant-transfer-list-body-with-search"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-transfer-list-body-search-wrapper"
>
2016-11-22 14:28:05 +08:00
<div>
2016-12-04 16:57:38 +08:00
<input
class="ant-input ant-transfer-list-search"
placeholder="Search here"
2016-12-04 16:57:38 +08:00
type="text"
value=""
/>
2016-11-22 14:28:05 +08:00
<span
class="ant-transfer-list-search-action"
>
2016-11-22 14:28:05 +08:00
<i
2018-08-13 20:51:01 +08:00
class="anticon anticon-search"
2018-09-02 19:53:29 +08:00
>
<svg
aria-hidden="true"
class=""
data-icon="search"
fill="currentColor"
height="1em"
2018-09-06 20:55:23 +08:00
viewBox="64 64 896 896"
2018-09-02 19:53:29 +08:00
width="1em"
>
<path
2018-09-06 20:55:23 +08:00
d="M608 112c-167.9 0-304 136.1-304 304 0 70.3 23.9 135 63.9 186.5L114.3 856.1a8.03 8.03 0 0 0 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"
2018-09-02 19:53:29 +08:00
/>
</svg>
</i>
2016-11-22 14:28:05 +08:00
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
2016-11-24 17:47:56 +08:00
<div
class="ant-transfer-list-body-not-found"
>
2016-11-24 17:47:56 +08:00
Not Found
</div>
2016-11-22 14:28:05 +08:00
</div>
<div
class="ant-transfer-list-footer"
>
2016-11-22 14:28:05 +08:00
<button
2017-02-04 22:35:33 +08:00
class="ant-btn ant-btn-sm"
2017-09-20 16:26:18 +08:00
style="float:right;margin:5px"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
reload
</span>
</button>
</div>
</div>
</div>
`;
exports[`renders ./components/transfer/demo/basic.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div
class="ant-transfer"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-transfer-list"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-checkbox"
>
<input
class="ant-checkbox-input"
type="checkbox"
/>
2017-02-28 16:14:41 +08:00
<span
class="ant-checkbox-inner"
/>
</span>
</label>
2016-11-22 14:28:05 +08:00
<span
class="ant-transfer-list-header-selected"
>
2016-11-22 14:28:05 +08:00
<span>
14 items
2016-11-22 14:28:05 +08:00
</span>
<span
class="ant-transfer-list-header-title"
>
2016-11-22 14:28:05 +08:00
Source
</span>
</span>
</div>
<div
class="ant-transfer-list-body"
>
2016-11-22 14:28:05 +08:00
<ul
class="ant-transfer-list-content"
>
2016-11-22 14:28:05 +08:00
<div
class="LazyLoad"
2017-09-20 16:26:18 +08:00
style="height:32px"
/>
2016-11-22 14:28:05 +08:00
<div
class="LazyLoad"
2017-09-20 16:26:18 +08:00
style="height:32px"
/>
2016-11-22 14:28:05 +08:00
<div
class="LazyLoad"
2017-09-20 16:26:18 +08:00
style="height:32px"
/>
2016-11-22 14:28:05 +08:00
<div
class="LazyLoad"
2017-09-20 16:26:18 +08:00
style="height:32px"
/>
2016-11-22 14:28:05 +08:00
<div
class="LazyLoad"
2017-09-20 16:26:18 +08:00
style="height:32px"
/>
2016-11-22 14:28:05 +08:00
<div
class="LazyLoad"
2017-09-20 16:26:18 +08:00
style="height:32px"
/>
2016-11-22 14:28:05 +08:00
<div
class="LazyLoad"
2017-09-20 16:26:18 +08:00
style="height:32px"
/>
2016-11-22 14:28:05 +08:00
<div
class="LazyLoad"
2017-09-20 16:26:18 +08:00
style="height:32px"
/>
2016-11-22 14:28:05 +08:00
<div
class="LazyLoad"
2017-09-20 16:26:18 +08:00
style="height:32px"
/>
2016-11-22 14:28:05 +08:00
<div
class="LazyLoad"
2017-09-20 16:26:18 +08:00
style="height:32px"
/>
2016-11-22 14:28:05 +08:00
<div
class="LazyLoad"
2017-09-20 16:26:18 +08:00
style="height:32px"
/>
2016-11-22 14:28:05 +08:00
<div
class="LazyLoad"
2017-09-20 16:26:18 +08:00
style="height:32px"
/>
2016-11-22 14:28:05 +08:00
<div
class="LazyLoad"
2017-09-20 16:26:18 +08:00
style="height:32px"
/>
2016-11-22 14:28:05 +08:00
<div
class="LazyLoad"
2017-09-20 16:26:18 +08:00
style="height:32px"
/>
2016-11-22 14:28:05 +08:00
</ul>
2016-11-24 17:47:56 +08:00
<div
class="ant-transfer-list-body-not-found"
>
2016-11-24 17:47:56 +08:00
Not Found
</div>
2016-11-22 14:28:05 +08:00
</div>
</div>
<div
class="ant-transfer-operation"
>
2016-11-22 14:28:05 +08:00
<button
class="ant-btn ant-btn-primary ant-btn-sm ant-btn-icon-only"
2016-11-22 14:28:05 +08:00
disabled=""
type="button"
>
<i
2018-08-13 20:51:01 +08:00
class="anticon anticon-right"
2018-09-02 19:53:29 +08:00
>
<svg
aria-hidden="true"
class=""
data-icon="right"
fill="currentColor"
height="1em"
2018-09-06 20:55:23 +08:00
viewBox="64 64 896 896"
2018-09-02 19:53:29 +08:00
width="1em"
>
<path
2018-09-06 20:55:23 +08:00
d="M765.7 486.8L314.9 134.7A7.97 7.97 0 0 0 302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 0 0 0-50.4z"
2018-09-02 19:53:29 +08:00
/>
</svg>
</i>
2016-11-22 14:28:05 +08:00
</button>
<button
class="ant-btn ant-btn-primary ant-btn-sm ant-btn-icon-only"
2016-11-22 14:28:05 +08:00
disabled=""
type="button"
>
<i
2018-08-13 20:51:01 +08:00
class="anticon anticon-left"
2018-09-02 19:53:29 +08:00
>
<svg
aria-hidden="true"
class=""
data-icon="left"
fill="currentColor"
height="1em"
2018-09-06 20:55:23 +08:00
viewBox="64 64 896 896"
2018-09-02 19:53:29 +08:00
width="1em"
>
<path
2018-09-06 20:55:23 +08:00
d="M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 0 0 0 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"
2018-09-02 19:53:29 +08:00
/>
</svg>
</i>
2016-11-22 14:28:05 +08:00
</button>
</div>
<div
class="ant-transfer-list"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-checkbox"
>
<input
class="ant-checkbox-input"
type="checkbox"
/>
2017-02-28 16:14:41 +08:00
<span
class="ant-checkbox-inner"
/>
</span>
</label>
2016-11-22 14:28:05 +08:00
<span
class="ant-transfer-list-header-selected"
>
2016-11-22 14:28:05 +08:00
<span>
6 items
2016-11-22 14:28:05 +08:00
</span>
<span
class="ant-transfer-list-header-title"
>
2016-11-22 14:28:05 +08:00
Target
</span>
</span>
</div>
<div
class="ant-transfer-list-body"
>
2016-11-22 14:28:05 +08:00
<ul
class="ant-transfer-list-content"
>
2016-11-22 14:28:05 +08:00
<div
class="LazyLoad"
2017-09-20 16:26:18 +08:00
style="height:32px"
/>
2016-11-22 14:28:05 +08:00
<div
class="LazyLoad"
2017-09-20 16:26:18 +08:00
style="height:32px"
/>
2016-11-22 14:28:05 +08:00
<div
class="LazyLoad"
2017-09-20 16:26:18 +08:00
style="height:32px"
/>
2016-11-22 14:28:05 +08:00
<div
class="LazyLoad"
2017-09-20 16:26:18 +08:00
style="height:32px"
/>
2016-11-22 14:28:05 +08:00
<div
class="LazyLoad"
2017-09-20 16:26:18 +08:00
style="height:32px"
/>
2016-11-22 14:28:05 +08:00
<div
class="LazyLoad"
2017-09-20 16:26:18 +08:00
style="height:32px"
/>
2016-11-22 14:28:05 +08:00
</ul>
2016-11-24 17:47:56 +08:00
<div
class="ant-transfer-list-body-not-found"
>
2016-11-24 17:47:56 +08:00
Not Found
</div>
2016-11-22 14:28:05 +08:00
</div>
</div>
</div>
`;
exports[`renders ./components/transfer/demo/custom-item.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div
class="ant-transfer"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-transfer-list"
2017-09-20 16:26:18 +08:00
style="width:300px;height:300px"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-checkbox"
>
<input
class="ant-checkbox-input"
type="checkbox"
/>
2017-02-28 16:14:41 +08:00
<span
class="ant-checkbox-inner"
/>
</span>
</label>
2016-11-22 14:28:05 +08:00
<span
class="ant-transfer-list-header-selected"
>
2016-11-22 14:28:05 +08:00
<span>
0 item
2016-11-22 14:28:05 +08:00
</span>
<span
class="ant-transfer-list-header-title"
/>
2016-11-22 14:28:05 +08:00
</span>
</div>
<div
class="ant-transfer-list-body"
>
2016-11-22 14:28:05 +08:00
<ul
class="ant-transfer-list-content"
/>
2016-11-24 17:47:56 +08:00
<div
class="ant-transfer-list-body-not-found"
>
2016-11-24 17:47:56 +08:00
Not Found
</div>
2016-11-22 14:28:05 +08:00
</div>
</div>
<div
class="ant-transfer-operation"
>
2016-11-22 14:28:05 +08:00
<button
class="ant-btn ant-btn-primary ant-btn-sm ant-btn-icon-only"
2016-11-22 14:28:05 +08:00
disabled=""
type="button"
>
<i
2018-08-13 20:51:01 +08:00
class="anticon anticon-right"
2018-09-02 19:53:29 +08:00
>
<svg
aria-hidden="true"
class=""
data-icon="right"
fill="currentColor"
height="1em"
2018-09-06 20:55:23 +08:00
viewBox="64 64 896 896"
2018-09-02 19:53:29 +08:00
width="1em"
>
<path
2018-09-06 20:55:23 +08:00
d="M765.7 486.8L314.9 134.7A7.97 7.97 0 0 0 302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 0 0 0-50.4z"
2018-09-02 19:53:29 +08:00
/>
</svg>
</i>
2016-11-22 14:28:05 +08:00
</button>
<button
class="ant-btn ant-btn-primary ant-btn-sm ant-btn-icon-only"
2016-11-22 14:28:05 +08:00
disabled=""
type="button"
>
<i
2018-08-13 20:51:01 +08:00
class="anticon anticon-left"
2018-09-02 19:53:29 +08:00
>
<svg
aria-hidden="true"
class=""
data-icon="left"
fill="currentColor"
height="1em"
2018-09-06 20:55:23 +08:00
viewBox="64 64 896 896"
2018-09-02 19:53:29 +08:00
width="1em"
>
<path
2018-09-06 20:55:23 +08:00
d="M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 0 0 0 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"
2018-09-02 19:53:29 +08:00
/>
</svg>
</i>
2016-11-22 14:28:05 +08:00
</button>
</div>
<div
class="ant-transfer-list"
2017-09-20 16:26:18 +08:00
style="width:300px;height:300px"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-checkbox"
>
<input
class="ant-checkbox-input"
type="checkbox"
/>
2017-02-28 16:14:41 +08:00
<span
class="ant-checkbox-inner"
/>
</span>
</label>
2016-11-22 14:28:05 +08:00
<span
class="ant-transfer-list-header-selected"
>
2016-11-22 14:28:05 +08:00
<span>
0 item
2016-11-22 14:28:05 +08:00
</span>
<span
class="ant-transfer-list-header-title"
/>
2016-11-22 14:28:05 +08:00
</span>
</div>
<div
class="ant-transfer-list-body"
>
2016-11-22 14:28:05 +08:00
<ul
class="ant-transfer-list-content"
/>
2016-11-24 17:47:56 +08:00
<div
class="ant-transfer-list-body-not-found"
>
2016-11-24 17:47:56 +08:00
Not Found
</div>
2016-11-22 14:28:05 +08:00
</div>
</div>
</div>
`;
exports[`renders ./components/transfer/demo/large-data.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div
class="ant-transfer"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-transfer-list"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-checkbox"
>
<input
class="ant-checkbox-input"
type="checkbox"
/>
2017-02-28 16:14:41 +08:00
<span
class="ant-checkbox-inner"
/>
</span>
</label>
2016-11-22 14:28:05 +08:00
<span
class="ant-transfer-list-header-selected"
>
2016-11-22 14:28:05 +08:00
<span>
0 item
2016-11-22 14:28:05 +08:00
</span>
<span
class="ant-transfer-list-header-title"
/>
2016-11-22 14:28:05 +08:00
</span>
</div>
<div
class="ant-transfer-list-body"
>
2016-11-22 14:28:05 +08:00
<ul
class="ant-transfer-list-content"
/>
2016-11-24 17:47:56 +08:00
<div
class="ant-transfer-list-body-not-found"
>
2016-11-24 17:47:56 +08:00
Not Found
</div>
2016-11-22 14:28:05 +08:00
</div>
</div>
<div
class="ant-transfer-operation"
>
2016-11-22 14:28:05 +08:00
<button
class="ant-btn ant-btn-primary ant-btn-sm ant-btn-icon-only"
2016-11-22 14:28:05 +08:00
disabled=""
type="button"
>
<i
2018-08-13 20:51:01 +08:00
class="anticon anticon-right"
2018-09-02 19:53:29 +08:00
>
<svg
aria-hidden="true"
class=""
data-icon="right"
fill="currentColor"
height="1em"
2018-09-06 20:55:23 +08:00
viewBox="64 64 896 896"
2018-09-02 19:53:29 +08:00
width="1em"
>
<path
2018-09-06 20:55:23 +08:00
d="M765.7 486.8L314.9 134.7A7.97 7.97 0 0 0 302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 0 0 0-50.4z"
2018-09-02 19:53:29 +08:00
/>
</svg>
</i>
2016-11-22 14:28:05 +08:00
</button>
<button
class="ant-btn ant-btn-primary ant-btn-sm ant-btn-icon-only"
2016-11-22 14:28:05 +08:00
disabled=""
type="button"
>
<i
2018-08-13 20:51:01 +08:00
class="anticon anticon-left"
2018-09-02 19:53:29 +08:00
>
<svg
aria-hidden="true"
class=""
data-icon="left"
fill="currentColor"
height="1em"
2018-09-06 20:55:23 +08:00
viewBox="64 64 896 896"
2018-09-02 19:53:29 +08:00
width="1em"
>
<path
2018-09-06 20:55:23 +08:00
d="M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 0 0 0 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"
2018-09-02 19:53:29 +08:00
/>
</svg>
</i>
2016-11-22 14:28:05 +08:00
</button>
</div>
<div
class="ant-transfer-list"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-checkbox"
>
<input
class="ant-checkbox-input"
type="checkbox"
/>
2017-02-28 16:14:41 +08:00
<span
class="ant-checkbox-inner"
/>
</span>
</label>
2016-11-22 14:28:05 +08:00
<span
class="ant-transfer-list-header-selected"
>
2016-11-22 14:28:05 +08:00
<span>
0 item
2016-11-22 14:28:05 +08:00
</span>
<span
class="ant-transfer-list-header-title"
/>
2016-11-22 14:28:05 +08:00
</span>
</div>
<div
class="ant-transfer-list-body"
>
2016-11-22 14:28:05 +08:00
<ul
class="ant-transfer-list-content"
/>
2016-11-24 17:47:56 +08:00
<div
class="ant-transfer-list-body-not-found"
>
2016-11-24 17:47:56 +08:00
Not Found
</div>
2016-11-22 14:28:05 +08:00
</div>
</div>
</div>
`;
exports[`renders ./components/transfer/demo/search.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div
class="ant-transfer"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-transfer-list"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-checkbox"
>
<input
class="ant-checkbox-input"
type="checkbox"
/>
2017-02-28 16:14:41 +08:00
<span
class="ant-checkbox-inner"
/>
</span>
</label>
2016-11-22 14:28:05 +08:00
<span
class="ant-transfer-list-header-selected"
>
2016-11-22 14:28:05 +08:00
<span>
0 item
2016-11-22 14:28:05 +08:00
</span>
<span
class="ant-transfer-list-header-title"
/>
2016-11-22 14:28:05 +08:00
</span>
</div>
<div
class="ant-transfer-list-body ant-transfer-list-body-with-search"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-transfer-list-body-search-wrapper"
>
2016-11-22 14:28:05 +08:00
<div>
2016-12-04 16:57:38 +08:00
<input
class="ant-input ant-transfer-list-search"
placeholder="Search here"
2016-12-04 16:57:38 +08:00
type="text"
value=""
/>
2016-11-22 14:28:05 +08:00
<span
class="ant-transfer-list-search-action"
>
2016-11-22 14:28:05 +08:00
<i
2018-08-13 20:51:01 +08:00
class="anticon anticon-search"
2018-09-02 19:53:29 +08:00
>
<svg
aria-hidden="true"
class=""
data-icon="search"
fill="currentColor"
height="1em"
2018-09-06 20:55:23 +08:00
viewBox="64 64 896 896"
2018-09-02 19:53:29 +08:00
width="1em"
>
<path
2018-09-06 20:55:23 +08:00
d="M608 112c-167.9 0-304 136.1-304 304 0 70.3 23.9 135 63.9 186.5L114.3 856.1a8.03 8.03 0 0 0 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"
2018-09-02 19:53:29 +08:00
/>
</svg>
</i>
2016-11-22 14:28:05 +08:00
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
2016-11-24 17:47:56 +08:00
<div
class="ant-transfer-list-body-not-found"
>
2016-11-24 17:47:56 +08:00
Not Found
</div>
2016-11-22 14:28:05 +08:00
</div>
</div>
<div
class="ant-transfer-operation"
>
2016-11-22 14:28:05 +08:00
<button
class="ant-btn ant-btn-primary ant-btn-sm ant-btn-icon-only"
2016-11-22 14:28:05 +08:00
disabled=""
type="button"
>
<i
2018-08-13 20:51:01 +08:00
class="anticon anticon-right"
2018-09-02 19:53:29 +08:00
>
<svg
aria-hidden="true"
class=""
data-icon="right"
fill="currentColor"
height="1em"
2018-09-06 20:55:23 +08:00
viewBox="64 64 896 896"
2018-09-02 19:53:29 +08:00
width="1em"
>
<path
2018-09-06 20:55:23 +08:00
d="M765.7 486.8L314.9 134.7A7.97 7.97 0 0 0 302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 0 0 0-50.4z"
2018-09-02 19:53:29 +08:00
/>
</svg>
</i>
2016-11-22 14:28:05 +08:00
</button>
<button
class="ant-btn ant-btn-primary ant-btn-sm ant-btn-icon-only"
2016-11-22 14:28:05 +08:00
disabled=""
type="button"
>
<i
2018-08-13 20:51:01 +08:00
class="anticon anticon-left"
2018-09-02 19:53:29 +08:00
>
<svg
aria-hidden="true"
class=""
data-icon="left"
fill="currentColor"
height="1em"
2018-09-06 20:55:23 +08:00
viewBox="64 64 896 896"
2018-09-02 19:53:29 +08:00
width="1em"
>
<path
2018-09-06 20:55:23 +08:00
d="M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 0 0 0 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"
2018-09-02 19:53:29 +08:00
/>
</svg>
</i>
2016-11-22 14:28:05 +08:00
</button>
</div>
<div
class="ant-transfer-list"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-checkbox"
>
<input
class="ant-checkbox-input"
type="checkbox"
/>
2017-02-28 16:14:41 +08:00
<span
class="ant-checkbox-inner"
/>
</span>
</label>
2016-11-22 14:28:05 +08:00
<span
class="ant-transfer-list-header-selected"
>
2016-11-22 14:28:05 +08:00
<span>
0 item
2016-11-22 14:28:05 +08:00
</span>
<span
class="ant-transfer-list-header-title"
/>
2016-11-22 14:28:05 +08:00
</span>
</div>
<div
class="ant-transfer-list-body ant-transfer-list-body-with-search"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-transfer-list-body-search-wrapper"
>
2016-11-22 14:28:05 +08:00
<div>
2016-12-04 16:57:38 +08:00
<input
class="ant-input ant-transfer-list-search"
placeholder="Search here"
2016-12-04 16:57:38 +08:00
type="text"
value=""
/>
2016-11-22 14:28:05 +08:00
<span
class="ant-transfer-list-search-action"
>
2016-11-22 14:28:05 +08:00
<i
2018-08-13 20:51:01 +08:00
class="anticon anticon-search"
2018-09-02 19:53:29 +08:00
>
<svg
aria-hidden="true"
class=""
data-icon="search"
fill="currentColor"
height="1em"
2018-09-06 20:55:23 +08:00
viewBox="64 64 896 896"
2018-09-02 19:53:29 +08:00
width="1em"
>
<path
2018-09-06 20:55:23 +08:00
d="M608 112c-167.9 0-304 136.1-304 304 0 70.3 23.9 135 63.9 186.5L114.3 856.1a8.03 8.03 0 0 0 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"
2018-09-02 19:53:29 +08:00
/>
</svg>
</i>
2016-11-22 14:28:05 +08:00
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
2016-11-24 17:47:56 +08:00
<div
class="ant-transfer-list-body-not-found"
>
2016-11-24 17:47:56 +08:00
Not Found
</div>
2016-11-22 14:28:05 +08:00
</div>
</div>
</div>
`;