This repository was archived by the owner on Jul 19, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
packages/runtime-vapor/src Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import {
12
12
walkRawProps ,
13
13
} from './componentProps'
14
14
import { type RawSlots , isDynamicSlotFn } from './componentSlots'
15
- import { setInheritAttrs , withAttrs } from './componentAttrs'
15
+ import { withAttrs } from './componentAttrs'
16
16
import { isString } from '@vue/shared'
17
17
import { renderEffect } from './renderEffect'
18
18
import { normalizeBlock } from './dom/element'
@@ -90,7 +90,7 @@ function fallbackComponent(
90
90
}
91
91
92
92
if ( singleRoot ) {
93
- setInheritAttrs ( true )
93
+ instance . dynamicAttrs = true
94
94
}
95
95
96
96
return el
Original file line number Diff line number Diff line change @@ -60,7 +60,13 @@ export function patchAttrs(
60
60
61
61
if ( key === 'class' || key === 'style' ) {
62
62
; ( key === 'class' ? classes : styles ) . push (
63
- hasDynamicProps ? ( getter ? value : ( ) => value ) : value ,
63
+ hasDynamicProps
64
+ ? getter
65
+ ? value
66
+ : ( ) => value
67
+ : getter
68
+ ? value ( )
69
+ : value ,
64
70
)
65
71
} else if ( getter ) {
66
72
Object . defineProperty ( attrs , key , {
You can’t perform that action at this time.
0 commit comments