代码
<template>
<view>
<view class="box">
<view class="column">
<view class="item"></view>
<view class="item"></view>
</view>
<view class="column">
<view class="item"></view>
<view class="item"></view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
};
}
}
</script>
<style lang="scss">
.box{
width: 150rpx;
height: 150rpx;
background-color: #E7E7E7;
border-radius: 50rpx;
padding: 30rpx;
display: flex;
flex-wrap: wrap;
align-content: space-between;
.column{
display: flex;
flex-basis: 100%;
justify-content: space-between;
}
.item{
width: 30rpx;
height: 30rpx;
background-color: #333333;
border-radius: 50%;
margin: 5rpx 5rpx;
}
}
</style>
图示