Comparing version 2.0.3 to 2.0.4
@@ -5,2 +5,3 @@ /** @jsx React.DOM */ | ||
var keyCode = require('./keyCode'); | ||
var rcUtil = require('rc-util'); | ||
@@ -54,3 +55,3 @@ var TabPane = React.createClass({ | ||
React.Children.forEach(this.props.children, function (child) { | ||
if (!activeKey){ | ||
if (!activeKey) { | ||
activeKey = child.key; | ||
@@ -110,9 +111,13 @@ } | ||
var children = self.props.children; | ||
var newChildren = []; | ||
React.Children.forEach(children, function (child) { | ||
child.props.active = activeKey === child.key; | ||
child.props.rootPrefixCls = self.state.prefixCls; | ||
newChildren.push(rcUtil.cloneWithProps(child, { | ||
active: activeKey === child.key, | ||
key: child.key, | ||
rootPrefixCls: self.state.prefixCls | ||
})); | ||
}); | ||
return children; | ||
return newChildren; | ||
}, | ||
@@ -119,0 +124,0 @@ |
{ | ||
"name": "rc-tabs", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"description": "tabs ui component for react", | ||
@@ -26,3 +26,4 @@ "keywords": [ | ||
"dependencies": { | ||
"react": "*" | ||
"react": "*", | ||
"rc-util": "1.x" | ||
} | ||
@@ -45,2 +46,5 @@ }, | ||
}, | ||
"dependencies": { | ||
"rc-util": "1.x" | ||
}, | ||
"devDependencies": { | ||
@@ -47,0 +51,0 @@ "css-loader": "^0.9.1", |
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
19618
391
1
+ Addedrc-util@1.x
+ AddedJSONStream@1.3.5(transitive)
+ Addedaccessory@1.1.0(transitive)
+ Addedacorn@5.7.47.4.1(transitive)
+ Addedacorn-node@1.8.2(transitive)
+ Addedacorn-walk@7.2.0(transitive)
+ Addedamdefine@1.0.1(transitive)
+ Addedap@0.2.0(transitive)
+ Addedasn1.js@4.10.1(transitive)
+ Addedassert@1.5.1(transitive)
+ Addedast-types@0.9.6(transitive)
+ Addedavailable-typed-arrays@1.0.7(transitive)
+ Addedbalanced-match@0.2.11.0.2(transitive)
+ Addedbase62@0.1.1(transitive)
+ Addedbase64-js@1.5.1(transitive)
+ Addedbn.js@4.12.15.2.1(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedbrorand@1.1.0(transitive)
+ Addedbrowser-pack@6.1.0(transitive)
+ Addedbrowser-resolve@2.0.0(transitive)
+ Addedbrowserify@17.0.1(transitive)
+ Addedbrowserify-aes@1.2.0(transitive)
+ Addedbrowserify-cipher@1.0.1(transitive)
+ Addedbrowserify-des@1.0.2(transitive)
+ Addedbrowserify-jsx@0.1.0(transitive)
+ Addedbrowserify-rsa@4.1.1(transitive)
+ Addedbrowserify-shim@3.8.16(transitive)
+ Addedbrowserify-sign@4.2.3(transitive)
+ Addedbrowserify-zlib@0.2.0(transitive)
+ Addedbuffer@5.2.1(transitive)
+ Addedbuffer-from@1.1.2(transitive)
+ Addedbuffer-xor@1.0.3(transitive)
+ Addedbuiltin-status-codes@3.0.0(transitive)
+ Addedcached-path-relative@1.1.0(transitive)
+ Addedcall-bind@1.0.7(transitive)
+ Addedcipher-base@1.0.4(transitive)
+ Addedcombine-source-map@0.8.0(transitive)
+ Addedcommander@2.20.3(transitive)
+ Addedcommoner@0.10.8(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedconcat-stream@1.6.2(transitive)
+ Addedconsole-browserify@1.2.0(transitive)
+ Addedconstants-browserify@1.0.0(transitive)
+ Addedconvert-source-map@1.1.3(transitive)
+ Addedcore-util-is@1.0.3(transitive)
+ Addedcreate-ecdh@4.0.4(transitive)
+ Addedcreate-hash@1.2.0(transitive)
+ Addedcreate-hmac@1.1.7(transitive)
+ Addedcrypto-browserify@3.12.1(transitive)
+ Addeddash-ast@1.0.0(transitive)
+ Addeddefine-data-property@1.1.4(transitive)
+ Addeddefine-properties@1.2.1(transitive)
+ Addeddefined@1.0.1(transitive)
+ Addeddeps-sort@2.0.1(transitive)
+ Addeddes.js@1.1.0(transitive)
+ Addeddetective@3.1.04.7.15.2.1(transitive)
+ Addeddiffie-hellman@5.0.3(transitive)
+ Addeddomain-browser@1.2.0(transitive)
+ Addeddot-parts@1.0.1(transitive)
+ Addedduplexer2@0.1.4(transitive)
+ Addedelliptic@6.6.0(transitive)
+ Addedes-define-property@1.0.0(transitive)
+ Addedes-errors@1.3.0(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedescodegen@1.1.0(transitive)
+ Addedesprima@1.0.43.1.3(transitive)
+ Addedesprima-fb@3001.1.0-dev-harmony-fb8001.1001.0-dev-harmony-fb(transitive)
+ Addedestraverse@1.5.1(transitive)
+ Addedesutils@1.0.0(transitive)
+ Addedevents@3.3.0(transitive)
+ Addedevp_bytestokey@1.0.3(transitive)
+ Addedexposify@0.5.0(transitive)
+ Addedfast-safe-stringify@2.1.1(transitive)
+ Addedfind-parent-dir@0.3.1(transitive)
+ Addedfor-each@0.3.3(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedget-assigned-identifiers@1.2.0(transitive)
+ Addedget-intrinsic@1.2.4(transitive)
+ Addedglob@5.0.157.2.3(transitive)
+ Addedglobo@1.1.0(transitive)
+ Addedgopd@1.0.1(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addedhas-property-descriptors@1.0.2(transitive)
+ Addedhas-proto@1.0.3(transitive)
+ Addedhas-require@1.2.2(transitive)
+ Addedhas-symbols@1.0.3(transitive)
+ Addedhas-tostringtag@1.0.2(transitive)
+ Addedhash-base@3.0.4(transitive)
+ Addedhash.js@1.1.7(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedhmac-drbg@1.0.1(transitive)
+ Addedhtmlescape@1.1.1(transitive)
+ Addedhttps-browserify@1.0.0(transitive)
+ Addediconv-lite@0.4.24(transitive)
+ Addedieee754@1.2.1(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedinherits@2.0.32.0.4(transitive)
+ Addedinline-source-map@0.6.3(transitive)
+ Addedinsert-module-globals@7.2.1(transitive)
+ Addedis-arguments@1.1.1(transitive)
+ Addedis-buffer@1.1.6(transitive)
+ Addedis-callable@1.2.7(transitive)
+ Addedis-core-module@2.15.1(transitive)
+ Addedis-defined@1.0.0(transitive)
+ Addedis-generator-function@1.0.10(transitive)
+ Addedis-typed-array@1.1.13(transitive)
+ Addedisarray@0.0.11.0.0(transitive)
+ Addedjsonparse@1.3.1(transitive)
+ Addedjstransform@8.2.0(transitive)
+ Addedlabeled-stream-splicer@2.0.2(transitive)
+ Addedlodash.memoize@3.0.4(transitive)
+ Addedmap-obj@1.0.1(transitive)
+ Addedmd5.js@1.3.5(transitive)
+ Addedmiller-rabin@4.0.1(transitive)
+ Addedminimalistic-assert@1.0.1(transitive)
+ Addedminimalistic-crypto-utils@1.0.1(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedmkdirp@0.5.6(transitive)
+ Addedmkdirp-classic@0.5.3(transitive)
+ Addedmodule-deps@6.2.3(transitive)
+ Addedmothership@0.3.0(transitive)
+ Addedobject-assign@2.1.1(transitive)
+ Addedobject-inspect@1.13.3(transitive)
+ Addedobject-keys@0.4.01.1.1(transitive)
+ Addedobject.assign@4.1.5(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedos-browserify@0.3.0(transitive)
+ Addedpako@1.0.11(transitive)
+ Addedparents@1.0.1(transitive)
+ Addedparse-asn1@5.1.7(transitive)
+ Addedpatch-text@1.0.2(transitive)
+ Addedpath-browserify@1.0.1(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedpath-parse@1.0.7(transitive)
+ Addedpath-platform@0.11.15(transitive)
+ Addedpbkdf2@3.1.2(transitive)
+ Addedpossible-typed-array-names@1.0.0(transitive)
+ Addedprivate@0.1.8(transitive)
+ Addedprocess@0.11.10(transitive)
+ Addedprocess-nextick-args@2.0.1(transitive)
+ Addedpublic-encrypt@4.0.3(transitive)
+ Addedpunycode@1.4.1(transitive)
+ Addedq@1.5.1(transitive)
+ Addedqs@6.13.0(transitive)
+ Addedquerystring-es3@0.2.1(transitive)
+ Addedrandombytes@2.1.0(transitive)
+ Addedrandomfill@1.0.4(transitive)
+ Addedrc-util@1.0.0(transitive)
+ Addedreact-tools@0.12.2(transitive)
+ Addedread-only-stream@2.0.0(transitive)
+ Addedreadable-stream@1.0.341.1.142.3.83.6.2(transitive)
+ Addedrecast@0.11.23(transitive)
+ Addedrename-function-calls@0.1.1(transitive)
+ Addedreplace-requires@1.0.4(transitive)
+ Addedresolve@0.6.31.22.8(transitive)
+ Addedripemd160@2.0.2(transitive)
+ Addedsafe-buffer@5.1.25.2.1(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
+ Addedset-function-length@1.2.2(transitive)
+ Addedsha.js@2.4.11(transitive)
+ Addedshasum-object@1.0.0(transitive)
+ Addedshell-quote@1.8.1(transitive)
+ Addedside-channel@1.0.6(transitive)
+ Addedsimple-concat@1.0.1(transitive)
+ Addedsource-map@0.1.310.1.430.5.7(transitive)
+ Addedstream-browserify@3.0.0(transitive)
+ Addedstream-combiner2@1.1.1(transitive)
+ Addedstream-http@3.2.0(transitive)
+ Addedstream-splicer@2.0.1(transitive)
+ Addedstring_decoder@0.10.311.1.11.3.0(transitive)
+ Addedsubarg@1.0.0(transitive)
+ Addedsupports-preserve-symlinks-flag@1.0.0(transitive)
+ Addedsyntax-error@1.4.0(transitive)
+ Addedternary@1.0.0(transitive)
+ Addedthrough@2.3.8(transitive)
+ Addedthrough2@0.4.20.6.52.0.5(transitive)
+ Addedtimers-browserify@1.4.2(transitive)
+ Addedtransformify@0.1.2(transitive)
+ Addedtty-browserify@0.0.1(transitive)
+ Addedtypedarray@0.0.6(transitive)
+ Addedumd@3.0.3(transitive)
+ Addedundeclared-identifiers@1.1.3(transitive)
+ Addedurl@0.11.4(transitive)
+ Addedutil@0.10.40.12.5(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
+ Addedvm-browserify@1.1.2(transitive)
+ Addedwhich-typed-array@1.1.15(transitive)
+ Addedwrappy@1.0.2(transitive)
+ Addedxtend@2.1.24.0.2(transitive)