hide Table.Operation.DesignableBar when not designable
This commit is contained in:
parent
7e091092ee
commit
1ceb8b6006
@ -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>
|
||||
);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user