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

feat(ui): 新增api.addUiMenu #11032

Merged
merged 2 commits into from
Apr 25, 2023
Merged

feat(ui): 新增api.addUiMenu #11032

merged 2 commits into from
Apr 25, 2023

Conversation

HiLanXiao
Copy link
Contributor

No description provided.

@vercel
Copy link

vercel bot commented Apr 24, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
umi ⬜️ Ignored (Inspect) Apr 25, 2023 3:42am

@codecov
Copy link

codecov bot commented Apr 25, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.03 ⚠️

Comparison is base (8ef108d) 29.21% compared to head (f30644e) 29.19%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #11032      +/-   ##
==========================================
- Coverage   29.21%   29.19%   -0.03%     
==========================================
  Files         479      479              
  Lines       14385    14398      +13     
  Branches     3381     3385       +4     
==========================================
  Hits         4203     4203              
- Misses       9455     9468      +13     
  Partials      727      727              
Impacted Files Coverage Δ
packages/preset-umi/src/features/ui/ui.ts 0.00% <0.00%> (ø)
packages/preset-umi/src/registerMethods.ts 0.00% <ø> (ø)
packages/preset-umi/src/types.ts 0.00% <ø> (ø)

... and 1 file with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@sorrycc sorrycc merged commit 4611f1b into umijs:master Apr 25, 2023
23 checks passed
@github-actions
Copy link

感谢 PR!如果有兴趣一起参与维护 Umi,可加入我们的 Umi Contributor 群。加入方式是先用钉钉扫下方二维码加我钉钉,记得注明 github id,然后我会拉你到群里。

Comment on lines +97 to +102
Object.assign(memo, {
ui: {
modules: uiModules,
},
});
return memo;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

为啥要这么用,直接 memo.ui 不就好了,这样会慢 40% ,参考 benchmark

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

学习了,我后面改掉

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.

None yet

3 participants