From 09db9f2436240931d6d178a30f8b25d8362c4c07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=81=8F=E5=8F=B3?= Date: Thu, 16 Jun 2016 22:06:06 +0800 Subject: [PATCH] Revert "Remove react-addons-pure-render-mixin, use rc-util's PureRenderMixin instead" (#2074) --- components/checkbox/Group.jsx | 2 +- components/checkbox/index.jsx | 2 +- components/form/Form.jsx | 2 +- components/form/FormItem.jsx | 2 +- components/radio/group.jsx | 2 +- components/radio/radio.jsx | 2 +- package.json | 1 + 7 files changed, 7 insertions(+), 6 deletions(-) diff --git a/components/checkbox/Group.jsx b/components/checkbox/Group.jsx index b00ff18452..5ec570d40d 100644 --- a/components/checkbox/Group.jsx +++ b/components/checkbox/Group.jsx @@ -1,6 +1,6 @@ import React from 'react'; import Checkbox from './index'; -import { PureRenderMixin } from 'rc-util'; +import PureRenderMixin from 'react-addons-pure-render-mixin'; export default class CheckboxGroup extends React.Component { static defaultProps = { diff --git a/components/checkbox/index.jsx b/components/checkbox/index.jsx index 6acab2297f..9bca526e12 100644 --- a/components/checkbox/index.jsx +++ b/components/checkbox/index.jsx @@ -2,7 +2,7 @@ import RcCheckbox from 'rc-checkbox'; import React from 'react'; import CheckboxGroup from './Group'; import classNames from 'classnames'; -import { PureRenderMixin } from 'rc-util'; +import PureRenderMixin from 'react-addons-pure-render-mixin'; export default class Checkbox extends React.Component { static Group = CheckboxGroup; diff --git a/components/form/Form.jsx b/components/form/Form.jsx index 92ccc00375..ef773bd9f4 100644 --- a/components/form/Form.jsx +++ b/components/form/Form.jsx @@ -1,6 +1,6 @@ import React from 'react'; import classNames from 'classnames'; -import { PureRenderMixin } from 'rc-util'; +import PureRenderMixin from 'react-addons-pure-render-mixin'; export default class Form extends React.Component { static defaultProps = { diff --git a/components/form/FormItem.jsx b/components/form/FormItem.jsx index d990bdf295..5e8e5523f6 100644 --- a/components/form/FormItem.jsx +++ b/components/form/FormItem.jsx @@ -1,6 +1,6 @@ import React from 'react'; import classNames from 'classnames'; -import { PureRenderMixin } from 'rc-util'; +import PureRenderMixin from 'react-addons-pure-render-mixin'; export default class FormItem extends React.Component { static defaultProps = { diff --git a/components/radio/group.jsx b/components/radio/group.jsx index 5d8cde65b0..bd2b748125 100644 --- a/components/radio/group.jsx +++ b/components/radio/group.jsx @@ -2,7 +2,7 @@ import React from 'react'; import classNames from 'classnames'; import Radio from './radio'; import RadioButton from './radioButton'; -import { PureRenderMixin } from 'rc-util'; +import PureRenderMixin from 'react-addons-pure-render-mixin'; function getCheckedValue(children) { let value = null; diff --git a/components/radio/radio.jsx b/components/radio/radio.jsx index 8e4f725611..5722f39f93 100644 --- a/components/radio/radio.jsx +++ b/components/radio/radio.jsx @@ -1,7 +1,7 @@ import RcRadio from 'rc-radio'; import React from 'react'; import classNames from 'classnames'; -import { PureRenderMixin } from 'rc-util'; +import PureRenderMixin from 'react-addons-pure-render-mixin'; export default class Radio extends React.Component { static defaultProps = { diff --git a/package.json b/package.json index 731618ffac..eb0e4af46f 100644 --- a/package.json +++ b/package.json @@ -69,6 +69,7 @@ "rc-upload": "~1.13.0", "rc-util": "~3.1.3", "react-slick": "~0.12.0", + "react-addons-pure-render-mixin": "~15.1.0", "warning": "~3.0.0" }, "devDependencies": {