Skip to content

Commit ff96eae

Browse files
matjazziyoung
authored andcommitted
Message: added type def for offset option (#16027)
1 parent 5440186 commit ff96eae

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

types/message.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ export interface ElMessageOptions {
4545

4646
/** Callback function when closed with the message instance as the parameter */
4747
onClose?: CloseEventHandler
48+
49+
/** Set the distance to the top of viewport. Default is 20 px. */
50+
offset?: number
4851
}
4952

5053
export interface ElMessage {

0 commit comments

Comments
 (0)