element-plus/docs/examples/layout/column-offset.vue
Xc 4484d07d76
docs(components): [layout] bg-color caused by unocss cover (#8175)
* docs(components): [layout] unocss cover

* docs(components): [layout] unocss cover
2022-06-08 07:09:35 +00:00

39 lines
780 B
Vue

<template>
<el-row :gutter="20">
<el-col :span="6"><div class="grid-content ep-bg-purple" /></el-col>
<el-col :span="6" :offset="6"
><div class="grid-content ep-bg-purple"
/></el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="6" :offset="6"
><div class="grid-content ep-bg-purple"
/></el-col>
<el-col :span="6" :offset="6"
><div class="grid-content ep-bg-purple"
/></el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12" :offset="6"
><div class="grid-content ep-bg-purple"
/></el-col>
</el-row>
</template>
<style>
.el-row {
margin-bottom: 20px;
}
.el-row:last-child {
margin-bottom: 0;
}
.el-col {
border-radius: 4px;
}
.grid-content {
border-radius: 4px;
min-height: 36px;
}
</style>