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

1041 lines
30 KiB
Plaintext
Raw Normal View History

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/progress/demo/circle.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div>
<div
class="ant-progress ant-progress-circle ant-progress-status-normal ant-progress-show-info ant-progress-default"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-progress-inner"
2017-09-20 16:26:18 +08:00
style="width:120px;height:120px;font-size:24px"
>
2016-11-22 14:28:05 +08:00
<svg
2017-02-22 19:34:44 +08:00
class="ant-progress-circle "
2017-09-20 16:26:18 +08:00
viewBox="0 0 100 100"
>
2016-11-22 14:28:05 +08:00
<path
2017-02-22 19:34:44 +08:00
class="ant-progress-circle-trail"
2016-11-22 14:28:05 +08:00
d="M 50,50 m 0,-47
2017-10-09 13:32:11 +08:00
a 47,47 0 1 1 0,94
a 47,47 0 1 1 0,-94"
2016-11-22 14:28:05 +08:00
fill-opacity="0"
stroke="#f3f3f3"
stroke-width="6"
2017-09-20 16:26:18 +08:00
style="stroke-dasharray:295.3097094374406px 295.3097094374406px;stroke-dashoffset:-0px;transition:stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s"
2017-03-20 11:40:24 +08:00
/>
2016-11-22 14:28:05 +08:00
<path
2017-02-22 19:34:44 +08:00
class="ant-progress-circle-path"
2016-11-22 14:28:05 +08:00
d="M 50,50 m 0,-47
2017-10-09 13:32:11 +08:00
a 47,47 0 1 1 0,94
a 47,47 0 1 1 0,-94"
2016-11-22 14:28:05 +08:00
fill-opacity="0"
stroke="#108ee9"
stroke-linecap="round"
stroke-width="6"
style="stroke-dasharray:221.48228207808043px 295.3097094374406px;stroke-dashoffset:-0px;transition:stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"
2017-03-20 11:40:24 +08:00
/>
2016-11-22 14:28:05 +08:00
</svg>
<span
class="ant-progress-text"
>
2016-11-22 14:28:05 +08:00
75%
</span>
</div>
</div>
<div
class="ant-progress ant-progress-circle ant-progress-status-exception ant-progress-show-info ant-progress-default"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-progress-inner"
2017-09-20 16:26:18 +08:00
style="width:120px;height:120px;font-size:24px"
>
2016-11-22 14:28:05 +08:00
<svg
2017-02-22 19:34:44 +08:00
class="ant-progress-circle "
2017-09-20 16:26:18 +08:00
viewBox="0 0 100 100"
>
2016-11-22 14:28:05 +08:00
<path
2017-02-22 19:34:44 +08:00
class="ant-progress-circle-trail"
2016-11-22 14:28:05 +08:00
d="M 50,50 m 0,-47
2017-10-09 13:32:11 +08:00
a 47,47 0 1 1 0,94
a 47,47 0 1 1 0,-94"
2016-11-22 14:28:05 +08:00
fill-opacity="0"
stroke="#f3f3f3"
stroke-width="6"
2017-09-20 16:26:18 +08:00
style="stroke-dasharray:295.3097094374406px 295.3097094374406px;stroke-dashoffset:-0px;transition:stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s"
2017-03-20 11:40:24 +08:00
/>
2016-11-22 14:28:05 +08:00
<path
2017-02-22 19:34:44 +08:00
class="ant-progress-circle-path"
2016-11-22 14:28:05 +08:00
d="M 50,50 m 0,-47
2017-10-09 13:32:11 +08:00
a 47,47 0 1 1 0,94
a 47,47 0 1 1 0,-94"
2016-11-22 14:28:05 +08:00
fill-opacity="0"
stroke="#ff5500"
stroke-linecap="round"
stroke-width="6"
style="stroke-dasharray:206.7167966062084px 295.3097094374406px;stroke-dashoffset:-0px;transition:stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"
2017-03-20 11:40:24 +08:00
/>
2016-11-22 14:28:05 +08:00
</svg>
<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-cross"
2018-08-24 19:00:06 +08:00
>
<svg
aria-hidden="true"
class=""
data-icon="cross"
fill="currentColor"
height="1em"
viewBox="0 0 1024 1024"
width="1em"
2018-08-27 20:40:11 +08:00
xmlns="http://www.w3.org/2000/svg"
2018-08-24 19:00:06 +08:00
>
<path
d="M567.7 514.9l254.8-254.6c15.4-15.4 15.4-40.3 0-55.6-15.4-15.4-40.3-15.4-55.6 0L512 459.2 257.1 204.6c-15.4-15.4-40.3-15.4-55.6 0-15.4 15.4-15.4 40.3 0 55.6l254.8 254.6-254.8 254.7c-15.4 15.4-15.4 40.3 0 55.6 7.7 7.7 17.8 11.5 27.8 11.5 10.1 0 20.1-3.8 27.8-11.5L512 570.5l254.9 254.7c7.7 7.7 17.7 11.5 27.8 11.5 10.1 0 20.1-3.8 27.8-11.5 15.4-15.4 15.4-40.3 0-55.6L567.7 514.9z"
/>
</svg>
</i>
2018-07-19 20:37:47 +08:00
</span>
2016-11-22 14:28:05 +08:00
</div>
</div>
<div
class="ant-progress ant-progress-circle ant-progress-status-success ant-progress-show-info ant-progress-default"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-progress-inner"
2017-09-20 16:26:18 +08:00
style="width:120px;height:120px;font-size:24px"
>
2016-11-22 14:28:05 +08:00
<svg
2017-02-22 19:34:44 +08:00
class="ant-progress-circle "
2017-09-20 16:26:18 +08:00
viewBox="0 0 100 100"
>
2016-11-22 14:28:05 +08:00
<path
2017-02-22 19:34:44 +08:00
class="ant-progress-circle-trail"
2016-11-22 14:28:05 +08:00
d="M 50,50 m 0,-47
2017-10-09 13:32:11 +08:00
a 47,47 0 1 1 0,94
a 47,47 0 1 1 0,-94"
2016-11-22 14:28:05 +08:00
fill-opacity="0"
stroke="#f3f3f3"
stroke-width="6"
2017-09-20 16:26:18 +08:00
style="stroke-dasharray:295.3097094374406px 295.3097094374406px;stroke-dashoffset:-0px;transition:stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s"
2017-03-20 11:40:24 +08:00
/>
2016-11-22 14:28:05 +08:00
<path
2017-02-22 19:34:44 +08:00
class="ant-progress-circle-path"
2016-11-22 14:28:05 +08:00
d="M 50,50 m 0,-47
2017-10-09 13:32:11 +08:00
a 47,47 0 1 1 0,94
a 47,47 0 1 1 0,-94"
2016-11-22 14:28:05 +08:00
fill-opacity="0"
stroke="#87d068"
stroke-linecap="round"
stroke-width="6"
style="stroke-dasharray:295.3097094374406px 295.3097094374406px;stroke-dashoffset:-0px;transition:stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"
2017-03-20 11:40:24 +08:00
/>
2016-11-22 14:28:05 +08:00
</svg>
<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"
2018-07-18 10:33:54 +08:00
>
2018-07-19 20:37:47 +08:00
<svg
aria-hidden="true"
2018-08-14 15:32:29 +08:00
class=""
2018-07-19 20:37:47 +08:00
data-icon="check"
fill="currentColor"
height="1em"
viewBox="0 0 1024 1024"
width="1em"
2018-08-27 20:40:11 +08:00
xmlns="http://www.w3.org/2000/svg"
2018-07-19 20:37:47 +08:00
>
<path
2018-08-24 18:36:08 +08:00
d="M328 799.7c-1.8 0-3.5-.1-5.3-.4-12.4-1.7-23.2-9-29.4-19.8L134 500.8c-11-19.2-4.3-43.6 14.9-54.6s43.6-4.3 54.6 14.9l133.2 233.2 491-492.5c15.6-15.6 40.9-15.7 56.6-.1 15.6 15.6 15.7 40.9.1 56.6L358.2 786.1l-1.9 1.9c-7.6 7.6-17.8 11.7-28.3 11.7z"
2018-07-19 20:37:47 +08:00
/>
</svg>
</i>
2016-11-22 14:28:05 +08:00
</span>
</div>
</div>
</div>
`;
exports[`renders ./components/progress/demo/circle-dynamic.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div>
<div
class="ant-progress ant-progress-circle ant-progress-status-normal ant-progress-show-info ant-progress-default"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-progress-inner"
2017-09-20 16:26:18 +08:00
style="width:120px;height:120px;font-size:24px"
>
2016-11-22 14:28:05 +08:00
<svg
2017-02-22 19:34:44 +08:00
class="ant-progress-circle "
2017-09-20 16:26:18 +08:00
viewBox="0 0 100 100"
>
2016-11-22 14:28:05 +08:00
<path
2017-02-22 19:34:44 +08:00
class="ant-progress-circle-trail"
2016-11-22 14:28:05 +08:00
d="M 50,50 m 0,-47
2017-10-09 13:32:11 +08:00
a 47,47 0 1 1 0,94
a 47,47 0 1 1 0,-94"
2016-11-22 14:28:05 +08:00
fill-opacity="0"
stroke="#f3f3f3"
stroke-width="6"
2017-09-20 16:26:18 +08:00
style="stroke-dasharray:295.3097094374406px 295.3097094374406px;stroke-dashoffset:-0px;transition:stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s"
2017-03-20 11:40:24 +08:00
/>
<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="#108ee9"
stroke-linecap="round"
stroke-width="0"
style="stroke-dasharray:0px 295.3097094374406px;stroke-dashoffset:-0px;transition:stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"
/>
2016-11-22 14:28:05 +08:00
</svg>
<span
class="ant-progress-text"
>
2016-11-22 14:28:05 +08:00
0%
</span>
</div>
</div>
<div
class="ant-btn-group"
>
2016-11-22 14:28:05 +08:00
<button
2017-02-04 22:35:33 +08:00
class="ant-btn ant-btn-icon-only"
type="button"
>
2018-07-19 20:37:47 +08:00
<i
2018-08-13 20:51:01 +08:00
class="anticon anticon-minus"
2018-07-18 10:33:54 +08:00
>
2018-07-19 20:37:47 +08:00
<svg
aria-hidden="true"
2018-08-14 15:32:29 +08:00
class=""
2018-07-19 20:37:47 +08:00
data-icon="minus"
fill="currentColor"
height="1em"
viewBox="0 0 1024 1024"
width="1em"
2018-08-27 20:40:11 +08:00
xmlns="http://www.w3.org/2000/svg"
2018-07-19 20:37:47 +08:00
>
<path
2018-08-24 18:36:08 +08:00
d="M796.5 548h-569c-19.9 0-36-16.1-36-36s16.1-36 36-36h569c19.9 0 36 16.1 36 36s-16.1 36-36 36z"
2018-07-19 20:37:47 +08:00
/>
</svg>
</i>
2016-11-22 14:28:05 +08:00
</button>
<button
2017-02-04 22:35:33 +08:00
class="ant-btn ant-btn-icon-only"
type="button"
>
2018-07-19 20:37:47 +08:00
<i
2018-08-13 20:51:01 +08:00
class="anticon anticon-plus"
2018-07-18 10:33:54 +08:00
>
2018-07-19 20:37:47 +08:00
<svg
aria-hidden="true"
2018-08-14 15:32:29 +08:00
class=""
2018-07-19 20:37:47 +08:00
data-icon="plus"
fill="currentColor"
height="1em"
viewBox="0 0 1024 1024"
width="1em"
2018-08-27 20:40:11 +08:00
xmlns="http://www.w3.org/2000/svg"
2018-07-19 20:37:47 +08:00
>
<path
2018-08-24 18:36:08 +08:00
d="M866.5 476H548V165.5c0-19.9-16.1-36-36-36s-36 16.1-36 36V476H164.5c-19.9 0-36 16.1-36 36s16.1 36 36 36H476v311.5c0 19.9 16.1 36 36 36s36-16.1 36-36V548h318.5c19.9 0 36-16.1 36-36s-16.1-36-36-36z"
2018-07-19 20:37:47 +08:00
/>
</svg>
</i>
2016-11-22 14:28:05 +08:00
</button>
</div>
</div>
`;
exports[`renders ./components/progress/demo/circle-mini.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div>
<div
class="ant-progress ant-progress-circle ant-progress-status-normal ant-progress-show-info ant-progress-default"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-progress-inner"
2017-09-20 16:26:18 +08:00
style="width:80px;height:80px;font-size:18px"
>
2016-11-22 14:28:05 +08:00
<svg
2017-02-22 19:34:44 +08:00
class="ant-progress-circle "
2017-09-20 16:26:18 +08:00
viewBox="0 0 100 100"
>
2016-11-22 14:28:05 +08:00
<path
2017-02-22 19:34:44 +08:00
class="ant-progress-circle-trail"
2016-11-22 14:28:05 +08:00
d="M 50,50 m 0,-47
2017-10-09 13:32:11 +08:00
a 47,47 0 1 1 0,94
a 47,47 0 1 1 0,-94"
2016-11-22 14:28:05 +08:00
fill-opacity="0"
stroke="#f3f3f3"
stroke-width="6"
2017-09-20 16:26:18 +08:00
style="stroke-dasharray:295.3097094374406px 295.3097094374406px;stroke-dashoffset:-0px;transition:stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s"
2017-03-20 11:40:24 +08:00
/>
2016-11-22 14:28:05 +08:00
<path
2017-02-22 19:34:44 +08:00
class="ant-progress-circle-path"
2016-11-22 14:28:05 +08:00
d="M 50,50 m 0,-47
2017-10-09 13:32:11 +08:00
a 47,47 0 1 1 0,94
a 47,47 0 1 1 0,-94"
2016-11-22 14:28:05 +08:00
fill-opacity="0"
stroke="#108ee9"
stroke-linecap="round"
stroke-width="6"
style="stroke-dasharray:88.59291283123217px 295.3097094374406px;stroke-dashoffset:-0px;transition:stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"
2017-03-20 11:40:24 +08:00
/>
2016-11-22 14:28:05 +08:00
</svg>
<span
class="ant-progress-text"
>
2016-11-22 14:28:05 +08:00
30%
</span>
</div>
</div>
<div
class="ant-progress ant-progress-circle ant-progress-status-exception ant-progress-show-info ant-progress-default"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-progress-inner"
2017-09-20 16:26:18 +08:00
style="width:80px;height:80px;font-size:18px"
>
2016-11-22 14:28:05 +08:00
<svg
2017-02-22 19:34:44 +08:00
class="ant-progress-circle "
2017-09-20 16:26:18 +08:00
viewBox="0 0 100 100"
>
2016-11-22 14:28:05 +08:00
<path
2017-02-22 19:34:44 +08:00
class="ant-progress-circle-trail"
2016-11-22 14:28:05 +08:00
d="M 50,50 m 0,-47
2017-10-09 13:32:11 +08:00
a 47,47 0 1 1 0,94
a 47,47 0 1 1 0,-94"
2016-11-22 14:28:05 +08:00
fill-opacity="0"
stroke="#f3f3f3"
stroke-width="6"
2017-09-20 16:26:18 +08:00
style="stroke-dasharray:295.3097094374406px 295.3097094374406px;stroke-dashoffset:-0px;transition:stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s"
2017-03-20 11:40:24 +08:00
/>
2016-11-22 14:28:05 +08:00
<path
2017-02-22 19:34:44 +08:00
class="ant-progress-circle-path"
2016-11-22 14:28:05 +08:00
d="M 50,50 m 0,-47
2017-10-09 13:32:11 +08:00
a 47,47 0 1 1 0,94
a 47,47 0 1 1 0,-94"
2016-11-22 14:28:05 +08:00
fill-opacity="0"
stroke="#ff5500"
stroke-linecap="round"
stroke-width="6"
style="stroke-dasharray:206.7167966062084px 295.3097094374406px;stroke-dashoffset:-0px;transition:stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"
2017-03-20 11:40:24 +08:00
/>
2016-11-22 14:28:05 +08:00
</svg>
<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-cross"
2018-08-24 19:00:06 +08:00
>
<svg
aria-hidden="true"
class=""
data-icon="cross"
fill="currentColor"
height="1em"
viewBox="0 0 1024 1024"
width="1em"
2018-08-27 20:40:11 +08:00
xmlns="http://www.w3.org/2000/svg"
2018-08-24 19:00:06 +08:00
>
<path
d="M567.7 514.9l254.8-254.6c15.4-15.4 15.4-40.3 0-55.6-15.4-15.4-40.3-15.4-55.6 0L512 459.2 257.1 204.6c-15.4-15.4-40.3-15.4-55.6 0-15.4 15.4-15.4 40.3 0 55.6l254.8 254.6-254.8 254.7c-15.4 15.4-15.4 40.3 0 55.6 7.7 7.7 17.8 11.5 27.8 11.5 10.1 0 20.1-3.8 27.8-11.5L512 570.5l254.9 254.7c7.7 7.7 17.7 11.5 27.8 11.5 10.1 0 20.1-3.8 27.8-11.5 15.4-15.4 15.4-40.3 0-55.6L567.7 514.9z"
/>
</svg>
</i>
2018-07-19 20:37:47 +08:00
</span>
2016-11-22 14:28:05 +08:00
</div>
</div>
<div
class="ant-progress ant-progress-circle ant-progress-status-success ant-progress-show-info ant-progress-default"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-progress-inner"
2017-09-20 16:26:18 +08:00
style="width:80px;height:80px;font-size:18px"
>
2016-11-22 14:28:05 +08:00
<svg
2017-02-22 19:34:44 +08:00
class="ant-progress-circle "
2017-09-20 16:26:18 +08:00
viewBox="0 0 100 100"
>
2016-11-22 14:28:05 +08:00
<path
2017-02-22 19:34:44 +08:00
class="ant-progress-circle-trail"
2016-11-22 14:28:05 +08:00
d="M 50,50 m 0,-47
2017-10-09 13:32:11 +08:00
a 47,47 0 1 1 0,94
a 47,47 0 1 1 0,-94"
2016-11-22 14:28:05 +08:00
fill-opacity="0"
stroke="#f3f3f3"
stroke-width="6"
2017-09-20 16:26:18 +08:00
style="stroke-dasharray:295.3097094374406px 295.3097094374406px;stroke-dashoffset:-0px;transition:stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s"
2017-03-20 11:40:24 +08:00
/>
2016-11-22 14:28:05 +08:00
<path
2017-02-22 19:34:44 +08:00
class="ant-progress-circle-path"
2016-11-22 14:28:05 +08:00
d="M 50,50 m 0,-47
2017-10-09 13:32:11 +08:00
a 47,47 0 1 1 0,94
a 47,47 0 1 1 0,-94"
2016-11-22 14:28:05 +08:00
fill-opacity="0"
stroke="#87d068"
stroke-linecap="round"
stroke-width="6"
style="stroke-dasharray:295.3097094374406px 295.3097094374406px;stroke-dashoffset:-0px;transition:stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"
2017-03-20 11:40:24 +08:00
/>
2016-11-22 14:28:05 +08:00
</svg>
<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"
2018-07-18 10:33:54 +08:00
>
2018-07-19 20:37:47 +08:00
<svg
aria-hidden="true"
2018-08-14 15:32:29 +08:00
class=""
2018-07-19 20:37:47 +08:00
data-icon="check"
fill="currentColor"
height="1em"
viewBox="0 0 1024 1024"
width="1em"
2018-08-27 20:40:11 +08:00
xmlns="http://www.w3.org/2000/svg"
2018-07-19 20:37:47 +08:00
>
<path
2018-08-24 18:36:08 +08:00
d="M328 799.7c-1.8 0-3.5-.1-5.3-.4-12.4-1.7-23.2-9-29.4-19.8L134 500.8c-11-19.2-4.3-43.6 14.9-54.6s43.6-4.3 54.6 14.9l133.2 233.2 491-492.5c15.6-15.6 40.9-15.7 56.6-.1 15.6 15.6 15.7 40.9.1 56.6L358.2 786.1l-1.9 1.9c-7.6 7.6-17.8 11.7-28.3 11.7z"
2018-07-19 20:37:47 +08:00
/>
</svg>
</i>
2016-11-22 14:28:05 +08:00
</span>
</div>
</div>
</div>
`;
2017-03-20 11:40:24 +08:00
exports[`renders ./components/progress/demo/dashboard.md correctly 1`] = `
2017-04-01 13:17:02 +08:00
<div
class="ant-progress ant-progress-circle ant-progress-status-normal ant-progress-show-info ant-progress-default"
2017-04-01 13:17:02 +08:00
>
2017-03-20 11:40:24 +08:00
<div
2017-04-01 13:17:02 +08:00
class="ant-progress-inner"
2017-09-20 16:26:18 +08:00
style="width:120px;height:120px;font-size:24px"
2017-03-20 11:40:24 +08:00
>
2017-04-01 13:17:02 +08:00
<svg
class="ant-progress-circle "
2017-09-20 16:26:18 +08:00
viewBox="0 0 100 100"
2017-03-20 11:40:24 +08:00
>
2017-04-01 13:17:02 +08:00
<path
class="ant-progress-circle-trail"
d="M 50,50 m 0,47
2017-10-09 13:32:11 +08:00
a 47,47 0 1 1 0,-94
a 47,47 0 1 1 0,94"
2017-04-01 13:17:02 +08:00
fill-opacity="0"
stroke="#f3f3f3"
stroke-width="6"
2017-09-20 16:26:18 +08:00
style="stroke-dasharray:220.30970943744057px 295.3097094374406px;stroke-dashoffset:-37.5px;transition:stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s"
2017-04-01 13:17:02 +08:00
/>
<path
class="ant-progress-circle-path"
d="M 50,50 m 0,47
2017-10-09 13:32:11 +08:00
a 47,47 0 1 1 0,-94
a 47,47 0 1 1 0,94"
2017-04-01 13:17:02 +08:00
fill-opacity="0"
stroke="#108ee9"
stroke-linecap="round"
stroke-width="6"
style="stroke-dasharray:165.23228207808043px 295.3097094374406px;stroke-dashoffset:-37.5px;transition:stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"
2017-04-01 13:17:02 +08:00
/>
</svg>
<span
class="ant-progress-text"
>
75%
</span>
2017-03-20 11:40:24 +08:00
</div>
</div>
`;
exports[`renders ./components/progress/demo/dynamic.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div>
<div
class="ant-progress ant-progress-line ant-progress-status-normal ant-progress-show-info ant-progress-default"
>
2016-11-22 14:28:05 +08:00
<div>
<div
class="ant-progress-outer"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-progress-inner"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-progress-bg"
style="width:0%;height:8px;border-radius:100px"
/>
2016-11-22 14:28:05 +08:00
</div>
</div>
<span
class="ant-progress-text"
>
2016-11-22 14:28:05 +08:00
0%
</span>
</div>
</div>
<div
class="ant-btn-group"
>
2016-11-22 14:28:05 +08:00
<button
2017-02-04 22:35:33 +08:00
class="ant-btn ant-btn-icon-only"
type="button"
>
2018-07-19 20:37:47 +08:00
<i
2018-08-13 20:51:01 +08:00
class="anticon anticon-minus"
2018-07-18 10:33:54 +08:00
>
2018-07-19 20:37:47 +08:00
<svg
aria-hidden="true"
2018-08-14 15:32:29 +08:00
class=""
2018-07-19 20:37:47 +08:00
data-icon="minus"
fill="currentColor"
height="1em"
viewBox="0 0 1024 1024"
width="1em"
2018-08-27 20:40:11 +08:00
xmlns="http://www.w3.org/2000/svg"
2018-07-19 20:37:47 +08:00
>
<path
2018-08-24 18:36:08 +08:00
d="M796.5 548h-569c-19.9 0-36-16.1-36-36s16.1-36 36-36h569c19.9 0 36 16.1 36 36s-16.1 36-36 36z"
2018-07-19 20:37:47 +08:00
/>
</svg>
</i>
2016-11-22 14:28:05 +08:00
</button>
<button
2017-02-04 22:35:33 +08:00
class="ant-btn ant-btn-icon-only"
type="button"
>
2018-07-19 20:37:47 +08:00
<i
2018-08-13 20:51:01 +08:00
class="anticon anticon-plus"
2018-07-18 10:33:54 +08:00
>
2018-07-19 20:37:47 +08:00
<svg
aria-hidden="true"
2018-08-14 15:32:29 +08:00
class=""
2018-07-19 20:37:47 +08:00
data-icon="plus"
fill="currentColor"
height="1em"
viewBox="0 0 1024 1024"
width="1em"
2018-08-27 20:40:11 +08:00
xmlns="http://www.w3.org/2000/svg"
2018-07-19 20:37:47 +08:00
>
<path
2018-08-24 18:36:08 +08:00
d="M866.5 476H548V165.5c0-19.9-16.1-36-36-36s-36 16.1-36 36V476H164.5c-19.9 0-36 16.1-36 36s16.1 36 36 36H476v311.5c0 19.9 16.1 36 36 36s36-16.1 36-36V548h318.5c19.9 0 36-16.1 36-36s-16.1-36-36-36z"
2018-07-19 20:37:47 +08:00
/>
</svg>
</i>
2016-11-22 14:28:05 +08:00
</button>
</div>
</div>
`;
exports[`renders ./components/progress/demo/format.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div>
<div
class="ant-progress ant-progress-circle ant-progress-status-normal ant-progress-show-info ant-progress-default"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-progress-inner"
2017-09-20 16:26:18 +08:00
style="width:120px;height:120px;font-size:24px"
>
2016-11-22 14:28:05 +08:00
<svg
2017-02-22 19:34:44 +08:00
class="ant-progress-circle "
2017-09-20 16:26:18 +08:00
viewBox="0 0 100 100"
>
2016-11-22 14:28:05 +08:00
<path
2017-02-22 19:34:44 +08:00
class="ant-progress-circle-trail"
2016-11-22 14:28:05 +08:00
d="M 50,50 m 0,-47
2017-10-09 13:32:11 +08:00
a 47,47 0 1 1 0,94
a 47,47 0 1 1 0,-94"
2016-11-22 14:28:05 +08:00
fill-opacity="0"
stroke="#f3f3f3"
stroke-width="6"
2017-09-20 16:26:18 +08:00
style="stroke-dasharray:295.3097094374406px 295.3097094374406px;stroke-dashoffset:-0px;transition:stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s"
2017-03-20 11:40:24 +08:00
/>
2016-11-22 14:28:05 +08:00
<path
2017-02-22 19:34:44 +08:00
class="ant-progress-circle-path"
2016-11-22 14:28:05 +08:00
d="M 50,50 m 0,-47
2017-10-09 13:32:11 +08:00
a 47,47 0 1 1 0,94
a 47,47 0 1 1 0,-94"
2016-11-22 14:28:05 +08:00
fill-opacity="0"
stroke="#108ee9"
stroke-linecap="round"
stroke-width="6"
style="stroke-dasharray:221.48228207808043px 295.3097094374406px;stroke-dashoffset:-0px;transition:stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"
2017-03-20 11:40:24 +08:00
/>
2016-11-22 14:28:05 +08:00
</svg>
<span
class="ant-progress-text"
>
2016-11-22 14:28:05 +08:00
75 Days
</span>
</div>
</div>
<div
class="ant-progress ant-progress-circle ant-progress-status-success ant-progress-show-info ant-progress-default"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-progress-inner"
2017-09-20 16:26:18 +08:00
style="width:120px;height:120px;font-size:24px"
>
2016-11-22 14:28:05 +08:00
<svg
2017-02-22 19:34:44 +08:00
class="ant-progress-circle "
2017-09-20 16:26:18 +08:00
viewBox="0 0 100 100"
>
2016-11-22 14:28:05 +08:00
<path
2017-02-22 19:34:44 +08:00
class="ant-progress-circle-trail"
2016-11-22 14:28:05 +08:00
d="M 50,50 m 0,-47
2017-10-09 13:32:11 +08:00
a 47,47 0 1 1 0,94
a 47,47 0 1 1 0,-94"
2016-11-22 14:28:05 +08:00
fill-opacity="0"
stroke="#f3f3f3"
stroke-width="6"
2017-09-20 16:26:18 +08:00
style="stroke-dasharray:295.3097094374406px 295.3097094374406px;stroke-dashoffset:-0px;transition:stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s"
2017-03-20 11:40:24 +08:00
/>
2016-11-22 14:28:05 +08:00
<path
2017-02-22 19:34:44 +08:00
class="ant-progress-circle-path"
2016-11-22 14:28:05 +08:00
d="M 50,50 m 0,-47
2017-10-09 13:32:11 +08:00
a 47,47 0 1 1 0,94
a 47,47 0 1 1 0,-94"
2016-11-22 14:28:05 +08:00
fill-opacity="0"
stroke="#87d068"
stroke-linecap="round"
stroke-width="6"
style="stroke-dasharray:295.3097094374406px 295.3097094374406px;stroke-dashoffset:-0px;transition:stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"
2017-03-20 11:40:24 +08:00
/>
2016-11-22 14:28:05 +08:00
</svg>
<span
class="ant-progress-text"
>
2016-11-22 14:28:05 +08:00
Done
</span>
</div>
</div>
</div>
`;
exports[`renders ./components/progress/demo/line.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div>
<div
class="ant-progress ant-progress-line ant-progress-status-normal ant-progress-show-info ant-progress-default"
>
2016-11-22 14:28:05 +08:00
<div>
<div
class="ant-progress-outer"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-progress-inner"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-progress-bg"
style="width:30%;height:8px;border-radius:100px"
/>
2016-11-22 14:28:05 +08:00
</div>
</div>
<span
class="ant-progress-text"
>
2016-11-22 14:28:05 +08:00
30%
</span>
</div>
</div>
<div
class="ant-progress ant-progress-line ant-progress-status-active ant-progress-show-info ant-progress-default"
>
2016-11-22 14:28:05 +08:00
<div>
<div
class="ant-progress-outer"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-progress-inner"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-progress-bg"
style="width:50%;height:8px;border-radius:100px"
/>
2016-11-22 14:28:05 +08:00
</div>
</div>
<span
class="ant-progress-text"
>
2016-11-22 14:28:05 +08:00
50%
</span>
</div>
</div>
<div
class="ant-progress ant-progress-line ant-progress-status-exception ant-progress-show-info ant-progress-default"
>
2016-11-22 14:28:05 +08:00
<div>
<div
class="ant-progress-outer"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-progress-inner"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-progress-bg"
style="width:70%;height:8px;border-radius:100px"
/>
2016-11-22 14:28:05 +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-cross-circle"
2018-08-24 19:00:06 +08:00
>
<svg
aria-hidden="true"
class=""
data-icon="cross-circle"
fill="currentColor"
height="1em"
viewBox="0 0 1024 1024"
width="1em"
2018-08-27 20:40:11 +08:00
xmlns="http://www.w3.org/2000/svg"
2018-08-24 19:00:06 +08:00
>
<path
d="M512 0C229.2 0 0 229.2 0 512s229.2 512 512 512 512-229.2 512-512S794.8 0 512 0zm205.3 666.9c14 14.1 14 36.9-.1 50.9-7 7-16.2 10.5-25.4 10.5s-18.5-3.5-25.5-10.6L512 563 357.7 717.7c-7 7.1-16.3 10.6-25.5 10.6s-18.4-3.5-25.4-10.5c-14.1-14-14.1-36.8-.1-50.9L461.2 512 306.7 357.1c-14-14.1-14-36.9.1-50.9s36.9-14 50.9.1L512 461l154.3-154.8c14-14.1 36.8-14.1 50.9-.1 14.1 14 14.1 36.8.1 50.9L562.8 512l154.5 154.9z"
/>
</svg>
</i>
2018-07-19 20:37:47 +08:00
</span>
2016-11-22 14:28:05 +08:00
</div>
</div>
<div
class="ant-progress ant-progress-line ant-progress-status-success ant-progress-show-info ant-progress-default"
>
2016-11-22 14:28:05 +08:00
<div>
<div
class="ant-progress-outer"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-progress-inner"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-progress-bg"
style="width:100%;height:8px;border-radius:100px"
/>
2016-11-22 14:28:05 +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-08-24 18:36:08 +08:00
>
<svg
aria-hidden="true"
class=""
data-icon="check-circle"
fill="currentColor"
height="1em"
viewBox="0 0 1024 1024"
width="1em"
2018-08-27 20:40:11 +08:00
xmlns="http://www.w3.org/2000/svg"
2018-08-24 18:36:08 +08:00
>
<path
d="M512 0C229.2 0 0 229.2 0 512s229.2 512 512 512 512-229.2 512-512S794.8 0 512 0zm260.3 356.4L412.8 717.1l-.4.4c-2.4 2.6-5.3 4.9-8.5 6.7-5.6 3.2-11.8 4.7-17.8 4.7-12.5 0-24.7-6.5-31.3-18.2L245.9 520.3C236 503 242 481 259.3 471.2c17.3-9.9 39.3-3.9 49.1 13.4l85.4 149.5 327.5-328.5c14-14.1 36.8-14.1 50.9-.1 14.1 14.1 14.1 36.9.1 50.9z"
/>
</svg>
</i>
2018-07-19 20:37:47 +08:00
</span>
2016-11-22 14:28:05 +08:00
</div>
</div>
<div
class="ant-progress ant-progress-line ant-progress-status-normal ant-progress-default"
>
2016-11-22 14:28:05 +08:00
<div>
<div
class="ant-progress-outer"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-progress-inner"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-progress-bg"
style="width:50%;height:8px;border-radius:100px"
/>
2016-11-22 14:28:05 +08:00
</div>
</div>
</div>
</div>
</div>
`;
exports[`renders ./components/progress/demo/line-mini.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div
2017-09-20 16:26:18 +08:00
style="width:170px"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-progress ant-progress-line ant-progress-status-normal ant-progress-show-info ant-progress-small"
>
2016-11-22 14:28:05 +08:00
<div>
<div
class="ant-progress-outer"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-progress-inner"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-progress-bg"
style="width:30%;height:6px;border-radius:100px"
/>
2016-11-22 14:28:05 +08:00
</div>
</div>
<span
class="ant-progress-text"
>
2016-11-22 14:28:05 +08:00
30%
</span>
</div>
</div>
<div
class="ant-progress ant-progress-line ant-progress-status-active ant-progress-show-info ant-progress-small"
>
2016-11-22 14:28:05 +08:00
<div>
<div
class="ant-progress-outer"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-progress-inner"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-progress-bg"
style="width:50%;height:6px;border-radius:100px"
/>
2016-11-22 14:28:05 +08:00
</div>
</div>
<span
class="ant-progress-text"
>
2016-11-22 14:28:05 +08:00
50%
</span>
</div>
</div>
<div
class="ant-progress ant-progress-line ant-progress-status-exception ant-progress-show-info ant-progress-small"
>
2016-11-22 14:28:05 +08:00
<div>
<div
class="ant-progress-outer"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-progress-inner"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-progress-bg"
style="width:70%;height:6px;border-radius:100px"
/>
2016-11-22 14:28:05 +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-cross-circle"
2018-08-24 19:00:06 +08:00
>
<svg
aria-hidden="true"
class=""
data-icon="cross-circle"
fill="currentColor"
height="1em"
viewBox="0 0 1024 1024"
width="1em"
2018-08-27 20:40:11 +08:00
xmlns="http://www.w3.org/2000/svg"
2018-08-24 19:00:06 +08:00
>
<path
d="M512 0C229.2 0 0 229.2 0 512s229.2 512 512 512 512-229.2 512-512S794.8 0 512 0zm205.3 666.9c14 14.1 14 36.9-.1 50.9-7 7-16.2 10.5-25.4 10.5s-18.5-3.5-25.5-10.6L512 563 357.7 717.7c-7 7.1-16.3 10.6-25.5 10.6s-18.4-3.5-25.4-10.5c-14.1-14-14.1-36.8-.1-50.9L461.2 512 306.7 357.1c-14-14.1-14-36.9.1-50.9s36.9-14 50.9.1L512 461l154.3-154.8c14-14.1 36.8-14.1 50.9-.1 14.1 14 14.1 36.8.1 50.9L562.8 512l154.5 154.9z"
/>
</svg>
</i>
2018-07-19 20:37:47 +08:00
</span>
2016-11-22 14:28:05 +08:00
</div>
</div>
<div
class="ant-progress ant-progress-line ant-progress-status-success ant-progress-show-info ant-progress-small"
>
2016-11-22 14:28:05 +08:00
<div>
<div
class="ant-progress-outer"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-progress-inner"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-progress-bg"
style="width:100%;height:6px;border-radius:100px"
/>
2016-11-22 14:28:05 +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-08-24 18:36:08 +08:00
>
<svg
aria-hidden="true"
class=""
data-icon="check-circle"
fill="currentColor"
height="1em"
viewBox="0 0 1024 1024"
width="1em"
2018-08-27 20:40:11 +08:00
xmlns="http://www.w3.org/2000/svg"
2018-08-24 18:36:08 +08:00
>
<path
d="M512 0C229.2 0 0 229.2 0 512s229.2 512 512 512 512-229.2 512-512S794.8 0 512 0zm260.3 356.4L412.8 717.1l-.4.4c-2.4 2.6-5.3 4.9-8.5 6.7-5.6 3.2-11.8 4.7-17.8 4.7-12.5 0-24.7-6.5-31.3-18.2L245.9 520.3C236 503 242 481 259.3 471.2c17.3-9.9 39.3-3.9 49.1 13.4l85.4 149.5 327.5-328.5c14-14.1 36.8-14.1 50.9-.1 14.1 14.1 14.1 36.9.1 50.9z"
/>
</svg>
</i>
2018-07-19 20:37:47 +08:00
</span>
2016-11-22 14:28:05 +08:00
</div>
</div>
</div>
`;
2018-01-19 15:22:37 +08:00
exports[`renders ./components/progress/demo/linecap.md correctly 1`] = `
<div>
<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"
style="width:75%;height:8px;border-radius:0"
/>
</div>
</div>
<span
class="ant-progress-text"
>
75%
</span>
</div>
</div>
<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;transition:stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s"
/>
<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="#108ee9"
stroke-linecap="square"
stroke-width="6"
style="stroke-dasharray:221.48228207808043px 295.3097094374406px;stroke-dashoffset:-0px;transition:stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"
/>
</svg>
<span
class="ant-progress-text"
>
75%
</span>
</div>
</div>
<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:220.30970943744057px 295.3097094374406px;stroke-dashoffset:-37.5px;transition:stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s"
/>
<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="#108ee9"
stroke-linecap="square"
stroke-width="6"
style="stroke-dasharray:165.23228207808043px 295.3097094374406px;stroke-dashoffset:-37.5px;transition:stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"
/>
</svg>
<span
class="ant-progress-text"
>
75%
</span>
</div>
</div>
</div>
`;
2018-01-19 15:22:37 +08:00
exports[`renders ./components/progress/demo/segment.md correctly 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"
style="width:60%;height:8px;border-radius:100px"
2018-01-19 15:22:37 +08:00
/>
<div
class="ant-progress-success-bg"
style="width:30%;height:8px;border-radius:100px"
2018-01-19 15:22:37 +08:00
/>
</div>
</div>
<span
class="ant-progress-text"
>
60%
</span>
</div>
</div>
`;