Commit 6d5388aaf143ac76bac0b68d56a3ab6b5993e807
Committed by
GitHub
1 parent
b2d49cbb
fix(type): fix ant-design-vue -> (#1043)
Showing
1 changed file
with
7 additions
and
7 deletions
src/hooks/web/useMessage.tsx
... | ... | @@ -3,17 +3,17 @@ import type { ModalFunc, ModalFuncProps } from 'ant-design-vue/lib/modal/Modal'; |
3 | 3 | import { Modal, message as Message, notification } from 'ant-design-vue'; |
4 | 4 | import { InfoCircleFilled, CheckCircleFilled, CloseCircleFilled } from '@ant-design/icons-vue'; |
5 | 5 | |
6 | -import { ArgsProps, ConfigProps } from 'ant-design-vue/lib/notification'; | |
6 | +import { NotificationArgsProps, ConfigProps } from 'ant-design-vue/lib/notification'; | |
7 | 7 | import { useI18n } from './useI18n'; |
8 | 8 | import { isString } from '/@/utils/is'; |
9 | 9 | |
10 | 10 | export interface NotifyApi { |
11 | - info(config: ArgsProps): void; | |
12 | - success(config: ArgsProps): void; | |
13 | - error(config: ArgsProps): void; | |
14 | - warn(config: ArgsProps): void; | |
15 | - warning(config: ArgsProps): void; | |
16 | - open(args: ArgsProps): void; | |
11 | + info(config: NotificationArgsProps): void; | |
12 | + success(config: NotificationArgsProps): void; | |
13 | + error(config: NotificationArgsProps): void; | |
14 | + warn(config: NotificationArgsProps): void; | |
15 | + warning(config: NotificationArgsProps): void; | |
16 | + open(args: NotificationArgsProps): void; | |
17 | 17 | close(key: String): void; |
18 | 18 | config(options: ConfigProps): void; |
19 | 19 | destroy(): void; | ... | ... |