Skip to content

Commit 35f509a

Browse files
authored
chore: fix Message type (#3212)
1 parent 7518096 commit 35f509a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/message/index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import CheckCircleFilled from '@ant-design/icons-vue/CheckCircleFilled';
77
import InfoCircleFilled from '@ant-design/icons-vue/InfoCircleFilled';
88

99
let defaultDuration = 3;
10-
let defaultTop: number;
10+
let defaultTop: string;
1111
let messageInstance: any;
1212
let key = 1;
1313
let prefixCls = 'ant-message';
@@ -123,7 +123,7 @@ function isArgsProps(content: JointContent): content is ArgsProps {
123123
}
124124

125125
export interface ConfigOptions {
126-
top?: number;
126+
top?: string;
127127
duration?: number;
128128
prefixCls?: string;
129129
getContainer?: () => HTMLElement;

0 commit comments

Comments
 (0)