FlowLayoutItem add fullSpan attribute

This commit is contained in:
pengfei.zhou
2021-10-11 16:26:56 +08:00
committed by osborn
parent 9429c75834
commit 0e77c62e13
13 changed files with 53 additions and 5 deletions

View File

@@ -2931,6 +2931,10 @@ var FlowLayoutItem = /** @class */ (function (_super) {
Property,
__metadata$5("design:type", String)
], FlowLayoutItem.prototype, "identifier", void 0);
__decorate$5([
Property,
__metadata$5("design:type", Boolean)
], FlowLayoutItem.prototype, "fullSpan", void 0);
return FlowLayoutItem;
}(Stack));
var FlowLayout = /** @class */ (function (_super) {

View File

@@ -2211,6 +2211,10 @@ __decorate$5([
Property,
__metadata$5("design:type", String)
], FlowLayoutItem.prototype, "identifier", void 0);
__decorate$5([
Property,
__metadata$5("design:type", Boolean)
], FlowLayoutItem.prototype, "fullSpan", void 0);
class FlowLayout extends Superview {
constructor() {
super(...arguments);

View File

@@ -3732,6 +3732,10 @@ __decorate$5([
Property,
__metadata$5("design:type", String)
], FlowLayoutItem.prototype, "identifier", void 0);
__decorate$5([
Property,
__metadata$5("design:type", Boolean)
], FlowLayoutItem.prototype, "fullSpan", void 0);
class FlowLayout extends Superview {
constructor() {
super(...arguments);

4
doric-js/index.d.ts vendored
View File

@@ -835,6 +835,10 @@ declare module 'doric/lib/src/widget/flowlayout' {
* Set to reuse native view
*/
identifier?: string;
/**
* When set to true, the item will layout using all span area.
*/
fullSpan?: boolean;
}
export class FlowLayout extends Superview {
allSubviews(): FlowLayoutItem[];

View File

@@ -5,6 +5,10 @@ export declare class FlowLayoutItem extends Stack {
* Set to reuse native view
*/
identifier?: string;
/**
* When set to true, the item will layout using all span area.
*/
fullSpan?: boolean;
}
export declare class FlowLayout extends Superview {
private cachedViews;

View File

@@ -31,6 +31,10 @@ __decorate([
Property,
__metadata("design:type", String)
], FlowLayoutItem.prototype, "identifier", void 0);
__decorate([
Property,
__metadata("design:type", Boolean)
], FlowLayoutItem.prototype, "fullSpan", void 0);
export class FlowLayout extends Superview {
constructor() {
super(...arguments);

View File

@@ -23,6 +23,12 @@ export class FlowLayoutItem extends Stack {
*/
@Property
identifier?: string
/**
* When set to true, the item will layout using all span area.
* HeaderView, footerView or loadMoreView is always true by default.
*/
@Property
fullSpan?: boolean
}
export class FlowLayout extends Superview {