Skip to content

Commit aecb9dc

Browse files
committed
add maskOpacity parameter
1 parent c1e4046 commit aecb9dc

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

js/mobileSelect.js

+4
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,10 @@
146146
_this.panel.style.backgroundColor = config.bgColor;
147147
_this.shadowMask.style.background = 'linear-gradient(to bottom, '+ config.bgColor + ', rgba(255, 255, 255, 0), '+ config.bgColor + ')';
148148
}
149+
if(!isNaN(config.maskOpacity)){
150+
_this.grayMask = _this.mobileSelect.querySelector('.grayLayer');
151+
_this.grayMask.style.background = 'rgba(0, 0, 0, '+ config.maskOpacity +')';
152+
}
149153
},
150154

151155
checkIsPC: function(){

0 commit comments

Comments
 (0)