Skip to content

Commit

Permalink
Message: added type def for offset option (ElemeFE#16027)
Browse files Browse the repository at this point in the history
  • Loading branch information
matjaz authored and lzq4047 committed May 22, 2020
1 parent c92baf2 commit b962ba3
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 b962ba3

Please sign in to comment.