Added support for placeholder slot

This commit is contained in:
Antério Vieira 2017-11-24 12:32:52 -02:00 committed by GitHub
parent b794a89fae
commit 2b51eb84db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,6 +24,13 @@ export default {
}
return this.$slots.default && this.$slots.default[0]
}
return h('div', { class: { 'no-ssr-placeholder': true } }, this.placeholder)
return h(
'div',
{
class: ['no-ssr-placeholder']
},
this.$slots.placeholder || this.placeholder
)
}
}