mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 20:49:53 +08:00
refactor: Replace react-addons-pure-render-mixin with rc-util/lib/PureRenderMixin (#3627)
This commit is contained in:
parent
52e3511192
commit
f8d2aeefc3
@ -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;
|
||||
|
@ -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 {
|
||||
|
@ -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';
|
||||
|
@ -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';
|
||||
|
@ -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) {
|
||||
|
@ -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 {
|
||||
/** 指定当前是否选中*/
|
||||
|
@ -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';
|
||||
|
||||
|
@ -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"
|
||||
|
2
typings/custom-typings.d.ts
vendored
2
typings/custom-typings.d.ts
vendored
@ -1,7 +1,5 @@
|
||||
declare module 'classnames';
|
||||
|
||||
declare module 'react-addons-pure-render-mixin';
|
||||
|
||||
declare module 'rc-calendar*';
|
||||
|
||||
declare module 'rc-time-picker*';
|
||||
|
Loading…
Reference in New Issue
Block a user