Alert: update alert description default slot class (#14488)

fix #14015
pull/14528/head
iamkun 2019-02-28 16:08:09 +08:00 committed by hetech
parent 651438eef3
commit 91fb5c5571
1 changed files with 2 additions and 3 deletions

View File

@ -11,9 +11,8 @@
<span class="el-alert__title" :class="[ isBoldTitle ]" v-if="title || $slots.title"> <span class="el-alert__title" :class="[ isBoldTitle ]" v-if="title || $slots.title">
<slot name="title">{{ title }}</slot> <slot name="title">{{ title }}</slot>
</span> </span>
<slot> <p class="el-alert__description" v-if="$slots.default && !description"><slot></slot></p>
<p class="el-alert__description" v-if="description">{{ description }}</p> <p class="el-alert__description" v-if="description && !$slots.default">{{ description }}</p>
</slot>
<i class="el-alert__closebtn" :class="{ 'is-customed': closeText !== '', 'el-icon-close': closeText === '' }" v-show="closable" @click="close()">{{closeText}}</i> <i class="el-alert__closebtn" :class="{ 'is-customed': closeText !== '', 'el-icon-close': closeText === '' }" v-show="closable" @click="close()">{{closeText}}</i>
</div> </div>
</div> </div>