Commit 6280336c authored by Leopoldthecoder's avatar Leopoldthecoder Committed by 杨奕

Message: add content right padding when closable

parent 08f9c748
...@@ -5,6 +5,7 @@ ...@@ -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"
......
...@@ -23,6 +23,12 @@ ...@@ -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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment