From: daiwei Date: Mon, 26 May 2025 08:38:51 +0000 (+0800) Subject: wip: handling vapor props X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=594ffae017454fe15add23e14fbe22ae5581ebee;p=thirdparty%2Fvuejs%2Fcore.git wip: handling vapor props --- diff --git a/packages/runtime-core/src/vnode.ts b/packages/runtime-core/src/vnode.ts index dc381cb12c..4b31151da2 100644 --- a/packages/runtime-core/src/vnode.ts +++ b/packages/runtime-core/src/vnode.ts @@ -666,12 +666,7 @@ export function guardReactiveProps( props: (Data & VNodeProps) | null, ): (Data & VNodeProps) | null { if (!props) return null - return isProxy(props) || - isInternalObject(props) || - // handling for vapor props - props.__vapor - ? extend({}, props) - : props + return isProxy(props) || isInternalObject(props) ? extend({}, props) : props } export function cloneVNode( diff --git a/packages/runtime-vapor/src/componentProps.ts b/packages/runtime-vapor/src/componentProps.ts index bde2a2ffc4..a5e9daad22 100644 --- a/packages/runtime-vapor/src/componentProps.ts +++ b/packages/runtime-vapor/src/componentProps.ts @@ -172,7 +172,6 @@ export function getPropsProxyHandlers( export function getAttrFromRawProps(rawProps: RawProps, key: string): unknown { if (key === '$') return - if (key === '__vapor') return true // need special merging behavior for class & style const merged = key === 'class' || key === 'style' ? ([] as any[]) : undefined const dynamicSources = rawProps.$