mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-04 00:02:04 +08:00
fix:抽离首页主题设置成hooks
This commit is contained in:
@@ -26,7 +26,7 @@ import { renderIcon } from '@/utils'
|
||||
const tip = {
|
||||
delete: '是否删除此数据'
|
||||
}
|
||||
dialogFn({
|
||||
const instance = dialogFn({
|
||||
title: '提示',
|
||||
icon: renderIcon(InformationCircleIcon, { size: dialogIconSize }),
|
||||
content: message || tip[type] || '',
|
||||
@@ -34,10 +34,10 @@ import { renderIcon } from '@/utils'
|
||||
negativeText: '取消',
|
||||
maskClosable: maskClosable,
|
||||
onPositiveClick: () => {
|
||||
onPositiveCallback && onPositiveCallback()
|
||||
onPositiveCallback && onPositiveCallback(instance)
|
||||
},
|
||||
onNegativeClick: () => {
|
||||
onNegativeCallback && onNegativeCallback()
|
||||
onNegativeCallback && onNegativeCallback(instance)
|
||||
}
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user