|
|
@ -934,140 +934,139 @@ exports[`renders ./components/tabs/demo/custom-add-trigger.tsx extend context co |
|
|
|
`; |
|
|
|
|
|
|
|
exports[`renders ./components/tabs/demo/custom-tab-bar.tsx extend context correctly 1`] = ` |
|
|
|
<div> |
|
|
|
<div |
|
|
|
class="ant-tabs ant-tabs-top" |
|
|
|
> |
|
|
|
<div |
|
|
|
class="ant-tabs ant-tabs-top" |
|
|
|
style="z-index:1" |
|
|
|
> |
|
|
|
<div> |
|
|
|
<div /> |
|
|
|
<div |
|
|
|
class="ant-tabs-nav" |
|
|
|
role="tablist" |
|
|
|
style="background:#ffffff" |
|
|
|
> |
|
|
|
<div |
|
|
|
class="ant-tabs-nav" |
|
|
|
role="tablist" |
|
|
|
style="z-index:1" |
|
|
|
class="ant-tabs-nav-wrap" |
|
|
|
> |
|
|
|
<div |
|
|
|
class="ant-tabs-nav-wrap" |
|
|
|
class="ant-tabs-nav-list" |
|
|
|
style="transform:translate(0px, 0px)" |
|
|
|
> |
|
|
|
<div |
|
|
|
class="ant-tabs-nav-list" |
|
|
|
style="transform:translate(0px, 0px)" |
|
|
|
class="ant-tabs-tab ant-tabs-tab-active" |
|
|
|
data-node-key="1" |
|
|
|
> |
|
|
|
<div |
|
|
|
class="ant-tabs-tab ant-tabs-tab-active" |
|
|
|
data-node-key="1" |
|
|
|
aria-selected="true" |
|
|
|
class="ant-tabs-tab-btn" |
|
|
|
role="tab" |
|
|
|
tabindex="0" |
|
|
|
> |
|
|
|
<div |
|
|
|
aria-selected="true" |
|
|
|
class="ant-tabs-tab-btn" |
|
|
|
role="tab" |
|
|
|
tabindex="0" |
|
|
|
> |
|
|
|
Tab 1 |
|
|
|
</div> |
|
|
|
Tab 1 |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div |
|
|
|
class="ant-tabs-tab" |
|
|
|
data-node-key="2" |
|
|
|
> |
|
|
|
<div |
|
|
|
class="ant-tabs-tab" |
|
|
|
data-node-key="2" |
|
|
|
aria-selected="false" |
|
|
|
class="ant-tabs-tab-btn" |
|
|
|
role="tab" |
|
|
|
tabindex="0" |
|
|
|
> |
|
|
|
<div |
|
|
|
aria-selected="false" |
|
|
|
class="ant-tabs-tab-btn" |
|
|
|
role="tab" |
|
|
|
tabindex="0" |
|
|
|
> |
|
|
|
Tab 2 |
|
|
|
</div> |
|
|
|
Tab 2 |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div |
|
|
|
class="ant-tabs-tab" |
|
|
|
data-node-key="3" |
|
|
|
> |
|
|
|
<div |
|
|
|
class="ant-tabs-tab" |
|
|
|
data-node-key="3" |
|
|
|
aria-selected="false" |
|
|
|
class="ant-tabs-tab-btn" |
|
|
|
role="tab" |
|
|
|
tabindex="0" |
|
|
|
> |
|
|
|
<div |
|
|
|
aria-selected="false" |
|
|
|
class="ant-tabs-tab-btn" |
|
|
|
role="tab" |
|
|
|
tabindex="0" |
|
|
|
> |
|
|
|
Tab 3 |
|
|
|
</div> |
|
|
|
Tab 3 |
|
|
|
</div> |
|
|
|
<div |
|
|
|
class="ant-tabs-ink-bar ant-tabs-ink-bar-animated" |
|
|
|
/> |
|
|
|
</div> |
|
|
|
<div |
|
|
|
class="ant-tabs-ink-bar ant-tabs-ink-bar-animated" |
|
|
|
/> |
|
|
|
</div> |
|
|
|
<div |
|
|
|
class="ant-tabs-nav-operations ant-tabs-nav-operations-hidden" |
|
|
|
style="z-index:1" |
|
|
|
</div> |
|
|
|
<div |
|
|
|
class="ant-tabs-nav-operations ant-tabs-nav-operations-hidden" |
|
|
|
style="background:#ffffff" |
|
|
|
> |
|
|
|
<button |
|
|
|
aria-controls="null-more-popup" |
|
|
|
aria-expanded="false" |
|
|
|
aria-haspopup="listbox" |
|
|
|
aria-hidden="true" |
|
|
|
class="ant-tabs-nav-more" |
|
|
|
id="null-more" |
|
|
|
style="visibility:hidden;order:1" |
|
|
|
tabindex="-1" |
|
|
|
type="button" |
|
|
|
> |
|
|
|
<button |
|
|
|
aria-controls="null-more-popup" |
|
|
|
aria-expanded="false" |
|
|
|
aria-haspopup="listbox" |
|
|
|
aria-hidden="true" |
|
|
|
class="ant-tabs-nav-more" |
|
|
|
id="null-more" |
|
|
|
style="visibility:hidden;order:1" |
|
|
|
tabindex="-1" |
|
|
|
type="button" |
|
|
|
<span |
|
|
|
aria-label="ellipsis" |
|
|
|
class="anticon anticon-ellipsis" |
|
|
|
role="img" |
|
|
|
> |
|
|
|
<span |
|
|
|
aria-label="ellipsis" |
|
|
|
class="anticon anticon-ellipsis" |
|
|
|
role="img" |
|
|
|
> |
|
|
|
<svg |
|
|
|
aria-hidden="true" |
|
|
|
data-icon="ellipsis" |
|
|
|
fill="currentColor" |
|
|
|
focusable="false" |
|
|
|
height="1em" |
|
|
|
viewBox="64 64 896 896" |
|
|
|
width="1em" |
|
|
|
> |
|
|
|
<path |
|
|
|
d="M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" |
|
|
|
/> |
|
|
|
</svg> |
|
|
|
</span> |
|
|
|
</button> |
|
|
|
<div> |
|
|
|
<div |
|
|
|
class="ant-tabs-dropdown" |
|
|
|
style="opacity:0" |
|
|
|
<svg |
|
|
|
aria-hidden="true" |
|
|
|
data-icon="ellipsis" |
|
|
|
fill="currentColor" |
|
|
|
focusable="false" |
|
|
|
height="1em" |
|
|
|
viewBox="64 64 896 896" |
|
|
|
width="1em" |
|
|
|
> |
|
|
|
<ul |
|
|
|
aria-label="expanded dropdown" |
|
|
|
class="ant-tabs-dropdown-menu ant-tabs-dropdown-menu-root ant-tabs-dropdown-menu-vertical" |
|
|
|
data-menu-list="true" |
|
|
|
id="null-more-popup" |
|
|
|
role="listbox" |
|
|
|
tabindex="-1" |
|
|
|
/> |
|
|
|
<div |
|
|
|
aria-hidden="true" |
|
|
|
style="display:none" |
|
|
|
<path |
|
|
|
d="M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</svg> |
|
|
|
</span> |
|
|
|
</button> |
|
|
|
<div> |
|
|
|
<div |
|
|
|
class="ant-tabs-dropdown" |
|
|
|
style="opacity:0" |
|
|
|
> |
|
|
|
<ul |
|
|
|
aria-label="expanded dropdown" |
|
|
|
class="ant-tabs-dropdown-menu ant-tabs-dropdown-menu-root ant-tabs-dropdown-menu-vertical" |
|
|
|
data-menu-list="true" |
|
|
|
id="null-more-popup" |
|
|
|
role="listbox" |
|
|
|
tabindex="-1" |
|
|
|
/> |
|
|
|
<div |
|
|
|
aria-hidden="true" |
|
|
|
style="display:none" |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div |
|
|
|
class="ant-tabs-content-holder" |
|
|
|
> |
|
|
|
<div |
|
|
|
class="ant-tabs-content-holder" |
|
|
|
class="ant-tabs-content ant-tabs-content-top" |
|
|
|
> |
|
|
|
<div |
|
|
|
class="ant-tabs-content ant-tabs-content-top" |
|
|
|
aria-hidden="false" |
|
|
|
class="ant-tabs-tabpane ant-tabs-tabpane-active" |
|
|
|
role="tabpanel" |
|
|
|
style="height:200px" |
|
|
|
tabindex="0" |
|
|
|
> |
|
|
|
<div |
|
|
|
aria-hidden="false" |
|
|
|
class="ant-tabs-tabpane ant-tabs-tabpane-active" |
|
|
|
role="tabpanel" |
|
|
|
style="height:200px" |
|
|
|
tabindex="0" |
|
|
|
> |
|
|
|
Content of Tab Pane 1 |
|
|
|
</div> |
|
|
|
Content of Tab Pane 1 |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|