💄 use classNames in Editable

This commit is contained in:
afc163 2019-12-06 11:02:35 +08:00 committed by 偏右
parent 4146efa810
commit fb68fcdc05

View File

@ -1,5 +1,6 @@
import * as React from 'react';
import KeyCode from 'rc-util/lib/KeyCode';
import classNames from 'classnames';
import { polyfill } from 'react-lifecycles-compat';
import Icon from '../icon';
import TextArea from '../input/TextArea';
@ -114,7 +115,7 @@ class Editable extends React.Component<EditableProps, EditableState> {
const { prefixCls, 'aria-label': ariaLabel, className, style } = this.props;
return (
<div className={`${prefixCls} ${prefixCls}-edit-content ${className}`} style={style}>
<div className={classNames(prefixCls, `${prefixCls}-edit-content`, className)} style={style}>
<TextArea
ref={this.setTextarea}
value={current}