修改部分接口

Signed-off-by: LancelotOnTheLake <yeliang16@huawei.com>
This commit is contained in:
LancelotOnTheLake 2024-07-09 10:57:29 +08:00
parent b262f4f8a9
commit df64586fa8
2 changed files with 5 additions and 5 deletions

View File

@ -45,7 +45,7 @@ export class AtomicServiceNavigation extends ViewPU {
this.navigationContent = v.navigationContent;
}
if (v.titleOptions === undefined) {
this.__titleOptions.set({ isBlurEnable: true });
this.__titleOptions.set({ isBlurEnabled: true });
}
if (v.navDestinationBuilder !== undefined) {
this.navDestinationBuilder = v.navDestinationBuilder;
@ -143,7 +143,7 @@ export class AtomicServiceNavigation extends ViewPU {
Navigation.create(this.navPathStack);
Navigation.title(ObservedObject.GetRawObject(this.title), {
backgroundColor: this.titleOptions?.backgroundColor,
backgroundBlurStyle: this.titleOptions?.isBlurEnable ? BlurStyle.COMPONENT_THICK : BlurStyle.NONE,
backgroundBlurStyle: this.titleOptions?.isBlurEnabled ? BlurStyle.COMPONENT_THICK : BlurStyle.NONE,
barStyle: this.titleOptions?.barStyle
});
Navigation.titleMode(NavigationTitleMode.Mini);

View File

@ -20,7 +20,7 @@ export struct AtomicServiceNavigation {
@State navPathStack?: NavPathStack = new NavPathStack();
@BuilderParam navigationContent?: Callback<void>;
@Prop title?: ResourceStr;
@Prop titleOptions?: TitleOptions = { isBlurEnable: true };
@Prop titleOptions?: TitleOptions = { isBlurEnabled: true };
@Prop hideTitleBar?: boolean;
@Prop navBarWidth?: Length;
@Prop mode?: NavigationMode;
@ -42,7 +42,7 @@ export struct AtomicServiceNavigation {
}
.title(this.title, {
backgroundColor: this.titleOptions?.backgroundColor,
backgroundBlurStyle: this.titleOptions?.isBlurEnable ? BlurStyle.COMPONENT_THICK : BlurStyle.NONE,
backgroundBlurStyle: this.titleOptions?.isBlurEnabled ? BlurStyle.COMPONENT_THICK : BlurStyle.NONE,
barStyle: this.titleOptions?.barStyle
})
.titleMode(NavigationTitleMode.Mini)
@ -61,7 +61,7 @@ export struct AtomicServiceNavigation {
export interface TitleOptions {
backgroundColor?: ResourceColor,
isBlurEnable?: boolean,
isBlurEnabled?: boolean,
barStyle?: BarStyle
}