mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-18 17:35:57 +00:00
fix(nuxt3): pass css text into children props (#1635)
This commit is contained in:
parent
3056c26a48
commit
bd654364b9
@ -182,7 +182,7 @@ export const Style = defineComponent({
|
|||||||
if (process.dev && typeof textContent !== 'string') {
|
if (process.dev && typeof textContent !== 'string') {
|
||||||
console.error('<Style> can only take a string in its default slot.')
|
console.error('<Style> can only take a string in its default slot.')
|
||||||
}
|
}
|
||||||
style.content = textContent
|
style.children = textContent
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
style: [style]
|
style: [style]
|
||||||
|
Loading…
Reference in New Issue
Block a user