Commit 91fb5c55 authored by iamkun's avatar iamkun Committed by hetech

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

fix #14015
parent 651438ee
...@@ -11,9 +11,8 @@ ...@@ -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>
......
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