simple demo layout config to just mode
This commit is contained in:
parent
23882e6088
commit
bf663e40db
@ -8,65 +8,78 @@ class LayoutDemo extends Panel {
|
||||
stack([], {
|
||||
width: 100,
|
||||
height: 100,
|
||||
backgroundColor: Color.RED
|
||||
backgroundColor: Color.RED,
|
||||
layoutConfig: layoutConfig().just()
|
||||
}),
|
||||
stack([], {
|
||||
width: 100,
|
||||
height: 100,
|
||||
backgroundColor: Color.GREEN
|
||||
backgroundColor: Color.GREEN,
|
||||
layoutConfig: layoutConfig().just()
|
||||
}),
|
||||
stack([], {
|
||||
width: 100,
|
||||
height: 100,
|
||||
backgroundColor: Color.BLUE
|
||||
backgroundColor: Color.BLUE,
|
||||
layoutConfig: layoutConfig().just()
|
||||
})
|
||||
], {
|
||||
width: 100,
|
||||
height: 300,
|
||||
layoutConfig: layoutConfig().just()
|
||||
}),
|
||||
vlayout([
|
||||
stack([], {
|
||||
width: 100,
|
||||
height: 100,
|
||||
backgroundColor: Color.GREEN
|
||||
backgroundColor: Color.GREEN,
|
||||
layoutConfig: layoutConfig().just()
|
||||
}),
|
||||
stack([], {
|
||||
width: 100,
|
||||
height: 100,
|
||||
backgroundColor: Color.BLUE
|
||||
backgroundColor: Color.BLUE,
|
||||
layoutConfig: layoutConfig().just()
|
||||
}),
|
||||
stack([], {
|
||||
width: 100,
|
||||
height: 100,
|
||||
backgroundColor: Color.RED
|
||||
backgroundColor: Color.RED,
|
||||
layoutConfig: layoutConfig().just()
|
||||
})
|
||||
], {
|
||||
width: 100,
|
||||
height: 300,
|
||||
layoutConfig: layoutConfig().just()
|
||||
}),
|
||||
vlayout([
|
||||
stack([], {
|
||||
width: 100,
|
||||
height: 100,
|
||||
backgroundColor: Color.BLUE
|
||||
backgroundColor: Color.BLUE,
|
||||
layoutConfig: layoutConfig().just()
|
||||
}),
|
||||
stack([], {
|
||||
width: 100,
|
||||
height: 100,
|
||||
backgroundColor: Color.RED
|
||||
backgroundColor: Color.RED,
|
||||
layoutConfig: layoutConfig().just()
|
||||
}),
|
||||
stack([], {
|
||||
width: 100,
|
||||
height: 100,
|
||||
backgroundColor: Color.GREEN
|
||||
backgroundColor: Color.GREEN,
|
||||
layoutConfig: layoutConfig().just()
|
||||
})
|
||||
], {
|
||||
width: 100,
|
||||
height: 300,
|
||||
layoutConfig: layoutConfig().just()
|
||||
})
|
||||
], {
|
||||
width: 400,
|
||||
height: 300,
|
||||
layoutConfig: layoutConfig().just(),
|
||||
backgroundColor: Color.BLACK
|
||||
}).in(rootView)
|
||||
}
|
||||
|
Reference in New Issue
Block a user