Collapse: slot header use display flex instead of float (#13277) (#13290)

pull/13319/head
Harlan 2018-11-06 17:39:33 +08:00 committed by hetech
parent 9a31f5f6e6
commit 717b3480b9
2 changed files with 4 additions and 4 deletions

View File

@ -20,11 +20,11 @@
@focus="handleFocus"
@blur="focusing = false"
>
<slot name="title">{{title}}</slot>
<i
class="el-collapse-item__arrow el-icon-arrow-right"
:class="{'is-active': isActive}">
</i>
<slot name="title">{{title}}</slot>
</div>
</div>
<el-collapse-transition>

View File

@ -8,6 +8,8 @@
}
@include b(collapse-item) {
@include e(header) {
display: flex;
align-items: center;
height: $--collapse-header-height;
line-height: $--collapse-header-height;
background-color: $--collapse-header-fill;
@ -19,10 +21,8 @@
transition: border-bottom-color .3s;
outline: none;
@include e(arrow) {
margin-right: 8px;
margin: 0 8px 0 auto;
transition: transform .3s;
float: right;
line-height: 48px;
font-weight: 300;
@include when(active) {
transform: rotate(90deg);