adobe / adobe/react-webcomponent

@byContent should have a default functionality when no parameters are passed

未关闭
#10 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
104
派生
20
PR 合并指标
30 天内没有已合并 PR

描述

Like the @byAttrVal annotation, when no parameters are passed, there is a default behaviour (in that case, matching the attribute with the same name of the property).

When I use @byContent without parameters, `@byContent()`, I expect a list of nodes, or a node (like a React.Fragment) wrapping everything inside the web component, maybe like the normal `this.props.children` property.

贡献指南

打开贡献指南

调研方向

首先定位注解 @byContent 和 @byAttrVal 的实现及其测试,然后比较它们在不带参数调用时各自的行为。明确结果应当是一个节点、一个列表,还是一个包含 web component 子元素的 React.Fragment,并在该行为完成规范定义、实现和测试覆盖后,视为工作完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript, react
领域
frontend, web-dev
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
基本清楚
新手友好度
30/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。