@@ -186,7 +186,7 @@ const NavCompBase = new UICompBuilder(childrenMap, (props) => {
186186const disabled = ! ! view ?. disabled ;
187187const subItems = isCompItem ?view ?. items :[ ] ;
188188
189- const subMenuItems :Array < { key :string ; label :string } > = [ ] ;
189+ const subMenuItems :Array < { key :string ; label :any ; disabled ?: boolean } > = [ ] ;
190190const subMenuSelectedKeys :Array < string > = [ ] ;
191191
192192if ( Array . isArray ( subItems ) ) {
@@ -199,6 +199,7 @@ const NavCompBase = new UICompBuilder(childrenMap, (props) => {
199199subMenuItems . push ( {
200200key :key ,
201201label :subItem . children . label . getView ( ) ,
202+ disabled :! ! subItem . children . disabled . getView ( ) ,
202203} ) ;
203204} ) ;
204205}
@@ -230,6 +231,8 @@ const NavCompBase = new UICompBuilder(childrenMap, (props) => {
230231onClick = { ( e ) => {
231232if ( disabled ) return ;
232233const subItem = subItems [ Number ( e . key ) ] ;
234+ const isSubDisabled = ! ! subItem ?. children ?. disabled ?. getView ?.( ) ;
235+ if ( isSubDisabled ) return ;
233236const onSubEvent = subItem ?. getView ( ) ?. onEvent ;
234237onSubEvent && onSubEvent ( "click" ) ;
235238} }