2018-05-15 01:52:44 +00:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
|
|
|
exports[`renders ./components/menu/demo/horizontal.md correctly 1`] = `
|
|
|
|
<div>
|
2018-11-06 03:59:20 +00:00
|
|
|
<ul role="menu" class="ant-menu ant-menu-horizontal ant-menu-root ant-menu-light">
|
|
|
|
<li role="menuitem" class="ant-menu-submenu ant-menu-submenu-horizontal ant-menu-overflowed-submenu" style="display: none;">
|
|
|
|
<div aria-haspopup="true" class="ant-menu-submenu-title"><i class="ant-menu-submenu-arrow"></i></div>
|
|
|
|
</li>
|
2018-09-05 13:58:32 +00:00
|
|
|
<li role="menuitem" class="ant-menu-item ant-menu-item-selected"><i class="anticon anticon-mail"></i>Navigation One
|
2018-05-15 01:52:44 +00:00
|
|
|
</li>
|
2018-11-06 03:59:20 +00:00
|
|
|
<li role="menuitem" class="ant-menu-submenu ant-menu-submenu-horizontal ant-menu-overflowed-submenu" style="display: none;">
|
|
|
|
<div aria-haspopup="true" class="ant-menu-submenu-title"><i class="ant-menu-submenu-arrow"></i></div>
|
|
|
|
</li>
|
2018-09-05 13:58:32 +00:00
|
|
|
<li role="menuitem" aria-disabled="true" class="ant-menu-item ant-menu-item-disabled"><i class="anticon anticon-appstore"></i>Navigation Two
|
2018-05-15 01:52:44 +00:00
|
|
|
</li>
|
2018-11-06 03:59:20 +00:00
|
|
|
<li role="menuitem" class="ant-menu-submenu ant-menu-submenu-horizontal ant-menu-overflowed-submenu" style="display: none;">
|
|
|
|
<div aria-haspopup="true" class="ant-menu-submenu-title"><i class="ant-menu-submenu-arrow"></i></div>
|
|
|
|
</li>
|
2018-09-05 13:28:54 +00:00
|
|
|
<li role="menuitem" class="ant-menu-submenu ant-menu-submenu-horizontal">
|
2018-09-05 13:58:32 +00:00
|
|
|
<div aria-haspopup="true" class="ant-menu-submenu-title"><span><i class="anticon anticon-setting"></i>Navigation Three - Submenu</span><i class="ant-menu-submenu-arrow"></i></div>
|
2018-05-15 01:52:44 +00:00
|
|
|
</li>
|
2018-11-06 03:59:20 +00:00
|
|
|
<li role="menuitem" class="ant-menu-submenu ant-menu-submenu-horizontal ant-menu-overflowed-submenu" style="display: none;">
|
|
|
|
<div aria-haspopup="true" class="ant-menu-submenu-title"><i class="ant-menu-submenu-arrow"></i></div>
|
|
|
|
</li>
|
2018-09-05 13:58:32 +00:00
|
|
|
<li role="menuitem" class="ant-menu-item"><a href="https://ant.design" target="_blank" rel="noopener noreferrer">Navigation Four - Link</a></li>
|
2018-11-06 03:59:20 +00:00
|
|
|
<li role="menuitem" class="ant-menu-submenu ant-menu-submenu-horizontal ant-menu-overflowed-submenu" style="visibility: hidden; position: absolute; display: none;">
|
|
|
|
<div aria-haspopup="true" class="ant-menu-submenu-title"><i class="ant-menu-submenu-arrow"></i></div>
|
|
|
|
</li>
|
2018-05-15 01:52:44 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`renders ./components/menu/demo/inline.md correctly 1`] = `
|
|
|
|
<div>
|
2018-11-06 03:59:20 +00:00
|
|
|
<ul role="menu" class="ant-menu ant-menu-inline ant-menu-root ant-menu-light" style="width: 256px;">
|
2018-09-05 13:28:54 +00:00
|
|
|
<li role="menuitem" class="ant-menu-submenu ant-menu-submenu-inline ant-menu-submenu-open ant-menu-submenu-selected">
|
2018-09-05 13:58:32 +00:00
|
|
|
<div aria-expanded="true" aria-owns="sub1$Menu" aria-haspopup="true" class="ant-menu-submenu-title" style="padding-left: 24px;"><span><i class="anticon anticon-mail"></i><span>Navigation One</span></span><i class="ant-menu-submenu-arrow"></i></div>
|
2018-11-06 03:59:20 +00:00
|
|
|
<ul role="menu" class="ant-menu ant-menu-inline ant-menu-sub">
|
2018-05-15 01:52:44 +00:00
|
|
|
<li class="ant-menu-item-group">
|
2018-09-05 13:58:32 +00:00
|
|
|
<div class="ant-menu-item-group-title"><i class="anticon anticon-qq"></i><span>Item 1</span></div>
|
2018-05-15 01:52:44 +00:00
|
|
|
<ul class="ant-menu-item-group-list">
|
2018-09-05 13:28:54 +00:00
|
|
|
<li role="menuitem" class="ant-menu-item ant-menu-item-selected" style="padding-left: 48px;">Option 1</li>
|
2018-05-18 14:04:10 +00:00
|
|
|
<li role="menuitem" class="ant-menu-item" style="padding-left: 48px;">Option 2</li>
|
2018-05-15 01:52:44 +00:00
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
<li class="ant-menu-item-group">
|
|
|
|
<div title="Item 2" class="ant-menu-item-group-title">Item 2</div>
|
|
|
|
<ul class="ant-menu-item-group-list">
|
2018-05-18 14:04:10 +00:00
|
|
|
<li role="menuitem" class="ant-menu-item" style="padding-left: 48px;">Option 3</li>
|
|
|
|
<li role="menuitem" class="ant-menu-item" style="padding-left: 48px;">Option 4</li>
|
2018-05-15 01:52:44 +00:00
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
2018-09-05 13:28:54 +00:00
|
|
|
<li role="menuitem" class="ant-menu-submenu ant-menu-submenu-inline">
|
2018-09-05 13:58:32 +00:00
|
|
|
<div aria-haspopup="true" class="ant-menu-submenu-title" style="padding-left: 24px;"><span><i class="anticon anticon-appstore"></i><span>Navigation Two</span></span><i class="ant-menu-submenu-arrow"></i></div>
|
2018-09-05 13:28:54 +00:00
|
|
|
<div></div>
|
2018-05-15 01:52:44 +00:00
|
|
|
</li>
|
2018-09-05 13:28:54 +00:00
|
|
|
<li role="menuitem" class="ant-menu-submenu ant-menu-submenu-inline">
|
2018-09-05 13:58:32 +00:00
|
|
|
<div aria-haspopup="true" class="ant-menu-submenu-title" style="padding-left: 24px;"><span><i class="anticon anticon-setting"></i><span>Navigation Three</span></span><i class="ant-menu-submenu-arrow"></i></div>
|
2018-09-05 13:28:54 +00:00
|
|
|
<div></div>
|
2018-05-15 01:52:44 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`renders ./components/menu/demo/inline-collapsed.md correctly 1`] = `
|
2018-09-05 13:58:32 +00:00
|
|
|
<div style="width: 256px;"><button type="button" class="ant-btn ant-btn-primary" style="margin-bottom: 16px;"><i class="anticon anticon-menu-fold"></i></button>
|
2018-11-06 03:59:20 +00:00
|
|
|
<ul role="menu" class="ant-menu ant-menu-inline ant-menu-root ant-menu-dark">
|
2018-09-05 13:58:32 +00:00
|
|
|
<li role="menuitem" class="ant-menu-item ant-menu-item-selected" style="padding-left: 24px;"><i class="anticon anticon-pie-chart"></i> <span>Option 1</span></li>
|
|
|
|
<li role="menuitem" class="ant-menu-item" style="padding-left: 24px;"><i class="anticon anticon-desktop"></i> <span>Option 2</span></li>
|
|
|
|
<li role="menuitem" class="ant-menu-item" style="padding-left: 24px;"><i class="anticon anticon-inbox"></i> <span>Option 3</span></li>
|
2018-09-05 13:28:54 +00:00
|
|
|
<li role="menuitem" class="ant-menu-submenu ant-menu-submenu-inline ant-menu-submenu-open">
|
2018-09-05 13:58:32 +00:00
|
|
|
<div aria-expanded="true" aria-owns="sub1$Menu" aria-haspopup="true" class="ant-menu-submenu-title" style="padding-left: 24px;"><span><i class="anticon anticon-mail"></i><span>Navigation One</span></span><i class="ant-menu-submenu-arrow"></i></div>
|
2018-11-06 03:59:20 +00:00
|
|
|
<ul role="menu" class="ant-menu ant-menu-inline ant-menu-sub">
|
2018-05-18 14:04:10 +00:00
|
|
|
<li role="menuitem" class="ant-menu-item" style="padding-left: 48px;">Option 5</li>
|
|
|
|
<li role="menuitem" class="ant-menu-item" style="padding-left: 48px;">Option 6</li>
|
|
|
|
<li role="menuitem" class="ant-menu-item" style="padding-left: 48px;">Option 7</li>
|
|
|
|
<li role="menuitem" class="ant-menu-item" style="padding-left: 48px;">Option 8</li>
|
2018-05-15 01:52:44 +00:00
|
|
|
</ul>
|
|
|
|
</li>
|
2018-09-05 13:28:54 +00:00
|
|
|
<li role="menuitem" class="ant-menu-submenu ant-menu-submenu-inline">
|
2018-09-05 13:58:32 +00:00
|
|
|
<div aria-haspopup="true" class="ant-menu-submenu-title" style="padding-left: 24px;"><span><i class="anticon anticon-appstore"></i><span>Navigation Two</span></span><i class="ant-menu-submenu-arrow"></i></div>
|
2018-09-05 13:28:54 +00:00
|
|
|
<div></div>
|
2018-05-15 01:52:44 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`renders ./components/menu/demo/sider-current.md correctly 1`] = `
|
|
|
|
<div>
|
2018-11-06 03:59:20 +00:00
|
|
|
<ul role="menu" class="ant-menu ant-menu-inline ant-menu-root ant-menu-light" style="width: 256px;">
|
2018-09-05 13:28:54 +00:00
|
|
|
<li role="menuitem" class="ant-menu-submenu ant-menu-submenu-inline ant-menu-submenu-open">
|
2018-09-05 13:58:32 +00:00
|
|
|
<div aria-expanded="true" aria-owns="sub1$Menu" aria-haspopup="true" class="ant-menu-submenu-title" style="padding-left: 24px;"><span><i class="anticon anticon-mail"></i><span>Navigation One</span></span><i class="ant-menu-submenu-arrow"></i></div>
|
2018-11-06 03:59:20 +00:00
|
|
|
<ul role="menu" class="ant-menu ant-menu-inline ant-menu-sub">
|
2018-05-18 14:04:10 +00:00
|
|
|
<li role="menuitem" class="ant-menu-item" style="padding-left: 48px;">Option 1</li>
|
|
|
|
<li role="menuitem" class="ant-menu-item" style="padding-left: 48px;">Option 2</li>
|
|
|
|
<li role="menuitem" class="ant-menu-item" style="padding-left: 48px;">Option 3</li>
|
|
|
|
<li role="menuitem" class="ant-menu-item" style="padding-left: 48px;">Option 4</li>
|
2018-05-15 01:52:44 +00:00
|
|
|
</ul>
|
|
|
|
</li>
|
2018-09-05 13:28:54 +00:00
|
|
|
<li role="menuitem" class="ant-menu-submenu ant-menu-submenu-inline">
|
2018-09-05 13:58:32 +00:00
|
|
|
<div aria-haspopup="true" class="ant-menu-submenu-title" style="padding-left: 24px;"><span><i class="anticon anticon-appstore"></i><span>Navigation Two</span></span><i class="ant-menu-submenu-arrow"></i></div>
|
2018-09-05 13:28:54 +00:00
|
|
|
<div></div>
|
2018-05-15 01:52:44 +00:00
|
|
|
</li>
|
2018-09-05 13:28:54 +00:00
|
|
|
<li role="menuitem" class="ant-menu-submenu ant-menu-submenu-inline">
|
2018-09-05 13:58:32 +00:00
|
|
|
<div aria-haspopup="true" class="ant-menu-submenu-title" style="padding-left: 24px;"><span><i class="anticon anticon-setting"></i><span>Navigation Three</span></span><i class="ant-menu-submenu-arrow"></i></div>
|
2018-09-05 13:28:54 +00:00
|
|
|
<div></div>
|
2018-05-15 01:52:44 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`renders ./components/menu/demo/switch-mode.md correctly 1`] = `
|
2018-09-05 13:58:32 +00:00
|
|
|
<div><label class="ant-checkbox-wrapper"><span class="ant-checkbox"><input type="checkbox" class="ant-checkbox-input" value=""><span class="ant-checkbox-inner"></span></span></label> Change Mode
|
|
|
|
<span classname="ant-divider" style="margin: 0px 1em;"></span> <label class="ant-checkbox-wrapper"><span class="ant-checkbox"><input type="checkbox" class="ant-checkbox-input" value=""><span class="ant-checkbox-inner"></span></span></label> Change Theme
|
|
|
|
<br> <br>
|
2018-11-06 03:59:20 +00:00
|
|
|
<ul role="menu" class="ant-menu ant-menu-inline ant-menu-root ant-menu-light" style="width: 256px;">
|
2018-09-05 13:58:32 +00:00
|
|
|
<li role="menuitem" class="ant-menu-item ant-menu-item-selected" style="padding-left: 24px;"><i class="anticon anticon-mail"></i>
|
2018-05-15 01:52:44 +00:00
|
|
|
Navigation One
|
|
|
|
</li>
|
2018-09-05 13:58:32 +00:00
|
|
|
<li role="menuitem" class="ant-menu-item" style="padding-left: 24px;"><i class="anticon anticon-calendar"></i>
|
2018-05-15 01:52:44 +00:00
|
|
|
Navigation Two
|
|
|
|
</li>
|
2018-09-05 13:28:54 +00:00
|
|
|
<li role="menuitem" class="ant-menu-submenu ant-menu-submenu-inline ant-menu-submenu-open">
|
2018-09-05 13:58:32 +00:00
|
|
|
<div aria-expanded="true" aria-owns="sub1$Menu" aria-haspopup="true" class="ant-menu-submenu-title" style="padding-left: 24px;"><span><i class="anticon anticon-appstore"></i><span>Navigation Three</span></span><i class="ant-menu-submenu-arrow"></i></div>
|
2018-11-06 03:59:20 +00:00
|
|
|
<ul role="menu" class="ant-menu ant-menu-inline ant-menu-sub">
|
2018-05-18 14:04:10 +00:00
|
|
|
<li role="menuitem" class="ant-menu-item" style="padding-left: 48px;">Option 3</li>
|
|
|
|
<li role="menuitem" class="ant-menu-item" style="padding-left: 48px;">Option 4</li>
|
2018-09-05 13:28:54 +00:00
|
|
|
<li role="menuitem" class="ant-menu-submenu ant-menu-submenu-inline">
|
2018-09-05 13:58:32 +00:00
|
|
|
<div aria-haspopup="true" title="Submenu" class="ant-menu-submenu-title" style="padding-left: 48px;">Submenu<i class="ant-menu-submenu-arrow"></i></div>
|
2018-09-05 13:28:54 +00:00
|
|
|
<div></div>
|
2018-05-15 01:52:44 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
2018-09-05 13:28:54 +00:00
|
|
|
<li role="menuitem" class="ant-menu-submenu ant-menu-submenu-inline">
|
2018-09-05 13:58:32 +00:00
|
|
|
<div aria-haspopup="true" class="ant-menu-submenu-title" style="padding-left: 24px;"><span><i class="anticon anticon-setting"></i><span>Navigation Four</span></span><i class="ant-menu-submenu-arrow"></i></div>
|
2018-09-05 13:28:54 +00:00
|
|
|
<div></div>
|
2018-05-15 01:52:44 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
2018-10-24 11:20:14 +00:00
|
|
|
exports[`renders ./components/menu/demo/template.md correctly 1`] = `
|
|
|
|
<div style="width: 256px;"><button type="button" class="ant-btn ant-btn-primary" style="margin-bottom: 16px;"><i class="anticon anticon-menu-fold"></i></button>
|
2018-11-06 03:59:20 +00:00
|
|
|
<ul role="menu" class="ant-menu ant-menu-inline ant-menu-root ant-menu-dark">
|
2018-10-24 11:20:14 +00:00
|
|
|
<li role="menuitem" class="ant-menu-item ant-menu-item-selected" style="padding-left: 24px;"><i class="anticon anticon-pie-chart"></i> <span>Option 1</span></li>
|
|
|
|
<li role="menuitem" class="ant-menu-submenu ant-menu-submenu-inline" menuinfo="[object Object]">
|
|
|
|
<div aria-haspopup="true" class="ant-menu-submenu-title" style="padding-left: 24px;"><span><i class="anticon anticon-mail"></i><span>Navigation 2</span></span><i class="ant-menu-submenu-arrow"></i></div>
|
|
|
|
<div></div>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
2018-05-15 01:52:44 +00:00
|
|
|
exports[`renders ./components/menu/demo/theme.md correctly 1`] = `
|
2018-09-05 13:58:32 +00:00
|
|
|
<div><label class="ant-checkbox-wrapper"><span class="ant-checkbox"><input type="checkbox" class="ant-checkbox-input" value=""><span class="ant-checkbox-inner"></span></span></label> Change Theme
|
|
|
|
<br> <br>
|
2018-11-06 03:59:20 +00:00
|
|
|
<ul role="menu" class="ant-menu ant-menu-inline ant-menu-root ant-menu-dark" style="width: 256px;">
|
2018-09-05 13:58:32 +00:00
|
|
|
<li role="menuitem" class="ant-menu-item ant-menu-item-selected" style="padding-left: 24px;"><i class="anticon anticon-mail"></i>
|
2018-05-15 01:52:44 +00:00
|
|
|
Navigation One
|
|
|
|
</li>
|
2018-09-05 13:58:32 +00:00
|
|
|
<li role="menuitem" class="ant-menu-item" style="padding-left: 24px;"><i class="anticon anticon-calendar"></i>
|
2018-05-15 01:52:44 +00:00
|
|
|
Navigation Two
|
|
|
|
</li>
|
2018-09-05 13:28:54 +00:00
|
|
|
<li role="menuitem" class="ant-menu-submenu ant-menu-submenu-inline ant-menu-submenu-open">
|
2018-09-05 13:58:32 +00:00
|
|
|
<div aria-expanded="true" aria-owns="sub1$Menu" aria-haspopup="true" class="ant-menu-submenu-title" style="padding-left: 24px;"><span><i class="anticon anticon-appstore"></i><span>Navigation Three</span></span><i class="ant-menu-submenu-arrow"></i></div>
|
2018-11-06 03:59:20 +00:00
|
|
|
<ul role="menu" class="ant-menu ant-menu-inline ant-menu-sub">
|
2018-05-18 14:04:10 +00:00
|
|
|
<li role="menuitem" class="ant-menu-item" style="padding-left: 48px;">Option 3</li>
|
|
|
|
<li role="menuitem" class="ant-menu-item" style="padding-left: 48px;">Option 4</li>
|
2018-09-05 13:28:54 +00:00
|
|
|
<li role="menuitem" class="ant-menu-submenu ant-menu-submenu-inline">
|
2018-09-05 13:58:32 +00:00
|
|
|
<div aria-haspopup="true" title="Submenu" class="ant-menu-submenu-title" style="padding-left: 48px;">Submenu<i class="ant-menu-submenu-arrow"></i></div>
|
2018-09-05 13:28:54 +00:00
|
|
|
<div></div>
|
2018-05-15 01:52:44 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
2018-09-05 13:28:54 +00:00
|
|
|
<li role="menuitem" class="ant-menu-submenu ant-menu-submenu-inline">
|
2018-09-05 13:58:32 +00:00
|
|
|
<div aria-haspopup="true" class="ant-menu-submenu-title" style="padding-left: 24px;"><span><i class="anticon anticon-setting"></i><span>Navigation Four</span></span><i class="ant-menu-submenu-arrow"></i></div>
|
2018-09-05 13:28:54 +00:00
|
|
|
<div></div>
|
2018-05-15 01:52:44 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`renders ./components/menu/demo/vertical.md correctly 1`] = `
|
|
|
|
<div>
|
2018-11-06 03:59:20 +00:00
|
|
|
<ul role="menu" class="ant-menu ant-menu-vertical ant-menu-root ant-menu-light" style="width: 256px;">
|
2018-09-05 13:58:32 +00:00
|
|
|
<li role="menuitem" class="ant-menu-item"><i class="anticon anticon-mail"></i>
|
2018-05-15 01:52:44 +00:00
|
|
|
Navigation One
|
|
|
|
</li>
|
2018-09-05 13:58:32 +00:00
|
|
|
<li role="menuitem" class="ant-menu-item"><i class="anticon anticon-calendar"></i>
|
2018-05-15 01:52:44 +00:00
|
|
|
Navigation Two
|
|
|
|
</li>
|
2018-09-05 13:28:54 +00:00
|
|
|
<li role="menuitem" class="ant-menu-submenu ant-menu-submenu-vertical">
|
2018-09-05 13:58:32 +00:00
|
|
|
<div aria-haspopup="true" class="ant-menu-submenu-title"><span><i class="anticon anticon-appstore"></i><span>Navigation Three</span></span><i class="ant-menu-submenu-arrow"></i></div>
|
2018-05-15 01:52:44 +00:00
|
|
|
</li>
|
2018-09-05 13:28:54 +00:00
|
|
|
<li role="menuitem" class="ant-menu-submenu ant-menu-submenu-vertical">
|
2018-09-05 13:58:32 +00:00
|
|
|
<div aria-haspopup="true" class="ant-menu-submenu-title"><span><i class="anticon anticon-setting"></i><span>Navigation Four</span></span><i class="ant-menu-submenu-arrow"></i></div>
|
2018-05-15 01:52:44 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
`;
|