From 35f509aea6d5ba10abe7377893cbd6795b1e68a0 Mon Sep 17 00:00:00 2001 From: ajuner <53512912+ajuner@users.noreply.github.com> Date: Thu, 19 Nov 2020 22:10:51 +0800 Subject: [PATCH] chore: fix Message type (#3212) --- components/message/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/message/index.tsx b/components/message/index.tsx index e1dbf356d..62d17c517 100644 --- a/components/message/index.tsx +++ b/components/message/index.tsx @@ -7,7 +7,7 @@ import CheckCircleFilled from '@ant-design/icons-vue/CheckCircleFilled'; import InfoCircleFilled from '@ant-design/icons-vue/InfoCircleFilled'; let defaultDuration = 3; -let defaultTop: number; +let defaultTop: string; let messageInstance: any; let key = 1; let prefixCls = 'ant-message'; @@ -123,7 +123,7 @@ function isArgsProps(content: JointContent): content is ArgsProps { } export interface ConfigOptions { - top?: number; + top?: string; duration?: number; prefixCls?: string; getContainer?: () => HTMLElement;