mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-12-01 19:57:48 +08:00
Descriptions: fix label slot bug (#21462)
This commit is contained in:
parent
fa76e11cda
commit
bb35f474cd
@ -100,7 +100,7 @@ export default {
|
||||
[item.labelClassName]: true
|
||||
}}
|
||||
style={item.labelStyle}
|
||||
>{item.props.label}</span>
|
||||
>{item.label}</span>
|
||||
<span
|
||||
class={['el-descriptions-item__content', item.contentClassName]}
|
||||
style={item.contentStyle}
|
||||
|
@ -2,9 +2,19 @@
|
||||
@import 'common/var';
|
||||
|
||||
@include b(descriptions-item) {
|
||||
vertical-align: top;
|
||||
|
||||
@include e(container) {
|
||||
display: flex;
|
||||
|
||||
.el-descriptions-item__label,
|
||||
.el-descriptions-item__content {
|
||||
display: inline-flex;
|
||||
align-items: baseline;
|
||||
}
|
||||
.el-descriptions-item__content {
|
||||
flex: 1;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(label) {
|
||||
@ -20,13 +30,13 @@
|
||||
color: $--color-text-secondary;
|
||||
background: $--descriptions-item-bordered-label-background;
|
||||
}
|
||||
|
||||
&:not(.is-bordered-label) {
|
||||
margin-right: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(content) {
|
||||
|
||||
word-break: break-word;
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user