Comparing version 7.2.0 to 7.3.0
@@ -26,3 +26,5 @@ 'use strict'; | ||
return { | ||
scrollAnimated: true | ||
scrollAnimated: true, | ||
onPrevClick: function onPrevClick() {}, | ||
onNextClick: function onNextClick() {} | ||
}; | ||
@@ -192,3 +194,4 @@ }, | ||
}, | ||
prev: function prev() { | ||
prev: function prev(e) { | ||
this.props.onPrevClick(e); | ||
var navWrapNode = this.refs.navWrap; | ||
@@ -200,3 +203,4 @@ var navWrapNodeWH = this.getOffsetWH(navWrapNode); | ||
}, | ||
next: function next() { | ||
next: function next(e) { | ||
this.props.onNextClick(e); | ||
var navWrapNode = this.refs.navWrap; | ||
@@ -203,0 +207,0 @@ var navWrapNodeWH = this.getOffsetWH(navWrapNode); |
{ | ||
"name": "rc-tabs", | ||
"version": "7.2.0", | ||
"version": "7.3.0", | ||
"description": "tabs ui component for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -236,5 +236,34 @@ # rc-tabs | ||
### lib/ScrollableTabBar | ||
scrollable tab bar, in addition to tab bar props, extra props: | ||
<table class="table table-bordered table-striped"> | ||
<thead> | ||
<tr> | ||
<th style="width: 100px;">name</th> | ||
<th style="width: 50px;">type</th> | ||
<th>default</th> | ||
<th>description</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>onPrevClick</td> | ||
<td>(e: Event): void</td> | ||
<th></th> | ||
<td>callback when prev button is clicked</td> | ||
</tr> | ||
<tr> | ||
<td>onNextClick</td> | ||
<td>(e: Event): void</td> | ||
<th></th> | ||
<td>callback when next button is clicked</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
### lib/ScrollableInkTabBar | ||
scrollable tab bar with ink indicator, same with tab bar/ink bar props. | ||
scrollable tab bar with ink indicator, same with tab bar and ink bar and scrollable bar props. | ||
@@ -241,0 +270,0 @@ ### lib/SwipeableInkTabBar (Use for Mobile) |
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
74016
1894
400
0