Merge pull request #2232 from anteriovieira/patch-1

Added support for placeholder slot
This commit is contained in:
Sébastien Chopin 2017-11-24 15:34:10 +01:00 committed by GitHub
commit 994c3d252e
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 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
)
} }
} }