chore: update
This commit is contained in:
parent
a48e32f8c9
commit
dc3f912739
|
@ -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
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue