Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dev] 移除style并转为使用props #14

Open
2 of 8 tasks
Fancyflame opened this issue Oct 5, 2024 · 0 comments
Open
2 of 8 tasks

[dev] 移除style并转为使用props #14

Fancyflame opened this issue Oct 5, 2024 · 0 comments

Comments

@Fancyflame
Copy link
Owner

Fancyflame commented Oct 5, 2024

不再使用style了,多一个额外模块增加管理困难,改为全部合入props。同时props依赖的数据流系统需要改进。

任务列表

  • 移除style
  • ElementModel上添加child_props,以供父元素读取
  • 数据流更新方式改为先脏标记后处理,来避免单周期重复更新
  • 数据流增加DirtyFlag类型,用于仅接受脏标记不更新,用于懒更新
  • 所有数据流类型行为改变:改为主动删除对自己依赖项的监听,同时不再主动删除依赖于自己的监听器
  • props改为建造者模式(Default::default().props1(xxx).props2(xxx)
  • Wire<T>类型实现From<T>以接受常量
  • 所有props的数据流改为手动创建(包括repeat结构),并添加clone参数
@Fancyflame Fancyflame changed the title **[dev]** 移除style并转为使用props ** [dev] ** 移除style并转为使用props Oct 5, 2024
@Fancyflame Fancyflame changed the title ** [dev] ** 移除style并转为使用props [dev] 移除style并转为使用props Oct 5, 2024
Fancyflame added a commit that referenced this issue Oct 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant