downgrade rc-util

This commit is contained in:
afc163 2016-06-16 22:34:54 +08:00
parent 2be1577b32
commit 90c2d7ee12
3 changed files with 6 additions and 6 deletions

View File

@ -1,6 +1,6 @@
import React from 'react';
import ReactDOM from 'react-dom';
import { Dom } from 'rc-util';
import addEventListener from 'rc-util/lib/Dom/addEventListener';
import classNames from 'classnames';
import warning from 'warning';
@ -105,8 +105,8 @@ export default class Affix extends React.Component {
componentDidMount() {
warning(!('offset' in this.props), '`offset` prop of Affix is deprecated, use `offsetTop` instead.');
this.scrollEvent = Dom.addEventListener(window, 'scroll', this.handleScroll);
this.resizeEvent = Dom.addEventListener(window, 'resize', this.handleScroll);
this.scrollEvent = addEventListener(window, 'scroll', this.handleScroll);
this.resizeEvent = addEventListener(window, 'resize', this.handleScroll);
}
componentWillUnmount() {

View File

@ -1,6 +1,6 @@
import React, { PropTypes } from 'react';
import Dialog from 'rc-dialog';
import { Dom } from 'rc-util';
import addEventListener from 'rc-util/lib/Dom/addEventListener';
import Button from '../button';
function noop() {}
@ -52,7 +52,7 @@ export default class Modal extends React.Component {
return;
}
//
Dom.addEventListener(document.documentElement, 'click', (e) => {
addEventListener(document.documentElement, 'click', (e) => {
mousePosition = {
x: e.pageX,
y: e.pageY,

View File

@ -67,7 +67,7 @@
"rc-tree": "~1.3.1",
"rc-tree-select": "~1.7.2",
"rc-upload": "~1.13.0",
"rc-util": "~3.2.0",
"rc-util": "~3.1.3",
"react-slick": "~0.12.0",
"react-addons-pure-render-mixin": "~15.1.0",
"warning": "~3.0.0"