feat:Aero add style property
This commit is contained in:
5
doric-js/lib/src/widget/effect.d.ts
vendored
5
doric-js/lib/src/widget/effect.d.ts
vendored
@@ -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;
|
||||
|
@@ -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();
|
||||
|
Reference in New Issue
Block a user