rc-swipeout
Advanced tools
Comparing version 1.2.5 to 1.2.6
# History | ||
# 1.2.6 | ||
- new: support `className` for button; | ||
# 1.2.5 | ||
@@ -4,0 +8,0 @@ |
@@ -229,3 +229,3 @@ 'use strict'; | ||
{ key: i, | ||
className: prefixCls + '-btn', | ||
className: prefixCls + '-btn ' + (btn.hasOwnProperty('className') ? btn.className : ''), | ||
style: btn.style, | ||
@@ -232,0 +232,0 @@ onClick: function onClick(e) { |
{ | ||
"name": "rc-swipeout", | ||
"version": "1.2.5", | ||
"version": "1.2.6", | ||
"description": "swipe out ui component for react(web and react-native)", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -52,3 +52,4 @@ # rc-swipeout | ||
onPress:() => console.log('reply'), | ||
style: { backgroundColor: 'orange', color: 'white' } | ||
style: { backgroundColor: 'orange', color: 'white' }, | ||
className: 'custom-class-1' | ||
} | ||
@@ -60,3 +61,4 @@ ]} | ||
onPress:() => console.log('delete'), | ||
style: { backgroundColor: 'red', color: 'white' } | ||
style: { backgroundColor: 'red', color: 'white' }, | ||
className: 'custom-class-2' | ||
} | ||
@@ -100,2 +102,3 @@ ]} | ||
| onPress | button press function | Function | `function() {}` | | ||
| className | button custom class | String | `` | | ||
@@ -102,0 +105,0 @@ ## Test Case |
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
21137
120