udpate notice

This commit is contained in:
zhigang.li 2017-12-21 16:42:23 +08:00
parent baa75b0aef
commit 3f7a5f1a27
7 changed files with 22 additions and 7 deletions

View file

@ -54,6 +54,7 @@
render: {
type: Function
},
hasTitle: Boolean,
styles: {
type: Object,
default: function() {
@ -111,7 +112,7 @@
contentWithIcon () {
return [
this.withIcon ? `${this.prefixCls}-content-with-icon` : '',
this.render && !this.title && this.withIcon ? `${this.prefixCls}-content-with-render-notitle` : ''
!this.hasTitle && this.withIcon ? `${this.prefixCls}-content-with-render-notitle` : ''
];
},
messageClasses () {

View file

@ -9,6 +9,7 @@
:content="notice.content"
:duration="notice.duration"
:render="notice.render"
:has-title="notice.hasTitle"
:withIcon="notice.withIcon"
:closable="notice.closable"
:name="notice.name"