Commit bda3e5da30b434dd3a5879695261422fdd365455

Authored by vben
1 parent a3887f8c

fix: fix menu style not work

src/components/Menu/src/index.less
... ... @@ -50,12 +50,25 @@
50 50 }
51 51  
52 52 // collapsed show title end
  53 + .ant-menu-submenu-title {
  54 + > .basic-menu__name {
  55 + display: flex;
  56 + width: 100%;
  57 + justify-content: space-between;
  58 + align-items: center;
  59 + }
  60 + }
  61 +
  62 + .ant-menu-item {
  63 + transition: unset;
53 64  
54   - &__name {
55   - display: flex;
56   - width: 100%;
57   - justify-content: space-between;
58   - align-items: center;
  65 + > .basic-menu__name {
  66 + .basic-menu__tag {
  67 + float: right;
  68 + margin-top: @app-menu-item-height / 2;
  69 + transform: translate(0%, -50%);
  70 + }
  71 + }
59 72 }
60 73  
61 74 &__tag {
... ... @@ -219,10 +232,6 @@
219 232 }
220 233 }
221 234  
222   - .ant-menu-item {
223   - transition: unset;
224   - }
225   -
226 235 &:not(.basic-menu__sidebar-hor).ant-menu-inline-collapsed {
227 236 .basic-menu-item__level1 {
228 237 > div {
... ...