Browse Source

Revert "Remove react-addons-pure-render-mixin, use rc-util's PureRenderMixin instead" (#2074)

pull/2090/head
偏右 9 years ago
committed by GitHub
parent
commit
09db9f2436
  1. 2
      components/checkbox/Group.jsx
  2. 2
      components/checkbox/index.jsx
  3. 2
      components/form/Form.jsx
  4. 2
      components/form/FormItem.jsx
  5. 2
      components/radio/group.jsx
  6. 2
      components/radio/radio.jsx
  7. 1
      package.json

2
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 = {

2
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;

2
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 = {

2
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 = {

2
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;

2
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 = {

1
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": {

Loading…
Cancel
Save