mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-05 05:28:20 +08:00
462 lines
12 KiB
Plaintext
462 lines
12 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`renders ./components/upload/demo/avatar.md correctly 1`] = `
|
|
<span
|
|
class="avatar-uploader"
|
|
>
|
|
<div
|
|
class="ant-upload ant-upload-select ant-upload-select-picture-card"
|
|
style="display:"
|
|
/>
|
|
</span>
|
|
`;
|
|
|
|
exports[`renders ./components/upload/demo/basic.md correctly 1`] = `
|
|
<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>
|
|
`;
|
|
|
|
exports[`renders ./components/upload/demo/defaultFileList.md correctly 1`] = `
|
|
<span
|
|
class=""
|
|
>
|
|
<div
|
|
class="ant-upload ant-upload-select ant-upload-select-text"
|
|
style="display:"
|
|
/>
|
|
<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"
|
|
>
|
|
<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>
|
|
</div>
|
|
<i
|
|
class="anticon anticon-close"
|
|
title="Remove file"
|
|
/>
|
|
</div>
|
|
<div
|
|
class="ant-upload-list-item ant-upload-list-item-done"
|
|
>
|
|
<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>
|
|
</div>
|
|
<i
|
|
class="anticon anticon-close"
|
|
title="Remove file"
|
|
/>
|
|
</div>
|
|
<div
|
|
class="ant-upload-list-item ant-upload-list-item-error"
|
|
>
|
|
<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>
|
|
</div>
|
|
<i
|
|
class="anticon anticon-close"
|
|
title="Remove file"
|
|
/>
|
|
</div>
|
|
</div>
|
|
</span>
|
|
`;
|
|
|
|
exports[`renders ./components/upload/demo/directory.md correctly 1`] = `
|
|
<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>
|
|
`;
|
|
|
|
exports[`renders ./components/upload/demo/drag.md correctly 1`] = `
|
|
<span
|
|
class=""
|
|
>
|
|
<div
|
|
class="ant-upload ant-upload-drag"
|
|
/>
|
|
<div
|
|
class="ant-upload-list ant-upload-list-text"
|
|
/>
|
|
</span>
|
|
`;
|
|
|
|
exports[`renders ./components/upload/demo/fileList.md correctly 1`] = `
|
|
<span
|
|
class=""
|
|
>
|
|
<div
|
|
class="ant-upload ant-upload-select ant-upload-select-text"
|
|
style="display:"
|
|
/>
|
|
<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"
|
|
>
|
|
<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>
|
|
</div>
|
|
<i
|
|
class="anticon anticon-close"
|
|
title="Remove file"
|
|
/>
|
|
</div>
|
|
</div>
|
|
</span>
|
|
`;
|
|
|
|
exports[`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"
|
|
>
|
|
<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>
|
|
</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"
|
|
>
|
|
<svg
|
|
aria-hidden="true"
|
|
class=""
|
|
data-icon="eye"
|
|
fill="currentColor"
|
|
height="1em"
|
|
viewBox="0 0 1024 1024"
|
|
width="1em"
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
>
|
|
<path
|
|
d="M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3-7.7 16.2-7.7 35.2 0 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"
|
|
/>
|
|
</svg>
|
|
</i>
|
|
</a>
|
|
<i
|
|
class="anticon anticon-delete"
|
|
title="Remove file"
|
|
/>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
<div
|
|
class="ant-upload ant-upload-select ant-upload-select-picture-card"
|
|
style="display:"
|
|
/>
|
|
</span>
|
|
</div>
|
|
`;
|
|
|
|
exports[`renders ./components/upload/demo/picture-style.md correctly 1`] = `
|
|
<div>
|
|
<span
|
|
class=""
|
|
>
|
|
<div
|
|
class="ant-upload ant-upload-select ant-upload-select-picture"
|
|
style="display:"
|
|
/>
|
|
<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"
|
|
>
|
|
<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>
|
|
</div>
|
|
<i
|
|
class="anticon anticon-close"
|
|
title="Remove file"
|
|
/>
|
|
</div>
|
|
<div
|
|
class="ant-upload-list-item ant-upload-list-item-done"
|
|
>
|
|
<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>
|
|
</div>
|
|
<i
|
|
class="anticon anticon-close"
|
|
title="Remove file"
|
|
/>
|
|
</div>
|
|
</div>
|
|
</span>
|
|
<br />
|
|
<br />
|
|
<span
|
|
class="upload-list-inline"
|
|
>
|
|
<div
|
|
class="ant-upload ant-upload-select ant-upload-select-picture"
|
|
style="display:"
|
|
/>
|
|
<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"
|
|
>
|
|
<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>
|
|
</div>
|
|
<i
|
|
class="anticon anticon-close"
|
|
title="Remove file"
|
|
/>
|
|
</div>
|
|
<div
|
|
class="ant-upload-list-item ant-upload-list-item-done"
|
|
>
|
|
<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>
|
|
</div>
|
|
<i
|
|
class="anticon anticon-close"
|
|
title="Remove file"
|
|
/>
|
|
</div>
|
|
</div>
|
|
</span>
|
|
</div>
|
|
`;
|
|
|
|
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"
|
|
disabled=""
|
|
type="button"
|
|
>
|
|
<span>
|
|
Start Upload
|
|
</span>
|
|
</button>
|
|
</div>
|
|
`;
|