mirror of
https://github.com/iczer/vue-antd-admin
synced 2025-04-06 04:00:06 +08:00
修改:修复顶部通知组件 light 主题下颜色不更换问题;
This commit is contained in:
parent
a7975eea3a
commit
a5f486a03d
@ -33,14 +33,13 @@
|
|||||||
</div>
|
</div>
|
||||||
<span @click="fetchNotice" class="header-notice">
|
<span @click="fetchNotice" class="header-notice">
|
||||||
<a-badge count="12">
|
<a-badge count="12">
|
||||||
<a-icon :class="['header-notice-icon', headerTheme]" type="bell" />
|
<a-icon :class="['header-notice-icon']" type="bell" />
|
||||||
</a-badge>
|
</a-badge>
|
||||||
</span>
|
</span>
|
||||||
</a-dropdown>
|
</a-dropdown>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {mapState} from 'vuex'
|
|
||||||
export default {
|
export default {
|
||||||
name: 'HeaderNotice',
|
name: 'HeaderNotice',
|
||||||
data () {
|
data () {
|
||||||
@ -48,9 +47,7 @@ export default {
|
|||||||
loading: false
|
loading: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
inject: 'headerTheme',
|
|
||||||
computed: {
|
computed: {
|
||||||
...mapState('setting', ['layout', 'theme'])
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
fetchNotice () {
|
fetchNotice () {
|
||||||
@ -77,12 +74,6 @@ export default {
|
|||||||
.header-notice-icon{
|
.header-notice-icon{
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
padding: 4px;
|
padding: 4px;
|
||||||
&.dark{
|
|
||||||
color: #fff;
|
|
||||||
}
|
|
||||||
&.light{
|
|
||||||
color: rgba(0,0,0,.65);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.ant-dropdown-menu-container{
|
.ant-dropdown-menu-container{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user