@@ -96,6 +96,7 @@ let TmpDrawerComp = (function () {
9696 closePosition : withDefault ( LeftRightControl , "left" ) ,
9797 maskClosable : withDefault ( BoolControl , true ) ,
9898 showMask : withDefault ( BoolControl , true ) ,
99+ toggleClose :withDefault ( BoolControl , true )
99100 } ,
100101 ( props , dispatch ) => {
101102 const isTopBom = [ "top" , "bottom" ] . includes ( props . placement ) ;
@@ -155,6 +156,7 @@ let TmpDrawerComp = (function () {
155156 className = { props . className as string }
156157 data-testid = { props . dataTestId as string }
157158 >
159+ { props . toggleClose && (
158160 < ButtonStyle
159161 $closePosition = { props . closePosition }
160162 onClick = { ( ) => {
@@ -163,6 +165,7 @@ let TmpDrawerComp = (function () {
163165 >
164166 < CloseOutlined />
165167 </ ButtonStyle >
168+ ) }
166169 < InnerGrid
167170 { ...otherContainerProps }
168171 items = { gridItemCompToGridItems ( items ) }
@@ -206,6 +209,9 @@ let TmpDrawerComp = (function () {
206209 { children . showMask . propertyView ( {
207210 label : trans ( "prop.showMask" ) ,
208211 } ) }
212+ { children . toggleClose . propertyView ( {
213+ label : trans ( "prop.toggleClose" ) ,
214+ } ) }
209215 </ Section >
210216 < Section name = { sectionNames . interaction } > { children . onEvent . getPropertyView ( ) } </ Section >
211217 < Section name = { sectionNames . style } > { children . style . getPropertyView ( ) } </ Section >
0 commit comments