rc-drawer
Advanced tools
Comparing version 5.0.0-alpha.1 to 5.0.0-alpha.2
@@ -9,2 +9,3 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty"; | ||
import DrawerPanel from './DrawerPanel'; | ||
import { composeRef } from "rc-util/es/ref"; | ||
import DrawerContext from './context'; | ||
@@ -129,3 +130,3 @@ export default function DrawerPopup(props) { | ||
visible: open | ||
}), function (_ref2) { | ||
}), function (_ref2, maskRef) { | ||
var motionMaskClassName = _ref2.className, | ||
@@ -136,3 +137,4 @@ motionMaskStyle = _ref2.style; | ||
style: _objectSpread(_objectSpread(_objectSpread({}, motionMaskStyle), maskStyle), zIndexStyle), | ||
onClick: maskClosable && onClose | ||
onClick: maskClosable && onClose, | ||
ref: maskRef | ||
}); | ||
@@ -181,7 +183,7 @@ }); // =========================== Panel ============================ | ||
leavedClassName: "".concat(prefixCls, "-content-hidden") | ||
}), function (_ref3) { | ||
}), function (_ref3, motionRef) { | ||
var motionClassName = _ref3.className, | ||
motionStyle = _ref3.style; | ||
return /*#__PURE__*/React.createElement(DrawerPanel, { | ||
ref: panelRef, | ||
ref: composeRef(motionRef, panelRef), | ||
prefixCls: prefixCls, | ||
@@ -188,0 +190,0 @@ className: classNames(className, motionClassName), |
@@ -28,2 +28,4 @@ "use strict"; | ||
var _ref4 = require("rc-util/lib/ref"); | ||
var _context = _interopRequireDefault(require("./context")); | ||
@@ -153,3 +155,3 @@ | ||
visible: open | ||
}), function (_ref2) { | ||
}), function (_ref2, maskRef) { | ||
var motionMaskClassName = _ref2.className, | ||
@@ -160,3 +162,4 @@ motionMaskStyle = _ref2.style; | ||
style: (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, motionMaskStyle), maskStyle), zIndexStyle), | ||
onClick: maskClosable && onClose | ||
onClick: maskClosable && onClose, | ||
ref: maskRef | ||
}); | ||
@@ -205,7 +208,7 @@ }); // =========================== Panel ============================ | ||
leavedClassName: "".concat(prefixCls, "-content-hidden") | ||
}), function (_ref3) { | ||
}), function (_ref3, motionRef) { | ||
var motionClassName = _ref3.className, | ||
motionStyle = _ref3.style; | ||
return /*#__PURE__*/React.createElement(_DrawerPanel.default, { | ||
ref: panelRef, | ||
ref: (0, _ref4.composeRef)(motionRef, panelRef), | ||
prefixCls: prefixCls, | ||
@@ -212,0 +215,0 @@ className: (0, _classnames.default)(className, motionClassName), |
{ | ||
"name": "rc-drawer", | ||
"version": "5.0.0-alpha.1", | ||
"version": "5.0.0-alpha.2", | ||
"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
48092
929