improve: 顶部操作

This commit is contained in:
From-wh 2023-02-27 17:30:15 +08:00
parent 69f199c435
commit eef88e5ea3
3 changed files with 17 additions and 11 deletions

View File

@ -19,6 +19,7 @@
<style scoped lang="less">
.ivu-icon-ios-refresh {
font-size: 23px;
width: 20px;
}
.i-layout-header-trigger {
position: absolute;

View File

@ -3,7 +3,7 @@
<Dropdown @on-click="jumpUrl" :transfer="true">
<div>
<Badge dot :count="needList.length ? needList.length : 0">
<Icon type="ios-notifications-outline" size="24"></Icon>
<Icon type="ios-notifications-outline" size="23"></Icon>
</Badge>
</div>
<DropdownMenu slot="list" v-show="needList.length">
@ -17,17 +17,18 @@
</div>
</template>
<style scoped>
.ivu-dropdown-item{
.ivu-dropdown-item {
display: flex;
align-items: center;
}
.ivu-dropdown-item .iconImg{
.ivu-dropdown-item .iconImg {
margin-right: 10px;
}
</style>
<style lang="less">
.header-notice {
margin-right: 30px;
cursor: pointer;
}
.header-notice .ivu-dropdown-item {
font-size: 14px !important;
@ -57,6 +58,8 @@
}
.header-notice .ivu-badge-dot {
z-index: 0 !important;
top: 4px;
right: -4px;
}
</style>
<script>

View File

@ -1,6 +1,8 @@
<template>
<div class="refresh-btn-con" @click="handleReload">
<Tooltip content="刷新" placement="bottom">
<Icon class="icon" type="ios-refresh" color="rgba(255,255,255,.8)" />
</Tooltip>
</div>
</template>
@ -24,11 +26,11 @@ export default {
font-size: 28px;
color: #f2f2f2;
}
.icon:hover{
animation: rotate 6s linear infinite;
}
@keyframes rotate {
0%{-webkit-transform:rotate(0deg);}
100%{-webkit-transform:rotate(360deg);}
}
</style>
// .icon:hover{
// animation: rotate 6s linear infinite;
// }
// @keyframes rotate {
// 0%{-webkit-transform:rotate(0deg);}
// 100%{-webkit-transform:rotate(360deg);}
// }
</style>