hide Table.Operation.DesignableBar when not designable

This commit is contained in:
chenos 2021-08-05 19:01:02 +08:00
parent 7e091092ee
commit 1ceb8b6006

View File

@ -1385,11 +1385,12 @@ Table.Filter.DesignableBar = () => {
};
Table.Operation = observer((props: any) => {
const { designable } = useDesignable();
const [visible, setVisible] = useState(false);
return (
<div className={'nb-table-column'}>
<Table.Operation.DesignableBar path={props.path} />
{designable && <Table.Operation.DesignableBar path={props.path} />}
</div>
);
});