feat: common components
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
import { Popover } from 'antd';
|
||||
import type { PopoverProps } from 'antd/lib/popover';
|
||||
import classNames from 'classnames';
|
||||
import styles from './index.less';
|
||||
|
||||
const SealPopover: React.FC<PopoverProps> = (props) => {
|
||||
const { className, children, style, ...restProps } = props;
|
||||
|
||||
return (
|
||||
<div className="popover-wrapper">
|
||||
<Popover
|
||||
{...restProps}
|
||||
style={{ ...style }}
|
||||
data-maxHeight="300px"
|
||||
overlayClassName={classNames(className, styles.seal_custom_popover)}
|
||||
>
|
||||
{children}
|
||||
</Popover>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default SealPopover;
|
||||
Reference in New Issue
Block a user