<view class="btn active">按钮</view>
.btn {
border-radius: 8rpx;
padding: 14rpx 130rpx;
height: 74rpx;
position: relative;
right: 0;
bottom: 0;
}
.active {
&:before {
border-radius: 8rpx;
content: "";
position: absolute;
right: 0;
bottom: 0;
border: 12px solid #1677ff;
border-top-color: transparent;
border-left-color: transparent;
}
&:after {
content: "";
width: 5px;
height: 10px;
position: absolute;
right: 4px;
bottom: 5px;
border: 1px solid #fff;
border-top-color: transparent;
border-left-color: transparent;
transform: rotate(45deg);
border-radius: 4rpx;
}
}
效果: