Commit e3cbc9326ecedf386919f344df5dbdef8eb3d78c

Authored by vben
1 parent 8fd1994b

fix: fix the problem of folding display name of the first level menu

package.json
... ... @@ -120,6 +120,6 @@
120 120 }
121 121 },
122 122 "engines": {
123   - "node": ">=12.0.0"
  123 + "node": ">=10.16.1"
124 124 }
125 125 }
... ...
src/components/Menu/src/index.less
... ... @@ -21,6 +21,19 @@
21 21 font-size: 12px;
22 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 39 &__wrap {
... ...
src/views/demo/table/FixedColumn.vue
... ... @@ -6,17 +6,13 @@
6 6 :actions="[
7 7 {
8 8 label: '删除',
9   - props: {
10   - onClick: handleDelete,
11   - },
  9 + onClick: handleDelete,
12 10 },
13 11 ]"
14 12 :dropDownActions="[
15 13 {
16 14 label: '启用',
17   - props: {
18   - onClick: handleOpen,
19   - },
  15 + onClick: handleOpen,
20 16 },
21 17 ]"
22 18 />
... ...