rc-notification
Advanced tools
Comparing version 5.0.1 to 5.0.2
@@ -13,3 +13,2 @@ import * as React from 'react'; | ||
onClick?: React.MouseEventHandler<HTMLDivElement>; | ||
times: number; | ||
} | ||
@@ -24,3 +23,5 @@ export interface NoticeProps extends Omit<NoticeConfig, 'onClose'> { | ||
} | ||
declare const Notify: React.ForwardRefExoticComponent<NoticeProps & React.RefAttributes<HTMLDivElement>>; | ||
declare const Notify: React.ForwardRefExoticComponent<NoticeProps & { | ||
times?: number; | ||
} & React.RefAttributes<HTMLDivElement>>; | ||
export default Notify; |
@@ -9,3 +9,2 @@ import * as React from 'react'; | ||
duration?: number | null; | ||
times: number; | ||
} | ||
@@ -12,0 +11,0 @@ export interface NotificationsProps { |
@@ -48,8 +48,10 @@ import _extends from "@babel/runtime/helpers/esm/extends"; | ||
}); | ||
var innerConfig = _objectSpread({}, config); | ||
if (index >= 0) { | ||
config.times = (config.times || 0) + 1; | ||
clone[index] = config; | ||
var _list$index; | ||
innerConfig.times = (((_list$index = list[index]) === null || _list$index === void 0 ? void 0 : _list$index.times) || 0) + 1; | ||
clone[index] = innerConfig; | ||
} else { | ||
config.times = 0; | ||
clone.push(config); | ||
innerConfig.times = 0; | ||
clone.push(innerConfig); | ||
} | ||
@@ -56,0 +58,0 @@ if (maxCount > 0 && clone.length > maxCount) { |
@@ -13,3 +13,2 @@ import * as React from 'react'; | ||
onClick?: React.MouseEventHandler<HTMLDivElement>; | ||
times: number; | ||
} | ||
@@ -24,3 +23,5 @@ export interface NoticeProps extends Omit<NoticeConfig, 'onClose'> { | ||
} | ||
declare const Notify: React.ForwardRefExoticComponent<NoticeProps & React.RefAttributes<HTMLDivElement>>; | ||
declare const Notify: React.ForwardRefExoticComponent<NoticeProps & { | ||
times?: number; | ||
} & React.RefAttributes<HTMLDivElement>>; | ||
export default Notify; |
@@ -9,3 +9,2 @@ import * as React from 'react'; | ||
duration?: number | null; | ||
times: number; | ||
} | ||
@@ -12,0 +11,0 @@ export interface NotificationsProps { |
@@ -58,8 +58,10 @@ "use strict"; | ||
}); | ||
var innerConfig = (0, _objectSpread2.default)({}, config); | ||
if (index >= 0) { | ||
config.times = (config.times || 0) + 1; | ||
clone[index] = config; | ||
var _list$index; | ||
innerConfig.times = (((_list$index = list[index]) === null || _list$index === void 0 ? void 0 : _list$index.times) || 0) + 1; | ||
clone[index] = innerConfig; | ||
} else { | ||
config.times = 0; | ||
clone.push(config); | ||
innerConfig.times = 0; | ||
clone.push(innerConfig); | ||
} | ||
@@ -66,0 +68,0 @@ if (maxCount > 0 && clone.length > maxCount) { |
{ | ||
"name": "rc-notification", | ||
"version": "5.0.1", | ||
"version": "5.0.2", | ||
"description": "notification ui component for react", | ||
@@ -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
51408
984