mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-03 11:47:48 +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
|
* @description initial zIndex
|
||||||
*/
|
*/
|
||||||
zIndex: {
|
zIndex: Number,
|
||||||
type: Number,
|
|
||||||
default: 0,
|
|
||||||
},
|
|
||||||
} as const)
|
} as const)
|
||||||
export type NotificationProps = ExtractPropTypes<typeof notificationProps>
|
export type NotificationProps = ExtractPropTypes<typeof notificationProps>
|
||||||
|
|
||||||
|
@ -84,7 +84,7 @@ const verticalProperty = computed(() =>
|
|||||||
const positionStyle = computed<CSSProperties>(() => {
|
const positionStyle = computed<CSSProperties>(() => {
|
||||||
return {
|
return {
|
||||||
[verticalProperty.value]: `${props.offset}px`,
|
[verticalProperty.value]: `${props.offset}px`,
|
||||||
zIndex: currentZIndex.value,
|
zIndex: props.zIndex ?? currentZIndex.value,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user