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={item => {
Toast(item.name)
}}
items={[
onClick={() => {
Toast('5 秒提示', 5000)
}}
>
onClick={() => {
Toast('基本使用')
}}
>
rightClick={() => {
Toast('点击了右侧按钮')
}}
/>
onClick={val => {
Toast(val)
}}
>
leftClick={() => {
Toast('点击了左侧按钮')
}}
/>
onClick: () => {
Toast('monkey')
},
mini: true
onClick: () => {
Toast('world')
},
mini: true,
Alert('关闭通知', () => {
Toast('我关闭了')
})
}}