Open coleava opened 2 years ago
css部分
position: relative;
/* width: 350px; */
font-size: 30px;
height: 60px;
border-radius: 13px;
border: 1px solid #DEDEE0;
background-color: #fff;
display: flex;
align-items: center;
}
.select-current {
position: relative;
width: 100%;
padding: 0 10px;
line-height: 70px;
}
.select-current::after {
position: absolute;
display: block;
right: 16px;
top: 30px;
content: '';
width: 0;
height: 0;
border: 10px solid transparent;
border-top: 10px solid #999;
}
.current-name {
padding: 20rpx;
line-height: 60rpx;
word-wrap: normal;
overflow: hidden;
text-align: center;
color: #7C7C7D;
}
.option-list {
position: absolute;
left: 0;
height: 480px;
overflow-y: scroll;
/* padding: 12rpx 20rpx 10rpx 20rpx; */
border-radius: 20px;
box-sizing: border-box;
z-index: 99;
box-shadow: 0px 0px 1px 1px rgba(0, 0, 0, 0.2) inset;
background-color: #fff;
}
.option {
display: block;
/* width: 100%; */
line-height: 60px;
padding: 5px 20px;
/* border-bottom: 1rpx solid #eee; */
}
.option:last-child {
border-bottom: none;
padding-bottom: 0;
}
.select-box-mask {
position: fixed;
left: 0;
top: 0;
bottom: 0;
right: 0;
width: 100%;
height: 100%;
z-index: 5;
}