fix zIndex
This commit is contained in:
@@ -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<{
|
||||
|
||||
Reference in New Issue
Block a user