提交 a52de547 编写于 作者: 偏右

Merge pull request #369 from benjycui/feature-react@0.14.x

fix: antd build fail
import React from 'react';
import joinClasses from 'react/lib/joinClasses';
import rcUtil from 'rc-util';
function getScroll(w, top) {
......@@ -89,12 +88,14 @@ let Affix = React.createClass({
},
render() {
let affix = this.state.affix ? 'ant-affix' : '';
let className = this.props.className;
const className = rcUtil.classSet({
[this.props.className]: this.props.className,
'ant-affix': this.state.affix
});
return (
<div {...this.props}>
<div className={joinClasses(className, affix)} style={this.state.affixStyle}>
<div className={className} style={this.state.affixStyle}>
{this.props.children}
</div>
</div>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册