nuke-refresh-control
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -7,2 +7,4 @@ 'use strict'; | ||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
@@ -14,12 +16,6 @@ | ||
var _nukeEnv2 = _interopRequireDefault(_nukeEnv); | ||
var _web = require('./view/web'); | ||
var _raxRefreshcontrol = require('rax-refreshcontrol'); | ||
var _web2 = _interopRequireDefault(_web); | ||
var _raxRefreshcontrol2 = _interopRequireDefault(_raxRefreshcontrol); | ||
var _nukeView = require('nuke-view'); | ||
var _nukeView2 = _interopRequireDefault(_nukeView); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -34,6 +30,2 @@ | ||
var isWeex = _nukeEnv2.default.isWeex, | ||
isWeb = _nukeEnv2.default.isWeb, | ||
appInfo = _nukeEnv2.default.appInfo; | ||
var RefreshControl = function (_Component) { | ||
@@ -51,7 +43,7 @@ _inherits(RefreshControl, _Component); | ||
value: function render() { | ||
if (isWeex) { | ||
return (0, _rax.createElement)(_raxRefreshcontrol2.default, this.props); | ||
} else { | ||
return (0, _rax.createElement)(_nukeView2.default, this.props); | ||
if (_nukeEnv.isWeex) { | ||
var displayRefresh = this.props.refreshing ? 'show' : 'hide'; | ||
return (0, _rax.createElement)('refresh', _extends({}, this.props, { display: displayRefresh })); | ||
} | ||
return (0, _rax.createElement)(_web2.default, this.props); | ||
} | ||
@@ -63,3 +55,4 @@ }]); | ||
RefreshControl.displayName = 'RefreshControl'; | ||
exports.default = RefreshControl; | ||
module.exports = exports['default']; |
{ | ||
"name": "nuke-refresh-control", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "含 h5 版本的下拉刷新组件", | ||
"main": "lib/index", | ||
"files": ["lib", "docs", "theme", "README.md", "HISTORY.md"], | ||
"keywords": ["nuke", "pull-to-refresh", "refresh-control"], | ||
"files": [ | ||
"lib", | ||
"docs", | ||
"theme", | ||
"README.md", | ||
"HISTORY.md" | ||
], | ||
"keywords": [ | ||
"nuke", | ||
"pull-to-refresh", | ||
"refresh-control" | ||
], | ||
"author": { | ||
@@ -39,4 +49,3 @@ "name": "leanhunter", | ||
"nuke-view": "^0.x.x", | ||
"nuke-env": "^0.x.x", | ||
"rax-refreshcontrol": "^0.4.20" | ||
"nuke-env": "^0.x.x" | ||
}, | ||
@@ -43,0 +52,0 @@ "devDependencies": { |
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
15597
2
8
237
1
- Removedrax-refreshcontrol@^0.4.20
- Removedrax-refreshcontrol@0.4.20(transitive)