MessageBox: fix multiple instances with duplicate title (#10126)

pull/10140/head
Pocho 2018-03-13 13:43:51 +08:00 committed by 杨奕
parent 9f09bd3b57
commit 6ccca79c67
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
const defaults = {
title: undefined,
title: null,
message: '',
type: '',
showInput: false,

View File

@ -10,7 +10,7 @@
:aria-label="title || 'dialog'"
>
<div class="el-message-box" :class="[customClass, center && 'el-message-box--center']">
<div class="el-message-box__header" v-if="title !== undefined">
<div class="el-message-box__header" v-if="title !== null">
<div class="el-message-box__title">
<div class="el-message-box__status" :class="[ typeClass ]" v-if="typeClass && center"></div>
<span>{{ title }}</span>