2018-04-18 10:45:07 +08:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
2018-04-29 23:01:58 +08:00
|
|
|
exports[`Progress render format 1`] = `
|
|
|
|
<div
|
|
|
|
class="ant-progress ant-progress-line ant-progress-status-normal ant-progress-show-info ant-progress-default"
|
|
|
|
>
|
|
|
|
<div>
|
|
|
|
<div
|
|
|
|
class="ant-progress-outer"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-progress-inner"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-progress-bg"
|
2018-08-01 00:19:06 +08:00
|
|
|
style="width: 50%; height: 8px; border-radius: 100px;"
|
2018-04-29 23:01:58 +08:00
|
|
|
/>
|
|
|
|
<div
|
|
|
|
class="ant-progress-success-bg"
|
2018-08-01 00:19:06 +08:00
|
|
|
style="width: 10%; height: 8px; border-radius: 100px;"
|
2018-04-29 23:01:58 +08:00
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<span
|
|
|
|
class="ant-progress-text"
|
2018-10-12 19:18:09 +08:00
|
|
|
title="50 10"
|
2018-04-29 23:01:58 +08:00
|
|
|
>
|
|
|
|
50 10
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
2018-04-18 10:45:07 +08:00
|
|
|
exports[`Progress render negetive progress 1`] = `
|
|
|
|
<div
|
|
|
|
class="ant-progress ant-progress-line ant-progress-status-normal ant-progress-show-info ant-progress-default"
|
|
|
|
>
|
|
|
|
<div>
|
|
|
|
<div
|
|
|
|
class="ant-progress-outer"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-progress-inner"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-progress-bg"
|
2018-08-01 00:19:06 +08:00
|
|
|
style="width: 0%; height: 8px; border-radius: 100px;"
|
2018-04-18 10:45:07 +08:00
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<span
|
|
|
|
class="ant-progress-text"
|
2018-10-12 19:18:09 +08:00
|
|
|
title="0%"
|
2018-04-18 10:45:07 +08:00
|
|
|
>
|
2018-04-18 11:10:32 +08:00
|
|
|
0%
|
2018-04-18 10:45:07 +08:00
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`Progress render negetive successPercent 1`] = `
|
|
|
|
<div
|
|
|
|
class="ant-progress ant-progress-line ant-progress-status-normal ant-progress-show-info ant-progress-default"
|
|
|
|
>
|
|
|
|
<div>
|
|
|
|
<div
|
|
|
|
class="ant-progress-outer"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-progress-inner"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-progress-bg"
|
2018-08-01 00:19:06 +08:00
|
|
|
style="width: 50%; height: 8px; border-radius: 100px;"
|
2018-04-18 10:45:07 +08:00
|
|
|
/>
|
|
|
|
<div
|
|
|
|
class="ant-progress-success-bg"
|
2018-08-01 00:19:06 +08:00
|
|
|
style="width: 0%; height: 8px; border-radius: 100px;"
|
2018-04-18 10:45:07 +08:00
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<span
|
|
|
|
class="ant-progress-text"
|
2018-10-12 19:18:09 +08:00
|
|
|
title="50%"
|
2018-04-18 10:45:07 +08:00
|
|
|
>
|
|
|
|
50%
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`Progress render out-of-range progress 1`] = `
|
|
|
|
<div
|
|
|
|
class="ant-progress ant-progress-line ant-progress-status-success ant-progress-show-info ant-progress-default"
|
|
|
|
>
|
|
|
|
<div>
|
|
|
|
<div
|
|
|
|
class="ant-progress-outer"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-progress-inner"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-progress-bg"
|
2018-08-01 00:19:06 +08:00
|
|
|
style="width: 100%; height: 8px; border-radius: 100px;"
|
2018-04-18 10:45:07 +08:00
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<span
|
|
|
|
class="ant-progress-text"
|
2018-07-19 20:37:47 +08:00
|
|
|
>
|
|
|
|
<i
|
2018-08-13 20:51:01 +08:00
|
|
|
class="anticon anticon-check-circle"
|
2018-09-02 19:53:29 +08:00
|
|
|
>
|
|
|
|
<svg
|
|
|
|
aria-hidden="true"
|
|
|
|
class=""
|
|
|
|
data-icon="check-circle"
|
|
|
|
fill="currentColor"
|
|
|
|
height="1em"
|
2018-09-06 20:55:23 +08:00
|
|
|
viewBox="64 64 896 896"
|
2018-09-02 19:53:29 +08:00
|
|
|
width="1em"
|
|
|
|
>
|
|
|
|
<path
|
2018-09-06 20:55:23 +08:00
|
|
|
d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 0 1-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"
|
2018-09-02 19:53:29 +08:00
|
|
|
/>
|
|
|
|
</svg>
|
|
|
|
</i>
|
2018-07-19 20:37:47 +08:00
|
|
|
</span>
|
2018-04-18 10:45:07 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|
2018-04-18 11:10:32 +08:00
|
|
|
|
|
|
|
exports[`Progress render out-of-range progress with info 1`] = `
|
|
|
|
<div
|
|
|
|
class="ant-progress ant-progress-line ant-progress-status-success ant-progress-show-info ant-progress-default"
|
|
|
|
>
|
|
|
|
<div>
|
|
|
|
<div
|
|
|
|
class="ant-progress-outer"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-progress-inner"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-progress-bg"
|
2018-08-01 00:19:06 +08:00
|
|
|
style="width: 100%; height: 8px; border-radius: 100px;"
|
2018-04-18 11:10:32 +08:00
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<span
|
|
|
|
class="ant-progress-text"
|
2018-07-19 20:37:47 +08:00
|
|
|
>
|
|
|
|
<i
|
2018-08-13 20:51:01 +08:00
|
|
|
class="anticon anticon-check-circle"
|
2018-09-02 19:53:29 +08:00
|
|
|
>
|
|
|
|
<svg
|
|
|
|
aria-hidden="true"
|
|
|
|
class=""
|
|
|
|
data-icon="check-circle"
|
|
|
|
fill="currentColor"
|
|
|
|
height="1em"
|
2018-09-06 20:55:23 +08:00
|
|
|
viewBox="64 64 896 896"
|
2018-09-02 19:53:29 +08:00
|
|
|
width="1em"
|
|
|
|
>
|
|
|
|
<path
|
2018-09-06 20:55:23 +08:00
|
|
|
d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 0 1-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"
|
2018-09-02 19:53:29 +08:00
|
|
|
/>
|
|
|
|
</svg>
|
|
|
|
</i>
|
2018-07-19 20:37:47 +08:00
|
|
|
</span>
|
2018-04-18 11:10:32 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|
2018-10-13 01:19:41 +08:00
|
|
|
|
|
|
|
exports[`Progress render strokeColor 1`] = `
|
|
|
|
<div
|
|
|
|
class="ant-progress ant-progress-circle ant-progress-status-normal ant-progress-show-info ant-progress-default"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-progress-inner"
|
|
|
|
style="width: 120px; height: 120px; font-size: 24px;"
|
|
|
|
>
|
|
|
|
<svg
|
|
|
|
class="ant-progress-circle "
|
|
|
|
viewBox="0 0 100 100"
|
|
|
|
>
|
|
|
|
<path
|
|
|
|
class="ant-progress-circle-trail"
|
|
|
|
d="M 50,50 m 0,-47
|
|
|
|
a 47,47 0 1 1 0,94
|
|
|
|
a 47,47 0 1 1 0,-94"
|
|
|
|
fill-opacity="0"
|
|
|
|
stroke="#f3f3f3"
|
|
|
|
stroke-width="6"
|
|
|
|
style="stroke-dasharray: 295.3097094374406px 295.3097094374406px; stroke-dashoffset: -0px;"
|
|
|
|
/>
|
|
|
|
<path
|
|
|
|
class="ant-progress-circle-path"
|
|
|
|
d="M 50,50 m 0,-47
|
|
|
|
a 47,47 0 1 1 0,94
|
|
|
|
a 47,47 0 1 1 0,-94"
|
|
|
|
fill-opacity="0"
|
|
|
|
stroke-linecap="round"
|
|
|
|
stroke-width="6"
|
|
|
|
style="stroke: red; stroke-dasharray: 147.6548547187203px 295.3097094374406px; stroke-dashoffset: -0px;"
|
|
|
|
/>
|
|
|
|
</svg>
|
|
|
|
<span
|
|
|
|
class="ant-progress-text"
|
|
|
|
title="50%"
|
|
|
|
>
|
|
|
|
50%
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|