fix zIndex
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<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 class="bottom-popup" :style="{ height: props.height }">
|
||||||
<div v-if="hasHeader" class="header">
|
<div v-if="hasHeader" class="header">
|
||||||
<div class="button left">
|
<div class="button left">
|
||||||
@@ -40,6 +40,8 @@ export interface BottomPopupProps {
|
|||||||
rightButtonText?: string;
|
rightButtonText?: string;
|
||||||
height?: string | number;
|
height?: string | number;
|
||||||
title?: string;
|
title?: string;
|
||||||
|
zIndex?: number;
|
||||||
|
overlayProps?: Record<string, unknown>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface BottomPopupSlots {
|
export interface BottomPopupSlots {
|
||||||
@@ -54,7 +56,9 @@ const props = withDefaults(defineProps<BottomPopupProps>(), {
|
|||||||
leftButtonText: "取消",
|
leftButtonText: "取消",
|
||||||
rightButtonText: "确定",
|
rightButtonText: "确定",
|
||||||
height: "auto",
|
height: "auto",
|
||||||
title: ""
|
title: "",
|
||||||
|
zIndex: undefined,
|
||||||
|
overlayProps: undefined
|
||||||
});
|
});
|
||||||
|
|
||||||
const emit = defineEmits<{
|
const emit = defineEmits<{
|
||||||
|
|||||||
Reference in New Issue
Block a user