mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-15 09:21:13 +08:00
fix:属性面板报错
Change-Id: I868818dadb55e6f0e7fe79730f667fc23f5fe334
This commit is contained in:
parent
764299b33d
commit
23beeae944
@ -369,8 +369,9 @@ export default class APIControl extends React.Component<
|
||||
|
||||
@autobind
|
||||
renderHeader() {
|
||||
const {render, label, labelRemark, useMobileUI, popOverContainer, env} =
|
||||
const {render, labelRemark, useMobileUI, popOverContainer, env} =
|
||||
this.props;
|
||||
const label: any = this.props.label;
|
||||
const classPrefix = env?.theme?.classPrefix;
|
||||
|
||||
// const actionsDom =
|
||||
@ -386,7 +387,7 @@ export default class APIControl extends React.Component<
|
||||
return (
|
||||
<header className="ApiControl-header" key="header">
|
||||
<label className={cx(`${classPrefix}Form-label`)}>
|
||||
{label || ''}
|
||||
{label?.type ? render('label', label) : label || ''}
|
||||
{labelRemark
|
||||
? render('label-remark', {
|
||||
type: 'remark',
|
||||
|
Loading…
Reference in New Issue
Block a user