|
@@ -134,7 +134,7 @@
|
|
::: demo 将 `type` 属性赋值为 'flex',可以启用 flex 布局,并可通过 `justify` 属性来指定 start, center, end, space-between, space-around 其中的值来定义子元素的排版方式。
|
|
::: demo 将 `type` 属性赋值为 'flex',可以启用 flex 布局,并可通过 `justify` 属性来指定 start, center, end, space-between, space-around 其中的值来定义子元素的排版方式。
|
|
```html
|
|
```html
|
|
<el-row type="flex" class="row-bg">
|
|
<el-row type="flex" class="row-bg">
|
|
- <el-col :span="6"><div class="grid-content bg-purple"></div></el-col>
|
|
|
|
|
|
+ <el-col :span="6" :sm="8" :md="{span: 4, offset: 2}"><div class="grid-content bg-purple"></div></el-col>
|
|
<el-col :span="6"><div class="grid-content bg-purple-light"></div></el-col>
|
|
<el-col :span="6"><div class="grid-content bg-purple-light"></div></el-col>
|
|
<el-col :span="6"><div class="grid-content bg-purple"></div></el-col>
|
|
<el-col :span="6"><div class="grid-content bg-purple"></div></el-col>
|
|
</el-row>
|
|
</el-row>
|
|
@@ -176,3 +176,7 @@
|
|
| offset | 栅格左侧的间隔格数 | number | — | 0 |
|
|
| offset | 栅格左侧的间隔格数 | number | — | 0 |
|
|
| push | 栅格向右移动格数 | number | — | 0 |
|
|
| push | 栅格向右移动格数 | number | — | 0 |
|
|
| pull | 栅格向左移动格数 | number | — | 0 |
|
|
| pull | 栅格向左移动格数 | number | — | 0 |
|
|
|
|
+| xs | `<768px` 响应式栅格数或者栅格属性对象 | number/object (例如: {span: 4, offset: 4}) | — | — |
|
|
|
|
+| sm | `≥768px` 响应式栅格数或者栅格属性对象 | number/object (例如: {span: 4, offset: 4}) | — | — |
|
|
|
|
+| md | `≥992` 响应式栅格数或者栅格属性对象 | number/object (例如: {span: 4, offset: 4}) | — | — |
|
|
|
|
+| lg | `≥1200` 响应式栅格数或者栅格属性对象 | number/object (例如: {span: 4, offset: 4}) | — | — |
|