Browse Source

chore: adjust Popover PurePanel style pos

pull/38387/head
二货机器人 2 years ago
parent
commit
5cce2cd7c4
  1. 12
      components/popover/PurePanel.tsx
  2. 2
      components/tour/PurePanel.tsx

12
components/popover/PurePanel.tsx

@ -26,7 +26,16 @@ export interface PurePanelProps extends Omit<PopoverProps, 'children'> {
}
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 (
<div
@ -37,6 +46,7 @@ export function RawPurePanel(props: any) {
`${prefixCls}-placement-${placement}`,
className,
)}
style={style}
>
<Popup {...props} className={hashId} prefixCls={prefixCls}>
{children || getOverlay(prefixCls, title, content)}

2
components/tour/PurePanel.tsx

@ -38,7 +38,7 @@ export default function PurePanel(props: PurePanelProps) {
<PopoverRawPurePanel
prefixCls={prefixCls}
hashId={hashId}
className={classNames(className, `${prefixCls}-pure`, `${prefixCls}-${type}`)}
className={classNames(className, `${prefixCls}-pure`, type && `${prefixCls}-${type}`)}
style={style}
>
{node}

Loading…
Cancel
Save