mirror of
https://github.com/youzan/vant.git
synced 2026-05-06 01:00:26 +08:00
chore: add getZIndexStyle util (#8254)
This commit is contained in:
@@ -70,11 +70,11 @@ export default createComponent({
|
||||
children.some((item) => item.state.showWrapper)
|
||||
);
|
||||
|
||||
const barStyle = computed(() => {
|
||||
const barStyle = computed<CSSProperties | undefined>(() => {
|
||||
if (opened.value && isDef(props.zIndex)) {
|
||||
return {
|
||||
zIndex: +props.zIndex + 1,
|
||||
} as CSSProperties;
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user