mirror of
https://github.com/element-plus/element-plus.git
synced 2024-11-21 01:02:59 +08:00
fix(components): [notification] fix props.zIndex lose efficacy bug (#12474)
* fix(components): [notification] fix props.zIndex lose efficacy bug * fix(components): [notification] fix props.zIndex lose efficacy bug * fix(components): [notification] fix props.zIndex lose efficacy bug * fix(components): [notification] fix props.zIndex lose efficacy bug
This commit is contained in:
parent
8851532487
commit
9b564c3497
@ -106,10 +106,7 @@ export const notificationProps = buildProps({
|
||||
/**
|
||||
* @description initial zIndex
|
||||
*/
|
||||
zIndex: {
|
||||
type: Number,
|
||||
default: 0,
|
||||
},
|
||||
zIndex: Number,
|
||||
} as const)
|
||||
export type NotificationProps = ExtractPropTypes<typeof notificationProps>
|
||||
|
||||
|
@ -84,7 +84,7 @@ const verticalProperty = computed(() =>
|
||||
const positionStyle = computed<CSSProperties>(() => {
|
||||
return {
|
||||
[verticalProperty.value]: `${props.offset}px`,
|
||||
zIndex: currentZIndex.value,
|
||||
zIndex: props.zIndex ?? currentZIndex.value,
|
||||
}
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user