<van-popup
:show="modal.visible"
closeable
position="bottom"
@click-overlay="modal.close()"
@click-close-icon="modal.close()"
>
<div class="buy-popup-box">
<div class="buy-popup-content">
<div class="buy">buy</div>
</div>
</div>
</van-popup>
.buy-popup-box {
width: 100%;
min-height: 450px;
max-height: 86vh;
background: #f5f5f5;
padding: 8px;
box-sizing: border-box;
overflow-y: hidden;
.buy-popup-content {
width: 100%;
// height: 100%;
height: 400px;
box-sizing: border-box;
padding-top: 60px;
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: flex-start;
overflow-y: auto;
.buy {
height: 6000px;
background-color: antiquewhite;
}
}
}
你可以给你的内容添加指定高度,在类
buy-popup-box
,然后让其在此区域滚动即可自定义popup