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', content: '这是一条普通提示2',
duration: 500, duration: 500,
onClose () { onClose () {
console.log(123) // console.log(123)
}, },
closable: true closable: true
}) })

View file

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