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