27 lines
435 B
Plaintext
27 lines
435 B
Plaintext
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)
|
|
|
|
}
|
|
} |