fix(ssr): fix class/style rendering + ssrRenderComponent export name
This commit is contained in:
@@ -176,10 +176,12 @@ export const ssrTransformElement: NodeTransform = (node, context) => {
|
||||
// static key attr
|
||||
if (attrName === 'class') {
|
||||
openTag.push(
|
||||
` class="`,
|
||||
(dynamicClassBinding = createCallExpression(
|
||||
context.helper(SSR_RENDER_CLASS),
|
||||
[value]
|
||||
))
|
||||
)),
|
||||
`"`
|
||||
)
|
||||
} else if (attrName === 'style') {
|
||||
if (dynamicStyleBinding) {
|
||||
@@ -187,10 +189,12 @@ export const ssrTransformElement: NodeTransform = (node, context) => {
|
||||
mergeCall(dynamicStyleBinding, value)
|
||||
} else {
|
||||
openTag.push(
|
||||
` style="`,
|
||||
(dynamicStyleBinding = createCallExpression(
|
||||
context.helper(SSR_RENDER_STYLE),
|
||||
[value]
|
||||
))
|
||||
)),
|
||||
`"`
|
||||
)
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user