fix zIndex

This commit is contained in:
Timi
2026-09-07 12:07:57 +08:00
parent aadc8fa8fb
commit f14ebcfc85
+6 -2
View File
@@ -1,5 +1,5 @@
<template>
<t-popup v-model="visible" placement="bottom">
<t-popup v-model="visible" placement="bottom" :z-index="props.zIndex" :overlay-props="props.overlayProps">
<div class="bottom-popup" :style="{ height: props.height }">
<div v-if="hasHeader" class="header">
<div class="button left">
@@ -40,6 +40,8 @@ export interface BottomPopupProps {
rightButtonText?: string;
height?: string | number;
title?: string;
zIndex?: number;
overlayProps?: Record<string, unknown>;
}
export interface BottomPopupSlots {
@@ -54,7 +56,9 @@ const props = withDefaults(defineProps<BottomPopupProps>(), {
leftButtonText: "取消",
rightButtonText: "确定",
height: "auto",
title: ""
title: "",
zIndex: undefined,
overlayProps: undefined
});
const emit = defineEmits<{