2016-11-25 15:00:28 +08:00
|
|
|
exports[`test renders ./components/upload/demo/avatar.md correctly 1`] = `
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2016-11-25 15:00:28 +08:00
|
|
|
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>
|
|
|
|
`;
|
|
|
|
|
2016-11-25 15:00:28 +08:00
|
|
|
exports[`test renders ./components/upload/demo/basic.md correctly 1`] = `
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
|
|
|
class="">
|
|
|
|
<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" />
|
|
|
|
</span>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`test renders ./components/upload/demo/defaultFileList.md correctly 1`] = `
|
|
|
|
<span
|
|
|
|
class="">
|
|
|
|
<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">
|
|
|
|
<div
|
|
|
|
class="ant-upload-list-item ant-upload-list-item-done">
|
|
|
|
<div
|
|
|
|
class="ant-upload-list-item-info">
|
|
|
|
<i
|
2016-11-30 10:20:23 +08:00
|
|
|
class="anticon anticon-paper-clip" />
|
2016-11-22 14:28:05 +08:00
|
|
|
<a
|
|
|
|
class="ant-upload-list-item-name"
|
|
|
|
href="http://www.baidu.com/xxx.png"
|
|
|
|
rel="noopener noreferrer"
|
|
|
|
target="_blank">
|
|
|
|
xxx.png
|
|
|
|
</a>
|
|
|
|
<i
|
2016-11-30 10:20:23 +08:00
|
|
|
class="anticon anticon-cross"
|
2016-11-22 14:28:05 +08:00
|
|
|
title="Remove file" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="ant-upload-list-item ant-upload-list-item-done">
|
|
|
|
<div
|
|
|
|
class="ant-upload-list-item-info">
|
|
|
|
<i
|
2016-11-30 10:20:23 +08:00
|
|
|
class="anticon anticon-paper-clip" />
|
2016-11-22 14:28:05 +08:00
|
|
|
<a
|
|
|
|
class="ant-upload-list-item-name"
|
|
|
|
href="http://www.baidu.com/yyy.png"
|
|
|
|
rel="noopener noreferrer"
|
|
|
|
target="_blank">
|
|
|
|
yyy.png
|
|
|
|
</a>
|
|
|
|
<i
|
2016-11-30 10:20:23 +08:00
|
|
|
class="anticon anticon-cross"
|
2016-11-22 14:28:05 +08:00
|
|
|
title="Remove file" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</span>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`test renders ./components/upload/demo/drag.md correctly 1`] = `
|
2016-11-25 15:00:28 +08:00
|
|
|
<div
|
|
|
|
style="margin-top:16px;height:180px;">
|
|
|
|
<span
|
|
|
|
class="">
|
|
|
|
<div
|
|
|
|
class="ant-upload ant-upload-drag" />
|
|
|
|
</span>
|
2016-11-22 14:28:05 +08:00
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`test renders ./components/upload/demo/fileList.md correctly 1`] = `
|
|
|
|
<span
|
|
|
|
class="">
|
|
|
|
<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">
|
|
|
|
<div
|
|
|
|
class="ant-upload-list-item ant-upload-list-item-done">
|
|
|
|
<div
|
|
|
|
class="ant-upload-list-item-info">
|
|
|
|
<i
|
2016-11-30 10:20:23 +08:00
|
|
|
class="anticon anticon-paper-clip" />
|
2016-11-22 14:28:05 +08:00
|
|
|
<a
|
|
|
|
class="ant-upload-list-item-name"
|
|
|
|
href="http://www.baidu.com/xxx.png"
|
|
|
|
rel="noopener noreferrer"
|
|
|
|
target="_blank">
|
|
|
|
xxx.png
|
|
|
|
</a>
|
|
|
|
<i
|
2016-11-30 10:20:23 +08:00
|
|
|
class="anticon anticon-cross"
|
2016-11-22 14:28:05 +08:00
|
|
|
title="Remove file" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</span>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`test renders ./components/upload/demo/picture-card.md correctly 1`] = `
|
|
|
|
<div
|
|
|
|
class="clearfix">
|
|
|
|
<span
|
|
|
|
class="">
|
|
|
|
<div
|
|
|
|
class="ant-upload-list ant-upload-list-picture-card">
|
|
|
|
<div
|
|
|
|
class="ant-upload-list-item ant-upload-list-item-done">
|
|
|
|
<div
|
|
|
|
class="ant-upload-list-item-info">
|
|
|
|
<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">
|
|
|
|
xxx.png
|
|
|
|
</a>
|
|
|
|
<span>
|
|
|
|
<a
|
|
|
|
href="https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png"
|
|
|
|
rel="noopener noreferrer"
|
|
|
|
target="_blank">
|
|
|
|
<i
|
2016-11-30 10:20:23 +08:00
|
|
|
class="anticon anticon-eye-o" />
|
2016-11-22 14:28:05 +08:00
|
|
|
</a>
|
|
|
|
<i
|
2016-11-30 10:20:23 +08:00
|
|
|
class="anticon anticon-delete"
|
2016-11-22 14:28:05 +08:00
|
|
|
title="Remove file" />
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</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[`test renders ./components/upload/demo/picture-style.md correctly 1`] = `
|
|
|
|
<div>
|
|
|
|
<span
|
|
|
|
class="">
|
|
|
|
<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">
|
|
|
|
<div
|
|
|
|
class="ant-upload-list-item ant-upload-list-item-done">
|
|
|
|
<div
|
|
|
|
class="ant-upload-list-item-info">
|
|
|
|
<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">
|
|
|
|
xxx.png
|
|
|
|
</a>
|
|
|
|
<i
|
2016-11-30 10:20:23 +08:00
|
|
|
class="anticon anticon-cross"
|
2016-11-22 14:28:05 +08:00
|
|
|
title="Remove file" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="ant-upload-list-item ant-upload-list-item-done">
|
|
|
|
<div
|
|
|
|
class="ant-upload-list-item-info">
|
|
|
|
<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">
|
|
|
|
yyy.png
|
|
|
|
</a>
|
|
|
|
<i
|
2016-11-30 10:20:23 +08:00
|
|
|
class="anticon anticon-cross"
|
2016-11-22 14:28:05 +08:00
|
|
|
title="Remove file" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</span>
|
|
|
|
<br />
|
|
|
|
<br />
|
|
|
|
<span
|
|
|
|
class="upload-list-inline">
|
|
|
|
<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">
|
|
|
|
<div
|
|
|
|
class="ant-upload-list-item ant-upload-list-item-done">
|
|
|
|
<div
|
|
|
|
class="ant-upload-list-item-info">
|
|
|
|
<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">
|
|
|
|
xxx.png
|
|
|
|
</a>
|
|
|
|
<i
|
2016-11-30 10:20:23 +08:00
|
|
|
class="anticon anticon-cross"
|
2016-11-22 14:28:05 +08:00
|
|
|
title="Remove file" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="ant-upload-list-item ant-upload-list-item-done">
|
|
|
|
<div
|
|
|
|
class="ant-upload-list-item-info">
|
|
|
|
<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">
|
|
|
|
yyy.png
|
|
|
|
</a>
|
|
|
|
<i
|
2016-11-30 10:20:23 +08:00
|
|
|
class="anticon anticon-cross"
|
2016-11-22 14:28:05 +08:00
|
|
|
title="Remove file" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
`;
|