From a498b4ef15554689acc50c91a093758f1858d393 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E9=9B=BE=E4=B8=89=E8=AF=AD?= <32354856+baiwusanyu-c@users.noreply.github.com> Date: Mon, 27 May 2024 17:06:48 +0800 Subject: [PATCH] refactor(server-renderer): slotScopeId scopeId uses optional argument syntax (#7891) --- packages/server-renderer/src/render.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/server-renderer/src/render.ts b/packages/server-renderer/src/render.ts index 3029df6e540..28a78c66843 100644 --- a/packages/server-renderer/src/render.ts +++ b/packages/server-renderer/src/render.ts @@ -275,7 +275,7 @@ export function renderVNodeChildren( push: PushFn, children: VNodeArrayChildren, parentComponent: ComponentInternalInstance, - slotScopeId: string | undefined, + slotScopeId?: string, ) { for (let i = 0; i < children.length; i++) { renderVNode(push, normalizeVNode(children[i]), parentComponent, slotScopeId) @@ -286,7 +286,7 @@ function renderElementVNode( push: PushFn, vnode: VNode, parentComponent: ComponentInternalInstance, - slotScopeId: string | undefined, + slotScopeId?: string, ) { const tag = vnode.type as string let { props, children, shapeFlag, scopeId, dirs } = vnode @@ -371,7 +371,7 @@ function renderTeleportVNode( push: PushFn, vnode: VNode, parentComponent: ComponentInternalInstance, - slotScopeId: string | undefined, + slotScopeId?: string, ) { const target = vnode.props && vnode.props.to const disabled = vnode.props && vnode.props.disabled