Skip to content

Commit

Permalink
fix: returned render method
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszflorczak authored Feb 15, 2023
1 parent 45354b4 commit 32eff1f
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,23 +140,23 @@ export default defineComponent({
}
})

return () => [
withDirectives(h(As, {
...attrs,
'data-brr': props.ratio,
'ref': wrapperRef,
'style': {
...attrs.style as Record<string, string>,
display: 'inline-block',
verticalAlign: 'top',
textDecoration: 'inherit',
},
}, slots.default?.()), [
[vBindOnce, ['data-br', id]],
]),
return () => withDirectives(h(tag, {
...attrs,
'data-brr': props.ratio,
'ref': wrapperRef,
'style': {
...attrs.style as Record<string, string>,
display: 'inline-block',
verticalAlign: 'top',
textDecoration: 'inherit',
},
}, [
slots.default?.(),
withDirectives(createScriptElement(hasProvider, `self.${SYMBOL_KEY}(document.currentScript.dataset.ssrId,${props.ratio})`), [
[vBindOnce, ['data-ssr-id', id]],
]),
]
[vBindOnce, ['data-ssr-id', id]]],
),
]), [
[vBindOnce, ['data-br', id]],
])
},
})

0 comments on commit 32eff1f

Please sign in to comment.