mirror of
https://github.com/element-plus/element-plus.git
synced 2024-11-21 01:02:59 +08:00
fix(components): [row] align="top" is not working properly (#13550)
* fix(components): [row] align='top' is not working properly * fix(components): [row] align="top" is not working properly
This commit is contained in:
parent
a434afd739
commit
49e6cc33c5
@ -42,7 +42,6 @@ export const rowProps = buildProps({
|
||||
align: {
|
||||
type: String,
|
||||
values: RowAlign,
|
||||
default: 'top',
|
||||
},
|
||||
} as const)
|
||||
|
||||
|
@ -37,6 +37,6 @@ const style = computed(() => {
|
||||
const rowKls = computed(() => [
|
||||
ns.b(),
|
||||
ns.is(`justify-${props.justify}`, props.justify !== 'start'),
|
||||
ns.is(`align-${props.align}`, props.align !== 'top'),
|
||||
ns.is(`align-${props.align}`, !!props.align),
|
||||
])
|
||||
</script>
|
||||
|
@ -23,6 +23,9 @@
|
||||
@include when(justify-space-evenly) {
|
||||
justify-content: space-evenly;
|
||||
}
|
||||
@include when(align-top) {
|
||||
align-items: flex-start;
|
||||
}
|
||||
@include when(align-middle) {
|
||||
align-items: center;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user