Skip to content

Commit 48d45a5

Browse files
author
wangyaqi
committed
update: 修改部分组件的z-index
1 parent b7d8e03 commit 48d45a5

5 files changed

Lines changed: 45 additions & 34 deletions

File tree

‎components/uni-calendar/uni-calendar.vue‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@
554554
background: rgba(0, 0, 0, .4);
555555
transition: all .3s;
556556
opacity: 0;
557-
z-index: 9998
557+
z-index: 998
558558
}
559559
560560
.uni-calendar__mask.ani-mask-show {
@@ -568,14 +568,14 @@
568568
position: relative;
569569
height: 100upx;
570570
background: #fff;
571-
z-index: 10000;
571+
z-index: 999;
572572
font-size: 32upx
573573
}
574574
575575
.uni-calendar__box {
576576
position: fixed;
577577
bottom: 0;
578-
z-index: 9999;
578+
z-index: 999;
579579
width: 100%;
580580
box-sizing: border-box;
581581
transition: all .3s;

‎components/uni-drawer/uni-drawer.vue‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
bottom: 0;
9393
overflow: hidden;
9494
visibility: hidden;
95-
z-index: 10001;
95+
z-index: 999;
9696
height: 100%
9797
}
9898

‎components/uni-indexed-list/uni-indexed-list.vue‎

Lines changed: 38 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -52,36 +52,47 @@
5252
scrollViewId: ''
5353
}
5454
},
55+
watch: {
56+
options: {
57+
handler: function() {
58+
this.setList()
59+
},
60+
deep: true
61+
}
62+
},
5563
created() {
56-
let winHeight = uni.getSystemInfoSync().windowHeight
57-
this.itemHeight = winHeight / this.options.length
58-
this.winHeight = winHeight
59-
60-
// if (!this.showSelect) {
61-
// this.lists = this.options;
62-
// return;
63-
// }
64-
// console.log(this.options)
65-
this.lists = this.options.map(value => {
66-
// console.log(value)
67-
let items = value.data.map(item => {
68-
let obj = {}
69-
// for (let key in item) {
70-
obj['key'] = value.letter
71-
obj['name'] = item
72-
// }
73-
obj.checked = item.checked ? item.checked : false
74-
return obj
75-
})
76-
return {
77-
title: value.letter,
78-
key: value.letter,
79-
items: items
80-
}
81-
})
82-
// console.log(this.lists)
64+
this.setList()
8365
},
8466
methods: {
67+
setList() {
68+
let winHeight = uni.getSystemInfoSync().windowHeight
69+
this.itemHeight = winHeight / this.options.length
70+
this.winHeight = winHeight
71+
72+
// if (!this.showSelect) {
73+
// this.lists = this.options;
74+
// return;
75+
// }
76+
// console.log(this.options)
77+
this.lists = this.options.map(value => {
78+
// console.log(value)
79+
let items = value.data.map(item => {
80+
let obj = {}
81+
// for (let key in item) {
82+
obj['key'] = value.letter
83+
obj['name'] = item
84+
// }
85+
obj.checked = item.checked ? item.checked : false
86+
return obj
87+
})
88+
return {
89+
title: value.letter,
90+
key: value.letter,
91+
items: items
92+
}
93+
})
94+
// console.log(this.lists)
95+
},
8596
touchStart(e) {
8697
this.touchmove = true
8798
let pageY = e.touches[0].pageY

‎components/uni-popup/uni-popup.vue‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
bottom: 0;
9393
left: 0;
9494
right: 0;
95-
z-index: 99999;
95+
z-index: 998;
9696
overflow: hidden
9797
}
9898

‎components/uni-swipe-action/uni-swipe-action.vue‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@
220220
221221
.uni-swipe-action--show {
222222
position: relative;
223-
z-index: 1000
223+
z-index: 999
224224
}
225225
226226
.uni-swipe-action--btn {
@@ -238,7 +238,7 @@
238238
display: block;
239239
opacity: 0;
240240
position: fixed;
241-
z-index: 999;
241+
z-index: 998;
242242
top: 0;
243243
left: 0;
244244
width: 100%;

0 commit comments

Comments
 (0)