x-ui-design 0.8.36 → 0.8.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/types/components/Popover/Popover.d.ts +1 -1
- package/dist/esm/types/types/popover.d.ts +1 -0
- package/dist/index.esm.js +3 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/lib/components/Popover/Popover.tsx +3 -2
- package/lib/types/popover.ts +1 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { PopoverProps } from "../../types/popover";
|
|
3
3
|
import './style.css';
|
|
4
|
-
declare const Popover: ({ prefixCls, content, children, trigger, placement, open, visible, title, style, overlayClassName, overlayStyle, onVisibleChange, getPopupContainer }: PopoverProps) => React.JSX.Element;
|
|
4
|
+
declare const Popover: ({ prefixCls, content, children, trigger, placement, open, visible, title, style, overlayClassName, overlayStyle, onVisibleChange, getPopupContainer, stopDropdownPosition }: PopoverProps) => React.JSX.Element;
|
|
5
5
|
export default Popover;
|
|
@@ -10,6 +10,7 @@ export type PopoverProps = DefaultProps & {
|
|
|
10
10
|
overlayClassName?: string;
|
|
11
11
|
title?: string | ReactNode;
|
|
12
12
|
visible?: boolean;
|
|
13
|
+
stopDropdownPosition?: boolean;
|
|
13
14
|
onVisibleChange?: ((open: boolean) => void) | undefined;
|
|
14
15
|
getPopupContainer?: ((node: HTMLElement) => HTMLElement) | undefined;
|
|
15
16
|
};
|
package/dist/index.esm.js
CHANGED
|
@@ -5550,7 +5550,8 @@ const Popover = ({
|
|
|
5550
5550
|
overlayClassName = '',
|
|
5551
5551
|
overlayStyle = {},
|
|
5552
5552
|
onVisibleChange,
|
|
5553
|
-
getPopupContainer
|
|
5553
|
+
getPopupContainer,
|
|
5554
|
+
stopDropdownPosition = false
|
|
5554
5555
|
}) => {
|
|
5555
5556
|
const triggerRef = useRef(null);
|
|
5556
5557
|
const popupRef = useRef(null);
|
|
@@ -5632,7 +5633,7 @@ const Popover = ({
|
|
|
5632
5633
|
zIndex: 1000,
|
|
5633
5634
|
position: "absolute",
|
|
5634
5635
|
...overlayStyle,
|
|
5635
|
-
...dropdownPosition
|
|
5636
|
+
...(!stopDropdownPosition ? dropdownPosition : {})
|
|
5636
5637
|
}
|
|
5637
5638
|
}), title && /*#__PURE__*/React.createElement("div", {
|
|
5638
5639
|
className: `${prefixCls}-title`
|