walkRawProps,
} from './componentProps'
import { type RawSlots, isDynamicSlotFn } from './componentSlots'
-import { setInheritAttrs, withAttrs } from './componentAttrs'
+import { withAttrs } from './componentAttrs'
import { isString } from '@vue/shared'
import { renderEffect } from './renderEffect'
import { normalizeBlock } from './dom/element'
}
if (singleRoot) {
- setInheritAttrs(true)
+ instance.dynamicAttrs = true
}
return el
if (key === 'class' || key === 'style') {
;(key === 'class' ? classes : styles).push(
- hasDynamicProps ? (getter ? value : () => value) : value,
+ hasDynamicProps
+ ? getter
+ ? value
+ : () => value
+ : getter
+ ? value()
+ : value,
)
} else if (getter) {
Object.defineProperty(attrs, key, {