feat:Aero add style property

This commit is contained in:
pengfei.zhou
2021-11-25 16:30:29 +08:00
committed by osborn
parent cc014a6061
commit f302592d11
13 changed files with 67 additions and 5 deletions

View File

@@ -29,6 +29,11 @@ export declare class AeroEffect extends Stack {
width: number;
height: number;
};
/**
* Specify the area of the view is lighter or darker than the underlying view.
* If not set, the default is light.
*/
style?: "light" | "dark" | "extraLight";
}
export declare function blurEffect(views: View | View[], config?: Partial<BlurEffect>): BlurEffect;
export declare function aeroEffect(views: View | View[], config?: Partial<AeroEffect>): AeroEffect;

View File

@@ -41,6 +41,10 @@ __decorate([
Property,
__metadata("design:type", Object)
], AeroEffect.prototype, "effectiveRect", void 0);
__decorate([
Property,
__metadata("design:type", String)
], AeroEffect.prototype, "style", void 0);
export function blurEffect(views, config) {
const ret = new BlurEffect;
ret.layoutConfig = layoutConfig().fit();