From a334a5aeb94b888eb54862448f0e3aee0eb24b45 Mon Sep 17 00:00:00 2001 From: MenamAfzal Date: Wed, 24 Jul 2024 23:48:13 +0500 Subject: [PATCH] added toggle btn in drawer --- client/packages/lowcoder/src/comps/hooks/drawerComp.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/packages/lowcoder/src/comps/hooks/drawerComp.tsx b/client/packages/lowcoder/src/comps/hooks/drawerComp.tsx index 9b23c6238..718f82395 100644 --- a/client/packages/lowcoder/src/comps/hooks/drawerComp.tsx +++ b/client/packages/lowcoder/src/comps/hooks/drawerComp.tsx @@ -96,6 +96,7 @@ let TmpDrawerComp = (function () { closePosition: withDefault(LeftRightControl, "left"), maskClosable: withDefault(BoolControl, true), showMask: withDefault(BoolControl, true), + toggleClose:withDefault(BoolControl,true) }, (props, dispatch) => { const isTopBom = ["top", "bottom"].includes(props.placement); @@ -155,6 +156,7 @@ let TmpDrawerComp = (function () { className={props.className as string} data-testid={props.dataTestId as string} > + {props.toggleClose && ( { @@ -163,6 +165,7 @@ let TmpDrawerComp = (function () { > + )}
{children.onEvent.getPropertyView()}
{children.style.getPropertyView()}