mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
Added support for placeholder slot
This commit is contained in:
parent
b794a89fae
commit
2b51eb84db
@ -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