Skip to content
This repository was archived by the owner on Jul 19, 2025. It is now read-only.

Commit a498b4e

Browse files
authored
refactor(server-renderer): slotScopeId scopeId uses optional argument syntax (#7891)
1 parent 0f66de9 commit a498b4e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/server-renderer/src/render.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ export function renderVNodeChildren(
275275
push: PushFn,
276276
children: VNodeArrayChildren,
277277
parentComponent: ComponentInternalInstance,
278-
slotScopeId: string | undefined,
278+
slotScopeId?: string,
279279
) {
280280
for (let i = 0; i < children.length; i++) {
281281
renderVNode(push, normalizeVNode(children[i]), parentComponent, slotScopeId)
@@ -286,7 +286,7 @@ function renderElementVNode(
286286
push: PushFn,
287287
vnode: VNode,
288288
parentComponent: ComponentInternalInstance,
289-
slotScopeId: string | undefined,
289+
slotScopeId?: string,
290290
) {
291291
const tag = vnode.type as string
292292
let { props, children, shapeFlag, scopeId, dirs } = vnode
@@ -371,7 +371,7 @@ function renderTeleportVNode(
371371
push: PushFn,
372372
vnode: VNode,
373373
parentComponent: ComponentInternalInstance,
374-
slotScopeId: string | undefined,
374+
slotScopeId?: string,
375375
) {
376376
const target = vnode.props && vnode.props.to
377377
const disabled = vnode.props && vnode.props.disabled

0 commit comments

Comments
 (0)