feat: common components

This commit is contained in:
jialin
2024-05-17 09:23:13 +08:00
parent dcaa5a7baa
commit fa522fb89e
13 changed files with 647 additions and 168 deletions
+23
View File
@@ -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;