From 151ebede93fc7a95a8aa388e2fb7c08ddbe63b47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=83=9F=E8=8A=B1?= Date: Sat, 3 Dec 2022 14:03:24 +0800 Subject: [PATCH] fix(components): [notification] option zIndex for notification can't effect (#10796) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit option zIndex for notification can't effect `options.zIndex` is not effective since it is write before `zIndex: nextZIndex()`, it will be overode. --- packages/components/notification/src/notify.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/components/notification/src/notify.ts b/packages/components/notification/src/notify.ts index 9046adb603..1e3ab9bfba 100644 --- a/packages/components/notification/src/notify.ts +++ b/packages/components/notification/src/notify.ts @@ -50,8 +50,8 @@ const notify: NotifyFn & Partial & { _context: AppContext | null } = const id = `notification_${seed++}` const userOnClose = options.onClose const props: Partial = { - ...options, zIndex: nextZIndex(), + ...options, offset: verticalOffset, id, onClose: () => {