You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
518 lines
12 KiB
518 lines
12 KiB
8 years ago
|
exports[`test renders ./components/menu/demo/horizontal.md correctly 1`] = `
|
||
|
<ul
|
||
|
aria-activedescendant=""
|
||
|
class="ant-menu ant-menu-horizontal ant-menu-light ant-menu-root"
|
||
|
role="menu"
|
||
|
tabindex="0">
|
||
|
<li
|
||
|
aria-selected="true"
|
||
|
class="ant-menu-item-selected ant-menu-item"
|
||
|
role="menuitem">
|
||
|
<i
|
||
8 years ago
|
class="anticon anticon-mail" />
|
||
8 years ago
|
Navigation One
|
||
|
</li>
|
||
|
<li
|
||
|
aria-disabled="true"
|
||
|
aria-selected="false"
|
||
|
class="ant-menu-item-disabled ant-menu-item"
|
||
|
role="menuitem">
|
||
|
<i
|
||
8 years ago
|
class="anticon anticon-appstore" />
|
||
8 years ago
|
Navigation Two
|
||
|
</li>
|
||
|
<li
|
||
|
class="ant-menu-submenu-horizontal ant-menu-submenu">
|
||
|
<div
|
||
|
aria-expanded="false"
|
||
|
aria-haspopup="true"
|
||
8 years ago
|
aria-owns="item_2$Menu"
|
||
8 years ago
|
class="ant-menu-submenu-title">
|
||
|
<span>
|
||
|
<i
|
||
8 years ago
|
class="anticon anticon-setting" />
|
||
8 years ago
|
Navigation Three - Submenu
|
||
|
</span>
|
||
|
</div>
|
||
|
</li>
|
||
|
<li
|
||
|
aria-selected="false"
|
||
|
class="ant-menu-item"
|
||
|
role="menuitem">
|
||
|
<a
|
||
|
href="https://ant.design"
|
||
|
rel="noopener noreferrer"
|
||
|
target="_blank">
|
||
|
Navigation Four - Link
|
||
|
</a>
|
||
|
</li>
|
||
|
</ul>
|
||
|
`;
|
||
|
|
||
|
exports[`test renders ./components/menu/demo/sider.md correctly 1`] = `
|
||
|
<ul
|
||
|
aria-activedescendant=""
|
||
|
class="ant-menu ant-menu-inline ant-menu-light ant-menu-root"
|
||
|
role="menu"
|
||
|
style="width:240px;"
|
||
|
tabindex="0">
|
||
|
<li
|
||
|
class="ant-menu-submenu-inline ant-menu-submenu-open ant-menu-submenu-selected ant-menu-submenu">
|
||
|
<div
|
||
|
aria-expanded="true"
|
||
|
aria-haspopup="true"
|
||
|
aria-owns="sub1$Menu"
|
||
|
class="ant-menu-submenu-title"
|
||
|
style="padding-left:24px;">
|
||
|
<span>
|
||
|
<i
|
||
8 years ago
|
class="anticon anticon-mail" />
|
||
8 years ago
|
<span>
|
||
|
Navigation One
|
||
|
</span>
|
||
|
</span>
|
||
|
</div>
|
||
|
<ul
|
||
|
aria-activedescendant=""
|
||
|
class="ant-menu ant-menu-inline ant-menu-sub"
|
||
|
id="sub1$Menu"
|
||
|
role="menu">
|
||
|
<li
|
||
|
class=" ant-menu-item-group">
|
||
|
<div
|
||
|
class="ant-menu-item-group-title">
|
||
|
Item 1
|
||
|
</div>
|
||
|
<ul
|
||
|
class="ant-menu-item-group-list">
|
||
|
<li
|
||
|
aria-selected="true"
|
||
|
class="ant-menu-item-selected ant-menu-item"
|
||
|
role="menuitem"
|
||
|
style="padding-left:48px;">
|
||
|
Option 1
|
||
|
</li>
|
||
|
<li
|
||
|
aria-selected="false"
|
||
|
class="ant-menu-item"
|
||
|
role="menuitem"
|
||
|
style="padding-left:48px;">
|
||
|
Option 2
|
||
|
</li>
|
||
|
</ul>
|
||
|
</li>
|
||
|
<li
|
||
|
class=" ant-menu-item-group">
|
||
|
<div
|
||
|
class="ant-menu-item-group-title">
|
||
|
Item 2
|
||
|
</div>
|
||
|
<ul
|
||
|
class="ant-menu-item-group-list">
|
||
|
<li
|
||
|
aria-selected="false"
|
||
|
class="ant-menu-item"
|
||
|
role="menuitem"
|
||
|
style="padding-left:48px;">
|
||
|
Option 3
|
||
|
</li>
|
||
|
<li
|
||
|
aria-selected="false"
|
||
|
class="ant-menu-item"
|
||
|
role="menuitem"
|
||
|
style="padding-left:48px;">
|
||
|
Option 4
|
||
|
</li>
|
||
|
</ul>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</li>
|
||
|
<li
|
||
|
class="ant-menu-submenu-inline ant-menu-submenu">
|
||
|
<div
|
||
|
aria-expanded="false"
|
||
|
aria-haspopup="true"
|
||
|
aria-owns="sub2$Menu"
|
||
|
class="ant-menu-submenu-title"
|
||
|
style="padding-left:24px;">
|
||
|
<span>
|
||
|
<i
|
||
8 years ago
|
class="anticon anticon-appstore" />
|
||
8 years ago
|
<span>
|
||
|
Navigation Two
|
||
|
</span>
|
||
|
</span>
|
||
|
</div>
|
||
|
</li>
|
||
|
<li
|
||
|
class="ant-menu-submenu-inline ant-menu-submenu">
|
||
|
<div
|
||
|
aria-expanded="false"
|
||
|
aria-haspopup="true"
|
||
|
aria-owns="sub4$Menu"
|
||
|
class="ant-menu-submenu-title"
|
||
|
style="padding-left:24px;">
|
||
|
<span>
|
||
|
<i
|
||
8 years ago
|
class="anticon anticon-setting" />
|
||
8 years ago
|
<span>
|
||
|
Navigation Three
|
||
|
</span>
|
||
|
</span>
|
||
|
</div>
|
||
|
</li>
|
||
|
</ul>
|
||
|
`;
|
||
|
|
||
|
exports[`test renders ./components/menu/demo/sider-current.md correctly 1`] = `
|
||
|
<ul
|
||
|
aria-activedescendant=""
|
||
|
class="ant-menu ant-menu-inline ant-menu-light ant-menu-root"
|
||
|
role="menu"
|
||
|
style="width:240px;"
|
||
|
tabindex="0">
|
||
|
<li
|
||
|
class="ant-menu-submenu-inline ant-menu-submenu-selected ant-menu-submenu">
|
||
|
<div
|
||
|
aria-expanded="false"
|
||
|
aria-haspopup="true"
|
||
|
aria-owns="sub1$Menu"
|
||
|
class="ant-menu-submenu-title"
|
||
|
style="padding-left:24px;">
|
||
|
<span>
|
||
|
<i
|
||
8 years ago
|
class="anticon anticon-mail" />
|
||
8 years ago
|
<span>
|
||
|
Navigation One
|
||
|
</span>
|
||
|
</span>
|
||
|
</div>
|
||
|
</li>
|
||
|
<li
|
||
|
class="ant-menu-submenu-inline ant-menu-submenu">
|
||
|
<div
|
||
|
aria-expanded="false"
|
||
|
aria-haspopup="true"
|
||
|
aria-owns="sub2$Menu"
|
||
|
class="ant-menu-submenu-title"
|
||
|
style="padding-left:24px;">
|
||
|
<span>
|
||
|
<i
|
||
8 years ago
|
class="anticon anticon-appstore" />
|
||
8 years ago
|
<span>
|
||
|
Navigation Two
|
||
|
</span>
|
||
|
</span>
|
||
|
</div>
|
||
|
</li>
|
||
|
<li
|
||
|
class="ant-menu-submenu-inline ant-menu-submenu">
|
||
|
<div
|
||
|
aria-expanded="false"
|
||
|
aria-haspopup="true"
|
||
|
aria-owns="sub4$Menu"
|
||
|
class="ant-menu-submenu-title"
|
||
|
style="padding-left:24px;">
|
||
|
<span>
|
||
|
<i
|
||
8 years ago
|
class="anticon anticon-setting" />
|
||
8 years ago
|
<span>
|
||
|
Navigation Three
|
||
|
</span>
|
||
|
</span>
|
||
|
</div>
|
||
|
</li>
|
||
|
</ul>
|
||
|
`;
|
||
|
|
||
|
exports[`test renders ./components/menu/demo/switch-mode.md correctly 1`] = `
|
||
|
<div>
|
||
|
<span
|
||
|
class="ant-switch"
|
||
|
tabindex="0">
|
||
|
<span
|
||
|
class="ant-switch-inner" />
|
||
|
</span>
|
||
|
<br />
|
||
|
<br />
|
||
|
<ul
|
||
|
aria-activedescendant=""
|
||
|
class="ant-menu ant-menu-inline ant-menu-light ant-menu-root"
|
||
|
role="menu"
|
||
|
style="width:240px;"
|
||
|
tabindex="0">
|
||
|
<li
|
||
|
class="ant-menu-submenu-inline ant-menu-submenu-open ant-menu-submenu">
|
||
|
<div
|
||
|
aria-expanded="true"
|
||
|
aria-haspopup="true"
|
||
|
aria-owns="sub1$Menu"
|
||
|
class="ant-menu-submenu-title"
|
||
|
style="padding-left:24px;">
|
||
|
<span>
|
||
|
<i
|
||
8 years ago
|
class="anticon anticon-mail" />
|
||
8 years ago
|
<span>
|
||
|
Navigation One
|
||
|
</span>
|
||
|
</span>
|
||
|
</div>
|
||
|
<ul
|
||
|
aria-activedescendant=""
|
||
|
class="ant-menu ant-menu-inline ant-menu-sub"
|
||
|
id="sub1$Menu"
|
||
|
role="menu">
|
||
|
<li
|
||
|
class=" ant-menu-item-group">
|
||
|
<div
|
||
|
class="ant-menu-item-group-title">
|
||
|
Item 1
|
||
|
</div>
|
||
|
<ul
|
||
|
class="ant-menu-item-group-list">
|
||
|
<li
|
||
|
aria-selected="false"
|
||
|
class="ant-menu-item"
|
||
|
role="menuitem"
|
||
|
style="padding-left:48px;">
|
||
|
Option 1
|
||
|
</li>
|
||
|
<li
|
||
|
aria-selected="false"
|
||
|
class="ant-menu-item"
|
||
|
role="menuitem"
|
||
|
style="padding-left:48px;">
|
||
|
Option 2
|
||
|
</li>
|
||
|
</ul>
|
||
|
</li>
|
||
|
<li
|
||
|
class=" ant-menu-item-group">
|
||
|
<div
|
||
|
class="ant-menu-item-group-title">
|
||
|
Item 2
|
||
|
</div>
|
||
|
<ul
|
||
|
class="ant-menu-item-group-list">
|
||
|
<li
|
||
|
aria-selected="false"
|
||
|
class="ant-menu-item"
|
||
|
role="menuitem"
|
||
|
style="padding-left:48px;">
|
||
|
Option 3
|
||
|
</li>
|
||
|
<li
|
||
|
aria-selected="false"
|
||
|
class="ant-menu-item"
|
||
|
role="menuitem"
|
||
|
style="padding-left:48px;">
|
||
|
Option 4
|
||
|
</li>
|
||
|
</ul>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</li>
|
||
|
<li
|
||
|
class="ant-menu-submenu-inline ant-menu-submenu">
|
||
|
<div
|
||
|
aria-expanded="false"
|
||
|
aria-haspopup="true"
|
||
|
aria-owns="sub2$Menu"
|
||
|
class="ant-menu-submenu-title"
|
||
|
style="padding-left:24px;">
|
||
|
<span>
|
||
|
<i
|
||
8 years ago
|
class="anticon anticon-appstore" />
|
||
8 years ago
|
<span>
|
||
|
Navigation Two
|
||
|
</span>
|
||
|
</span>
|
||
|
</div>
|
||
|
</li>
|
||
|
<li
|
||
|
class="ant-menu-submenu-inline ant-menu-submenu">
|
||
|
<div
|
||
|
aria-expanded="false"
|
||
|
aria-haspopup="true"
|
||
|
aria-owns="sub4$Menu"
|
||
|
class="ant-menu-submenu-title"
|
||
|
style="padding-left:24px;">
|
||
|
<span>
|
||
|
<i
|
||
8 years ago
|
class="anticon anticon-setting" />
|
||
8 years ago
|
<span>
|
||
|
Navigation Three
|
||
|
</span>
|
||
|
</span>
|
||
|
</div>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
`;
|
||
|
|
||
|
exports[`test renders ./components/menu/demo/theme.md correctly 1`] = `
|
||
|
<div>
|
||
|
<span
|
||
8 years ago
|
checked=""
|
||
|
class="ant-switch ant-switch-checked"
|
||
8 years ago
|
tabindex="0">
|
||
|
<span
|
||
|
class="ant-switch-inner">
|
||
8 years ago
|
Dark
|
||
8 years ago
|
</span>
|
||
|
</span>
|
||
|
<br />
|
||
|
<br />
|
||
|
<ul
|
||
|
aria-activedescendant=""
|
||
8 years ago
|
class="ant-menu ant-menu-inline ant-menu-dark ant-menu-root"
|
||
8 years ago
|
role="menu"
|
||
|
style="width:240px;"
|
||
|
tabindex="0">
|
||
|
<li
|
||
8 years ago
|
class="ant-menu-submenu-inline ant-menu-submenu-open ant-menu-submenu-selected ant-menu-submenu">
|
||
8 years ago
|
<div
|
||
|
aria-expanded="true"
|
||
|
aria-haspopup="true"
|
||
|
aria-owns="sub1$Menu"
|
||
|
class="ant-menu-submenu-title"
|
||
|
style="padding-left:24px;">
|
||
|
<span>
|
||
|
<i
|
||
8 years ago
|
class="anticon anticon-mail" />
|
||
8 years ago
|
<span>
|
||
|
Navigation One
|
||
|
</span>
|
||
|
</span>
|
||
|
</div>
|
||
|
<ul
|
||
|
aria-activedescendant=""
|
||
|
class="ant-menu ant-menu-inline ant-menu-sub"
|
||
|
id="sub1$Menu"
|
||
|
role="menu">
|
||
|
<li
|
||
8 years ago
|
aria-selected="true"
|
||
|
class="ant-menu-item-selected ant-menu-item"
|
||
8 years ago
|
role="menuitem"
|
||
|
style="padding-left:48px;">
|
||
|
Option 1
|
||
|
</li>
|
||
|
<li
|
||
|
aria-selected="false"
|
||
|
class="ant-menu-item"
|
||
|
role="menuitem"
|
||
|
style="padding-left:48px;">
|
||
|
Option 2
|
||
|
</li>
|
||
|
<li
|
||
|
aria-selected="false"
|
||
|
class="ant-menu-item"
|
||
|
role="menuitem"
|
||
|
style="padding-left:48px;">
|
||
|
Option 3
|
||
|
</li>
|
||
|
<li
|
||
|
aria-selected="false"
|
||
|
class="ant-menu-item"
|
||
|
role="menuitem"
|
||
|
style="padding-left:48px;">
|
||
|
Option 4
|
||
|
</li>
|
||
|
</ul>
|
||
|
</li>
|
||
|
<li
|
||
|
class="ant-menu-submenu-inline ant-menu-submenu">
|
||
|
<div
|
||
|
aria-expanded="false"
|
||
|
aria-haspopup="true"
|
||
|
aria-owns="sub2$Menu"
|
||
|
class="ant-menu-submenu-title"
|
||
|
style="padding-left:24px;">
|
||
|
<span>
|
||
|
<i
|
||
8 years ago
|
class="anticon anticon-appstore" />
|
||
8 years ago
|
<span>
|
||
|
Navigtion Two
|
||
|
</span>
|
||
|
</span>
|
||
|
</div>
|
||
|
</li>
|
||
|
<li
|
||
|
class="ant-menu-submenu-inline ant-menu-submenu">
|
||
|
<div
|
||
|
aria-expanded="false"
|
||
|
aria-haspopup="true"
|
||
|
aria-owns="sub4$Menu"
|
||
|
class="ant-menu-submenu-title"
|
||
|
style="padding-left:24px;">
|
||
|
<span>
|
||
|
<i
|
||
8 years ago
|
class="anticon anticon-setting" />
|
||
8 years ago
|
<span>
|
||
|
Navigation Three
|
||
|
</span>
|
||
|
</span>
|
||
|
</div>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
`;
|
||
|
|
||
|
exports[`test renders ./components/menu/demo/vertical.md correctly 1`] = `
|
||
|
<ul
|
||
|
aria-activedescendant=""
|
||
|
class="ant-menu ant-menu-vertical ant-menu-light ant-menu-root"
|
||
|
role="menu"
|
||
|
style="width:240px;"
|
||
|
tabindex="0">
|
||
|
<li
|
||
|
class="ant-menu-submenu-vertical ant-menu-submenu">
|
||
|
<div
|
||
|
aria-expanded="false"
|
||
|
aria-haspopup="true"
|
||
|
aria-owns="sub1$Menu"
|
||
|
class="ant-menu-submenu-title">
|
||
|
<span>
|
||
|
<i
|
||
8 years ago
|
class="anticon anticon-mail" />
|
||
8 years ago
|
<span>
|
||
|
Navigation One
|
||
|
</span>
|
||
|
</span>
|
||
|
</div>
|
||
|
</li>
|
||
|
<li
|
||
|
class="ant-menu-submenu-vertical ant-menu-submenu">
|
||
|
<div
|
||
|
aria-expanded="false"
|
||
|
aria-haspopup="true"
|
||
|
aria-owns="sub2$Menu"
|
||
|
class="ant-menu-submenu-title">
|
||
|
<span>
|
||
|
<i
|
||
8 years ago
|
class="anticon anticon-appstore" />
|
||
8 years ago
|
<span>
|
||
|
Navigation Two
|
||
|
</span>
|
||
|
</span>
|
||
|
</div>
|
||
|
</li>
|
||
|
<li
|
||
|
class="ant-menu-submenu-vertical ant-menu-submenu">
|
||
|
<div
|
||
|
aria-expanded="false"
|
||
|
aria-haspopup="true"
|
||
|
aria-owns="sub4$Menu"
|
||
|
class="ant-menu-submenu-title">
|
||
|
<span>
|
||
|
<icon
|
||
|
type="setting" />
|
||
|
<span>
|
||
|
Navigation Three
|
||
|
</span>
|
||
|
</span>
|
||
|
</div>
|
||
|
</li>
|
||
|
</ul>
|
||
|
`;
|