mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 02:59:04 +08:00
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:
parent
ca2d1325e3
commit
64eb840be2
@ -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"
|
||||
|
@ -520,6 +520,9 @@ Array [
|
||||
/>
|
||||
</div>
|
||||
</li>
|
||||
<li
|
||||
class="ant-menu-item-divider"
|
||||
/>
|
||||
<li
|
||||
class="ant-menu-submenu ant-menu-submenu-inline"
|
||||
role="none"
|
||||
|
@ -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'),
|
||||
|
@ -323,6 +323,7 @@ const getBaseStyle: GenerateStyle<MenuToken> = (token) => {
|
||||
lineHeight: 0,
|
||||
borderColor: colorSplit,
|
||||
borderStyle: lineType,
|
||||
borderWidth: 0,
|
||||
borderTopWidth: lineWidth,
|
||||
marginBlock: lineWidth,
|
||||
padding: 0,
|
||||
|
Loading…
Reference in New Issue
Block a user