File tree Expand file tree Collapse file tree 6 files changed +10
-9
lines changed Expand file tree Collapse file tree 6 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -337,7 +337,7 @@ The classes are:
337
337
| gutter | grid spacing | number | — | 0 |
338
338
| type | layout mode, you can use flex, works in modern browsers | string | — | — |
339
339
| justify | horizontal alignment of flex layout | string | start/end/center/space-around/space-between | start |
340
- | align | vertical alignment of flex layout | string | top/middle/bottom | top |
340
+ | align | vertical alignment of flex layout | string | top/middle/bottom | — |
341
341
| tag | custom element tag | string | * | div |
342
342
343
343
### Col Attributes
Original file line number Diff line number Diff line change @@ -338,7 +338,7 @@ Las clases son:
338
338
| gutter | espaciado de la grilla | number | — | 0 |
339
339
| type | modo del layout , puedes usar flex, funciona en navegadores modernos | string | — | — |
340
340
| justify | alineación horizontal del layout flex | string | start/end/center/space-around/space-between | start |
341
- | align | alineación vertical del layout flex | string | top/middle/bottom | top |
341
+ | align | alineación vertical del layout flex | string | top/middle/bottom | — |
342
342
| tag | tag de elemento propio | string | * | div |
343
343
344
344
### Atributos Col
Original file line number Diff line number Diff line change @@ -338,7 +338,7 @@ Ces classes sont:
338
338
| gutter | Espacement de la grille. | number | — | 0 |
339
339
| type | Mode de mise en page. Vous pouvez utiliser flex, qui fonctionne sur les navigateurs modernes. | string | — | — |
340
340
| justify | Alignement horizontal pour le mise en page flex. | string | start/end/center/space-around/space-between | start |
341
- | align | Alignement vertical pour la mise en page flex. | string | top/middle/bottom | top |
341
+ | align | Alignement vertical pour la mise en page flex. | string | top/middle/bottom | — |
342
342
| tag | Élément de tag personnalisé. | string | * | div |
343
343
344
344
### Attributs des colonnes
Original file line number Diff line number Diff line change @@ -336,7 +336,7 @@ import 'element-ui/lib/theme-chalk/display.css';
336
336
| gutter | 栅格间隔 | number | — | 0 |
337
337
| type | 布局模式,可选 flex,现代浏览器下有效 | string | — | — |
338
338
| justify | flex 布局下的水平排列方式 | string | start/end/center/space-around/space-between | start |
339
- | align | flex 布局下的垂直排列方式 | string | top/middle/bottom | top |
339
+ | align | flex 布局下的垂直排列方式 | string | top/middle/bottom | — |
340
340
| tag | 自定义元素标签 | string | * | div |
341
341
342
342
### Col Attributes
Original file line number Diff line number Diff line change @@ -14,10 +14,7 @@ export default {
14
14
type : String ,
15
15
default : 'start'
16
16
} ,
17
- align : {
18
- type : String ,
19
- default : 'top'
20
- }
17
+ align : String
21
18
} ,
22
19
23
20
computed : {
@@ -38,7 +35,7 @@ export default {
38
35
class : [
39
36
'el-row' ,
40
37
this . justify !== 'start' ? `is-justify-${ this . justify } ` : '' ,
41
- this . align !== 'top' ? `is-align-${ this . align } ` : '' ,
38
+ this . align ? `is-align-${ this . align } ` : '' ,
42
39
{ 'el-row--flex' : this . type === 'flex' }
43
40
] ,
44
41
style : this . style
Original file line number Diff line number Diff line change 27
27
justify-content : space-around ;
28
28
}
29
29
30
+ @include when (align- top) {
31
+ align-items : flex-start ;
32
+ }
33
+
30
34
@include when (align- middle) {
31
35
align-items : center ;
32
36
}
You can’t perform that action at this time.
0 commit comments