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;
|
is_active = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (node.data.item.tree_hidden || node.data.mitem?.get("tree_hidden")) {
|
||||||
|
return <></>;
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Tooltip
|
<Tooltip
|
||||||
placement="right"
|
placement="right"
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@ export type IItem = {
|
||||||
adv?: FNAdv;
|
adv?: FNAdv;
|
||||||
type: "item";
|
type: "item";
|
||||||
component?: FNComponent;
|
component?: FNComponent;
|
||||||
|
tree_hidden?: boolean;
|
||||||
childs: (IItem | IText)[];
|
childs: (IItem | IText)[];
|
||||||
} & MetaItem &
|
} & MetaItem &
|
||||||
BasicItem;
|
BasicItem;
|
||||||
|
|
@ -20,6 +21,7 @@ export type MItem = TypedMap<
|
||||||
type: "item";
|
type: "item";
|
||||||
mobile?: MItem;
|
mobile?: MItem;
|
||||||
childs?: TypedArray<MItem | MText>;
|
childs?: TypedArray<MItem | MText>;
|
||||||
|
tree_hidden?: boolean;
|
||||||
} & MBasicItem &
|
} & MBasicItem &
|
||||||
MetaItem
|
MetaItem
|
||||||
> & { parent: TypedArray<MSection | MItem> & { parent: MSection | MItem } };
|
> & { parent: TypedArray<MSection | MItem> & { parent: MSection | MItem } };
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue