HMRouter主入口
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import { PatientsGroup } from 'patient'
|
||||
import { HMDefaultGlobalAnimator, HMNavigation } from '@hadss/hmrouter'
|
||||
import { AttributeUpdater } from '@kit.ArkUI'
|
||||
import { TabBarComp } from 'netease'
|
||||
import { HMDefaultGlobalAnimator, HMNavigation } from '@hadss/hmrouter';
|
||||
import { AttributeUpdater } from '@kit.ArkUI';
|
||||
|
||||
class NavModifier extends AttributeUpdater<NavigationAttribute> {
|
||||
initializeModifier(instance: NavigationAttribute): void {
|
||||
@@ -16,9 +15,7 @@ class NavModifier extends AttributeUpdater<NavigationAttribute> {
|
||||
@Component
|
||||
struct PatientsGroupPage {
|
||||
@Provide refreshFlag:boolean = false;
|
||||
modifier: NavModifier = new NavModifier()
|
||||
@State
|
||||
activeIndex: number = 0
|
||||
modifier: NavModifier = new NavModifier();
|
||||
|
||||
onPageShow(): void {
|
||||
this.refreshFlag = !this.refreshFlag;
|
||||
@@ -35,8 +32,7 @@ struct PatientsGroupPage {
|
||||
modifier:this.modifier
|
||||
}
|
||||
}) {
|
||||
// PatientsGroup()
|
||||
TabBarComp({ activeIndex: this.activeIndex})
|
||||
PatientsGroup()
|
||||
}
|
||||
}
|
||||
.height('100%')
|
||||
|
||||
Reference in New Issue
Block a user