File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
uview-ui/components/u-toast Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
2
<view class =" u-toast" :class =" [isShow ? 'u-show' : '', 'u-type-' + config.type, 'u-position-' + config.position]" :style =" {
3
- padding: isShow ? '0 40rpx' : 0,
4
3
zIndex: uZIndex
5
4
}" >
6
5
<view class =" u-icon-wrap" >
54
53
},
55
54
uZIndex () {
56
55
// 显示toast时候,如果用户有传递z-index值,有限使用
57
- return this .isShow ? (this .zIndex ? this .zIndex : this .$u .zIndex .toast ) : ' -1 ' ;
56
+ return this .isShow ? (this .zIndex ? this .zIndex : this .$u .zIndex .toast ) : ' 999999 ' ;
58
57
}
59
58
},
60
59
methods: {
136
135
justify-content : center ;
137
136
font-size : 28 rpx;
138
137
opacity : 0 ;
138
+ pointer-events : none ;
139
+ padding :0 40 rpx;
139
140
}
140
141
141
142
.u-toast.u-show {
142
143
opacity : 1 ;
143
- z-index : 9999999 ;
144
144
}
145
145
146
146
.u-text {
You can’t perform that action at this time.
0 commit comments