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: support stack #311

Merged
merged 14 commits into from
Sep 4, 2023
Merged

feat: support stack #311

merged 14 commits into from
Sep 4, 2023

Conversation

MadCcc
Copy link
Member

@MadCcc MadCcc commented Aug 31, 2023

  • 实现 stack 样式
  • 收起/展开交互
  • 展开时暂停计时
  • 展开后超出屏幕高度时可滚动
  • placement 支持
  • 确定一下展示顺序是否与不开启 stack 时相反(开启 stack 后最新的在上面)
  • 联调 antd

  • 测试

预览:https://notification-git-feat-notification-stack-react-component.vercel.app/demo/stack

@vercel
Copy link

vercel bot commented Aug 31, 2023

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

Name Status Preview Comments Updated (UTC)
notification ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 4, 2023 0:06am

@codecov
Copy link

codecov bot commented Aug 31, 2023

Codecov Report

Merging #311 (b17b97b) into master (a74f68d) will not change coverage.
The diff coverage is 100.00%.

❗ Current head b17b97b differs from pull request most recent head 9a8b868. Consider uploading reports for the commit 9a8b868 to get more accurate results

@@            Coverage Diff            @@
##            master      #311   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            6         7    +1     
  Lines          555       647   +92     
  Branches        76        96   +20     
=========================================
+ Hits           555       647   +92     
Files Changed Coverage Δ
src/Notice.tsx 100.00% <100.00%> (ø)
src/NoticeList.tsx 100.00% <100.00%> (ø)
src/Notifications.tsx 100.00% <100.00%> (ø)
src/hooks/useNotification.tsx 100.00% <100.00%> (ø)
src/hooks/useStack.ts 100.00% <100.00%> (ø)
src/index.ts 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

tests/hooks.test.tsx Fixed Show fixed Hide fixed
@MadCcc MadCcc changed the title [WIP] feat: support stack feat: support stack Sep 4, 2023
@MadCcc MadCcc merged commit d58f5c8 into master Sep 4, 2023
9 checks passed
@delete-merged-branch delete-merged-branch bot deleted the feat/notification-stack branch September 4, 2023 13:20
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