adobe / adobe/react-webcomponent
@byContent not work inner loop element
未关闭
- 主要语言
- JavaScript
- 星标
- 104
- 派生
- 20
- PR 合并指标
- 30 天内没有已合并 PR
描述
- The @byContent() does not work inner loop element:
I implement as example codes:
`class ComponentItemModel extends DOMModel {
@byContent('section') content;
}
class ComponentModel extends DOMModel {
@byChildrenRefArray('component-item', ComponentItemModel) items;
}`
My html is as below:
`
my content
my content
`
- When I run the page to test them, the page always loading.
贡献指南
调研方向
首先定位 @byContent 和 @byChildrenRefArray 的实现,然后复现给出的嵌套组件项示例。完成的标志是页面不再卡在加载状态,并且内层循环中的每个元素都通过 @byContent('section') 暴露其 section 内容。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript
- 领域
- frontend
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100