chore: fix Menu split line style error (#40268)

* chore: fix Menu split line style error

* docs: update demo

* test: update snapshot
This commit is contained in:
Wuxh 2023-01-16 19:55:12 +08:00 committed by GitHub
parent ca2d1325e3
commit 64eb840be2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 0 deletions

View File

@ -1430,6 +1430,9 @@ Array [
</div>
</div>
</li>
<li
class="ant-menu-item-divider"
/>
<li
class="ant-menu-submenu ant-menu-submenu-inline"
role="none"

View File

@ -520,6 +520,9 @@ Array [
/>
</div>
</li>
<li
class="ant-menu-item-divider"
/>
<li
class="ant-menu-submenu ant-menu-submenu-inline"
role="none"

View File

@ -33,6 +33,8 @@ const items: MenuProps['items'] = [
getItem('Submenu', 'sub3', null, [getItem('Option 7', '7'), getItem('Option 8', '8')]),
]),
{ type: 'divider' },
getItem('Navigation Three', 'sub4', <SettingOutlined />, [
getItem('Option 9', '9'),
getItem('Option 10', '10'),

View File

@ -323,6 +323,7 @@ const getBaseStyle: GenerateStyle<MenuToken> = (token) => {
lineHeight: 0,
borderColor: colorSplit,
borderStyle: lineType,
borderWidth: 0,
borderTopWidth: lineWidth,
marginBlock: lineWidth,
padding: 0,