fix: Property zIndex does not exist on type CSSProperties
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
import React, {
|
import React, {
|
||||||
CSSProperties,
|
|
||||||
useEffect,
|
useEffect,
|
||||||
useImperativeHandle,
|
useImperativeHandle,
|
||||||
useMemo,
|
useMemo,
|
||||||
@@ -16,7 +15,6 @@ import Grow from '@mui/material/Grow';
|
|||||||
import { styled } from '../styled';
|
import { styled } from '../styled';
|
||||||
|
|
||||||
import { PopperProps, VirtualElement } from './interface';
|
import { PopperProps, VirtualElement } from './interface';
|
||||||
import { useTheme } from '../theme';
|
|
||||||
import { PopperArrow } from './PopoverArrow';
|
import { PopperArrow } from './PopoverArrow';
|
||||||
export const Popper = ({
|
export const Popper = ({
|
||||||
children,
|
children,
|
||||||
@@ -174,7 +172,7 @@ const Container = styled('div')({
|
|||||||
});
|
});
|
||||||
|
|
||||||
const BasicStyledPopper = styled(PopperUnstyled)<{
|
const BasicStyledPopper = styled(PopperUnstyled)<{
|
||||||
zIndex?: CSSProperties['zIndex'];
|
zIndex?: number;
|
||||||
}>(({ zIndex, theme }) => {
|
}>(({ zIndex, theme }) => {
|
||||||
return {
|
return {
|
||||||
zIndex: zIndex || theme.affine.zIndex.popover,
|
zIndex: zIndex || theme.affine.zIndex.popover,
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ export type PopperProps = {
|
|||||||
anchorClassName?: string;
|
anchorClassName?: string;
|
||||||
|
|
||||||
// Popover z-index
|
// Popover z-index
|
||||||
zIndex?: CSSProperties['zIndex'];
|
zIndex?: number;
|
||||||
|
|
||||||
offset?: [number, number];
|
offset?: [number, number];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user