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

refactor: 优化组件间 provide & inject #2681

Merged
merged 22 commits into from
Nov 28, 2023
Merged

Conversation

eiinu
Copy link
Member

@eiinu eiinu commented Nov 21, 2023

这个 PR 做了什么? (简要描述所做更改)

父子组件使用统一的工具函数。

  • Form、FormItem
  • Grid、GridItem
  • Menu、MenuItem
  • Swiper、SwiperItem
  • Collapse、CollapseItem
  • Tabs、TabPane
  • Checkbox、CheckboxGroup

这个 PR 是什么类型? (至少选择一个)

  • 新特性提交
  • 日常 bug 修复
  • 站点、文档改进
  • 演示代码改进
  • 组件样式/交互改进
  • TypeScript 定义更新
  • 包体积优化
  • 性能优化
  • 功能增强
  • 国际化改进
  • 代码重构
  • 代码风格优化
  • 测试用例
  • 分支合并
  • 其他改动(是关于什么的改动?)

这个 PR 涉及以下平台:

  • NutUI 4.0 H5
  • NutUI 4.0 小程序
  • NutUI 3.0 H5
  • NutUI 3.0 小程序

这个 PR 是否已自测:

@eiinu eiinu added this to the v4.2.3 milestone Nov 21, 2023
Copy link

codecov bot commented Nov 28, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (3250f86) 85.09% compared to head (6a0160a) 85.09%.

Additional details and impacted files
@@            Coverage Diff             @@
##               v4    #2681      +/-   ##
==========================================
- Coverage   85.09%   85.09%   -0.01%     
==========================================
  Files         152      167      +15     
  Lines       21133    21132       -1     
  Branches     2383     2376       -7     
==========================================
- Hits        17983    17982       -1     
  Misses       3145     3145              
  Partials        5        5              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@eiinu eiinu changed the title feat: add useParent & useChildren refactor: 优化组件间 provide & inject Nov 28, 2023
@eiinu eiinu merged commit d217b2a into jdf2e:v4 Nov 28, 2023
4 of 5 checks passed
@eiinu eiinu deleted the feat-use-relation branch November 28, 2023 08:25
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

Successfully merging this pull request may close these issues.

1 participant