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

434 lines
10 KiB
Plaintext
Raw Normal View History

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/upload/demo/avatar.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<span
class="avatar-uploader"
>
2016-11-22 14:28:05 +08:00
<div
2016-11-24 17:26:32 +08:00
class="ant-upload ant-upload-select ant-upload-select-text"
style="display:;"
/>
2016-11-22 14:28:05 +08:00
</span>
`;
exports[`renders ./components/upload/demo/basic.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<span
class=""
>
2016-11-22 14:28:05 +08:00
<div
2016-11-24 17:26:32 +08:00
class="ant-upload ant-upload-select ant-upload-select-text"
style="display:;"
/>
2016-11-22 14:28:05 +08:00
<div
class="ant-upload-list ant-upload-list-text"
/>
2016-11-22 14:28:05 +08:00
</span>
`;
exports[`renders ./components/upload/demo/defaultFileList.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<span
class=""
>
2016-11-22 14:28:05 +08:00
<div
2016-11-24 17:26:32 +08:00
class="ant-upload ant-upload-select ant-upload-select-text"
style="display:;"
/>
2016-11-22 14:28:05 +08:00
<div
class="ant-upload-list ant-upload-list-text"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-upload-list-item ant-upload-list-item-done"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-upload-list-item-info"
>
<span>
<i
class="anticon anticon-paper-clip"
/>
<a
class="ant-upload-list-item-name"
href="http://www.baidu.com/xxx.png"
rel="noopener noreferrer"
target="_blank"
title="xxx.png"
>
xxx.png
</a>
</span>
2016-11-22 14:28:05 +08:00
</div>
<i
class="anticon anticon-cross"
title="Remove file"
/>
2016-11-22 14:28:05 +08:00
</div>
<div
class="ant-upload-list-item ant-upload-list-item-done"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-upload-list-item-info"
>
<span>
<i
class="anticon anticon-paper-clip"
/>
<a
class="ant-upload-list-item-name"
href="http://www.baidu.com/yyy.png"
rel="noopener noreferrer"
target="_blank"
title="yyy.png"
>
yyy.png
</a>
</span>
2016-11-22 14:28:05 +08:00
</div>
<i
class="anticon anticon-cross"
title="Remove file"
/>
2016-11-22 14:28:05 +08:00
</div>
2017-02-19 01:39:41 +08:00
<div
class="ant-upload-list-item ant-upload-list-item-error"
>
2017-02-19 01:39:41 +08:00
<div
class="ant-upload-list-item-info"
>
<span>
<i
class="anticon anticon-paper-clip"
/>
<a
class="ant-upload-list-item-name"
href="http://www.baidu.com/zzz.png"
rel="noopener noreferrer"
target="_blank"
title="zzz.png"
>
zzz.png
</a>
</span>
2017-02-19 01:39:41 +08:00
</div>
<i
class="anticon anticon-cross"
title="Remove file"
/>
2017-02-19 01:39:41 +08:00
</div>
2016-11-22 14:28:05 +08:00
</div>
</span>
`;
exports[`renders ./components/upload/demo/drag.md correctly 1`] = `
2016-11-25 15:00:28 +08:00
<div
style="margin-top:16px;height:180px;"
>
2016-11-25 15:00:28 +08:00
<span
class=""
>
2016-11-25 15:00:28 +08:00
<div
class="ant-upload ant-upload-drag"
/>
2016-11-25 15:00:28 +08:00
</span>
2016-11-22 14:28:05 +08:00
</div>
`;
exports[`renders ./components/upload/demo/fileList.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<span
class=""
>
2016-11-22 14:28:05 +08:00
<div
2016-11-24 17:26:32 +08:00
class="ant-upload ant-upload-select ant-upload-select-text"
style="display:;"
/>
2016-11-22 14:28:05 +08:00
<div
class="ant-upload-list ant-upload-list-text"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-upload-list-item ant-upload-list-item-done"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-upload-list-item-info"
>
<span>
<i
class="anticon anticon-paper-clip"
/>
<a
class="ant-upload-list-item-name"
href="http://www.baidu.com/xxx.png"
rel="noopener noreferrer"
target="_blank"
title="xxx.png"
>
xxx.png
</a>
</span>
2016-11-22 14:28:05 +08:00
</div>
<i
class="anticon anticon-cross"
title="Remove file"
/>
2016-11-22 14:28:05 +08:00
</div>
</div>
</span>
`;
exports[`renders ./components/upload/demo/picture-card.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div
class="clearfix"
>
2016-11-22 14:28:05 +08:00
<span
class=""
>
2016-11-22 14:28:05 +08:00
<div
class="ant-upload-list ant-upload-list-picture-card"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-upload-list-item ant-upload-list-item-done"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-upload-list-item-info"
>
<span>
<a
class="ant-upload-list-item-thumbnail"
href="https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png"
rel="noopener noreferrer"
target="_blank"
>
<img
alt="xxx.png"
src="https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png"
/>
</a>
2016-11-22 14:28:05 +08:00
<a
class="ant-upload-list-item-name"
2016-11-22 14:28:05 +08:00
href="https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png"
rel="noopener noreferrer"
target="_blank"
title="xxx.png"
>
xxx.png
2016-11-22 14:28:05 +08:00
</a>
</span>
</div>
<span
class="ant-upload-list-item-actions"
>
<a
href="https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png"
rel="noopener noreferrer"
target="_blank"
title="Preview file"
>
<i
class="anticon anticon-eye-o"
/>
</a>
<i
class="anticon anticon-delete"
title="Remove file"
/>
</span>
2016-11-22 14:28:05 +08:00
</div>
</div>
<div
2016-11-24 17:26:32 +08:00
class="ant-upload ant-upload-select ant-upload-select-picture-card"
style="display:;"
/>
2016-11-22 14:28:05 +08:00
</span>
</div>
`;
exports[`renders ./components/upload/demo/picture-style.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div>
<span
class=""
>
2016-11-22 14:28:05 +08:00
<div
2016-11-24 17:26:32 +08:00
class="ant-upload ant-upload-select ant-upload-select-picture"
style="display:;"
/>
2016-11-22 14:28:05 +08:00
<div
class="ant-upload-list ant-upload-list-picture"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-upload-list-item ant-upload-list-item-done"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-upload-list-item-info"
>
<span>
<a
class="ant-upload-list-item-thumbnail"
href="https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png"
rel="noopener noreferrer"
target="_blank"
>
<img
alt="xxx.png"
src="https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png"
/>
</a>
<a
class="ant-upload-list-item-name"
href="https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png"
rel="noopener noreferrer"
target="_blank"
title="xxx.png"
>
xxx.png
</a>
</span>
2016-11-22 14:28:05 +08:00
</div>
<i
class="anticon anticon-cross"
title="Remove file"
/>
2016-11-22 14:28:05 +08:00
</div>
<div
class="ant-upload-list-item ant-upload-list-item-done"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-upload-list-item-info"
>
<span>
<a
class="ant-upload-list-item-thumbnail"
href="https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png"
rel="noopener noreferrer"
target="_blank"
>
<img
alt="yyy.png"
src="https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png"
/>
</a>
<a
class="ant-upload-list-item-name"
href="https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png"
rel="noopener noreferrer"
target="_blank"
title="yyy.png"
>
yyy.png
</a>
</span>
2016-11-22 14:28:05 +08:00
</div>
<i
class="anticon anticon-cross"
title="Remove file"
/>
2016-11-22 14:28:05 +08:00
</div>
</div>
</span>
<br />
<br />
<span
class="upload-list-inline"
>
2016-11-22 14:28:05 +08:00
<div
2016-11-24 17:26:32 +08:00
class="ant-upload ant-upload-select ant-upload-select-picture"
style="display:;"
/>
2016-11-22 14:28:05 +08:00
<div
class="ant-upload-list ant-upload-list-picture"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-upload-list-item ant-upload-list-item-done"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-upload-list-item-info"
>
<span>
<a
class="ant-upload-list-item-thumbnail"
href="https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png"
rel="noopener noreferrer"
target="_blank"
>
<img
alt="xxx.png"
src="https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png"
/>
</a>
<a
class="ant-upload-list-item-name"
href="https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png"
rel="noopener noreferrer"
target="_blank"
title="xxx.png"
>
xxx.png
</a>
</span>
2016-11-22 14:28:05 +08:00
</div>
<i
class="anticon anticon-cross"
title="Remove file"
/>
2016-11-22 14:28:05 +08:00
</div>
<div
class="ant-upload-list-item ant-upload-list-item-done"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-upload-list-item-info"
>
<span>
<a
class="ant-upload-list-item-thumbnail"
href="https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png"
rel="noopener noreferrer"
target="_blank"
>
<img
alt="yyy.png"
src="https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png"
/>
</a>
<a
class="ant-upload-list-item-name"
href="https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png"
rel="noopener noreferrer"
target="_blank"
title="yyy.png"
>
yyy.png
</a>
</span>
2016-11-22 14:28:05 +08:00
</div>
<i
class="anticon anticon-cross"
title="Remove file"
/>
2016-11-22 14:28:05 +08:00
</div>
</div>
</span>
</div>
`;
2017-07-14 15:00:14 +08:00
exports[`renders ./components/upload/demo/upload-manually.md correctly 1`] = `
<div>
<span
class=""
>
<div
class="ant-upload ant-upload-select ant-upload-select-text"
style="display:;"
/>
<div
class="ant-upload-list ant-upload-list-text"
/>
</span>
<button
class="ant-btn upload-demo-start ant-btn-primary"
2017-07-14 15:00:14 +08:00
disabled=""
type="button"
>
<span>
Start Upload
</span>
</button>
</div>
`;