js: padding currently only support group or text,input

This commit is contained in:
pengfei.zhou
2022-08-25 10:42:56 +08:00
committed by osborn
parent 02259823da
commit 3937a3f4d3
16 changed files with 129 additions and 48 deletions

View File

@@ -52,12 +52,6 @@ export declare abstract class View implements Modeling {
hidden?: boolean;
viewId: string;
tag?: string;
padding?: {
left?: number;
right?: number;
top?: number;
bottom?: number;
};
layoutConfig?: LayoutConfig;
onClick?: Function;
superview?: Superview;
@@ -159,6 +153,12 @@ export declare abstract class Superview extends View {
export declare type ViewArray = View[];
export declare type ViewFragment = View | ViewArray | undefined | null;
export declare abstract class Group extends Superview implements JSX.ElementChildrenAttribute {
padding?: {
left?: number;
right?: number;
top?: number;
bottom?: number;
};
readonly children: View[];
allSubviews(): View[];
addChild(view: View): void;

View File

@@ -297,10 +297,6 @@ __decorate([
Property,
__metadata("design:type", Boolean)
], View.prototype, "hidden", void 0);
__decorate([
Property,
__metadata("design:type", Object)
], View.prototype, "padding", void 0);
__decorate([
Property,
__metadata("design:type", Object)
@@ -466,3 +462,7 @@ export class Group extends Superview {
this.addInnerElement(e);
}
}
__decorate([
Property,
__metadata("design:type", Object)
], Group.prototype, "padding", void 0);