Skip to content

Commit

Permalink
Message: added type def for offset option (#16027)
Browse files Browse the repository at this point in the history
  • Loading branch information
matjaz authored and ziyoung committed Jun 13, 2019
1 parent 5440186 commit ff96eae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions types/message.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit ff96eae

Please sign in to comment.