mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-13 04:53:11 +08:00
Remove extra update
This commit is contained in:
parent
c66062edb4
commit
7cfd9b2bcb
@ -2,7 +2,6 @@ import React from 'react';
|
|||||||
import { findDOMNode } from 'react-dom';
|
import { findDOMNode } from 'react-dom';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import classNames from 'classnames';
|
import classNames from 'classnames';
|
||||||
import Animate from 'rc-animate';
|
|
||||||
import PureRenderMixin from 'rc-util/lib/PureRenderMixin';
|
import PureRenderMixin from 'rc-util/lib/PureRenderMixin';
|
||||||
import Row from '../grid/row';
|
import Row from '../grid/row';
|
||||||
import Col, { ColProps } from '../grid/col';
|
import Col, { ColProps } from '../grid/col';
|
||||||
@ -126,15 +125,11 @@ export default class FormItem extends React.Component<FormItemProps, any> {
|
|||||||
renderHelp() {
|
renderHelp() {
|
||||||
const prefixCls = this.props.prefixCls;
|
const prefixCls = this.props.prefixCls;
|
||||||
const help = this.getHelpMsg();
|
const help = this.getHelpMsg();
|
||||||
const children = help ? (
|
return help ? (
|
||||||
<div className={`${prefixCls}-explain`} key="help">
|
<div className={`${prefixCls}-explain`} key="help">
|
||||||
{help}
|
{help}
|
||||||
</div>
|
</div>
|
||||||
) : null;
|
) : null;
|
||||||
return (
|
|
||||||
<Animate transitionName="show-help" component="" transitionAppear key="help">
|
|
||||||
{children}
|
|
||||||
</Animate>);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
renderExtra() {
|
renderExtra() {
|
||||||
|
Loading…
Reference in New Issue
Block a user