make Message and Notice support render

This commit is contained in:
zhigang.li 2017-12-20 16:19:25 +08:00
parent 8a0cb3ce80
commit b24be35a7e
8 changed files with 99 additions and 16 deletions

View file

@ -13,12 +13,19 @@
info () {
// this.$Message.info('');
this.$Message.success({
content: '这是一条普通提示2',
// content: '2',
duration: 500,
onClose () {
// console.log(123)
},
closable: true
closable: true,
render (h) {
return h('Button',{
props: {
type: 'primary'
}
}, '这是render出来的');
}
})
},
success () {