Commit ad5b8b52cc266d4feada67c07f6047ac14c1ade9
1 parent
e856428e
fix:not set <a-menu-item> as activator slot in <a-dropdown>
Showing
2 changed files
with
16 additions
and
2 deletions
front-end/h5/src/components/core/styles/index.scss
| ... | ... | @@ -15,6 +15,17 @@ |
| 15 | 15 | color: white; |
| 16 | 16 | font-size: 16px; |
| 17 | 17 | } |
| 18 | + | |
| 19 | + .user-avatar-activator { | |
| 20 | + float: right; | |
| 21 | + background: transparent; | |
| 22 | + margin: 0 28px 16px 0; | |
| 23 | + cursor: pointer; | |
| 24 | + | |
| 25 | + .anticon { | |
| 26 | + color: white; | |
| 27 | + } | |
| 28 | + } | |
| 18 | 29 | } |
| 19 | 30 | |
| 20 | 31 | .shortcut-button { |
| ... | ... | @@ -83,6 +94,7 @@ |
| 83 | 94 | } |
| 84 | 95 | |
| 85 | 96 | } |
| 97 | + | |
| 86 | 98 | } |
| 87 | 99 | |
| 88 | 100 | ... | ... |
front-end/h5/src/views/work-manager/index.vue
| ... | ... | @@ -90,7 +90,7 @@ export default { |
| 90 | 90 | <a-layout-header class="header"> |
| 91 | 91 | <LogoOfHeader /> |
| 92 | 92 | {/* TODO we can show the plugins shortcuts here */} |
| 93 | - <a-dropdown style={{ float: 'right', background: 'transparent', margin: '0 28px 16px 0', cursor: 'pointer' }}> | |
| 93 | + <a-dropdown> | |
| 94 | 94 | <a-menu slot="overlay" onClick={() => {}}> |
| 95 | 95 | <a-menu-item key="1"> |
| 96 | 96 | <span>someone@luban</span> |
| ... | ... | @@ -99,7 +99,9 @@ export default { |
| 99 | 99 | <a-menu-item key="2"><a-icon type="setting" />账号设置</a-menu-item> |
| 100 | 100 | <a-menu-item key="3"><a-icon type="logout" />退出登录</a-menu-item> |
| 101 | 101 | </a-menu> |
| 102 | - <a-menu-item><a-icon type="user" style={{ color: 'white' }} /></a-menu-item> | |
| 102 | + <a class="user-avatar-activator" href="#"> | |
| 103 | + <a-icon type="user"/> | |
| 104 | + </a> | |
| 103 | 105 | </a-dropdown> |
| 104 | 106 | <ExternalLinksOfHeader /> |
| 105 | 107 | </a-layout-header> | ... | ... |