nuke-button
Advanced tools
Comparing version 2.0.5 to 2.0.6
# Changelog | ||
## 2.0.6 / 2018-06-01 | ||
* [[100c0d9](http://gitlab.alibaba-inc.com/nuke/button/commit/100c0d91086280843f3d9f4f7a2287cc8fa84af3)] - `fix` fix disabled button issue | ||
## 2.0.5 / 2018-05-22 | ||
@@ -5,0 +9,0 @@ |
@@ -48,3 +48,3 @@ /** @jsx createElement */ | ||
var ActiveAttr = ['color', 'backgroundColor', 'borderColor']; | ||
var LoadingPic = '//img.alicdn.com/tfs/TB179d4LpXXXXaUXVXXXXXXXXXX-32-32.gif?getAvatar=avatar'; | ||
var LoadingPic = 'https://img.alicdn.com/tfs/TB179d4LpXXXXaUXVXXXXXXXXXX-32-32.gif?getAvatar=avatar'; | ||
@@ -67,2 +67,3 @@ var Button = function (_Component) { | ||
value: function onPress(e) { | ||
if (this.props.disabled) return; | ||
this.props.onPress(e); | ||
@@ -73,2 +74,3 @@ } | ||
value: function onTextPress(e) { | ||
if (this.props.disabled) return; | ||
// stopTextPropagation in web | ||
@@ -75,0 +77,0 @@ if (_nukeEnv.isWeb) { |
{ | ||
"name": "nuke-button", | ||
"version": "2.0.5", | ||
"version": "2.0.6", | ||
"description": "按钮", | ||
@@ -68,5 +68,5 @@ "main": "lib/index", | ||
"publishConfig": { | ||
"registry": "http://registry.npmjs.org" | ||
"registry": "https://registry.npmjs.org" | ||
}, | ||
"license": "Apache" | ||
} |
@@ -23,3 +23,3 @@ /** @jsx createElement */ | ||
const LoadingPic = | ||
'//img.alicdn.com/tfs/TB179d4LpXXXXaUXVXXXXXXXXXX-32-32.gif?getAvatar=avatar'; | ||
'https://img.alicdn.com/tfs/TB179d4LpXXXXaUXVXXXXXXXXXX-32-32.gif?getAvatar=avatar'; | ||
@@ -33,5 +33,7 @@ class Button extends Component { | ||
onPress(e) { | ||
if (this.props.disabled) return; | ||
this.props.onPress(e); | ||
} | ||
onTextPress(e) { | ||
if (this.props.disabled) return; | ||
// stopTextPropagation in web | ||
@@ -38,0 +40,0 @@ if (isWeb) { |
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
108834
2068