Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@betavs
Copy link
Contributor

@betavs betavs commented Apr 24, 2025

Please make sure these boxes are checked before submitting your PR, thank you!

close #5844

  • Make sure you follow contributing guide English | (中文 | Español | Français).
  • Make sure you are merging your commits to dev branch.
  • Add some descriptions and refer to relative issues for your PR.

@pull-request-triage
Copy link

👋 @betavs, thank you for contributing element-plus.

  • You can comment with /label Components:[component_name] to add a label for which component you are working on.
  • You may join our Discord for staying tuned.

@github-actions
Copy link

Hello @betavs, thank you for contributing to element-plus, please see our guideline to see how to make contribution

@github-actions
Copy link

github-actions bot commented Apr 24, 2025

@pkg-pr-new
Copy link

pkg-pr-new bot commented Apr 24, 2025

Open in StackBlitz

npm i https://pkg.pr.new/element-plus/element-plus@20533

commit: 178ae08

@github-actions
Copy link

github-actions bot commented Apr 24, 2025

🧪 Playground Preview: https://element-plus.run/?pr=20533
Please comment the example via this playground if needed.

@betavs betavs force-pushed the feature/alert-delay-options branch 3 times, most recently from a6573c7 to ce61241 Compare April 30, 2025 02:23
@betavs betavs force-pushed the feature/alert-delay-options branch from ce61241 to 4ae4aaf Compare May 6, 2025 10:20
@betavs betavs force-pushed the feature/alert-delay-options branch from 4ae4aaf to 18c05f4 Compare May 23, 2025 12:41
Copy link
Member

@btea btea left a comment

Choose a reason for hiding this comment

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

LGTM!

We can add a relevant example to the documentation.

@betavs
Copy link
Contributor Author

betavs commented May 23, 2025

We can add a relevant example to the documentation.

done

Copy link
Member

@btea btea left a comment

Choose a reason for hiding this comment

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

Thanks!

Copy link
Member

@Dsaquel Dsaquel left a comment

Choose a reason for hiding this comment

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

LGTM

@Dsaquel Dsaquel merged commit 0531cab into element-plus:dev May 24, 2025
13 checks passed
@element-bot element-bot mentioned this pull request Jun 6, 2025
3 tasks
@warmthsea
Copy link
Member

Taking a step back, I think the show-after and hide-after attributes shouldn't be added.
User event should provide immediate feedback.

This is incredibly strange and I think it's a bug.

No other UI library does this:

https://mui.com/material-ui/react-alert/#transitions
https://vuetifyjs.com/en/components/alerts/#closable
https://ant.design/components/alert-cn#alert-demo-closable
https://www.naiveui.com/zh-CN/os-theme/components/alert#closable.vue
https://daisyui.com/components/alert/
https://chakra-ui.com/docs/components/alert

warmthsea added a commit that referenced this pull request Oct 23, 2025
warmthsea added a commit that referenced this pull request Nov 17, 2025
…ty with delay (#20533,#22028)" (#22560)

* Revert "fix(components): [alert] show immediately when `showAfter` not needed (#22028)"

This reverts commit 229a0a1.

* Revert "feat(components): [alert] add open and auto-close functionality with delays (#20533)"

* chore: update deprecated

* docs: update remark
@element-bot element-bot mentioned this pull request Nov 28, 2025
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] Auto Close option for Alert

4 participants