Skip to content

Commit d238413

Browse files
committed
fix: less global-vars header zIndex
- NoticeIcon typo err
1 parent 9d7c9b5 commit d238413

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

src/components/NoticeIcon/NoticeIcon.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
:overlayStyle="{ width: '300px', top: '50px' }"
1111
>
1212
<template slot="content">
13-
<a-spin :spinning="loadding">
13+
<a-spin :spinning="loading">
1414
<a-tabs>
1515
<a-tab-pane tab="通知" key="1">
1616
<a-list>
@@ -53,19 +53,19 @@ export default {
5353
name: 'HeaderNotice',
5454
data () {
5555
return {
56-
loadding: false,
56+
loading: false,
5757
visible: false
5858
}
5959
},
6060
methods: {
6161
fetchNotice () {
6262
if (!this.visible) {
63-
this.loadding = true
63+
this.loading = true
6464
setTimeout(() => {
65-
this.loadding = false
65+
this.loading = false
6666
}, 2000)
6767
} else {
68-
this.loadding = false
68+
this.loading = false
6969
}
7070
this.visible = !this.visible
7171
}

src/components/global.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ body {
102102
}
103103
}
104104
.header-index-right{
105-
margin-right:25px;
105+
margin-right:25px;
106106
}
107107
}
108108

@@ -367,7 +367,7 @@ body {
367367
.sider {
368368
box-shadow: 2px 0 6px rgba(0, 21, 41, 0.35);
369369
position: relative;
370-
z-index: 10;
370+
z-index: @ant-global-sider-zindex;
371371
min-height: 100vh;
372372

373373
.ant-layout-sider-children {

src/components/index.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22

33
// The prefix to use on all css classes from ant-pro.
44
@ant-pro-prefix : ant-pro;
5+
@ant-global-sider-zindex : 106;
56
@ant-global-header-zindex : 105;

0 commit comments

Comments
 (0)