List:ListItem visibleOn 不可用问题修复

This commit is contained in:
liaoxuezhi 2019-05-21 12:23:30 +08:00
parent 7fbecdce96
commit 5dc4b9dd40
1 changed files with 5 additions and 0 deletions

View File

@ -856,6 +856,11 @@ export class ListItem extends React.Component<ListItemProps> {
const cx = this.props.classnames;
const $$id = field.$$id ? `${field.$$id}-field` : '';
if (!isVisible(field, data)) {
return null;
}
return (
<div key={key} className={cx('ListItem-field')}>
{field && field.label ? (