fix(components): [notification] option zIndex for notification can't effect (#10796)

option zIndex for notification can't effect

`options.zIndex` is not effective since it is write before `zIndex: nextZIndex()`, it will be overode.
This commit is contained in:
烟花 2022-12-03 14:03:24 +08:00 committed by GitHub
parent 14cf36aa09
commit 151ebede93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,8 +50,8 @@ const notify: NotifyFn & Partial<Notify> & { _context: AppContext | null } =
const id = `notification_${seed++}`
const userOnClose = options.onClose
const props: Partial<NotificationProps> = {
...options,
zIndex: nextZIndex(),
...options,
offset: verticalOffset,
id,
onClose: () => {