js: padding currently only support group or text,input
This commit is contained in:
12
doric-js/lib/src/ui/view.d.ts
vendored
12
doric-js/lib/src/ui/view.d.ts
vendored
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user