mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-03 12:29:24 +08:00
fix: 修复 tpl wrapperComponent 不生效问题 (#1645)
This commit is contained in:
parent
8b56081b53
commit
9ffb5696c2
@ -96,7 +96,7 @@ export class Tpl extends React.Component<TplProps, object> {
|
||||
|
||||
render() {
|
||||
const {className, wrapperComponent, inline, classnames: cx} = this.props;
|
||||
const Component = wrapperComponent || inline ? 'span' : 'div';
|
||||
const Component = wrapperComponent || (inline ? 'span' : 'div');
|
||||
|
||||
return (
|
||||
<Component ref={this.htmlRef} className={cx('TplField', className)}>
|
||||
|
Loading…
Reference in New Issue
Block a user