mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-02 11:17:46 +08:00
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:
parent
14cf36aa09
commit
151ebede93
@ -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: () => {
|
||||
|
Loading…
Reference in New Issue
Block a user