@@ -45,9 +45,19 @@ const StyledDrawer = styled(Drawer)<{$titleAlign?: string, $drawerScrollbar: boo
45
45
.ant-drawer-header-title {
46
46
margin: 0px 20px !important;
47
47
text-align: ${ ( props ) => props . $titleAlign || "center" } ;
48
+
49
+ .ant-drawer-title {
50
+ position: relative;
51
+ z-index: 11;
52
+ }
48
53
}
49
- div.ant-drawer-body div.react-grid-layout::-webkit-scrollbar {
50
- display: ${ ( props ) => props . $drawerScrollbar ? "block" : "none" } ;
54
+
55
+ div.ant-drawer-body div.react-grid-layout {
56
+ overflow: auto;
57
+
58
+ &::-webkit-scrollbar {
59
+ display: ${ ( props ) => props . $drawerScrollbar ? "block" : "none" } ;
60
+ }
51
61
}
52
62
` ;
53
63
@@ -102,7 +112,8 @@ let TmpDrawerComp = (function () {
102
112
closePosition : withDefault ( LeftRightControl , "left" ) ,
103
113
maskClosable : withDefault ( BoolControl , true ) ,
104
114
showMask : withDefault ( BoolControl , true ) ,
105
- toggleClose :withDefault ( BoolControl , true )
115
+ toggleClose :withDefault ( BoolControl , true ) ,
116
+ escapeClosable : withDefault ( BoolControl , true ) ,
106
117
} ,
107
118
( props , dispatch ) => {
108
119
const isTopBom = [ "top" , "bottom" ] . includes ( props . placement ) ;
@@ -143,6 +154,7 @@ let TmpDrawerComp = (function () {
143
154
$titleAlign = { props . titleAlign }
144
155
$drawerScrollbar = { props . drawerScrollbar }
145
156
closable = { false }
157
+ keyboard = { props . escapeClosable }
146
158
placement = { props . placement }
147
159
open = { props . visible . value }
148
160
getContainer = { ( ) => document . querySelector ( `#${ CanvasContainerID } ` ) || document . body }
@@ -224,6 +236,9 @@ let TmpDrawerComp = (function () {
224
236
{ children . toggleClose . propertyView ( {
225
237
label : trans ( "prop.toggleClose" ) ,
226
238
} ) }
239
+ { children . escapeClosable . propertyView ( {
240
+ label : trans ( "prop.escapeClose" ) ,
241
+ } ) }
227
242
</ Section >
228
243
< Section name = { sectionNames . interaction } > { children . onEvent . getPropertyView ( ) } </ Section >
229
244
< Section name = { sectionNames . style } > { children . style . getPropertyView ( ) } </ Section >
0 commit comments