mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 20:49:53 +08:00
downgrade rc-util
This commit is contained in:
parent
2be1577b32
commit
90c2d7ee12
@ -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() {
|
||||
|
@ -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,
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user