mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-12-02 04:08:10 +08:00
MessageBox: fix icon position error (#17410)
This commit is contained in:
parent
c002304a8e
commit
4db58f39e7
@ -28,15 +28,17 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="el-message-box__content">
|
<div class="el-message-box__content">
|
||||||
<div
|
<div class="el-message-box__container">
|
||||||
:class="['el-message-box__status', icon]"
|
<div
|
||||||
v-if="icon && !center && message !== ''">
|
:class="['el-message-box__status', icon]"
|
||||||
</div>
|
v-if="icon && !center && message !== ''">
|
||||||
<div class="el-message-box__message" v-if="message !== ''">
|
</div>
|
||||||
<slot>
|
<div class="el-message-box__message" v-if="message !== ''">
|
||||||
<p v-if="!dangerouslyUseHTMLString">{{ message }}</p>
|
<slot>
|
||||||
<p v-else v-html="message"></p>
|
<p v-if="!dangerouslyUseHTMLString">{{ message }}</p>
|
||||||
</slot>
|
<p v-else v-html="message"></p>
|
||||||
|
</slot>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="el-message-box__input" v-show="showInput">
|
<div class="el-message-box__input" v-show="showInput">
|
||||||
<el-input
|
<el-input
|
||||||
|
@ -73,11 +73,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@include e(content) {
|
@include e(content) {
|
||||||
position: relative;
|
|
||||||
padding: 10px $--msgbox-padding-primary;
|
padding: 10px $--msgbox-padding-primary;
|
||||||
color: $--messagebox-content-color;
|
color: $--messagebox-content-color;
|
||||||
font-size: $--messagebox-content-font-size;
|
font-size: $--messagebox-content-font-size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@include e(container) {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
@include e(input) {
|
@include e(input) {
|
||||||
padding-top: 15px;
|
padding-top: 15px;
|
||||||
|
Loading…
Reference in New Issue
Block a user