]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
refactor(server-renderer): slotScopeId scopeId uses optional argument syntax (#7891)
author白雾三语 <32354856+baiwusanyu-c@users.noreply.github.com>
Mon, 27 May 2024 09:06:48 +0000 (17:06 +0800)
committerGitHub <noreply@github.com>
Mon, 27 May 2024 09:06:48 +0000 (17:06 +0800)
packages/server-renderer/src/render.ts

index 3029df6e54058ec1414b629cbd96e856123b18dd..28a78c66843226403cf073fc681f4baee7ab2a4e 100644 (file)
@@ -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