fix tree hidden
This commit is contained in:
parent
9f69d4e8de
commit
bab41c51ed
|
|
@ -85,6 +85,10 @@ export const nodeRender: NodeRender<IMeta> = (node, prm) => {
|
|||
is_active = true;
|
||||
}
|
||||
|
||||
if (node.data.item.tree_hidden || node.data.mitem?.get("tree_hidden")) {
|
||||
return <></>;
|
||||
}
|
||||
|
||||
return (
|
||||
<Tooltip
|
||||
placement="right"
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ export type IItem = {
|
|||
adv?: FNAdv;
|
||||
type: "item";
|
||||
component?: FNComponent;
|
||||
tree_hidden?: boolean;
|
||||
childs: (IItem | IText)[];
|
||||
} & MetaItem &
|
||||
BasicItem;
|
||||
|
|
@ -20,6 +21,7 @@ export type MItem = TypedMap<
|
|||
type: "item";
|
||||
mobile?: MItem;
|
||||
childs?: TypedArray<MItem | MText>;
|
||||
tree_hidden?: boolean;
|
||||
} & MBasicItem &
|
||||
MetaItem
|
||||
> & { parent: TypedArray<MSection | MItem> & { parent: MSection | MItem } };
|
||||
|
|
|
|||
Loading…
Reference in New Issue