From: Evan You Date: Fri, 6 Dec 2024 14:50:53 +0000 (+0800) Subject: wip: respect rootProps in createVaporApp X-Git-Tag: v3.6.0-alpha.1~16^2~218 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68aa9bd768a40df6bdadb02eef3feec8394df126;p=thirdparty%2Fvuejs%2Fcore.git wip: respect rootProps in createVaporApp --- diff --git a/packages/runtime-vapor/src/apiCreateApp.ts b/packages/runtime-vapor/src/apiCreateApp.ts index 66c16be45b..55b0f7a25f 100644 --- a/packages/runtime-vapor/src/apiCreateApp.ts +++ b/packages/runtime-vapor/src/apiCreateApp.ts @@ -7,6 +7,7 @@ import { createAppAPI, normalizeContainer, } from '@vue/runtime-dom' +import type { RawProps } from './componentProps' let _createApp: CreateAppFunction @@ -15,7 +16,7 @@ const mountApp: AppMountFn = (app, container) => { if (container.nodeType === 1 /* Node.ELEMENT_NODE */) { container.textContent = '' } - const instance = createComponent(app._component) + const instance = createComponent(app._component, app._props as RawProps) insert(instance, container) return instance }