Browse Source

Message: added type def for offset option (#16027)

Matjaž Lipuš 6 năm trước cách đây
mục cha
commit
8440d1703a
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      types/message.d.ts

+ 3 - 0
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 {