Layout 布局
简单的自适应页面布局
基本使用
使用单一分栏创建基础的栅格布局。
24
12
12
8
8
8
6
6
6
6
<template>
<m-row>
<m-col><div class="bg-purple-dark col-box">24</div></m-col>
</m-row>
<m-row>
<m-col :span="12"><div class="col-box-2 col-box">12</div></m-col>
<m-col :span="12"><div class="col-box-1 col-box">12</div></m-col>
</m-row>
<m-row>
<m-col :span="8"><div class="col-box-1 col-box">8</div></m-col>
<m-col :span="8"><div class="col-box-2 col-box">8</div></m-col>
<m-col :span="8"><div class="col-box-1 col-box">8</div></m-col>
</m-row>
<m-row>
<m-col :span="6"><div class="col-box-2 col-box">6</div></m-col>
<m-col :span="6"><div class="col-box-1 col-box">6</div></m-col>
<m-col :span="6"><div class="col-box-2 col-box">6</div></m-col>
<m-col :span="6"><div class="col-box-1 col-box">6</div></m-col>
</m-row>
</template>
<style scoped>
.bg-purple-dark{
background: #99a9bf;
}
.col-box {
height: 35px;
line-height: 35px;
margin-bottom: 10px;
text-align: center;
}
.col-box-1 {
background-color: #d3dce6;
color: #333;
}
.col-box-2 {
background-color: #e5e9f2;
color: #333;
}
</style>