]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
wip: handling vapor props
authordaiwei <daiwei521@126.com>
Mon, 26 May 2025 08:38:51 +0000 (16:38 +0800)
committerdaiwei <daiwei521@126.com>
Mon, 26 May 2025 08:38:51 +0000 (16:38 +0800)
packages/runtime-core/src/vnode.ts
packages/runtime-vapor/src/componentProps.ts

index dc381cb12c7feda806dfadb7dae8fc71a3c8f485..4b31151da228a0aa7e1f81e1f3e738f7aed434fa 100644 (file)
@@ -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<T, U>(
index bde2a2ffc444f1ec2fd1d40c9ce869a46e34f2da..a5e9daad229ca25c684614de03d195ebc2aee985 100644 (file)
@@ -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.$