xiaoluoboding / vue-sonner

🔔 An opinionated toast component for Vue.
https://vue-sonner.vercel.app
MIT License
803 stars 41 forks source link

feat: support dynamic position #68

Closed motea927 closed 4 months ago

motea927 commented 4 months ago

Description:

This update introduces support for dynamic positioning in the application. The existing functionality remains unaffected, ensuring seamless operation even after the implementation of this enhancement.

To ensure the proper functioning of the dynamic positioning feature, the following code can be utilized for testing:

// src/components/Position.vue
const handleChangePosition = (activePosition: Position) => {
  toast('Event has been created', {
    description: 'Monday, January 3rd at 6:00pm',
    position: activePosition
  })
}

This code snippet facilitates testing the dynamic positioning behavior and confirms that it aligns with the intended functionality.

Related issue (if exists):

64

vercel[bot] commented 4 months ago

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

Name Status Preview Comments Updated (UTC)
vue-sonner ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 7, 2024 4:44am