Open
Description
// child.js
Component({
options: {
virtualHost: true,
}
})
const id = simulate.load({
template: `<child class="son" />`,
})
const comp = simulate.render(id);
comp.attach(document.createElement('parent-wrapper'));
const $search = comp.querySelector('.son'); // undefined
相关问题在基础库已经修复,但单测环境没有处理。
https://developers.weixin.qq.com/community/develop/issue/287
Metadata
Metadata
Assignees
Labels
No labels