mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-11-27 09:12:41 +00:00
修改部分接口
Signed-off-by: LancelotOnTheLake <yeliang16@huawei.com>
This commit is contained in:
parent
b262f4f8a9
commit
df64586fa8
@ -45,7 +45,7 @@ export class AtomicServiceNavigation extends ViewPU {
|
|||||||
this.navigationContent = v.navigationContent;
|
this.navigationContent = v.navigationContent;
|
||||||
}
|
}
|
||||||
if (v.titleOptions === undefined) {
|
if (v.titleOptions === undefined) {
|
||||||
this.__titleOptions.set({ isBlurEnable: true });
|
this.__titleOptions.set({ isBlurEnabled: true });
|
||||||
}
|
}
|
||||||
if (v.navDestinationBuilder !== undefined) {
|
if (v.navDestinationBuilder !== undefined) {
|
||||||
this.navDestinationBuilder = v.navDestinationBuilder;
|
this.navDestinationBuilder = v.navDestinationBuilder;
|
||||||
@ -143,7 +143,7 @@ export class AtomicServiceNavigation extends ViewPU {
|
|||||||
Navigation.create(this.navPathStack);
|
Navigation.create(this.navPathStack);
|
||||||
Navigation.title(ObservedObject.GetRawObject(this.title), {
|
Navigation.title(ObservedObject.GetRawObject(this.title), {
|
||||||
backgroundColor: this.titleOptions?.backgroundColor,
|
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
|
barStyle: this.titleOptions?.barStyle
|
||||||
});
|
});
|
||||||
Navigation.titleMode(NavigationTitleMode.Mini);
|
Navigation.titleMode(NavigationTitleMode.Mini);
|
||||||
|
@ -20,7 +20,7 @@ export struct AtomicServiceNavigation {
|
|||||||
@State navPathStack?: NavPathStack = new NavPathStack();
|
@State navPathStack?: NavPathStack = new NavPathStack();
|
||||||
@BuilderParam navigationContent?: Callback<void>;
|
@BuilderParam navigationContent?: Callback<void>;
|
||||||
@Prop title?: ResourceStr;
|
@Prop title?: ResourceStr;
|
||||||
@Prop titleOptions?: TitleOptions = { isBlurEnable: true };
|
@Prop titleOptions?: TitleOptions = { isBlurEnabled: true };
|
||||||
@Prop hideTitleBar?: boolean;
|
@Prop hideTitleBar?: boolean;
|
||||||
@Prop navBarWidth?: Length;
|
@Prop navBarWidth?: Length;
|
||||||
@Prop mode?: NavigationMode;
|
@Prop mode?: NavigationMode;
|
||||||
@ -42,7 +42,7 @@ export struct AtomicServiceNavigation {
|
|||||||
}
|
}
|
||||||
.title(this.title, {
|
.title(this.title, {
|
||||||
backgroundColor: this.titleOptions?.backgroundColor,
|
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
|
barStyle: this.titleOptions?.barStyle
|
||||||
})
|
})
|
||||||
.titleMode(NavigationTitleMode.Mini)
|
.titleMode(NavigationTitleMode.Mini)
|
||||||
@ -61,7 +61,7 @@ export struct AtomicServiceNavigation {
|
|||||||
|
|
||||||
export interface TitleOptions {
|
export interface TitleOptions {
|
||||||
backgroundColor?: ResourceColor,
|
backgroundColor?: ResourceColor,
|
||||||
isBlurEnable?: boolean,
|
isBlurEnabled?: boolean,
|
||||||
barStyle?: BarStyle
|
barStyle?: BarStyle
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user