fix: 增加 Toast 默认显示时间从 2秒 到 4秒
This commit is contained in:
parent
3eeff10338
commit
7cf896215c
|
|
@ -66,7 +66,7 @@ const Toast = (function () {
|
|||
|
||||
let toastTimer: number | null = null
|
||||
const show = (params?: ShowParams): void => {
|
||||
const { renderContent, title, duration = 2000, hideBackdrop = true } = params || {}
|
||||
const { renderContent, title, duration = 4000, hideBackdrop = true } = params || {}
|
||||
hide()
|
||||
|
||||
const renderBody = (): ReactNode => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue