From a29ef5f37e3f9e5543c47a19f0a03bd8b20bc28a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9A=AE=E9=9B=A8?= Date: Tue, 30 Jan 2018 13:20:58 +0800 Subject: [PATCH] Notification: add position definition for ElNotificationOptions (#9546) --- types/notification.d.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/types/notification.d.ts b/types/notification.d.ts index dae977e74..a2cf871d1 100644 --- a/types/notification.d.ts +++ b/types/notification.d.ts @@ -1,6 +1,8 @@ import Vue, { VNode } from 'vue' import { MessageType } from './message' +export type NotificationPosition = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left' + /** Notification Component */ export declare class ElNotificationComponent extends Vue { /** Close the Notification instance */ @@ -40,6 +42,9 @@ export interface ElNotificationOptions { /** Offset from the top edge of the screen. Every Notification instance of the same moment should have the same offset */ offset?: number + + /** custom position */ + position?: NotificationPosition } export interface ElNotification {