rmc-cascader
Advanced tools
Comparing version 2.0.1 to 2.2.0
@@ -1,4 +0,4 @@ | ||
import { Component } from 'react-native'; | ||
import * as React from 'react'; | ||
import { CascaderProps, CascaderState } from './CascaderTypes'; | ||
export default class Cascader extends Component<CascaderProps, CascaderState> { | ||
export default class Cascader extends React.Component<CascaderProps, CascaderState> { | ||
getChildrenTree: () => any[]; | ||
@@ -5,0 +5,0 @@ getColArray: () => any[]; |
@@ -9,4 +9,6 @@ 'use strict'; | ||
var _reactNative2 = _interopRequireDefault(_reactNative); | ||
var _react = require('react'); | ||
var React = _interopRequireWildcard(_react); | ||
var _Picker = require('rmc-picker/lib/Picker'); | ||
@@ -26,2 +28,4 @@ | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj["default"] = obj; return newObj; } } | ||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } | ||
@@ -47,4 +51,4 @@ | ||
var Cascader = function (_Component) { | ||
_inherits(Cascader, _Component); | ||
var Cascader = function (_React$Component) { | ||
_inherits(Cascader, _React$Component); | ||
@@ -54,3 +58,3 @@ function Cascader() { | ||
return _possibleConstructorReturn(this, _Component.apply(this, arguments)); | ||
return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); | ||
} | ||
@@ -65,6 +69,6 @@ | ||
var cols = this.getColArray().map(function (_, i) { | ||
return _reactNative2["default"].createElement( | ||
return React.createElement( | ||
_reactNative.View, | ||
{ style: styles.item, key: i }, | ||
_reactNative2["default"].createElement( | ||
React.createElement( | ||
_Picker2["default"], | ||
@@ -78,3 +82,3 @@ { pure: false, selectedValue: value[i], onValueChange: function onValueChange(v) { | ||
}); | ||
return _reactNative2["default"].createElement( | ||
return React.createElement( | ||
_reactNative.View, | ||
@@ -87,3 +91,3 @@ { style: styles.root }, | ||
return Cascader; | ||
}(_reactNative.Component); | ||
}(React.Component); | ||
@@ -90,0 +94,0 @@ exports["default"] = Cascader; |
@@ -1,2 +0,2 @@ | ||
import * as React from './React'; | ||
import * as React from 'react'; | ||
import { PopupPickerPropsWeb } from 'rmc-picker/lib/PopupPickerTypes'; | ||
@@ -3,0 +3,0 @@ import { CascaderProps, CascaderValue } from './CascaderTypes'; |
@@ -9,5 +9,5 @@ 'use strict'; | ||
var _React = require('./React'); | ||
var _react = require('react'); | ||
var React = _interopRequireWildcard(_React); | ||
var React = _interopRequireWildcard(_react); | ||
@@ -14,0 +14,0 @@ var _Cascader = require('./Cascader'); |
{ | ||
"name": "rmc-cascader", | ||
"version": "2.0.1", | ||
"version": "2.2.0", | ||
"description": "m-cascader ui component for react", | ||
@@ -40,3 +40,3 @@ "keywords": [ | ||
"coverage": "rc-tools run coverage", | ||
"rn-start": "rnpackager start" | ||
"rn-start": "node node_modules/react-native/local-cli/cli.js start" | ||
}, | ||
@@ -48,7 +48,6 @@ "devDependencies": { | ||
"rc-tools": "5.x", | ||
"rn-core": "~0.3.0", | ||
"rn-packager": "~0.3.0", | ||
"react": "0.14.x", | ||
"react-addons-test-utils": "0.14.x", | ||
"react-dom": "0.14.x" | ||
"react-native": "0.28.0", | ||
"react": "15.x", | ||
"react-addons-test-utils": "15.x", | ||
"react-dom": "15.x" | ||
}, | ||
@@ -55,0 +54,0 @@ "typings": "./lib/index.web.d.ts", |
@@ -8,2 +8,4 @@ # rmc-cascader | ||
[![NPM version][npm-image]][npm-url] | ||
![react-native](https://img.shields.io/badge/react--native-%3E%3D_0.28.0-green.svg) | ||
![react](https://img.shields.io/badge/react-%3E%3D_15.2.0-green.svg) | ||
[![build status][travis-image]][travis-url] | ||
@@ -63,3 +65,3 @@ [![Test coverage][coveralls-image]][coveralls-url] | ||
http://localhost:8081/examples/react-native/simple.bundle?platform=ios | ||
http://localhost:8081/examples/react-native/picker.bundle?platform=ios | ||
http://localhost:8081/examples/react-native/popup.bundle?platform=ios | ||
@@ -66,0 +68,0 @@ |
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
8
127
25734
20
460