Merge branch 'fix/minor-bugs-lianjie.lj' into 'release/0.9.12'

fix: 多选时设置项异常

多选两个文本输入框组件,右侧属性面板出现 category 这样的属性

See merge request !946011
This commit is contained in:
力皓 2020-08-24 14:21:03 +08:00
commit 88f4aa02c4

View File

@ -21,7 +21,7 @@ class SettingFieldView extends Component<{ field: SettingField }> {
const { prototype } = componentMeta;
let visible;
try {
visible = field.isSingle && typeof condition === 'function' ? condition(field) !== false : true;
visible = typeof condition === 'function' ? condition(field) !== false : true;
} catch (error) {
console.error('exception when condition (hidden) is excuted', error);
}