refactor: Replace react-addons-pure-render-mixin with rc-util/lib/PureRenderMixin (#3627)

This commit is contained in:
Wei Zhu 2016-10-28 13:56:23 +08:00 committed by Benjy Cui
parent 52e3511192
commit f8d2aeefc3
9 changed files with 8 additions and 11 deletions

View File

@ -1,6 +1,6 @@
import React from 'react';
import Checkbox from './index';
import PureRenderMixin from 'react-addons-pure-render-mixin';
import PureRenderMixin from 'rc-util/lib/PureRenderMixin';
export interface CheckboxOptionType {
label: string;

View File

@ -2,7 +2,7 @@ import RcCheckbox from 'rc-checkbox';
import React from 'react';
import CheckboxGroup from './Group';
import classNames from 'classnames';
import PureRenderMixin from 'react-addons-pure-render-mixin';
import PureRenderMixin from 'rc-util/lib/PureRenderMixin';
import splitObject from '../_util/splitObject';
export interface CheckboxProps {

View File

@ -1,7 +1,7 @@
import React from 'react';
import { PropTypes } from 'react';
import classNames from 'classnames';
import PureRenderMixin from 'react-addons-pure-render-mixin';
import PureRenderMixin from 'rc-util/lib/PureRenderMixin';
import omit from 'omit.js';
import warning from 'warning';
import assign from 'object-assign';

View File

@ -1,7 +1,7 @@
import React from 'react';
import classNames from 'classnames';
import warning from 'warning';
import PureRenderMixin from 'react-addons-pure-render-mixin';
import PureRenderMixin from 'rc-util/lib/PureRenderMixin';
import Row from '../row';
import Col from '../col';
import { WrappedFormUtils } from './Form';

View File

@ -2,7 +2,7 @@ import React from 'react';
import classNames from 'classnames';
import Radio from './radio';
import RadioButton from './radioButton';
import PureRenderMixin from 'react-addons-pure-render-mixin';
import PureRenderMixin from 'rc-util/lib/PureRenderMixin';
import assign from 'object-assign';
function getCheckedValue(children) {

View File

@ -1,7 +1,7 @@
import RcRadio from 'rc-radio';
import React from 'react';
import classNames from 'classnames';
import PureRenderMixin from 'react-addons-pure-render-mixin';
import PureRenderMixin from 'rc-util/lib/PureRenderMixin';
export interface RadioProps {
/** 指定当前是否选中*/

View File

@ -3,7 +3,7 @@ import Checkbox from '../checkbox';
import Search from './search';
import classNames from 'classnames';
import Animate from 'rc-animate';
import PureRenderMixin from 'react-addons-pure-render-mixin';
import PureRenderMixin from 'rc-util/lib/PureRenderMixin';
import assign from 'object-assign';
import { TransferItem } from './index';

View File

@ -70,8 +70,7 @@
"rc-tree": "~1.3.6",
"rc-tree-select": "~1.8.0",
"rc-upload": "~2.2.0",
"rc-util": "^4.0.0",
"react-addons-pure-render-mixin": "^15.0.0",
"rc-util": "^4.0.1",
"react-slick": "~0.14.2",
"shallowequal": "^0.2.2",
"warning": "~3.0.0"

View File

@ -1,7 +1,5 @@
declare module 'classnames';
declare module 'react-addons-pure-render-mixin';
declare module 'rc-calendar*';
declare module 'rc-time-picker*';