carousel-component
Advanced tools
Comparing version 2.0.3 to 2.0.4
{ | ||
"name": "carousel-component", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"description": "A vuejs and reactjs carousel component.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -29,5 +29,5 @@ import * as tslib_1 from "tslib"; | ||
var list = this.props.data.filter(function (item, i) { return i >= _this.currentIndex - _this.actualCount && i < _this.currentIndex + _this.actualCount * 2; }) | ||
.map(function (item) { | ||
.map(function (item, i) { | ||
var conponent = React.createElement(item.component, { data: item.data }); | ||
return (React.createElement("li", { style: _this.liStyle }, conponent)); | ||
return (React.createElement("li", { style: _this.liStyle, key: i }, conponent)); | ||
}); | ||
@@ -34,0 +34,0 @@ return (React.createElement("div", { className: "carousel", style: this.containerStyle }, |
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
22284