rc-virtual-list
Advanced tools
Comparing version 3.11.0 to 3.11.1
@@ -0,3 +1,3 @@ | ||
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2"; | ||
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty"; | ||
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2"; | ||
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray"; | ||
@@ -171,7 +171,7 @@ import * as React from 'react'; | ||
var scrollbarPrefixCls = "".concat(prefixCls, "-scrollbar"); | ||
var containerStyle = _objectSpread({ | ||
var containerStyle = { | ||
position: 'absolute', | ||
visibility: visible && canScroll ? null : 'hidden' | ||
}, style); | ||
var thumbStyle = _objectSpread({ | ||
}; | ||
var thumbStyle = { | ||
position: 'absolute', | ||
@@ -182,3 +182,3 @@ background: 'rgba(0, 0, 0, 0.5)', | ||
userSelect: 'none' | ||
}, propsThumbStyle); | ||
}; | ||
if (horizontal) { | ||
@@ -216,3 +216,3 @@ // Container | ||
className: classNames(scrollbarPrefixCls, (_classNames = {}, _defineProperty(_classNames, "".concat(scrollbarPrefixCls, "-horizontal"), horizontal), _defineProperty(_classNames, "".concat(scrollbarPrefixCls, "-vertical"), !horizontal), _defineProperty(_classNames, "".concat(scrollbarPrefixCls, "-visible"), visible), _classNames)), | ||
style: containerStyle, | ||
style: _objectSpread(_objectSpread({}, containerStyle), style), | ||
onMouseDown: onContainerMouseDown, | ||
@@ -223,3 +223,3 @@ onMouseMove: delayHidden | ||
className: classNames("".concat(scrollbarPrefixCls, "-thumb"), _defineProperty({}, "".concat(scrollbarPrefixCls, "-thumb-moving"), dragging)), | ||
style: thumbStyle, | ||
style: _objectSpread(_objectSpread({}, thumbStyle), propsThumbStyle), | ||
onMouseDown: onThumbMouseDown | ||
@@ -226,0 +226,0 @@ })); |
@@ -9,4 +9,4 @@ "use strict"; | ||
exports.default = void 0; | ||
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2")); | ||
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty")); | ||
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2")); | ||
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray")); | ||
@@ -180,7 +180,7 @@ var React = _interopRequireWildcard(require("react")); | ||
var scrollbarPrefixCls = "".concat(prefixCls, "-scrollbar"); | ||
var containerStyle = (0, _objectSpread2.default)({ | ||
var containerStyle = { | ||
position: 'absolute', | ||
visibility: visible && canScroll ? null : 'hidden' | ||
}, style); | ||
var thumbStyle = (0, _objectSpread2.default)({ | ||
}; | ||
var thumbStyle = { | ||
position: 'absolute', | ||
@@ -191,3 +191,3 @@ background: 'rgba(0, 0, 0, 0.5)', | ||
userSelect: 'none' | ||
}, propsThumbStyle); | ||
}; | ||
if (horizontal) { | ||
@@ -225,3 +225,3 @@ // Container | ||
className: (0, _classnames.default)(scrollbarPrefixCls, (_classNames = {}, (0, _defineProperty2.default)(_classNames, "".concat(scrollbarPrefixCls, "-horizontal"), horizontal), (0, _defineProperty2.default)(_classNames, "".concat(scrollbarPrefixCls, "-vertical"), !horizontal), (0, _defineProperty2.default)(_classNames, "".concat(scrollbarPrefixCls, "-visible"), visible), _classNames)), | ||
style: containerStyle, | ||
style: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, containerStyle), style), | ||
onMouseDown: onContainerMouseDown, | ||
@@ -232,3 +232,3 @@ onMouseMove: delayHidden | ||
className: (0, _classnames.default)("".concat(scrollbarPrefixCls, "-thumb"), (0, _defineProperty2.default)({}, "".concat(scrollbarPrefixCls, "-thumb-moving"), dragging)), | ||
style: thumbStyle, | ||
style: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, thumbStyle), propsThumbStyle), | ||
onMouseDown: onThumbMouseDown | ||
@@ -235,0 +235,0 @@ })); |
{ | ||
"name": "rc-virtual-list", | ||
"version": "3.11.0", | ||
"version": "3.11.1", | ||
"description": "React Virtual List Component", | ||
@@ -5,0 +5,0 @@ "engines": { |
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
128753