@rc-component/tour
Advanced tools
Comparing version 1.4.0 to 1.5.0
@@ -145,3 +145,8 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2"; | ||
var mergedShowMask = typeof mergedMask === "boolean" ? mergedMask : !!mergedMask; | ||
var mergedMaskStyle = typeof mergedMask === "boolean" ? undefined : mergedMask; | ||
var mergedMaskStyle = typeof mergedMask === "boolean" ? undefined : mergedMask; // when targetElement is not exist, use body as triggerDOMNode | ||
var getTriggerDOMNode = function getTriggerDOMNode(node) { | ||
return node || targetElement || document.body; | ||
}; | ||
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Trigger, _extends({}, restProps, { | ||
@@ -158,3 +163,4 @@ popupAlign: popupAlign, | ||
destroyPopupOnHide: true, | ||
zIndex: 1090 | ||
zIndex: 1090, | ||
getTriggerDOMNode: getTriggerDOMNode | ||
}), /*#__PURE__*/React.createElement(Portal, { | ||
@@ -161,0 +167,0 @@ open: mergedOpen, |
@@ -171,3 +171,8 @@ "use strict"; | ||
var mergedShowMask = typeof mergedMask === "boolean" ? mergedMask : !!mergedMask; | ||
var mergedMaskStyle = typeof mergedMask === "boolean" ? undefined : mergedMask; | ||
var mergedMaskStyle = typeof mergedMask === "boolean" ? undefined : mergedMask; // when targetElement is not exist, use body as triggerDOMNode | ||
var getTriggerDOMNode = function getTriggerDOMNode(node) { | ||
return node || targetElement || document.body; | ||
}; | ||
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_rcTrigger.default, (0, _extends2.default)({}, restProps, { | ||
@@ -184,3 +189,4 @@ popupAlign: popupAlign, | ||
destroyPopupOnHide: true, | ||
zIndex: 1090 | ||
zIndex: 1090, | ||
getTriggerDOMNode: getTriggerDOMNode | ||
}), /*#__PURE__*/React.createElement(_portal.default, { | ||
@@ -187,0 +193,0 @@ open: mergedOpen, |
{ | ||
"name": "@rc-component/tour", | ||
"version": "1.4.0", | ||
"version": "1.5.0", | ||
"description": "React tour Component", | ||
@@ -55,3 +55,3 @@ "keywords": [ | ||
"@umijs/fabric": "^2.5.2", | ||
"dumi": "^2.0.0", | ||
"dumi": "^2.1.2", | ||
"eslint": "^7.18.0", | ||
@@ -58,0 +58,0 @@ "father": "^4.0.0-rc.8", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
60634
1374