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 {
dialog: $dialog,
message: $message,
notification: $notification,
} = createDiscreteApi(
[
'dialog',
'message',
'notification',
],
@@ -64,5 +66,9 @@ export const {
keepAliveOnHover: true,
placement: 'top',
},
notificationProviderProps: {
keepAliveOnHover: true,
placement: 'top-right',
},
},
);