From 8440d1703aab76504c71cfc0c263a3e45f8f8cc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matja=C5=BE=20Lipu=C5=A1?= Date: Thu, 13 Jun 2019 12:02:00 +0200 Subject: [PATCH] Message: added type def for offset option (#16027) --- types/message.d.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/types/message.d.ts b/types/message.d.ts index b1ad90670..6302327fa 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 {