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

View File

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