mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
Merge pull request #2232 from anteriovieira/patch-1
Added support for placeholder slot
This commit is contained in:
commit
994c3d252e
@ -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
|
||||
)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user