feat:refact SliderDemo
This commit is contained in:
@@ -148,7 +148,7 @@ export class LayoutConfigImpl implements LayoutConfig, Modeling {
|
||||
widthSpec: this.widthSpec,
|
||||
heightSpec: this.heightSpec,
|
||||
margin: this.margin,
|
||||
alignment: this.alignment,
|
||||
alignment: this.alignment ? this.alignment.toModel() : undefined,
|
||||
weight: this.weight,
|
||||
}
|
||||
}
|
||||
|
@@ -5,7 +5,7 @@ export function slideItem(item: View) {
|
||||
return (new SlideItem).also((it) => {
|
||||
it.layoutConfig = {
|
||||
widthSpec: LayoutSpec.AT_MOST,
|
||||
heightSpec: LayoutSpec.WRAP_CONTENT,
|
||||
heightSpec: LayoutSpec.AT_MOST,
|
||||
}
|
||||
it.addChild(item)
|
||||
})
|
||||
|
Reference in New Issue
Block a user