Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Element
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林焕东
Element
Commits
5ba0f1c2
Commit
5ba0f1c2
authored
Jun 07, 2021
by
好多大米
Committed by
GitHub
Jun 07, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Row: fix align top (#20963)
parent
e1990a70
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
9 deletions
+10
-9
examples/docs/en-US/layout.md
examples/docs/en-US/layout.md
+1
-1
examples/docs/es/layout.md
examples/docs/es/layout.md
+1
-1
examples/docs/fr-FR/layout.md
examples/docs/fr-FR/layout.md
+1
-1
examples/docs/zh-CN/layout.md
examples/docs/zh-CN/layout.md
+1
-1
packages/row/src/row.js
packages/row/src/row.js
+2
-5
packages/theme-chalk/src/row.scss
packages/theme-chalk/src/row.scss
+4
-0
No files found.
examples/docs/en-US/layout.md
View file @
5ba0f1c2
...
...
@@ -337,7 +337,7 @@ The classes are:
| gutter | grid spacing | number | — | 0 |
| type | layout mode, you can use flex, works in modern browsers | string | — | — |
| justify | horizontal alignment of flex layout | string | start/end/center/space-around/space-between | start |
| align | vertical alignment of flex layout | string | top/middle/bottom |
top
|
| align | vertical alignment of flex layout | string | top/middle/bottom |
—
|
| tag | custom element tag | string |
*
| div |
### Col Attributes
...
...
examples/docs/es/layout.md
View file @
5ba0f1c2
...
...
@@ -338,7 +338,7 @@ Las clases son:
| gutter | espaciado de la grilla | number | — | 0 |
| type | modo del layout , puedes usar flex, funciona en navegadores modernos | string | — | — |
| justify | alineación horizontal del layout flex | string | start/end/center/space-around/space-between | start |
| align | alineación vertical del layout flex | string | top/middle/bottom |
top
|
| align | alineación vertical del layout flex | string | top/middle/bottom |
—
|
| tag | tag de elemento propio | string |
*
| div |
### Atributos Col
...
...
examples/docs/fr-FR/layout.md
View file @
5ba0f1c2
...
...
@@ -338,7 +338,7 @@ Ces classes sont:
| gutter | Espacement de la grille. | number | — | 0 |
| type | Mode de mise en page. Vous pouvez utiliser flex, qui fonctionne sur les navigateurs modernes. | string | — | — |
| justify | Alignement horizontal pour le mise en page flex. | string | start/end/center/space-around/space-between | start |
| align | Alignement vertical pour la mise en page flex. | string | top/middle/bottom |
top
|
| align | Alignement vertical pour la mise en page flex. | string | top/middle/bottom |
—
|
| tag | Élément de tag personnalisé. | string |
*
| div |
### Attributs des colonnes
...
...
examples/docs/zh-CN/layout.md
View file @
5ba0f1c2
...
...
@@ -336,7 +336,7 @@ import 'element-ui/lib/theme-chalk/display.css';
| gutter | 栅格间隔 | number | — | 0 |
| type | 布局模式,可选 flex,现代浏览器下有效 | string | — | — |
| justify | flex 布局下的水平排列方式 | string | start/end/center/space-around/space-between | start |
| align | flex 布局下的垂直排列方式 | string | top/middle/bottom |
top
|
| align | flex 布局下的垂直排列方式 | string | top/middle/bottom |
—
|
| tag | 自定义元素标签 | string |
*
| div |
### Col Attributes
...
...
packages/row/src/row.js
View file @
5ba0f1c2
...
...
@@ -14,10 +14,7 @@ export default {
type
:
String
,
default
:
'
start
'
},
align
:
{
type
:
String
,
default
:
'
top
'
}
align
:
String
},
computed
:
{
...
...
@@ -38,7 +35,7 @@ export default {
class
:
[
'
el-row
'
,
this
.
justify
!==
'
start
'
?
`is-justify-
${
this
.
justify
}
`
:
''
,
this
.
align
!==
'
top
'
?
`is-align-
${
this
.
align
}
`
:
''
,
this
.
align
?
`is-align-
${
this
.
align
}
`
:
''
,
{
'
el-row--flex
'
:
this
.
type
===
'
flex
'
}
],
style
:
this
.
style
...
...
packages/theme-chalk/src/row.scss
View file @
5ba0f1c2
...
...
@@ -27,6 +27,10 @@
justify-content
:
space-around
;
}
@include
when
(
align-top
)
{
align-items
:
flex-start
;
}
@include
when
(
align-middle
)
{
align-items
:
center
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment