@@ -96,6 +96,7 @@ let TmpDrawerComp = (function () {
96
96
closePosition : withDefault ( LeftRightControl , "left" ) ,
97
97
maskClosable : withDefault ( BoolControl , true ) ,
98
98
showMask : withDefault ( BoolControl , true ) ,
99
+ toggleClose :withDefault ( BoolControl , true )
99
100
} ,
100
101
( props , dispatch ) => {
101
102
const isTopBom = [ "top" , "bottom" ] . includes ( props . placement ) ;
@@ -155,6 +156,7 @@ let TmpDrawerComp = (function () {
155
156
className = { props . className as string }
156
157
data-testid = { props . dataTestId as string }
157
158
>
159
+ { props . toggleClose && (
158
160
< ButtonStyle
159
161
$closePosition = { props . closePosition }
160
162
onClick = { ( ) => {
@@ -163,6 +165,7 @@ let TmpDrawerComp = (function () {
163
165
>
164
166
< CloseOutlined />
165
167
</ ButtonStyle >
168
+ ) }
166
169
< InnerGrid
167
170
{ ...otherContainerProps }
168
171
items = { gridItemCompToGridItems ( items ) }
@@ -206,6 +209,9 @@ let TmpDrawerComp = (function () {
206
209
{ children . showMask . propertyView ( {
207
210
label : trans ( "prop.showMask" ) ,
208
211
} ) }
212
+ { children . toggleClose . propertyView ( {
213
+ label : trans ( "prop.toggleClose" ) ,
214
+ } ) }
209
215
</ Section >
210
216
< Section name = { sectionNames . interaction } > { children . onEvent . getPropertyView ( ) } </ Section >
211
217
< Section name = { sectionNames . style } > { children . style . getPropertyView ( ) } </ Section >
0 commit comments