mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 11:10:01 +08:00
chore: adjust Popover PurePanel style pos
This commit is contained in:
parent
d6e643a46d
commit
5cce2cd7c4
@ -26,7 +26,16 @@ export interface PurePanelProps extends Omit<PopoverProps, 'children'> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function RawPurePanel(props: any) {
|
export function RawPurePanel(props: any) {
|
||||||
const { hashId, prefixCls, className, placement = 'top', title, content, children } = props;
|
const {
|
||||||
|
hashId,
|
||||||
|
prefixCls,
|
||||||
|
className,
|
||||||
|
style,
|
||||||
|
placement = 'top',
|
||||||
|
title,
|
||||||
|
content,
|
||||||
|
children,
|
||||||
|
} = props;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
@ -37,6 +46,7 @@ export function RawPurePanel(props: any) {
|
|||||||
`${prefixCls}-placement-${placement}`,
|
`${prefixCls}-placement-${placement}`,
|
||||||
className,
|
className,
|
||||||
)}
|
)}
|
||||||
|
style={style}
|
||||||
>
|
>
|
||||||
<Popup {...props} className={hashId} prefixCls={prefixCls}>
|
<Popup {...props} className={hashId} prefixCls={prefixCls}>
|
||||||
{children || getOverlay(prefixCls, title, content)}
|
{children || getOverlay(prefixCls, title, content)}
|
||||||
|
@ -38,7 +38,7 @@ export default function PurePanel(props: PurePanelProps) {
|
|||||||
<PopoverRawPurePanel
|
<PopoverRawPurePanel
|
||||||
prefixCls={prefixCls}
|
prefixCls={prefixCls}
|
||||||
hashId={hashId}
|
hashId={hashId}
|
||||||
className={classNames(className, `${prefixCls}-pure`, `${prefixCls}-${type}`)}
|
className={classNames(className, `${prefixCls}-pure`, type && `${prefixCls}-${type}`)}
|
||||||
style={style}
|
style={style}
|
||||||
>
|
>
|
||||||
{node}
|
{node}
|
||||||
|
Loading…
Reference in New Issue
Block a user