rc-drawer
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -143,3 +143,3 @@ function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
if (!windowIsUndefined) { | ||
var right = getScrollBarSize(true); // router 切换时可能会导至页面失去滚动条,所以需要时时获取。 | ||
var right = document.body.scrollHeight > (window.innerHeight || document.documentElement.clientHeight) && window.innerWidth > document.body.offsetWidth ? getScrollBarSize(true) : 0; // router 切换时可能会导至页面失去滚动条,所以需要时时获取。 | ||
@@ -146,0 +146,0 @@ _this.levelDom.forEach(function (dom) { |
@@ -161,3 +161,3 @@ "use strict"; | ||
if (!_utils.windowIsUndefined) { | ||
var right = (0, _getScrollBarSize.default)(true); // router 切换时可能会导至页面失去滚动条,所以需要时时获取。 | ||
var right = document.body.scrollHeight > (window.innerHeight || document.documentElement.clientHeight) && window.innerWidth > document.body.offsetWidth ? (0, _getScrollBarSize.default)(true) : 0; // router 切换时可能会导至页面失去滚动条,所以需要时时获取。 | ||
@@ -164,0 +164,0 @@ _this.levelDom.forEach(function (dom) { |
{ | ||
"name": "rc-drawer", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "drawer component for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
89771
1940