mirror of
https://github.com/ElemeFE/element.git
synced 2025-12-16 11:44:01 +08:00
Notification: fix style when message prop is omitted
This commit is contained in:
@@ -25,7 +25,7 @@ const Notification = function(options) {
|
||||
|
||||
if (isVNode(options.message)) {
|
||||
instance.$slots.default = [options.message];
|
||||
options.message = '';
|
||||
options.message = 'REPLACED_BY_VNODE';
|
||||
}
|
||||
instance.id = id;
|
||||
instance.vm = instance.$mount();
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
</i>
|
||||
<div class="el-notification__group" :class="{ 'is-with-icon': typeClass || iconClass }">
|
||||
<h2 class="el-notification__title" v-text="title"></h2>
|
||||
<div class="el-notification__content">
|
||||
<div class="el-notification__content" v-show="message">
|
||||
<slot>
|
||||
<p v-if="!dangerouslyUseHTMLString">{{ message }}</p>
|
||||
<p v-else v-html="message"></p>
|
||||
|
||||
Reference in New Issue
Block a user