Skip to content

Commit

Permalink
fix: fix the problem of folding display name of the first level menu
Browse files Browse the repository at this point in the history
  • Loading branch information
anncwb committed Oct 19, 2020
1 parent 8fd1994 commit e3cbc93
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,6 @@
}
},
"engines": {
"node": ">=12.0.0"
"node": ">=10.16.1"
}
}
13 changes: 13 additions & 0 deletions src/components/Menu/src/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,19 @@
font-size: 12px;
flex-direction: column;
}

& > li[role='menuitem']:not(.ant-menu-submenu) {
display: flex;
margin-top: 12px;
font-size: 12px;
line-height: 2;
align-items: center;
flex-direction: column;

span {
margin-top: 6px;
}
}
}

&__wrap {
Expand Down
8 changes: 2 additions & 6 deletions src/views/demo/table/FixedColumn.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,13 @@
:actions="[
{
label: '删除',
props: {
onClick: handleDelete,
},
onClick: handleDelete,
},
]"
:dropDownActions="[
{
label: '启用',
props: {
onClick: handleOpen,
},
onClick: handleOpen,
},
]"
/>
Expand Down

0 comments on commit e3cbc93

Please sign in to comment.