rc-drawer
Advanced tools
Comparing version 3.1.0 to 3.1.1
@@ -8,2 +8,5 @@ import * as React from 'react'; | ||
declare class DrawerChild extends React.Component<IDrawerChildProps, IState> { | ||
static defaultProps: { | ||
switchScrollingEffect: () => void; | ||
}; | ||
static getDerivedStateFromProps(props: IDrawerChildProps, { prevProps, _self }: { | ||
@@ -48,2 +51,5 @@ prevProps: IDrawerChildProps; | ||
prototype: DrawerChild; | ||
defaultProps: { | ||
switchScrollingEffect: () => void; | ||
}; | ||
getDerivedStateFromProps: typeof DrawerChild.getDerivedStateFromProps; | ||
@@ -50,0 +56,0 @@ contextType?: React.Context<any>; |
@@ -583,2 +583,5 @@ 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); } | ||
DrawerChild.defaultProps = { | ||
switchScrollingEffect: function switchScrollingEffect() {} | ||
}; | ||
export default polyfill(DrawerChild); |
@@ -8,2 +8,5 @@ import * as React from 'react'; | ||
declare class DrawerChild extends React.Component<IDrawerChildProps, IState> { | ||
static defaultProps: { | ||
switchScrollingEffect: () => void; | ||
}; | ||
static getDerivedStateFromProps(props: IDrawerChildProps, { prevProps, _self }: { | ||
@@ -48,2 +51,5 @@ prevProps: IDrawerChildProps; | ||
prototype: DrawerChild; | ||
defaultProps: { | ||
switchScrollingEffect: () => void; | ||
}; | ||
getDerivedStateFromProps: typeof DrawerChild.getDerivedStateFromProps; | ||
@@ -50,0 +56,0 @@ contextType?: React.Context<any>; |
@@ -22,3 +22,3 @@ "use strict"; | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; if (obj != null) { var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | ||
@@ -603,4 +603,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
DrawerChild.defaultProps = { | ||
switchScrollingEffect: function switchScrollingEffect() {} | ||
}; | ||
var _default = (0, _reactLifecyclesCompat.polyfill)(DrawerChild); | ||
exports.default = _default; |
@@ -18,3 +18,3 @@ "use strict"; | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; if (obj != null) { var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | ||
@@ -21,0 +21,0 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } |
{ | ||
"name": "rc-drawer", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"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
93015
2007