@@ -4,7 +4,7 @@ import { ContainerCompBuilder } from "comps/comps/containerBase/containerCompBui
4
4
import { gridItemCompToGridItems , InnerGrid } from "comps/comps/containerComp/containerView" ;
5
5
import { AutoHeightControl } from "comps/controls/autoHeightControl" ;
6
6
import { BoolControl } from "comps/controls/boolControl" ;
7
- import { StringControl } from "comps/controls/codeControl" ;
7
+ import { StringControl , NumberControl } from "comps/controls/codeControl" ;
8
8
import { booleanExposingStateControl } from "comps/controls/codeStateControl" ;
9
9
import { PositionControl , LeftRightControl , HorizontalAlignmentControl } from "comps/controls/dropdownControl" ;
10
10
import { eventHandlerControl } from "comps/controls/eventHandlerControl" ;
@@ -122,6 +122,7 @@ const childrenMap = {
122
122
showMask : withDefault ( BoolControl , true ) ,
123
123
toggleClose :withDefault ( BoolControl , true ) ,
124
124
escapeClosable : withDefault ( BoolControl , true ) ,
125
+ zIndex : withDefault ( NumberControl , Layers . drawer ) ,
125
126
} ;
126
127
127
128
type ChildrenType = NewChildren < RecordConstructorToComp < typeof childrenMap > > & {
@@ -168,6 +169,9 @@ const DrawerPropertyView = React.memo((props: {
168
169
{ props . children . escapeClosable . propertyView ( {
169
170
label : trans ( "prop.escapeClose" ) ,
170
171
} ) }
172
+ { props . children . zIndex . propertyView ( {
173
+ label : trans ( "prop.zIndex" ) ,
174
+ } ) }
171
175
</ Section >
172
176
< Section name = { sectionNames . interaction } > { props . children . onEvent . getPropertyView ( ) } </ Section >
173
177
< Section name = { sectionNames . style } > { props . children . style . getPropertyView ( ) } </ Section >
@@ -251,7 +255,7 @@ const DrawerView = React.memo((
251
255
height = { ! props . autoHeight ? transToPxSize ( props . height || DEFAULT_SIZE ) : "" }
252
256
onClose = { onClose }
253
257
afterOpenChange = { afterOpenChange }
254
- zIndex = { Layers . drawer }
258
+ zIndex = { props . zIndex }
255
259
maskClosable = { props . maskClosable }
256
260
mask = { true }
257
261
className = { clsx ( `app-${ appID } ` , props . className ) }
0 commit comments