test: Update snapshot

This commit is contained in:
zombiej 2021-05-28 11:44:16 +08:00
parent acb869130a
commit 737c172c2b
8 changed files with 1315 additions and 1134 deletions

View File

@ -15037,383 +15037,419 @@ exports[`ConfigProvider components List prefixCls 1`] = `
`;
exports[`ConfigProvider components Menu configProvider 1`] = `
<ul
class="config-menu config-menu-root config-menu-inline config-menu-light"
data-menu-list="true"
role="menu"
tabindex="0"
>
<li
class="config-menu-submenu config-menu-submenu-inline config-menu-submenu-open"
role="none"
Array [
<ul
class="config-menu config-menu-root config-menu-inline config-menu-light"
data-menu-list="true"
role="menu"
tabindex="0"
>
<div
aria-expanded="true"
aria-haspopup="true"
class="config-menu-submenu-title"
role="menuitem"
style="padding-left:24px"
tabindex="-1"
<li
class="config-menu-submenu config-menu-submenu-inline config-menu-submenu-open"
role="none"
>
<span
class="config-menu-title-content"
<div
aria-expanded="true"
aria-haspopup="true"
class="config-menu-submenu-title"
role="menuitem"
style="padding-left:24px"
tabindex="-1"
>
bamboo
</span>
<i
class="config-menu-submenu-arrow"
/>
</div>
<ul
class="config-menu config-menu-sub config-menu-inline"
data-menu-list="true"
>
<li
class="config-menu-item-group"
<span
class="config-menu-title-content"
>
bamboo
</span>
<i
class="config-menu-submenu-arrow"
/>
</div>
<ul
class="config-menu config-menu-sub config-menu-inline"
data-menu-list="true"
>
<div
class="config-menu-item-group-title"
title="Item 1"
<li
class="config-menu-item-group"
>
Item 1
</div>
<ul
class="config-menu-item-group-list"
>
<li
class="config-menu-item config-menu-item-only-child"
role="menuitem"
style="padding-left:48px"
tabindex="-1"
<div
class="config-menu-item-group-title"
title="Item 1"
>
<span
class="config-menu-title-content"
Item 1
</div>
<ul
class="config-menu-item-group-list"
>
<li
class="config-menu-item config-menu-item-only-child"
role="menuitem"
style="padding-left:48px"
tabindex="-1"
>
Light
</span>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<span
class="config-menu-title-content"
>
Light
</span>
</li>
</ul>
</li>
</ul>
</li>
</ul>,
<div
aria-hidden="true"
style="display:none"
/>,
]
`;
exports[`ConfigProvider components Menu configProvider componentSize large 1`] = `
<ul
class="config-menu config-menu-root config-menu-inline config-menu-light"
data-menu-list="true"
role="menu"
tabindex="0"
>
<li
class="config-menu-submenu config-menu-submenu-inline config-menu-submenu-open"
role="none"
Array [
<ul
class="config-menu config-menu-root config-menu-inline config-menu-light"
data-menu-list="true"
role="menu"
tabindex="0"
>
<div
aria-expanded="true"
aria-haspopup="true"
class="config-menu-submenu-title"
role="menuitem"
style="padding-left:24px"
tabindex="-1"
<li
class="config-menu-submenu config-menu-submenu-inline config-menu-submenu-open"
role="none"
>
<span
class="config-menu-title-content"
<div
aria-expanded="true"
aria-haspopup="true"
class="config-menu-submenu-title"
role="menuitem"
style="padding-left:24px"
tabindex="-1"
>
bamboo
</span>
<i
class="config-menu-submenu-arrow"
/>
</div>
<ul
class="config-menu config-menu-sub config-menu-inline"
data-menu-list="true"
>
<li
class="config-menu-item-group"
<span
class="config-menu-title-content"
>
bamboo
</span>
<i
class="config-menu-submenu-arrow"
/>
</div>
<ul
class="config-menu config-menu-sub config-menu-inline"
data-menu-list="true"
>
<div
class="config-menu-item-group-title"
title="Item 1"
<li
class="config-menu-item-group"
>
Item 1
</div>
<ul
class="config-menu-item-group-list"
>
<li
class="config-menu-item config-menu-item-only-child"
role="menuitem"
style="padding-left:48px"
tabindex="-1"
<div
class="config-menu-item-group-title"
title="Item 1"
>
<span
class="config-menu-title-content"
Item 1
</div>
<ul
class="config-menu-item-group-list"
>
<li
class="config-menu-item config-menu-item-only-child"
role="menuitem"
style="padding-left:48px"
tabindex="-1"
>
Light
</span>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<span
class="config-menu-title-content"
>
Light
</span>
</li>
</ul>
</li>
</ul>
</li>
</ul>,
<div
aria-hidden="true"
style="display:none"
/>,
]
`;
exports[`ConfigProvider components Menu configProvider componentSize middle 1`] = `
<ul
class="config-menu config-menu-root config-menu-inline config-menu-light"
data-menu-list="true"
role="menu"
tabindex="0"
>
<li
class="config-menu-submenu config-menu-submenu-inline config-menu-submenu-open"
role="none"
Array [
<ul
class="config-menu config-menu-root config-menu-inline config-menu-light"
data-menu-list="true"
role="menu"
tabindex="0"
>
<div
aria-expanded="true"
aria-haspopup="true"
class="config-menu-submenu-title"
role="menuitem"
style="padding-left:24px"
tabindex="-1"
<li
class="config-menu-submenu config-menu-submenu-inline config-menu-submenu-open"
role="none"
>
<span
class="config-menu-title-content"
<div
aria-expanded="true"
aria-haspopup="true"
class="config-menu-submenu-title"
role="menuitem"
style="padding-left:24px"
tabindex="-1"
>
bamboo
</span>
<i
class="config-menu-submenu-arrow"
/>
</div>
<ul
class="config-menu config-menu-sub config-menu-inline"
data-menu-list="true"
>
<li
class="config-menu-item-group"
<span
class="config-menu-title-content"
>
bamboo
</span>
<i
class="config-menu-submenu-arrow"
/>
</div>
<ul
class="config-menu config-menu-sub config-menu-inline"
data-menu-list="true"
>
<div
class="config-menu-item-group-title"
title="Item 1"
<li
class="config-menu-item-group"
>
Item 1
</div>
<ul
class="config-menu-item-group-list"
>
<li
class="config-menu-item config-menu-item-only-child"
role="menuitem"
style="padding-left:48px"
tabindex="-1"
<div
class="config-menu-item-group-title"
title="Item 1"
>
<span
class="config-menu-title-content"
Item 1
</div>
<ul
class="config-menu-item-group-list"
>
<li
class="config-menu-item config-menu-item-only-child"
role="menuitem"
style="padding-left:48px"
tabindex="-1"
>
Light
</span>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<span
class="config-menu-title-content"
>
Light
</span>
</li>
</ul>
</li>
</ul>
</li>
</ul>,
<div
aria-hidden="true"
style="display:none"
/>,
]
`;
exports[`ConfigProvider components Menu configProvider virtual and dropdownMatchSelectWidth 1`] = `
<ul
class="ant-menu ant-menu-root ant-menu-inline ant-menu-light"
data-menu-list="true"
role="menu"
tabindex="0"
>
<li
class="ant-menu-submenu ant-menu-submenu-inline ant-menu-submenu-open"
role="none"
Array [
<ul
class="ant-menu ant-menu-root ant-menu-inline ant-menu-light"
data-menu-list="true"
role="menu"
tabindex="0"
>
<div
aria-expanded="true"
aria-haspopup="true"
class="ant-menu-submenu-title"
role="menuitem"
style="padding-left:24px"
tabindex="-1"
<li
class="ant-menu-submenu ant-menu-submenu-inline ant-menu-submenu-open"
role="none"
>
<span
class="ant-menu-title-content"
<div
aria-expanded="true"
aria-haspopup="true"
class="ant-menu-submenu-title"
role="menuitem"
style="padding-left:24px"
tabindex="-1"
>
bamboo
</span>
<i
class="ant-menu-submenu-arrow"
/>
</div>
<ul
class="ant-menu ant-menu-sub ant-menu-inline"
data-menu-list="true"
>
<li
class="ant-menu-item-group"
<span
class="ant-menu-title-content"
>
bamboo
</span>
<i
class="ant-menu-submenu-arrow"
/>
</div>
<ul
class="ant-menu ant-menu-sub ant-menu-inline"
data-menu-list="true"
>
<div
class="ant-menu-item-group-title"
title="Item 1"
<li
class="ant-menu-item-group"
>
Item 1
</div>
<ul
class="ant-menu-item-group-list"
>
<li
class="ant-menu-item ant-menu-item-only-child"
role="menuitem"
style="padding-left:48px"
tabindex="-1"
<div
class="ant-menu-item-group-title"
title="Item 1"
>
<span
class="ant-menu-title-content"
Item 1
</div>
<ul
class="ant-menu-item-group-list"
>
<li
class="ant-menu-item ant-menu-item-only-child"
role="menuitem"
style="padding-left:48px"
tabindex="-1"
>
Light
</span>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<span
class="ant-menu-title-content"
>
Light
</span>
</li>
</ul>
</li>
</ul>
</li>
</ul>,
<div
aria-hidden="true"
style="display:none"
/>,
]
`;
exports[`ConfigProvider components Menu normal 1`] = `
<ul
class="ant-menu ant-menu-root ant-menu-inline ant-menu-light"
data-menu-list="true"
role="menu"
tabindex="0"
>
<li
class="ant-menu-submenu ant-menu-submenu-inline ant-menu-submenu-open"
role="none"
Array [
<ul
class="ant-menu ant-menu-root ant-menu-inline ant-menu-light"
data-menu-list="true"
role="menu"
tabindex="0"
>
<div
aria-expanded="true"
aria-haspopup="true"
class="ant-menu-submenu-title"
role="menuitem"
style="padding-left:24px"
tabindex="-1"
<li
class="ant-menu-submenu ant-menu-submenu-inline ant-menu-submenu-open"
role="none"
>
<span
class="ant-menu-title-content"
<div
aria-expanded="true"
aria-haspopup="true"
class="ant-menu-submenu-title"
role="menuitem"
style="padding-left:24px"
tabindex="-1"
>
bamboo
</span>
<i
class="ant-menu-submenu-arrow"
/>
</div>
<ul
class="ant-menu ant-menu-sub ant-menu-inline"
data-menu-list="true"
>
<li
class="ant-menu-item-group"
<span
class="ant-menu-title-content"
>
bamboo
</span>
<i
class="ant-menu-submenu-arrow"
/>
</div>
<ul
class="ant-menu ant-menu-sub ant-menu-inline"
data-menu-list="true"
>
<div
class="ant-menu-item-group-title"
title="Item 1"
<li
class="ant-menu-item-group"
>
Item 1
</div>
<ul
class="ant-menu-item-group-list"
>
<li
class="ant-menu-item ant-menu-item-only-child"
role="menuitem"
style="padding-left:48px"
tabindex="-1"
<div
class="ant-menu-item-group-title"
title="Item 1"
>
<span
class="ant-menu-title-content"
Item 1
</div>
<ul
class="ant-menu-item-group-list"
>
<li
class="ant-menu-item ant-menu-item-only-child"
role="menuitem"
style="padding-left:48px"
tabindex="-1"
>
Light
</span>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<span
class="ant-menu-title-content"
>
Light
</span>
</li>
</ul>
</li>
</ul>
</li>
</ul>,
<div
aria-hidden="true"
style="display:none"
/>,
]
`;
exports[`ConfigProvider components Menu prefixCls 1`] = `
<ul
class="prefix-Menu prefix-Menu-root prefix-Menu-inline prefix-Menu-light"
data-menu-list="true"
role="menu"
tabindex="0"
>
<li
class="prefix-Menu-submenu prefix-Menu-submenu-inline prefix-Menu-submenu-open"
role="none"
Array [
<ul
class="prefix-Menu prefix-Menu-root prefix-Menu-inline prefix-Menu-light"
data-menu-list="true"
role="menu"
tabindex="0"
>
<div
aria-expanded="true"
aria-haspopup="true"
class="prefix-Menu-submenu-title"
role="menuitem"
style="padding-left:24px"
tabindex="-1"
<li
class="prefix-Menu-submenu prefix-Menu-submenu-inline prefix-Menu-submenu-open"
role="none"
>
<span
class="prefix-Menu-title-content"
<div
aria-expanded="true"
aria-haspopup="true"
class="prefix-Menu-submenu-title"
role="menuitem"
style="padding-left:24px"
tabindex="-1"
>
bamboo
</span>
<i
class="prefix-Menu-submenu-arrow"
/>
</div>
<ul
class="prefix-Menu prefix-Menu-sub prefix-Menu-inline"
data-menu-list="true"
>
<li
class="prefix-Menu-item-group"
prefixcls="prefix-Menu"
<span
class="prefix-Menu-title-content"
>
bamboo
</span>
<i
class="prefix-Menu-submenu-arrow"
/>
</div>
<ul
class="prefix-Menu prefix-Menu-sub prefix-Menu-inline"
data-menu-list="true"
>
<div
class="prefix-Menu-item-group-title"
title="Item 1"
<li
class="prefix-Menu-item-group"
prefixcls="prefix-Menu"
>
Item 1
</div>
<ul
class="prefix-Menu-item-group-list"
>
<li
class="prefix-Menu-item prefix-Menu-item-only-child"
prefixcls="prefix-Menu"
role="menuitem"
style="padding-left:48px"
tabindex="-1"
<div
class="prefix-Menu-item-group-title"
title="Item 1"
>
<span
class="prefix-Menu-title-content"
Item 1
</div>
<ul
class="prefix-Menu-item-group-list"
>
<li
class="prefix-Menu-item prefix-Menu-item-only-child"
prefixcls="prefix-Menu"
role="menuitem"
style="padding-left:48px"
tabindex="-1"
>
Light
</span>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<span
class="prefix-Menu-title-content"
>
Light
</span>
</li>
</ul>
</li>
</ul>
</li>
</ul>,
<div
aria-hidden="true"
style="display:none"
/>,
]
`;
exports[`ConfigProvider components Modal configProvider 1`] = `
@ -22953,6 +22989,10 @@ exports[`ConfigProvider components Table configProvider 1`] = `
</div>
</li>
</ul>
<div
aria-hidden="true"
style="display:none"
/>
<div
class="config-table-filter-dropdown-btns"
>
@ -23223,6 +23263,10 @@ exports[`ConfigProvider components Table configProvider componentSize large 1`]
</div>
</li>
</ul>
<div
aria-hidden="true"
style="display:none"
/>
<div
class="config-table-filter-dropdown-btns"
>
@ -23493,6 +23537,10 @@ exports[`ConfigProvider components Table configProvider componentSize middle 1`]
</div>
</li>
</ul>
<div
aria-hidden="true"
style="display:none"
/>
<div
class="config-table-filter-dropdown-btns"
>
@ -23763,6 +23811,10 @@ exports[`ConfigProvider components Table configProvider virtual and dropdownMatc
</div>
</li>
</ul>
<div
aria-hidden="true"
style="display:none"
/>
<div
class="ant-table-filter-dropdown-btns"
>
@ -24033,6 +24085,10 @@ exports[`ConfigProvider components Table normal 1`] = `
</div>
</li>
</ul>
<div
aria-hidden="true"
style="display:none"
/>
<div
class="ant-table-filter-dropdown-btns"
>
@ -24303,6 +24359,10 @@ exports[`ConfigProvider components Table prefixCls 1`] = `
</div>
</li>
</ul>
<div
aria-hidden="true"
style="display:none"
/>
<div
class="prefix-Table-filter-dropdown-btns"
>

View File

@ -237,6 +237,10 @@ exports[`renders ./components/layout/demo/custom-trigger.md correctly 1`] = `
</span>
</li>
</ul>
<div
aria-hidden="true"
style="display:none"
/>
</div>
</aside>
<section
@ -368,6 +372,10 @@ exports[`renders ./components/layout/demo/fixed.md correctly 1`] = `
</div>
</li>
</ul>
<div
aria-hidden="true"
style="display:none"
/>
</header>
<main
class="ant-layout-content site-layout"
@ -699,6 +707,10 @@ exports[`renders ./components/layout/demo/fixed-sider.md correctly 1`] = `
</span>
</li>
</ul>
<div
aria-hidden="true"
style="display:none"
/>
</div>
</aside>
<section
@ -969,6 +981,10 @@ exports[`renders ./components/layout/demo/responsive.md correctly 1`] = `
</span>
</li>
</ul>
<div
aria-hidden="true"
style="display:none"
/>
</div>
</aside>
<section
@ -1196,6 +1212,10 @@ exports[`renders ./components/layout/demo/side.md correctly 1`] = `
</span>
</li>
</ul>
<div
aria-hidden="true"
style="display:none"
/>
</div>
<div
class="ant-layout-sider-trigger"
@ -1369,6 +1389,10 @@ exports[`renders ./components/layout/demo/top.md correctly 1`] = `
</div>
</li>
</ul>
<div
aria-hidden="true"
style="display:none"
/>
</header>
<main
class="ant-layout-content"
@ -1520,6 +1544,10 @@ exports[`renders ./components/layout/demo/top-side.md correctly 1`] = `
</div>
</li>
</ul>
<div
aria-hidden="true"
style="display:none"
/>
</header>
<main
class="ant-layout-content"
@ -1761,6 +1789,10 @@ exports[`renders ./components/layout/demo/top-side.md correctly 1`] = `
</div>
</li>
</ul>
<div
aria-hidden="true"
style="display:none"
/>
</div>
</aside>
<main
@ -1870,6 +1902,10 @@ exports[`renders ./components/layout/demo/top-side-2.md correctly 1`] = `
</div>
</li>
</ul>
<div
aria-hidden="true"
style="display:none"
/>
</header>
<section
class="ant-layout"
@ -2065,6 +2101,10 @@ exports[`renders ./components/layout/demo/top-side-2.md correctly 1`] = `
</div>
</li>
</ul>
<div
aria-hidden="true"
style="display:none"
/>
</div>
</aside>
<section

File diff suppressed because it is too large Load Diff

View File

@ -1,86 +1,16 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Menu Menu.Item with icon children auto wrap span 1`] = `
<ul
class="ant-menu ant-menu-root ant-menu-vertical ant-menu-light"
data-menu-list="true"
role="menu"
tabindex="0"
>
<li
class="ant-menu-item"
data-menu-id="rc-menu-uuid-test-1"
role="menuitem"
tabindex="-1"
Array [
<ul
class="ant-menu ant-menu-root ant-menu-vertical ant-menu-light"
data-menu-list="true"
role="menu"
tabindex="0"
>
<span
aria-label="mail"
class="anticon anticon-mail ant-menu-item-icon"
role="img"
>
<svg
aria-hidden="true"
data-icon="mail"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 110.8V792H136V270.8l-27.6-21.5 39.3-50.5 42.8 33.3h643.1l42.8-33.3 39.3 50.5-27.7 21.5zM833.6 232L512 482 190.4 232l-42.8-33.3-39.3 50.5 27.6 21.5 341.6 265.6a55.99 55.99 0 0068.7 0L888 270.8l27.6-21.5-39.3-50.5-42.7 33.2z"
/>
</svg>
</span>
<span
class="ant-menu-title-content"
>
Navigation One
</span>
</li>
<li
class="ant-menu-item"
data-menu-id="rc-menu-uuid-test-2"
role="menuitem"
tabindex="-1"
>
<span
aria-label="mail"
class="anticon anticon-mail ant-menu-item-icon"
role="img"
>
<svg
aria-hidden="true"
data-icon="mail"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 110.8V792H136V270.8l-27.6-21.5 39.3-50.5 42.8 33.3h643.1l42.8-33.3 39.3 50.5-27.7 21.5zM833.6 232L512 482 190.4 232l-42.8-33.3-39.3 50.5 27.6 21.5 341.6 265.6a55.99 55.99 0 0068.7 0L888 270.8l27.6-21.5-39.3-50.5-42.7 33.2z"
/>
</svg>
</span>
<span
class="ant-menu-title-content"
>
<span>
Navigation One
</span>
</span>
</li>
<li
class="ant-menu-submenu ant-menu-submenu-vertical"
role="none"
>
<div
aria-controls="rc-menu-uuid-test-3-popup"
aria-expanded="false"
aria-haspopup="true"
class="ant-menu-submenu-title"
data-menu-id="rc-menu-uuid-test-3"
<li
class="ant-menu-item"
data-menu-id="rc-menu-uuid-test-1"
role="menuitem"
tabindex="-1"
>
@ -108,21 +38,10 @@ exports[`Menu Menu.Item with icon children auto wrap span 1`] = `
>
Navigation One
</span>
<i
class="ant-menu-submenu-arrow"
/>
</div>
</li>
<li
class="ant-menu-submenu ant-menu-submenu-vertical"
role="none"
>
<div
aria-controls="rc-menu-uuid-test-4-popup"
aria-expanded="false"
aria-haspopup="true"
class="ant-menu-submenu-title"
data-menu-id="rc-menu-uuid-test-4"
</li>
<li
class="ant-menu-item"
data-menu-id="rc-menu-uuid-test-2"
role="menuitem"
tabindex="-1"
>
@ -145,146 +64,251 @@ exports[`Menu Menu.Item with icon children auto wrap span 1`] = `
/>
</svg>
</span>
<span>
Navigation One
<span
class="ant-menu-title-content"
>
<span>
Navigation One
</span>
</span>
<i
class="ant-menu-submenu-arrow"
/>
</div>
</li>
</ul>
</li>
<li
class="ant-menu-submenu ant-menu-submenu-vertical"
role="none"
>
<div
aria-controls="rc-menu-uuid-test-3-popup"
aria-expanded="false"
aria-haspopup="true"
class="ant-menu-submenu-title"
data-menu-id="rc-menu-uuid-test-3"
role="menuitem"
tabindex="-1"
>
<span
aria-label="mail"
class="anticon anticon-mail ant-menu-item-icon"
role="img"
>
<svg
aria-hidden="true"
data-icon="mail"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 110.8V792H136V270.8l-27.6-21.5 39.3-50.5 42.8 33.3h643.1l42.8-33.3 39.3 50.5-27.7 21.5zM833.6 232L512 482 190.4 232l-42.8-33.3-39.3 50.5 27.6 21.5 341.6 265.6a55.99 55.99 0 0068.7 0L888 270.8l27.6-21.5-39.3-50.5-42.7 33.2z"
/>
</svg>
</span>
<span
class="ant-menu-title-content"
>
Navigation One
</span>
<i
class="ant-menu-submenu-arrow"
/>
</div>
</li>
<li
class="ant-menu-submenu ant-menu-submenu-vertical"
role="none"
>
<div
aria-controls="rc-menu-uuid-test-4-popup"
aria-expanded="false"
aria-haspopup="true"
class="ant-menu-submenu-title"
data-menu-id="rc-menu-uuid-test-4"
role="menuitem"
tabindex="-1"
>
<span
aria-label="mail"
class="anticon anticon-mail ant-menu-item-icon"
role="img"
>
<svg
aria-hidden="true"
data-icon="mail"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 110.8V792H136V270.8l-27.6-21.5 39.3-50.5 42.8 33.3h643.1l42.8-33.3 39.3 50.5-27.7 21.5zM833.6 232L512 482 190.4 232l-42.8-33.3-39.3 50.5 27.6 21.5 341.6 265.6a55.99 55.99 0 0068.7 0L888 270.8l27.6-21.5-39.3-50.5-42.7 33.2z"
/>
</svg>
</span>
<span>
Navigation One
</span>
<i
class="ant-menu-submenu-arrow"
/>
</div>
</li>
</ul>,
<div
aria-hidden="true"
style="display: none;"
/>,
]
`;
exports[`Menu rtl render component should be rendered correctly in RTL direction 1`] = `
<ul
class="ant-menu ant-menu-root ant-menu-vertical ant-menu-light ant-menu-rtl"
data-menu-list="true"
dir="rtl"
role="menu"
tabindex="0"
>
<li
class="ant-menu-item"
role="menuitem"
tabindex="-1"
Array [
<ul
class="ant-menu ant-menu-root ant-menu-vertical ant-menu-light ant-menu-rtl"
data-menu-list="true"
dir="rtl"
role="menu"
tabindex="0"
>
<span
class="ant-menu-title-content"
/>
</li>
<li
class="ant-menu-item-group"
>
<div
class="ant-menu-item-group-title"
/>
<ul
class="ant-menu-item-group-list"
/>
</li>
<li
class="ant-menu-submenu ant-menu-submenu-vertical"
role="none"
>
<div
aria-expanded="false"
aria-haspopup="true"
class="ant-menu-submenu-title"
<li
class="ant-menu-item"
role="menuitem"
tabindex="-1"
>
<span
class="ant-menu-title-content"
/>
<i
class="ant-menu-submenu-arrow"
</li>
<li
class="ant-menu-item-group"
>
<div
class="ant-menu-item-group-title"
/>
</div>
</li>
</ul>
<ul
class="ant-menu-item-group-list"
/>
</li>
<li
class="ant-menu-submenu ant-menu-submenu-vertical"
role="none"
>
<div
aria-expanded="false"
aria-haspopup="true"
class="ant-menu-submenu-title"
role="menuitem"
tabindex="-1"
>
<span
class="ant-menu-title-content"
/>
<i
class="ant-menu-submenu-arrow"
/>
</div>
</li>
</ul>,
<div
aria-hidden="true"
style="display:none"
/>,
]
`;
exports[`Menu should controlled collapse work 1`] = `
<ul
class="ant-menu ant-menu-root ant-menu-inline ant-menu-light"
data-menu-list="true"
role="menu"
tabindex="0"
>
<li
class="ant-menu-item"
data-menu-id="rc-menu-uuid-test-1"
role="menuitem"
style="padding-left: 24px;"
tabindex="-1"
Array [
<ul
class="ant-menu ant-menu-root ant-menu-inline ant-menu-light"
data-menu-list="true"
role="menu"
tabindex="0"
>
<span
aria-label="pie-chart"
class="anticon anticon-pie-chart ant-menu-item-icon"
role="img"
<li
class="ant-menu-item"
data-menu-id="rc-menu-uuid-test-1"
role="menuitem"
style="padding-left: 24px;"
tabindex="-1"
>
<svg
aria-hidden="true"
data-icon="pie-chart"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
<span
aria-label="pie-chart"
class="anticon anticon-pie-chart ant-menu-item-icon"
role="img"
>
<path
d="M864 518H506V160c0-4.4-3.6-8-8-8h-26a398.46 398.46 0 00-282.8 117.1 398.19 398.19 0 00-85.7 127.1A397.61 397.61 0 0072 552a398.46 398.46 0 00117.1 282.8c36.7 36.7 79.5 65.6 127.1 85.7A397.61 397.61 0 00472 952a398.46 398.46 0 00282.8-117.1c36.7-36.7 65.6-79.5 85.7-127.1A397.61 397.61 0 00872 552v-26c0-4.4-3.6-8-8-8zM705.7 787.8A331.59 331.59 0 01470.4 884c-88.1-.4-170.9-34.9-233.2-97.2C174.5 724.1 140 640.7 140 552c0-88.7 34.5-172.1 97.2-234.8 54.6-54.6 124.9-87.9 200.8-95.5V586h364.3c-7.7 76.3-41.3 147-96.6 201.8zM952 462.4l-2.6-28.2c-8.5-92.1-49.4-179-115.2-244.6A399.4 399.4 0 00589 74.6L560.7 72c-4.7-.4-8.7 3.2-8.7 7.9V464c0 4.4 3.6 8 8 8l384-1c4.7 0 8.4-4 8-8.6zm-332.2-58.2V147.6a332.24 332.24 0 01166.4 89.8c45.7 45.6 77 103.6 90 166.1l-256.4.7z"
/>
</svg>
</span>
<span
class="ant-menu-title-content"
>
Option 1
</span>
</li>
</ul>
<svg
aria-hidden="true"
data-icon="pie-chart"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M864 518H506V160c0-4.4-3.6-8-8-8h-26a398.46 398.46 0 00-282.8 117.1 398.19 398.19 0 00-85.7 127.1A397.61 397.61 0 0072 552a398.46 398.46 0 00117.1 282.8c36.7 36.7 79.5 65.6 127.1 85.7A397.61 397.61 0 00472 952a398.46 398.46 0 00282.8-117.1c36.7-36.7 65.6-79.5 85.7-127.1A397.61 397.61 0 00872 552v-26c0-4.4-3.6-8-8-8zM705.7 787.8A331.59 331.59 0 01470.4 884c-88.1-.4-170.9-34.9-233.2-97.2C174.5 724.1 140 640.7 140 552c0-88.7 34.5-172.1 97.2-234.8 54.6-54.6 124.9-87.9 200.8-95.5V586h364.3c-7.7 76.3-41.3 147-96.6 201.8zM952 462.4l-2.6-28.2c-8.5-92.1-49.4-179-115.2-244.6A399.4 399.4 0 00589 74.6L560.7 72c-4.7-.4-8.7 3.2-8.7 7.9V464c0 4.4 3.6 8 8 8l384-1c4.7 0 8.4-4 8-8.6zm-332.2-58.2V147.6a332.24 332.24 0 01166.4 89.8c45.7 45.6 77 103.6 90 166.1l-256.4.7z"
/>
</svg>
</span>
<span
class="ant-menu-title-content"
>
Option 1
</span>
</li>
</ul>,
<div
aria-hidden="true"
style="display: none;"
/>,
]
`;
exports[`Menu should controlled collapse work 2`] = `
<ul
class="ant-menu ant-menu-root ant-menu-vertical ant-menu-light ant-menu-inline-collapsed"
data-menu-list="true"
role="menu"
tabindex="0"
>
<li
class="ant-menu-item"
data-menu-id="rc-menu-uuid-test-1"
role="menuitem"
style="padding-left: 24px;"
tabindex="-1"
Array [
<ul
class="ant-menu ant-menu-root ant-menu-vertical ant-menu-light ant-menu-inline-collapsed"
data-menu-list="true"
role="menu"
tabindex="0"
>
<span
aria-label="pie-chart"
class="anticon anticon-pie-chart ant-menu-item-icon"
role="img"
<li
class="ant-menu-item"
data-menu-id="rc-menu-uuid-test-1"
role="menuitem"
style="padding-left: 24px;"
tabindex="-1"
>
<svg
aria-hidden="true"
data-icon="pie-chart"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
<span
aria-label="pie-chart"
class="anticon anticon-pie-chart ant-menu-item-icon"
role="img"
>
<path
d="M864 518H506V160c0-4.4-3.6-8-8-8h-26a398.46 398.46 0 00-282.8 117.1 398.19 398.19 0 00-85.7 127.1A397.61 397.61 0 0072 552a398.46 398.46 0 00117.1 282.8c36.7 36.7 79.5 65.6 127.1 85.7A397.61 397.61 0 00472 952a398.46 398.46 0 00282.8-117.1c36.7-36.7 65.6-79.5 85.7-127.1A397.61 397.61 0 00872 552v-26c0-4.4-3.6-8-8-8zM705.7 787.8A331.59 331.59 0 01470.4 884c-88.1-.4-170.9-34.9-233.2-97.2C174.5 724.1 140 640.7 140 552c0-88.7 34.5-172.1 97.2-234.8 54.6-54.6 124.9-87.9 200.8-95.5V586h364.3c-7.7 76.3-41.3 147-96.6 201.8zM952 462.4l-2.6-28.2c-8.5-92.1-49.4-179-115.2-244.6A399.4 399.4 0 00589 74.6L560.7 72c-4.7-.4-8.7 3.2-8.7 7.9V464c0 4.4 3.6 8 8 8l384-1c4.7 0 8.4-4 8-8.6zm-332.2-58.2V147.6a332.24 332.24 0 01166.4 89.8c45.7 45.6 77 103.6 90 166.1l-256.4.7z"
/>
</svg>
</span>
<span
class="ant-menu-title-content"
>
Option 1
</span>
</li>
</ul>
<svg
aria-hidden="true"
data-icon="pie-chart"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M864 518H506V160c0-4.4-3.6-8-8-8h-26a398.46 398.46 0 00-282.8 117.1 398.19 398.19 0 00-85.7 127.1A397.61 397.61 0 0072 552a398.46 398.46 0 00117.1 282.8c36.7 36.7 79.5 65.6 127.1 85.7A397.61 397.61 0 00472 952a398.46 398.46 0 00282.8-117.1c36.7-36.7 65.6-79.5 85.7-127.1A397.61 397.61 0 00872 552v-26c0-4.4-3.6-8-8-8zM705.7 787.8A331.59 331.59 0 01470.4 884c-88.1-.4-170.9-34.9-233.2-97.2C174.5 724.1 140 640.7 140 552c0-88.7 34.5-172.1 97.2-234.8 54.6-54.6 124.9-87.9 200.8-95.5V586h364.3c-7.7 76.3-41.3 147-96.6 201.8zM952 462.4l-2.6-28.2c-8.5-92.1-49.4-179-115.2-244.6A399.4 399.4 0 00589 74.6L560.7 72c-4.7-.4-8.7 3.2-8.7 7.9V464c0 4.4 3.6 8 8 8l384-1c4.7 0 8.4-4 8-8.6zm-332.2-58.2V147.6a332.24 332.24 0 01166.4 89.8c45.7 45.6 77 103.6 90 166.1l-256.4.7z"
/>
</svg>
</span>
<span
class="ant-menu-title-content"
>
Option 1
</span>
</li>
</ul>,
<div
aria-hidden="true"
style="display: none;"
/>,
]
`;

View File

@ -3,6 +3,7 @@ order: 1
title:
zh-CN: 内嵌菜单
en-US: Inline menu
only: true
---
## zh-CN
@ -21,7 +22,7 @@ const { SubMenu } = Menu;
class Sider extends React.Component {
handleClick = e => {
console.log('click ', e);
console.log('click ', e.keyPath);
};
render() {

View File

@ -651,6 +651,10 @@ exports[`Table.filter should support getPopupContainer 1`] = `
</div>
</li>
</ul>
<div
aria-hidden="true"
style="display: none;"
/>
<div
class="ant-table-filter-dropdown-btns"
>
@ -895,6 +899,10 @@ exports[`Table.filter should support getPopupContainer from ConfigProvider 1`] =
</div>
</li>
</ul>
<div
aria-hidden="true"
style="display: none;"
/>
<div
class="ant-table-filter-dropdown-btns"
>

View File

@ -1093,6 +1093,10 @@ exports[`Table.rowSelection should support getPopupContainer 1`] = `
</span>
</li>
</ul>
<div
aria-hidden="true"
style="display: none;"
/>
</div>
</div>
</div>
@ -1445,6 +1449,10 @@ exports[`Table.rowSelection should support getPopupContainer from ConfigProvider
</span>
</li>
</ul>
<div
aria-hidden="true"
style="display: none;"
/>
</div>
</div>
<div

View File

@ -126,7 +126,7 @@
"rc-image": "~5.2.4",
"rc-input-number": "~7.1.0",
"rc-mentions": "~1.6.1",
"rc-menu": "~9.0.1",
"rc-menu": "~9.0.9",
"rc-motion": "^2.4.0",
"rc-notification": "~4.5.2",
"rc-pagination": "~3.1.6",