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

1876 lines
54 KiB
Plaintext
Raw Normal View History

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/tabs/demo/basic.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div
class="ant-tabs ant-tabs-top ant-tabs-line"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-tabs-bar"
role="tablist"
tabindex="0"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-tabs-nav-container"
>
<span
class="ant-tabs-tab-prev ant-tabs-tab-btn-disabled"
unselectable="unselectable"
>
<span
class="ant-tabs-tab-prev-icon"
2018-08-16 16:15:25 +08:00
>
<i
class="anticon anticon-left ant-tabs-tab-prev-icon-target"
>
<svg
aria-hidden="true"
class=""
data-icon="left"
fill="currentColor"
height="1em"
viewBox="0 0 1024 1024"
width="1em"
>
<path
2018-08-24 18:36:08 +08:00
d="M724.4 895.7c-9.6 0-19.3-3.2-27.4-9.6L273.2 545.2c-10.3-8.3-16.3-20.8-16.3-34.1 0-13.2 6-25.8 16.3-34l422-339.1c18.8-15.1 46.3-12.1 61.4 6.7 15.1 18.8 12.1 46.3-6.7 61.4l-379.6 305L751.8 818c18.8 15.1 21.8 42.6 6.7 61.4-8.7 10.7-21.3 16.3-34.1 16.3z"
2018-08-16 16:15:25 +08:00
/>
</svg>
</i>
</span>
</span>
<span
class="ant-tabs-tab-next ant-tabs-tab-btn-disabled"
unselectable="unselectable"
>
<span
class="ant-tabs-tab-next-icon"
2018-08-16 16:15:25 +08:00
>
<i
class="anticon anticon-right ant-tabs-tab-next-icon-target"
>
<svg
aria-hidden="true"
class=""
data-icon="right"
fill="currentColor"
height="1em"
viewBox="0 0 1024 1024"
width="1em"
>
<path
2018-08-24 18:36:08 +08:00
d="M300.6 895.7c9.6 0 19.3-3.2 27.4-9.6l423.8-340.9c10.3-8.3 16.3-20.8 16.3-34.1 0-13.2-6-25.8-16.3-34L329.8 138c-18.8-15.1-46.3-12.1-61.4 6.7-15.1 18.8-12.1 46.3 6.7 61.4l379.6 305.1L273.2 818c-18.8 15.1-21.8 42.6-6.7 61.4 8.7 10.7 21.3 16.3 34.1 16.3z"
2018-08-16 16:15:25 +08:00
/>
</svg>
</i>
</span>
</span>
2016-11-22 14:28:05 +08:00
<div
class="ant-tabs-nav-wrap"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-tabs-nav-scroll"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-tabs-nav ant-tabs-nav-animated"
>
2018-07-31 15:50:27 +08:00
<div>
<div
aria-disabled="false"
aria-selected="true"
class="ant-tabs-tab-active ant-tabs-tab"
role="tab"
>
Tab 1
</div>
<div
aria-disabled="false"
aria-selected="false"
class=" ant-tabs-tab"
role="tab"
>
Tab 2
</div>
<div
aria-disabled="false"
aria-selected="false"
class=" ant-tabs-tab"
role="tab"
>
Tab 3
</div>
2016-11-22 14:28:05 +08:00
</div>
2018-07-29 15:19:59 +08:00
<div
class="ant-tabs-ink-bar ant-tabs-ink-bar-animated"
/>
2016-11-22 14:28:05 +08:00
</div>
</div>
</div>
</div>
</div>
<div
class="ant-tabs-content ant-tabs-content-animated"
2017-09-20 16:26:18 +08:00
style="margin-left:0%"
>
2016-11-22 14:28:05 +08:00
<div
aria-hidden="false"
class="ant-tabs-tabpane ant-tabs-tabpane-active"
role="tabpanel"
>
2016-11-22 14:28:05 +08:00
Content of Tab Pane 1
</div>
<div
aria-hidden="true"
class="ant-tabs-tabpane ant-tabs-tabpane-inactive"
role="tabpanel"
/>
2016-11-22 14:28:05 +08:00
<div
aria-hidden="true"
class="ant-tabs-tabpane ant-tabs-tabpane-inactive"
role="tabpanel"
/>
2016-11-22 14:28:05 +08:00
</div>
</div>
`;
exports[`renders ./components/tabs/demo/card.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div
2017-08-11 22:14:16 +08:00
class="ant-tabs ant-tabs-top ant-tabs-card ant-tabs-no-animation"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-tabs-bar"
role="tablist"
tabindex="0"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-tabs-nav-container"
>
<span
class="ant-tabs-tab-prev ant-tabs-tab-btn-disabled"
unselectable="unselectable"
>
<span
class="ant-tabs-tab-prev-icon"
2018-08-16 16:15:25 +08:00
>
<i
class="anticon anticon-left ant-tabs-tab-prev-icon-target"
>
<svg
aria-hidden="true"
class=""
data-icon="left"
fill="currentColor"
height="1em"
viewBox="0 0 1024 1024"
width="1em"
>
<path
2018-08-24 18:36:08 +08:00
d="M724.4 895.7c-9.6 0-19.3-3.2-27.4-9.6L273.2 545.2c-10.3-8.3-16.3-20.8-16.3-34.1 0-13.2 6-25.8 16.3-34l422-339.1c18.8-15.1 46.3-12.1 61.4 6.7 15.1 18.8 12.1 46.3-6.7 61.4l-379.6 305L751.8 818c18.8 15.1 21.8 42.6 6.7 61.4-8.7 10.7-21.3 16.3-34.1 16.3z"
2018-08-16 16:15:25 +08:00
/>
</svg>
</i>
</span>
</span>
<span
class="ant-tabs-tab-next ant-tabs-tab-btn-disabled"
unselectable="unselectable"
>
<span
class="ant-tabs-tab-next-icon"
2018-08-16 16:15:25 +08:00
>
<i
class="anticon anticon-right ant-tabs-tab-next-icon-target"
>
<svg
aria-hidden="true"
class=""
data-icon="right"
fill="currentColor"
height="1em"
viewBox="0 0 1024 1024"
width="1em"
>
<path
2018-08-24 18:36:08 +08:00
d="M300.6 895.7c9.6 0 19.3-3.2 27.4-9.6l423.8-340.9c10.3-8.3 16.3-20.8 16.3-34.1 0-13.2-6-25.8-16.3-34L329.8 138c-18.8-15.1-46.3-12.1-61.4 6.7-15.1 18.8-12.1 46.3 6.7 61.4l379.6 305.1L273.2 818c-18.8 15.1-21.8 42.6-6.7 61.4 8.7 10.7 21.3 16.3 34.1 16.3z"
2018-08-16 16:15:25 +08:00
/>
</svg>
</i>
</span>
</span>
2016-11-22 14:28:05 +08:00
<div
class="ant-tabs-nav-wrap"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-tabs-nav-scroll"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-tabs-nav ant-tabs-nav-animated"
>
2018-07-31 15:50:27 +08:00
<div>
<div
aria-disabled="false"
aria-selected="true"
class="ant-tabs-tab-active ant-tabs-tab"
role="tab"
>
Tab 1
</div>
<div
aria-disabled="false"
aria-selected="false"
class=" ant-tabs-tab"
role="tab"
>
Tab 2
</div>
<div
aria-disabled="false"
aria-selected="false"
class=" ant-tabs-tab"
role="tab"
>
Tab 3
</div>
2016-11-22 14:28:05 +08:00
</div>
2018-07-29 15:19:59 +08:00
<div
class="ant-tabs-ink-bar ant-tabs-ink-bar-animated"
/>
2016-11-22 14:28:05 +08:00
</div>
</div>
</div>
</div>
</div>
<div
2017-04-17 12:01:21 +08:00
class="ant-tabs-content ant-tabs-content-no-animated"
>
2016-11-22 14:28:05 +08:00
<div
aria-hidden="false"
class="ant-tabs-tabpane ant-tabs-tabpane-active"
role="tabpanel"
>
2016-11-22 14:28:05 +08:00
Content of Tab Pane 1
</div>
<div
aria-hidden="true"
class="ant-tabs-tabpane ant-tabs-tabpane-inactive"
role="tabpanel"
/>
2016-11-22 14:28:05 +08:00
<div
aria-hidden="true"
class="ant-tabs-tabpane ant-tabs-tabpane-inactive"
role="tabpanel"
/>
2016-11-22 14:28:05 +08:00
</div>
</div>
`;
exports[`renders ./components/tabs/demo/card-top.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div
class="card-container"
>
2016-11-22 14:28:05 +08:00
<div
2017-08-11 22:14:16 +08:00
class="ant-tabs ant-tabs-top ant-tabs-card ant-tabs-no-animation"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-tabs-bar"
role="tablist"
tabindex="0"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-tabs-nav-container"
>
<span
class="ant-tabs-tab-prev ant-tabs-tab-btn-disabled"
unselectable="unselectable"
>
<span
class="ant-tabs-tab-prev-icon"
2018-08-16 16:15:25 +08:00
>
<i
class="anticon anticon-left ant-tabs-tab-prev-icon-target"
>
<svg
aria-hidden="true"
class=""
data-icon="left"
fill="currentColor"
height="1em"
viewBox="0 0 1024 1024"
width="1em"
>
<path
2018-08-24 18:36:08 +08:00
d="M724.4 895.7c-9.6 0-19.3-3.2-27.4-9.6L273.2 545.2c-10.3-8.3-16.3-20.8-16.3-34.1 0-13.2 6-25.8 16.3-34l422-339.1c18.8-15.1 46.3-12.1 61.4 6.7 15.1 18.8 12.1 46.3-6.7 61.4l-379.6 305L751.8 818c18.8 15.1 21.8 42.6 6.7 61.4-8.7 10.7-21.3 16.3-34.1 16.3z"
2018-08-16 16:15:25 +08:00
/>
</svg>
</i>
</span>
</span>
<span
class="ant-tabs-tab-next ant-tabs-tab-btn-disabled"
unselectable="unselectable"
>
<span
class="ant-tabs-tab-next-icon"
2018-08-16 16:15:25 +08:00
>
<i
class="anticon anticon-right ant-tabs-tab-next-icon-target"
>
<svg
aria-hidden="true"
class=""
data-icon="right"
fill="currentColor"
height="1em"
viewBox="0 0 1024 1024"
width="1em"
>
<path
2018-08-24 18:36:08 +08:00
d="M300.6 895.7c9.6 0 19.3-3.2 27.4-9.6l423.8-340.9c10.3-8.3 16.3-20.8 16.3-34.1 0-13.2-6-25.8-16.3-34L329.8 138c-18.8-15.1-46.3-12.1-61.4 6.7-15.1 18.8-12.1 46.3 6.7 61.4l379.6 305.1L273.2 818c-18.8 15.1-21.8 42.6-6.7 61.4 8.7 10.7 21.3 16.3 34.1 16.3z"
2018-08-16 16:15:25 +08:00
/>
</svg>
</i>
</span>
</span>
2016-11-22 14:28:05 +08:00
<div
class="ant-tabs-nav-wrap"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-tabs-nav-scroll"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-tabs-nav ant-tabs-nav-animated"
>
2018-07-31 15:50:27 +08:00
<div>
<div
aria-disabled="false"
aria-selected="true"
class="ant-tabs-tab-active ant-tabs-tab"
role="tab"
>
Tab Title 1
</div>
<div
aria-disabled="false"
aria-selected="false"
class=" ant-tabs-tab"
role="tab"
>
Tab Title 2
</div>
<div
aria-disabled="false"
aria-selected="false"
class=" ant-tabs-tab"
role="tab"
>
Tab Title 3
</div>
2016-11-22 14:28:05 +08:00
</div>
2018-07-29 15:19:59 +08:00
<div
class="ant-tabs-ink-bar ant-tabs-ink-bar-animated"
/>
2016-11-22 14:28:05 +08:00
</div>
</div>
</div>
</div>
</div>
<div
2017-04-17 12:01:21 +08:00
class="ant-tabs-content ant-tabs-content-no-animated"
>
2016-11-22 14:28:05 +08:00
<div
aria-hidden="false"
class="ant-tabs-tabpane ant-tabs-tabpane-active"
role="tabpanel"
>
2017-06-26 20:33:13 +08:00
<p>
Content of Tab Pane 1
</p>
<p>
Content of Tab Pane 1
</p>
<p>
Content of Tab Pane 1
</p>
2016-11-22 14:28:05 +08:00
</div>
<div
aria-hidden="true"
class="ant-tabs-tabpane ant-tabs-tabpane-inactive"
role="tabpanel"
/>
2016-11-22 14:28:05 +08:00
<div
aria-hidden="true"
class="ant-tabs-tabpane ant-tabs-tabpane-inactive"
role="tabpanel"
/>
2016-11-22 14:28:05 +08:00
</div>
</div>
</div>
`;
exports[`renders ./components/tabs/demo/custom-add-trigger.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div>
<div
2017-09-20 16:26:18 +08:00
style="margin-bottom:16px"
>
2016-11-22 14:28:05 +08:00
<button
2017-02-04 22:35:33 +08:00
class="ant-btn"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
ADD
</span>
</button>
</div>
<div
2017-08-11 22:14:16 +08:00
class="ant-tabs ant-tabs-top ant-tabs-card ant-tabs-editable-card ant-tabs-no-animation"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-tabs-bar"
role="tablist"
tabindex="0"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-tabs-nav-container"
>
<span
class="ant-tabs-tab-prev ant-tabs-tab-btn-disabled"
unselectable="unselectable"
>
<span
class="ant-tabs-tab-prev-icon"
2018-08-16 16:15:25 +08:00
>
<i
class="anticon anticon-left ant-tabs-tab-prev-icon-target"
>
<svg
aria-hidden="true"
class=""
data-icon="left"
fill="currentColor"
height="1em"
viewBox="0 0 1024 1024"
width="1em"
>
<path
2018-08-24 18:36:08 +08:00
d="M724.4 895.7c-9.6 0-19.3-3.2-27.4-9.6L273.2 545.2c-10.3-8.3-16.3-20.8-16.3-34.1 0-13.2 6-25.8 16.3-34l422-339.1c18.8-15.1 46.3-12.1 61.4 6.7 15.1 18.8 12.1 46.3-6.7 61.4l-379.6 305L751.8 818c18.8 15.1 21.8 42.6 6.7 61.4-8.7 10.7-21.3 16.3-34.1 16.3z"
2018-08-16 16:15:25 +08:00
/>
</svg>
</i>
</span>
</span>
<span
class="ant-tabs-tab-next ant-tabs-tab-btn-disabled"
unselectable="unselectable"
>
<span
class="ant-tabs-tab-next-icon"
2018-08-16 16:15:25 +08:00
>
<i
class="anticon anticon-right ant-tabs-tab-next-icon-target"
>
<svg
aria-hidden="true"
class=""
data-icon="right"
fill="currentColor"
height="1em"
viewBox="0 0 1024 1024"
width="1em"
>
<path
2018-08-24 18:36:08 +08:00
d="M300.6 895.7c9.6 0 19.3-3.2 27.4-9.6l423.8-340.9c10.3-8.3 16.3-20.8 16.3-34.1 0-13.2-6-25.8-16.3-34L329.8 138c-18.8-15.1-46.3-12.1-61.4 6.7-15.1 18.8-12.1 46.3 6.7 61.4l379.6 305.1L273.2 818c-18.8 15.1-21.8 42.6-6.7 61.4 8.7 10.7 21.3 16.3 34.1 16.3z"
2018-08-16 16:15:25 +08:00
/>
</svg>
</i>
</span>
</span>
2016-11-22 14:28:05 +08:00
<div
class="ant-tabs-nav-wrap"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-tabs-nav-scroll"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-tabs-nav ant-tabs-nav-animated"
>
2018-07-31 15:50:27 +08:00
<div>
<div
aria-disabled="false"
aria-selected="true"
class="ant-tabs-tab-active ant-tabs-tab"
role="tab"
>
<div>
Tab 1
<i
2018-08-13 20:51:01 +08:00
class="anticon anticon-close ant-tabs-close-x"
2018-08-13 14:46:55 +08:00
>
<svg
aria-hidden="true"
2018-08-14 15:32:29 +08:00
class=""
2018-08-13 14:46:55 +08:00
data-icon="close"
fill="currentColor"
height="1em"
viewBox="0 0 1024 1024"
width="1em"
>
<path
2018-08-24 18:36:08 +08:00
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"
2018-08-13 14:46:55 +08:00
/>
</svg>
</i>
2018-07-31 15:50:27 +08:00
</div>
2016-11-22 14:28:05 +08:00
</div>
2018-07-31 15:50:27 +08:00
<div
aria-disabled="false"
aria-selected="false"
class=" ant-tabs-tab"
role="tab"
>
<div>
Tab 2
<i
2018-08-13 20:51:01 +08:00
class="anticon anticon-close ant-tabs-close-x"
2018-08-13 14:46:55 +08:00
>
<svg
aria-hidden="true"
2018-08-14 15:32:29 +08:00
class=""
2018-08-13 14:46:55 +08:00
data-icon="close"
fill="currentColor"
height="1em"
viewBox="0 0 1024 1024"
width="1em"
>
<path
2018-08-24 18:36:08 +08:00
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"
2018-08-13 14:46:55 +08:00
/>
</svg>
</i>
2018-07-31 15:50:27 +08:00
</div>
2016-11-22 14:28:05 +08:00
</div>
</div>
2018-07-29 15:19:59 +08:00
<div
class="ant-tabs-ink-bar ant-tabs-ink-bar-animated"
/>
2016-11-22 14:28:05 +08:00
</div>
</div>
</div>
</div>
</div>
<div
2017-04-17 12:01:21 +08:00
class="ant-tabs-content ant-tabs-content-no-animated"
>
2016-11-22 14:28:05 +08:00
<div
aria-hidden="false"
class="ant-tabs-tabpane ant-tabs-tabpane-active"
role="tabpanel"
>
2016-11-22 14:28:05 +08:00
Content of Tab Pane 1
</div>
<div
aria-hidden="true"
class="ant-tabs-tabpane ant-tabs-tabpane-inactive"
role="tabpanel"
/>
2016-11-22 14:28:05 +08:00
</div>
</div>
</div>
`;
exports[`renders ./components/tabs/demo/disabled.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div
class="ant-tabs ant-tabs-top ant-tabs-line"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-tabs-bar"
role="tablist"
tabindex="0"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-tabs-nav-container"
>
<span
class="ant-tabs-tab-prev ant-tabs-tab-btn-disabled"
unselectable="unselectable"
>
<span
class="ant-tabs-tab-prev-icon"
2018-08-16 16:15:25 +08:00
>
<i
class="anticon anticon-left ant-tabs-tab-prev-icon-target"
>
<svg
aria-hidden="true"
class=""
data-icon="left"
fill="currentColor"
height="1em"
viewBox="0 0 1024 1024"
width="1em"
>
<path
2018-08-24 18:36:08 +08:00
d="M724.4 895.7c-9.6 0-19.3-3.2-27.4-9.6L273.2 545.2c-10.3-8.3-16.3-20.8-16.3-34.1 0-13.2 6-25.8 16.3-34l422-339.1c18.8-15.1 46.3-12.1 61.4 6.7 15.1 18.8 12.1 46.3-6.7 61.4l-379.6 305L751.8 818c18.8 15.1 21.8 42.6 6.7 61.4-8.7 10.7-21.3 16.3-34.1 16.3z"
2018-08-16 16:15:25 +08:00
/>
</svg>
</i>
</span>
</span>
<span
class="ant-tabs-tab-next ant-tabs-tab-btn-disabled"
unselectable="unselectable"
>
<span
class="ant-tabs-tab-next-icon"
2018-08-16 16:15:25 +08:00
>
<i
class="anticon anticon-right ant-tabs-tab-next-icon-target"
>
<svg
aria-hidden="true"
class=""
data-icon="right"
fill="currentColor"
height="1em"
viewBox="0 0 1024 1024"
width="1em"
>
<path
2018-08-24 18:36:08 +08:00
d="M300.6 895.7c9.6 0 19.3-3.2 27.4-9.6l423.8-340.9c10.3-8.3 16.3-20.8 16.3-34.1 0-13.2-6-25.8-16.3-34L329.8 138c-18.8-15.1-46.3-12.1-61.4 6.7-15.1 18.8-12.1 46.3 6.7 61.4l379.6 305.1L273.2 818c-18.8 15.1-21.8 42.6-6.7 61.4 8.7 10.7 21.3 16.3 34.1 16.3z"
2018-08-16 16:15:25 +08:00
/>
</svg>
</i>
</span>
</span>
2016-11-22 14:28:05 +08:00
<div
class="ant-tabs-nav-wrap"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-tabs-nav-scroll"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-tabs-nav ant-tabs-nav-animated"
>
2018-07-31 15:50:27 +08:00
<div>
<div
aria-disabled="false"
aria-selected="true"
class="ant-tabs-tab-active ant-tabs-tab"
role="tab"
>
Tab 1
</div>
<div
aria-disabled="true"
aria-selected="false"
class=" ant-tabs-tab ant-tabs-tab-disabled"
role="tab"
>
Tab 2
</div>
<div
aria-disabled="false"
aria-selected="false"
class=" ant-tabs-tab"
role="tab"
>
Tab 3
</div>
2016-11-22 14:28:05 +08:00
</div>
2018-07-29 15:19:59 +08:00
<div
class="ant-tabs-ink-bar ant-tabs-ink-bar-animated"
/>
2016-11-22 14:28:05 +08:00
</div>
</div>
</div>
</div>
</div>
<div
class="ant-tabs-content ant-tabs-content-animated"
2017-09-20 16:26:18 +08:00
style="margin-left:0%"
>
2016-11-22 14:28:05 +08:00
<div
aria-hidden="false"
class="ant-tabs-tabpane ant-tabs-tabpane-active"
role="tabpanel"
>
2016-11-22 14:28:05 +08:00
Tab 1
</div>
<div
aria-hidden="true"
class="ant-tabs-tabpane ant-tabs-tabpane-inactive"
role="tabpanel"
/>
2016-11-22 14:28:05 +08:00
<div
aria-hidden="true"
class="ant-tabs-tabpane ant-tabs-tabpane-inactive"
role="tabpanel"
/>
2016-11-22 14:28:05 +08:00
</div>
</div>
`;
exports[`renders ./components/tabs/demo/editable-card.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div
2017-08-11 22:14:16 +08:00
class="ant-tabs ant-tabs-top ant-tabs-card ant-tabs-editable-card ant-tabs-no-animation"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-tabs-bar"
role="tablist"
tabindex="0"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-tabs-extra-content"
2017-09-20 16:26:18 +08:00
style="float:right"
>
<span>
<i
2018-08-13 20:51:01 +08:00
class="anticon anticon-plus ant-tabs-new-tab"
2018-08-13 14:46:55 +08:00
>
<svg
aria-hidden="true"
2018-08-14 15:32:29 +08:00
class=""
2018-08-13 14:46:55 +08:00
data-icon="plus"
fill="currentColor"
height="1em"
viewBox="0 0 1024 1024"
width="1em"
>
<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-08-13 14:46:55 +08:00
/>
</svg>
</i>
</span>
2016-11-22 14:28:05 +08:00
</div>
<div
class="ant-tabs-nav-container"
>
<span
class="ant-tabs-tab-prev ant-tabs-tab-btn-disabled"
unselectable="unselectable"
>
<span
class="ant-tabs-tab-prev-icon"
2018-08-16 16:15:25 +08:00
>
<i
class="anticon anticon-left ant-tabs-tab-prev-icon-target"
>
<svg
aria-hidden="true"
class=""
data-icon="left"
fill="currentColor"
height="1em"
viewBox="0 0 1024 1024"
width="1em"
>
<path
2018-08-24 18:36:08 +08:00
d="M724.4 895.7c-9.6 0-19.3-3.2-27.4-9.6L273.2 545.2c-10.3-8.3-16.3-20.8-16.3-34.1 0-13.2 6-25.8 16.3-34l422-339.1c18.8-15.1 46.3-12.1 61.4 6.7 15.1 18.8 12.1 46.3-6.7 61.4l-379.6 305L751.8 818c18.8 15.1 21.8 42.6 6.7 61.4-8.7 10.7-21.3 16.3-34.1 16.3z"
2018-08-16 16:15:25 +08:00
/>
</svg>
</i>
</span>
</span>
<span
class="ant-tabs-tab-next ant-tabs-tab-btn-disabled"
unselectable="unselectable"
>
<span
class="ant-tabs-tab-next-icon"
2018-08-16 16:15:25 +08:00
>
<i
class="anticon anticon-right ant-tabs-tab-next-icon-target"
>
<svg
aria-hidden="true"
class=""
data-icon="right"
fill="currentColor"
height="1em"
viewBox="0 0 1024 1024"
width="1em"
>
<path
2018-08-24 18:36:08 +08:00
d="M300.6 895.7c9.6 0 19.3-3.2 27.4-9.6l423.8-340.9c10.3-8.3 16.3-20.8 16.3-34.1 0-13.2-6-25.8-16.3-34L329.8 138c-18.8-15.1-46.3-12.1-61.4 6.7-15.1 18.8-12.1 46.3 6.7 61.4l379.6 305.1L273.2 818c-18.8 15.1-21.8 42.6-6.7 61.4 8.7 10.7 21.3 16.3 34.1 16.3z"
2018-08-16 16:15:25 +08:00
/>
</svg>
</i>
</span>
</span>
2016-11-22 14:28:05 +08:00
<div
class="ant-tabs-nav-wrap"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-tabs-nav-scroll"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-tabs-nav ant-tabs-nav-animated"
>
2018-07-31 15:50:27 +08:00
<div>
<div
aria-disabled="false"
aria-selected="true"
class="ant-tabs-tab-active ant-tabs-tab"
role="tab"
>
<div>
Tab 1
<i
2018-08-13 20:51:01 +08:00
class="anticon anticon-close ant-tabs-close-x"
2018-08-13 14:46:55 +08:00
>
<svg
aria-hidden="true"
2018-08-14 15:32:29 +08:00
class=""
2018-08-13 14:46:55 +08:00
data-icon="close"
fill="currentColor"
height="1em"
viewBox="0 0 1024 1024"
width="1em"
>
<path
2018-08-24 18:36:08 +08:00
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"
2018-08-13 14:46:55 +08:00
/>
</svg>
</i>
2018-07-31 15:50:27 +08:00
</div>
2016-11-22 14:28:05 +08:00
</div>
2018-07-31 15:50:27 +08:00
<div
aria-disabled="false"
aria-selected="false"
class=" ant-tabs-tab"
role="tab"
>
<div>
Tab 2
<i
2018-08-13 20:51:01 +08:00
class="anticon anticon-close ant-tabs-close-x"
2018-08-13 14:46:55 +08:00
>
<svg
aria-hidden="true"
2018-08-14 15:32:29 +08:00
class=""
2018-08-13 14:46:55 +08:00
data-icon="close"
fill="currentColor"
height="1em"
viewBox="0 0 1024 1024"
width="1em"
>
<path
2018-08-24 18:36:08 +08:00
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"
2018-08-13 14:46:55 +08:00
/>
</svg>
</i>
2018-07-31 15:50:27 +08:00
</div>
2016-11-22 14:28:05 +08:00
</div>
<div
2018-07-31 15:50:27 +08:00
aria-disabled="false"
aria-selected="false"
class=" ant-tabs-tab"
role="tab"
>
2018-07-31 15:50:27 +08:00
<div
class="ant-tabs-tab-unclosable"
>
Tab 3
</div>
</div>
</div>
2018-07-29 15:19:59 +08:00
<div
class="ant-tabs-ink-bar ant-tabs-ink-bar-animated"
/>
2016-11-22 14:28:05 +08:00
</div>
</div>
</div>
</div>
</div>
<div
2017-04-17 12:01:21 +08:00
class="ant-tabs-content ant-tabs-content-no-animated"
>
2016-11-22 14:28:05 +08:00
<div
aria-hidden="false"
class="ant-tabs-tabpane ant-tabs-tabpane-active"
role="tabpanel"
>
2016-11-22 14:28:05 +08:00
Content of Tab 1
</div>
<div
aria-hidden="true"
class="ant-tabs-tabpane ant-tabs-tabpane-inactive"
role="tabpanel"
/>
<div
aria-hidden="true"
class="ant-tabs-tabpane ant-tabs-tabpane-inactive"
role="tabpanel"
/>
2016-11-22 14:28:05 +08:00
</div>
</div>
`;
exports[`renders ./components/tabs/demo/extra.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div
class="ant-tabs ant-tabs-top ant-tabs-line"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-tabs-bar"
role="tablist"
tabindex="0"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-tabs-extra-content"
2017-09-20 16:26:18 +08:00
style="float:right"
>
<button
class="ant-btn"
type="button"
>
<span>
Extra Action
</span>
</button>
2016-11-22 14:28:05 +08:00
</div>
<div
class="ant-tabs-nav-container"
>
<span
class="ant-tabs-tab-prev ant-tabs-tab-btn-disabled"
unselectable="unselectable"
>
<span
class="ant-tabs-tab-prev-icon"
2018-08-16 16:15:25 +08:00
>
<i
class="anticon anticon-left ant-tabs-tab-prev-icon-target"
>
<svg
aria-hidden="true"
class=""
data-icon="left"
fill="currentColor"
height="1em"
viewBox="0 0 1024 1024"
width="1em"
>
<path
2018-08-24 18:36:08 +08:00
d="M724.4 895.7c-9.6 0-19.3-3.2-27.4-9.6L273.2 545.2c-10.3-8.3-16.3-20.8-16.3-34.1 0-13.2 6-25.8 16.3-34l422-339.1c18.8-15.1 46.3-12.1 61.4 6.7 15.1 18.8 12.1 46.3-6.7 61.4l-379.6 305L751.8 818c18.8 15.1 21.8 42.6 6.7 61.4-8.7 10.7-21.3 16.3-34.1 16.3z"
2018-08-16 16:15:25 +08:00
/>
</svg>
</i>
</span>
</span>
<span
class="ant-tabs-tab-next ant-tabs-tab-btn-disabled"
unselectable="unselectable"
>
<span
class="ant-tabs-tab-next-icon"
2018-08-16 16:15:25 +08:00
>
<i
class="anticon anticon-right ant-tabs-tab-next-icon-target"
>
<svg
aria-hidden="true"
class=""
data-icon="right"
fill="currentColor"
height="1em"
viewBox="0 0 1024 1024"
width="1em"
>
<path
2018-08-24 18:36:08 +08:00
d="M300.6 895.7c9.6 0 19.3-3.2 27.4-9.6l423.8-340.9c10.3-8.3 16.3-20.8 16.3-34.1 0-13.2-6-25.8-16.3-34L329.8 138c-18.8-15.1-46.3-12.1-61.4 6.7-15.1 18.8-12.1 46.3 6.7 61.4l379.6 305.1L273.2 818c-18.8 15.1-21.8 42.6-6.7 61.4 8.7 10.7 21.3 16.3 34.1 16.3z"
2018-08-16 16:15:25 +08:00
/>
</svg>
</i>
</span>
</span>
2016-11-22 14:28:05 +08:00
<div
class="ant-tabs-nav-wrap"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-tabs-nav-scroll"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-tabs-nav ant-tabs-nav-animated"
>
2018-07-31 15:50:27 +08:00
<div>
<div
aria-disabled="false"
aria-selected="true"
class="ant-tabs-tab-active ant-tabs-tab"
role="tab"
>
Tab 1
</div>
<div
aria-disabled="false"
aria-selected="false"
class=" ant-tabs-tab"
role="tab"
>
Tab 2
</div>
<div
aria-disabled="false"
aria-selected="false"
class=" ant-tabs-tab"
role="tab"
>
Tab 3
</div>
2016-11-22 14:28:05 +08:00
</div>
2018-07-29 15:19:59 +08:00
<div
class="ant-tabs-ink-bar ant-tabs-ink-bar-animated"
/>
2016-11-22 14:28:05 +08:00
</div>
</div>
</div>
</div>
</div>
<div
class="ant-tabs-content ant-tabs-content-animated"
2017-09-20 16:26:18 +08:00
style="margin-left:0%"
>
2016-11-22 14:28:05 +08:00
<div
aria-hidden="false"
class="ant-tabs-tabpane ant-tabs-tabpane-active"
role="tabpanel"
>
2016-11-22 14:28:05 +08:00
Content of tab 1
</div>
<div
aria-hidden="true"
class="ant-tabs-tabpane ant-tabs-tabpane-inactive"
role="tabpanel"
/>
2016-11-22 14:28:05 +08:00
<div
aria-hidden="true"
class="ant-tabs-tabpane ant-tabs-tabpane-inactive"
role="tabpanel"
/>
2016-11-22 14:28:05 +08:00
</div>
</div>
`;
exports[`renders ./components/tabs/demo/icon.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div
class="ant-tabs ant-tabs-top ant-tabs-line"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-tabs-bar"
role="tablist"
tabindex="0"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-tabs-nav-container"
>
<span
class="ant-tabs-tab-prev ant-tabs-tab-btn-disabled"
unselectable="unselectable"
>
<span
class="ant-tabs-tab-prev-icon"
2018-08-16 16:15:25 +08:00
>
<i
class="anticon anticon-left ant-tabs-tab-prev-icon-target"
>
<svg
aria-hidden="true"
class=""
data-icon="left"
fill="currentColor"
height="1em"
viewBox="0 0 1024 1024"
width="1em"
>
<path
2018-08-24 18:36:08 +08:00
d="M724.4 895.7c-9.6 0-19.3-3.2-27.4-9.6L273.2 545.2c-10.3-8.3-16.3-20.8-16.3-34.1 0-13.2 6-25.8 16.3-34l422-339.1c18.8-15.1 46.3-12.1 61.4 6.7 15.1 18.8 12.1 46.3-6.7 61.4l-379.6 305L751.8 818c18.8 15.1 21.8 42.6 6.7 61.4-8.7 10.7-21.3 16.3-34.1 16.3z"
2018-08-16 16:15:25 +08:00
/>
</svg>
</i>
</span>
</span>
<span
class="ant-tabs-tab-next ant-tabs-tab-btn-disabled"
unselectable="unselectable"
>
<span
class="ant-tabs-tab-next-icon"
2018-08-16 16:15:25 +08:00
>
<i
class="anticon anticon-right ant-tabs-tab-next-icon-target"
>
<svg
aria-hidden="true"
class=""
data-icon="right"
fill="currentColor"
height="1em"
viewBox="0 0 1024 1024"
width="1em"
>
<path
2018-08-24 18:36:08 +08:00
d="M300.6 895.7c9.6 0 19.3-3.2 27.4-9.6l423.8-340.9c10.3-8.3 16.3-20.8 16.3-34.1 0-13.2-6-25.8-16.3-34L329.8 138c-18.8-15.1-46.3-12.1-61.4 6.7-15.1 18.8-12.1 46.3 6.7 61.4l379.6 305.1L273.2 818c-18.8 15.1-21.8 42.6-6.7 61.4 8.7 10.7 21.3 16.3 34.1 16.3z"
2018-08-16 16:15:25 +08:00
/>
</svg>
</i>
</span>
</span>
2016-11-22 14:28:05 +08:00
<div
class="ant-tabs-nav-wrap"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-tabs-nav-scroll"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-tabs-nav ant-tabs-nav-animated"
>
2018-07-31 15:50:27 +08:00
<div>
<div
aria-disabled="false"
aria-selected="false"
class=" ant-tabs-tab"
role="tab"
>
<span>
<i
2018-08-13 20:51:01 +08:00
class="anticon anticon-apple"
2018-08-13 14:46:55 +08:00
>
<svg
aria-hidden="true"
2018-08-14 15:32:29 +08:00
class=""
2018-08-13 14:46:55 +08:00
data-icon="apple"
fill="currentColor"
height="1em"
viewBox="0 0 1024 1024"
width="1em"
>
<path
2018-08-24 18:36:08 +08:00
d="M902 349.1c-60.1-88-153.8-100.1-187.2-101.5-79.7-8.1-155.6 46.9-196 46.9-40.4 0-102.8-45.8-168.9-44.6-86.9 1.3-167 50.5-211.8 128.4C47.8 535 115 767.1 203 894.2c43 62.2 94.3 132.1 161.6 129.6 64.8-2.6 89.4-42 167.7-42 78.4 0 100.4 42 169 40.7 69.8-1.3 114-63.4 156.7-125.8 49.4-72.2 69.7-142 70.9-145.6-1.6-.7-136-52.2-137.4-207.1-1.3-129.6 105.7-191.8 110.5-194.9zM715.8 0C664.3 2.1 602 34.3 565 77.5c-33.1 38.4-58.7 99.6-50.9 158.4 57.5 4.5 112.7-29.2 148.5-72.5C698.3 120.2 722.4 60 715.8 0z"
2018-08-13 14:46:55 +08:00
/>
</svg>
</i>
2018-07-31 15:50:27 +08:00
Tab 1
</span>
</div>
<div
aria-disabled="false"
aria-selected="true"
class="ant-tabs-tab-active ant-tabs-tab"
role="tab"
>
<span>
<i
2018-08-13 20:51:01 +08:00
class="anticon anticon-android"
2018-08-13 14:46:55 +08:00
>
<svg
aria-hidden="true"
2018-08-14 15:32:29 +08:00
class=""
2018-08-13 14:46:55 +08:00
data-icon="android"
fill="currentColor"
height="1em"
viewBox="0 0 1024 1024"
width="1em"
>
<path
2018-08-24 18:36:08 +08:00
d="M887.662 320.871c-34.397 0-62.294 28.297-62.294 63.294V631.44c0 34.896 27.897 63.293 62.294 63.293s62.294-28.297 62.294-63.293V384.165c0-34.997-27.798-63.294-62.294-63.294zm-751.324 0c-34.397 0-62.294 28.297-62.294 63.294V631.44c0 34.896 27.897 63.293 62.294 63.293s62.294-28.297 62.294-63.293V384.165c0-34.997-27.897-63.294-62.294-63.294zm99.79 1.9v451.754c0 26.798 21.798 48.595 48.595 48.595h55.494v137.586c0 34.897 27.898 63.294 62.294 63.294s62.294-28.297 62.294-63.294V823.02h96.99v137.586c0 34.897 27.897 63.294 62.294 63.294s62.293-28.297 62.293-63.294V823.02h55.495c26.797 0 48.595-21.797 48.595-48.595V322.771H236.128zM643.387 88.695l51.195-74.293c3-4.4 2.3-10.199-1.7-12.999-4-2.7-9.7-1.4-12.699 3l-53.195 77.292C591.992 67.897 552.996 60.198 512 60.198s-79.992 7.699-114.988 21.497L343.817 4.503c-3-4.4-8.7-5.8-12.699-3-4 2.7-4.7 8.5-1.7 13l51.195 74.292c-81.391 37.896-138.486 109.789-145.785 193.78h554.344c-7.3-84.091-64.394-155.984-145.785-193.88zM395.112 205.883c-16.898 0-30.697-13.699-30.697-30.697 0-16.898 13.699-30.697 30.697-30.697 16.898 0 30.697 13.699 30.697 30.697-.1 16.898-13.799 30.697-30.697 30.697zm237.676 0c-16.899 0-30.697-13.699-30.697-30.697 0-16.898 13.698-30.697 30.697-30.697 16.898 0 30.697 13.699 30.697 30.697-.1 16.898-13.799 30.697-30.697 30.697z"
2018-08-13 14:46:55 +08:00
/>
</svg>
</i>
2018-07-31 15:50:27 +08:00
Tab 2
</span>
</div>
2016-11-22 14:28:05 +08:00
</div>
2018-07-29 15:19:59 +08:00
<div
class="ant-tabs-ink-bar ant-tabs-ink-bar-animated"
/>
2016-11-22 14:28:05 +08:00
</div>
</div>
</div>
</div>
</div>
<div
class="ant-tabs-content ant-tabs-content-animated"
2017-09-20 16:26:18 +08:00
style="margin-left:-100%"
>
2016-11-22 14:28:05 +08:00
<div
aria-hidden="true"
class="ant-tabs-tabpane ant-tabs-tabpane-inactive"
role="tabpanel"
/>
2016-11-22 14:28:05 +08:00
<div
aria-hidden="false"
class="ant-tabs-tabpane ant-tabs-tabpane-active"
role="tabpanel"
>
2016-11-22 14:28:05 +08:00
Tab 2
</div>
</div>
</div>
`;
exports[`renders ./components/tabs/demo/position.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div>
<div
2017-09-20 16:26:18 +08:00
style="margin-bottom:16px"
>
2016-11-22 14:28:05 +08:00
Tab position
<div
class="ant-select ant-select-enabled"
>
2016-11-22 14:28:05 +08:00
<div
aria-autocomplete="list"
aria-expanded="false"
aria-haspopup="true"
class="ant-select-selection
2017-10-09 13:32:11 +08:00
ant-select-selection--single"
2016-11-22 14:28:05 +08:00
role="combobox"
tabindex="0"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-select-selection__rendered"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-select-selection-selected-value"
2017-09-20 16:26:18 +08:00
style="display:block;opacity:1"
title="top"
>
2016-11-22 14:28:05 +08:00
top
</div>
</div>
<span
class="ant-select-arrow"
2017-09-20 16:26:18 +08:00
style="user-select:none;-webkit-user-select:none"
unselectable="on"
>
2018-08-13 14:46:55 +08:00
<i
2018-08-13 20:51:01 +08:00
class="anticon anticon-down ant-select-arrow-icon"
2018-08-13 14:46:55 +08:00
>
<svg
aria-hidden="true"
2018-08-14 15:32:29 +08:00
class=""
2018-08-13 14:46:55 +08:00
data-icon="down"
fill="currentColor"
height="1em"
viewBox="0 0 1024 1024"
width="1em"
>
<path
2018-08-24 18:36:08 +08:00
d="M895.7 300.1c0 9.6-3.2 19.3-9.6 27.4L545.2 751.3c-8.3 10.3-20.8 16.3-34.1 16.3-13.2 0-25.8-6-34-16.3L138 329.3c-15.1-18.8-12.1-46.3 6.7-61.4 18.8-15.1 46.3-12.1 61.4 6.7l305.1 379.6L818 272.7c15.1-18.8 42.6-21.8 61.4-6.7 10.7 8.7 16.3 21.3 16.3 34.1z"
2018-08-13 14:46:55 +08:00
/>
</svg>
</i>
2016-11-22 14:28:05 +08:00
</span>
</div>
</div>
</div>
<div
class="ant-tabs ant-tabs-top ant-tabs-line"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-tabs-bar"
role="tablist"
tabindex="0"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-tabs-nav-container"
>
<span
class="ant-tabs-tab-prev ant-tabs-tab-btn-disabled"
unselectable="unselectable"
>
<span
class="ant-tabs-tab-prev-icon"
2018-08-16 16:15:25 +08:00
>
<i
class="anticon anticon-left ant-tabs-tab-prev-icon-target"
>
<svg
aria-hidden="true"
class=""
data-icon="left"
fill="currentColor"
height="1em"
viewBox="0 0 1024 1024"
width="1em"
>
<path
2018-08-24 18:36:08 +08:00
d="M724.4 895.7c-9.6 0-19.3-3.2-27.4-9.6L273.2 545.2c-10.3-8.3-16.3-20.8-16.3-34.1 0-13.2 6-25.8 16.3-34l422-339.1c18.8-15.1 46.3-12.1 61.4 6.7 15.1 18.8 12.1 46.3-6.7 61.4l-379.6 305L751.8 818c18.8 15.1 21.8 42.6 6.7 61.4-8.7 10.7-21.3 16.3-34.1 16.3z"
2018-08-16 16:15:25 +08:00
/>
</svg>
</i>
</span>
</span>
<span
class="ant-tabs-tab-next ant-tabs-tab-btn-disabled"
unselectable="unselectable"
>
<span
class="ant-tabs-tab-next-icon"
2018-08-16 16:15:25 +08:00
>
<i
class="anticon anticon-right ant-tabs-tab-next-icon-target"
>
<svg
aria-hidden="true"
class=""
data-icon="right"
fill="currentColor"
height="1em"
viewBox="0 0 1024 1024"
width="1em"
>
<path
2018-08-24 18:36:08 +08:00
d="M300.6 895.7c9.6 0 19.3-3.2 27.4-9.6l423.8-340.9c10.3-8.3 16.3-20.8 16.3-34.1 0-13.2-6-25.8-16.3-34L329.8 138c-18.8-15.1-46.3-12.1-61.4 6.7-15.1 18.8-12.1 46.3 6.7 61.4l379.6 305.1L273.2 818c-18.8 15.1-21.8 42.6-6.7 61.4 8.7 10.7 21.3 16.3 34.1 16.3z"
2018-08-16 16:15:25 +08:00
/>
</svg>
</i>
</span>
</span>
2016-11-22 14:28:05 +08:00
<div
class="ant-tabs-nav-wrap"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-tabs-nav-scroll"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-tabs-nav ant-tabs-nav-animated"
>
2018-07-31 15:50:27 +08:00
<div>
<div
aria-disabled="false"
aria-selected="true"
class="ant-tabs-tab-active ant-tabs-tab"
role="tab"
>
Tab 1
</div>
<div
aria-disabled="false"
aria-selected="false"
class=" ant-tabs-tab"
role="tab"
>
Tab 2
</div>
<div
aria-disabled="false"
aria-selected="false"
class=" ant-tabs-tab"
role="tab"
>
Tab 3
</div>
2016-11-22 14:28:05 +08:00
</div>
2018-07-29 15:19:59 +08:00
<div
class="ant-tabs-ink-bar ant-tabs-ink-bar-animated"
/>
2016-11-22 14:28:05 +08:00
</div>
</div>
</div>
</div>
</div>
<div
class="ant-tabs-content ant-tabs-content-animated"
2017-09-20 16:26:18 +08:00
style="margin-left:0%"
>
2016-11-22 14:28:05 +08:00
<div
aria-hidden="false"
class="ant-tabs-tabpane ant-tabs-tabpane-active"
role="tabpanel"
>
2016-11-22 14:28:05 +08:00
Content of Tab 1
</div>
<div
aria-hidden="true"
class="ant-tabs-tabpane ant-tabs-tabpane-inactive"
role="tabpanel"
/>
2016-11-22 14:28:05 +08:00
<div
aria-hidden="true"
class="ant-tabs-tabpane ant-tabs-tabpane-inactive"
role="tabpanel"
/>
2016-11-22 14:28:05 +08:00
</div>
</div>
</div>
`;
exports[`renders ./components/tabs/demo/size.md correctly 1`] = `
2017-10-18 21:17:18 +08:00
<div>
2016-11-22 14:28:05 +08:00
<div
2018-06-28 17:12:16 +08:00
class="ant-radio-group ant-radio-group-outline"
2017-10-18 21:17:18 +08:00
style="margin-bottom:16px"
>
2017-10-18 21:17:18 +08:00
<label
class="ant-radio-button-wrapper ant-radio-button-wrapper-checked"
>
<span
2017-10-18 21:17:18 +08:00
class="ant-radio-button ant-radio-button-checked"
>
2017-10-18 21:17:18 +08:00
<input
checked=""
class="ant-radio-button-input"
type="radio"
2018-01-25 18:24:59 +08:00
value="small"
2017-10-18 21:17:18 +08:00
/>
<span
2017-10-18 21:17:18 +08:00
class="ant-radio-button-inner"
/>
</span>
2017-10-18 21:17:18 +08:00
<span>
Small
</span>
</label>
<label
class="ant-radio-button-wrapper"
>
<span
2017-10-18 21:17:18 +08:00
class="ant-radio-button"
>
2017-10-18 21:17:18 +08:00
<input
class="ant-radio-button-input"
type="radio"
2018-01-25 18:24:59 +08:00
value="default"
2017-10-18 21:17:18 +08:00
/>
<span
2017-10-18 21:17:18 +08:00
class="ant-radio-button-inner"
/>
</span>
<span>
Default
</span>
</label>
<label
class="ant-radio-button-wrapper"
>
<span
class="ant-radio-button"
>
<input
class="ant-radio-button-input"
type="radio"
2018-01-25 18:24:59 +08:00
value="large"
/>
2017-10-18 21:17:18 +08:00
<span
class="ant-radio-button-inner"
/>
</span>
<span>
Large
</span>
2017-10-18 21:17:18 +08:00
</label>
</div>
<div
class="ant-tabs ant-tabs-top ant-tabs-small ant-tabs-line"
>
<div
class="ant-tabs-bar"
role="tablist"
tabindex="0"
>
2016-11-22 14:28:05 +08:00
<div
2017-10-18 21:17:18 +08:00
class="ant-tabs-nav-container"
>
2017-10-18 21:17:18 +08:00
<span
class="ant-tabs-tab-prev ant-tabs-tab-btn-disabled"
unselectable="unselectable"
>
<span
class="ant-tabs-tab-prev-icon"
2018-08-16 16:15:25 +08:00
>
<i
class="anticon anticon-left ant-tabs-tab-prev-icon-target"
>
<svg
aria-hidden="true"
class=""
data-icon="left"
fill="currentColor"
height="1em"
viewBox="0 0 1024 1024"
width="1em"
>
<path
2018-08-24 18:36:08 +08:00
d="M724.4 895.7c-9.6 0-19.3-3.2-27.4-9.6L273.2 545.2c-10.3-8.3-16.3-20.8-16.3-34.1 0-13.2 6-25.8 16.3-34l422-339.1c18.8-15.1 46.3-12.1 61.4 6.7 15.1 18.8 12.1 46.3-6.7 61.4l-379.6 305L751.8 818c18.8 15.1 21.8 42.6 6.7 61.4-8.7 10.7-21.3 16.3-34.1 16.3z"
2018-08-16 16:15:25 +08:00
/>
</svg>
</i>
</span>
2017-10-18 21:17:18 +08:00
</span>
<span
class="ant-tabs-tab-next ant-tabs-tab-btn-disabled"
unselectable="unselectable"
>
<span
class="ant-tabs-tab-next-icon"
2018-08-16 16:15:25 +08:00
>
<i
class="anticon anticon-right ant-tabs-tab-next-icon-target"
>
<svg
aria-hidden="true"
class=""
data-icon="right"
fill="currentColor"
height="1em"
viewBox="0 0 1024 1024"
width="1em"
>
<path
2018-08-24 18:36:08 +08:00
d="M300.6 895.7c9.6 0 19.3-3.2 27.4-9.6l423.8-340.9c10.3-8.3 16.3-20.8 16.3-34.1 0-13.2-6-25.8-16.3-34L329.8 138c-18.8-15.1-46.3-12.1-61.4 6.7-15.1 18.8-12.1 46.3 6.7 61.4l379.6 305.1L273.2 818c-18.8 15.1-21.8 42.6-6.7 61.4 8.7 10.7 21.3 16.3 34.1 16.3z"
2018-08-16 16:15:25 +08:00
/>
</svg>
</i>
</span>
2017-10-18 21:17:18 +08:00
</span>
2016-11-22 14:28:05 +08:00
<div
2017-10-18 21:17:18 +08:00
class="ant-tabs-nav-wrap"
>
2016-11-22 14:28:05 +08:00
<div
2017-10-18 21:17:18 +08:00
class="ant-tabs-nav-scroll"
>
2016-11-22 14:28:05 +08:00
<div
2017-10-18 21:17:18 +08:00
class="ant-tabs-nav ant-tabs-nav-animated"
>
2018-07-31 15:50:27 +08:00
<div>
<div
aria-disabled="false"
aria-selected="true"
class="ant-tabs-tab-active ant-tabs-tab"
role="tab"
>
Tab 1
</div>
<div
aria-disabled="false"
aria-selected="false"
class=" ant-tabs-tab"
role="tab"
>
Tab 2
</div>
<div
aria-disabled="false"
aria-selected="false"
class=" ant-tabs-tab"
role="tab"
>
Tab 3
</div>
2017-10-18 21:17:18 +08:00
</div>
2018-07-29 15:19:59 +08:00
<div
class="ant-tabs-ink-bar ant-tabs-ink-bar-animated"
/>
2016-11-22 14:28:05 +08:00
</div>
</div>
</div>
</div>
</div>
<div
2017-10-18 21:17:18 +08:00
class="ant-tabs-content ant-tabs-content-animated"
style="margin-left:0%"
>
2017-10-18 21:17:18 +08:00
<div
aria-hidden="false"
class="ant-tabs-tabpane ant-tabs-tabpane-active"
role="tabpanel"
>
Content of tab 1
</div>
<div
aria-hidden="true"
class="ant-tabs-tabpane ant-tabs-tabpane-inactive"
role="tabpanel"
/>
<div
aria-hidden="true"
class="ant-tabs-tabpane ant-tabs-tabpane-inactive"
role="tabpanel"
/>
2016-11-22 14:28:05 +08:00
</div>
</div>
</div>
`;
exports[`renders ./components/tabs/demo/slide.md correctly 1`] = `
<div>
2016-11-22 14:28:05 +08:00
<div
2018-06-28 17:12:16 +08:00
class="ant-radio-group ant-radio-group-outline"
2017-09-20 16:26:18 +08:00
style="margin-bottom:8px"
>
<label
class="ant-radio-button-wrapper ant-radio-button-wrapper-checked"
>
<span
class="ant-radio-button ant-radio-button-checked"
>
<input
checked=""
class="ant-radio-button-input"
type="radio"
2018-01-25 18:24:59 +08:00
value="top"
/>
<span
class="ant-radio-button-inner"
/>
</span>
<span>
Horizontal
</span>
</label>
<label
class="ant-radio-button-wrapper"
>
<span
class="ant-radio-button"
>
<input
class="ant-radio-button-input"
type="radio"
2018-01-25 18:24:59 +08:00
value="left"
/>
<span
class="ant-radio-button-inner"
/>
</span>
<span>
Vertical
</span>
</label>
</div>
<div
class="ant-tabs ant-tabs-top ant-tabs-line"
2017-09-20 16:26:18 +08:00
style="height:220px"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-tabs-bar"
role="tablist"
tabindex="0"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-tabs-nav-container"
>
<span
class="ant-tabs-tab-prev ant-tabs-tab-btn-disabled"
unselectable="unselectable"
>
<span
class="ant-tabs-tab-prev-icon"
2018-08-16 16:15:25 +08:00
>
<i
class="anticon anticon-left ant-tabs-tab-prev-icon-target"
>
<svg
aria-hidden="true"
class=""
data-icon="left"
fill="currentColor"
height="1em"
viewBox="0 0 1024 1024"
width="1em"
>
<path
2018-08-24 18:36:08 +08:00
d="M724.4 895.7c-9.6 0-19.3-3.2-27.4-9.6L273.2 545.2c-10.3-8.3-16.3-20.8-16.3-34.1 0-13.2 6-25.8 16.3-34l422-339.1c18.8-15.1 46.3-12.1 61.4 6.7 15.1 18.8 12.1 46.3-6.7 61.4l-379.6 305L751.8 818c18.8 15.1 21.8 42.6 6.7 61.4-8.7 10.7-21.3 16.3-34.1 16.3z"
2018-08-16 16:15:25 +08:00
/>
</svg>
</i>
</span>
</span>
<span
class="ant-tabs-tab-next ant-tabs-tab-btn-disabled"
unselectable="unselectable"
>
<span
class="ant-tabs-tab-next-icon"
2018-08-16 16:15:25 +08:00
>
<i
class="anticon anticon-right ant-tabs-tab-next-icon-target"
>
<svg
aria-hidden="true"
class=""
data-icon="right"
fill="currentColor"
height="1em"
viewBox="0 0 1024 1024"
width="1em"
>
<path
2018-08-24 18:36:08 +08:00
d="M300.6 895.7c9.6 0 19.3-3.2 27.4-9.6l423.8-340.9c10.3-8.3 16.3-20.8 16.3-34.1 0-13.2-6-25.8-16.3-34L329.8 138c-18.8-15.1-46.3-12.1-61.4 6.7-15.1 18.8-12.1 46.3 6.7 61.4l379.6 305.1L273.2 818c-18.8 15.1-21.8 42.6-6.7 61.4 8.7 10.7 21.3 16.3 34.1 16.3z"
2018-08-16 16:15:25 +08:00
/>
</svg>
</i>
</span>
</span>
2016-11-22 14:28:05 +08:00
<div
class="ant-tabs-nav-wrap"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-tabs-nav-scroll"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-tabs-nav ant-tabs-nav-animated"
>
2018-07-31 15:50:27 +08:00
<div>
<div
aria-disabled="false"
aria-selected="true"
class="ant-tabs-tab-active ant-tabs-tab"
role="tab"
>
Tab 1
</div>
<div
aria-disabled="false"
aria-selected="false"
class=" ant-tabs-tab"
role="tab"
>
Tab 2
</div>
<div
aria-disabled="false"
aria-selected="false"
class=" ant-tabs-tab"
role="tab"
>
Tab 3
</div>
<div
aria-disabled="false"
aria-selected="false"
class=" ant-tabs-tab"
role="tab"
>
Tab 4
</div>
<div
aria-disabled="false"
aria-selected="false"
class=" ant-tabs-tab"
role="tab"
>
Tab 5
</div>
<div
aria-disabled="false"
aria-selected="false"
class=" ant-tabs-tab"
role="tab"
>
Tab 6
</div>
<div
aria-disabled="false"
aria-selected="false"
class=" ant-tabs-tab"
role="tab"
>
Tab 7
</div>
<div
aria-disabled="false"
aria-selected="false"
class=" ant-tabs-tab"
role="tab"
>
Tab 8
</div>
<div
aria-disabled="false"
aria-selected="false"
class=" ant-tabs-tab"
role="tab"
>
Tab 9
</div>
<div
aria-disabled="false"
aria-selected="false"
class=" ant-tabs-tab"
role="tab"
>
Tab 10
</div>
<div
aria-disabled="false"
aria-selected="false"
class=" ant-tabs-tab"
role="tab"
>
Tab 11
</div>
2017-06-26 20:33:13 +08:00
</div>
2018-07-29 15:19:59 +08:00
<div
class="ant-tabs-ink-bar ant-tabs-ink-bar-animated"
/>
2016-11-22 14:28:05 +08:00
</div>
</div>
</div>
</div>
</div>
<div
class="ant-tabs-content ant-tabs-content-animated"
2017-09-20 16:26:18 +08:00
style="margin-left:0%"
>
<div
aria-hidden="false"
class="ant-tabs-tabpane ant-tabs-tabpane-active"
role="tabpanel"
>
Content of tab 1
</div>
<div
aria-hidden="true"
class="ant-tabs-tabpane ant-tabs-tabpane-inactive"
2017-06-26 20:33:13 +08:00
role="tabpanel"
/>
<div
aria-hidden="true"
class="ant-tabs-tabpane ant-tabs-tabpane-inactive"
role="tabpanel"
/>
<div
aria-hidden="true"
class="ant-tabs-tabpane ant-tabs-tabpane-inactive"
role="tabpanel"
/>
<div
aria-hidden="true"
class="ant-tabs-tabpane ant-tabs-tabpane-inactive"
role="tabpanel"
/>
<div
aria-hidden="true"
class="ant-tabs-tabpane ant-tabs-tabpane-inactive"
role="tabpanel"
/>
<div
aria-hidden="true"
class="ant-tabs-tabpane ant-tabs-tabpane-inactive"
role="tabpanel"
/>
<div
aria-hidden="true"
class="ant-tabs-tabpane ant-tabs-tabpane-inactive"
role="tabpanel"
/>
<div
aria-hidden="true"
class="ant-tabs-tabpane ant-tabs-tabpane-inactive"
role="tabpanel"
/>
<div
aria-hidden="true"
class="ant-tabs-tabpane ant-tabs-tabpane-inactive"
role="tabpanel"
/>
<div
aria-hidden="true"
class="ant-tabs-tabpane ant-tabs-tabpane-inactive"
role="tabpanel"
/>
2016-11-22 14:28:05 +08:00
</div>
</div>
</div>
`;