fix: Property zIndex does not exist on type CSSProperties

This commit is contained in:
QiShaoXuan 2022-08-12 19:01:40 +08:00
parent 4944887d4a
commit c9a5fe3d25
2 changed files with 2 additions and 4 deletions

View File

@ -1,5 +1,4 @@
import React, {
CSSProperties,
useEffect,
useImperativeHandle,
useMemo,
@ -16,7 +15,6 @@ import Grow from '@mui/material/Grow';
import { styled } from '../styled';
import { PopperProps, VirtualElement } from './interface';
import { useTheme } from '../theme';
import { PopperArrow } from './PopoverArrow';
export const Popper = ({
children,
@ -174,7 +172,7 @@ const Container = styled('div')({
});
const BasicStyledPopper = styled(PopperUnstyled)<{
zIndex?: CSSProperties['zIndex'];
zIndex?: number;
}>(({ zIndex, theme }) => {
return {
zIndex: zIndex || theme.affine.zIndex.popover,

View File

@ -55,7 +55,7 @@ export type PopperProps = {
anchorClassName?: string;
// Popover z-index
zIndex?: CSSProperties['zIndex'];
zIndex?: number;
offset?: [number, number];