Element: [Feature Request] el-menu-item align to right ex. login button should be to the right of the window

Created on 12 Feb 2018  ·  5Comments  ·  Source: ElemeFE/element

Existing Component

Yes

Component Name

el-menu-item

Description

el-menu-item should have feature to align menu items to the right. for time being i am hacking component syle="position:absolute;right:0px" which is heck tick

Most helpful comment

@Leopoldthecoder Really don't consider implementing this function? This usage scenario is very frequent, especially when multiple elements need to float right.
image

All 5 comments

Sorry, we have no plan to support this.

@Leopoldthecoder Really don't consider implementing this function? This usage scenario is very frequent, especially when multiple elements need to float right.
image

@FirstJavaMaster 他们自己都要拆开实现 😏 .

image

可以参考下:

image

@GreatFireWall 请问您的例子里面为什么要在.dock-right前放上".el-menu--horizontal > "? 我试了下如果只用.dock-right{float:right;} 不会起作用,不解。

@xudong2019 你看一下渲染出来的结构的 class 就明白了.

Was this page helpful?
0 / 5 - 0 ratings