diff --git a/types/message.d.ts b/types/message.d.ts index b1ad90670db..6302327fafd 100644 --- a/types/message.d.ts +++ b/types/message.d.ts @@ -45,6 +45,9 @@ export interface ElMessageOptions { /** Callback function when closed with the message instance as the parameter */ onClose?: CloseEventHandler + + /** Set the distance to the top of viewport. Default is 20 px. */ + offset?: number } export interface ElMessage {