mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 03:29:39 +08:00
💄 use classNames in Editable
This commit is contained in:
parent
4146efa810
commit
fb68fcdc05
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user