update Message style #1881

This commit is contained in:
梁灏 2017-09-19 15:51:52 +08:00
parent 297648f1e6
commit e7ad415432
2 changed files with 7 additions and 4 deletions

View file

@ -16,7 +16,7 @@
content: '这是一条普通提示2',
duration: 500,
onClose () {
console.log(123)
// console.log(123)
},
closable: true
})

View file

@ -104,9 +104,12 @@
},
handleLeave (el) {
if (this.type === 'message') {
el.style.height = 0;
el.style.paddingTop = 0;
el.style.paddingBottom = 0;
// Message使 js
if (document.getElementsByClassName('ivu-message-notice').length !== 1) {
el.style.height = 0;
el.style.paddingTop = 0;
el.style.paddingBottom = 0;
}
}
}
},