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,6 +15,17 @@ | ||
| 15 | color: white; | 15 | color: white; |
| 16 | font-size: 16px; | 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 | .shortcut-button { | 31 | .shortcut-button { |
| @@ -83,6 +94,7 @@ | @@ -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,7 +90,7 @@ export default { | ||
| 90 | <a-layout-header class="header"> | 90 | <a-layout-header class="header"> |
| 91 | <LogoOfHeader /> | 91 | <LogoOfHeader /> |
| 92 | {/* TODO we can show the plugins shortcuts here */} | 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 | <a-menu slot="overlay" onClick={() => {}}> | 94 | <a-menu slot="overlay" onClick={() => {}}> |
| 95 | <a-menu-item key="1"> | 95 | <a-menu-item key="1"> |
| 96 | <span>someone@luban</span> | 96 | <span>someone@luban</span> |
| @@ -99,7 +99,9 @@ export default { | @@ -99,7 +99,9 @@ export default { | ||
| 99 | <a-menu-item key="2"><a-icon type="setting" />账号设置</a-menu-item> | 99 | <a-menu-item key="2"><a-icon type="setting" />账号设置</a-menu-item> |
| 100 | <a-menu-item key="3"><a-icon type="logout" />退出登录</a-menu-item> | 100 | <a-menu-item key="3"><a-icon type="logout" />退出登录</a-menu-item> |
| 101 | </a-menu> | 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 | </a-dropdown> | 105 | </a-dropdown> |
| 104 | <ExternalLinksOfHeader /> | 106 | <ExternalLinksOfHeader /> |
| 105 | </a-layout-header> | 107 | </a-layout-header> |