feat:Aero add style property
This commit is contained in:
@@ -3643,6 +3643,10 @@ var AeroEffect = /** @class */ (function (_super) {
|
||||
Property,
|
||||
__metadata("design:type", Object)
|
||||
], AeroEffect.prototype, "effectiveRect", void 0);
|
||||
__decorate([
|
||||
Property,
|
||||
__metadata("design:type", String)
|
||||
], AeroEffect.prototype, "style", void 0);
|
||||
return AeroEffect;
|
||||
}(Stack));
|
||||
function blurEffect(views, config) {
|
||||
|
||||
@@ -2748,6 +2748,10 @@ __decorate([
|
||||
Property,
|
||||
__metadata("design:type", Object)
|
||||
], AeroEffect.prototype, "effectiveRect", void 0);
|
||||
__decorate([
|
||||
Property,
|
||||
__metadata("design:type", String)
|
||||
], AeroEffect.prototype, "style", void 0);
|
||||
function blurEffect(views, config) {
|
||||
const ret = new BlurEffect;
|
||||
ret.layoutConfig = layoutConfig().fit();
|
||||
|
||||
@@ -4269,6 +4269,10 @@ __decorate([
|
||||
Property,
|
||||
__metadata("design:type", Object)
|
||||
], AeroEffect.prototype, "effectiveRect", void 0);
|
||||
__decorate([
|
||||
Property,
|
||||
__metadata("design:type", String)
|
||||
], AeroEffect.prototype, "style", void 0);
|
||||
function blurEffect(views, config) {
|
||||
const ret = new BlurEffect;
|
||||
ret.layoutConfig = layoutConfig().fit();
|
||||
|
||||
5
doric-js/index.d.ts
vendored
5
doric-js/index.d.ts
vendored
@@ -1121,6 +1121,11 @@ declare module 'doric/lib/src/widget/effect' {
|
||||
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 function blurEffect(views: View | View[], config?: Partial<BlurEffect>): BlurEffect;
|
||||
export function aeroEffect(views: View | View[], config?: Partial<AeroEffect>): AeroEffect;
|
||||
|
||||
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();
|
||||
|
||||
@@ -51,6 +51,12 @@ export 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.
|
||||
*/
|
||||
@Property
|
||||
style?: "light" | "dark" | "extraLight"
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user