import { BasicConstant,HdNav } from '@itcast/basic' import { TabBarTopComp } from './TabBarTopComp'; @Component export struct ManyForOneComp { @State @Watch('onChangeIndex') activeIndex: number = 0 @State type: number=1 onChangeIndex() { } build() { Column() { TabBarTopComp({activeIndex:this.activeIndex,type:this.type}); }.width('100%') .height('100%') .backgroundColor(Color.White) } }