Message: add content right padding when closable

pull/9267/head
Leopoldthecoder 2018-01-14 10:44:37 +08:00 committed by 杨奕
parent 08f9c7487a
commit 6280336ca2
2 changed files with 7 additions and 0 deletions

View File

@ -5,6 +5,7 @@
'el-message', 'el-message',
type && !iconClass ? `el-message--${ type }` : '', type && !iconClass ? `el-message--${ type }` : '',
center ? 'is-center' : '', center ? 'is-center' : '',
showClose ? 'is-closable' : '',
customClass]" customClass]"
v-show="visible" v-show="visible"
@mouseenter="clearTimer" @mouseenter="clearTimer"

View File

@ -23,6 +23,12 @@
justify-content: center; justify-content: center;
} }
@include when(closable) {
.el-message__content {
padding-right: 16px;
}
}
p { p {
margin: 0; margin: 0;
} }