rc-drawer
Advanced tools
Comparing version 2.1.1 to 3.0.0
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); } | ||
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } | ||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
@@ -485,3 +481,2 @@ | ||
maskStyle = _this$props8.maskStyle, | ||
drawerStyle = _this$props8.drawerStyle, | ||
onClose = _this$props8.onClose, | ||
@@ -491,3 +486,3 @@ onHandleClick = _this$props8.onHandleClick, | ||
getOpenCount = _this$props8.getOpenCount, | ||
props = _objectWithoutProperties(_this$props8, ["className", "children", "style", "width", "height", "defaultOpen", "open", "prefixCls", "placement", "level", "levelMove", "ease", "duration", "getContainer", "handler", "onChange", "afterVisibleChange", "showMask", "maskClosable", "maskStyle", "drawerStyle", "onClose", "onHandleClick", "keyboard", "getOpenCount"]); // 首次渲染都将是关闭状态。 | ||
props = _objectWithoutProperties(_this$props8, ["className", "children", "style", "width", "height", "defaultOpen", "open", "prefixCls", "placement", "level", "levelMove", "ease", "duration", "getContainer", "handler", "onChange", "afterVisibleChange", "showMask", "maskClosable", "maskStyle", "onClose", "onHandleClick", "keyboard", "getOpenCount"]); // 首次渲染都将是关闭状态。 | ||
@@ -537,3 +532,3 @@ | ||
className: "".concat(prefixCls, "-content-wrapper"), | ||
style: _objectSpread({ | ||
style: { | ||
transform: transform, | ||
@@ -543,3 +538,3 @@ msTransform: transform, | ||
height: isNumeric(height) ? "".concat(height, "px") : height | ||
}, drawerStyle), | ||
}, | ||
ref: function ref(c) { | ||
@@ -546,0 +541,0 @@ _this3.contentWrapper = c; |
@@ -24,3 +24,2 @@ import * as React from 'react'; | ||
maskStyle?: React.CSSProperties; | ||
drawerStyle?: React.CSSProperties; | ||
onChange?: ((open?: boolean) => void); | ||
@@ -27,0 +26,0 @@ afterVisibleChange?: ((open: boolean) => void); |
@@ -5,2 +5,6 @@ History | ||
## 3.0.0 | ||
- Remove `drawerStyle`. | ||
## 2.1.0 | ||
@@ -7,0 +11,0 @@ |
@@ -30,6 +30,2 @@ "use strict"; | ||
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } | ||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
@@ -506,3 +502,2 @@ | ||
maskStyle = _this$props8.maskStyle, | ||
drawerStyle = _this$props8.drawerStyle, | ||
onClose = _this$props8.onClose, | ||
@@ -512,3 +507,3 @@ onHandleClick = _this$props8.onHandleClick, | ||
getOpenCount = _this$props8.getOpenCount, | ||
props = _objectWithoutProperties(_this$props8, ["className", "children", "style", "width", "height", "defaultOpen", "open", "prefixCls", "placement", "level", "levelMove", "ease", "duration", "getContainer", "handler", "onChange", "afterVisibleChange", "showMask", "maskClosable", "maskStyle", "drawerStyle", "onClose", "onHandleClick", "keyboard", "getOpenCount"]); // 首次渲染都将是关闭状态。 | ||
props = _objectWithoutProperties(_this$props8, ["className", "children", "style", "width", "height", "defaultOpen", "open", "prefixCls", "placement", "level", "levelMove", "ease", "duration", "getContainer", "handler", "onChange", "afterVisibleChange", "showMask", "maskClosable", "maskStyle", "onClose", "onHandleClick", "keyboard", "getOpenCount"]); // 首次渲染都将是关闭状态。 | ||
@@ -558,3 +553,3 @@ | ||
className: "".concat(prefixCls, "-content-wrapper"), | ||
style: _objectSpread({ | ||
style: { | ||
transform: transform, | ||
@@ -564,3 +559,3 @@ msTransform: transform, | ||
height: (0, _utils.isNumeric)(height) ? "".concat(height, "px") : height | ||
}, drawerStyle), | ||
}, | ||
ref: function ref(c) { | ||
@@ -567,0 +562,0 @@ _this3.contentWrapper = c; |
@@ -24,3 +24,2 @@ import * as React from 'react'; | ||
maskStyle?: React.CSSProperties; | ||
drawerStyle?: React.CSSProperties; | ||
onChange?: ((open?: boolean) => void); | ||
@@ -27,0 +26,0 @@ afterVisibleChange?: ((open: boolean) => void); |
{ | ||
"name": "rc-drawer", | ||
"version": "2.1.1", | ||
"version": "3.0.0", | ||
"description": "drawer component for react", | ||
@@ -55,2 +55,3 @@ "keywords": [ | ||
"@types/warning": "^3.0.0", | ||
"@umijs/fabric": "^1.1.10", | ||
"enzyme": "^3.10.0", | ||
@@ -57,0 +58,0 @@ "enzyme-adapter-react-16": "^1.14.0", |
@@ -68,3 +68,2 @@ # rc-drawer | ||
| maskStyle | CSSProperties | null | mask style | | ||
| drawerStyle | CSSProperties | null | style of the drawer popup element | | ||
| onChange | func | null | change callback(open) | | ||
@@ -71,0 +70,0 @@ | afterVisibleChange | func | null | transition end callback(open) | |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
91872
24
1977
82