From c55e80a67d5c42160f3e001bde1405c6847037cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=91=E6=B8=B8=E5=90=9B?= Date: Thu, 18 Feb 2021 14:56:49 +0800 Subject: [PATCH] chore: simplify position type (#1479) --- packages/notification/src/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/notification/src/index.vue b/packages/notification/src/index.vue index 42692de93d..f3adc22949 100644 --- a/packages/notification/src/index.vue +++ b/packages/notification/src/index.vue @@ -44,7 +44,7 @@ import { EVENT_CODE } from '@element-plus/utils/aria' import { on, off } from '@element-plus/utils/dom' import type { PropType } from 'vue' -import type { NotificationVM } from './notification.type' +import type { NotificationVM, Position } from './notification.type' const TypeMap: Indexable = { success: 'success', @@ -75,7 +75,7 @@ export default defineComponent({ required: true, }, position: { - type: String as PropType<'top-right' | 'top-left' | 'bottom-right' | 'bottom-left'>, + type: String as PropType, default: 'top-right', }, showClose: { type: Boolean, default: true },