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

795 lines
15 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
class="anticon anticon-search"
/>
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
class="anticon anticon-left"
/>
2016-11-22 14:28:05 +08:00
<span>
to left
</span>
</button>
<button
class="ant-btn ant-btn-primary ant-btn-sm"
disabled=""
type="button"
>
<i
class="anticon anticon-right"
/>
2016-11-22 14:28:05 +08:00
<span>
to right
</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
class="anticon anticon-search"
/>
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
class="anticon anticon-left"
/>
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
class="anticon anticon-right"
/>
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
class="anticon anticon-left"
/>
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
class="anticon anticon-right"
/>
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
class="anticon anticon-left"
/>
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
class="anticon anticon-right"
/>
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
class="anticon anticon-search"
/>
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
class="anticon anticon-left"
/>
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
class="anticon anticon-right"
/>
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
class="anticon anticon-search"
/>
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>
`;