RubyLouvre/anu

View on GitHub
effect.md

Summary

Maintainability
Test Coverage

# effectTag的所有含义与可应用的组件

| 操作       | 含 义          | No  | class Component | stateless | native Component | native text |
|----------|--------------|-----|-----------------|-----------|------------------|-------------|
| NOWORK   | 用于叠加其他任务     | 1   | ✔️              | ✔️        | ✔️               | ✔️          |
| WORKING  | 决定程序是否继续往下遍历 | 2   | ✔️              | ✔️        | ✔️               | ✔️          |
| PLACE    | 插入或移动        | 3   | ✖️              | ✖️        | ✔️               | ✔️          |
| CONTENT  | 修改文本         | 5   | ✖️              | ✖️        | ✖️               | ✔️          |
| ATTR     | 修改属性         | 7   | ✖️              | ✖️        | ✔️               | ✖️          |
| DUPLEX   | 更新受控属性       | 9   | ✖️              | ✖️        | ✔️               | ✔️          |
| HOOK     | 生命周期回调       | 11  | ✔️              | ✖️        | ✖️               | ✖️          |
| REF      | 设置引用         | 13  | ✔️              | ✔️        | ✔️               | ✖️          |
| DETACH   | 移出DOM树       | 17  | ✖️              | ✖️        | ✔️               | ✔️          |
| CALLBACK | 方法回调         | 19  | ✔️              | ✔️        | ✔️               | ✔️          |
| CAPTURE  | 错误处理         | 23  | ✔️              | ✖️        | ✖️               | ✖️          |