wip: inheritAttrs

This commit is contained in:
Evan You 2024-12-03 00:30:33 +08:00
parent 435ca32ff8
commit 1636dce788
No known key found for this signature in database
GPG Key ID: 00E9AB7A6704CE0A
1 changed files with 10 additions and 8 deletions

View File

@ -48,14 +48,16 @@ export function createComponentSimple(
) as Block
// single root, inherit attrs
// let i
// if (component.inheritAttrs !== false && node instanceof Element) {
// renderEffectSimple(() => {
// // for (const key in instance.attrs) {
// // i = key
// // }
// })
// }
if (
rawProps &&
component.inheritAttrs !== false &&
node instanceof Element &&
Object.keys(instance.attrs).length
) {
renderEffectSimple(() => {
// TODO
})
}
instance.scope.off()
currentInstance = prevInstance