@@ -4,7 +4,7 @@ import { ContainerCompBuilder } from "comps/comps/containerBase/containerCompBui
44import  {  gridItemCompToGridItems ,  InnerGrid  }  from  "comps/comps/containerComp/containerView" ; 
55import  {  AutoHeightControl  }  from  "comps/controls/autoHeightControl" ; 
66import  {  BoolControl  }  from  "comps/controls/boolControl" ; 
7- import  {  StringControl  }  from  "comps/controls/codeControl" ; 
7+ import  {  StringControl ,   NumberControl  }  from  "comps/controls/codeControl" ; 
88import  {  booleanExposingStateControl  }  from  "comps/controls/codeStateControl" ; 
99import  {  PositionControl ,  LeftRightControl ,  HorizontalAlignmentControl  }  from  "comps/controls/dropdownControl" ; 
1010import  {  eventHandlerControl  }  from  "comps/controls/eventHandlerControl" ; 
@@ -122,6 +122,7 @@ const childrenMap = {
122122  showMask : withDefault ( BoolControl ,  true ) , 
123123  toggleClose :withDefault ( BoolControl , true ) , 
124124  escapeClosable : withDefault ( BoolControl ,  true ) , 
125+   zIndex : withDefault ( NumberControl ,  Layers . drawer ) , 
125126} ; 
126127
127128type  ChildrenType  =  NewChildren < RecordConstructorToComp < typeof  childrenMap > >  &  { 
@@ -168,6 +169,9 @@ const DrawerPropertyView = React.memo((props: {
168169      { props . children . escapeClosable . propertyView ( { 
169170        label : trans ( "prop.escapeClose" ) , 
170171      } ) } 
172+       { props . children . zIndex . propertyView ( { 
173+         label : trans ( "prop.zIndex" ) , 
174+       } ) } 
171175    </ Section > 
172176    < Section  name = { sectionNames . interaction } > { props . children . onEvent . getPropertyView ( ) } </ Section > 
173177    < Section  name = { sectionNames . style } > { props . children . style . getPropertyView ( ) } </ Section > 
@@ -251,7 +255,7 @@ const DrawerView = React.memo((
251255          height = { ! props . autoHeight  ? transToPxSize ( props . height  ||  DEFAULT_SIZE )  : "" } 
252256          onClose = { onClose } 
253257          afterOpenChange = { afterOpenChange } 
254-           zIndex = { Layers . drawer } 
258+           zIndex = { props . zIndex } 
255259          maskClosable = { props . maskClosable } 
256260          mask = { true } 
257261          className = { clsx ( `app-${ appID }  ,  props . className ) } 
0 commit comments