Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
onClick={async () => {
await Alert('基本使用')
console.log(123)
}}
>
onClick={() => {
const { close } = Alert('主动关闭(2s)')
setTimeout(() => {
close()
}, 2000)
}}
>
onClick={() => {
Alert('关闭通知', () => {
Toast('我关闭了')
})
}}
>