mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-05 05:28:20 +08:00
469 lines
12 KiB
Plaintext
469 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-cross"
|
|
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-cross"
|
|
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-cross"
|
|
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-cross"
|
|
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"
|
|
/>
|
|
</a>
|
|
<i
|
|
class="anticon anticon-delete"
|
|
title="Remove file"
|
|
>
|
|
<svg
|
|
aria-hidden="true"
|
|
class=""
|
|
data-icon="delete"
|
|
fill="currentColor"
|
|
height="1em"
|
|
viewBox="0 0 1024 1024"
|
|
width="1em"
|
|
>
|
|
<path
|
|
class="st0"
|
|
d="M352 184h8v-8c0 4.4-3.6 8-8 8zM664 176v8h8c-4.4 0-8-3.6-8-8zM360 184h304v72H360zM664 328H268.5l24.2 512h438.6l24.2-512H736z"
|
|
/>
|
|
<path
|
|
d="M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72z"
|
|
fill="#030303"
|
|
/>
|
|
<path
|
|
d="M864 256H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"
|
|
/>
|
|
</svg>
|
|
</i>
|
|
</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-cross"
|
|
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-cross"
|
|
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-cross"
|
|
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-cross"
|
|
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>
|
|
`;
|