Skip to content

Commit

Permalink
refactor(server-renderer): slotScopeId scopeId uses optional argument…
Browse files Browse the repository at this point in the history
… syntax (#7891)
  • Loading branch information
baiwusanyu-c authored May 27, 2024
1 parent 0f66de9 commit a498b4e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/server-renderer/src/render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a498b4e

Please sign in to comment.