Commit e3cbc9326ecedf386919f344df5dbdef8eb3d78c
1 parent
8fd1994b
fix: fix the problem of folding display name of the first level menu
Showing
3 changed files
with
16 additions
and
7 deletions
package.json
src/components/Menu/src/index.less
@@ -21,6 +21,19 @@ | @@ -21,6 +21,19 @@ | ||
21 | font-size: 12px; | 21 | font-size: 12px; |
22 | flex-direction: column; | 22 | flex-direction: column; |
23 | } | 23 | } |
24 | + | ||
25 | + & > li[role='menuitem']:not(.ant-menu-submenu) { | ||
26 | + display: flex; | ||
27 | + margin-top: 12px; | ||
28 | + font-size: 12px; | ||
29 | + line-height: 2; | ||
30 | + align-items: center; | ||
31 | + flex-direction: column; | ||
32 | + | ||
33 | + span { | ||
34 | + margin-top: 6px; | ||
35 | + } | ||
36 | + } | ||
24 | } | 37 | } |
25 | 38 | ||
26 | &__wrap { | 39 | &__wrap { |
src/views/demo/table/FixedColumn.vue
@@ -6,17 +6,13 @@ | @@ -6,17 +6,13 @@ | ||
6 | :actions="[ | 6 | :actions="[ |
7 | { | 7 | { |
8 | label: '删除', | 8 | label: '删除', |
9 | - props: { | ||
10 | - onClick: handleDelete, | ||
11 | - }, | 9 | + onClick: handleDelete, |
12 | }, | 10 | }, |
13 | ]" | 11 | ]" |
14 | :dropDownActions="[ | 12 | :dropDownActions="[ |
15 | { | 13 | { |
16 | label: '启用', | 14 | label: '启用', |
17 | - props: { | ||
18 | - onClick: handleOpen, | ||
19 | - }, | 15 | + onClick: handleOpen, |
20 | }, | 16 | }, |
21 | ]" | 17 | ]" |
22 | /> | 18 | /> |