chore: update

This commit is contained in:
daiwei 2025-06-19 15:02:51 +08:00
parent a48e32f8c9
commit dc3f912739
2 changed files with 5 additions and 7 deletions

View File

@ -270,7 +270,7 @@ export function createComponent(
) {
const el = getRootElement(instance)
if (el) {
applyFallthroughProps(el, instance.attrs)
renderEffect(() => applyFallthroughProps(el, instance.attrs))
}
}
@ -297,11 +297,9 @@ export function applyFallthroughProps(
block: Block,
attrs: Record<string, any>,
): void {
renderEffect(() => {
isApplyingFallthroughProps = true
setDynamicProps(block as Element, [attrs])
isApplyingFallthroughProps = false
})
isApplyingFallthroughProps = true
setDynamicProps(block as Element, [attrs])
isApplyingFallthroughProps = false
}
/**

View File

@ -194,7 +194,7 @@ export function applyTransitionHooks(
if (fallthroughAttrs && instance.hasFallthrough) {
// mark single root
;(child as any).$root = true
applyFallthroughProps(child, instance.attrs)
renderEffect(() => applyFallthroughProps(child, instance.attrs))
}
return resolvedHooks