nuke-refresh-control
Advanced tools
Comparing version 2.0.3 to 2.0.4
# Changelog | ||
## 2.0.4 / 2018-05-22 | ||
* [[79fe35a](http://gitlab.alibaba-inc.com/nuke/refresh-control/commit/79fe35ac7a3b191e76f799e2b3111e18c72a7bc8)] - `fix` replace id with ref | ||
## 2.0.3 / 2018-05-09 | ||
@@ -5,0 +9,0 @@ |
@@ -111,3 +111,3 @@ 'use strict'; | ||
if (!this.dom) { | ||
this.dom = (0, _rax.findDOMNode)('webRefresh'); | ||
this.dom = (0, _rax.findDOMNode)(this.refs.webRefresh); | ||
} | ||
@@ -141,3 +141,3 @@ return this.dom; | ||
value: function addAnim() { | ||
(0, _rax.setNativeProps)('webRefresh', { className: 'refreshAnim' }); | ||
(0, _rax.setNativeProps)(this.dom, { className: 'refreshAnim' }); | ||
} | ||
@@ -147,3 +147,3 @@ }, { | ||
value: function removeAnim() { | ||
(0, _rax.setNativeProps)('webRefresh', { className: '' }); | ||
(0, _rax.setNativeProps)(this.dom, { className: '' }); | ||
} | ||
@@ -157,3 +157,3 @@ | ||
/** | ||
* 仿 ios 下拉刷新逻辑 | ||
* 仿 iOS 下拉刷新逻辑 | ||
* 只有超过 refreshControl 的高度后才可以触发时间。 | ||
@@ -187,3 +187,3 @@ * 并执行快速回弹到固定高度的,继而按照动画回弹。 | ||
_nukeView2.default, | ||
{ id: 'webRefresh', style: refreshStyle }, | ||
{ ref: 'webRefresh', style: refreshStyle }, | ||
this.props.children | ||
@@ -190,0 +190,0 @@ ); |
{ | ||
"name": "nuke-refresh-control", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"description": "下拉刷新组件", | ||
@@ -5,0 +5,0 @@ "main": "lib/index", |
@@ -31,3 +31,3 @@ /** @jsx createElement */ | ||
if (!this.dom) { | ||
this.dom = findDOMNode('webRefresh'); | ||
this.dom = findDOMNode(this.refs.webRefresh); | ||
} | ||
@@ -53,6 +53,6 @@ return this.dom; | ||
addAnim() { | ||
setNativeProps('webRefresh', { className: 'refreshAnim' }); | ||
setNativeProps(this.dom, { className: 'refreshAnim' }); | ||
} | ||
removeAnim() { | ||
setNativeProps('webRefresh', { className: '' }); | ||
setNativeProps(this.dom, { className: '' }); | ||
} | ||
@@ -81,3 +81,3 @@ | ||
/** | ||
* 仿 ios 下拉刷新逻辑 | ||
* 仿 iOS 下拉刷新逻辑 | ||
* 只有超过 refreshControl 的高度后才可以触发时间。 | ||
@@ -170,3 +170,3 @@ * 并执行快速回弹到固定高度的,继而按照动画回弹。 | ||
return ( | ||
<View id="webRefresh" style={refreshStyle}> | ||
<View ref="webRefresh" style={refreshStyle}> | ||
{this.props.children} | ||
@@ -173,0 +173,0 @@ </View> |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
23581
0