feat: 添加 $dialog 函数

This commit is contained in:
2024-09-01 15:45:23 +08:00
parent c2561d5498
commit 530e5ca6a9

View File

@@ -49,10 +49,12 @@ export const configProviderProps = {
}; };
export const { export const {
dialog: $dialog,
message: $message, message: $message,
notification: $notification, notification: $notification,
} = createDiscreteApi( } = createDiscreteApi(
[ [
'dialog',
'message', 'message',
'notification', 'notification',
], ],
@@ -64,5 +66,9 @@ export const {
keepAliveOnHover: true, keepAliveOnHover: true,
placement: 'top', placement: 'top',
}, },
notificationProviderProps: {
keepAliveOnHover: true,
placement: 'top-right',
},
}, },
); );