forked from p96170835/amis
List:ListItem visibleOn 不可用问题修复
This commit is contained in:
parent
7fbecdce96
commit
5dc4b9dd40
|
@ -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 ? (
|
||||
|
|
Loading…
Reference in New Issue