uiw 4.21.26 → 4.21.27
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/uiw.js +15 -2
- package/dist/uiw.min.js +1 -1
- package/package.json +60 -60
package/dist/uiw.js
CHANGED
|
@@ -2788,12 +2788,22 @@ var normalizeDelay = delay => delay && typeof delay === 'object' ? delay : {
|
|
|
2788
2788
|
}
|
|
2789
2789
|
function _hide() {
|
|
2790
2790
|
if (!isOpen) return;
|
|
2791
|
-
zIndex.current
|
|
2791
|
+
if (zIndex.current <= 999) {
|
|
2792
|
+
zIndex.current = 999;
|
|
2793
|
+
} else {
|
|
2794
|
+
zIndex.current -= 1;
|
|
2795
|
+
}
|
|
2792
2796
|
setIsOpen(false);
|
|
2793
2797
|
}
|
|
2794
2798
|
function _show() {
|
|
2799
|
+
var _triggerRef$current;
|
|
2795
2800
|
if (isOpen) return;
|
|
2796
|
-
|
|
2801
|
+
var nodeIndex = (_triggerRef$current = triggerRef.current) == null ? void 0 : _triggerRef$current.style.zIndex;
|
|
2802
|
+
if (nodeIndex) {
|
|
2803
|
+
zIndex.current = Number(nodeIndex) + 1;
|
|
2804
|
+
} else {
|
|
2805
|
+
zIndex.current += 1;
|
|
2806
|
+
}
|
|
2797
2807
|
setIsOpen(true);
|
|
2798
2808
|
}
|
|
2799
2809
|
function handleEnter(node, isAppearing) {
|
|
@@ -2838,6 +2848,9 @@ var normalizeDelay = delay => delay && typeof delay === 'object' ? delay : {
|
|
|
2838
2848
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, {
|
|
2839
2849
|
children: [/*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(child, Object.assign({}, child.props, _extends({}, triggerProps, {
|
|
2840
2850
|
ref: triggerRef,
|
|
2851
|
+
style: {
|
|
2852
|
+
zIndex: zIndex.current
|
|
2853
|
+
},
|
|
2841
2854
|
className: [child.props.className, disabled ? prefixCls + "-disabled" : null].filter(Boolean).join(' ').trim()
|
|
2842
2855
|
}))), /*#__PURE__*/(0,jsx_runtime.jsx)(Overlay, _extends({}, overlayProps, {
|
|
2843
2856
|
style: _extends({}, overlayProps.style, overlayStyl),
|