New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

nuke-list-view

Package Overview
Dependencies
Maintainers
3
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nuke-list-view - npm Package Compare versions

Comparing version 2.3.5 to 2.3.6

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

## [2.3.6](https://gitlab.alibaba-inc.com/nuke/list-view/compare/v2.3.5...v2.3.6) (2019-07-19)
### Bug Fixes
* fix list ref not exist ([d4fddae](https://gitlab.alibaba-inc.com/nuke/list-view/commit/d4fddae))
## [2.3.5](https://gitlab.alibaba-inc.com/nuke/list-view/compare/v2.3.4...v2.3.5) (2019-07-02)

@@ -8,0 +19,0 @@

10

lib/index.js

@@ -62,3 +62,5 @@ /** @jsx createElement */

return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = ListView.__proto__ || Object.getPrototypeOf(ListView)).call.apply(_ref, [this].concat(args))), _this), _this.resetLoadmore = function () {
_this.refs.list.resetLoadmore && _this.refs.list.resetLoadmore();
if (_this.refs.list && _nukeEnv.isWeex) {
_this.refs.list.resetLoadmore && _this.refs.list.resetLoadmore();
}
}, _this.scrollTo = function (options) {

@@ -140,7 +142,3 @@ var x = parseInt(options.x);

_nukeCell2.default,
{
keepScrollPosition: _keepScrollPosition,
ref: ref,
key: child.key
},
{ keepScrollPosition: _keepScrollPosition, ref: ref, key: child.key },
child

@@ -147,0 +145,0 @@ );

32

package.json
{
"name": "nuke-list-view",
"version": "2.3.5",
"version": "2.3.6",
"description": "列表",

@@ -28,18 +28,18 @@ "main": "lib/index",

"dependencies": {
"nuke-cell": "^2.3.5",
"nuke-env": "^2.3.5",
"nuke-header": "^2.3.5",
"nuke-refresh-control": "^2.3.5",
"nuke-scroll-view": "^2.3.5"
"nuke-cell": "^2.3.6",
"nuke-env": "^2.3.6",
"nuke-header": "^2.3.6",
"nuke-refresh-control": "^2.3.6",
"nuke-scroll-view": "^2.3.6"
},
"devDependencies": {
"nuke-button": "^2.3.5",
"nuke-iconfont": "^2.3.5",
"nuke-image": "^2.3.5",
"nuke-modal": "^2.3.5",
"nuke-navigator": "^2.3.5",
"nuke-page": "^2.3.5",
"nuke-text": "^2.3.5",
"nuke-touchable": "^2.3.5",
"nuke-view": "^2.3.5"
"nuke-button": "^2.3.6",
"nuke-iconfont": "^2.3.6",
"nuke-image": "^2.3.6",
"nuke-modal": "^2.3.6",
"nuke-navigator": "^2.3.6",
"nuke-page": "^2.3.6",
"nuke-text": "^2.3.6",
"nuke-touchable": "^2.3.6",
"nuke-view": "^2.3.6"
},

@@ -50,3 +50,3 @@ "publishConfig": {

"license": "Apache-2.0",
"gitHead": "bbc8da8fa8150de1b8346d7171a1fae5713755d4"
"gitHead": "28f4e4f3cbaeef7308eaea0b5cc2ccded4eefedb"
}

@@ -5,9 +5,3 @@ /** @jsx createElement */

import {
createElement,
Component,
findDOMNode,
PropTypes,
cloneElement,
} from 'rax';
import { createElement, Component, findDOMNode, PropTypes, cloneElement } from 'rax';
import { isWeex } from 'nuke-env';

@@ -31,3 +25,5 @@ import ScrollView from 'nuke-scroll-view';

resetLoadmore = () => {
this.refs.list.resetLoadmore && this.refs.list.resetLoadmore();
if (this.refs.list && isWeex) {
this.refs.list.resetLoadmore && this.refs.list.resetLoadmore();
}
};

@@ -41,5 +37,3 @@

const dom = require('@weex-module/dom');
const firstCell = this.hasHeader
? findDOMNode(this.refs.cell1)
: findDOMNode(this.refs.cell0);
const firstCell = this.hasHeader ? findDOMNode(this.refs.cell1) : findDOMNode(this.refs.cell0);
dom.scrollToElement(firstCell.ref, {

@@ -53,9 +47,3 @@ offset: x || y || 0,

getChidren() {
const {
children,
renderHeader,
renderFooter,
renderRow,
dataSource = [],
} = this.props;
const { children, renderHeader, renderFooter, renderRow, dataSource = [] } = this.props;
if (children) {

@@ -97,7 +85,3 @@ return !Array.isArray(children) ? [children] : children;

return (
<Cell
keepScrollPosition={_keepScrollPosition}
ref={ref}
key={child.key}
>
<Cell keepScrollPosition={_keepScrollPosition} ref={ref} key={child.key}>
{child}

@@ -104,0 +88,0 @@ </Cell>

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc